[jboss-jira] [JBoss JIRA] (JBRULES-3366) When adding resources using both MVEL and Java dialects the JavaDialect constructor fails when dialectData is found and stored.

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Apr 3 10:40:47 EDT 2012


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

Mario Fusco resolved JBRULES-3366.
----------------------------------

    Resolution: Rejected


I cannot find any problem in using both mvel and java dialect in the same DRL. If you still have some issue about it could you please provide a failing test case?
                
> When adding resources using both MVEL and Java dialects the JavaDialect constructor fails when dialectData is found and stored.
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3366
>                 URL: https://issues.jboss.org/browse/JBRULES-3366
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 5.3.1.Final
>         Environment: Linux
>            Reporter: Alan Zall
>            Assignee: Mario Fusco
>
> In the constructor of JavaDialect, if pkg.getDialectRuntimeRegistry().getDialectData( ID ) returns a non null value, then a null is passed into the PackageStore constructor.
>         if ( pkg.getDialectRuntimeRegistry().getDialectData( ID ) == null ) {
>             data = new JavaDialectRuntimeData();
>             this.pkg.getDialectRuntimeRegistry().setDialectData( ID,
>                                                                  data );
>             data.onAdd( this.pkg.getDialectRuntimeRegistry(),
>                         this.packageBuilder.getRootClassLoader() );
>         }
>         this.packageStoreWrapper = new PackageStore( data,
>                                                      this.results );
> is fixed by:
>         if (( data = (JavaDialectRuntimeData) pkg.getDialectRuntimeRegistry().getDialectData( ID )) == null ) {
>             data = new JavaDialectRuntimeData();
>             this.pkg.getDialectRuntimeRegistry().setDialectData( ID,
>                                                                  data );
>             data.onAdd( this.pkg.getDialectRuntimeRegistry(),
>                         this.packageBuilder.getRootClassLoader() );
>         }
>         this.packageStoreWrapper = new PackageStore( data, this.results );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list