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.
If you create a new source file from template but do not compile it, then ask for an InstanceCookie from the JavaDataObject, you will get one. Attempting to call e.g. instanceClass() throws a ClassN otFoundException, however. This means that you cannot safely ask for an InstanceCookie and expect to get it only when appropriate. It would be nice if the instance support tried to compile the class if it needed to before trying to load it. However, this could cause the cookie methods to block waiting for the compiler, which woul d be bad for threading. So, probably the InstanceSupport should only be enabled on the JavaDataObject when there is a class file present. Example test of this: create a class from template, do not compile, and immediately select Customize Bean. A ClassNotFoundException will be thrown. If the instance support were correctly disabled, thi s menu item would not appear until it had been compiled. [jglick] Also, the instance cookie should only be enabled if the class has a public default constructor.
Priority is changed to P4 (normal).
Resolved for 3.4.x or earlier, no new info since then -> verify.
Resolved for 3.4.x or earlier, no new info since then -> closing.