[
https://jira.jboss.org/jira/browse/JBRULES-2424?page=com.atlassian.jira.p...
]
Edson Tirelli resolved JBRULES-2424.
------------------------------------
Resolution: Done
The problem is triggered in case your fact class/interface has a method that matches the
following 3 conditions:
* it is public
* its name starts with "set"
* it has no parameters
That would make the ClassFieldInspector class to raise an exception, making it impossible
to create any field accessors for it.
Anyway, it is fixed now on trunk (to be released in M2) and branch 5.0.x. Meanwhile, the
possible workaround is to break one of the three conditions above: either make the method
non-public, or rename it to not start with "set" or add at least one (dummy)
parameter to it.
'Unable to create Field Extractor' error when the fact class
contains a method name that starts with "set" and has no parameters
--------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2424
URL:
https://jira.jboss.org/jira/browse/JBRULES-2424
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler, drools-core
Affects Versions: 5.0.0.FINAL, 5.0.1.FINAL, 5.1.0.M1
Reporter: Edson Tirelli
Assignee: Edson Tirelli
Fix For: 5.0.2, 5.1.0.M2
A bug in the ClassFieldInspector class raises an ArrayIndexOutOfBounds error when a fact
class/interface has a method whose name starts with "set" with no parameters.
Example:
public void setup();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira