RE: [BUG] Inet6Address.isIPv4CompatibleAddress uses wrong prefix

2019-06-25 Thread Langer, Christoph
Hi Rob, sending this over to net-dev, where it should be discussed... /Christoph > -Original Message- > From: core-libs-dev On Behalf > Of Rob Spoor > Sent: Montag, 24. Juni 2019 22:58 > To: core-libs-dev@openjdk.java.net > Subject: [BUG] Inet6Address.isIPv4Compatible

Re: [BUG] Inet6Address.isIPv4CompatibleAddress uses wrong prefix

2019-06-25 Thread Alan Bateman
On 24/06/2019 21:57, Rob Spoor wrote: I found a bug in Inet6Adress.isIPv4CompatibleAddress(). While parsing correctly uses the ::: format, isIPv4CompatibleAddress() checks for :: instead. The notion "IPv4-compatible IPv6 address" is different to "IPv4-mapped IPv6 address".  I think the

[BUG] Inet6Address.isIPv4CompatibleAddress uses wrong prefix

2019-06-24 Thread Rob Spoor
I found a bug in Inet6Adress.isIPv4CompatibleAddress(). While parsing correctly uses the ::: format, isIPv4CompatibleAddress() checks for :: instead. An example: Inet6Address address = (Inet6Address) InetAddress.getByName("::192.168.1.13"); System.out.printf("%s: %b%n", address,