On 09/05/2011 14:24, Michael Anstis wrote:
I should mention the change has been applied to 5.2.x as well, so the current release branch is also broken.
It's an easy fix. The imports moved to MVELDialectRuntimeData. This is so Drools can share an mvel ParserConfiguration at a package level, rather than creating one per MVELCompilationUnit. This should make compilation faster and lighter.

            MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) context.getPkg().getDialectRuntimeRegistry().getDialectData( "mvel" );
            ParserConfiguration pconf = data.getParserConfiguration();

pconf then gives access to those imports. I didn't add getters to MVELDialectRuntimeData, but if necesssary you can add them.

Mark


On 9 May 2011 13:53, Michael Anstis <michael.anstis@gmail.com> wrote:
The following commit for drools-compiler breaks the Eclipse plug-in:-

https://github.com/droolsjbpm/drools/commit/d1cb1b264610a1a17b631fda5a1574ff9d208be9#drools-compiler/src/main/java/org/drools/rule/builder/dialect/mvel/MVELDialect.java

The changes to drools-compiler/src/main/java/org/drools/rule/builder/dialect/mvel/MVELDialect.java removing "getImports" and "getPackageImports" cause the damage.

Is there a workaround to retrieve the same information, can their removal be reinstated?

Thanks,

Mike

_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users