From c212d06836d39da3db190468447057d411021885 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Fri, 13 Apr 2012 16:10:54 +0300 Subject: [PATCH] Show the right target type in the exception message --- src/com/vaadin/ui/AbstractField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/vaadin/ui/AbstractField.java b/src/com/vaadin/ui/AbstractField.java index 7ad2f20296..4efed11e2c 100644 --- a/src/com/vaadin/ui/AbstractField.java +++ b/src/com/vaadin/ui/AbstractField.java @@ -535,7 +535,7 @@ public abstract class AbstractField extends AbstractComponent implements if (!getType().isAssignableFrom(newFieldValue.getClass())) { throw new Converter.ConversionException("Value of type " + newFieldValue.getClass() + " cannot be assigned to " - + getClass().getName()); + + getType().getName()); } } setValue((T) newFieldValue, false); -- 2.39.5