]> source.dussan.org Git - aspectj.git/commitdiff
324135: npe fix
authoraclement <aclement>
Wed, 1 Sep 2010 00:29:30 +0000 (00:29 +0000)
committeraclement <aclement>
Wed, 1 Sep 2010 00:29:30 +0000 (00:29 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java

index e143c8aa070c0503f0d12c2ef393855ba450d1e7..83fca1b0092c6005cef350aab7e683bc55f3153d 100644 (file)
@@ -1762,6 +1762,9 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe
                }
                if (binaryNestedTypes != null) {
                        int bnLength = binaryNestedTypes.length;
+                       if (existingBinaryNestedTypes.length != bnLength) {
+                               return true;
+                       }
                        for (int m = 0; m < bnLength; m++) {
                                IBinaryNestedType bnt = binaryNestedTypes[m];
                                IBinaryNestedType existingBnt = existingBinaryNestedTypes[m];
@@ -2151,7 +2154,7 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe
                        ClassParser parser = new ClassParser(f.toString());
                        return world.buildBcelDelegate(referenceType, parser.parse(), true, false);
                } catch (IOException e) {
-                       System.err.println("Failed to recover "+referenceType);
+                       System.err.println("Failed to recover " + referenceType);
                        e.printStackTrace();
                }
                return null;