yangxu998 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

InetAddresses.forString does not throw IllegalArgumentException on an invalid IPv4 address #614

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.InetAddresses.forString("1.1.1.1.");
or
InetAddresses.forString("1.1.1.1..");
and so on...

What is the expected output? What do you see instead?
I expect an IllegalArgumentException.
Instead I receive a Inet4Address object with the address "1.1.1.1".

What version of the product are you using? On what operating system?
guava-r08 
Windows XP Professional 32bit

Original issue reported on code.google.com by krzyszto...@gmail.com on 27 Apr 2011 at 11:04

GoogleCodeExporter commented 9 years ago
Thanks for this (and the others, keep em coming).

Original comment by kevinb@google.com on 3 May 2011 at 11:19

GoogleCodeExporter commented 9 years ago
This will be fixed in release 10.

Original comment by cpov...@google.com on 20 Jun 2011 at 9:35

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09