2006-11-03 Gary Benson <gbenson@redhat.com>

* java/net/Inet4Address.java
	(FAMILY): Renamed to AF_INET.
	(<init>, writeReplace): Reflect the above.
	* java/net/Inet6Address.java
	(FAMILY): Renamed to AF_INET6.
	(<init>): Reflect the above.

From-SVN: r118452
This commit is contained in:
Gary Benson 2006-11-03 10:16:30 +00:00 committed by Gary Benson
parent adefdaca2d
commit 54f9963a20
3 changed files with 14 additions and 5 deletions

View file

@ -95,7 +95,7 @@ public final class Inet6Address extends InetAddress
/**
* The address family of these addresses (used for serialization).
*/
private static final int FAMILY = 10; // AF_INET6
private static final int AF_INET6 = 10;
/**
* Create an Inet6Address object
@ -105,7 +105,7 @@ public final class Inet6Address extends InetAddress
*/
Inet6Address(byte[] addr, String host)
{
super(addr, host, FAMILY);
super(addr, host, AF_INET6);
// Super constructor clones the addr. Get a reference to the clone.
this.ipaddress = this.addr;
ifname = null;