]> source.dussan.org Git - aspectj.git/commitdiff
AjLookupEnvironment: add new phase CONNECT_TYPE_HIERARCHY2
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 28 Sep 2023 03:51:38 +0000 (10:51 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 1 Oct 2023 05:46:25 +0000 (12:46 +0700)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
bridge/src/main/java/org/aspectj/bridge/context/CompilationAndWeavingContext.java
org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java

index bfb8ec190c3cdd113622f866ce369b915653fcb3..451c9cca7137864d9e64045e4d4d60cfbb5473c6 100644 (file)
@@ -41,7 +41,7 @@ public class CompilationAndWeavingContext {
        public static final int COMPLETING_TYPE_BINDINGS = 6;
        public static final int PROCESSING_DECLARE_PARENTS = 7;
        public static final int CHECK_AND_SET_IMPORTS = 8;
-       public static final int CONNECTING_TYPE_HIERARCHY = 9;
+       public static final int CONNECTING_TYPE_HIERARCHY1 = 9;
        public static final int BUILDING_FIELDS_AND_METHODS = 10;
        public static final int COLLECTING_ITDS_AND_DECLARES = 11;
        public static final int PROCESSING_DECLARE_ANNOTATIONS = 12;
@@ -54,31 +54,32 @@ public class CompilationAndWeavingContext {
        public static final int FIXING_SUPER_CALLS_IN_ITDS = 19;
        public static final int FIXING_SUPER_CALLS = 20;
        public static final int OPTIMIZING_THIS_JOIN_POINT_CALLS = 21;
+       public static final int CONNECTING_TYPE_HIERARCHY2 = 22;
 
        // "BACK END"
 
-       public static final int WEAVING = 22;
-       public static final int PROCESSING_REWEAVABLE_STATE = 23;
-       public static final int PROCESSING_TYPE_MUNGERS = 24;
-       public static final int WEAVING_ASPECTS = 25;
-       public static final int WEAVING_CLASSES = 26;
-       public static final int WEAVING_TYPE = 27;
-       public static final int MATCHING_SHADOW = 28;
-       public static final int IMPLEMENTING_ON_SHADOW = 29;
-       public static final int MATCHING_POINTCUT = 30;
-       public static final int MUNGING_WITH = 31;
-       public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY = 32;
+       public static final int WEAVING = 23;
+       public static final int PROCESSING_REWEAVABLE_STATE = 24;
+       public static final int PROCESSING_TYPE_MUNGERS = 25;
+       public static final int WEAVING_ASPECTS = 26;
+       public static final int WEAVING_CLASSES = 27;
+       public static final int WEAVING_TYPE = 28;
+       public static final int MATCHING_SHADOW = 29;
+       public static final int IMPLEMENTING_ON_SHADOW = 30;
+       public static final int MATCHING_POINTCUT = 31;
+       public static final int MUNGING_WITH = 32;
+       public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY = 33;
 
        // phase names
        public static final String[] PHASE_NAMES = new String[] { "batch building", "incrementally building",
                        "processing compilation unit", "resolving types defined in compilation unit",
                        "analysing types defined in compilation unit", "generating unwoven code for type defined in compilation unit",
-                       "completing type bindings", "processing declare parents", "checking and setting imports", "connecting type hierarchy",
+                       "completing type bindings", "processing declare parents", "checking and setting imports", "connecting type hierarchy 1",
                        "building fields and methods", "collecting itds and declares", "processing declare annotations",
                        "weaving intertype declarations", "resolving pointcut declarations", "adding declare warning and errors",
                        "validating @AspectJ annotations", "creating accessors for inlining", "adding @AspectJ annotations",
                        "fixing super calls in ITDs in interface context", "fixing super calls in ITDs",
-                       "optimizing thisJoinPoint calls",
+                       "optimizing thisJoinPoint calls", "connecting type hierarchy 2",
 
                        // BACK END
 
index a97f3fa8a1cdaa187e2599ae08ef0da3509f3881..ff30bfc29cda1c2c28f34a7b1633ab61509808e8 100644 (file)
@@ -146,14 +146,14 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC
                stepCompleted = CHECK_AND_SET_IMPORTS;
 
                for (int i = lastCompletedUnitIndex + 1; i <= lastUnitIndex; i++) {
-                       ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.CONNECTING_TYPE_HIERARCHY,
+                       ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.CONNECTING_TYPE_HIERARCHY1,
                                        units[i].compilationResult.fileName);
                        units[i].scope.connectTypeHierarchy1();
                        CompilationAndWeavingContext.leavingPhase(tok);
                }
                stepCompleted = CONNECT_TYPE_HIERARCHY1;
                for (int i = lastCompletedUnitIndex + 1; i <= lastUnitIndex; i++) {
-                       ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.CONNECTING_TYPE_HIERARCHY,
+                       ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.CONNECTING_TYPE_HIERARCHY2,
                                        units[i].compilationResult.fileName);
                        units[i].scope.connectTypeHierarchy2();
                        CompilationAndWeavingContext.leavingPhase(tok);