This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This bug was originally marked as duplicate of bug 168026, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0.2 (Build 201411181905) VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16 OS: Windows 7 User Comments: josse173: none Stacktrace: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.netbeans.modules.form.RADProperty.getTargetValue(RADProperty.java:122) at org.netbeans.modules.form.FormProperty.checkCurrentValue(FormProperty.java:1011)
Created attachment 155003 [details] stacktrace
Similar to bug 243356. Involves custom components and it looks like if the bean instance is of a different class than remembered in method object in property. It is unclear how this might happen - the bean class is loaded once and kept in the component, then used for creating the instance and properties. We'd need exact steps to reproduce so this could be debugged.
Need steps to reproduce this.