From: Leif Åstrand Date: Wed, 12 Sep 2012 12:13:29 +0000 (+0300) Subject: Add more descriptive error message X-Git-Tag: 7.0.0.beta1~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=175dea363bdb623c57e6d3af81c4ae5b50b214b2;p=vaadin-framework.git Add more descriptive error message --- 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;