Rule, import with wildcards and variable / patternBinding
---------------------------------------------------------
Key: JBRULES-3266
URL:
https://issues.jboss.org/browse/JBRULES-3266
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.3.0.Final
Environment: Windows, Equinox
Reporter: Per Sterner
Assignee: Mark Proctor
I got the exception "java.lang.NoClassDefFoundError:
de/pelle7/testpackage/event/myEvent (wrong name:
de/pelle7/testpackage/event/MyEvent)" while adding my resources.
I removed the import wildcards and the error disappeard.
Finally I found the problem:
I used the patternBinding 'myEvent' and there is a class called 'MyEvent'
and I used an wildcard import where the class 'MyEvent' is located.
My solution is that I replaced all my pattern bindings with the suffix '$' which
is more convenient.
Perhaps it would be nice to produce an rule-compilation error. with a line notice.
--
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