[jboss-jira] [JBoss JIRA] (DROOLS-1621) DMN validation fails when executed on IBM JDK when checking referenced types

Tibor Zimányi (JIRA) issues at jboss.org
Tue Jun 20 10:09:01 EDT 2017


Tibor Zimányi created DROOLS-1621:
-------------------------------------

             Summary: DMN validation fails when executed on IBM JDK when checking referenced types
                 Key: DROOLS-1621
                 URL: https://issues.jboss.org/browse/DROOLS-1621
             Project: Drools
          Issue Type: Bug
          Components: dmn engine
    Affects Versions: 7.0.0.Final
            Reporter: Tibor Zimányi
            Assignee: Edson Tirelli
             Fix For: 7.1.0.Final


When running test method ValidatorTest.testVALIDATION(), the test fails with this output[1]. This is caused by rules _TYPEREF_NOT_FEEL_NOT_DEF_p1_ and _TYPEREF_NOT_FEEL_NOT_DEF_p2_ from _dmn-validation-rules-typeref.drl_ matching during validation and so triggering errors. 

It looks like this is caused by different evaluation of constraint _not( ItemDefinition( name == $typeRef ) )_ on IBM JDK. $typeRef is of type QName. It looks like that when running on ORacle JDK, the toString() method of QName is invoked automatically so the ItemDefinition is matched. Otherwise, when running on IBM JDK, the constraint must be changed to _not( ItemDefinition( name == $typeRef.toString() ) )_ so ItemDefinition is matched. I'm not sure if this is really the cause of this problem or just a workaround. The session looks properly populated with facts during validation.  

[1] https://gist.github.com/baldimir/2dbc678886ad30a091a30bdb1d91f4cf



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list