[#1002] | project: interpreter | priority: medium | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Nikolay | Lex | fixed | 2007-03-14 10:50:08.0 | |
subject | [contrib #375] unclosed xml literals interpreter crash | |||
code |
<x |
|||
what happened | Interpreter crash, seemingly similar to the other interpreter issues in 2.4.0-RC1:Exception in thread "main" java.util.NoSuchElementException: stack empty at scala.collection.mutable.Stack.top(Stack.scala:67) at scala.tools.nsc.ast.parser.MarkupParsers$MarkupParser.xLiteral(MarkupParsers.scala:541) at scala.tools.nsc.ast.parser.Parsers$Parser.simpleExpr(Parsers.scala:1031) at scala.tools.nsc.ast.parser.Parsers$Parser.prefixExpr(Parsers.scala:1008) at scala.tools.nsc.ast.parser.Parsers$Parser.postfixExpr(Parsers.scala:961) at scala.tools.nsc.ast.parser.Parsers$Parser.expr(Parsers.scala:908) at scala.tools.nsc.ast.parser.Parsers$Parser.templateStatSeq(Parsers.scala:2145) at scala.tools.nsc.Interpreter$$anonfun$5.simpleParse$0(Interpreter.scala:187) at scala.tools.nsc.Interpreter$$anonfun$5.apply(Interpreter.scala:192) at scala.tools.nsc.Interpreter$$anonfun$5.apply(Interpreter.scala:181) at scala.tools.nsc.reporters.Reporter.withIncompleteHandler(Reporter.scala:62) at scala.tools.nsc.Interpreter.scala$tools$nsc$Interpreter$$parse(Interpreter.scala:181) at scala.tools.nsc.Interpreter.interpret(Interpreter.scala:270) at scala.tools.nsc.InterpreterLoop.interpretStartingWith(InterpreterLoop.scala:211) at scala.tools.nsc.InterpreterLoop.command(InterpreterLoop.scala:198) at scala.tools.nsc.InterpreterLoop.repl(InterpreterLoop.scala:111) at scala.tools.nsc.InterpreterLoop.main(InterpreterLoop.scala:246) at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:92) at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) |
|||
what expected | Error, but no crash. | |||
[back to overview] |
Nikolay edited on 2007-03-14 10:50:47.0 |
contribution #375. Assigned to Lex because it crashes only the interpreter |
Lex edited on 2007-03-16 13:07:51.0 |
I have made one tweak that hopefully helps: CharArrayreader returns endless SU's at EOF. However, the next problem is within the XML parsing somewhere, where there is an infinite loop. Try test/pending/run/bug1006.scala, which I just commited. |
Lex edited on 2007-03-16 13:08:19.0 |
Err, I mean, check test/pending/neg/badtok-3.scala |
Martin edited on 2007-04-17 16:33:47.0 |
reassigned to lex and raised to medium. |
Lex edited on 2007-07-13 23:25:30.0 |
This problem is now fixed. The interpreter now correctly waits for more input to complete the XML literal. |