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.
[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.
Created attachment 1806 [details] Two exceptions thrown
I forgot to support write-only properties. Trying to fix it now.
Fixed in PropertyPanel 1.31.
verified in dev #20010711
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.
Created attachment 6552 [details] Class to demonstrate problem
Created attachment 6553 [details] Stack trace
This is regression from revision 1.113 of PropertyPanel.
fixed, call editor.getAaText if canRead is true only
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.