Le mardi 30 janvier 2007 à 18:49 +1100, James Macgill a écrit :
> Oh, and watch assumptions abou itteratoin order in non-ordered collections!

That right, I forgot talk about this point. In order to get trunk to
compile with Java 6, I disabled 2 tests (if my memory serve me right)
which was making assumption about HashSet or HashMap iteration order.
Those tests are run only when the JVM is 1.4. In order to do that, I
added a "isBaseJavaPlatform()" method in org.geotools.test.TestData. The
disabled tests are actually put in a block like:

if (isBaseJavaPlatform()) {
    // the test to run only on Java 1.4...
}

So a search on "isBaseJavaPlatform" on geotools trunk will spot the
places where there is assumption about iteration order in test cases.

        Martin



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to