From 175dea363bdb623c57e6d3af81c4ae5b50b214b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 12 Sep 2012 15:13:29 +0300 Subject: [PATCH] Add more descriptive error message --- server/src/com/vaadin/server/JsonCodec.java | 4 ++-- 1 file 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; -- 2.39.5