From: Martin D. (JIRA) <ji...@co...> - 2005-03-22 08:24:56
|
Possible infinite loop when reading a metadata entity from JDBC --------------------------------------------------------------- Key: GEOT-477 URL: http://jira.codehaus.org/browse/GEOT-477 Project: GeoTools Type: Bug Versions: 2.1.M3 Reporter: Martin Desruisseaux Assigned to: Martin Desruisseaux Priority: Minor org.geotools.metadata.lineage.Source has a reference toward ProcessStep, and ProcessStep has a reference toward Source. In my understanding of figure A.5 in ISO 19115, it may be the same association (a bi-directional one). If such case occurs, implementation in org.geotools.metadata.sql package will falls in an infinite loop. A simple fix is to cache metadata entities using weak references. Witch such a cache, the implementation should detects that an instance already exists for a given 'id' number and reuse it instead of creating it again and again in an infinite loop. -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |