[fedora-java] [Fwd: Re: Azureus (Was: bittorrent in core? what frontend?)]

Mark Wielaard mark at klomp.org
Thu Jan 19 20:41:50 UTC 2006


On Wed, 2006-01-18 at 20:51 -0800, Anthony Green wrote:
> On Wed, 2006-01-18 at 00:18 -0500, David Walluck wrote:
> > There is some strangeness is some of the options. The cache size, for
> > example, is negative (-33). This might happen on Sun as well, I am not sure.
> 
> The Azureus developers helped track this down.  Cache size is derived
> from Runtime.getRuntime().maxMemory(), for which we return
> Long.MAX_VALUE.  Subsequent math on this overflows as we cast to an
> integer.  My latest SRPM has a patch.

This seems to be a common problem. Eclipse had the same kind of issue
(already fixed), see https://bugs.eclipse.org/bugs/show_bug.cgi?id=11129

We have added it to the page that lists problematic code snippets we
found in common free Java applications that make them dependent upon the
some specific (proprietary) implementation and that shows how to
implement things in a way that standards are respected and compatibility
with GNU Classpath is the result:
http://developer.classpath.org/mediation/ClasspathMigration

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20060119/c0651c0b/attachment.sig>


More information about the fedora-devel-java-list mailing list