Closed GoogleCodeExporter closed 9 years ago
(It's possible there's some good reason this method isn't there, but I don't
know it offhand.)
Original comment by kevinb@google.com
on 31 Jan 2011 at 9:56
Hm... the current implementation converts the text into a byte[], then uses
InetAddress.getByAddress(byte[]).
There's some magic in InetAddress.getByAddress() that auto-converts
"::ffff:102:304" to "1.2.3.4".
We *could* bypass this magic by explicitly calling Inet6Address.getByAddress(),
but I'm not sure if that's the right thing to do.
Original comment by pma...@google.com
on 5 May 2011 at 11:05
Last time I checked it was impossible to make Java instantiate such a thing.
When I tried to pass the byte array into Inet6Address.getByAddress() I got back
an Inet4Address (because getByAddress() returns an InetAddress).
If I'm wrong, that's good to know, but otherwise this is why there are no
"mapped" methods. That doesn't mean we shouldn't have a String evaluating
method that checks the syntax; I think perhaps we should for completeness. But
regardless, I could never actually instantiate such a thing.
Original comment by ek@google.com
on 6 May 2011 at 7:43
Original comment by kevinb@google.com
on 13 Jul 2011 at 6:18
Original comment by cpov...@google.com
on 13 Jul 2011 at 7:44
Original comment by kevinb@google.com
on 1 Aug 2011 at 9:44
Original comment by fry@google.com
on 3 Aug 2011 at 7:45
This issue was closed by revision r609.
Original comment by guava.mi...@gmail.com
on 4 Aug 2011 at 10:57
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:15
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:09
Original issue reported on code.google.com by
krzyszto...@gmail.com
on 31 Jan 2011 at 2:02