Author: scabanovich
Date: 2010-06-09 06:23:32 -0400 (Wed, 09 Jun 2010)
New Revision: 22698
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
Log:
https://jira.jboss.org/browse/JBIDE-6425
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java 2010-06-09
09:32:15 UTC (rev 22697)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java 2010-06-09
10:23:32 UTC (rev 22698)
@@ -75,6 +75,7 @@
public void setSignature(String signature) {
this.signature = signature;
+ arrayPrefix = "";
if(signature != null) {
for (int i = 0; i < signature.length(); i++) {
if(signature.charAt(i) == '[') arrayPrefix += "["; else break;
@@ -107,6 +108,9 @@
return false;
}
}
+ if(!arrayPrefix.equals(other.arrayPrefix)) {
+ return false;
+ }
return true;
}
@@ -246,8 +250,8 @@
void buildAllTypes(Set<String> processed, ParametedType p) {
IType t = p.getType();
if(t == null) return;
- if(processed.contains(t.getFullyQualifiedName())) return;
- processed.add(t.getFullyQualifiedName());
+ if(processed.contains(p.getArrayPrefix() + t.getFullyQualifiedName())) return;
+ processed.add(p.getArrayPrefix() + t.getFullyQualifiedName());
allInheritedTypes.add(p);
Set<IParametedType> ts = p.getInheritedTypes();
if(ts != null) for (IParametedType pp: ts) {