Author: scabanovich
Date: 2012-08-28 16:08:39 -0400 (Tue, 28 Aug 2012)
New Revision: 43275
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
Log:
JBIDE-12503
https://issues.jboss.org/browse/JBIDE-12503
Update of cached types of all beans at incremental build.
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 2012-08-28
20:07:57 UTC (rev 43274)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2012-08-28
20:08:39 UTC (rev 43275)
@@ -629,6 +629,12 @@
public synchronized void cleanCache() {
specializingClassBeans = null;
scope = null;
- getDefinition().getParametedType().cleanCache();
+ getDefinition().resetParametedType();
+ for (BeanMethod m: methods) {
+ m.setMethod(m.getMethod()); // type update
+ }
+ for (BeanField f: fields) {
+ f.setField(f.getField()); // type update
+ }
}
}
\ No newline at end of file