diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-04-13 16:10:54 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-04-13 16:10:54 +0300 |
commit | c212d06836d39da3db190468447057d411021885 (patch) | |
tree | 11d7fd24c388fddff361602a9615b9d7a1349c44 /src | |
parent | 5d577c24c704b0da22044f69ff812a6f3b881241 (diff) | |
download | vaadin-framework-c212d06836d39da3db190468447057d411021885.tar.gz vaadin-framework-c212d06836d39da3db190468447057d411021885.zip |
Show the right target type in the exception message
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/ui/AbstractField.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<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); |