[jboss-jira] [JBoss JIRA] (JBRULES-2217) Array Index Out of Bounds in ClassFieldInspector with certain method signatures

Mario Fusco (JIRA) jira-events at lists.jboss.org
Thu Jul 12 03:29:14 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco reassigned JBRULES-2217:
------------------------------------

    Assignee: Mario Fusco  (was: Mark Proctor)

    
> 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
>
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list