[jboss-jira] [JBoss JIRA] (DROOLS-1717) Concurrency problems with enum constraints in MVEL

Tibor Zimányi (JIRA) issues at jboss.org
Wed Aug 30 07:56:01 EDT 2017


     [ https://issues.jboss.org/browse/DROOLS-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Zimányi updated DROOLS-1717:
----------------------------------
    Description: 
Having a test case like this [1], it sometimes fails on 

java.lang.RuntimeException: java.util.concurrent.ExecutionException: [Error: unable to resolve method using strict-mode: org.drools.compiler.integrationtests.facts.FactWithEnum.AnEnum()]
[Near : {... enumValue == AnEnum.SECOND ....}]

... see here [2]. When using direct imports that are commented out in the pasted example, I see very rarely also a ClassCastException. See stacktrace here [3]. 

Tested with mvel 2.2.8 on 6.5.x branch, 2.3.0 and 2.3.1 on master branch. 

[1] https://gist.github.com/baldimir/d0f5f21d5b1a383887c5ebfb6013e5af
[2] https://gist.github.com/baldimir/da5c9cb23fab2eae1576948c8ca2a4c8
[3] https://gist.github.com/baldimir/72eafe3909c21e25265cd3ee9a731d8e

  was:
Having a test case like this [1], it sometimes fails on 

java.lang.RuntimeException: java.util.concurrent.ExecutionException: [Error: unable to resolve method using strict-mode: org.drools.compiler.integrationtests.facts.FactWithEnum.AnEnum()]
[Near : {... enumValue == AnEnum.SECOND ....}]

... see here [2]. When using direct imports that are commented out in the pasted example, I see very rarely also a ClassCastException. See stacktrace here [3]. 

[1] https://gist.github.com/baldimir/d0f5f21d5b1a383887c5ebfb6013e5af
[2] https://gist.github.com/baldimir/da5c9cb23fab2eae1576948c8ca2a4c8
[3] https://gist.github.com/baldimir/72eafe3909c21e25265cd3ee9a731d8e



> Concurrency problems with enum constraints in MVEL
> --------------------------------------------------
>
>                 Key: DROOLS-1717
>                 URL: https://issues.jboss.org/browse/DROOLS-1717
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.2.0.Final
>            Reporter: Tibor Zimányi
>            Assignee: Mario Fusco
>              Labels: concurrency
>
> Having a test case like this [1], it sometimes fails on 
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: [Error: unable to resolve method using strict-mode: org.drools.compiler.integrationtests.facts.FactWithEnum.AnEnum()]
> [Near : {... enumValue == AnEnum.SECOND ....}]
> ... see here [2]. When using direct imports that are commented out in the pasted example, I see very rarely also a ClassCastException. See stacktrace here [3]. 
> Tested with mvel 2.2.8 on 6.5.x branch, 2.3.0 and 2.3.1 on master branch. 
> [1] https://gist.github.com/baldimir/d0f5f21d5b1a383887c5ebfb6013e5af
> [2] https://gist.github.com/baldimir/da5c9cb23fab2eae1576948c8ca2a4c8
> [3] https://gist.github.com/baldimir/72eafe3909c21e25265cd3ee9a731d8e



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



More information about the jboss-jira mailing list