InetAddress.getByName gives error under 1.5 but works fine under 1.4

On my dev machine a InetAddress.getByName works fine when the program is run under 1.4 but under 1.5 it throws an exception that it is not a valid host. I used java.sun.com for a test. Anybody seen this behaviour.Marteijnmnouwens@future-earth.net
[267 byte] By [Maerteijna] at [2007-10-2 0:45:59]
# 1
Nope - my 1.5.0_05 runs this without error:Inet4Address adr = java.net.InetAddress.getByName("java.sun.com");
ChuckBinga at 2007-7-15 17:55:32 > top of Java-index,Administration Tools,Sun Connection...
# 2
Are you sure. I think it's something in my machine but the code you posted should have a cast or just InetAdress.ThanksMarteijn
Maerteijna at 2007-7-15 17:55:32 > top of Java-index,Administration Tools,Sun Connection...
# 3
Yeah, Beanshell wanted me to specify it as Inet4Address for some reason; it really should be InetAddress.With that change it compiles and runs from the commandline.
ChuckBinga at 2007-7-15 17:55:32 > top of Java-index,Administration Tools,Sun Connection...
# 4
Inet4Address is a class together with Inet6Address to make IPv6 possible.
jwentinga at 2007-7-15 17:55:32 > top of Java-index,Administration Tools,Sun Connection...