From 5f594722aa770bd1cc763a313336c06bc19a8f7a Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Fri, 11 Jan 2019 10:49:09 -0800 Subject: [PATCH] Diagnostics for https://bugs.eclipse.org/bugs/show_bug.cgi?id=543023 --- .../src/org/aspectj/weaver/BoundedReferenceType.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } } -- 2.39.5