From: Andy Clement Date: Fri, 11 Jan 2019 18:49:09 +0000 (-0800) Subject: Diagnostics for https://bugs.eclipse.org/bugs/show_bug.cgi?id=543023 X-Git-Tag: V1_9_3RC1~111 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f594722aa770bd1cc763a313336c06bc19a8f7a;p=aspectj.git Diagnostics for https://bugs.eclipse.org/bugs/show_bug.cgi?id=543023 --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java index dc28ad3c1..62bd4d23a 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java @@ -110,7 +110,12 @@ public class BoundedReferenceType extends ReferenceType { parameterizedAdditionalInterfaces); } else { // (this.kind == SUPER) - return new BoundedReferenceType((ReferenceType) getLowerBound().parameterize(typeBindings), false, world, + UnresolvedType parameterizedLowerBound = getLowerBound().parameterize(typeBindings); + if (!(parameterizedLowerBound instanceof ReferenceType)) { + throw new IllegalStateException("PR543023: Unexpectedly found a non reference type: "+ + parameterizedLowerBound.getClass().getName()+" with signature "+parameterizedLowerBound.getSignature()); + } + return new BoundedReferenceType((ReferenceType)parameterizedLowerBound , false, world, parameterizedAdditionalInterfaces); } }