diff options
author | aclement <aclement> | 2011-05-02 18:39:08 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-05-02 18:39:08 +0000 |
commit | 1421c37dad11a8fb405339e90d7c91deb3d016a4 (patch) | |
tree | 30d3b3aaf41f4ff1f49f8e69463570c54d1ab732 | |
parent | e9acae115e163c11ce5a009d7a5aeb2f41f9f31b (diff) | |
download | aspectj-1421c37dad11a8fb405339e90d7c91deb3d016a4.tar.gz aspectj-1421c37dad11a8fb405339e90d7c91deb3d016a4.zip |
344326
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java index dc9b4f4af..5e7f4a88d 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java @@ -1471,8 +1471,12 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe if (!rType.isMissing()) { try { ClassFileReader reader = new ClassFileReader(thisTime.getBytes(), null); + boolean isAspect = false; + if (rType instanceof ReferenceType && ((ReferenceType) rType).getDelegate() != null) { + isAspect = ((ReferenceType) rType).isAspect(); + } this.resolvedTypeStructuresFromLastBuild.put(thisTime.getClassName(), new CompactTypeStructureRepresentation( - reader)); + reader, isAspect)); } catch (ClassFormatException cfe) { throw new BCException("Unexpected problem processing class", cfe); } @@ -1486,8 +1490,12 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe if (!newResolvedType.isMissing()) { try { ClassFileReader reader = new ClassFileReader(thisTime.getBytes(), null); - this.resolvedTypeStructuresFromLastBuild.put(thisTime.getClassName(), - new CompactTypeStructureRepresentation(reader)); + boolean isAspect = false; + if (newResolvedType instanceof ReferenceType && ((ReferenceType) newResolvedType).getDelegate() != null) { + isAspect = ((ReferenceType) newResolvedType).isAspect(); + } + this.resolvedTypeStructuresFromLastBuild.put(thisTime.getClassName(), new CompactTypeStructureRepresentation( + reader, isAspect)); } catch (ClassFormatException cfe) { throw new BCException("Unexpected problem processing class", cfe); } |