yurloc opened a new issue, #5846:
URL: https://github.com/apache/incubator-kie-drools/issues/5846

   ## Parent issue
   - #5678 
   
   ## Failing tests
   - 
`org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest#testMapCoreAliasing`
   
   ## Notes
   
   ## Rule code snippet
   ```
   declare HashMap @Traitable() end
   ```
   
   ## Error output
   ```
   ### parse : ANTLR4_PARSER_ENABLED = true
   
   java.lang.AssertionError: Annotated type java.util.HashMap  - undefined 
property in @annotation Traitable: 
org.drools.base.factmodel.traits.Traitable.value();
   New declaration of java.util.HashMap can't declare a different set of fields 
   existing : []
   declared : [eta, height, sen]
   diff : [++eta, ++height, ++sen]
   Unknown annotation property value
   Unable to process type HashMap
   Unable to resolve ObjectType 'PersonMap' : [Rule name='Log']
   
   Rule Compilation error : [Rule name='Don']
        PersonMap cannot be resolved to a type
   
   Rule Compilation error : [Rule name='Log']
        $p cannot be resolved to a variable
        The method setHeight(double) is undefined for the type Object
        The method setEta(int) is undefined for the type Object
   
   
   
        at 
org.drools.traits.compiler.CommonTraitTest.loadKnowledgeBaseFromString(CommonTraitTest.java:49)
        at 
org.drools.traits.compiler.factmodel.traits.TraitMapCoreTest.testMapCoreAliasing(TraitMapCoreTest.java:305)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to