title: scala classloaders confusion
body: <p>Please consider the following test program (using scala 2.9.0.1)</p>
  
  <pre><code>object test
  {
    def main(args:Array[String]) = {
      println(ClassLoader.getSystemClassLoader.getResource("toto"))
      println(this.getClass.getClassLoader.getResource("toto"))
      println(classOf[Object].getClassLoader)
    }
  }
  </code></pre>
  
  <p>I compile it and run it with "-cp /tmp" containing a file "toto", and I get the following output:</p>
  
  <pre><code>null
  file:/tmp/toto
  null
  </code></pre>
  
  <p>=> the system classloader does not contain the classpath</p>
  
  <p>=> the Object class has no classloader!</p>
  
  <p>Am I missing something there or is it a (big) bug in scala?!</p>
  
  <p>Thanks,
  Arjun</p>