[kaffe] CVS kaffe (kaz): libraries/javalib/vmspecific/java/net/VMInetAddress.java
kaz at maczuka.gcd.org
Thu Jan 11 07:39:58 PST 2007
From: Kaffe CVS <cvs-commits at kaffe.org>
Subject: [kaffe] CVS kaffe (kaz): libraries/javalib/vmspecific/java/net/VMInetAddress.java
Date: Thu, 11 Jan 2007 07:14:20 -0800
> * libraries/javalib/vmspecific/java/net/VMInetAddress.java
> (getHostByName): Convert the type of the reisult from Object
> to byte.
This patch is to make test/regression/InetSocketAddressTest.java pass.
The native method getHostByName in libraries/clib/net/InetAddressImpl.c
returns byte, but the returned array looks like Object.
When the array is cached by java.net.ResolverCache, it is stored as
an Object. And when it is reused, it can no longer be cast to byte.
It would be better if the native method in
libraries/clib/net/InetAddressImpl.c could return byte which is
clearly distinguished from Object.
More information about the kaffe