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 77708 - Improve retrieval of BeanInfos
Summary: Improve retrieval of BeanInfos
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2006-06-12 10:19 UTC by Jan Stola
Modified: 2006-11-10 09:39 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2006-06-12 10:19:23 UTC
Improve robustness of the form module by the following change in the BeanInfo
retrieval. By now the BeanInfo is obtained via
a) Introspector.getBeanInfo(Class)
b) Utilities.getBeanInfo(Class) that calls Introspector.getBeanInfo(Class)
Both these approaches are equivalent to
Introspector.getBeanInfo(Class, null, USE_ALL_BEANINFO)

It sometimes happens (see for example the issue 74002) that the bean's
BeanInfo is corrupted and the bean cannot be used. So, it would
be better to try to obtain the BeanInfos using
Introspector.getBeanInfo(Class, null, USE_ALL_BEANINFO)
method and if it fails then try to use
Introspector.getBeanInfo(Class, null, IGNORE_IMMEDIATE_BEANINFO)
and if even this call fails then use
Introspector.getBeanInfo(Class, null, IGNORE_ALL_BEANINFO)
Comment 1 Joshua Marinacci 2006-11-08 10:39:18 UTC
This has been fixed in form_promoh and in trunk.  The solution was the centralize access to the 
Instrospector and then add the logic described in the bug description.  This will make the form module 
more robust against bad beaninfos.