-
Bug
-
Resolution: Done
-
Major
-
None
-
7.16.0.Final
-
2019 Week 02-04
-
- See unit test PR
-
NEW
-
NEW
With the conditions:
- Build by executable-model (-DgenerateModel=YES)
- java dialect
- Connect expressions with "comma" inside a modify block
You get a parse error.
[ERROR] testCommaInModify[PATTERN_DSL](org.drools.modelcompiler.CompilerTest) Time elapsed: 0.033 s <<< ERROR! org.drools.javaparser.ParseProblemException: (line 1,col 10) Parse error. Found ",", expected one of "%=" "&=" "*=" "++" "+=" "--" "-=" "/=" ";" "<<=" "=" ">>=" ">>>=" "^=" "|=" Problem stacktrace : org.drools.javaparser.GeneratedJavaParser.generateParseException(GeneratedJavaParser.java:11597) org.drools.javaparser.GeneratedJavaParser.jj_consume_token(GeneratedJavaParser.java:11456) org.drools.javaparser.GeneratedJavaParser.StatementExpression(GeneratedJavaParser.java:4160) org.drools.javaparser.GeneratedJavaParser.Statement(GeneratedJavaParser.java:3798) org.drools.javaparser.GeneratedJavaParser.BlockStatement(GeneratedJavaParser.java:3977) org.drools.javaparser.GeneratedJavaParser.Statements(GeneratedJavaParser.java:1606) org.drools.javaparser.GeneratedJavaParser.Block(GeneratedJavaParser.java:3893) org.drools.javaparser.GeneratedJavaParser.BlockParseStart(GeneratedJavaParser.java:5193) org.drools.javaparser.JavaParser.parse(JavaParser.java:131) org.drools.javaparser.JavaParser.simplifiedParse(JavaParser.java:337) org.drools.javaparser.JavaParser.parseBlock(JavaParser.java:321) org.drools.modelcompiler.builder.generator.Consequence.rewriteConsequenceBlock(Consequence.java:255)
- is incorporated by
-
RHDM-818 Parse error with executable-model, java dialect, modify block and comma
- Closed