aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net
AgeCommit message (Collapse)AuthorFilesLines
2005-02-16Subject.java (doAsPrivileged): If acc is null, create a new ↵Andrew Haley1-1/+1
AccessControlContext. 2005-02-08 Andrew Haley <aph@redhat.com> * javax/security/auth/Subject.java (doAsPrivileged): If acc is null, create a new AccessControlContext. * java/security/SecureClassLoader.java (protectionDomainCache): new field. (defineClass): Create a new protection domain and add it to our cache. * java/rmi/server/UnicastRemoteObject.java (exportObject): Call addStub() to keep track of the stub we've exported. (unexportObject): Call deleteStub(). * java/rmi/server/RemoteObject.java (stubs): New field. (addStub): New method. (deleteStub): New method. (toStub): Rewrite. * java/lang/VMCompiler.java (loadSharedLibrary): Pass true to findHelper (tryParents). * gnu/gcj/runtime/SharedLibLoader.java (SharedLibLoader): Likewise. * java/net/URLClassLoader.java (SoURLLoader): Likewise. * gnu/gcj/runtime/SharedLibHelper.java (SharedLibHelper): Pass ProtectionDomain. If tryParents is false, don't scan parent class loaders. * java/security/Permissions.java (PermissionsHash.implies): Iterate over the collection and invoke implies() on each element. From-SVN: r95111
2005-02-15URLClassLoader.java (JarURLLoader.JarURLLoader): Just use space for parsing ↵Mark Wielaard1-5/+1
CLASS_PATH attribute. * java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Just use space for parsing CLASS_PATH attribute. From-SVN: r95077
2005-02-15URLClassLoader.java (JarURLLoader.JarURLLoader): Don't look aside for ↵Mark Wielaard1-74/+33
"GCJLIBS" in directory where jarfiles are loaded. * java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Don't look aside for "GCJLIBS" in directory where jarfiles are loaded. (JarURLLoader.getClass): Removed method. (JarURLLoader.toString): Removed method. (FileResource.toString): Removed method. From-SVN: r95076
2005-02-12Fixes bug libgcj/8170Mark Wielaard1-3/+38
Fixes bug libgcj/8170 * java/lang/ClassLoader.java (loadClass): Don't rewrap ClassNotFoundException. * gnu/java/lang/MainThread.java (run): Chain NoClassDefFoundError. * gnu/gcj/runtime/NameFinder.java (remove_interpreter): Removed. (remove_internal): New field superceding remove_interpreter. (sanitizeStack): Remove all no-package classes starting with "_Jv_". Remove no-class methods starting with "_Jv_". And Replace null class or method names with the empty string. Stop at either the MainThread or a real Thread run() method. (newElement): Made static. * java/net/URLClassLoader.java (findClass): Throw ClassNotFoundExceptions including urls, plus parent using toString(). (thisString): New field. (toString): New method. From-SVN: r94935
2005-02-09URI.java (AUTHORITY_REGEXP): Handle case where user name or port is missing.Tom Tromey1-4/+4
* java/net/URI.java (AUTHORITY_REGEXP): Handle case where user name or port is missing. (AUTHORITY_USERINFO_GROUP, AUTHORITY_HOST_GROUP, AUTHORITY_PORT_GROUP): Updated. From-SVN: r94760
2005-02-03InetAddress.java (InetAddress): Make a private copy of the address.David Daney3-7/+9
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-01-15re PR java/19444 (GCJ implementation of java.net.URI misses host support)Michael Koch1-4/+45
2005-01-15 Michael Koch <konqueror@gmx.de> PR libgcj/19444 * java/net/URI.java (AUTHORITY_REGEXP): New regexp constant. (AUTHORITY_USERINFO_GROUP): New constant. (AUTHORITY_HOST_GROUP): Likewise. (AUTHORITY_PORT_GROUP): Likewise. (port): Changed default value to -1. (parseURI): Parse authority part and initialize host, port and userInfo. From-SVN: r93711
2005-01-11re PR libgcj/13972 (gcj's URL() does not handle ContextURL + ↵Michael Koch1-4/+3
"/redir?http://domain2.com/index.html" correctly.) 2005-01-11 Michael Koch <konqueror@gmx.de> PR libgcj/13972 * java/net/URL.java (URL): Handle specs like "/redir?http://domain2.com/index.html" which start with a slash. From-SVN: r93197
2005-01-09re PR libgcj/17069 (InetAddress.getLocalHost() returns broken InetAddress ↵Michael Koch1-1/+3
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
2004-11-25* Merged gcj-abi-2-dev-branch to trunk.Tom Tromey1-19/+132
(Actual changes too large to list in the commit message; see ChangeLog.) From-SVN: r91270
2004-11-182004-11-18 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters1-17/+3
* java/net/URLStreamHandler.java (parseURL): Fixed file path canonicalisation. From-SVN: r90880
2004-11-18URLClassLoader.java: Whitespace cleanup.Michael Koch1-170/+172
2004-11-18 Michael Koch <konqueror@gmx.de> * java/net/URLClassLoader.java: Whitespace cleanup. From-SVN: r90877
2004-11-18Inet6Address.java (getHostAddress): Fix textual representation of IPv6 ↵Mattias Rehnberg1-10/+3
address with embedded zeroes to conform to... 2004-11-18 Mattias Rehnberg <Mattias.Rehnberg@home.se> * java/net/Inet6Address.java (getHostAddress): Fix textual representation of IPv6 address with embedded zeroes to conform to RFC 2373. From-SVN: r90874
2004-11-17Socket.java (getPort): Return 0 in error case.Michael Koch1-1/+1
2004-11-17 Michael Koch <konqueror@gmx.de> * java/net/Socket.java (getPort): Return 0 in error case. From-SVN: r90805
2004-11-17URL.java (URL): Handle case when argument is null.Michael Koch1-1/+1
2004-11-17 Michael Koch <konqueror@gmx.de> * java/net/URL.java (URL): Handle case when argument is null. From-SVN: r90800
2004-11-17InetAddress.java (getCanonicalHostName): Support IPv6 addresses.Michael Koch1-2/+8
2004-11-17 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java (getCanonicalHostName): Support IPv6 addresses. From-SVN: r90793
2004-11-162004-11-16 Michael Koch <konqueror@gmx.de>Michael Koch1-3/+3
* java/net/InetAddress.java (toString): Merged from GNU classpath. From-SVN: r90743
2004-11-16BufferedReader.java, [...]: Fixed javadocs all over.Michael Koch2-20/+34
2004-11-16 Michael Koch <konqueror@gmx.de> * java/io/BufferedReader.java, java/io/FileInputStream.java, java/io/FileOutputStream.java, java/io/FileWriter.java, java/io/OutputStreamWriter.java, java/io/PipedInputStream.java, java/io/PipedOutputStream.java, java/io/PipedReader.java, java/io/PipedWriter.java, java/io/PrintStream.java, java/io/PushbackInputStream.java, java/io/RandomAccessFile.java, java/io/Reader.java, java/io/StreamTokenizer.java, java/io/StringReader.java, java/net/NetworkInterface.java, java/net/URLClassLoader.java, java/nio/ByteOrder.java, java/nio/channels/Channel.java: Fixed javadocs all over. From-SVN: r90727
2004-11-06URLClassLoader.java (URLClassLoader): Now package-private.Tom Tromey1-4/+4
* java/net/URLClassLoader.java (URLClassLoader): Now package-private. * java/nio/charset/CoderResult.java (CoderResult): Now package-private. (get): Likewise. (Cache): Likewise. Don't synchronize on `this'. * java/rmi/server/RMIClassLoader.java (MyClassLoader): Now package-private. * java/util/TimeZone.java (timezones): Now package-private. From-SVN: r90203
2004-11-06Socket.java (getPort): Return 0 instead of -1 on unconnected sockets.Noa Resare1-2/+2
2004-11-06 Noa Resare <noa@resare.com> * java/net/Socket.java (getPort): Return 0 instead of -1 on unconnected sockets. From-SVN: r90178
2004-10-21NetworkInterface.java, [...]: Import cleanup.Michael Koch1-1/+2
2004-10-21 Michael Koch <konqueror@gmx.de> * java/net/NetworkInterface.java, java/text/Format.java, javax/security/auth/x500/X500Principal.java, javax/security/auth/x500/X500PrivateCredential.java, javax/security/cert/X509CertBridge.java, javax/security/sasl/Sasl.java, javax/sql/XAConnection.java: Import cleanup. From-SVN: r89401
2004-10-18Inet4Address.java: Merged file header and javadocs.Michael Koch3-31/+22
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-18PlainDatagramSocketImpl.java: Reworked import statements.Michael Koch1-2/+2
2004-10-18 Michael Koch <konqueror@gmx.de> * gnu/java/net/PlainDatagramSocketImpl.java: Reworked import statements. * gnu/java/security/provider/DSAParameters.java: Fixed copyrigth years. * java/net/JarURLConnection.java: Fixed HTML in @author tags. From-SVN: r89205
2004-10-17BindException.java, [...]: Big import statement and @author tag cleanup.Michael Koch34-111/+102
2004-10-17 Michael Koch <konqueror@gmx.de> * 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/MalformedURLException.java, java/net/MulticastSocket.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/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/URLDecoder.java, java/net/URLEncoder.java, java/net/URLStreamHandler.java, java/net/URLStreamHandlerFactory.java, java/net/UnknownHostException.java, java/net/UnknownServiceException.java: Big import statement and @author tag cleanup. From-SVN: r89168
2004-09-30InetAddress.java: Reformatted.Michael Koch1-32/+23
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-28URLConnection.java: Reformatted.Michael Koch2-33/+40
2004-09-28 Michael Koch <konqueror@gmx.de> * java/net/URLConnection.java: Reformatted. * java/net/URLClassLoader.java: Reformatted. (getContent): Reordered return of content. (getContentHandler): Don't check for null explicitely. From-SVN: r88226
2004-09-24URL.java (systemClassLoader): New static field.Mark Wielaard1-20/+28
2004-09-24 Mark Wielaard <mark@klomp.org> * java/net/URL.java (systemClassLoader): New static field. (getURLStreamHandler): Always use system/application classloader for finding URLStreamhandler. Remove unecessary instanceof checks. From-SVN: r88018
2004-09-242004-09-24 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux1-17/+25
* java/net/URL.java (set): This method now matches the behaviour of the JDK. (DEFAULT_SEARCH_PATH): Added "gnu.inet". From-SVN: r88016
2004-09-24[multiple changes]Michael Koch1-1/+3
2004-09-24 Guilhem Lavaux <guilhem@kaffe.org> * java/net/URL.java (URL): Delete whitespaces in the protocol string. 2004-09-24 Jeroen Frijters <jeroen@frijters.net> * java/net/URL.java (URL(String,String,int,String,URLStreamHandler): Don't set authority if host isn't specified. From-SVN: r88015
2004-09-23re PR libgcj/17623 (URL does not retain userInfo across context constructor.)David Daney1-1/+6
PR libgcj/17623 * java/net/URL.java (URL): Copy userInfo from context. (getUserInfo): Return cached userInfo if present. From-SVN: r87909
2004-09-212004-09-21 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+3
* java/net/Socket.java (getLocalAddress): Return InetAddress.ANY_IF if not bound yet. From-SVN: r87817
2004-09-09[multiple changes]Andreas Tobler1-0/+3
2004-09-09 Michael Koch <konqueror@gmx.de> * java/security/ProtectionDomain.java, * java/util/PropertyPermissionCollection.java: Fixed javadocs all over. 2004-09-09 Sven de Marothy <sven@physto.se> Patch from David Gilbert <david.gilbert@object-refinery.com> * java/lang/Comparable.java: Fixed documentation errors. * java/util/Arrays.java: Likewise. 2004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/net/Inet4Address.java (Inet4Address): Added comment to serialization UID. * java/text/Format.java (Format): Added comment to serialization UID. From-SVN: r87248
2004-09-05natNetworkInterfaceWin32.cc (getRealNetworkInterfaces): Changed pfn from ↵Mohan Embar1-1/+10
static local to local. * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces): Changed pfn from static local to local. From-SVN: r87099
2004-08-19DatagramSocket.java: Fixed typo.Tom Tromey1-1/+1
2004-08-19 Tom Tromey <tromey@redhat.com> * java/net/DatagramSocket.java: Fixed typo. From-SVN: r86244
2004-08-18re PR libgcj/17081 (Deserializing java.net.URI fails)Bryce McKinlay1-17/+32
2004-08-18 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/17081 * java/net/URI.java (string): New field. Make all other fields transient. (readObject): Implemented. (writeObject): Implemented. (URI): Set 'string'. From-SVN: r86197
2004-08-14natInetAddressPosix.cc (lookup): Reflect rename of localhostAddress to ↵Andreas Tobler2-4/+4
loopbackAddress. 2004-08-14 Andreas Tobler <a.tobler@schweiz.ch> * java/net/natInetAddressPosix.cc (lookup): Reflect rename of localhostAddress to loopbackAddress. * java/net/natInetAddressWin32.cc (lookup): Likewise. From-SVN: r85982
2004-08-13InetAddress.java (loopbackAddress): Renamed from localhostAddress.Bryce McKinlay2-18/+22
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-07-23Makefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.Bryce McKinlay1-6/+14
2004-07-22 Bryce McKinlay <mckinlay@redhat.com> * Makefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java. * Makefile.in: Rebuilt. * java/net/URLConnection.java (defaultFactory): New field. (getContent): (getContentHandler): Renamed from 'setContentHandler'. Try defaultFactory after user-set factory, if any. Search for content handler implementations in gnu.java.net.content, not gnu.gcj.content. * gnu/java/net/protocol/file/Connection.java (getHeaderField): Implemented. (getLastModified): Implemented. (getPermission): Create file permission here, instead of in constructor. * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField): Implemented. * gnu/java/net/protocol/jar/Connection.java (getHeaderField): Implemented. (getLastModified): Implemented. * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New. Default implementation. * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New. Implement using GdkPixbufDecoder. From-SVN: r85069
2004-07-22URLConnection.java (position): New field.Bryce McKinlay1-14/+21
2004-07-21 Bryce McKinlay <mckinlay@redhat.com> * java/net/URLConnection.java (position): New field. (dateFormat1, dateFormat2, dateFormat3): Removed. (dateFormats): New field. (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition each time instead of re-allocating. (initializeDateFormats): Initialize 'dateFormats'. From-SVN: r85033
2004-07-20Socket.java (getImpl): Now private.Bryce McKinlay1-2/+1
2004-07-20 Bryce McKinlay <mckinlay@redhat.com> * java/net/Socket.java (getImpl): Now private. Remove comment. From-SVN: r84963
2004-07-17[multiple changes]Michael Koch3-8/+14
2004-07-17 Jeroen Frijters <jeroen@frijters.net> * java/net/DatagramPacket.java (setAddress): Removed check for null address. 2004-07-17 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java (getLocalAddress): Check if socket is bound or not. * java/net/Socket.java (getLocalAddrss): Check if socket is bound or not. (getPort): Return -1 when not connected. Dont check getImpl() for null. (setReuseAddress): Check if socket is closed. (isConnected): Check if getImpl() returns null. From-SVN: r84864
2004-07-11Reported by Roman Kennke <roman@ontographics.com> (bug #9331)Mark Wielaard1-3/+5
Reported by Roman Kennke <roman@ontographics.com> (bug #9331) * java/net/URLStreamHandler.java (parseURL): When url file part doesn't contain a '/' just ignore context. From-SVN: r84518
2004-07-06URLStreamHandler.java (parseURL): Canonicalize file portion of URL in ↵Mohan Embar1-4/+8
addition to spec for file: protocol. * java/net/URLStreamHandler.java (parseURL): Canonicalize file portion of URL in addition to spec for file: protocol. From-SVN: r84157
2004-07-04[multiple changes]Anthony Green1-8/+19
2004-07-03 Mark Wielaard <mark@klomp.org> Anthony Green <green@redhat.com> * java/net/URL.java (getFile): Clarify return value doc. (getPath): Return null if file is empty - not empty String. (set): Convert protocol to lower case before doing anything. Only change the protocol handler if it's different. 2004-07-03 Anthony Green <green@redhat.com> * java/net/URL.java (URL): Convert protocol to lower case before doing anything, so we getURLStreamHandler() with the proper value. From-SVN: r84068
2004-05-05URLStreamHandler.java (toExternalForm): Removed unused variables.Tom Tromey1-3/+0
2004-05-03 Tom Tromey <tromey@redhat.com> * java/net/URLStreamHandler.java (toExternalForm): Removed unused variables. * java/math/BigDecimal.java (divide): Removed unused variable. * java/lang/Throwable.java: Cleaned up imports. * java/lang/ClassLoader.java: Cleaned up imports. * java/io/FilePermission.java (implies): Removed unused variable. * java/awt/TextComponent.java: Removed unused import. * gnu/java/util/prefs/NodeReader.java: Cleaned up imports. * gnu/java/util/DoubleEnumeration.java: Removed unused import. * gnu/java/text/WordBreakIterator.java: Removed unused import. * gnu/java/text/SentenceBreakIterator.java: Removed unused import. * gnu/java/text/LineBreakIterator.java: Removed unused import. * gnu/java/text/CharacterBreakIterator.java: Removed unused import. * gnu/java/security/provider/DSAKeyPairGenerator.java: Cleaned up imports. * gnu/java/security/der/DERWriter.java: Cleaned up imports. * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed unused method. * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports. * gnu/java/nio/FileLockImpl.java: Cleaned up imports. * gnu/java/io/Base64InputStream.java: Cleaned up imports. * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports. * gnu/classpath/ServiceFactory.java: Cleaned up imports. (lookupProviders): Removed unused variable. (loadNextServiceProvider): Likewise. * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports. From-SVN: r81516
2004-05-03DERReader.java: Call static methods staticly.Mark Wielaard1-3/+2
2004-05-03 Mark Wielaard <mark@klomp.org> * gnu/java/security/der/DERReader.java: Call static methods staticly. * java/awt/TextComponent.java (select): Use selectionEnd parameter. * java/net/URL.java (set(String, String, int, String, String, String, String, String)): Assign this.file to path or path + "?" + query. * java/util/Arrays.java: Call static methods staticly. * java/util/zip/ZipEntry.java: Likewise. * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign dir to this.direction. * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder): Assign static field only once. (DefaultTableCellRenderer): Don't reassign noFocusBorder each time. From-SVN: r81453
2004-05-03re PR libgcj/14695 ([3.3/3.4 only] java.net.NetworkInterface.getByName() ↵Michael Koch1-5/+9
throws exception instead of returning null) 2004-05-03 Michael Koch <konqueror@gmx.de> Fixes PR libgcj/14695: * java/net/NetworkInterface.java (getByName): Return null when no interface was found. From-SVN: r81434
2004-04-232004-04-23 Michael Koch <konqueror@gmx.de>Michael Koch2-19/+32
* java/net/URL.java (hashcode): Don't initialize with default value explicitely. (getContent): Removed redundant "final" keyword. (openStream): Likewise. (getURLStreamHandler): Fixed coding style. * java/net/URLConnection.java (defaultAllowUserInteraction): Don't initialize with default value explicitely. (connected): Likewise. (doOutput): Likewise. (ifModifiedSince): Likewise. (dateformats_initialized): Likewise. (setURLStreamHander): Use StreamTokenizer where it belongs to. From-SVN: r81080
2004-04-22[multiple changes]Michael Koch2-43/+48
2004-04-22 Jeroen Frijters <jeroen@sumatra.nl> * java/net/URLStreamHandler.java (parseURL): Convert the file path to using '/' instead of native file separator. 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org> * java/net/URL.java (userInfo): New field. (URL): Set authority to the right value. (setURL): Fixed authority and file initialization. * java/net/URLStreamHandler.java (parseURL): Take care of the query tag. Build authority. (toExternalForm): Fixed URL building using authority. From-SVN: r81006
2004-04-222004-04-22 Michael Koch <konqueror@gmx.de>Michael Koch2-3/+6
* java/net/Socket.java (impl): Made package-private. * java/net/ServerSocket.java (implAccept): Access Socket.impl field directly. From-SVN: r81005