diff options
author | Andy Clement <aclement@pivotal.io> | 2017-10-20 12:37:58 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2017-10-20 12:37:58 -0700 |
commit | 8bbf29f6f15d97131b3ae2a5ac0da8ae449263cb (patch) | |
tree | 2709b84614b66bc3bc8dd08be230b8cd3b4962da /org.aspectj.matcher | |
parent | 332f3b9f46039745d98c8e2ef2ceff498c1945f6 (diff) | |
download | aspectj-8bbf29f6f15d97131b3ae2a5ac0da8ae449263cb.tar.gz aspectj-8bbf29f6f15d97131b3ae2a5ac0da8ae449263cb.zip |
Temporarily removing world reuse - needs a bit more thought
Diffstat (limited to 'org.aspectj.matcher')
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/reflect/ReflectionWorld.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/reflect/ReflectionWorld.java b/org.aspectj.matcher/src/org/aspectj/weaver/reflect/ReflectionWorld.java index d06db52d1..c784ff288 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/reflect/ReflectionWorld.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/reflect/ReflectionWorld.java @@ -43,6 +43,14 @@ public class ReflectionWorld extends World implements IReflectionWorld { private Map<String,Class<?>> inProgressResolutionClasses = new HashMap<String,Class<?>>(); public static ReflectionWorld getReflectionWorldFor(WeakClassLoaderReference classLoaderReference) { + + // Temporarily do as before. Although the cache makes things faster it needs a bit more thought because + // if the world has pointcutdesignators registered then someone may inadvertently register additional + // ones on reusing a world (when they would be expecting a clean world). We can't automatically + // clear them because we don't know when they are finished with. + return new ReflectionWorld(classLoaderReference); + + /* synchronized (rworlds) { // Tidyup any no longer relevant entries... for (Iterator<Map.Entry<WeakClassLoaderReference, ReflectionWorld>> it = rworlds.entrySet().iterator(); @@ -62,6 +70,7 @@ public class ReflectionWorld extends World implements IReflectionWorld { } return rworld; } + */ } public static void cleanUpWorlds() { |