RE: [Ikvm-developers] (no subject)
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2003-07-21 07:02:06
|
Jonathan Pierce wrote: > The following code segment generates a runtime error when I=20 > run it with the classpath.dll in ikvm. It should be valid in=20 > java, so I believe that it indicates an ikvm code generation=20 > error in the implementation of .the constructor for=20 > java.net.InetSocketAddress (theSocketAddress, thePort) >=20 > =20 >=20 > string theHostName =3D "192.168.1.3"; >=20 > int thePort =3D 1521; >=20 > java.net.InetAddress theSocketAddress =3D=20 > java.net.InetAddress.getByName(theHostName); >=20 > java.net.InetSocketAddress theInetSocketAddress =3D new=20 > java.net.InetSocketAddress (theSocketAddress, thePort); >=20 > =20 >=20 > Please confirm whether this is a bug in ikvm or in classpath. I assume you're getting a System.Net.Sockets.SocketException (because 192.168.1.3 doesn't reverse resolve to a host name), right? This exception should have been caught and a java.net.UnknownHostException should be thrown. I've checked in a fix to classpath.cs. Thanks. Regards, Jeroen |