]> source.dussan.org Git - aspectj.git/commitdiff
292264: declare error/warning with type patterns
authoraclement <aclement>
Mon, 5 Apr 2010 22:24:07 +0000 (22:24 +0000)
committeraclement <aclement>
Mon, 5 Apr 2010 22:24:07 +0000 (22:24 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

index b4e36cf4de0ab539144815ae536a130d3e14ebdc..04dcb35f39272c3d91819edf2298aa8d32c23789 100644 (file)
@@ -1831,7 +1831,7 @@ public class BcelWeaver {
                                                                inReweavableMode);
                                        }
 
-                               //      checkDeclareTypeErrorOrWarning(world, classType);
+                                       checkDeclareTypeErrorOrWarning(world, classType);
 
                                        if (mightNeedBridgeMethods) {
                                                isChanged = BcelClassWeaver.calculateAnyRequiredBridgeMethods(world, clazz) || isChanged;
@@ -1864,8 +1864,8 @@ public class BcelWeaver {
                                        String messageText = "trouble in: \n" + classDebugInfo;
                                        getWorld().getMessageHandler().handleMessage(new Message(messageText, IMessage.ABORT, re, null));
                                }
-//                     } else {
-//                             checkDeclareTypeErrorOrWarning(world, classType);
+                       } else {
+                                checkDeclareTypeErrorOrWarning(world, classType);
                        }
                        // this is very odd return behavior trying to keep everyone happy
                        /*
@@ -1903,7 +1903,7 @@ public class BcelWeaver {
 
        // ---- writing
 
-/*     private void checkDeclareTypeErrorOrWarning(BcelWorld world2, BcelObjectType classType) {
+       private void checkDeclareTypeErrorOrWarning(BcelWorld world2, BcelObjectType classType) {
                List<DeclareTypeErrorOrWarning> dteows = world.getDeclareTypeEows();
                for (DeclareTypeErrorOrWarning dteow : dteows) {
                        if (dteow.getTypePattern().matchesStatically(classType.getResolvedTypeX())) {
@@ -1917,7 +1917,6 @@ public class BcelWeaver {
                        }
                }
        }
-*/
 
        private void dumpUnchanged(UnwovenClassFile classFile) throws IOException {
                if (zipOutputStream != null) {