[jboss-jira] [JBoss JIRA] Closed: (JBAOP-718) ArrayIndexOutOfBoundsException on Advisor.updateConstructorPointcutAfterRemove
Flavia Rainone (JIRA)
jira-events at lists.jboss.org
Wed Apr 22 16:55:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAOP-718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flavia Rainone closed JBAOP-718.
--------------------------------
Resolution: Done
The cause of the bug is the extra constructor that Javassist generates for inner classes, a constructor that receives javassist.runtime.Inner. While this constructor is filtered out if you invoke CtClass.getDeclaredConstructors, the same does not happen when you call Class.getDelcaredConstructors(). This inconsistency was generating an Advisor.constructors collection with a size different from the size of constructorInfos collection.
> ArrayIndexOutOfBoundsException on Advisor.updateConstructorPointcutAfterRemove
> ------------------------------------------------------------------------------
>
> Key: JBAOP-718
> URL: https://jira.jboss.org/jira/browse/JBAOP-718
> Project: JBoss AOP
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 2.1.0.CR3
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 2.1.1.GA
>
>
> Apparently, the number of constructors is not the same as the number of constructor infos, which causes a ArrayIndexOutOfBoundsException at line 1432:
> if(constructorInfos != null && constructorInfos.length > 0)
> {
> for (int i = 0; i < constructors.length; i++)
> {
> 1432---> constructorInfos[i].resetInterceptors();
> Constructor<?> constructor = constructors[i];
> if (binding.getPointcut().matchesExecution(this, constructor))
> {
--
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
More information about the jboss-jira
mailing list