]> source.dussan.org Git - vaadin-framework.git/commitdiff
Show the right target type in the exception message
authorLeif Åstrand <leif@vaadin.com>
Fri, 13 Apr 2012 13:10:54 +0000 (16:10 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 13 Apr 2012 13:10:54 +0000 (16:10 +0300)
src/com/vaadin/ui/AbstractField.java

index 7ad2f202960b6effe5e7c5d1ce05d5554735f69f..4efed11e2c814ee0a7d978a597d8db333d7329a7 100644 (file)
@@ -535,7 +535,7 @@ public abstract class AbstractField<T> 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);