summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-04-13 16:10:54 +0300
committerLeif Åstrand <leif@vaadin.com>2012-04-13 16:10:54 +0300
commitc212d06836d39da3db190468447057d411021885 (patch)
tree11d7fd24c388fddff361602a9615b9d7a1349c44 /src
parent5d577c24c704b0da22044f69ff812a6f3b881241 (diff)
downloadvaadin-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.java2
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);