Hi, I have a problem with LTW and reweaving... While debugging if I change the content of a method (ex. the text of a System.out) and save the file, it wouldn't reflected. But if I save the save file again, this time the changes are reflected. And it repeats on cycles of two saves. The rare is that when I save and the changes are not reflected, in log appears the next two lines and when I save the file and changes are reflected this lines are not showed :
*[appclassloa...@2bbd86] info processing reweavable type test.weaved.Test: test\weaved\Test.java* *[appclassloa...@2bbd86] info successfully verified type test.aspects.TestAspect exists. Originates from test\aspects\TestAspect.java* This lines comes from the method processReweavableStateIfPresent(String, BcelObjectType) on the class org.aspectj.weaver.bcel.BcelWeaver My environment is: Windows XP SP3 32 bits Sun Java 1.6.0 Update 19 JDK Eclipse 3.5.1 AspectJ 1.6.9 M2 (the same occurs with 1.6.8) Project: A clean new basis java project that only has this test and AspectJ If a test project is needed, please let me know (is possible to attach files to mails of this mail list ?) Next is the console log (lines with #### are my comments of actions realized and expected behavior): [appclassloa...@2bbd86] info AspectJ Weaver Version 1.6.9.M2 built on Thursday May 13, 2010 at 23:38:39 GMT [appclassloa...@2bbd86] info register classloader sun.misc.launcher$appclassloa...@2bbd86 [appclassloa...@2bbd86] info using configuration /C:/development/eclipse/workspace/aspectj-test/bin/META-INF/aop.xml [appclassloa...@2bbd86] info register aspect test.aspects.TestAspect [appclassloa...@2bbd86] info weaver operating in reweavable mode. Need to verify any required types exist. [appclassloa...@2bbd86] debug not weaving 'test.Main' [appclassloa...@2bbd86] debug weaving 'test.weaved.Test' [appclassloa...@2bbd86] weaveinfo Join point 'method-execution(void test.weaved.Test.test())' in Type 'test.weaved.Test' (Test.java:16) advised by before advice from 'test.aspects.TestAspect' (TestAspect.java) [appclassloa...@2bbd86] weaveinfo Join point 'method-execution(void test.weaved.Test.test())' in Type 'test.weaved.Test' (Test.java:16) advised by after advice from 'test.aspects.TestAspect' (TestAspect.java) [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.Signature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.Factory' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.SourceLocation' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.MethodSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.MethodSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.CodeSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.MemberSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.CodeSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.MemberSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.SignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.ConstructorSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.ConstructorSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.JoinPoint$StaticPart' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.UnlockSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.UnlockSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.LockSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.LockSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.AdviceSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.AdviceSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.InitializerSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.InitializerSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.CatchClauseSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.CatchClauseSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.FieldSignatureImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.reflect.FieldSignature' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.JoinPoint' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.JoinPoint$EnclosingStaticPart' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.SignatureImpl$Cache' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.JoinPointImpl$StaticPartImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.SourceLocationImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.runtime.reflect.JoinPointImpl' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.ProceedingJoinPoint' [appclassloa...@2bbd86] debug weaving 'test.aspects.TestAspect' [appclassloa...@2bbd86] debug cannot weave 'org.aspectj.lang.NoAspectBoundException' >>> Before Aspect executed on: Fri May 21 15:25:22 GMT-03:00 2010 Test INFO: Source file modified on: Fri May 21 15:25:20 GMT-03:00 2010 INFO: Class file modified on: Fri May 21 15:25:20 GMT-03:00 2010 >>> After Aspect executed on: Fri May 21 15:25:22 GMT-03:00 2010 *###### Added the text "1st Change" and saved the file* INFO: (Enh120375): AspectJ attempting reweave of 'test/weaved/Test' [appclassloa...@2bbd86] debug weaving 'test.weaved.Test' *[appclassloa...@2bbd86] info processing reweavable type test.weaved.Test: test\weaved\Test.java* *[appclassloa...@2bbd86] info successfully verified type test.aspects.TestAspect exists. Originates from test\aspects\TestAspect.java* [appclassloa...@2bbd86] weaveinfo Join point 'method-execution(void test.weaved.Test.test())' in Type 'test.weaved.Test' (Test.java:16) advised by before advice from 'test.aspects.TestAspect' (TestAspect.java) [appclassloa...@2bbd86] weaveinfo Join point 'method-execution(void test.weaved.Test.test())' in Type 'test.weaved.Test' (Test.java:16) advised by after advice from 'test.aspects.TestAspect' (TestAspect.java) >>> Before Aspect executed on: Fri May 21 15:25:27 GMT-03:00 2010 Test *###### Should have been printed Test-1stChange-1274463600156* INFO: Source file modified on: Fri May 21 15:25:24 GMT-03:00 2010 INFO: Class file modified on: Fri May 21 15:25:24 GMT-03:00 2010 >>> After Aspect executed on: Fri May 21 15:25:27 GMT-03:00 2010 *###### Added the text "2nd Change" and saved the file* INFO: (Enh120375): AspectJ attempting reweave of 'test/weaved/Test' [appclassloa...@2bbd86] debug weaving 'test.weaved.Test' [appclassloa...@2bbd86] weaveinfo Join point 'method-execution(void test.weaved.Test.test())' in Type 'test.weaved.Test' (Test.java:18) advised by before advice from 'test.aspects.TestAspect' (TestAspect.java) [appclassloa...@2bbd86] weaveinfo Join point 'method-execution(void test.weaved.Test.test())' in Type 'test.weaved.Test' (Test.java:18) advised by after advice from 'test.aspects.TestAspect' (TestAspect.java) >>> Before Aspect executed on: Fri May 21 15:25:32 GMT-03:00 2010 Test - *2nd Change* INFO: Source file modified on: Fri May 21 15:25:29 GMT-03:00 2010 INFO: Class file modified on: Fri May 21 15:25:29 GMT-03:00 2010 >>> After Aspect executed on: Fri May 21 15:25:32 GMT-03:00 2010
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
