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.
Summary: | PropertyEnv should not log PropertyVetoException | ||
---|---|---|---|
Product: | platform | Reporter: | Tomas Pavek <tpavek> |
Component: | Explorer | Assignee: | Tomas Pavek <tpavek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jtulach |
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | suggested patch |
Description
Tomas Pavek
2012-05-09 16:51:36 UTC
Created attachment 119267 [details]
suggested patch
The fix is easy. If you agree with it, I can integrate it.
I am not sure if the new method will work well when there is no localized message. Instead of calling getLocalizedMessage() you should probably call Exceptions.findLocalizedMessage. I'd prefer to keep current code when there is no localized message and use the new one when a special localized message is found. Feel free to go on. Kept the original logging if there is no explicit message. http://hg.netbeans.org/jet-main/rev/4399256694cd Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4399256694cd User: Tomas Pavek <tpavek@netbeans.org> Log: #212255: simply show dialog with message from PropertyVetoException (if there is any message) |