summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-09-04 20:51:57 +0000
committeraclement <aclement>2009-09-04 20:51:57 +0000
commitb9a0ccee12eb56a370c58010bbd89a27b8570724 (patch)
tree9fae6b88f7992a1737d9cd96560f0f97031b1e10
parent9eb61273fe9f7e1ebe4e4ef3bde4ed5bfd42886d (diff)
downloadaspectj-b9a0ccee12eb56a370c58010bbd89a27b8570724.tar.gz
aspectj-b9a0ccee12eb56a370c58010bbd89a27b8570724.zip
286375: test and fix: recursive decl npe
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java b/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java
index 608c489fe..61d1d994a 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java
@@ -214,8 +214,9 @@ public class BcelGenericSignatureToTypeXConverter {
}
private static void fixUpCircularDependencies(ResolvedType aTypeX, Map typeVariableResolutions) {
- if (!(aTypeX instanceof ReferenceType))
+ if (!(aTypeX instanceof ReferenceType)) {
return;
+ }
ReferenceType rt = (ReferenceType) aTypeX;
TypeVariable[] typeVars = rt.getTypeVariables();
@@ -244,6 +245,10 @@ public class BcelGenericSignatureToTypeXConverter {
public ResolvedType resolve(World world) {
return this;
}
+
+ public boolean isCacheable() {
+ return false;
+ }
}
public static class GenericSignatureFormatException extends Exception {