Aladdin - Scala Bugtracking
[#680] project: compiler priority: low category: bug
submitter assigned to status date submitted
Burak Iulian fixed 2006-07-31 14:31:48.0
subject mysterious IllegalAccessError at runtime
code
package foo
object sax {
  def main(args:Array[String]): unit = {
    val sb = new StringBuilder() // use Java 1.5
    sb.setLength(0)
  }
}
what happened
I am running it from java to make the stacktrace shorter.
[emir@lamppc31 ~/xmlLibraryPush]$ java -classpath /tmp:/home/emir/sbaz/lib/scala-library.jar foo.sax
Exception in thread "main" java.lang.IllegalAccessError: tried to access class java.lang.AbstractStringBuilder f\
rom class foo.sax$
        at foo.sax$.main(ga.scala:7)
        at foo.sax.main(ga.scala)
what expected a programming having no-effect.
[back to overview]
Changes of this bug report
Martin  edited on  2006-08-20 13:30:40.0
I can't see what's wrong. Iulian, can you see more?
Iulian  edited on  2006-08-22 09:27:21.0
This seems to be a duplicate of bug #455.
Iulian  edited on  2006-08-22 15:41:33.0