FULL PRODUCT VERSION :
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux xxx 4.11.9-300.fc26.x86_64 #1 SMP Wed Jul 5 16:21:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The documentation for TreeItem suggests to override isLeaf() but then the leafProperty() doesn't resemble the same value anymore. Also you can't override leafProperty(). This can lead to all sort of problems and hacks when trying to implement weakly loaded tree items properly.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux xxx 4.11.9-300.fc26.x86_64 #1 SMP Wed Jul 5 16:21:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The documentation for TreeItem suggests to override isLeaf() but then the leafProperty() doesn't resemble the same value anymore. Also you can't override leafProperty(). This can lead to all sort of problems and hacks when trying to implement weakly loaded tree items properly.
REPRODUCIBILITY :
This bug can be reproduced always.
- relates to
-
JDK-8089811 TreeItem: invalid implementation of isLeaf in java doc example (FileTreeItem)
- Open
-
JDK-8090741 TreeItem's leaf property and setter should be protected not private
- Open
-
JDK-8257873 Bad variable name in demo code in JavaDoc for TreeItem
- Open