You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Adam Heath (JIRA)" <ji...@apache.org> on 2007/05/14 15:15:16 UTC

[jira] Created: (VFS-138) Fix ClassCastException in AbstractFileName

Fix ClassCastException in AbstractFileName
------------------------------------------

                 Key: VFS-138
                 URL: https://issues.apache.org/jira/browse/VFS-138
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 1.1
            Reporter: Adam Heath


The contract for equals doesn't allow you to throw a ClassCastException.  So, add an instanceof comparison.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Resolved: (VFS-138) Fix ClassCastException in AbstractFileName

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Ivankovits resolved VFS-138.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1

Applied - Thanks for the patch!

> Fix ClassCastException in AbstractFileName
> ------------------------------------------
>
>                 Key: VFS-138
>                 URL: https://issues.apache.org/jira/browse/VFS-138
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Adam Heath
>             Fix For: 1.1
>
>         Attachments: fix_AbstractFileName-equals-ClassCastException.patch
>
>
> The contract for equals doesn't allow you to throw a ClassCastException.  So, add an instanceof comparison.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (VFS-138) Fix ClassCastException in AbstractFileName

Posted by "Adam Heath (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Heath updated VFS-138:
---------------------------

    Attachment: fix_AbstractFileName-equals-ClassCastException.patch

Against svn 501759.

> Fix ClassCastException in AbstractFileName
> ------------------------------------------
>
>                 Key: VFS-138
>                 URL: https://issues.apache.org/jira/browse/VFS-138
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Adam Heath
>         Attachments: fix_AbstractFileName-equals-ClassCastException.patch
>
>
> The contract for equals doesn't allow you to throw a ClassCastException.  So, add an instanceof comparison.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org