In my gwt application somebody developed a module which uses java.beans.PropertyChangeSupport. Recently I have started using that module and getting The import java.beans cannot be resolved error when I run. But application runs well. Why am I getting compiler error in gwt dev mode window? Any ideas?
00:17:33.079 [ERROR] Errors in 'file:/D:/workspace/App/src/main/java/com/abc/def/client/extract/pojos/ClientData.java'
00:17:33.079 [ERROR] Line 3: The import java.beans cannot be resolved
00:17:33.079 [ERROR] Line 4: The import java.beans cannot be resolved
00:17:33.079 [ERROR] Line 11: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 14: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 14: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 17: PropertyChangeListener cannot be resolved to a type
00:17:33.079 [ERROR] Line 18: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 21: PropertyChangeListener cannot be resolved to a type
00:17:33.079 [ERROR] Line 22: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 25: PropertyChangeListener cannot be resolved to a type
00:17:33.079 [ERROR] Line 26: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 30: PropertyChangeListener cannot be resolved to a type
00:17:33.079 [ERROR] Line 31: PropertyChangeSupport cannot be resolved to a type
00:17:33.079 [ERROR] Line 36: PropertyChangeListener cannot be resolved to a type
00:17:33.079 [ERROR] Line 36: PropertyChangeSupport cannot be resolved to a type
AutoBeans mentioned by BobV are great new feature of GWT, however refactoring of your existing code would be required in order to use them. If your application already uses
PropertyChangeSupport
, the gwtx project provides GWT emulation ofjava.beans.PropertyChange*
classes.