<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/05/2011 14:24, Michael Anstis wrote:
<blockquote
cite="mid:BANLkTinCaZRO-LyCTcXxC9KEPj75aZht7g@mail.gmail.com"
type="cite">I should mention the change has been applied to 5.2.x
as well, so the current release branch is also broken.<br>
</blockquote>
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.<br>
<br>
MVELDialectRuntimeData data = ( MVELDialectRuntimeData )
context.getPkg().getDialectRuntimeRegistry().getDialectData( "mvel"
);<br>
ParserConfiguration pconf =
data.getParserConfiguration();<br>
<br>
pconf then gives access to those imports. I didn't add getters to
MVELDialectRuntimeData, but if necesssary you can add them.<br>
<br>
Mark<br>
<br>
<blockquote
cite="mid:BANLkTinCaZRO-LyCTcXxC9KEPj75aZht7g@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">On 9 May 2011 13:53, Michael Anstis <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">The following commit for drools-compiler
breaks the Eclipse plug-in:-<br>
<br>
<a moz-do-not-send="true"
href="https://github.com/droolsjbpm/drools/commit/d1cb1b264610a1a17b631fda5a1574ff9d208be9#drools-compiler/src/main/java/org/drools/rule/builder/dialect/mvel/MVELDialect.java"
target="_blank">https://github.com/droolsjbpm/drools/commit/d1cb1b264610a1a17b631fda5a1574ff9d208be9#drools-compiler/src/main/java/org/drools/rule/builder/dialect/mvel/MVELDialect.java</a><br>
<br>
The changes to
drools-compiler/src/main/java/org/drools/rule/builder/dialect/mvel/MVELDialect.java
removing "getImports" and "getPackageImports" cause the
damage.<br>
<br>
Is there a workaround to retrieve the same information, can
their removal be reinstated?<br>
<br>
Thanks,<br>
<br>
Mike<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>