[jira] [Created] (LANG-751) Include the actual type in the Validate.isInstance exception message.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (LANG-751) Include the actual type in the Validate.isInstance exception message.

ASF GitHub Bot (Jira)
Include the actual type in the Validate.isInstance exception message.
---------------------------------------------------------------------

                 Key: LANG-751
                 URL: https://issues.apache.org/jira/browse/LANG-751
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*
    Affects Versions: 3.0.1
         Environment: 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"
            Reporter: Gary D. Gregory
            Assignee: Gary D. Gregory
             Fix For: 3.0.2


The message for the exception thrown by Validate.isInstance does not mention the actual type, only the expected type.

trunk: "The validated object is not an instance of %s"

Proposal, a la JUnit: "Expected type: %s, actual: %"


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-751) Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory updated LANG-751:
---------------------------------

    Summary: Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.  (was: Include the actual type in the Validate.isInstance exception message.)

> Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.
> -------------------------------------------------------------------------------------------
>
>                 Key: LANG-751
>                 URL: https://issues.apache.org/jira/browse/LANG-751
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.0.1
>         Environment: 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"
>            Reporter: Gary D. Gregory
>            Assignee: Gary D. Gregory
>             Fix For: 3.0.2
>
>
> The message for the exception thrown by Validate.isInstance does not mention the actual type, only the expected type.
> trunk: "The validated object is not an instance of %s"
> Proposal, a la JUnit: "Expected type: %s, actual: %"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-751) Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory updated LANG-751:
---------------------------------

    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"


  was:
The message for the exception thrown by Validate.isInstance does not mention the actual type, only the expected type.

trunk: "The validated object is not an instance of %s"

Proposal, a la JUnit: "Expected type: %s, actual: %"



> Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.
> -------------------------------------------------------------------------------------------
>
>                 Key: LANG-751
>                 URL: https://issues.apache.org/jira/browse/LANG-751
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.0.1
>         Environment: 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"
>            Reporter: Gary D. Gregory
>            Assignee: Gary D. Gregory
>             Fix For: 3.0.2
>
>
> 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"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (LANG-751) Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved LANG-751.
----------------------------------

    Resolution: Fixed

In SVN.

> Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.
> -------------------------------------------------------------------------------------------
>
>                 Key: LANG-751
>                 URL: https://issues.apache.org/jira/browse/LANG-751
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.0.1
>         Environment: 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"
>            Reporter: Gary D. Gregory
>            Assignee: Gary D. Gregory
>             Fix For: 3.0.2
>
>
> 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"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira