[
https://jira.jboss.org/jira/browse/JBAOP-567?page=com.atlassian.jira.plug...
]
Flavia Rainone closed JBAOP-567.
--------------------------------
Fix Version/s: 2.1.1.GA
(was: 2.0.2.GA)
Resolution: Done
Ommitted Default constructors causes CannotCompileException
-----------------------------------------------------------
Key: JBAOP-567
URL:
https://jira.jboss.org/jira/browse/JBAOP-567
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.0.0.CR8
Reporter: Flavia Rainone
Assignee: Flavia Rainone
Fix For: 2.1.1.GA
If a pointcut expression matches a ocult default constructor, we get this error:
_run-precompiled-test:
[echo] Compiling rebuildingchain with optimized=true and instrumentor
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
[aopc] javassist.CannotCompileException: [source error] Method
ConstructorExecutionSyncThread$PojoAdvisor_new_$aop is private
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:368)
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:334)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorConstructorExecutionTransformer.initialiseWrapper(GeneratedAdvisorConstructorExecutionTransformer.java:131)
[aopc] at
org.jboss.aop.instrument.ConstructorExecutionTransformer.buildConstructorWrappers(ConstructorExecutionTransformer.java:375)
[aopc] at
org.jboss.aop.instrument.ConstructorExecutionTransformer.transform(ConstructorExecutionTransformer.java:177)
[aopc] at
org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:747)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] at
org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1068)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:1010)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] Caused by: compile error: Method
ConstructorExecutionSyncThread$PojoAdvisor_new_$aop is private
[aopc] at
javassist.compiler.MemberCodeGen.getAccessiblePrivate(MemberCodeGen.java:665)
[aopc] at
javassist.compiler.MemberCodeGen.atMethodCallCore2(MemberCodeGen.java:612)
[aopc] at
javassist.compiler.MemberCodeGen.atMethodCallCore(MemberCodeGen.java:575)
[aopc] at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:523)
[aopc] at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:243)
[aopc] at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
[aopc] at javassist.compiler.CodeGen.compileExpr(CodeGen.java:229)
[aopc] at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:597)
[aopc] at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:424)
[aopc] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:362)
[aopc] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
[aopc] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:350)
[aopc] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
[aopc] at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:291)
[aopc] at javassist.compiler.Javac.compileBody(Javac.java:222)
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:360)
[aopc] ... 12 more
[aopc] java.lang.RuntimeException: failed to transform:
org.jboss.test.aop.rebuildingchain.ConstructorExecutionSyncThread$Pojo
[aopc] at
org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] at
org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1068)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:1010)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] Caused by: javassist.CannotCompileException: [source error] Method
ConstructorExecutionSyncThread$PojoAdvisor_new_$aop is private
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:368)
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:334)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorConstructorExecutionTransformer.initialiseWrapper(GeneratedAdvisorConstructorExecutionTransformer.java:131)
[aopc] at
org.jboss.aop.instrument.ConstructorExecutionTransformer.buildConstructorWrappers(ConstructorExecutionTransformer.java:375)
[aopc] at
org.jboss.aop.instrument.ConstructorExecutionTransformer.transform(ConstructorExecutionTransformer.java:177)
[aopc] at
org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:747)
[aopc] ... 7 more
[aopc] Caused by: compile error: Method
ConstructorExecutionSyncThread$PojoAdvisor_new_$aop is private
[aopc] at
javassist.compiler.MemberCodeGen.getAccessiblePrivate(MemberCodeGen.java:665)
[aopc] at
javassist.compiler.MemberCodeGen.atMethodCallCore2(MemberCodeGen.java:612)
[aopc] at
javassist.compiler.MemberCodeGen.atMethodCallCore(MemberCodeGen.java:575)
[aopc] at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:523)
[aopc] at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:243)
[aopc] at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
[aopc] at javassist.compiler.CodeGen.compileExpr(CodeGen.java:229)
[aopc] at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:597)
[aopc] at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:424)
[aopc] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:362)
[aopc] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
[aopc] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:350)
[aopc] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
[aopc] at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:291)
[aopc] at javassist.compiler.Javac.compileBody(Javac.java:222)
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:360)
[aopc] ... 12 more
[aopc] log4j:WARN No appenders could be found for logger
(org.jboss.aop.ClassicWeavingStrategy).
[aopc] log4j:WARN Please initialize the log4j system properly.
[aopc] Exception in thread "main" java.lang.RuntimeException:
java.lang.RuntimeException: failed to transform:
org.jboss.test.aop.rebuildingchain.ConstructorExecutionSyncThread$Pojo
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1079)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:1010)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] Caused by: java.lang.RuntimeException: failed to transform:
org.jboss.test.aop.rebuildingchain.ConstructorExecutionSyncThread$Pojo
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:148)
[aopc] at
org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1068)
[aopc] ... 4 more
[aopc] Caused by: java.lang.RuntimeException: failed to transform:
org.jboss.test.aop.rebuildingchain.ConstructorExecutionSyncThread$Pojo
[aopc] at
org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] ... 6 more
[aopc] Caused by: javassist.CannotCompileException: [source error] Method
ConstructorExecutionSyncThread$PojoAdvisor_new_$aop is private
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:368)
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:334)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorConstructorExecutionTransformer.initialiseWrapper(GeneratedAdvisorConstructorExecutionTransformer.java:131)
[aopc] at
org.jboss.aop.instrument.ConstructorExecutionTransformer.buildConstructorWrappers(ConstructorExecutionTransformer.java:375)
[aopc] at
org.jboss.aop.instrument.ConstructorExecutionTransformer.transform(ConstructorExecutionTransformer.java:177)
[aopc] at
org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:747)
[aopc] ... 7 more
[aopc] Caused by: compile error: Method
ConstructorExecutionSyncThread$PojoAdvisor_new_$aop is private
[aopc] at
javassist.compiler.MemberCodeGen.getAccessiblePrivate(MemberCodeGen.java:665)
[aopc] at
javassist.compiler.MemberCodeGen.atMethodCallCore2(MemberCodeGen.java:612)
[aopc] at
javassist.compiler.MemberCodeGen.atMethodCallCore(MemberCodeGen.java:575)
[aopc] at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:523)
[aopc] at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:243)
[aopc] at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
[aopc] at javassist.compiler.CodeGen.compileExpr(CodeGen.java:229)
[aopc] at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:597)
[aopc] at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:424)
[aopc] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:362)
[aopc] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
[aopc] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:350)
[aopc] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
[aopc] at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:291)
[aopc] at javassist.compiler.Javac.compileBody(Javac.java:222)
[aopc] at javassist.CtBehavior.setBody(CtBehavior.java:360)
[aopc] ... 12 more
To reproduce this error, comment out the empty default constructors present in the
following classes:
org.jboss.test.aop.rebuildingchain.ConstructorExecutionSyncThread
org.jboss.test.aop.rebuildingchain.ConstructionExecutionSyncThread
--
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