[jboss-jira] [JBoss JIRA] (DROOLS-4542) Executable model compilation fails with map modification in action

Hiroko Miura (Jira) issues at jboss.org
Tue Sep 17 23:45:00 EDT 2019


Hiroko Miura created DROOLS-4542:
------------------------------------

             Summary: Executable model compilation fails with map modification in action
                 Key: DROOLS-4542
                 URL: https://issues.jboss.org/browse/DROOLS-4542
             Project: Drools
          Issue Type: Bug
          Components: core engine, executable model
    Affects Versions: 7.27.0.Final, 7.24.0.Final
         Environment: - 7.24.0.Final and later version
- building executable model 
            Reporter: Hiroko Miura
            Assignee: Mario Fusco
         Attachments: generateModel-build-error.zip

The following expression on update of Map in RHS cause error when bulding executable model.

* Pattern1
{noformat}
              m.mapVal["rule1"] = "value1";
{noformat}

* Error1 (NPE)

{noformat}
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel (default-generateModel) on project build-error: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel failed.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel (default-generateModel) on project build-error: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel failed.
{noformat}

or

* Pattern2
{noformat}
              m.getMapVal().put( "rule2", "value2" );
{noformat}

* Error2

{noformat}
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.24.0.Final:generateModel (default-generateModel) on project build-error: A type incompatibility occurred while executing org.kie:kie-maven-plugin:7.24.0.Final:generateModel: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
{noformat}

This does not happen with 7.23.0.Final.



--
This message was sent by Atlassian Jira
(v7.13.5#713005)


More information about the jboss-jira mailing list