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 13345 - Exceptions when browsing write-only property
Summary: Exceptions when browsing write-only property
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 24050
  Show dependency tree
 
Reported: 2001-06-30 18:11 UTC by Jesse Glick
Modified: 2008-12-22 18:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Two exceptions thrown (3.49 KB, text/plain)
2001-06-30 18:12 UTC, Jesse Glick
Details
Class to demonstrate problem (3.26 KB, text/x-java)
2002-07-08 20:53 UTC, Jesse Glick
Details
Stack trace (2.54 KB, text/plain)
2002-07-08 20:54 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-06-30 18:11:55 UTC
[dev jun 22] Write-only properties maybe not supported in property
sheet. Tried to browse prop sheet for a node with a write-only boolean
property and got an exception from PropertySupport.Reflection (the
property in question): though it presumably returned false from
canRead(), getValue() was nonetheless called. In the property sheet,
<NullPointerException> is displayed for the property. Trying to click
on it to see if it permits changing a value prints another exception;
here the built-in BoolEditor is being asked to provide a text
representation when it cannot read the value.

Observed while looking at a FileObject in the Bean Browser (reproducible:
property 'important' is write-only). Every time the prop sheet for the
FileObject bean is displayed, 1st exception is thrown. 2nd thrown when trying to
expand 'important' property by clicking on it.
Comment 1 Jesse Glick 2001-06-30 18:12:29 UTC
Created attachment 1806 [details]
Two exceptions thrown
Comment 2 David Strupl 2001-07-10 08:53:17 UTC
I forgot to support write-only properties. Trying to fix it now.
Comment 3 David Strupl 2001-07-10 10:53:34 UTC
Fixed in PropertyPanel 1.31.
Comment 4 Jan Zajicek 2001-07-11 10:31:18 UTC
verified in dev #20010711
Comment 5 Jesse Glick 2002-07-08 20:52:47 UTC
Broken again. Run attached class in [dev jul 08] using internal
execution. When explorer window appears, click the node and the
exception is thrown.

I guess the prop sheet should display e.g. "<write only>" in the value
pane, rather than try to work with the property editor at all when in
display mode.
Comment 6 Jesse Glick 2002-07-08 20:53:57 UTC
Created attachment 6552 [details]
Class to demonstrate problem
Comment 7 Jesse Glick 2002-07-08 20:54:40 UTC
Created attachment 6553 [details]
Stack trace
Comment 8 David Strupl 2002-07-10 09:24:00 UTC
This is regression from revision 1.113 of PropertyPanel.
Comment 9 Jiri Rechtacek 2002-07-10 14:38:38 UTC
fixed, call editor.getAaText if canRead is true only
Comment 10 Quality Engineering 2003-07-01 15:50:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 11 Quality Engineering 2003-07-01 16:28:19 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.