[freenet-dev] Classpath vs. Sun-Java diffs
Sven-Ola Tuecke
sven-ola at gmx.de
Sun Apr 13 12:00:40 UTC 2008
Hi,
a carefully crafted runtime may throw an excepetion in that case - which is
not the case in both sun and gnu implementations. The code snippet is
extracted from freenet/src/freenet/node/LocationManager.java...
// Sven-Ola
----- Original Message -----
From: "Michael Rogers" <m.rogers at cs.ucl.ac.uk>
To: "Discussion of development issues" <devl at freenetproject.org>
Sent: Sunday, April 13, 2008 11:47 AM
Subject: Re: [freenet-dev] Classpath vs. Sun-Java diffs
I'm used to Iterators rather than Enumerations, but doesn't modifying a
collection invalidate any associated enumerations?
Cheers,
Michael
Sven-Ola Tücke wrote:
> Hi,
>
> found some time to investigate the "NPE while running freenet
> under gcj/gij/classpath" issue. The attached java snippet's output is
> different:
>
> root at pcacer:/media/hdd/PVR/src/test# update-java-alternatives -s java-gcj
> > /dev/null 2>&1
> root at pcacer:/media/hdd/PVR/src/test# java Hashme
> next(-5625102382211955399)
> remove(-5625102382211955399)
> remove(-5625102382211955398)
> next(-8661044121393429580)
> next(null)
> root at pcacer:/media/hdd/PVR/src/test# update-java-alternatives -s
> java-6-sun > /dev/null 2>&1
> root at pcacer:/media/hdd/PVR/src/test# java Hashme
> next(-5625102382211955399)
> remove(-5625102382211955399)
> remove(-5625102382211955398)
> next(-8661044121393429580)
>
> As a temporaray fix, the 007*.patch works.
>
> // Sven-Ola
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
More information about the Devl
mailing list