]> source.dussan.org Git - vaadin-framework.git/commit
Support long in state again (#13692)
authorJonatan Kronqvist <jonatan@vaadin.com>
Sun, 11 May 2014 09:38:08 +0000 (12:38 +0300)
committerVaadin Code Review <review@vaadin.com>
Mon, 12 May 2014 12:05:18 +0000 (12:05 +0000)
commit82033e827fcbfb396886df627a1f8d7c02359e9d
tree77f1d451abbe4c294f3c40db721bc37b3898819a
parent2b60bbb8576b456c11d324b8f8a92d8ade54ffff
Support long in state again (#13692)

The fix to #9379 broke the support for long type fields in state classes. This
patch bypasses the unboxing of long values and adds the @UnsafeNativeLong annotation
to the methods which may fetch and return (without modifying) long values.

SerializerTest is extended to test the different data types in States.

Change-Id: I29fd2c6af13cd9a0d29ecb1444ed9eb8a2b013e3
client-compiler/src/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java
client-compiler/src/com/vaadin/server/widgetsetutils/metadata/FieldProperty.java
uitest/src/com/vaadin/tests/serialization/SerializerTest.java
uitest/src/com/vaadin/tests/widgetset/client/SerializerTestConnector.java
uitest/src/com/vaadin/tests/widgetset/client/SerializerTestRpc.java
uitest/src/com/vaadin/tests/widgetset/client/SerializerTestState.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/widgetset/server/SerializerTestExtension.java