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 34993

Summary: PropertySupport.Reflection.getPropertyEditor() fails silently
Product: platform Reporter: _ tboudreau <tboudreau>
Component: NodesAssignee: Petr Nejedly <pnejedly>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2003-07-18 11:20:24 UTC
PropertySupport.Reflection allows the client to
set the
property editor class;  however, if there is a problem
instantiating that property, it catches any
exceptions in
empty catch blocks.  So the client simply never
sees their
property editor, and has no idea what's wrong.

At the very least, the problem should be logged.
Comment 1 Jesse Glick 2003-07-18 16:46:57 UTC
Does not seem like a P2 to me - no known impact on the actual product,
for example.
Comment 2 ivan 2003-07-19 01:33:41 UTC
Verified that the reason my editor wasn't instantiated
was indeed because of the silent catches. My editor was an inner
class. 

As you fix that you might want to add a small note to the javadoc for
PropertySupport.Reflection.setPropertyEditorClass not to use
inner classes.
Comment 3 Petr Nejedly 2004-01-09 09:44:17 UTC
Taking over the node bugs from phrebejk.
Comment 4 Petr Nejedly 2004-01-09 17:06:28 UTC
Will fix ASAP for 3.6
At worst it will show an exception dialog for broken properties,
but will work as before.
Comment 5 Petr Nejedly 2004-01-15 16:22:06 UTC
Fixed.
openide/src/org/openide/nodes/PropertySupport.java, v1.16
Comment 6 Marian Mirilovic 2005-07-13 13:26:26 UTC
closed