From eae7e29234516e4b2e9d3e6cadad66afb0347a4e Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 11 Dec 2009 04:24:12 +0000 Subject: [PATCH] typemap accessible --- .../weaver/loadtime/ClassLoaderWeavingAdaptorTest.java | 10 +--------- 1 file changed, 1 insertion(+), 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) { -- 2.39.5