Aladdin - Scala Bugtracking
[#990] project: compiler priority: low category: bug
submitter assigned to status date submitted
Nikolay Lex fixed 2007-03-12 09:01:33.0
subject [contrib #365] escaped identifier interpreter crash
code
scala> `x
what happened
Interpreter crashes:
Exception in thread "main" java.lang.NullPointerException
        at scala.tools.nsc.ast.parser.Parsers$Parser.ident(Parsers.scala:385)
        at scala.tools.nsc.ast.parser.Parsers$Parser.path(Parsers.scala:421)
        at scala.tools.nsc.ast.parser.Parsers$Parser.simpleExpr(Parsers.scala:1033)
        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 message, e.g. "Unclosed escaped identifier".
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-03-12 09:07:01.0
contribution #365. Assigned to Lex because it only crashes the interpreter. The compiler says
contrib_365.scala:4: error: unclosed string literal
  `x
   ^
Lex  edited on  2007-03-16 13:06:21.0