summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-06-08 19:08:18 +0000
committerArtur Signell <artur.signell@itmill.com>2009-06-08 19:08:18 +0000
commite830e0af318d4d5bfb09cd3b28597b5fc7575e36 (patch)
tree4f2b7d0e61b2a5ddf5b5b8cc14a5afb563c7a1ae /src
parent202783a1981a328482642a13e36721e3d19af6f1 (diff)
downloadvaadin-framework-e830e0af318d4d5bfb09cd3b28597b5fc7575e36.tar.gz
vaadin-framework-e830e0af318d4d5bfb09cd3b28597b5fc7575e36.zip
Fix for #3051 - MethodProperty serialization broken when setter or getter is null
svn changeset:8156/svn branch:6.0
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/data/util/MethodProperty.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/vaadin/data/util/MethodProperty.java b/src/com/vaadin/data/util/MethodProperty.java
index f74e84ea93..87915bda88 100644
--- a/src/com/vaadin/data/util/MethodProperty.java
+++ b/src/com/vaadin/data/util/MethodProperty.java
@@ -103,14 +103,12 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
out.writeObject(setMethod.getParameterTypes());
} else {
out.writeObject("");
- out.writeObject("");
}
if (getMethod != null) {
out.writeObject(getMethod.getName());
out.writeObject(getMethod.getParameterTypes());
} else {
out.writeObject("");
- out.writeObject("");
}
};
@@ -123,15 +121,16 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
setArgs = (Object[]) in.readObject();
getArgs = (Object[]) in.readObject();
String name = (String) in.readObject();
- Class<?>[] paramTypes = (Class<?>[]) in.readObject();
if (name != null && !name.equals("")) {
+ Class<?>[] paramTypes = (Class<?>[]) in.readObject();
setMethod = instance.getClass().getMethod(name, paramTypes);
} else {
setMethod = null;
}
+
name = (String) in.readObject();
- paramTypes = (Class<?>[]) in.readObject();
if (name != null && !name.equals("")) {
+ Class<?>[] paramTypes = (Class<?>[]) in.readObject();
getMethod = instance.getClass().getMethod(name, paramTypes);
} else {
getMethod = null;