From: aclement Date: Tue, 8 Nov 2005 11:08:54 +0000 (+0000) Subject: final part of fix for pr115038 X-Git-Tag: V1_5_0RC1~225 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6cb89d22cff49645245458802aef0b623c8b6c7c;p=aspectj.git final part of fix for pr115038 --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java index ef7ecdb7e..82e29fa6a 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeDeclaration.java @@ -357,13 +357,16 @@ public abstract class InterTypeDeclaration extends AjMethodDeclaration { if (rb instanceof TypeVariableBinding) { scope.problemReporter().signalError(sourceStart,sourceEnd, "Cannot make inter-type declarations on type variables, use an interface and declare parents"); + // to prevent disgusting cascading errors after this problem - lets null out what leads to them (pr105038) + this.arguments=null; + this.returnType=new SingleTypeReference(TypeReference.VOID,0L); + this.ignoreFurtherInvestigation=true; ReferenceBinding closestMatch = null; if (((TypeVariableBinding)rb).firstBound!=null) { closestMatch = ((TypeVariableBinding)rb).firstBound.enclosingType(); } rb = new ProblemReferenceBinding(rb.compoundName,closestMatch,0); - return; } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index e344bb546..a10ee734e 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -42,9 +42,6 @@ - - - @@ -89,12 +86,8 @@ - - - -