Author: scabanovich
Date: 2010-12-08 11:26:00 -0500 (Wed, 08 Dec 2010)
New Revision: 27238
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
Log:
JBIDE-7844
https://jira.jboss.org/browse/JBIDE-7844
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2010-12-08
16:15:32 UTC (rev 27237)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2010-12-08
16:26:00 UTC (rev 27238)
@@ -125,6 +125,17 @@
}
public void setSuperClassBean(ClassBean bean) {
+ HashSet<ClassBean> beans = new HashSet<ClassBean>();
+ beans.add(this);
+ ClassBean b = bean;
+ while(b != null) {
+ if(beans.contains(b)) {
+ bean = null;
+ break;
+ }
+ b = b.getSuperClassBean();
+ }
+
superClassBean = bean;
if(superClassBean != null && isSpecializing()) {
superClassBean.addSpecializingClassBean(this);