aboutsummaryrefslogtreecommitdiffstats
path: root/aspectj5rt
diff options
context:
space:
mode:
authoraclement <aclement>2008-02-28 21:09:20 +0000
committeraclement <aclement>2008-02-28 21:09:20 +0000
commitfca2a297a2c9bbb432280280e68c5619fda13fb6 (patch)
tree6c8be8ef56591a3c3ef057eb1a576a3af402a033 /aspectj5rt
parentcaf8960e2b98d6bbd4e5ade65f05e128c240ddc3 (diff)
downloadaspectj-fca2a297a2c9bbb432280280e68c5619fda13fb6.tar.gz
aspectj-fca2a297a2c9bbb432280280e68c5619fda13fb6.zip
fix for http://jira.springframework.org/browse/SPR-4512
Diffstat (limited to 'aspectj5rt')
-rw-r--r--aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java b/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java
index 93ba5cc6f..5ac17e26f 100644
--- a/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java
+++ b/aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java
@@ -34,8 +34,8 @@ public class AjTypeSystem {
* AspectJ-awareness on top.
*/
public static <T> AjType<T> getAjType(Class<T> fromClass) {
- if (ajTypes.containsKey(fromClass)) {
- WeakReference<AjType> weakRefToAjType = ajTypes.get(fromClass);
+ WeakReference<AjType> weakRefToAjType = ajTypes.get(fromClass);
+ if (weakRefToAjType!=null) {
AjType<T> theAjType = weakRefToAjType.get();
if (theAjType != null) {
return theAjType;