Possible StackOverflowException from defineProducerMethods in
WebBeansAnnotatedTypeUtil
---------------------------------------------------------------------------------------
Key: OWB-471
URL: https://issues.apache.org/jira/browse/OWB-471
Project: OpenWebBeans
Issue Type: Bug
Components: Core
Affects Versions: 1.0.0-alpha-2
Reporter: Joe Bergmark
Assignee: Joe Bergmark
Priority: Minor
Fix For: 1.0.1
As part of calling DefinitionUtl.defineScope, WebBeansAnnotatedTypeUtil's
defineProducerMethod creates an error message using the AnnotatedMethodImpl's
toString method.
This toString method in turn calls it super in AbstractAnnotatedCallable, which
in turn calls toString on all of its AnnotatedParameterImpls. Unfortunately
then AnnotatedParameterImpl calls toString on its declaringCallable, which can
create an infinite loop if that turns out to be the original
AbstractAnnotatedCallable again.
This doesn't happen all of the time, so its probably an application issue, but
it would be better if we identified it as such rather than blowing up with a
stack overflow exception. I'll paste a snippet of the stacktrace below:
at
org.apache.webbeans.portable.AbstractAnnotatedCallable.toString(AbstractAnnotatedCallable.java:100)
at
org.apache.webbeans.portable.AnnotatedMethodImpl.toString(AnnotatedMethodImpl.java:74)
at
org.apache.webbeans.portable.AnnotatedParameterImpl.toString(AnnotatedParameterImpl.java:72)
at
org.apache.webbeans.portable.AbstractAnnotatedCallable.toString(AbstractAnnotatedCallable.java:100)
at
org.apache.webbeans.portable.AnnotatedMethodImpl.toString(AnnotatedMethodImpl.java:74)
at
org.apache.webbeans.portable.AnnotatedParameterImpl.toString(AnnotatedParameterImpl.java:72)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.