SoftValueHashMapTest fails sometimes on IBM SDK
------------------------------------------------
Key: GEOT-2546
URL: http://jira.codehaus.org/browse/GEOT-2546
Project: GeoTools
Issue Type: Bug
Components: core metadata
Affects Versions: 2.5.7, 2.6-M2
Reporter: Christian Mueller
Attachments: SoftValueHashMapTest.patch
In about 10 % of the builds with an IBM SDK, I get the following error
------------------
Results :
Failed tests:
testStrongReferences(org.geotools.util.SoftValueHashMapTest)
testSoftReferences(org.geotools.util.SoftValueHashMapTest)
Tests run: 94, Failures: 2, Errors: 0, Skipped: 1
------------------
The problem is that these tests use the Random class which makes reproduction
not easy. The nasty thing is that there is no getter for the seed value. I
attached a patch where the seed value is calculated in the test case and the
Random object is initialized with a KNOWN seed value. This also gives me the
change to log the used seed value and reproduce in case of an error.
I would like to apply this patch on 2.5.x and 2.6.x to investigate further. I
assume there is a bug in the SofValueHashMap, but we were lucky with the SUN
sdk.
--
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
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel