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.
Product Version: NetBeans IDE Dev (Build 200809010201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb) Dialog for adding properties is quite complex now and user can simply make a mistake when using it, generating an invalid code in the editor. An example could be generating a property of type String called S and assigning a value of '5' to it (int property). User gets no warning, no errors are shown in the preview, but when he/she clicks OK, erroneous code is generated in the editor. Another example is assigning a scalar value to indexed property... Implementing various individual checks for fields in this dialog is infeasible and it would be a long term run - therefore I believe that solution using infrastructure what we already have should be a better way to go. It would be helpful to disable OK button in case that code would contain new errors if property was generated with currently given parameters. There would be also a warning in the bottom of the dialog describing the problem, like "Generated code would contain errors - review property parameters and fix all problems". (Maybe disabling OK button is too much, a warning could be enough...). A compiler that we use can be easily used for this check - you can for example just place the code that is displayed in the preview to some fake empty class and try to compile it...
Sorry, RFE, not a defect...