diff options
author | aclement <aclement> | 2006-04-13 09:24:46 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-04-13 09:24:46 +0000 |
commit | dc4e07a6b04b5b44cbb2134119f9b223add3ca65 (patch) | |
tree | 6ae937da541ad47f73355d1e0c77feade8658112 /org.aspectj.ajdt.core/src | |
parent | d1304320e905040d73d479b2cccaea0124718c01 (diff) | |
download | aspectj-dc4e07a6b04b5b44cbb2134119f9b223add3ca65.tar.gz aspectj-dc4e07a6b04b5b44cbb2134119f9b223add3ca65.zip |
test and fix for 136258
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index e562f3538..8b54db3dc 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java @@ -298,14 +298,14 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC public void doSupertypesFirst(ReferenceBinding rb,Collection yetToProcess) { if (rb instanceof SourceTypeBinding) { if (yetToProcess.contains(rb)) { - collectAllITDsAndDeclares((SourceTypeBinding)rb, yetToProcess); + collectAllITDsAndDeclares((SourceTypeBinding)rb, yetToProcess); } } else if (rb instanceof ParameterizedTypeBinding) { // If its a PTB we need to pull the SourceTypeBinding out of it. - ParameterizedTypeBinding ptb = (ParameterizedTypeBinding)rb; - if (ptb.type instanceof SourceTypeBinding && yetToProcess.contains(ptb.type)) { - collectAllITDsAndDeclares((SourceTypeBinding)ptb.type, yetToProcess); - } + ParameterizedTypeBinding ptb = (ParameterizedTypeBinding)rb; + if (ptb.type instanceof SourceTypeBinding && yetToProcess.contains(ptb.type)) { + collectAllITDsAndDeclares((SourceTypeBinding)ptb.type, yetToProcess); + } } } /** @@ -316,8 +316,9 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC */ private void collectAllITDsAndDeclares(SourceTypeBinding sourceType, Collection yetToProcess) { // Look at the supertype first - ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.COLLECTING_ITDS_AND_DECLARES, sourceType.sourceName); - + //ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.COLLECTING_ITDS_AND_DECLARES, sourceType.sourceName); + + yetToProcess.remove(sourceType); // look out our direct supertype doSupertypesFirst(sourceType.superclass(),yetToProcess); @@ -331,8 +332,7 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC buildInterTypeAndPerClause(sourceType.scope); addCrosscuttingStructures(sourceType.scope); - yetToProcess.remove(sourceType); - CompilationAndWeavingContext.leavingPhase(tok); + //CompilationAndWeavingContext.leavingPhase(tok); } /** |