]> source.dussan.org Git - vaadin-framework.git/commit
Allow legacy components to paint infinity double values again (#19447)
authorArtur Signell <artur@vaadin.com>
Sat, 16 Jan 2016 11:11:22 +0000 (13:11 +0200)
committerVaadin Code Review <review@vaadin.com>
Thu, 21 Jan 2016 08:18:35 +0000 (08:18 +0000)
commitbd7d085100f3739833151ea1b9b35bae48b3ddf4
tree858199f0f2b9880e4b676b754003a3defea66711
parent8e255bd65e087cddc4ab27d9ffdfc1617a6d79a6
Allow legacy components to paint infinity double values again (#19447)

JsonPaintTarget.addAttribute(String,double) converts infinity values to
{ "name": Infinity }. This is not valid JSON but has "always worked" and
at least NumberField relies on being able to send infinity values.

For state and RPC it's not possible to send 'infinity' as JsonNumber
converts those to null.

It is not possible to send 'infinity' back to the server using a legacy
variable either as also in this case JsonNumber is used and the value becomes
null.

This fix should be reverted when legacy variable support is removed.

Change-Id: I4b5366420e11915236eff447e3eeedc458cf8cea
client/src/com/vaadin/client/communication/MessageHandler.java
uitest/src/com/vaadin/tests/serialization/LegacySerializerUI.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/serialization/LegacySerializerUITest.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/widgetset/client/LegacySerializerConnector.java [new file with mode: 0644]