CDI Weld and AspectJ - org.jboss.weld.exceptions.UnproxyableResolutionException

空扰寡人 提交于 2019-12-25 06:32:10

问题


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).

If I remove AspectJ it works, but I don't want that. Please Help.


回答1:


I got an answer from AspectJ's mailing list, they proposed adding a compile time flag if the method should be final or not, as a workaround. Thanks.



来源:https://stackoverflow.com/questions/6143917/cdi-weld-and-aspectj-org-jboss-weld-exceptions-unproxyableresolutionexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!