JDK-7020860 : BasicTreeUI contains getters/setters with unclear spec
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7,8,9,11,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-02-19
  • Updated: 2020-02-25
  • Resolved: 2020-01-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15 b10Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
Platform: ALL
JDK: ALL

Class javax.swing.plaf.basic.BasicTreeUI
http://download.java.net/jdk7/docs/api/javax/swing/plaf/basic/BasicTreeUI.html

contains some getters/setters that are not consistent and have specification that says nothing about how they should be used and how do they behave in BasicTreeUI

  setRowHeight() / getRowHeight()
  setShowsRootHandles() / getShowsRootHandles()
  setRootVisible() / isRootVisible()
  setEditable() / isEditable()
  setCellEditor() / getCellEditor()
  setCellRenderer() / getCellRenderer()

Values passed to setter are not equal to those returned from getter. The spec says nothing about this.

While many other properties ( "largeModel", "hashColor", "model" etc) have getter/setter that correspond each other.

Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/635eaa93419e User: psadhukhan Date: 2020-02-11 08:55:22 +0000
11-02-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/635eaa93419e User: arapte Date: 2020-01-23 12:02:54 +0000
23-01-2020

http://mail.openjdk.java.net/pipermail/swing-dev/2016-July/006318.html
13-12-2016

Prasanta, please, take care about this bug. It will not go to 9. We have decided to postpone it for future releases.
02-12-2016

webrev http://cr.openjdk.java.net/~ssadetsky/7020860/webrev.00/
02-12-2016

ccc raised by Semyon is already approved. I guess he just need to push his change so assigning back to him.
22-11-2016

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

You have approval to defer the following issues. Please update. Cheers, B.
07-10-2013

JCK: OK to defer to JDK9
27-09-2013

jdk8: SQE OK to defer
27-09-2013