[weld-issues] [JBoss JIRA] Commented: (WELD-296) StackOverflow Decorators

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Wed Nov 18 11:52:30 EST 2009


    [ https://jira.jboss.org/jira/browse/WELD-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12495355#action_12495355 ] 

Marius Bogoevici commented on WELD-296:
---------------------------------------

This is caused by the interplay between the Decorator proxy and the ClientProxy (removing the application scope elliminates the issue). Will provide later in the day/tomorrow morning.



> StackOverflow Decorators
> ------------------------
>
>                 Key: WELD-296
>                 URL: https://jira.jboss.org/jira/browse/WELD-296
>             Project: Weld
>          Issue Type: Bug
>          Components: Interceptors and Decorators
>            Reporter: Roger Kitain
>            Assignee: Marius Bogoevici
>
> See: https://glassfish.dev.java.net/issues/show_bug.cgi?id=11045
> After export javax.decorator package by modify weld-osgi-bundle.jar, I can
> deploy the application. That error you encountered may be caused by there is no
> qualifiers on the field of PaymenetService in Payment class. 
> I have attached the NetBeans 6.8 project of this example application.
> However, there are recursive calls on the decorated method on the Decorator
> class (SecurePaymenService.pay) and causes stack overflow. Also, if I add a
> abstract modifier on the Decorator class, there is an error when run the
> application, states that can't instantiate class (the decorator class).
> I think this recursive call issue is a bug of WELD and not Glassfish, because I
> can reproduce it on Tomcat (use a modified number-guess example application, add
> a decorator). However, if you investigate this issue (and the instantiation
> abstract Decorator class issue) will be very appreciate. 

-- 
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 weld-issues mailing list