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 103681 - Advanced error detection in BeanInstaller
Summary: Advanced error detection in BeanInstaller
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Other Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-10 19:47 UTC by lheidt
Modified: 2007-09-03 14:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
suggested BeanInstaller error reporting enhancement (14.32 KB, application/octet-stream)
2007-05-10 19:51 UTC, lheidt
Details
BeanIstaller suggestion, upgraded to NB6 (18.11 KB, text/plain)
2007-05-11 17:44 UTC, lheidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lheidt 2007-05-10 19:47:18 UTC
I was not able to add a class to my Matisse palette, because the class did not
have a no-argument public constructor.  (I know that this was the reason,
because I hacked into the BeanInstaller.java class to provide more information.) 

After I corrected my class, BeanInstaller still displayed the same error
message.  The original state seems to be cached within the
%netbeans_default_userdir%\var\cache\mdrstorage directory, and even reinstalling
NetBeans 5.5 (Build 070510) was unsuccessful in clearing that cache.  (Note:
this issue could be similar to bug 71476.)

Work-around:  I was able to add the corrected class to my palette after I
deleted the mdrstorage subdirectory and re-started the IDE.
Comment 1 lheidt 2007-05-10 19:50:46 UTC
Note:  search the attached source file for three asterisks (***) for
(non-internationalized) code that could be the basis for an enhancement to
provide additional specific error reporting from the
BeanInstaller.isDeclaredAsJavaBean() method.
Comment 2 lheidt 2007-05-10 19:51:48 UTC
Created attachment 42282 [details]
suggested BeanInstaller error reporting enhancement
Comment 3 lheidt 2007-05-10 19:59:31 UTC
Sorry, the similar bug mentioned above should have been bug 71416, not 71476.
Comment 4 Jiri Prox 2007-05-11 17:32:38 UTC
lheidt: note that mdr was removed in upcoming 6.0 so the second part of bug will
be probably not reproducible.

Reassigning to form for evaluation
Comment 5 lheidt 2007-05-11 17:44:48 UTC
Created attachment 42329 [details]
BeanIstaller suggestion, upgraded to NB6
Comment 6 lheidt 2007-05-11 17:46:40 UTC
Yes, I've just found that the caching problem does not exist in 6.0 Milestone 9.

Please search my new attachment for three asterisks (***) for my BeanInstaller
suggestion upgraded to NB6.
Comment 7 Jan Stola 2007-09-03 14:44:19 UTC
The suggested improvement has been implemented.

Modified files:
/cvs/form/src/org/netbeans/modules/form/palette/BeanInstaller.java,v
new revision: 1.82; previous revision: 1.81
/cvs/form/src/org/netbeans/modules/form/palette/Bundle.properties,v
new revision: 1.55; previous revision: 1.54