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
Jeff Sturm
03296d1c22
Makefile.in: Rebuilt.
...
2002-08-30 Jeff Sturm <jsturm@one-point.com>
* Makefile.in: Rebuilt.
* Makefile.am (ZIP, GCJH): Remove $(EXEEXT).
From-SVN: r56690
2002-08-30 23:08:52 +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
Adam Megacz
6005baa707
win32.h (getcwd): copied function declaration as temporary fix for header confusion.
...
2002-08-25 Adam Megacz <adam@xwt.org>
* include/win32.h (getcwd): copied function declaration as
temporary fix for header confusion.
From-SVN: r56574
2002-08-26 05:29:59 +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
2263ca09cb
gij.cc (help): Document -cp and -classpath.
...
* gij.cc (help): Document -cp and -classpath.
(main): Handle -classpath.
From-SVN: r56522
2002-08-22 22:44:26 +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
Mark Wielaard
b4a12d090d
Thanks to Vladimir Puskas <vpuskas@eunet.yu>
...
Thanks to Vladimir Puskas <vpuskas@eunet.yu>
* gnu/java/security/provider/MD5.java: Extends MessageDigest, not
MessageDigestSpi (fixes Classpath bug #783 ).
From-SVN: r56425
2002-08-18 18:30:09 +00: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
Mark Wielaard
caad61a13c
Reenable patch since shared library troubles on powerpc are solved:
...
* gnu/java/security/provider/Gnu.java: Reference all implementation
classes by using Class.getName().
* gnu/java/security/der/DEREncodingException.java,
gnu/java/security/provider/DERReader.java,
gnu/java/security/provider/DERWriter.java,
gnu/java/security/provider/DSAKeyPairGenerator.java,
gnu/java/security/provider/DSAParameterGenerator.java,
gnu/java/security/provider/DSAParameters.java,
gnu/java/security/provider/DSASignature.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
gnu/java/security/provider/MD5.java,
gnu/java/security/util/Prime.java: New classes
* Makefile.am (ordinary_java_source_files): Add above files.
* Makefile.in: Regenerate.
* gnu/java/security/provider/DefaultPolicy.java
(getPermissions): Don't maintain static class variable of Permissions.
* gnu/java/security/provider/SHA.java
(engineUpdate): algorithm change.
(engineDigest): algorithm change.
From-SVN: r56203
2002-08-11 12:08:03 +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
ef1c32c637
More AWT/Swing merge from GNU Classpath.
...
From-SVN: r56151
2002-08-09 05:45:29 +01:00
Bryce McKinlay
df74f07755
Correct ChangeLog for XToolkit changes.
...
From-SVN: r56150
2002-08-09 05:36:05 +01:00
Bryce McKinlay
084ef9cf09
More AWT/Swing merge from GNU Classpath.
...
From-SVN: r56149
2002-08-09 05:32:43 +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
Mark Wielaard
fd0ba965b2
Revert patch that breaks libgcj shared library on powerpc:
...
* gnu/java/security/provider/Gnu.java: Reverse referencing all
implementation classes by using Class.getName(). Uses Strings again.
* gnu/java/security/der/DEREncodingException.java,
gnu/java/security/provider/DERReader.java,
gnu/java/security/provider/DERWriter.java,
gnu/java/security/provider/DSAKeyPairGenerator.java,
gnu/java/security/provider/DSAParameterGenerator.java,
gnu/java/security/provider/DSAParameters.java,
gnu/java/security/provider/DSASignature.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
gnu/java/security/provider/MD5.java,
gnu/java/security/util/Prime.java: Removed.
* Makefile.am (ordinary_java_source_files): Remove above files.
* Makefile.in: Regenerate.
* gnu/java/security/provider/DefaultPolicy.java
(getPermissions): Revert to maintaining static class variable of
Permissions.
* gnu/java/security/provider/SHA.java
(engineUpdate): Revert algorithm change.
(engineDigest): Revert algorithm change.
From-SVN: r55935
2002-08-01 16:06:00 +00:00
Kaz Kojima
d8278e27fe
configure.host: Add SH support.
...
* configure.host: Add SH support.
* sysdep/sh/locks.h: New file.
From-SVN: r55922
2002-08-01 05:34:54 +00:00
Bryce McKinlay
f6dbe305e3
* java/awt/Frame.java (Frame): Remove println calls.
...
From-SVN: r55901
2002-07-31 09:19:51 +01:00
Jeff Sturm
a15e868a95
configure.in (LIBFFIINCS): Don't prepend MULTIBUILDTOP.
...
* configure.in (LIBFFIINCS): Don't prepend MULTIBUILDTOP.
* configure: Rebuilt.
From-SVN: r55873
2002-07-30 12:36:00 +00:00
Alan Modra
61fd68b4c3
locks.h: Formatting.
...
* sysdep/powerpc/locks.h: Formatting.
(_LARX): Define.
(_STCX): Define.
(compare_and_swap): Use _LARX and _STCX.
(compare_and_swap_release): Likewise.
From-SVN: r55855
2002-07-30 08:56:27 +09:30
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
Alan Modra
1d49f58aff
* configure.host: Add powerpc64*-* entry.
...
From-SVN: r55788
2002-07-27 09:24:28 +09:30
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
Tom Tromey
ce05139c56
natFileDescriptorWin32.cc (setLength): New method.
...
2002-07-24 Tom Tromey <tromey@redhat.com>
Tony Kimball <alk@pobox.com>
* java/io/natFileDescriptorWin32.cc (setLength): New method.
* java/io/natFileDescriptorPosix.cc (setLength): New method.
* java/io/RandomAccessFile.java (setLength): New method.
* java/io/natFileDescriptorEcos.cc (setLength): New method.
* java/io/FileDescriptor.java (setLength): New method.
Co-Authored-By: Tony Kimball <alk@pobox.com>
From-SVN: r55715
2002-07-24 17:48:41 +00:00
Mark Wielaard
5526ddf6fd
[multiple changes]
...
2002-07-24 Mark Wielaard <mark@klomp.org>
* java/lang/reflect/natField.cc (setAddr): Check isAccessible().
* java/io/ObjectInputStream.java (setBooleanField): Before setting
field call setAccessible(true).
(setByteField): Likewise.
(setCharField): Likewise.
(setDoubleField): Likewise.
(setFloatField): Likewise.
(setIntField): Likewise.
(setLongField): Likewise.
(setShortField): Likewise.
(setObjectField): Likewise.
2002-07-24 Tom Tromey <tromey@redhat.com>
* java/io/ObjectInputStream.java (readObject) [TC_ARRAY]: Don't
use toString() to format array element.
From-SVN: r55711
2002-07-24 16:05:34 +00:00
Mark Wielaard
f922660b69
MD5.java: Extends MessageDigest, not MessageDigestSpi (fixes Classpath bug #783 ).
...
* gnu/java/security/provider/MD5.java: Extends MessageDigest, not
MessageDigestSpi (fixes Classpath bug #783 ).
From-SVN: r55661
2002-07-22 23:50:13 +00:00
Mark Wielaard
31ee1b0e93
Gnu.java: Reference all implementation classes by using Class.getName().
...
* gnu/java/security/provider/Gnu.java: Reference all implementation
classes by using Class.getName().
From-SVN: r55660
2002-07-22 23:36:56 +00:00
Bo Thorsen
7b20471292
ieeefp.h: Add x86-64 support.
...
2002-07-19 Bo Thorsen <bo@berlioz.suse.de>
* java/lang/ieeefp.h: Add x86-64 support.
* configure.in: Likewise.
* configure.host: Likewise.
* configure: Regenerated.
* sysdep/x86-64/locks.h: New file with x86-64 locks.
From-SVN: r55588
2002-07-19 16:41:15 +02:00
Mark Wielaard
00e0a9e83d
StreamTokenizer.java (pushBack): Update documentation.
...
* java/io/StreamTokenizer.java (pushBack): Update documentation.
(whitespaceChars): call resetChar().
From-SVN: r55496
2002-07-16 21:08:25 +00:00
Tom Tromey
9698ee33f0
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added new files.
* java/beans/ExceptionListener.java: Merged with Classpath.
* java/beans/PropertyChangeEvent.java: Merged with Classpath.
* java/beans/PropertyChangeListener.java: Merged with Classpath.
* java/beans/PropertyChangeListenerProxy.java: Merged with Classpath.
* java/beans/PropertyChangeSupport.java: Merged with Classpath.
* java/beans/VetoableChangeListener.java: Merged with Classpath.
* java/beans/VetoableChangeListenerProxy.java: Merged with Classpath.
* java/beans/VetoableChangeSupport.java: Merged with Classpath.
From-SVN: r55459
2002-07-15 16:05:13 +00:00