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.
Create a new JavaBean from the template wizard (this compiles OK), expand the class in Explorer and select "BeanInfo Editor" from the "Bean Patterns" right click menu. Press OK to create the BeanInfo class file. The generated code wont compile due to extra opening braces "{" after each "catch {}" statement.
I instantiated Java Bean template and I sucessfuly compiled generated BeanInfo. Please reopen this bug, if you are able to reproduce it in latest build.
David can reproduce it on build 200304142350. JDK 1.4.2-beta-b19, Windows XP.
Created attachment 10183 [details] ide.log
I installed j2se1.4.2-beta and NetBeans 3.5 beta on to a machine that had never had NetBeans on before and the bug was not reproducable. I then installed the same modules I have on the other 2 machines and the bug was still not reproducable! The only difference I can see is that the 2 machines where it doesn't work I had updated from a previous version of NetBeans.
This bug is probably caused by upgrading from previous version of NB. What version did you upgrade? How did you do that? Did you use upgrade settings wizard (or import wizard or what is the name) or just reused your old userdir?
Created attachment 10192 [details] ide.log showing configuration of 3.4.1 that I imported setings from.
The 2 machines where the bug occurs were upgraded from NetBeans 3.4.1 (see attached ide.log). I imported the settings when the install program offered me the option, the import seemed to succeed. I had pretty much all available released modules and quite a few beta modules installed, some of which (makefile) 3.5 complained about when it was started. I removed the modules that caused errors on startup.
Created attachment 11748 [details] subfolder in local NB directory that causes the problem
Please ignore attachment id=11748 - I had mistakenly thought the error was removed when removing this folder. However, I can reproduce the problem. I am running NB 3.5.1 on (200307302351) Win2K. I had previously installed NB 3.4. I don't know whether the problem appeared there as I didn't create any JavaBeans then. I de-installed NB 3.4 using Add/Remove programs. However, I kept the local NB directory. If I remove the local NB folder, then start NB, create a bean and generate BeanInfo.java, there will be no extra curly braces. If I use my old NB folder,the error occurs. I have also tried just removing the "modules" subdirectory but that doesn't cure the problem.
Created attachment 11750 [details] system\Services folder that causes the problem
I removed the system\Services subfolder. Now the generated BeanInfo is correct. Please, see my previous posting and attachment id=11750.
3.4 and 3.5 releases are obsolete and the import of their settings is unsupported by latest releases. Since noone has reported similar problem with latest releases I am closing this as WONTFIX.