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 - PropertySupport.Reflection.getPropertyEditor() fails silently
Summary: PropertySupport.Reflection.getPropertyEditor() fails silently
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2003-07-18 11:20 UTC by _ tboudreau
Modified: 2008-12-22 23:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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