Aladdin - Scala Bugtracking
[#487] project: nsc priority: low category: bug
submitter assigned to status date submitted
Iulian Sean _ 2005-11-16 15:08:58.0
subject ArrayIndexOutOfBounds on syntactically incorrect programs
code
10-1
what happened
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
        at scala.tools.nsc.util.Position$class.column(Position.scala:47)
        at scala.tools.nsc.reporters.AbstractReporter$class.scala$tools$nsc$reporters$AbstractReporter$testAndLo\
g(AbstractReporter.scala:49)
        at scala.tools.nsc.reporters.AbstractReporter$class.error(AbstractReporter.scala:37)
        at scala.tools.nsc.CompilationUnits$CompilationUnit$class.error(CompilationUnits.scala:26)
        at scala.tools.nsc.ast.parser.Parsers$Parser$class.syntaxError(Parsers.scala:104)
        at scala.tools.nsc.ast.parser.Parsers$Parser$class.syntaxError(Parsers.scala:100)
        at scala.tools.nsc.ast.parser.Parsers$Parser$class.topStatSeq(Parsers.scala:1634)
        at scala.tools.nsc.ast.parser.Parsers$Parser$class.compilationUnit(Parsers.scala:1783)
        at scala.tools.nsc.ast.parser.Parsers$Parser$class.parse(Parsers.scala:67)
        at scala.tools.nsc.ast.parser.SyntaxAnalyzer$ParserPhase$class.apply(SyntaxAnalyzer.scala:16)
        at scala.tools.nsc.Global$GlobalPhase$class.applyPhase(Global.scala:170)
        at scala.tools.nsc.Global$GlobalPhase$$anon$7.apply(Global.scala:162)
        at scala.tools.nsc.Global$GlobalPhase$$anon$7.apply(Global.scala:162)
        at scala.Iterator$class.foreach(Iterator.scala:262)
        at scala.tools.nsc.Global$GlobalPhase$class.run(Global.scala:162)
        at scala.tools.nsc.Global$Run$class.compileSources(Global.scala:339)
        at scala.tools.nsc.Global$Run$$anon$20.apply(Global.scala:397)
        at scala.tools.nsc.Global$Run$$anon$20.apply(Global.scala:397)
        at scala.runtime.ScalaRunTime$$anon$0.run(ScalaRunTime.scala:34)
        at scala.runtime.RunTime.tryCatch(RunTime.java:79)
        at scala.runtime.ScalaRunTime$$anon$0.(ScalaRunTime.scala:32)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:30)
        at scala.tools.nsc.Global$Run$class.compile(Global.scala:396)
        at scala.tools.nsc.Main$$anon$8.apply(Main.scala:96)
        at scala.tools.nsc.Main$$anon$8.apply(Main.scala:87)
        at scala.runtime.ScalaRunTime$$anon$0.run(ScalaRunTime.scala:34)
        at scala.runtime.RunTime.tryCatch(RunTime.java:79)
        at scala.runtime.ScalaRunTime$$anon$0.(ScalaRunTime.scala:32)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:30)
        at scala.tools.nsc.Main$.process(Main.scala:87)
        at scala.tools.nsc.Main$.main(Main.scala:108)
        at scala.tools.nsc.Main.main(Main.scala:107)
what expected
pos.scala:1: illegal start of class or object definition
10-1
^
one error found
[back to overview]
Changes of this bug report
Iulian  edited on  2005-11-16 15:09:18.0
Martin  edited on  2005-11-22 13:30:51.0
I assume it's fixed now? Sean, can you check? -- Martin