From: Kaffe CVS <[EMAIL PROTECTED]>
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[].

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to