diff options
author | aclement <aclement> | 2008-05-08 21:13:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-08 21:13:47 +0000 |
commit | 6b86f1f2afc52004dea6093d4b59b0f50164bc5d (patch) | |
tree | 9ecbc922751aeaeedbfb420af3ed2fd50acf3b6a /org.aspectj.ajdt.core | |
parent | 4e315bcea79925d24801acac5465982a683c6e7a (diff) | |
download | aspectj-6b86f1f2afc52004dea6093d4b59b0f50164bc5d.tar.gz aspectj-6b86f1f2afc52004dea6093d4b59b0f50164bc5d.zip |
231187: test and fix. Do the parameterization check after ITDs have applied
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java | 8 |
1 files changed, 6 insertions, 2 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 208396893..744a39090 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 @@ -142,7 +142,7 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC for (int i = lastCompletedUnitIndex + 1; i <= lastUnitIndex; i++) { ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.BUILDING_FIELDS_AND_METHODS, units[i].compilationResult.fileName); - units[i].scope.checkParameterizedTypes(); +// units[i].scope.checkParameterizedTypes(); do this check a little later, after ITDs applied to stbs units[i].scope.buildFieldsAndMethods(); CompilationAndWeavingContext.leavingPhase(tok); } @@ -224,7 +224,11 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC weaveInterTypeDeclarations(units[i].scope, typeMungers, declareParents,declareAnnotationOnTypes); } } - + + for (int i = lastCompletedUnitIndex + 1; i <= lastUnitIndex; i++) { + units[i].scope.checkParameterizedTypes(); + } + for (int i = lastCompletedUnitIndex +1; i<=lastUnitIndex; i++) { SourceTypeBinding[] b = units[i].scope.topLevelTypes; for (int j = 0; j < b.length; j++) { |