Project: AspectJ
Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types
Reported: 2005-12-17 02:53:28 | Status: resolved fixed

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.

Files changed in fix:
weaver/src/org/aspectj/weaver/ltw/LTWWorld.java weaver/src/org/aspectj/weaver/reflect/IReflectionWorld.java weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java