NPE due to incomplete UnicodeEscape
------------------------------------
Key: JBRULES-3004
URL:
https://issues.jboss.org/browse/JBRULES-3004
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Foo( name == "\u041+" ) # incomplete nicode escape - only3 characters
Line and column numbers are very much off from the real numbers!
[123,6]: [ERR 102] Line 123:6 mismatched input ''
[0,0]: Line 1:0 unexpected exception at input 'package'. Exception:
java.lang.NullPointerException. Stack trace:
java.lang.NullPointerException
at
org.drools.lang.DroolsParserExceptionFactory.expectedTokensAsString(DroolsParserExceptionFactory.java:259)
at
org.drools.lang.DroolsParserExceptionFactory.createErrorMessage(DroolsParserExceptionFactory.java:188)
at
org.drools.lang.DroolsParserExceptionFactory.createDroolsException(DroolsParserExceptionFactory.java:100)
at org.drools.lang.DRLLexer.reportError(DRLLexer.java:102)
at org.antlr.runtime.Lexer.nextToken(Lexer.java:98)
at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:119)
at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
at org.antlr.runtime.CommonTokenStream.LA(CommonTokenStream.java:300)
at org.drools.lang.DRLParser.compilationUnit(DRLParser.java:133)
at org.drools.compiler.DrlParser.compile(DrlParser.java:225)
at org.drools.compiler.DrlParser.parse(DrlParser.java:136)
at org.drools.compiler.DrlParser.parse(DrlParser.java:141)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:294)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:473)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira