getting hashcode from ComplexType gets in to infinite loop
----------------------------------------------------------

                 Key: GEOT-3409
                 URL: http://jira.codehaus.org/browse/GEOT-3409
             Project: GeoTools
          Issue Type: Bug
            Reporter: Niels Charlier
            Assignee: Niels Charlier
         Attachments: patch_geotools_hashcode.diff

The hashcode of a ComplexType is calculated by calculating the hash code of all 
its property descriptors.  The calculation of the hash code of a property 
descriptor includes calculating the hash code of its type.

Because complex types and their descriptors can have circular references, this 
causes an infinite loop and stack overflow.

I think it is sufficient to use the implementation of hash code from 
AttributeTypeImpl.

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

        

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to