Andrew Haley
544c479db3
InetAddress.java: Throw an UnknownHostException if lookup fails.
...
2006-04-07 Andrew Haley <aph@redhat.com>
* java/net/InetAddress.java: Throw an UnknownHostException if
lookup fails.
From-SVN: r112754
2006-04-07 15:42:07 +00:00
Kelley Cook
917b04f492
Update FSF address
...
From-SVN: r101453
2005-06-30 03:22:09 +00:00
Michael Koch
e5d149869a
2005-04-28 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(aton): Fixed javadoc.
(lookup): Likewise.
From-SVN: r98941
2005-04-28 21:02:40 +00:00
Michael Koch
9d8dadd8e0
InetAddress.java: Made all hexadecimal numbers lowercase.
...
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java: Made all hexadecimal numbers lowercase.
Fixed typos in javadocs.
(isSiteLocalAddress): Fixed handling of byte values.
(isMCLinkLocal): Likewise.
* java/net/Inet4Address.java
(isMulticastAddress): Call super method.
(isLoopbackAddress): Likewise.
(isAnyLocalAddress): Likewise.
(isLinkLocalAddress): Likewise.
(isSiteLocalAddress): Likewise.
(isMCGlobal): Likewise.
(isMCNodeLocal): Likewise.
(isMCLinkLocal): Likewise.
(isMCSiteLocal): Likewise.
(isMCOrgLocal): Likewise.
(getHostAddress): Likewise.
From-SVN: r98795
2005-04-26 22:07:39 +00:00
Sven de Marothy
52b26143c9
2005-04-26 Sven de Marothy <sven@physto.se>
...
* java/net/InetAddress.java
(toString): Don't print empty hostnames.
From-SVN: r98793
2005-04-26 21:55:30 +00:00
Michael Koch
583db39167
InetAddress.java: Fixed typos in javadocs.
...
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
Fixed typos in javadocs.
From-SVN: r98791
2005-04-26 21:44:26 +00:00
Michael Koch
0a0179a92f
2005-04-19 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(InetAddress): Fixed javadoc comment.
(aton): Likewise.
(lookup): Added javadoc.
(getFamily): Likewise.
* java/net/ServerSocket.java
(getChannel): Improved javadoc comment.
From-SVN: r98419
2005-04-19 19:07:13 +00:00
David Daney
4dc2f71b90
InetAddress.java (InetAddress): Make a private copy of the address.
...
2005-02-02 David Daney <ddaney@avtrex.com>
* java/net/InetAddress.java (InetAddress): Make a private copy of
the address.
* java/net/Inet4Address.java (getAddress): Return a copy of the
address.
* java/net/Inet6Address.java (Inet6Address): Use private copy of
the address
(getAddress): Return a copy of the address.
(equals): Rewrote.
From-SVN: r94664
2005-02-03 17:44:20 +00:00
Michael Koch
a34664c6ba
re PR libgcj/17069 (InetAddress.getLocalHost() returns broken InetAddress object if hostname not set)
...
2005-01-09 Michael Koch <konqueror@gmx.de>
PR libgcj/17069
* java/net/InetAddress.java (getLocalHost):
Throw UnknownHostException if local hostname cannot be determined.
From-SVN: r93115
2005-01-09 18:57:32 +00:00
Michael Koch
879245b6b2
InetAddress.java (getCanonicalHostName): Support IPv6 addresses.
...
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java (getCanonicalHostName):
Support IPv6 addresses.
From-SVN: r90793
2004-11-17 07:09:57 +00:00
Michael Koch
0a56af0b24
2004-11-16 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(toString): Merged from GNU classpath.
From-SVN: r90743
2004-11-16 15:33:49 +00:00
Michael Koch
df397ce2bd
Inet4Address.java: Merged file header and javadocs.
...
2004-10-18 Michael Koch <konqueror@gmx.de>
* java/net/Inet4Address.java: Merged file header and javadocs.
* java/net/Inet6Address.java: Likewise.
* java/net/InetAddress.java
(getCanonicalHostName): Create Inet4Address object instead of
InetAddress and add comment regarding IPv6.
(toString): Simplified.
From-SVN: r89211
2004-10-18 12:36:27 +00:00
Michael Koch
0aa3602654
InetAddress.java: Reformatted.
...
2004-09-30 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java: Reformatted.
(loopback): Initialize with Inet4Address object.
(static): Initialize ANY_IF with Inet4Address object.
(InetAddress): Removed unused package-private constructor.
From-SVN: r88336
2004-09-30 15:22:08 +00:00
Bryce McKinlay
d7945fafe3
InetAddress.java (loopbackAddress): Renamed from localhostAddress.
...
2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
* java/net/InetAddress.java (loopbackAddress): Renamed from
localhostAddress.
(getByName): Return loopback address for null hostname, without
security check. Use lookup(), not getAllByName.
(getAllByName): Return loopback address for null hostname, without
security check.
* java/net/natInetAddressPosix.cc (lookup): Don't perform security
check here.
From-SVN: r85967
2004-08-13 23:17:34 +01:00
Michael Koch
f6d49f66ec
Authenticator.java, [...]: Fixed javadocs, coding style and argument names all over.
...
2004-04-20 Michael Koch <konqueror@gmx.de>
* java/net/Authenticator.java,
java/net/BindException.java,
java/net/ConnectException.java,
java/net/ContentHandler.java,
java/net/ContentHandlerFactory.java,
java/net/DatagramPacket.java,
java/net/DatagramSocket.java,
java/net/DatagramSocketImpl.java,
java/net/DatagramSocketImplFactory.java,
java/net/FileNameMap.java,
java/net/HttpURLConnection.java,
java/net/Inet4Address.java,
java/net/Inet6Address.java,
java/net/InetAddress.java,
java/net/InetSocketAddress.java,
java/net/JarURLConnection.java,
java/net/MalformedURLException.java,
java/net/MulticastSocket.java,
java/net/NetPermission.java,
java/net/NetworkInterface.java,
java/net/NoRouteToHostException.java,
java/net/PasswordAuthentication.java,
java/net/PortUnreachableException.java,
java/net/ProtocolException.java,
java/net/ServerSocket.java,
java/net/Socket.java,
java/net/SocketAddress.java,
java/net/SocketException.java,
java/net/SocketImpl.java,
java/net/SocketImplFactory.java,
java/net/SocketOptions.java,
java/net/SocketPermission.java,
java/net/SocketTimeoutException.java,
java/net/URI.java,
java/net/URISyntaxException.java,
java/net/URL.java,
java/net/URLClassLoader.java,
java/net/URLConnection.java,
java/net/URLDecoder.java,
java/net/URLEncoder.java,
java/net/URLStreamHandler.java,
java/net/URLStreamHandlerFactory.java,
java/net/UnknownHostException.java,
java/net/UnknownServiceException.java:
Fixed javadocs, coding style and argument names all over.
From-SVN: r80900
2004-04-20 13:05:10 +00:00
Michael Koch
7f5773c692
2004-03-20 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(getLocalHostname): Added javadoc.
From-SVN: r79751
2004-03-20 17:59:39 +00:00
Norbert Frese
27729a060c
2004-03-16 Norbert Frese <postfach@nfrese.net>
...
* java/net/InetAddress.java
(getByName): Handle hostname == "" case.
From-SVN: r79529
2004-03-16 09:47:14 +00:00
Michael Koch
d7f16c2b3b
2003-11-30 Jeff Sturm <jsturm@one-point.com>
...
* java/net/InetAddress.java:
(static): Don'f force DNS request for ANY_IF address.
2003-11-30 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java,
java/net/natInetAddressNoNet.cc,
java/net/natInetAddressPosix.cc,
java/net/natInetAddressWin32.cc:
Reverted my last patch.
From-SVN: r74074
2003-11-30 21:02:56 +00:00
Michael Koch
c3f322d803
2003-11-28 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(lookup): New method that doesnt lookup "0.0.0.0".
(ImplLookup): Renamed from lookup.
* java/net/natInetAddressNoNet.cc
(ImplLookup): Renamed from lookup.
* java/net/natInetAddressPosix.cc
(ImplLookup): Renamed from lookup.
* java/net/natInetAddressWin32.cc
(ImplLookup): Renamed from lookup.
From-SVN: r74026
2003-11-28 22:01:29 +00:00
Michael Koch
9c9081ae91
2003-10-29 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(equals): Remove redundant obj == null check.
* java/net/SocketPermission.java
(equals): Likewise.
* java/net/URL.java
(equals): Likewise.
(getURLStreamHandler): Likewise.
From-SVN: r73034
2003-10-29 10:53:19 +00:00
Michael Koch
484fe3bff8
2003-10-02 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(zeros): Removed.
(ANY_IF): Initalizie in static block.
(static): Load library with native methods here and initialize ANY_IF.
(isAnyLocalAddress): Check if equal to ANY_IF.
(equals): Use addr directly instead of addr1. Simplify for loop.
(toString): Rename "result" to "host" and add IP address allways.
(getLocalHost): Merged documentation from classpath.
* java/net/ServerSocket.java
(ServerSocket): New package-private constructor used by java.nio.
* java/net/URLConnection.java
(getRequestProperties): Check if already connected.
From-SVN: r72032
2003-10-02 15:17:13 +00:00
Michael Koch
fc5532c0c5
Fixed little typo.
...
From-SVN: r71900
2003-09-29 12:05:41 +00:00
Michael Koch
b47ea0e89c
2003-09-29 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java:
(isMulticastAddress): Dont use local variable to store address length.
Let the compiler optimize this.
(getHostName): Merged dcoumentation from classpath.
(getAddress): Likewise.
(getHostAddress): Likewise.
(hashCode): Likewise.
(equals): Likewise.
(toString): Likewise.
(getByName): Likewise.
(getAllByName): Likewise.
From-SVN: r71899
2003-09-29 11:53:23 +00:00
Michael Koch
7da1da8352
InetAddress.java, URL.java: Reformated.
...
2003-09-29 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java,
java/net/URL.java: Reformated.
From-SVN: r71897
2003-09-29 11:24:28 +00:00
Michael Koch
194c91ec53
InetAddress.java: Reorder imports, remove implementation comment.
...
2003-09-25 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
Reorder imports, remove implementation comment.
(isMulticastAddress): Merged documentation from classpath.
* java/net/URLConnection.java
(setRequestProperty): Check key for null, fix documentation.
(adREquestProperty): Check key for null, remove wrong implementation
and replace it with comment to overwrite this method in subclasses,
fix documentation.
From-SVN: r71767
2003-09-25 08:22:56 +00:00
Michael Koch
7cdc862eae
InetAddress.java: Moves around some code, reformats and adds documentation.
...
2003-09-22 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
Moves around some code, reformats and adds documentation.
No functional changes.
From-SVN: r71649
2003-09-22 07:56:44 +00:00
Michael Koch
a05f6447e3
HttpURLConnection.java, [...]: Reworked import statements.
...
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/net/HttpURLConnection.java,
java/net/Inet4Address.java,
java/net/Inet6Address.java,
java/net/SocketImpl.java,
java/net/URLClassLoader.java:
Reworked import statements.
* java/net/InetAddress.java
(getByAddress): Simplified.
* java/net/ServerSocket.java
(ServerSocket): Moved special handling during bind operation to
bind().
(bind): Handle different cases when trying to bind a socket.
* java/net/URLConnection.java
(getHeaderFieldDate): Merged with classpath.
(getHeaderFieldInt): Likewise.
From-SVN: r68198
2003-06-19 15:08:22 +00:00
Michael Koch
75da2103e4
InetAddress.java: Reformatted to better match classpath's version.
...
2003-06-18 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
Reformatted to better match classpath's version.
* java/net/URL.java
(equals): Simplified.
* java/net/URLConnection.java
(setDoInput): Revised documentation.
(getDefaultUseCaches): Likewise.
(setRequestProperty): Added @since tag.
From-SVN: r68143
2003-06-18 08:09:48 +00:00
Michael Koch
143f596a09
InetAddress.java: Merged class documentation with classpath.
...
2003-05-02 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
Merged class documentation with classpath.
* java/net/JarURLConnection.java:
Explicitely import all used classes.
* java/net/URL.java:
Reformatting.
* java/net/ServerSocket.java,
java/net/Socket.java:
New versions from classpath.
From-SVN: r66376
2003-05-02 09:27:59 +00:00
Michael Koch
111a007d96
InetAddress.java, [...]: Merged copyright statements with classpath for easier merging.
...
2003-03-20 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java,
java/net/JarURLConnection.java,
java/net/PlainDatagramSocketImpl.java,
java/net/PlainSocketImpl.java,
java/net/URLConnection.java:
Merged copyright statements with classpath for easier merging.
From-SVN: r64611
2003-03-20 08:19:58 +00:00
Mark Wielaard
081a777dea
InetAddress.java (toString): Use hostname when not null, don't do an explicit reverse getHostName() lookup.
...
* java/net/InetAddress.java (toString): Use hostname when not null,
don't do an explicit reverse getHostName() lookup.
* java/net/Socket.java (setSocketImplFactory): When fac == null throw
NullPointerException.
From-SVN: r59902
2002-12-07 01:19:02 +00:00
Michael Koch
75fe3383d8
2002-11-01 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java:
(isAnyLocalAddress): Implemented.
(isLoopbackAddress): Implemented, comment added.
(isLinkLocalAddress): Implemented, documentation added.
(isSiteLocalAddress): Implemented, documentation added.
(isMCGlobal): Implemented, documentation added.
(isMCNodeLocal): Implemented, documentation added.
(isMCLinkLocal): Implemented, documentation added.
(isMCSiteLocal): Implemented, documentation added.
(isMCOrgLocal): Implemented, documentation added.
(getHostName): Documentation added.
(getCanonicalHostName): Implemented, documentation added.
(getAddress): Documentation added.
(hashCode): Documentation added.
(equals): Documentation added.
(toString): Fixed implementation.
(getByAddress): Use Inet4Address and Inet6Address.
(lookup): New linewrap.
(getByName): SecurityManager check added, support Inet4Address and
Inet6address, comments added.
(getAllByName): SecurityManager check added, comments added.
* java/net/Inet6Address.java:
(Inet6Address): Initialize parent class with addr instead of null.
* java/net/URL.java
(equals): Documentation added.
(getFile): Documentation added.
(hashCode): Documentation added.
* java/net/natInetAddress.cc:
(aton): Fix IPv6 support.
* java/net/natPlainDatagramSocketImpl.cc:
(peek): Throw PortUnreachableException when suitable.
(peekData): Throw PortUnreachableException when suitable.
(send): Throw PortUnreachableException when suitable.
(receive): Throw PortUnreachableException when suitable.
From-SVN: r58704
2002-11-01 06:35:14 +00:00
Michael Koch
7393decb70
2002-10-08 Michael Koch <konqueror@gmx.de>
...
* java/net/HttpURLConnection.java
(getPermission): New method.
(getErrorStream): New stub method.
(getHeaderFieldDate): New stub method.
* java/net/Inet4Address.java:
(isLinkLocalAddress): Typo fixed.
* java/net/InetAddress.java:
(readResolve): New stubbed method (for serialization).
(isAnyLocalAddress): New stubbed method.
(isLoopbackAddress): New stubbed method.
(isLinkLocalAddress): New stubbed method.
(isSiteLocalAddress): New stubbed method.
(isMCGlobal): New stubbed method.
(isMCNodeGlobal): New stubbed method.
(isMCLinkLocal): New stubbed method.
(isMCSiteLocal): New stubbed method.
(isMCOrgLocal): New stubbed method.
(getCanonicalHostName): New stubbed method.
(getByAddress): Create instances of Inet4Address/Inet6Address,
instead of InetAddress, documentation added.
* java/net/MulticastSocket.java
(getInterface): Removed FIXME.
(getNetworkInterface): New method.
(setNetworkInterface): New method.
* java/net/NetworkInterface.java:
(toString): Use property "line.separator" instead of "\n".
* java/net/URLConnection.java
(getContent): New stubbed method.
* java/net/URLStreamHandler.java:
(equals): New stubbed method.
(hostsEqual): New stubbed method.
(hashCode): New stubbed method.
* java/net/natNetworkInterface.cc:
(getRealNetworkInterfaces): Create Inet4Address object
instead of InetAddress.
From-SVN: r58002
2002-10-10 05:19:22 +00:00
Michael Koch
f5b63cb6d7
2002-10-05 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java
(getByAddress): Fixed documentation.
(getByAddress): New method.
* java/net/Inet4Address.java: New file.
* java/net/URL.java
(URL): Documentation added.
(getContent): Documentation added.
(getContent): New stubbed method.
(getQuery): New method.
(openConnection): Documentation added.
(openStream): Documentation added.
(setURLStreamHandlerFactory): Documentation added.
* java/net/URI.java: New stub file.
* Makefile.am
(java_native_source_files): Added java/net/Inet4Address.java,
java/net/Inet6Address.java and java/net/URI.java.
* Makefile.in: Regenerated.
From-SVN: r57841
2002-10-05 07:49:08 +00:00
Michael Koch
cc40c1e130
2002-10-04 Michael Koch <konqueror@gmx.de>
...
* java/net/InetAddress.java:
(isMulticastAddress): Added documentation.
(getHostAddress): Added documentation.
(toString): Added documentation.
(getByAddress): Fixed documentation.
(getByName): Added documentation.
(getAllByName): Added documentation.
(getLocalHost): Added documentation.
From-SVN: r57814
2002-10-04 08:49:26 +00:00
Michael Koch
8e3cce3234
InetAddress.java (class InetAddress): Removed final keyword.
...
2002-10-03 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(class InetAddress): Removed final keyword.
(equals): Fixed typo.
(getByAddress): New method.
From-SVN: r57779
2002-10-03 17:17:39 +00:00
Mark Wielaard
9566a90c6b
InetAddress.java (ANY_IF): moved from ServerSocket.
...
* java/net/InetAddress.java (ANY_IF): moved from ServerSocket.
* java/net/DatagramSocket.java (DatagramSocket): use ANY_IF from
InetAddress.
* java/net/MulticastSocket.java (MulticastSocket): Likewise.
* java/net/Socket.java: Merge with Classpath.
* java/net/ServerSocket.java: Likewise.
From-SVN: r48797
2002-01-12 10:11:13 +00:00
Warren Levy
6678181b3c
InetAddress.java (addr): Renamed from 'address'.
...
* java/net/InetAddress.java (addr): Renamed from 'address'.
(address): New field to match Serialized Form doc.
(hostName): Renamed from 'hostname' to match Serialized Form doc.
(family): New serialization field.
(serialVersionUID): New field.
(readObject): New method.
(writeObject): New method.
(getFamily): New native method.
(InetAddress): Set family.
* java/net/natInetAddress.cc (getFamily): New method.
(addr): Renamed from 'address'.
(hostName): Renamed from 'hostname' to match Serialized Form doc.
* java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
* java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
Serialization mod.
From-SVN: r37222
2000-11-03 07:43:06 +00:00
Warren Levy
7b245d2461
PropertyChangeEvent.java (oldVal): Renamed to oldValue.
...
* java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
(newVal): Renamed to newValue.
* java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
* java/beans/beancontext/BeanContextServiceRevokedEvent.java
(revokeNow): Renamed to invalidateRefs.
* java/io/OptionalDataException.java: Updated FIXME.
(eof): New placeholder field.
(length); Ditto.
* java/io/WriteAbortedException.java (message): Made transient.
* java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
* java/lang/Throwable.java (stackTrace): Made transient.
* java/net/InetAddress.java: Made Serializable.
* java/security/KeyPair.java: Made Serializable.
* java/security/Provider.java: Replaced with Classpath version that
implements serialization and proper methods.
* java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
(limits): Renamed to choiceLimits.
Serialization changes per:
http://java.sun.com/products/jdk/1.2/docs/api/serialized-form.html
From-SVN: r34726
2000-06-27 05:10:03 +00:00
Tom Tromey
2ba5f77454
All files: Updated copyright information.
...
* All files: Updated copyright information.
* COPYING: New file.
* COPYING.LIB: Removed.
* LIBGCJ_LICENSE: We now use GPL + special exception.
From-SVN: r32387
2000-03-07 19:55:28 +00:00
Tom Tromey
7c734b1758
* All files: Updated copyright to reflect Cygnus purchase.
...
From-SVN: r31504
2000-01-19 18:39:27 +00:00
Bryce McKinlay
e0cb3930ca
natInetAddress.cc (lookup): Preserve caller-supplied hostname in returned InetAddress objects.
...
* java/net/natInetAddress.cc (lookup): Preserve caller-supplied
hostname in returned InetAddress objects.
(getLocalHostname): Fix typo.
* java/net/InetAddress.java (getByName): Set hostname on return
object.
(getLocalHost): Call lookup directly to ensure that a fully-qualified
name is returned.
From-SVN: r27587
1999-06-18 02:17:28 +01:00
Tom Tromey
ee9dd3721b
Initial revision
...
From-SVN: r26263
1999-04-07 14:42:40 +00:00