summaryrefslogtreecommitdiffstats
path: root/loadtime
diff options
context:
space:
mode:
authoraclement <aclement>2009-12-11 04:24:12 +0000
committeraclement <aclement>2009-12-11 04:24:12 +0000
commiteae7e29234516e4b2e9d3e6cadad66afb0347a4e (patch)
tree817f126d199c0c97aaf9e6b5fe0fde60389efe41 /loadtime
parent00ff26acf5380709adaa2ee146c37021d09341b2 (diff)
downloadaspectj-eae7e29234516e4b2e9d3e6cadad66afb0347a4e.tar.gz
aspectj-eae7e29234516e4b2e9d3e6cadad66afb0347a4e.zip
typemap accessible
Diffstat (limited to 'loadtime')
-rw-r--r--loadtime/testsrc/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptorTest.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/loadtime/testsrc/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptorTest.java b/loadtime/testsrc/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptorTest.java
index a481d1c89..2cdb5312b 100644
--- a/loadtime/testsrc/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptorTest.java
+++ b/loadtime/testsrc/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptorTest.java
@@ -376,15 +376,7 @@ public class ClassLoaderWeavingAdaptorTest extends TestCase {
// --- infrastructure ---
private TypeMap accessTypeMap(TestClassLoaderWeavingAdaptor adaptor) {
- try {
- BcelWorld world = adaptor.getWorld();
- Field f = World.class.getDeclaredField("typeMap");
- f.setAccessible(true);
- TypeMap typeMap = (TypeMap) f.get(world);
- return typeMap;
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
+ return adaptor.getWorld().getTypeMap();
}
public TestClassLoaderWeavingAdaptor getAdaptor(String includePattern, String excludePattern) {