]
Mario Fusco resolved JBRULES-2217.
----------------------------------
Fix Version/s: 5.4.0.Final
5.3.1.Final
Resolution: Done
Array Index Out of Bounds in ClassFieldInspector with certain method
signatures
-------------------------------------------------------------------------------
Key: JBRULES-2217
URL:
https://issues.jboss.org/browse/JBRULES-2217
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.0.1.FINAL
Environment: JBOSS 4.0.5, Windows Server 2003
Reporter: Justin Waugh
Assignee: Mario Fusco
Fix For: 5.4.0.Final, 5.3.1.Final
If a class has a method named setXXX but is not a traditional bean method, (particularly
that it does not have a single parameter and returns a value) an ArrayOutOfBoundsException
will be thrown during class processing from ClassFieldInspector.storeGetterSetter (line
261). This is because in ClassFieldInspector.processClassWithoutByteCode() it improperly
detects the method as being a getter, because it does not filter by method name prefix
when trying to process get/is methods, but uses the common method
ClassFieldInspector.addToMapping() to handle the method.
an example problem method name would be:
public boolean setDefaultValueAndCheckValidity();
Granted, methods like that might not be ideal programming style, but shouldn't break
the processor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: