Build failures on jdk 1.6
-------------------------

                 Key: GEOT-1917
                 URL: http://jira.codehaus.org/browse/GEOT-1917
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.5-M2
            Reporter: Andrea Aime
            Assignee: Martin Desruisseaux


Building the epsg-hsql module with jdk 1.6 on trunk results in the following 
test failures:

{code}
Failed tests:
  
testFindWSG84(org.geotools.referencing.factory.epsg.HsqlDialectEpsgMediatorTest)
  
testFindWSG84(org.geotools.referencing.factory.epsg.HsqlDialectEpsgFactoryTest)
  testFind(org.geotools.referencing.factory.epsg.DefaultFactoryTest)
{code}

the detailed report suggest:

{code}
-------------------------------------------------------------------------------
Test set: org.geotools.referencing.factory.epsg.HsqlDialectEpsgMediatorTest
-------------------------------------------------------------------------------
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.39 sec <<< 
FAILURE!
testFindWSG84(org.geotools.referencing.factory.epsg.HsqlDialectEpsgMediatorTest)
  Time elapsed: 2.344 sec  <<< FAILURE!
junit.framework.ComparisonFailure: The CRS should still in the cache. 
expected:<EPSG:[4326]> but was:<EPSG:[63266405]>
        at junit.framework.Assert.assertEquals(Assert.java:81)
        at 
org.geotools.referencing.factory.epsg.HsqlDialectEpsgMediatorTest.testFindWSG84(HsqlDialectEpsgMediatorTest.java:108)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
{code}

The same module builds fine on jdk 1.5. Wild guess is that this is due to a 
difference in collection iteration order?

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

        

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to