-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO-NOT-MERGE] Experiment a special prefix for Custom Operator #6140
base: main
Are you sure you want to change the base?
Conversation
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6140 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6140/1/display/redirect Test results:
Those are the test failures: org.drools.traits.compiler.factmodel.traits.LegacyTraitTest.traitWithMixedInterfacesExtendingEachOther(VirtualPropertyMode)[1][1,423]: no viable alternative at input 'this isA'[1,436]: mismatched input ',' expecting {'(', '.'} [1,451]: no viable alternative at input 'isA Foo2' [1,461]: missing '(' at ')' [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.LegacyTraitTest.traitWithMixedInterfacesExtendingEachOther(VirtualPropertyMode)[2][1,423]: no viable alternative at input 'this isA'[1,436]: mismatched input ',' expecting {'(', '.'} [1,451]: no viable alternative at input 'isA Foo2' [1,461]: missing '(' at ')' [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate10(VirtualPropertyMode)[1][63,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate10(VirtualPropertyMode)[2][63,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitTwoParentOneChild(VirtualPropertyMode)[1][78,26]: no viable alternative at input 'this isA'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitTwoParentOneChild(VirtualPropertyMode)[2][78,26]: no viable alternative at input 'this isA'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate1(VirtualPropertyMode)[1][56,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate1(VirtualPropertyMode)[2][56,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate2(VirtualPropertyMode)[1][66,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate2(VirtualPropertyMode)[2][66,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate3(VirtualPropertyMode)[1][65,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate3(VirtualPropertyMode)[2][65,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate4(VirtualPropertyMode)[1][Message [id=1, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=48, column=0text=mismatched input 'list.add' expecting ':'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=0, column=0 text=Parser returned a null Package]] org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate4(VirtualPropertyMode)[2][Message [id=1, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=48, column=0text=mismatched input 'list.add' expecting ':'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=0, column=0 text=Parser returned a null Package]] org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate5(VirtualPropertyMode)[1][51,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate5(VirtualPropertyMode)[2][51,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate6(VirtualPropertyMode)[1][59,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate6(VirtualPropertyMode)[2][59,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate7(VirtualPropertyMode)[1][57,0]: no viable alternative at input '@position(0)\nend\ndeclare trait ChildTrait\n@Trait( logical = true ) \n@propertyReactive\n name : String = "child"\n gender : String\nend\ndeclare Parent\n@Traitable( logical=true ) \n@propertyReactive\nend\ndeclare Child\n@Traitable( logical=true ) \n@propertyReactive\nend\n\nrule "Init" \n\nwhen\n \nthen\n Child c = new Child();\n Parent p = new Parent( "parent", c );\n insert(c); insert(p);\nend\n\nrule "trait parent" \n\nwhen\n $p : Parent( name == "parent" )\nthen\n ParentTrait p = don ( $p , ParentTrait.class );\nend\n\nrule "test parent and child traits" \n\nwhen\n $p : ParentTrait( child isA ChildTrait )\nthen\n list.add("correct");\nend\n\n\n'[13,28]: mismatched input '(' expecting ':' [15,8]: missing ':' at 'trait' [16,0]: mismatched input '@' expecting ':' [16,6]: extraneous input '(' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [16,16]: mismatched input '=' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', '[', ';', '.', '=', '<', '@', IDENTIFIER} [53,3]: mismatched input 'list.add' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate7(VirtualPropertyMode)[2][57,0]: no viable alternative at input '@position(0)\nend\ndeclare trait ChildTrait\n@Trait( logical = true ) \n@propertyReactive\n name : String = "child"\n gender : String\nend\ndeclare Parent\n@Traitable( logical=true ) \n@propertyReactive\nend\ndeclare Child\n@Traitable( logical=true ) \n@propertyReactive\nend\n\nrule "Init" \n\nwhen\n \nthen\n Child c = new Child();\n Parent p = new Parent( "parent", c );\n insert(c); insert(p);\nend\n\nrule "trait parent" \n\nwhen\n $p : Parent( name == "parent" )\nthen\n ParentTrait p = don ( $p , ParentTrait.class );\nend\n\nrule "test parent and child traits" \n\nwhen\n $p : ParentTrait( child isA ChildTrait )\nthen\n list.add("correct");\nend\n\n\n'[13,28]: mismatched input '(' expecting ':' [15,8]: missing ':' at 'trait' [16,0]: mismatched input '@' expecting ':' [16,6]: extraneous input '(' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [16,16]: mismatched input '=' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', '[', ';', '.', '=', '<', '@', IDENTIFIER} [53,3]: mismatched input 'list.add' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate8(VirtualPropertyMode)[1][50,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate8(VirtualPropertyMode)[2][50,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate9(VirtualPropertyMode)[1][48,42]: no viable alternative at input 'gender == "male", this not isA'[48,46]: no viable alternative at input 'isA ChildTrait' [49,21]: no viable alternative at input 'this isA' [59,28]: no viable alternative at input 'child isA' [59,48]: mismatched input ',' expecting {'(', '.'} [59,63]: mismatched input '==' expecting {'(', '.'} [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate9(VirtualPropertyMode)[2][48,42]: no viable alternative at input 'gender == "male", this not isA'[48,46]: no viable alternative at input 'isA ChildTrait' [49,21]: no viable alternative at input 'this isA' [59,28]: no viable alternative at input 'child isA' [59,48]: mismatched input ',' expecting {'(', '.'} [59,63]: mismatched input '==' expecting {'(', '.'} [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testDrools216[71,0]: no viable alternative at input '@traitable(logical=true) end \n\ndeclare trait Citizen\n@traitable\n citizenship : String = "Unknown"\nend\n\ndeclare trait Student extends Citizen\n@propertyReactive\n ID : String = "412314" @alias("personID")\n GPA : Double = 3.99\nend\n\ndeclare Person\n@Traitable\n personID : String\n isStudent : boolean\nend\n\ndeclare trait Worker\n@propertyReactive\n hasBenefits : Boolean = true\nend\n\n\nrule "1"\nsalience 1\nno-loop\nwhen\nthen\n Person p = new Person("1020",true);\n Map map = new HashMap();\n map.put("isEmpty",true);\n insert(p);\n insert(map);\n list.add("initialized");\nend\n\nrule "2"\nsalience 1\nno-loop\nwhen\n $stu : Person(isStudent == true)\n $map : Map(this["isEmpty"] == true)\nthen\n Student s = don( $stu , Student.class );\n $map.put("worker" , s);\n $map.put("isEmpty" , false);\n update($map);\n list.add("student is donned");\nend\n\nrule "3"\nsalience 1\nno-loop\nwhen\n $map : Map($stu : this["worker"] isA Student.class)\nthen\n Object obj = don( $map , Worker.class );\n list.add("worker is donned");\nend\n'[10,26]: mismatched input '(' expecting ':' [10,39]: extraneous input ')' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [68,4]: mismatched input 'Object' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testDrools217[69,0]: no viable alternative at input '@traitable(logical=true) end \n\ndeclare trait Citizen\n@traitable\n citizenship : String = "Unknown"\nend\n\ndeclare trait Student extends Citizen\n@propertyReactive\n ID : String = "412314" @alias("personID")\n GPA : Double = 3.99\nend\n\ndeclare Person\n@Traitable\n personID : String\n isStudent : boolean\nend\n\ndeclare trait Worker\n@propertyReactive\n hasBenefits : Boolean = true\nend\n\n\nrule "1"\nsalience 1\nno-loop\nwhen\nthen\n Person p = new Person("1020",true);\n Map map = new HashMap();\n map.put("isEmpty",true);\n insert(p);\n insert(map);\n list.add("initialized");\nend\n\nrule "2"\nsalience 1\nno-loop\nwhen\n $stu : Person(isStudent == true)\n $map : Map(this["isEmpty"] == true)\nthen\n Student s = don( $stu , Student.class );\n $map.put("worker" , s);\n $map.put("isEmpty" , false);\n update($map);\n list.add("student is donned");\nend\n\nrule "3"\nsalience 1\nno-loop\nwhen\n $map : Map($stu : this["worker"], $stu isA Student.class)\nthen\n Object obj = don( $map , Worker.class );\n list.add("worker is donned");\nend\n'[8,26]: mismatched input '(' expecting ':' [8,39]: extraneous input ')' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [66,4]: mismatched input 'Object' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testDrools218[97,0]: no viable alternative at input '@traitable(logical=true) end \ndeclare trait Student extends Citizen\n@propertyReactive\n ID : String = "412314" @alias("personID")\n GPA : Double = 3.99\nend\n\ndeclare Person\n@Traitable\n personID : String\n isStudent : boolean\nend\n\ndeclare trait Worker\n@propertyReactive\n //customer : Citizen\n hasBenefits : Boolean = true\nend\n\ndeclare trait StudentWorker extends Worker\n@propertyReactive\n //currentStudent : Citizen @alias("customer")\n tuitionWaiver : Boolean @alias("hasBenefits")\nend\n\nrule "1"\nsalience 1\nno-loop\nwhen\nthen\n Person p = new Person("1020",true);\n Map map = new HashMap();\n map.put("isEmpty",true);\n insert(p);\n insert(map);\n list.add("initialized");\nend\n\nrule "2"\nsalience 1\nno-loop\nwhen\n $stu : Person(isStudent == true)\n $map : Map(this["isEmpty"] == true)\nthen\n Student s = don( $stu , Student.class );\n $map.put("worker" , s);\n $map.put("isEmpty" , false);\n $map.put("hasBenefits",null);\n update($map);\n list.add("student is donned");\nend\n\nrule "3"\nsalience 1\nno-loop\nwhen\n $map : Map($stu : this["worker"])\n Map($stu isA Student.class, this == $map)\nthen\n Object obj = don( $map , Worker.class );\n list.add("worker is donned");\nend\n\nrule "4"\nsalience 1\nno-loop\nwhen\n $stu : Student()\nthen\n Object obj = don( $stu , StudentWorker.class );\n list.add("studentworker is donned");\nend\n\nrule "5"\nsalience 1\nno-loop\nwhen\n StudentWorker(tuitionWaiver == true)\nthen\n list.add("tuitionWaiver is true");\nend\n\n'[14,26]: mismatched input '(' expecting ':' [14,39]: extraneous input ')' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [94,4]: mismatched input 'list.add' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testMapCore2[75,21]: no viable alternative at input 'this not isA'[75,25]: no viable alternative at input 'isA StudentMap' [75,42]: missing '(' at ')' [0,0]: Parser returned a null Package org.drools.traits.compiler.integrationtests.TraitTypeGenerationTest.testNeedsException executing consequence for rule "Main" in org.drools.abductive.test: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Constructor.newInstance(Object[])" because "konst" is nullorg.drools.traits.compiler.integrationtests.TraitTypeGenerationTest.testMvelJittingWithTraitProxiesException executing consequence for rule "In1" in org.drools.test: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Constructor.newInstance(Object[])" because "konst" is nullorg.drools.traits.compiler.integrationtests.TraitTypeGenerationTest.testIsAWith2KContainersExpecting empty but was: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=11, column=0 text=no viable alternative at input 'age < 26, this not isA'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=11, column=0 text=no viable alternative at input 'isA Student'], Message [id=3, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=21, column=0 text=no viable alternative at input 'this isA'], Message [id=4, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=0, column=0 text=Parser returned a null Package]] org.drools.traits.compiler.integrationtests.TraitTypeGenerationTest.testWithDeclaredTypeAndTraitInDifferentPackagesException executing consequence for rule "R" in org.pkg3: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Constructor.newInstance(Object[])" because "konst" is nullorg.drools.traits.compiler.integrationtests.TraitTypeGenerationTest.testWithBeanAndTraitInDifferentPackagesException executing consequence for rule "R" in org.drools.test: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Constructor.newInstance(Object[])" because "konst" is null |
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6140 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6140/2/display/redirect Test results:
Those are the test failures: org.drools.traits.compiler.factmodel.traits.LegacyTraitTest.traitWithMixedInterfacesExtendingEachOther(VirtualPropertyMode)[1][1,423]: no viable alternative at input 'this isA'[1,436]: mismatched input ',' expecting {'(', '.'} [1,451]: no viable alternative at input 'isA Foo2' [1,461]: missing '(' at ')' [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.LegacyTraitTest.traitWithMixedInterfacesExtendingEachOther(VirtualPropertyMode)[2][1,423]: no viable alternative at input 'this isA'[1,436]: mismatched input ',' expecting {'(', '.'} [1,451]: no viable alternative at input 'isA Foo2' [1,461]: missing '(' at ')' [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate10(VirtualPropertyMode)[1][63,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate10(VirtualPropertyMode)[2][63,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitTwoParentOneChild(VirtualPropertyMode)[1][78,26]: no viable alternative at input 'this isA'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitTwoParentOneChild(VirtualPropertyMode)[2][78,26]: no viable alternative at input 'this isA'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate1(VirtualPropertyMode)[1][56,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate1(VirtualPropertyMode)[2][56,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate2(VirtualPropertyMode)[1][66,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate2(VirtualPropertyMode)[2][66,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate3(VirtualPropertyMode)[1][65,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate3(VirtualPropertyMode)[2][65,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate4(VirtualPropertyMode)[1][Message [id=1, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=48, column=0text=mismatched input 'list.add' expecting ':'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=0, column=0 text=Parser returned a null Package]] org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate4(VirtualPropertyMode)[2][Message [id=1, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=48, column=0text=mismatched input 'list.add' expecting ':'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=file0.drl, line=0, column=0 text=Parser returned a null Package]] org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate5(VirtualPropertyMode)[1][51,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate5(VirtualPropertyMode)[2][51,3]: mismatched input 'list.add' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate6(VirtualPropertyMode)[1][59,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate6(VirtualPropertyMode)[2][59,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate7(VirtualPropertyMode)[1][57,0]: no viable alternative at input '@position(0)\nend\ndeclare trait ChildTrait\n@Trait( logical = true ) \n@propertyReactive\n name : String = "child"\n gender : String\nend\ndeclare Parent\n@Traitable( logical=true ) \n@propertyReactive\nend\ndeclare Child\n@Traitable( logical=true ) \n@propertyReactive\nend\n\nrule "Init" \n\nwhen\n \nthen\n Child c = new Child();\n Parent p = new Parent( "parent", c );\n insert(c); insert(p);\nend\n\nrule "trait parent" \n\nwhen\n $p : Parent( name == "parent" )\nthen\n ParentTrait p = don ( $p , ParentTrait.class );\nend\n\nrule "test parent and child traits" \n\nwhen\n $p : ParentTrait( child isA ChildTrait )\nthen\n list.add("correct");\nend\n\n\n'[13,28]: mismatched input '(' expecting ':' [15,8]: missing ':' at 'trait' [16,0]: mismatched input '@' expecting ':' [16,6]: extraneous input '(' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [16,16]: mismatched input '=' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', '[', ';', '.', '=', '<', '@', IDENTIFIER} [53,3]: mismatched input 'list.add' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate7(VirtualPropertyMode)[2][57,0]: no viable alternative at input '@position(0)\nend\ndeclare trait ChildTrait\n@Trait( logical = true ) \n@propertyReactive\n name : String = "child"\n gender : String\nend\ndeclare Parent\n@Traitable( logical=true ) \n@propertyReactive\nend\ndeclare Child\n@Traitable( logical=true ) \n@propertyReactive\nend\n\nrule "Init" \n\nwhen\n \nthen\n Child c = new Child();\n Parent p = new Parent( "parent", c );\n insert(c); insert(p);\nend\n\nrule "trait parent" \n\nwhen\n $p : Parent( name == "parent" )\nthen\n ParentTrait p = don ( $p , ParentTrait.class );\nend\n\nrule "test parent and child traits" \n\nwhen\n $p : ParentTrait( child isA ChildTrait )\nthen\n list.add("correct");\nend\n\n\n'[13,28]: mismatched input '(' expecting ':' [15,8]: missing ':' at 'trait' [16,0]: mismatched input '@' expecting ':' [16,6]: extraneous input '(' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [16,16]: mismatched input '=' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', '[', ';', '.', '=', '<', '@', IDENTIFIER} [53,3]: mismatched input 'list.add' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate8(VirtualPropertyMode)[1][50,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate8(VirtualPropertyMode)[2][50,3]: mismatched input '//shed ( $p , ParentTrait.class );' expecting ':'[0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate9(VirtualPropertyMode)[1][48,42]: no viable alternative at input 'gender == "male", this not isA'[48,46]: no viable alternative at input 'isA ChildTrait' [49,21]: no viable alternative at input 'this isA' [59,28]: no viable alternative at input 'child isA' [59,48]: mismatched input ',' expecting {'(', '.'} [59,63]: mismatched input '==' expecting {'(', '.'} [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitFieldsAndLegacyClassesTest.testTraitFieldUpdate9(VirtualPropertyMode)[2][48,42]: no viable alternative at input 'gender == "male", this not isA'[48,46]: no viable alternative at input 'isA ChildTrait' [49,21]: no viable alternative at input 'this isA' [59,28]: no viable alternative at input 'child isA' [59,48]: mismatched input ',' expecting {'(', '.'} [59,63]: mismatched input '==' expecting {'(', '.'} [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testDrools216[71,0]: no viable alternative at input '@traitable(logical=true) end \n\ndeclare trait Citizen\n@traitable\n citizenship : String = "Unknown"\nend\n\ndeclare trait Student extends Citizen\n@propertyReactive\n ID : String = "412314" @alias("personID")\n GPA : Double = 3.99\nend\n\ndeclare Person\n@Traitable\n personID : String\n isStudent : boolean\nend\n\ndeclare trait Worker\n@propertyReactive\n hasBenefits : Boolean = true\nend\n\n\nrule "1"\nsalience 1\nno-loop\nwhen\nthen\n Person p = new Person("1020",true);\n Map map = new HashMap();\n map.put("isEmpty",true);\n insert(p);\n insert(map);\n list.add("initialized");\nend\n\nrule "2"\nsalience 1\nno-loop\nwhen\n $stu : Person(isStudent == true)\n $map : Map(this["isEmpty"] == true)\nthen\n Student s = don( $stu , Student.class );\n $map.put("worker" , s);\n $map.put("isEmpty" , false);\n update($map);\n list.add("student is donned");\nend\n\nrule "3"\nsalience 1\nno-loop\nwhen\n $map : Map($stu : this["worker"] isA Student.class)\nthen\n Object obj = don( $map , Worker.class );\n list.add("worker is donned");\nend\n'[10,26]: mismatched input '(' expecting ':' [10,39]: extraneous input ')' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [68,4]: mismatched input 'Object' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testDrools217[69,0]: no viable alternative at input '@traitable(logical=true) end \n\ndeclare trait Citizen\n@traitable\n citizenship : String = "Unknown"\nend\n\ndeclare trait Student extends Citizen\n@propertyReactive\n ID : String = "412314" @alias("personID")\n GPA : Double = 3.99\nend\n\ndeclare Person\n@Traitable\n personID : String\n isStudent : boolean\nend\n\ndeclare trait Worker\n@propertyReactive\n hasBenefits : Boolean = true\nend\n\n\nrule "1"\nsalience 1\nno-loop\nwhen\nthen\n Person p = new Person("1020",true);\n Map map = new HashMap();\n map.put("isEmpty",true);\n insert(p);\n insert(map);\n list.add("initialized");\nend\n\nrule "2"\nsalience 1\nno-loop\nwhen\n $stu : Person(isStudent == true)\n $map : Map(this["isEmpty"] == true)\nthen\n Student s = don( $stu , Student.class );\n $map.put("worker" , s);\n $map.put("isEmpty" , false);\n update($map);\n list.add("student is donned");\nend\n\nrule "3"\nsalience 1\nno-loop\nwhen\n $map : Map($stu : this["worker"], $stu isA Student.class)\nthen\n Object obj = don( $map , Worker.class );\n list.add("worker is donned");\nend\n'[8,26]: mismatched input '(' expecting ':' [8,39]: extraneous input ')' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [66,4]: mismatched input 'Object' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testDrools218[97,0]: no viable alternative at input '@traitable(logical=true) end \ndeclare trait Student extends Citizen\n@propertyReactive\n ID : String = "412314" @alias("personID")\n GPA : Double = 3.99\nend\n\ndeclare Person\n@Traitable\n personID : String\n isStudent : boolean\nend\n\ndeclare trait Worker\n@propertyReactive\n //customer : Citizen\n hasBenefits : Boolean = true\nend\n\ndeclare trait StudentWorker extends Worker\n@propertyReactive\n //currentStudent : Citizen @alias("customer")\n tuitionWaiver : Boolean @alias("hasBenefits")\nend\n\nrule "1"\nsalience 1\nno-loop\nwhen\nthen\n Person p = new Person("1020",true);\n Map map = new HashMap();\n map.put("isEmpty",true);\n insert(p);\n insert(map);\n list.add("initialized");\nend\n\nrule "2"\nsalience 1\nno-loop\nwhen\n $stu : Person(isStudent == true)\n $map : Map(this["isEmpty"] == true)\nthen\n Student s = don( $stu , Student.class );\n $map.put("worker" , s);\n $map.put("isEmpty" , false);\n $map.put("hasBenefits",null);\n update($map);\n list.add("student is donned");\nend\n\nrule "3"\nsalience 1\nno-loop\nwhen\n $map : Map($stu : this["worker"])\n Map($stu isA Student.class, this == $map)\nthen\n Object obj = don( $map , Worker.class );\n list.add("worker is donned");\nend\n\nrule "4"\nsalience 1\nno-loop\nwhen\n $stu : Student()\nthen\n Object obj = don( $stu , StudentWorker.class );\n list.add("studentworker is donned");\nend\n\nrule "5"\nsalience 1\nno-loop\nwhen\n StudentWorker(tuitionWaiver == true)\nthen\n list.add("tuitionWaiver is true");\nend\n\n'[14,26]: mismatched input '(' expecting ':' [14,39]: extraneous input ')' expecting {'unit', 'function', 'global', 'declare', 'trait', 'type', 'rule', 'query', 'when', 'then', 'end', 'and', 'or', 'exists', 'not', 'in', 'from', 'collect', 'accumulate', 'acc', 'init', 'action', 'reverse', 'result', 'entry-point', 'eval', 'forall', 'over', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', 'window', 'attributes', 'salience', 'enabled', 'no-loop', 'auto-focus', 'lock-on-active', 'refract', 'direct', 'agenda-group', 'activation-group', 'ruleflow-group', 'date-effective', 'date-expires', 'dialect', 'calendars', 'timer', 'duration', 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extends', 'final', 'finally', 'float', 'for', 'if', 'goto', 'implements', 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'try', 'void', 'volatile', 'while', 'module', 'open', 'requires', 'exports', 'opens', 'to', 'uses', 'provides', 'with', 'transitive', 'var', 'yield', 'record', 'sealed', 'permits', 'non-sealed', IDENTIFIER} [94,4]: mismatched input 'list.add' expecting ':' [0,0]: Cannot invoke "org.drools.drl.parser.antlr4.DRLParser$DrlQualifiedNameContext.getText()" because "ctx.name" is null [0,0]: Parser returned a null Package org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testMapCore2[75,21]: no viable alternative at input 'this not isA'[75,25]: no viable alternative at input 'isA StudentMap' [75,42]: missing '(' at ')' [0,0]: Parser returned a null Package org.drools.traits.compiler.integrationtests.TraitTypeGenerationTest.testIsAWith2KContainersExpecting empty but was: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=11, column=0 text=no viable alternative at input 'age < 26, this not isA'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=11, column=0 text=no viable alternative at input 'isA Student'], Message [id=3, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=21, column=0 text=no viable alternative at input 'this isA'], Message [id=4, kieBase=defaultKieBase, level=ERROR, path=isA.drl, line=0, column=0 text=Parser returned a null Package]] org.kie.maven.plugin.it.kie-maven-plugin-test-kjar-11-default.kie-maven-plugin-test-kjar-11-defaultThe build exited with code 143. See /home/jenkins/jenkins-agent/workspace/llrequest_jobs_drools-pr_PR-6140@2/kogito-pipelines/bc/apache_incubator-kie-drools/kie-maven-plugin/target/it/kie-maven-plugin-test-kjar-11-default/build.log for details. |
Experiment to use
##
as a prefix for Custom Operator.This PR sets profile
enableNewParser
as activeByDefault.