aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-01-11 10:49:09 -0800
committerAndy Clement <aclement@pivotal.io>2019-01-11 10:49:09 -0800
commit5f594722aa770bd1cc763a313336c06bc19a8f7a (patch)
tree28e732b735de3116e843cc4eb6db8492eaa0b3d2
parent380ef0ec470fcf02820bde4d22d3bd1a9efaf999 (diff)
downloadaspectj-5f594722aa770bd1cc763a313336c06bc19a8f7a.tar.gz
aspectj-5f594722aa770bd1cc763a313336c06bc19a8f7a.zip
Diagnostics for https://bugs.eclipse.org/bugs/show_bug.cgi?id=543023
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java7
1 files changed, 6 insertions, 1 deletions
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);
}
}