]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add more descriptive error message
authorLeif Åstrand <leif@vaadin.com>
Wed, 12 Sep 2012 12:13:29 +0000 (15:13 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 12 Sep 2012 12:13:50 +0000 (15:13 +0300)
server/src/com/vaadin/server/JsonCodec.java

index 7caae519214ad5db2b18cdf7f996aca824ed6fe7..72bd1e78f8f4922c3f1c29fa0a21f2b0fad74b78 100644 (file)
@@ -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;