summaryrefslogtreecommitdiffstats
path: root/weaver5
diff options
context:
space:
mode:
authoraclement <aclement>2011-08-03 20:22:40 +0000
committeraclement <aclement>2011-08-03 20:22:40 +0000
commit167b801c5c71bfa1e0667e85429e097f03d7e849 (patch)
tree5c4fcca50285897d4205982e2670cedfe28792d1 /weaver5
parente8ef5bfcf9faabf99c443572dca0ddbde545d832 (diff)
downloadaspectj-167b801c5c71bfa1e0667e85429e097f03d7e849.tar.gz
aspectj-167b801c5c71bfa1e0667e85429e097f03d7e849.zip
340806
Diffstat (limited to 'weaver5')
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/reflect/JavaLangTypeToResolvedTypeConverter.java28
1 files changed, 10 insertions, 18 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/JavaLangTypeToResolvedTypeConverter.java b/weaver5/java5-src/org/aspectj/weaver/reflect/JavaLangTypeToResolvedTypeConverter.java
index 3d9ede527..8e313dc40 100644
--- a/weaver5/java5-src/org/aspectj/weaver/reflect/JavaLangTypeToResolvedTypeConverter.java
+++ b/weaver5/java5-src/org/aspectj/weaver/reflect/JavaLangTypeToResolvedTypeConverter.java
@@ -69,26 +69,18 @@ public class JavaLangTypeToResolvedTypeConverter {
ResolvedType baseType = fromType(pt.getRawType());
Type[] args = pt.getActualTypeArguments();
ResolvedType[] resolvedArgs = fromTypes(args);
-/* StringBuilder sb = new StringBuilder();
- for (int i = 0; i < resolvedArgs.length; i++) {
- sb.append(resolvedArgs[i]).append(" ");
- }
- for (int i = 0; i < resolvedArgs.length; i++) {
- if (resolvedArgs[i] == null) {
- String ss = "";
- try {
- ss = aType.toString();
- } catch (Exception e) {
- }
- throw new IllegalStateException("Parameterized type problem. basetype=" + baseType + " arguments="
- + sb.toString() + " ss=" + ss);
- }
- }
-*/
+ /*
+ * StringBuilder sb = new StringBuilder(); for (int i = 0; i < resolvedArgs.length; i++) {
+ * sb.append(resolvedArgs[i]).append(" "); } for (int i = 0; i < resolvedArgs.length; i++) { if (resolvedArgs[i] ==
+ * null) { String ss = ""; try { ss = aType.toString(); } catch (Exception e) { } throw new
+ * IllegalStateException("Parameterized type problem. basetype=" + baseType + " arguments=" + sb.toString() + " ss=" +
+ * ss); } }
+ */
return TypeFactory.createParameterizedType(baseType, resolvedArgs, getWorld());
} else if (aType instanceof java.lang.reflect.TypeVariable) {
- if (typeVariablesInProgress.get(aType) != null) {
- return typeVariablesInProgress.get(aType);
+ TypeVariableReferenceType inprogressVar = typeVariablesInProgress.get(aType);
+ if (inprogressVar != null) {
+ return inprogressVar;
}
java.lang.reflect.TypeVariable tv = (java.lang.reflect.TypeVariable) aType;