rico-projects / rico

Main repository for the Rico Application Framework

Home Page:https://rico.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double.NEGATIVE_INFINITY won't be transferred correctly by remoting

joha78 opened this issue · comments

private Property<Double> prefWidth;
prefWidth.set(Region.USE_PREF_SIZE);

Using Region.USE_PREF_SIZE (== Double.NEGATIVE_INFINITY) is important for the rico-projector. It results in this exception but should not:

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
	at dev.rico.internal.remoting.converters.DoubleConverterFactory$1.convertFromRemoting(DoubleConverterFactory.java:32) ~[rico-remoting-common-1.0.1.jar:na]
	at dev.rico.internal.remoting.info.PropertyInfo.convertFromRemoting(PropertyInfo.java:46) ~[rico-remoting-common-1.0.1.jar:na]
	at dev.rico.internal.remoting.PropertyImpl$1.propertyChange(PropertyImpl.java:54) ~[rico-remoting-common-1.0.1.jar:na]