From: Jonatan Kronqvist Date: Tue, 3 Sep 2013 06:53:10 +0000 (+0300) Subject: Excludes WeakValueMap from the serializable test #12401 X-Git-Tag: 7.1.4~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11cdf93fedc9e693468d25092afba8172ce8ebf0;p=vaadin-framework.git Excludes WeakValueMap from the serializable test #12401 Also added a note to the WeakValueMap JavaDoc stating that it is not serializable. Change-Id: If342746ad7c7cac0db8bac4ba75236970cc4cd01 --- diff --git a/server/src/com/vaadin/util/WeakValueMap.java b/server/src/com/vaadin/util/WeakValueMap.java index b5ac12ce91..1134594cba 100644 --- a/server/src/com/vaadin/util/WeakValueMap.java +++ b/server/src/com/vaadin/util/WeakValueMap.java @@ -30,6 +30,8 @@ import java.util.Set; * A Map holding weak references to its values. It is internally backed by a * normal HashMap and all values are stored as WeakReferences. Garbage collected * entries are removed when touched. + *

+ * Note this class is not serializable. * * @author Vaadin Ltd * @since 7.1.4 diff --git a/server/tests/src/com/vaadin/tests/server/TestClassesSerializable.java b/server/tests/src/com/vaadin/tests/server/TestClassesSerializable.java index 2a7e456fcb..e5420b8921 100644 --- a/server/tests/src/com/vaadin/tests/server/TestClassesSerializable.java +++ b/server/tests/src/com/vaadin/tests/server/TestClassesSerializable.java @@ -65,6 +65,7 @@ public class TestClassesSerializable extends TestCase { "com\\.vaadin\\.util\\.ConnectorHelper", // "com\\.vaadin\\.server\\.VaadinSession\\$FutureAccess", // "com\\.vaadin\\.external\\..*", // + "com\\.vaadin\\.util\\.WeakValueMap.*", // }; /**