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

Summary: Improve retrieval of BeanInfos
Product: guibuilder Reporter: Jan Stola <jstola>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.