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.

Bug 33292 - Automatically generated BeanInfo code doesn't compile
Summary: Automatically generated BeanInfo code doesn't compile
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-04-29 10:31 UTC by smithd1
Modified: 2005-02-22 17:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (21.60 KB, text/plain)
2003-04-29 13:13 UTC, Jan Becicka
Details
ide.log showing configuration of 3.4.1 that I imported setings from. (9.62 KB, text/plain)
2003-04-30 07:41 UTC, smithd1
Details
subfolder in local NB directory that causes the problem (4.60 KB, application/x-zip-compressed)
2003-09-30 17:02 UTC, Tarlika
Details
system\Services folder that causes the problem (5.92 KB, application/x-zip-compressed)
2003-09-30 17:46 UTC, Tarlika
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smithd1 2003-04-29 10:31:53 UTC
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.
Comment 1 Jan Becicka 2003-04-29 11:06:34 UTC
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.
Comment 2 Jan Becicka 2003-04-29 13:12:49 UTC
David can reproduce it on build 200304142350. 
JDK 1.4.2-beta-b19, Windows XP.


Comment 3 Jan Becicka 2003-04-29 13:13:37 UTC
Created attachment 10183 [details]
ide.log
Comment 4 smithd1 2003-04-29 15:38:03 UTC
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.
Comment 5 Jan Becicka 2003-04-29 15:48:17 UTC
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?
Comment 6 smithd1 2003-04-30 07:41:52 UTC
Created attachment 10192 [details]
ide.log showing configuration of 3.4.1 that I imported setings from.
Comment 7 smithd1 2003-04-30 07:43:20 UTC
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.
Comment 8 Tarlika 2003-09-30 17:02:59 UTC
Created attachment 11748 [details]
subfolder in local NB directory that causes the problem
Comment 9 Tarlika 2003-09-30 17:28:38 UTC
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.



Comment 10 Tarlika 2003-09-30 17:46:54 UTC
Created attachment 11750 [details]
system\Services folder that causes the problem
Comment 11 Tarlika 2003-09-30 17:50:09 UTC
I removed the system\Services subfolder. Now the generated BeanInfo is 
correct. Please, see my previous posting and attachment id=11750.


Comment 12 Jan Pokorsky 2005-02-22 17:28:49 UTC
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.