Michael Koch
ed08cfe4cd
2002-09-25 Michael Koch <konqueror@gmx.de>
...
* java/net/DatagramPacket
(DatagramPacket): Exception documentation added.
(setData): Likewise.
(setSocketAddress): Likewise.
* java/net/DatagramSocketImpl.java
(peek): Documentation addded.
(peekData): Documentation addded.
(send): Documentation addded.
(receive): Documentation addded.
(connect): New method.
(disconnect): New method.
(joinGroup): New abstract method.
(leaveGroup): New abstract method.
* java/net/InetSocketAddress.java
(InetSocketAddress): Documentation added.
(equals): final keyword added.
(getAddress): final keyword added.
(getHostName): final keyword added.
(getPort): final keyword added.
(hashCode): final keyword added.
(isUnresolved): final keyword added.
* java/net/MulticastSocket.java
(MulticastSocket): Documentation added.
(MulticastSocket): New method.
(joinGroup): Documentation added.
(joinGroup): New method.
(leaveGroup): Documentation added.
(leaveGroup): New method.
(send): Documentation added.
* java/net/NetworkInterface.java
(getByName): Documentation added.
(getByInetAddress): Documentation added.
(getNetworkInterfaces): Documentation added.
* java/net/PlainDatagramSocketImpl.java
(connect): New method.
(disconnect): New method.
* java/net/SocketImpl.java
(create): Documentation added.
(shutdownInput): Convert public to protected, as it always was.
(shutdownOutput): Convert public to protected, as it always was.
* java/net/SocketOptions.java
(whole file): Reintented.
* java/net/URLClassLoader.java
(URLClassLoader): SecurityManager check added, documentation added.
(findResources): Documentation added.
(findClass): Documentation added.
(newInstance): More correct method arguments.
* java/net/URLConnection.java
(connect): Documentation added.
(getContent): Documentation added.
(getPermission): Documentation added.
(getInputStream): Documentation added.
(getOutputStream): Documentation added.
(setDoInput): Throw correct exception, documentation added.
(setDoOutput): Throw correct exception, documentation added.
(setAllowUserInteraction): Throw correct exception, documentation added.
(setUseCaches): Throw correct exception, documentation added.
(setIfModifiedSince): Throw correct exception, documentation added.
(setRequestProperty): Throw exception, documentation added.
(addRequestProperty): Throw exception, documentation added.
(getRequestProperty): Throw exception, documentation added.
(getRequestProperties): Documentation added.
(setContentHandlerFactory): Documentation added.
(guessContentTypeFromName): protected to public.
(setFileNameMap): Documentation added.
* java/net/URLDecoder.java
(URLDecoder): New method.
(decode): Documentation added.
(whole file): Reindented.
* java/net/URLEncoder.java
(encode): Documentation added.
* java/net/natPlainDatagramSocketImpl.cc
(connect): New method.
(disconnect): New method.
* javax/naming/RefAddr:
(addrType): addrType was never final.
(equals): Fix typo in method name.
* javax/naming/BinaryRefAddr:
(equals): Fix typo in method name.
From-SVN: r57487
2002-09-25 05:05:07 +00:00
Tom Tromey
8cf3536464
re PR libgcj/6576 (java.util.ResourceBundle.getResource ignores locale)
...
Fix for PR libgcj/6576:
* java/util/ResourceBundle.java (tryBundle): Cache `null' if we
didn't find a given bundle.
(getBundle): Don't require base bundle.
(setParent): Removed old comment.
(tryLocalBundle): Try components even if preceding components were
empty.
From-SVN: r57442
2002-09-23 17:56:33 +00:00
Michael Koch
be362a0d5b
2002-09-21 Michael Koch <konqueror@gmx.de>
...
* java/net/Socket.java
(sendUrgentData): New method.
(getChannel): New method.
* java/net/ServerSocket.java
(getChannel): New method.
(isBound): New method.
* java/net/DatagramSocket.java
(DatagramSocket): Two new methods.
(bind): New method.
(getChannel): New method.
(isBound): New method.
(send): Added newline to to make shorter lines.
* java/net/PlainDatagramSocketImpl.java
(mcastGrp): Added argument.
(join): Use new mcastGrp.
(leave): Use new mcastGrp.
(joinGroup): New method.
(leaveGroup): New method.
* java/net/natPlainDatagramSocketImpl.cc
(mcastGrp): Added argument, no yet really implemented.
(getOption): Added newline for shorter lines.
* java/net/natPlainSocketImpl.cc
(read, setOption, getOption): Added newline for shorter lines.
From-SVN: r57380
2002-09-21 06:59:20 +00:00
Tom Tromey
b5f4221e51
ClassLoader.java (resolveClass0): Set cause for newly-created exception.
...
* java/lang/ClassLoader.java (resolveClass0): Set cause for
newly-created exception.
From-SVN: r57310
2002-09-19 17:44:49 +00:00
Michael Koch
a2f2457fa4
Matcher.java, [...]: Merge with classpath, new files.
...
2002-09-18 Michael Koch <konqueror@gmx.de>
* java/util/regex/Matcher.java, java/util/regex/Pattern.java,
java/util/regex/PatternSyntaxException.java:
Merge with classpath, new files.
* Makefile.am (core_java_source_files):
Added java/util/regex/Matcher.java,
java/util/regex/Pattern.java,
java/util/regex/PatternSyntaxException.java
* Makefile.in: Regenerated.
* include/config.h.in: Added HAVE_NET_IF_H.
* java/net/natNetworkInterface.cc (getRealNetworkInterfaces):
Removed #if 0 ... #endif.
From-SVN: r57275
2002-09-18 10:15:52 +00:00
Michael Koch
17656182f7
natNetworkInterface.cc: Removed unneed and yet wrong includes.
...
2002-09-17 Michael Koch <konqueror@gmx.de>
* java/net/natNetworkInterface.cc:
Removed unneed and yet wrong includes.
From-SVN: r57246
2002-09-17 10:57:14 +00:00
Michael Koch
26ad77f173
NetworkInterface.java: New file.
...
2002-09-17 Michael Koch <konqueror@gmx.de>
* java/net/NetworkInterface.java: New file.
* java/net/natNetworkInterface.java: New file.
* configure.in: Added check for net/if.h.
* configure: Regenerated.
* Makefile.am
(ordinary_java_source_files): Added NetworkInterface.java.
(nat_source_files): Added natNetworkInterface.cc.
* Makefile.in: Regenerated.
From-SVN: r57234
2002-09-17 06:58:40 +00:00
Tom Tromey
e46b54a2b9
URLClassLoader.java (findClass): Code source for a class from a jar is not necessarily a jar: URL.
...
* java/net/URLClassLoader.java (findClass): Code source for a
class from a jar is not necessarily a jar: URL.
From-SVN: r57214
2002-09-16 21:40:40 +00:00
Adam Megacz
233dad07b2
natPlainSocketImpl.cc: fixed typo.
...
2002-09-15 Adam Megacz <adam@xwt.org>
* java/net/natPlainSocketImpl.cc: fixed typo.
From-SVN: r57199
2002-09-16 16:42:40 +00:00
Michael Koch
cf0f53eb6e
AssertionError.java: Merge with classpath, fixes HTML.
...
2002-09-16 Michael Koch <konqueror@gmx.de>
* java/lang/AssertionError.java:
Merge with classpath, fixes HTML.
* java/rmi/server/LogStream.java:
Merge with classpath, fixes some constants.
* java/net/server/RemoteServer.java:
Merge with classpath, adds serialVersionUID.
* javax/naming/BinaryRefAddr.java:
Merge with classpath, s/equal/equals/.
* javax/naming/NamingException.java:
Merge with classpath, fixed typo.
* javax/naming/RefAddr.java:
Merge with classpath, s/equal/equals/.
* java/awt/Toolkit.java:
s/gnu.java.awt.peer.gtk.GtkToolkit/gnu.awt.gtk.GtkToolkit/
and typo fixed.
From-SVN: r57187
2002-09-16 09:46:37 +00:00
Adam Megacz
9d43691644
natPlainSocketImpl.cc: #ifdef-shielded socket timeouts, which don't work on Win32 (yet).
...
2002-09-15 Adam Megacz <adam@xwt.org>
* java/net/natPlainSocketImpl.cc: #ifdef-shielded socket timeouts,
which don't work on Win32 (yet).
From-SVN: r57180
2002-09-16 01:44:02 +00:00
Adam Megacz
981f97c364
natPlainDatagramSocket.cc: removed #include <ws2tcpip.h>; the mingw header is broken (conflicts with itself).
...
2002-09-14 Adam Megacz <adam@xwt.org>
* java/net/natPlainDatagramSocket.cc: removed #include
<ws2tcpip.h>; the mingw header is broken (conflicts with itself).
* include/win32.h: included definition for IP_TOS to satisfy
natPlainDatagramSocket.cc
From-SVN: r57151
2002-09-14 21:56:44 +00:00
Michael Koch
69aeba4ed0
DatagramPacket.java (DatagramPacket): Added linebreak for 80 chars per line.
...
2002-09-13 Michael Koch <konqueror@gmx.de>
* java/net/DatagramPacket.java (DatagramPacket):
Added linebreak for 80 chars per line.
* java/net/JarURLConection.java
(getInputStream, getJarEntry): Likewise.
* java/net/SocketPermission.java
(SocketPermission class docu, implies): Likewise.
* java/net/URLClassLoader.java (findResources): Likewise.
* java/net/URLConnection.java: Reindendet remark for 80 chars per line
From-SVN: r57105
2002-09-13 11:39:47 +00:00
Michael Koch
8764acde96
DatagramChannel.java, [...]: New dummy files to make java.net fully JDK 1.4 compatible
...
2002-09-13 Michael Koch <konqueror@gmx.de>
* java/nio/channels/DatagramChannel.java,
java/nio/channels/ServerSocketChannel.java
java/nio/channels/SocketChannel.java:
New dummy files to make java.net fully JDK 1.4 compatible
* Makefile.am (ordinary_java_source_files): Added
java/net/DatagramSocketImplFactory.java (long forgotten),
java/nio/SocketChannel.java,
java/nio/ServerSocketChannel.java,
java/nio/DatagramChannel.java
* Makefile.in: Regenrated.
From-SVN: r57101
2002-09-13 09:02:23 +00:00
Michael Koch
d0c97db6b3
2002-09-12 Michael Koch <konqueror@gmx.de>
...
* java/net/DatagramSocketImpl.jav
(peekData): New method.
* java/net/PlainDatagramSocketImpl.java
(peekData): New method.
* java/net/natPlainDatagramSocketImpl.cc
(peekData): New method.
* java/net/URLConnection
(getPermission): New method.
(addRequestProperty): New method.
(getRequestProperties): New method.
(guessContentTypeFromStream): New method, not really implemented.
(URLConnection): Added/updated documentation.
(connect): Added/updated documentation.
(getURL): Added/updated documentation.
(getContentLength): Added/updated documentation.
(getContentType: Added/updated documentation.
(getContentEncoding): Added/updated documentation.
(getExpiration): Added/updated documentation.
(getDate): Added/updated documentation.
(getLastModified): Added/updated documentation.
(getHeaderField): Added/updated documentation.
(getHeaderFields): Added/updated documentation.
(getHeaderFieldInt): Added/updated documentation.
(getHeaderFieldDate): Added/updated documentation.
(getHeaderFieldKey): Added/updated documentation.
(getContent): Added/updated documentation.
(getInputStream): Added/updated documentation.
(getOutputStream): Added/updated documentation.
(toString): Added/updated documentation.
(setDoInput): Added/updated documentation.
(getDoInput): Added/updated documentation.
(setDoOutput): Added/updated documentation.
(getDoOutput): Added/updated documentation.
(setAllowUserInteraction): Added/updated documentation.
(getAllowUserInteraction): Added/updated documentation.
(setDefaultAllowUserInteraction): Added/updated documentation.
(getDefaultAllowUserInteraction): Added/updated documentation.
(setUseCaches): Added/updated documentation.
(getUseCaches): Added/updated documentation.
(setIfModifiedSince): Added/updated documentation.
(getIfModifiedSince): Added/updated documentation.
(getDefaultUseCaches): Added/updated documentation.
(setDefaultUseCaches): Added/updated documentation.
(setRequestProperty): Added/updated documentation.
(getRequestProperty): Added/updated documentation.
(setDefaultRequestProperty): Added/updated documentation.
(getDefaultRequestProperty): Added/updated documentation.
(setContentHandlerFactory): Added/updated documentation.
From-SVN: r57049
2002-09-12 06:35:51 +00:00
Michael Koch
b7caf8dd94
2002-09-11 Michael Koch <konqueror@gmx.de>
...
* java/net/Socket.java
(Socket): protected to public (since JDK 1.4). Added @specnote.
(bind): New method.
(connect): Two new methods.
(getKeepalive): Get correct socket option.
(setKeepalive): Set correct socket option.
(getOOBInline): New method.
(setOOBInline): New method.
* java/net/ServerSocket.java
(bind): Two new methods.
(getInetAddress): Reimplemented, catch exception.
(getLocalSocketAddress): New method.
(setReuseAddress): New method.
(getReuseAdress): New method.
(setReceiveBufferSize): New method.
(getReceiveBufferSize): New method.
(toString): Made string JDK 1.4 compliant.
From-SVN: r57032
2002-09-11 10:16:00 +00:00
Michael Koch
a886956a40
2002-09-10 Michael Koch <konqueror@gmx.de>
...
* java/net/SocketImpl.java
(connect): New method.
(supportsUrgentData): New method.
(sendUrgentData): New method.
* java/net/PlainSocketImpl.java
(connect): One new method and two new implementation.
(sendUrgentData): New method.
* java/natPlainSocketImpl.cc
(connect): Arguments changed, added support for timeouts.
(getOption): Another __java_boolean to jboolean.
From-SVN: r57009
2002-09-10 18:02:02 +00:00
Adam Megacz
3a357ad127
natPlainDatagramSocket.cc: include ws2tcpip.h for definition of IP_TOS.
...
2002-09-07 Adam Megacz <adam@xwt.org>
* java/net/natPlainDatagramSocket.cc: include ws2tcpip.h for
definition of IP_TOS.
From-SVN: r56918
2002-09-07 19:01:16 +00:00
Michael Koch
7b98d4549b
2002-09-04 Michael Koch <konqueror@gmx.de>
...
* java/net/DatagramSocket.java
(DatagramSocket): Added documentation.
(close): Likewise.
(getLocalAddress): Likewise.
(getLocalPort): Likewise.
(receive): Likewise.
(send): Likewise.
(setSoTimeout): Likewise.
(connect): New method.
(disconnect): New method.
(getInetAddress): New method (FIXME)
(getPort): New method.
(setReuseAddress): New method.
(getReuseAddress): New method.
(setBroadcast): New method.
(getBroadcast): New method.
(setTrafficClass): New method.
(getTrafficClass): New method.
* java/net/MulticastSocket.java):
(getTTL): Added @see in documentation.
(setTTL): Added @see in documentation.
(setLoopbackMode): New method.
(getLoopbackMode): New method.
* java/net/PlainSocketImpl.java:
Added new constants for the options SO_BROADCAST, SO_OOBINLINE,
IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS
* java/net/PlainDatagramSocketImpl.java
Added new constants for the options SO_BROADCAST, SO_OOBINLINE,
IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS
* java/net/natPlainSocketImpl.cc
(getOption): Implemented the options SO_BROADCAST, SO_OOBINLINE,
IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS
(setOption): Implemented the options SO_BROADCAST, SO_OOBINLINE,
IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS
This should also fix SO_KEEPALIVE
* java/net/natPlainDatagramSocketImpl.cc
(getOption): Implemented the options SO_BROADCAST, SO_OOBINLINE,
IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS
(setOption): Implemented the options SO_BROADCAST, SO_OOBINLINE,
IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS
From-SVN: r56801
2002-09-04 17:35:22 +00:00
Michael Koch
268cecf97c
SocketOptions.java: added static variables to be JDK 1.4 compatible (SO_BROADCAST...
...
2002-09-04 Michael Koch <konqueror@gmx.de>
* java/net/SocketOptions.java: added static variables to be JDK 1.4
compatible (SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2,
IP_MULTICAST_LOOP, IP_TOS)
From-SVN: r56782
2002-09-04 05:34:12 +00:00
Tom Tromey
f470196114
Class.h (_getDeclaredMethod): Declare.
...
* java/lang/Class.h (_getDeclaredMethod): Declare.
(_getMethod): Now private.
* java/lang/natClass.cc (_getDeclaredMethod): Renamed from
getDeclaredMethod. Now returns NULL on failure.
* java/lang/Class.java (_getDeclaredMethod): Declare.
(getDeclaredMethod): No longer native; implements access checks.
From-SVN: r56772
2002-09-03 21:33:46 +00:00
Mark Wielaard
4d5c703ec0
NameFinder.java (remove_interpreter): New field.
...
* gnu/gcj/runtime/NameFinder.java (remove_interpreter): New field.
(sanitizeStack): Correctly reset unknown and interpreter counters,
detect interpreter runtime frames.
(demangleInterpreterMethod): New method.
* gnu/gcj/runtime/natNameFinder.cc (lookupInterp): Use new method.
* java/lang/natVMThrowable.cc (fillInStackTrace): Change order of
filling in addrs[].
From-SVN: r56741
2002-09-02 15:55:57 +00:00
Michael Koch
603f86d7db
DatagramPacket.java, [...]: re-indented documentation.
...
2002-09-02 Michael Koch <konqueror@gmx.de>
* java/net/DatagramPacket.java, java/net/MulticsstSocket.java:
re-indented documentation.
From-SVN: r56739
2002-09-02 09:19:08 +00:00
Jesse Rosenstock
42417be496
re PR libgcj/7785 (Calendar.getTimeInMillis/setTimeInMillis should be public)
...
2002-08-30 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/util/Calendar.java (getTimeInMillis, getTimeInMillis): Now
public, per 1.4 spec. Fixes PR libgcj/7785.
From-SVN: r56696
2002-08-31 05:27:15 +00:00
Tom Tromey
4c322bff29
JarURLConnection.java (getCertificates): New method from Classpath.
...
* java/net/JarURLConnection.java (getCertificates): New method
from Classpath.
* java/net/URLClassLoader.java (URLClassLoader): Extends
SecureClassLoader.
(definePackage): New method from Classpath.
(getPermissions): Likewise.
(newInstance): Likewise.
(findClass): Construct CodeSource for new class (from Classpath).
* java/net/SocketImpl.java (shutdownInput, shutdownOutput): New
methods.
* java/net/URL.java (getUserInfo): New method.
(set(String,String,int,String,String,String,String,String)): New
method.
* java/net/PlainSocketImpl.java (_Jv_SO_KEEPALIVE_): Define.
(shutdownInput, shutdownOutput): Declare.
* java/net/PlainDatagramSocketImpl.java (_Jv_SO_KEEPALIVE_):
Define.
* java/net/natPlainSocketImpl.cc (setOption): Handle keepalive.
(getOption): Likewise.
(shutdownInput): New method.
(shutdownOutput): Likewise.
* java/net/natPlainDatagramSocketImpl.cc (setOption): Handle
keepalive.
(getOption): Likewise.
* java/net/SocketOptions.java (SO_KEEPALIVE): New constant.
* java/net/Socket.java (setKeepAlive): New method.
(getKeepAlive): Likewise.
(shutdownInput, shutdownOutput): New methods.
From-SVN: r56685
2002-08-30 18:16:00 +00:00
Michael Koch
54f3c60dbc
DatagramPacket.java: updated to JDK 1.4 API new methods are...
...
2002-08-29 Michael Koch <konqueror@gmx.de>
* java/net/DatagramPacket.java: updated to JDK 1.4 API
new methods are:
DatagramPacket(byte[] buf, int offset, int length, SocketAddress
address),
DatagramPacket(byte[] buf, int length, SocketAddress address),
void setSocketAddress(SocketAddress address)
public SocketAddress getSocketAddress()
From-SVN: r56659
2002-08-29 18:44:42 +00:00
Tom Tromey
0148e1ee90
natFileDescriptorPosix.cc (setLength): Handle case where ftruncate is missing.
...
* java/io/natFileDescriptorPosix.cc (setLength): Handle case where
ftruncate is missing.
* configure, include/config.h.in: Rebuilt.
* acconfig.h (HAVE_FTRUNCATE): Mention.
* configure.in: Check for ftruncate.
From-SVN: r56658
2002-08-29 18:05:15 +00:00
Tom Tromey
3308c46e47
jvm.h (struct _Jv_frame_info): New structure.
...
* include/jvm.h (struct _Jv_frame_info): New structure.
* gnu/gcj/runtime/natNameFinder.cc: Include StringBuffer.h,
java-interp.h.
(lookupInterp): New method.
(getAddrAsString): Use _Jv_frame_info.
(dladdrLookup): Likewise.
* gnu/gcj/runtime/NameFinder.java (lookup): Try to look up
interpreted frame.
(lookupInterp): Declare.
* java/lang/natVMThrowable.cc: Include Thread.h, java-interp.h.
(fillInStackTrace): Collect information on interpreted frames.
Use _Jv_frame_info.
* interpret.cc: Include Thread.h.
(run): Create and push _Jv_MethodChain object.
(_Jv_EndOfInterpreter): New global.
* java/lang/Thread.java (interp_frame): New field.
* include/java-interp.h (struct _Jv_MethodChain): New structure.
Include NameFinder.h.
From-SVN: r56657
2002-08-29 17:53:28 +00:00
Tom Tromey
97d8f7e7e7
Class.h: Include Package.h.
...
* java/lang/Class.h: Include Package.h.
(Class::getProtectionDomain): Declare.
(Class::getPackage): Declare.
From-SVN: r56640
2002-08-28 20:05:34 +00:00
Michael Koch
26fed921cd
InetSocketAddress.java: Added some documentation and argument checks for the port numbers.
...
2002-08-28 Michael Koch <konqueror@gmx.de>
* java/net/InetSocketAddress.java: Added some documentation and argument
checks for the port numbers.
* java/net/DatagramSocketImplFactory.java: New file.
From-SVN: r56638
2002-08-28 19:23:50 +00:00
Michael Koch
aa5505d0e1
Authenticator.java: added some documentation.
...
2002-08-28 Michael Koch <konqueror@gmx.de>
* java/net/Authenticator.java: added some documentation.
From-SVN: r56628
2002-08-28 05:24:10 +00:00
Tom Tromey
f87999337a
natConstructor.cc (newInstance): Initialize class.
...
* java/lang/reflect/natConstructor.cc (newInstance): Initialize
class.
* java/lang/reflect/natMethod.cc (invoke): Initialize class.
From-SVN: r56624
2002-08-27 23:57:17 +00:00
Michael Koch
49c3c980ca
BindException.java, [...]: add/update of some @since/@deprecated
...
2002-08-27 Michael Koch <konqueror@gmx.de>
* java/net/BindException.java,
java/net/JarURLConnection.java,
java/net/FileNameMap.java,
java/net/HttpURLConnection.java,
java/net/InetSocketAddress.java,
java/net/DatagramPacket.java,
java/net/DatagramSocket.java,
java/net/DatagramSocketImpl.java,
java/net/MulticastSocket.java,
java/net/PasswordAuthentication.java,
java/net/ServerSocket.java,
java/net/Socket.java,
java/net/URLClassLoader.java,
java/net/URLConnection.java: add/update of some @since/@deprecated
From-SVN: r56608
2002-08-27 17:47:27 +00:00
Tony Kimball
835cb22e3b
natPlainDatagramSocketImpl.cc (NATIVE_CLOSE): New define.
...
2002-08-27 Tony Kimball <alk@pobox.com>
Tom Tromey <tromey@redhat.com>
* java/net/natPlainDatagramSocketImpl.cc (NATIVE_CLOSE): New
define.
(::close): Removed.
(PlainDatagramSocketImpl::close): Use NATIVE_CLOSE.
* java/net/natPlainSocketImpl.cc (NATIVE_CLOSE): New define.
(::close): Removed.
(PlainSocketImpl::close): Use NATIVE_CLOSE.
* include/win32.h (getcwd): Removed declaration. Include io.h.
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r56605
2002-08-27 16:08:31 +00:00
Mark Wielaard
6e0532cdf6
Makefile.am (libgcj_la_SOURCES): Remove name-finder.cc.
...
* Makefile.am (libgcj_la_SOURCES): Remove name-finder.cc.
(core_java_source_files): Add VMThrowable.java and NameFinder.java
(nat_source_files): Remove natThrowable.cc, add natVMThrowable.cc
and natNameFinder.cc.
* Makefile.in: Regenerate.
* prims.cc: Use trace_enabled from VMThrowable.
* name-finder.cc: Removed.
* gcj/javaprims.h: Add class VMThrowable.
* gnu/gcj/runtime/NameFinder.java: New file.
* gnu/gcj/runtime/natNameFinder.cc: Likewise.
* include/name-finder.h: Removed.
* java/lang/Throwable.java (printStackTrace (PrintStream)): Use new
method stackTraceString().
(printStackTrace (PrintWriter)): Likewise.
(stackTraceString): Complete rewrite of old printStackTrace using
StringBuffer.
(stackTraceStringBuffer): New helper method for stackTraceString().
(fillInStackTrace): Delegate to VMTrowable.
(getStackTrace): Likewise.
(getStackTrace0): Removed.
(trace_enabled, stackTraceBytes): Moved to new VMThrowable.java.
(setStackTrace): Copy given array.
* java/lang/natThrowable.cc: Removed (replaced by natVMThrowable).
* java/lang/VMThrowable.java: New class.
* java/lang/natVMThrowable.cc: New file.
From-SVN: r56556
2002-08-24 22:46:19 +00:00
Michael Koch
6347f94ca8
URLConnection.java, [...]: Added implementation of getHeaderFields().
...
2003-08-23 Michael Koch <konqueror@gmx.de>
* java/net/URLConnection.java,
java/netJarURLConnection.java,
gnu/gcj/protocol/core/Connection.java,
gnu/gcj/protocol/file/Connection.java,
gnu/gcj/protocol/http/Connection.java: Added implementation of
getHeaderFields().
From-SVN: r56532
2002-08-23 04:54:03 +00:00
Tom Tromey
75c6e5486b
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added
SocketAddress.java, InetSocketAddress.java.
* java/net/PortUnreachableException.java: Merged with Classpath.
* java/net/SocketTimeoutException.java: Likewise.
* java/net/URISyntaxException.java: Likewise.
* java/net/SocketAddress.java: New class from Classpath.
* java/net/InetSocketAddress.java: Likewise.
From-SVN: r56494
2002-08-21 18:54:07 +00:00
Michael Koch
386230f050
Authenticator.java: updated JDK 1.4
...
2003-08-21 Michael Koch <konqueror@gmx.de>
* java/net/Authenticator.java: updated JDK 1.4
* java/net/ContentHandler.java: updated JDK 1.4
From-SVN: r56481
2002-08-21 05:34:45 +00:00
Michael Koch
9595a7fe2f
URISyntaxException.java: New file.
...
2002-08-20 Michael Koch <konqueror@gmx.de>
* java/net/URISyntaxException.java: New file.
* java/net/SocketTimeoutException.java: New file.
* java/net/PortUnreachableException.java: New file.
* Makefile.am: Updated.
* Makefile.in: Rebuilt.
From-SVN: r56452
2002-08-20 02:33:15 +01:00
Jesse Rosenstock
093f02000f
natPosixProcess.cc (cleanup): Added `path' argument.
...
2002-08-14 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/lang/natPosixProcess.cc (cleanup): Added `path' argument.
(startProcess): Allocate path for chdir in async-signal-safe way.
From-SVN: r56330
2002-08-14 19:53:54 +00:00
Jesse Rosenstock
eb812b2c15
Fix for PR libgcj/7570 and PR libgcj/7578:
...
2002-08-13 Jesse Rosenstock <jmr@ugcs.caltech.edu>
Fix for PR libgcj/7570 and PR libgcj/7578:
* java/lang/natPosixProcess.cc: Include java/io/File.h.
(startProcess): Handle new `dir' argument.
* java/lang/Win32Process.java (ConcreteProcess): Added `dir'
argument.
* java/lang/PosixProcess.java (ConcreteProcess): Added `dir'
argument.
(startProcess): Likewise.
* java/lang/EcosProcess.java (ConcreteProcess): Added `dir'
argument.
* java/lang/Runtime.java (execInternal): Added `dir' argument.
(exec): Don't create new environment if ENV==null. Pass DIR to
execInternal.
* java/lang/natRuntime.cc: Include java/io/File.h.
(execInternal): Added `dir' argument.
From-SVN: r56268
2002-08-14 01:07:59 +00:00
Jesse Rosenstock
03496eb121
RandomAccessFile.java (skipBytes): Return number of bytes skipped.
...
2002-08-13 Jesse Rosenstock <jmr@fulcrummicro.com>
* java/io/RandomAccessFile.java (skipBytes): Return number of
bytes skipped.
From-SVN: r56265
2002-08-13 23:10:11 +00:00
Bryce McKinlay
55202bee3c
[multiple changes]
...
2002-08-09 Mark Wielaard <mark@klomp.org>
* java/awt/image/MemoryImageSource.java: Change constructor to take
int[] not byte[].
* java/awt/Graphics2D.java: Uncomment methods that can now be
compiled.
* java/awt/GridBagLayout.java: New stub implementation.
* javax/swing/text/html/HTML.java: Stub implementation.
* javax/swing/text/html/parser/ParserDelegator.java: New stub
implementation.
2002-08-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* gnu/awt/j2d/Graphics2DImpl.java: Implement stubs for new abstract
methods in Graphics2D.
* Makefile.am: Add new files.
* Makefile.in: Rebuilt.
From-SVN: r56152
2002-08-09 06:52:52 +01:00
Bryce McKinlay
8f5c92a0a3
More AWT/Swing merge from GNU Classpath.
...
From-SVN: r56148
2002-08-09 05:29:59 +01:00
Bryce McKinlay
7bde45b2eb
AWT/Swing merge from GNU Classpath.
...
From-SVN: r56147
2002-08-09 05:26:17 +01:00
Bryce McKinlay
6ee4402c61
ClassLoader.java (getSystemClassLoader, [...]): Add javadoc from classpath.
...
2002-08-07 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/lang/ClassLoader.java (getSystemClassLoader, findClass,
defineClass, setSigners, getSystemResource, getSystemResourceAsStream,
findResource, getResources, findResources): Add javadoc from classpath.
(getSystemResources): Implemented.
From-SVN: r56092
2002-08-07 06:28:24 +01:00
Bryce McKinlay
f6dbe305e3
* java/awt/Frame.java (Frame): Remove println calls.
...
From-SVN: r55901
2002-07-31 09:19:51 +01:00
Tom Tromey
92847c03ab
Authenticator.java: New version from Classpath.
...
* java/net/Authenticator.java: New version from Classpath.
* java/net/DatagramSocketImpl.java: New version from Classpath.
From-SVN: r55789
2002-07-27 00:53:42 +00:00
Tom Tromey
8a7f132d3d
natFileDescriptorPosix.cc: Don't include sys/socket.h or fcntl.h.
...
* java/io/natFileDescriptorPosix.cc: Don't include sys/socket.h or
fcntl.h.
From-SVN: r55780
2002-07-26 18:33:44 +00:00
Tom Tromey
1efccea3b1
Runtime.java (loadLibrary): Pass `true' as search argument to _load.
...
* java/lang/Runtime.java (loadLibrary): Pass `true' as search
argument to _load.
From-SVN: r55727
2002-07-24 23:17:39 +00:00