Community
Participate
Working Groups
This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have just one type map for performance and memory efficiency.
Created attachment 31898 [details] Weaver module patch to allow a reflective LTW world.
Created attachment 31900 [details] Patch to loadtime module for reflective LTW world implementation
The LTWTests pass on a 1.4 VM but they fail in Eclipse on a 1.5 VM because org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate is not on the classpath for the tests module...
Created attachment 31901 [details] Weaver module patch to allow a reflective LTW world. Fixes bug in Java 1.4 implementation
I'm a little confused by the patch for loadtime ... since it just adds one commented out line?!? I presume it is meant to include the change to use LTWWorld? I'm committed the other changes - but I really would like some kind of testcase that verifies it at least behaves itself...
Andy has asked for a test, but Ron produced none. This should be closed as stalebug since the patch has been committed after the need for a test has been recorded elsewhere. If we had a tests module in bugzilla, I'd just reassign this.
presumed dealt with...