[rules-dev] ClassFieldInspector and Groovy Classes
Terry Laurenzo
tlaurenzo at rcode.net
Wed Mar 14 11:03:20 EDT 2007
The attached diff (against 3.0.5 sources) adds a condition to the
ClassFieldInspector to not analyze methods named <clinit>. For some
reason, the Groovy compiler is outputing classes that were causing
this check to choke and throw an IllegalArgumentException because of
a <clinit> method with ACC_PUBLIC access code.
Applying this patch allows Drools to operate correctly with compiled
Groovy Fact classes.
This seems like a pretty innocuous change that someone should apply
to SVN. Unfortunately, it is rather difficult to create a test case
for it.
Terry Laurenzo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClassFieldInspector.java.diff
Type: application/octet-stream
Size: 1457 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20070314/95040b94/attachment.obj
More information about the rules-dev
mailing list