[jboss-jira] [JBoss JIRA] (DROOLS-5307) DMN test suite for strongly namespace clashing

Matteo Mortari (Jira) issues at jboss.org
Wed May 13 07:20:30 EDT 2020


    [ https://issues.redhat.com/browse/DROOLS-5307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095320#comment-14095320 ] 

Matteo Mortari commented on DROOLS-5307:
----------------------------------------

addendum: could be somehow be connected with this: https://github.com/kiegroup/drools/blob/c620d0088c3a09aaf6985775e2de7bd79b09fca6/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java#L185
which seems strange and slipped through the original review.

> DMN test suite for strongly namespace clashing
> ----------------------------------------------
>
>                 Key: DROOLS-5307
>                 URL: https://issues.redhat.com/browse/DROOLS-5307
>             Project: Drools
>          Issue Type: Task
>          Components: dmn engine
>            Reporter: Matteo Mortari
>            Assignee: Luca Molteni
>            Priority: Optional
>
> If 2 separate test (methods) in the JUnit suite of test, are using 2 different .dmn files, having however the same Namespace and Name, and both defining an ItemDefinition with a specified name, but different structure, the classloading will be confused (trying to access a method not belonging to the expected class). Trying to redefine the same class?
> Can be replicated by checking out the branch and reverting commit https://github.com/kiegroup/drools/pull/2886/commits/cb216ac827ea5b51afc82f98161a95ea8391aa1c



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list