Changeset 2d157db0 in vaadin


Ignore:
Timestamp:
Dec 22, 2011 12:13:11 PM (3 years ago)
Author:
Artur Signell <artur@…>
Branches:
master, 7.0, 7.1, 7.2, 7.3, 7.4
Children:
109ce19c
Parents:
d86d5eb1
Message:

Print type info when an illegal type is passed to setValue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/vaadin/data/util/ObjectProperty.java

    r7e594fb40 r2d157db0  
    126126        // Checks the type of the value 
    127127        if (newValue != null && !type.isAssignableFrom(newValue.getClass())) { 
    128             throw new IllegalArgumentException( 
    129                     "Invalid value type for ObjectProperty."); 
     128            throw new IllegalArgumentException("Invalid value type " 
     129                    + newValue.getClass().getName() 
     130                    + " for ObjectProperty of type " + type.getName() + "."); 
    130131        } 
    131132 
Note: See TracChangeset for help on using the changeset viewer.