SimpleIntegerProperty is not a Property<Integer>

Jens Auer Jens.Auer at
Wed Feb 15 15:59:27 UTC 2017


I am wondering why SimpleIntegerProperty implements only Property<Number> and not Property<Integer>. This came up while using ReactFx where I tried to bind a Var<Integer> to a SimpleIntegerProperty and it fails to compile:
SimpleIntegerProperty s = null;

Var<Integer> v=null;;

It turns out that this is due to the inheritance hierarchy and it also prevents code like<Integer> p; s;

p = s;


Jens Auer
Unternehmensberatung H & D GmbH
Niederlassung Weißenthurm
Werftstr. 5 - 56575 Weißenthurm
Tel.:            02637/94238 -110
Fax:            02637/94238 -149
michael.zimmer at<mailto:michael.zimmer at><>

More information about the openjfx-dev mailing list