[ http://jira.jboss.com/jira/browse/JBAOP-71?page=history ]
Bill Burke updated JBAOP-71:
----------------------------
Fix Version: 1.1.1
> java.lang.StackOverflowError in execution of INTRODUCED interface methods
> -------------------------------------------------------------------------
>
> Key: JBAOP-71
> URL: http://jira.jboss.com/jira/browse/JBAOP-71
> Project: JBoss AOP
> Type: Bug
> Versions: 1.1
> Environment: Windows XP, JBoss-AOP v1.1 Standalone
> Reporter: Paul Extance
> Assignee: Bill Burke
> Priority: Critical
> Fix For: 1.1.1
>
>
> When an Interface is INTRODUCED into a class, the ClassAdvisor sets the
> 'unadvisedMethod' and the 'advisedMethod' fields on a MethodInfo instance to
> the same value (provided there was no implementation for an Interface's
> method on the original class).
> The introduced method invokes the invokeNext() method on an attached
> interceptor-stack and finally invokes the 'unadvisedMethod', which is itself.
> This results in an infinite loop, which raises java.lang.StackOverflowError
> There was no such problem in 'jboss-aop_1.0.0-FINAL', since the
> 'unadvisedMethod' would be set to null, if there was no implementation for an
> Interface's method on the original class.
> Since then, the following change to the ClassAdvisor sets an erroneous value
> to the 'unadvisedMethod' field on the MethodInfo instance
> http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-aop/src/main/org/jboss/aop/ClassAdvisor.java?r1=1.95&r2=1.96
> To fix the problem, remove 'if (umethod == null) umethod = amethod;' in the
> initializeMethodChain() method of ClassAdvisor.
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development