[
http://jira.jboss.com/jira/browse/JBAOP-471?page=all ]
Flavia Rainone resolved JBAOP-471.
----------------------------------
Resolution: Done
Method enforceArgsConsistency() not found on field interception with
@Arg-annotated param
-----------------------------------------------------------------------------------------
Key: JBAOP-471
URL:
http://jira.jboss.com/jira/browse/JBAOP-471
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.0.0.beta1
Reporter: Flavia Rainone
Assigned To: Flavia Rainone
Fix For: 2.0.0.beta2
The method enforceArgsConsistency() is not generated but is used on field interceptions
when there is an @Arg-annotated parameter on an around advice.
The result:
Error generating joinpoint class for joinpoint Field Write[field=public java.util.List
org.jboss.test.aop.annotatedAdviceParams.ArgsPOJO.field5]
java.lang.RuntimeException: Error generating joinpoint class for joinpoint Field
Write[field=public java.util.List org.jboss.test.aop.annotatedAdviceParams.A
rgsPOJO.field5]
at
org.jboss.aop.instrument.JoinPointGenerator.doGenerateJoinPointClass(JoinPointGenerator.java:310)
at
org.jboss.aop.instrument.JoinPointGenerator.access$100(JoinPointGenerator.java:75)
at
org.jboss.aop.instrument.JoinPointGenerator$GenerateJoinPointClassAction$1$1.run(JoinPointGenerator.java:1618)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.aop.instrument.JoinPointGenerator$GenerateJoinPointClassAction$1.generateJoinPointClass(JoinPointGenerator.java:1614)
at
org.jboss.aop.instrument.JoinPointGenerator.generateJoinPointClass(JoinPointGenerator.java:244)
at
org.jboss.aop.GeneratedClassAdvisor.generateJoinPointClass(GeneratedClassAdvisor.java:1023)
at
org.jboss.test.aop.annotatedAdviceParams.ArgsPOJO$ArgsPOJOAdvisor.ArgsPOJO$ArgsPOJOAdvisor$field5_w_$aop(ArgsPOJO$ArgsPOJOAdvisor.java)
at
org.jboss.test.aop.annotatedAdviceParams.ArgsPOJO.field5_w_$aop(ArgsPOJO.java)
at
org.jboss.test.aop.annotatedAdviceParams.ArgTestCase.testGenerics3(ArgTestCase.java:480)
Caused by: java.lang.RuntimeException: Error creating invokeNext method: { try{
switch(++super.currentInterceptor){ case 1:enforceArgsConsistency
(); around6.around1(this.arg0);
break; case 2:enforceArgsConsistency(); around7.around2(this.arg0);
break; case 3:enforceArgsConsistency(); around8.around3(this.arg0);
break; case 4:enforceArgsConsistency(); around9.around4(this.arg0);
break; case 5:enforceArgsConsistency(); around10.around6(this.arg0);
break; default: this.dispatch(); } }finally{
--super.currentInterceptor; } return null;}
at
org.jboss.aop.instrument.JoinPointGenerator.createInvokeNextMethod(JoinPointGenerator.java:939)
at
org.jboss.aop.instrument.JoinPointGenerator.generateJoinpointClass(JoinPointGenerator.java:398)
at
org.jboss.aop.instrument.JoinPointGenerator.doGenerateJoinPointClass(JoinPointGenerator.java:276)
... 26 more
Caused by: javassist.CannotCompileException: [source error] enforceArgsConsistency() not
found in org.jboss.test.aop.annotatedAdviceParams.JoinPoint_w_field5
_16
at javassist.CtBehavior.setBody(CtBehavior.java:367)
at javassist.CtBehavior.setBody(CtBehavior.java:334)
at
org.jboss.aop.instrument.JoinPointGenerator.createInvokeNextMethod(JoinPointGenerator.java:935)
... 28 more
Caused by: compile error: enforceArgsConsistency() not found in
org.jboss.test.aop.annotatedAdviceParams.JoinPoint_w_field5_16
at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:716)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:681)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:241)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:329)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:350)
--
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