Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.1
-
None
-
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: C:\Java\apache-maven-3.0.3\bin\..
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_24\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) Maven home: C:\Java\apache-maven-3.0.3\bin\.. Java version: 1.6.0_24, vendor: Sun Microsystems Inc. Java home: C:\Program Files\Java\jdk1.6.0_24\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Description
The message for the exception thrown by Validate.isInstance and isAssignableFrom do not mention the actual type, only the expected type.
trunk: "The validated object is not an instance of %s"
Proposal:
- isAssignableFrom: "Cannot assign a java.lang.String to a java.util.List"
- isInstance: "Expected type: java.util.List, actual: java.lang.String"