diff options
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/main/java/org/aspectj/weaver/tools/cache/SimpleCache.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weaver/src/main/java/org/aspectj/weaver/tools/cache/SimpleCache.java b/weaver/src/main/java/org/aspectj/weaver/tools/cache/SimpleCache.java index 0cf759e73..31102c96f 100644 --- a/weaver/src/main/java/org/aspectj/weaver/tools/cache/SimpleCache.java +++ b/weaver/src/main/java/org/aspectj/weaver/tools/cache/SimpleCache.java @@ -72,8 +72,7 @@ public class SimpleCache { byte[] res = get(classname, bytes); if (Arrays.equals(SAME_BYTES, res)) { - // TODO: Should we return null (means "not transformed") in this case? - return bytes; + return null; } else { if (res != null) { initializeClass(classname, res, loader, protectionDomain); @@ -97,7 +96,7 @@ public class SimpleCache { String key = generateKey(classname, origbytes); - if (Arrays.equals(origbytes, wovenbytes)) { + if (wovenbytes == null || Arrays.equals(origbytes, wovenbytes)) { cacheMap.put(key, SAME_BYTES); return; } |