From: aclement Date: Fri, 11 Dec 2009 04:24:12 +0000 (+0000) Subject: typemap accessible X-Git-Tag: V1_6_7~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eae7e29234516e4b2e9d3e6cadad66afb0347a4e;p=aspectj.git typemap accessible --- 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) {