[
http://jira.jboss.com/jira/browse/JBAOP-307?page=all ]
Kabir Khan updated JBAOP-307:
-----------------------------
Summary: Instantiating a proxy for a class that has no default constructors throws
NPE (was: Instantiating a proxy that has no default parameters and uses them throws NPE)
Description:
This happens if instantiated via ctor injection in the mc, and the proxied class tries to
use the null parameters passed in by the aop proxy.
Solution:
Make the AOPConstructorJoinPoint and the GeneratedAOPProxyFactory use the ctor passed in
by the MC. Add all ctors from proxied class to proxy.
was:Make the AOPConstructorJoinPoint and the GeneratedAOPProxyFactory use the ctor
passed in by the MC. Add all ctors from proxied class to proxy
Instantiating a proxy for a class that has no default constructors
throws NPE
-----------------------------------------------------------------------------
Key: JBAOP-307
URL:
http://jira.jboss.com/jira/browse/JBAOP-307
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Kabir Khan
Assigned To: Kabir Khan
Fix For: 2.0.0.alpha2
This happens if instantiated via ctor injection in the mc, and the proxied class tries to
use the null parameters passed in by the aop proxy.
Solution:
Make the AOPConstructorJoinPoint and the GeneratedAOPProxyFactory use the ctor passed in
by the MC. Add all ctors from proxied class to proxy.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira