Bug 349149 - CDI Weld and AspectJ - org.jboss.weld.exceptions.UnproxyableResolutionException
Summary: CDI Weld and AspectJ - org.jboss.weld.exceptions.UnproxyableResolutionException
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.10   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 1.6.12   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-12 11:39 EDT by Cosmin CLA
Modified: 2011-06-13 14:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cosmin CLA 2011-06-12 11:39:46 EDT
I get this error when using AspectJ and CDI.

org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437 Normal scoped bean class myPackageName.myClassName is not proxyable because the type is final or it contains a final method static final java.lang.String myPackageName.myClassName.myMethodName_aroundBody0(myPackageName.myClassName.,org.aspectj.lang.JoinPoint).

This is because AspectJ somehow adds a final method in my class.
Andy suggested to  add the option to make them non-final (a compile time flag).

Thanks
Comment 1 Andrew Clement CLA 2011-06-13 14:22:34 EDT
new option committed.  -Xset:avoidFinal=true - this will avoid making the around advice infra methods final.  Should be in a dev build in the next day or so.