Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Clement2012-04-06 00:31:22 +0000
committerAndy Clement2012-04-06 00:31:22 +0000
commit48f0c6297715d0d211d70ff77d7a6fd1daa0ed39 (patch)
treea336835c5e989c2fd7fb799e3bc92b8cbaccc106
parent7869329d868e3e38e5536a6774d7fc6d69377ffc (diff)
downloadorg.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.java16
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);

Back to the top