Hi,

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 thought 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).

If it seems ok I would need to commit that change. If not suggestions are well 
appreciated.

regards,

Gabriel

-------------------------------------------------------------------------
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