Author: scabanovich
Date: 2010-12-20 08:55:34 -0500 (Mon, 20 Dec 2010)
New Revision: 27613
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java
Log:
JBIDE-7951
https://issues.jboss.org/browse/JBIDE-7951
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java 2010-12-20
13:53:27 UTC (rev 27612)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java 2010-12-20
13:55:34 UTC (rev 27613)
@@ -147,6 +147,7 @@
IType type = EclipseJavaUtil.findType(context.getJavaProject(), resovedTypeName);
if(type != null) {
result.setType(type);
+ cache.put(key, result);
StringBuffer newParams = new StringBuffer();
String[] paramSignatures = null;
try {
@@ -171,7 +172,6 @@
ns.append('Q').append(resovedTypeName).append('<').append(newParams).append(">;");
result.setSignature(ns.toString());
}
- cache.put(key, result);
return result;
}
}
@@ -189,11 +189,9 @@
if(result == null || t.equals(result.getSignature())) {
String sts = bounds.length > 0 ? bounds[0] : "";
if(sts.length() > 0) {
- if(context!=contextType) {
- ParametedType st = getParametedType(contextType, sts);
- if(st != null) {
- result = new TypeDeclaration(st, 0, 0);
- }
+ ParametedType st = getParametedType(contextType, sts);
+ if(st != null) {
+ result = new TypeDeclaration(st, 0, 0);
}
} else if(result != null) {
result.setSignature(t);