On Fri, 22 Jul 2022 19:22:48 GMT, Andy Goryachev <[email protected]> wrote:

> - added Skin.install()
> - javadoc changes for Skinnable.setSkin(Skin)
> 
> no code changes for Skinnable.setSkin(Skin) yet.

All good points, many thanks!
Fixed the setSkin(), changed the javadoc for setSkin() to indicate that this 
method *might* throw an IAE.

modules/javafx.controls/src/main/java/javafx/scene/control/PopupControl.java 
line 205:

> 203:         if(value != null) {
> 204:             if(value.getSkinnable() != this) {
> 205:                 throw new IllegalArgumentException("There must be 1:1 
> relationship between Skin and Skinnable");

this check always fails in case of PopupControl.

-------------

PR: https://git.openjdk.org/jfx/pull/845

Reply via email to