TypeName and Name equals() implementations are not symetric
-----------------------------------------------------------

                 Key: GEOT-1252
                 URL: http://jira.codehaus.org/browse/GEOT-1252
             Project: GeoTools
          Issue Type: Bug
          Components: core feature
    Affects Versions: 2.4.M1
            Reporter: Gabriel Roldán
            Assignee: Gabriel Roldán
             Fix For: 2.4.M2


 TypeName and Name equals() implementations are not symetric, as TypeName 
 extends Name, and Name's equals checks for instanceof Name, it returns true 
 if the argument is a TypeName, but TypeName returns false if the argument is 
 a Name.

 I think the solution would be to not make TypeName extend Name, but to just 
 implement TypeName (aka, duplicating most Name code).

 That's what I did on my local copy to get it working (as I have a Map where 
 keys are either Name or TypeName, thus the conflict).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to