diff options
author | Andy Clement | 2012-04-06 00:31:22 +0000 |
---|---|---|
committer | Andy Clement | 2012-04-06 00:31:22 +0000 |
commit | 48f0c6297715d0d211d70ff77d7a6fd1daa0ed39 (patch) | |
tree | a336835c5e989c2fd7fb799e3bc92b8cbaccc106 | |
parent | 7869329d868e3e38e5536a6774d7fc6d69377ffc (diff) | |
download | org.aspectj.shadows-aj_v_B79_R37x.tar.gz org.aspectj.shadows-aj_v_B79_R37x.tar.xz org.aspectj.shadows-aj_v_B79_R37x.zip |
missing MethodVerifier changeaj_v_B79_R37x
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java index bee116d5..70651913 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java @@ -304,6 +304,14 @@ void checkForRedundantSuperinterfaces(ReferenceBinding superclass, ReferenceBind } redundantInterfaces.add(inheritedInterface); TypeReference[] refs = this.type.scope.referenceContext.superInterfaces; + // AspectJ Extension + // The checking has found an interface against which it wants to report a problem. However if the + // interface was introduced via declare parents, it will not be able to find it and so cannot + // report on it. In these cases, just skip reporting the problem + if (refs==null) { + continue; + } + // AspectJ Extension end for (int r = 0, rl = refs.length; r < rl; r++) { if (refs[r].resolvedType == inheritedInterface) { problemReporter().redundantSuperInterface(this.type, refs[r], inheritedInterface, superType); @@ -340,6 +348,14 @@ void checkForRedundantSuperinterfaces(ReferenceBinding superclass, ReferenceBind } redundantInterfaces.add(inheritedInterface); TypeReference[] refs = this.type.scope.referenceContext.superInterfaces; + // AspectJ Extension + // The checking has found an interface against which it wants to report a problem. However if the + // interface was introduced via declare parents, it will not be able to find it and so cannot + // report on it. In these cases, just skip reporting the problem + if (refs==null) { + continue; + } + // AspectJ Extension end for (int r = 0, rl = refs.length; r < rl; r++) { if (refs[r].resolvedType == inheritedInterface) { problemReporter().redundantSuperInterface(this.type, refs[r], inheritedInterface, superType); |