summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-12 15:13:29 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-12 15:13:50 +0300
commit175dea363bdb623c57e6d3af81c4ae5b50b214b2 (patch)
tree12b019df9dd5365460fda07cfc0d3a6b29787c00
parent426b4a972d0ce9e3cbbad2fd9b504fbf6a062c5d (diff)
downloadvaadin-framework-175dea363bdb623c57e6d3af81c4ae5b50b214b2.tar.gz
vaadin-framework-175dea363bdb623c57e6d3af81c4ae5b50b214b2.zip
Add more descriptive error message
-rw-r--r--server/src/com/vaadin/server/JsonCodec.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/com/vaadin/server/JsonCodec.java b/server/src/com/vaadin/server/JsonCodec.java
index 7caae51921..72bd1e78f8 100644
--- a/server/src/com/vaadin/server/JsonCodec.java
+++ b/server/src/com/vaadin/server/JsonCodec.java
@@ -701,9 +701,9 @@ public class JsonCodec implements Serializable {
throw new RuntimeException(
"Can't encode "
+ value.getClass().getName()
- + " as it has multiple fields with the name "
+ + " as it has multiple properties with the name "
+ fieldName.toLowerCase()
- + ". This can happen if only casing distinguishes one property name from another.");
+ + ". This can happen if there are getters and setters for a public field (the framework can't know which to ignore) or if there are properties with only casing distinguishing between the names (e.g. getFoo() and getFOO())");
}
Object fieldReference;