Author: scabanovich
Date: 2010-05-28 09:11:43 -0400 (Fri, 28 May 2010)
New Revision: 22410
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java
Log:
https://jira.jboss.org/browse/JBIDE-6387
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-05-28
12:15:51 UTC (rev 22409)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java 2010-05-28
13:11:43 UTC (rev 22410)
@@ -84,7 +84,8 @@
String[] ps = ((IMethod)context).getTypeParameterSignatures();
for (int i = 0; i < ps.length; i++) {
String t = ps[i];
- if(t.endsWith(":")) t = t.substring(0, t.length() - 1);
+ int cp = t.indexOf(":");
+ if(cp > 0) t = t.substring(0, cp);
t = "Q" + t + ";";
if(t.equals(result.getSignature())) {
cache.put(key, result);