2000-03-27 21:51:46 +02:00
|
|
|
2000-03-26 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
|
|
|
|
set, throw it.
|
|
|
|
(call): Don't throw exception here.
|
|
|
|
|
[multiple changes]
2000-03-26 Tom Tromey <tromey@cygnus.com>
* java/lang/mprec.h: Use SIZEOF_VOID_P.
* interpret.cc: Use SIZEOF_VOID_P.
* include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
(_Jv_loadLong): Likewise.
(_Jv_storeDouble): Likewise.
* configure: Rebuilt.
* configure.in: Check size of void*.
* resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
2000-03-26 Hans Boehm <boehm@acm.org>
* include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
_Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
machine.
* java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
__IEEE_LITTLE_ENDIAN appropriately on IA64.
* java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
* javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
case.
* resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
(FFI_RAW_SIZE): Likewise.
(_Jv_InterpMethod::ncode): Use them.
* interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
STORED): Define differently on a 64 bit machine.
(continue1): Use ffi_java_raw_call when appropriate.
From-SVN: r32754
2000-03-26 22:33:04 +02:00
|
|
|
2000-03-26 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/mprec.h: Use SIZEOF_VOID_P.
|
|
|
|
* interpret.cc: Use SIZEOF_VOID_P.
|
|
|
|
* include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
|
|
|
|
(_Jv_loadLong): Likewise.
|
|
|
|
(_Jv_storeDouble): Likewise.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
* configure.in: Check size of void*.
|
|
|
|
|
|
|
|
* resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
|
|
|
|
|
|
|
|
2000-03-26 Hans Boehm <boehm@acm.org>
|
|
|
|
|
|
|
|
* include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
|
|
|
|
_Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
|
|
|
|
machine.
|
|
|
|
* java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
|
|
|
|
__IEEE_LITTLE_ENDIAN appropriately on IA64.
|
|
|
|
* java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
|
|
|
|
* javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
|
|
|
|
case.
|
|
|
|
* resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
|
|
|
|
(FFI_RAW_SIZE): Likewise.
|
|
|
|
(_Jv_InterpMethod::ncode): Use them.
|
|
|
|
* interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
|
|
|
|
STORED): Define differently on a 64 bit machine.
|
|
|
|
(continue1): Use ffi_java_raw_call when appropriate.
|
|
|
|
|
2000-03-24 10:18:12 +01:00
|
|
|
2000-03-24 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/math/BigInteger.java(divide): Handle the special case when
|
|
|
|
dividing by 1 and the high bit of the dividend is set.
|
|
|
|
(setShiftRight): Handle case when count == 0.
|
|
|
|
|
2000-03-24 10:09:56 +01:00
|
|
|
2000-03-24 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/awt/Font.java(isBold): Fix syntax error.
|
|
|
|
(isItalic): ditto.
|
|
|
|
* java/awt/Frame.java(postEvent): ditto.
|
|
|
|
* java/awt/Menu.java(postEvent): ditto.
|
|
|
|
* java/awt/MenuBar.java(postEvent): ditto.
|
|
|
|
* java/awt/Toolkit.java(init): Included a stub.
|
|
|
|
|
2000-03-21 22:33:53 +01:00
|
|
|
2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/awt/Event.java: Add all the event type constants.
|
|
|
|
(Event): Implemented constructors.
|
|
|
|
(controlDown): Implemented.
|
|
|
|
(metaDown): Implemented.
|
|
|
|
(paramString): Stubbed.
|
|
|
|
(shiftDown): Implemented.
|
|
|
|
(toString): Implemented.
|
|
|
|
(translate): Implemented.
|
|
|
|
|
2000-03-21 06:12:20 +01:00
|
|
|
2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/lang/natClass.cc (isInstance): Initialize `this'.
|
|
|
|
(isAssignableFrom): Initialize `this' and `klass'.
|
|
|
|
(_Jv_IsAssignableFrom): If an interface has no idt, it is not
|
|
|
|
implemented by any loaded class, so return false.
|
2000-03-21 06:44:29 +01:00
|
|
|
* java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
|
2000-03-21 06:54:42 +01:00
|
|
|
not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
|
2000-03-21 06:12:20 +01:00
|
|
|
|
2000-03-19 13:20:12 +01:00
|
|
|
2000-03-19 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/awt/Color.java: Specified java.io for Serializable.
|
|
|
|
* java/awt/Toolkit.java: Imported java.net.URL.
|
|
|
|
|
2000-03-19 12:23:27 +01:00
|
|
|
2000-03-19 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/awt/Color.java: Rewrote to be more memory efficient (& compile).
|
|
|
|
|
2000-03-17 01:45:06 +01:00
|
|
|
2000-03-16 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/awt/Color.java: New file.
|
|
|
|
* java/awt/Graphics.java: New file.
|
|
|
|
* java/awt/Image.java: New file.
|
|
|
|
* java/awt/Paint.java: New file.
|
|
|
|
* java/awt/PaintContext.java: New file.
|
|
|
|
* java/awt/Transparency.java: New file.
|
|
|
|
* java/util/Collection.java: New file.
|
|
|
|
* java/util/Comparator.java: New file.
|
|
|
|
* java/util/Iterator.java: New file.
|
|
|
|
* java/util/List.java: New file.
|
|
|
|
* java/util/ListIterator.java: New file.
|
|
|
|
* Makefile.am: Added above new files.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
|
|
|
* java/awt/Font.java (PLAIN): New field.
|
|
|
|
(BOLD): New field.
|
|
|
|
(ITALIC): New field.
|
|
|
|
(ROMAN_BASELINE): New field.
|
|
|
|
(CENTER_BASELINE): New field.
|
|
|
|
(HANGING_BASELINE): New field.
|
|
|
|
(name): New field.
|
|
|
|
(style): New field.
|
|
|
|
(size): New field.
|
|
|
|
(pointSize): New field.
|
|
|
|
(Font): Implemented constructor.
|
|
|
|
(isPlain): Implemented method.
|
|
|
|
(isBold): Implemented method.
|
|
|
|
(isItalic): Implemented method.
|
|
|
|
(getName): Implemented method.
|
|
|
|
(getStyle): Implemented method.
|
|
|
|
(getSize): Implemented method.
|
|
|
|
(getSize2D): Implemented method.
|
|
|
|
(decode): Stubbed.
|
|
|
|
* java/awt/Frame.java (getFont): Stubbed.
|
|
|
|
(postEvent): Stubbed.
|
|
|
|
(remove): Stubbed.
|
|
|
|
* java/awt/Menu.java (postEvent): Stubbed.
|
|
|
|
* java/awt/MenuBar.java (getFont): Stubbed.
|
|
|
|
(postEvent): Stubbed.
|
|
|
|
* java/awt/Toolkit.java (getImage): Added abstract method.
|
|
|
|
|
2000-03-15 23:03:19 +01:00
|
|
|
2000-03-15 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/io/natFileDescriptorWin32.cc (winerr): Now static.
|
|
|
|
|
|
|
|
* prims.cc (win32_exception_handler): Reformatted.
|
|
|
|
|
|
|
|
* include/win32-threads.h (_Jv_HaveCondDestroy): New define.
|
|
|
|
(_Jv_HaveMutexDestroy): Likewise.
|
|
|
|
|
|
|
|
2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
|
|
|
|
|
|
|
|
* java/io/natFileDescriptorWin32.cc: New file.
|
|
|
|
* java/io/natFileWin32.cc: New file.
|
|
|
|
* java/net/natInetAddress.cc: Added conditional inclusion of
|
|
|
|
Windows / Winsock headers.
|
|
|
|
* java/net/natPlainDatagramSocketImpl.cc: Added conditional
|
|
|
|
inclusion of Windows / Winsock headers.
|
|
|
|
* java/net/natPlainSocketImpl.cc: Added conditional inclusion of
|
|
|
|
Windows / Winsock headers.
|
|
|
|
* include/win32-signal.h: New file.
|
|
|
|
* include/win32-threads.h: New file.
|
|
|
|
* win32-threads.cc: New file.
|
|
|
|
* exception.cc (win32_get_restart_frame): New function.
|
|
|
|
* prims.cc (win32_exception_handler): New function.
|
|
|
|
(main_init) Performs Winsock initialisation.
|
|
|
|
(main_init) Installs exeception handler.
|
|
|
|
|
2000-03-14 22:59:54 +01:00
|
|
|
2000-03-14 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* jni.cc (mangled_name): Fixed assertion.
|
|
|
|
(JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
|
|
|
|
turned assert into actual failure.
|
|
|
|
|
2000-03-10 06:10:40 +01:00
|
|
|
2000-03-09 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/security/Key.java(serialVersionUID): Set to 0 for now.
|
|
|
|
* java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
|
|
|
|
* java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
|
|
|
|
|
2000-03-10 03:43:57 +01:00
|
|
|
2000-03-09 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/security/AlgorithmParameterGeneratorSpi.java: New file.
|
|
|
|
* java/security/DigestException.java: New file.
|
|
|
|
* java/security/GeneralSecurityException.java: New file.
|
|
|
|
* java/security/InvalidAlgorithmParameterException.java: New file.
|
|
|
|
* java/security/InvalidKeyException.java: New file.
|
|
|
|
* java/security/InvalidParameterException.java: New file.
|
|
|
|
* java/security/Key.java: New file.
|
|
|
|
* java/security/KeyException.java: New file.
|
|
|
|
* java/security/KeyPair.java: New file.
|
|
|
|
* java/security/KeyPairGenerator.java: New file.
|
|
|
|
* java/security/KeyPairGeneratorSpi.java: New file.
|
|
|
|
* java/security/NoSuchProviderException.java: New file.
|
|
|
|
* java/security/PrivateKey.java: New file.
|
|
|
|
* java/security/Provider.java: New file.
|
|
|
|
* java/security/PublicKey.java: New file.
|
|
|
|
* java/security/SecureRandom.java: New file.
|
|
|
|
* java/security/Security.java: New file.
|
|
|
|
* java/security/Signature.java: New file.
|
|
|
|
* java/security/SignatureException.java: New file.
|
|
|
|
* java/security/interfaces/DSAKey.java: New file.
|
|
|
|
* java/security/interfaces/DSAParams.java: New file.
|
|
|
|
* java/security/interfaces/DSAPrivateKey.java: New file.
|
|
|
|
* java/security/interfaces/DSAPublicKey.java: New file.
|
|
|
|
* java/security/interfaces/RSAPrivateCrtKey.java: New file.
|
|
|
|
* java/security/interfaces/RSAPrivateKey.java: New file.
|
|
|
|
* java/security/interfaces/RSAPublicKey.java: New file.
|
|
|
|
* java/security/spec/AlgorithmParameterSpec.java: New file.
|
|
|
|
* java/security/spec/InvalidKeySpecException.java: New file.
|
|
|
|
* java/security/spec/InvalidParameterSpecException.java: New file.
|
|
|
|
* java/security/spec/KeySpec.java: New file.
|
|
|
|
* java/security/spec/RSAPrivateCrtKeySpec.java: New file.
|
|
|
|
* java/security/spec/RSAPrivateKeySpec.java: New file.
|
|
|
|
* java/security/spec/RSAPublicKeySpec.java: New file.
|
|
|
|
* Makefile.am: Added above java.security files.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
|
|
|
* java/security/MessageDigest.java: Rewritten.
|
|
|
|
* java/security/SecureClassLoader.java: Added JDK1.2 comment.
|
|
|
|
|
2000-03-09 23:20:43 +01:00
|
|
|
2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* README: Updated.
|
|
|
|
|
2000-03-09 10:22:36 +01:00
|
|
|
2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
|
|
|
|
_Jv_PrepareConstantTimeTables.
|
|
|
|
* java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
|
|
|
|
classes should have an IDT, so don't return if klass is an array
|
|
|
|
class.
|
|
|
|
|
2000-03-09 05:50:49 +01:00
|
|
|
2000-03-08 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/reflect/natArray.cc (newInstance): Don't allow array
|
|
|
|
of `void' to be created.
|
|
|
|
|
2000-03-09 05:35:30 +01:00
|
|
|
2000-03-08 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/math/BigInteger.java(signum): Handle zero properly.
|
|
|
|
|
2000-03-07 20:55:28 +01:00
|
|
|
2000-03-07 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* All files: Updated copyright information.
|
|
|
|
* COPYING: New file.
|
|
|
|
* COPYING.LIB: Removed.
|
|
|
|
* LIBGCJ_LICENSE: We now use GPL + special exception.
|
|
|
|
|
resolve.cc (_Jv_SearchMethodInClass): New function.
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
* resolve.cc (_Jv_SearchMethodInClass): New function.
(_Jv_ResolvePoolEntry): Search superinterfaces for interface
methods.
* java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
(struct _Jv_ifaces): New declaration.
JV_CLASS: New macro definition.
(getComponentType): Relocate below isArray() for inlining.
(getModifiers): Declare `inline'.
(getSuperclass): Ditto.
(isArray): Ditto.
(isPrimitive): Ditto.
(_Jv_IsAssignableFrom): New prototype.
(_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
linkage.
(_Jv_InitClass): Move from natClass.cc. Declare `inline'.
Check for JV_STATE_DONE before invoking initializeClass().
(_Jv_PrepareConstantTimeTables): New prototype.
(_Jv_GetInterfaces): Ditto.
(_Jv_GenerateITable): Ditto.
(_Jv_GetMethodString): Ditto.
(_Jv_AppendPartialITable): Ditto.
(_Jv_FindIIndex): Ditto.
depth, ancestors, idt: New class fields.
* java/lang/natClass.cc (isAssignableFrom): Move functionality to
inline function `_Jv_IsAssignableFrom'. Use that function.
(isInstance): Declare `inline'.
(initializeClass): Get lock on class before checking `state'. Unlock
before calling resolveClass0. Call _Jv_PrepareConstantTimeTables
with the lock held.
(_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
(_Jv_IsAssignableFrom): New inline function. Test assignability
using class->depth and ancestor table.
(_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
(_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
_Jv_IsAssignableFrom.
(_Jv_CheckArrayStore): Ditto.
(_Jv_LookupInterfaceMethodIdx): New function.
INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
(_Jv_PrepareConstantTimeTables): New function.
(_Jv_IndexOf): Ditto.
(_Jv_GetInterfaces): Ditto.
(_Jv_GenerateITable): Ditto.
(_Jv_GetMethodString): Ditto.
(_Jv_AppendPartialITable): Ditto.
iindex_mutex, iindex_mutex_initialized: New static fields.
(_Jv_FindIIndex): New function.
* java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
* prims.cc (_Jv_CheckCast): Moved to natClass.cc.
(_Jv_CheckArrayStore): Ditto.
(JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
Moved to gcj/array.h.
(_Jv_Realloc): New function.
* gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
* gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
(JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
JvNewDoubleArray): Implementations moved from prims.cc and
declared `inline'.
* gcj/javaprims.h (_Jv_Realloc): Prototype.
* include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
From-SVN: r32382
2000-03-07 10:52:56 +01:00
|
|
|
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* resolve.cc (_Jv_SearchMethodInClass): New function.
|
|
|
|
(_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
|
|
|
|
* java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
|
|
|
|
|
|
|
|
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
|
|
|
|
(struct _Jv_ifaces): New declaration.
|
|
|
|
JV_CLASS: New macro definition.
|
|
|
|
(getComponentType): Relocate below isArray() for inlining.
|
|
|
|
(getModifiers): Declare `inline'.
|
|
|
|
(getSuperclass): Ditto.
|
|
|
|
(isArray): Ditto.
|
|
|
|
(isPrimitive): Ditto.
|
|
|
|
(_Jv_IsAssignableFrom): New prototype.
|
|
|
|
(_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
|
|
|
|
linkage.
|
|
|
|
(_Jv_InitClass): Move from natClass.cc. Declare `inline'.
|
|
|
|
Check for JV_STATE_DONE before invoking initializeClass().
|
|
|
|
(_Jv_PrepareConstantTimeTables): New prototype.
|
|
|
|
(_Jv_GetInterfaces): Ditto.
|
|
|
|
(_Jv_GenerateITable): Ditto.
|
|
|
|
(_Jv_GetMethodString): Ditto.
|
|
|
|
(_Jv_AppendPartialITable): Ditto.
|
|
|
|
(_Jv_FindIIndex): Ditto.
|
|
|
|
depth, ancestors, idt: New class fields.
|
|
|
|
|
|
|
|
* java/lang/natClass.cc (isAssignableFrom): Move functionality to
|
|
|
|
inline function `_Jv_IsAssignableFrom'. Use that function.
|
|
|
|
(isInstance): Declare `inline'.
|
|
|
|
(initializeClass): Get lock on class before checking `state'. Unlock
|
|
|
|
before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
|
|
|
|
the lock held.
|
|
|
|
(_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
|
|
|
|
(_Jv_IsAssignableFrom): New inline function. Test assignability using
|
|
|
|
class->depth and ancestor table.
|
|
|
|
(_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
|
|
|
|
(_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
|
|
|
|
_Jv_IsAssignableFrom.
|
|
|
|
(_Jv_CheckArrayStore): Ditto.
|
|
|
|
(_Jv_LookupInterfaceMethodIdx): New function.
|
|
|
|
INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
|
|
|
|
(_Jv_PrepareConstantTimeTables): New function.
|
|
|
|
(_Jv_IndexOf): Ditto.
|
|
|
|
(_Jv_GetInterfaces): Ditto.
|
|
|
|
(_Jv_GenerateITable): Ditto.
|
|
|
|
(_Jv_GetMethodString): Ditto.
|
|
|
|
(_Jv_AppendPartialITable): Ditto.
|
|
|
|
iindex_mutex, iindex_mutex_initialized: New static fields.
|
|
|
|
(_Jv_FindIIndex): New function.
|
|
|
|
|
|
|
|
* java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
|
|
|
|
|
|
|
|
* prims.cc (_Jv_CheckCast): Moved to natClass.cc.
|
|
|
|
(_Jv_CheckArrayStore): Ditto.
|
|
|
|
(JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
|
|
|
|
JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
|
|
|
|
Moved to gcj/array.h.
|
|
|
|
(_Jv_Realloc): New function.
|
|
|
|
|
|
|
|
* gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
|
|
|
|
|
|
|
|
* gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
|
|
|
|
(JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
|
|
|
|
JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
|
|
|
|
JvNewDoubleArray): Implementations moved from prims.cc and
|
|
|
|
declared `inline'.
|
|
|
|
|
|
|
|
* gcj/javaprims.h (_Jv_Realloc): Prototype.
|
|
|
|
|
|
|
|
* include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
|
|
|
|
|
2000-03-07 01:10:52 +01:00
|
|
|
2000-03-06 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* jni.cc (MARK_NONE): New define.
|
|
|
|
(MARK_USER): Likewise.
|
|
|
|
(MARK_SYSTEM): Likewise.
|
|
|
|
(struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
|
|
|
|
smaller.
|
|
|
|
(_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
|
|
|
|
(_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
|
|
|
|
(_Jv_JNI_PushLocalFrame): Use MARK_USER.
|
|
|
|
(_Jv_JNI_PopLocalFrame): New version with additional `stop'
|
|
|
|
argument.
|
|
|
|
(call): Use MARK_SYSTEM.
|
|
|
|
(_Jv_GetJNIEnvNewFrame): New function.
|
|
|
|
(_Jv_LookupJNIMethod): New function.
|
|
|
|
(_Jv_JNI_PopSystemFrame): New function.
|
|
|
|
(call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
|
|
|
|
|
2000-03-06 03:50:38 +01:00
|
|
|
2000-03-05 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
Fix for PR libgcj/43:
|
|
|
|
* include/Makefile.in: Rebuilt.
|
|
|
|
* include/Makefile.am (include_HEADERS): New define.
|
|
|
|
|
|
|
|
2000-03-05 Anthony Green <green@redhat.com>
|
2000-03-05 23:31:02 +01:00
|
|
|
|
|
|
|
* gcj/javaprims.h ("Java"): Remove FirstThread.
|
|
|
|
|
|
|
|
* configure.host: Fix __NO_MATH_INLNES botch.
|
|
|
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (nat_source_files): Move natFirstThread.cc.
|
|
|
|
(gnu/gcj/runtime/FirstThread.h): Moved.
|
|
|
|
(ordinary_java_source_files): Move FirstThread.java.
|
|
|
|
* prims.cc: Deal with FirstThread movement.
|
|
|
|
(JvRunMain): Ditto.
|
|
|
|
(_Jv_RunMain): Ditto.
|
|
|
|
|
|
|
|
* gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
|
|
|
|
* gnu/gcj/runtime/natFirstThread.cc: Ditto.
|
|
|
|
|
2000-03-05 10:01:16 +01:00
|
|
|
2000-03-05 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
|
|
|
|
Handle null addresses.
|
|
|
|
|
2000-03-05 09:32:51 +01:00
|
|
|
2000-03-04 Anthony Green <green@redhat.com>
|
|
|
|
|
|
|
|
* configure.host (libgcj_flags): Define __NO_MATH_INLINES.
|
|
|
|
See PR gcj/151.
|
|
|
|
|
2000-03-04 22:50:19 +01:00
|
|
|
2000-03-04 Anthony Green <green@redhat.com>
|
|
|
|
|
|
|
|
* configure: Rebuilt.
|
|
|
|
* configure.in (ZLIBTESTSPEC): New macro.
|
|
|
|
(GCTESTSPEC): New macro.
|
|
|
|
(LIBGCJTESTSPEC): New macro.
|
|
|
|
* libgcj-test.spec.in: New file.
|
|
|
|
|
2000-03-02 21:25:20 +01:00
|
|
|
2000-03-02 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* include/java-interp.h: Don't include MethodInvocation.h.
|
|
|
|
(class _Jv_InterpMethod): Don't make MethodInvocation a friend.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
|
|
|
|
(ordinary_java_source_files): Don't mention
|
|
|
|
MethodInvocation.java.
|
|
|
|
* gnu/gcj/runtime/MethodInvocation.java: Removed.
|
|
|
|
* interpret.cc (MethodInvocation::continue1): Removed.
|
|
|
|
(run): Handle exceptions here.
|
|
|
|
* java/lang/ClassLoader.java (defineClass1, defineClass2):
|
|
|
|
Removed.
|
|
|
|
* java/lang/natClassLoader.cc (defineClass0): Catch exceptions
|
|
|
|
here.
|
|
|
|
(defineClass2): Removed.
|
|
|
|
|
|
|
|
* java/lang/reflect/Method.java (hack_trampoline, hack_call):
|
|
|
|
Removed.
|
|
|
|
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
|
|
|
|
exceptions here.
|
|
|
|
(hack_call): Removed.
|
|
|
|
|
|
|
|
* java/lang/Class.h (Class): Removed hackRunInitializers,
|
|
|
|
hackTrampoline.
|
|
|
|
* java/lang/natClass.cc (hackRunInitializers): Removed.
|
|
|
|
(initializeClass): Catch exceptions here.
|
|
|
|
Include ExceptionInInitializerError.h.
|
|
|
|
* java/lang/Class.java (hackTrampoline, hackRunInitializers):
|
|
|
|
Removed.
|
|
|
|
|
|
|
|
* java/lang/Object.h (Object): Don't mention hack12_6.
|
|
|
|
* java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
|
|
|
|
here.
|
|
|
|
* java/lang/Object.java (hack12_6): Removed.
|
|
|
|
|
|
|
|
* java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
|
|
|
|
(start): Use run_, not run__.
|
|
|
|
* java/lang/Thread.java (run_): Renamed from run__; old run_
|
|
|
|
removed.
|
|
|
|
|
|
|
|
* jni.cc (_Jv_JNI_FindClass): Handle exceptions.
|
|
|
|
(_Jv_JNI_EnsureLocalCapacity): Likewise.
|
|
|
|
(_Jv_JNI_DefineClass): Likewise.
|
|
|
|
(_Jv_JNI_ThrowNew): Likewise.
|
|
|
|
(_Jv_JNI_AllocObject): Likewise.
|
|
|
|
(_Jv_JNI_GetAnyMethodID): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyMethodV): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyMethodA): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyVoidMethodV): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyVoidMethodA): Likewise.
|
|
|
|
(_Jv_JNI_GetAnyFieldID): Likewise.
|
|
|
|
(_Jv_JNI_NewString): Likewise.
|
|
|
|
(_Jv_JNI_NewStringUTF): Likewise.
|
|
|
|
(_Jv_JNI_GetStringUTFChars): Likewise.
|
|
|
|
(_Jv_JNI_NewObjectArray): Likewise.
|
|
|
|
(_Jv_JNI_NewPrimitiveArray): Likewise.
|
|
|
|
(_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
|
|
|
|
(_Jv_JNI_GetStringRegion): Likewise.
|
|
|
|
(_Jv_JNI_GetStringUTFRegion): Likewise.
|
|
|
|
(_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
|
|
|
|
(_Jv_JNI_MonitorEnter): Likewise.
|
|
|
|
(_Jv_JNI_MonitorExit): Likewise.
|
|
|
|
(_Jv_JNI_ToReflectedField): Likewise.
|
|
|
|
(_Jv_JNI_ToReflectedMethod): Likewise.
|
|
|
|
(_Jv_JNI_RegisterNatives): Likewise.
|
|
|
|
(_Jv_JNI_AttachCurrentThread): Likewise.
|
|
|
|
(_Jv_JNI_DestroyJavaVM): Likewise.
|
|
|
|
|
2000-02-29 18:08:00 +01:00
|
|
|
2000-02-28 Mo DeJong <mdejong@cygnus.com>
|
|
|
|
|
|
|
|
* java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
|
|
|
|
error caused by the incorrect casting of a long to an int.
|
|
|
|
|
2000-02-29 18:04:35 +01:00
|
|
|
2000-02-28 Mo DeJong <mdejong@cygnus.com>
|
|
|
|
|
|
|
|
* java/util/zip/ZipOutputStream.java(write_entry) : Fixed
|
|
|
|
SIGSEV caused by use of the wrong instance variable.
|
|
|
|
|
2000-02-27 11:43:47 +01:00
|
|
|
2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/io/File.java (File(String, String)): For dirPath, treat an
|
|
|
|
empty String the same as `null'.
|
|
|
|
|
2000-02-26 22:12:54 +01:00
|
|
|
2000-02-26 Anthony Green <green@cygnus.com>
|
|
|
|
|
|
|
|
* gnu/gcj/io/MimeTypes.java: Test for null.
|
|
|
|
|
|
|
|
* jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
|
|
|
|
(JNI_GetCreatedJavaVMs): Remove compiler warning.
|
|
|
|
|
|
|
|
* java/net/URLConnection.java: Update copyright notice.
|
|
|
|
|
2000-02-26 00:49:34 +01:00
|
|
|
2000-02-25 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
|
|
|
|
`INTERPRETER'.
|
|
|
|
|
2000-02-25 23:38:33 +01:00
|
|
|
2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/net/URLConnection.java (initializeDateFormats): New
|
|
|
|
private method.
|
|
|
|
(getHeaderFieldDate): Call initializeDateFormats if required.
|
|
|
|
locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
|
|
|
|
these.
|
|
|
|
Fix for PR libgcj/38.
|
|
|
|
|
2000-02-25 05:00:09 +01:00
|
|
|
2000-02-24 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/math/BigInteger.java(ival): Made private.
|
|
|
|
(words): Ditto.
|
|
|
|
(neg): Ditto.
|
|
|
|
|
2000-02-21 09:21:52 +01:00
|
|
|
2000-02-20 Anthony Green <green@cygnus.com>
|
|
|
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (ordinary_java_source_files): Add
|
|
|
|
gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
|
|
|
|
|
|
|
|
* scripts/MakeDefaultMimeTypes.java: New file.
|
|
|
|
* scripts/mime.types: New file.
|
|
|
|
* scripts/classes.pl: Moved from top level.
|
|
|
|
* classes.pl: Moved to scripts directory.
|
|
|
|
|
|
|
|
* java/net/URLConnection.java: Implement guessContentTypeFromName.
|
|
|
|
|
|
|
|
* gnu/gcj/io/MimeTypes.java: New file.
|
|
|
|
* gnu/gcj/io/DefaultMimeTypes.java: New file.
|
|
|
|
|
2000-02-21 06:14:06 +01:00
|
|
|
2000-02-20 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* boehm.cc (_Jv_AllocBytes): Clear returned memory.
|
|
|
|
|
2000-02-19 03:54:14 +01:00
|
|
|
2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* java/util/zip/ZipEntry.java (setCrc): Fix overflow.
|
|
|
|
(setSize): ditto.
|
|
|
|
|
2000-02-18 22:22:06 +01:00
|
|
|
2000-02-18 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* include/jvm.h (_Jv_GetJavaVM): Declare.
|
|
|
|
* include/java-interp.h (_Jv_GetFirstMethod): New function.
|
|
|
|
(_Jv_MethodBase::get_method): New method.
|
|
|
|
(_Jv_JNIMethod::set_function): New method.
|
|
|
|
* jni.cc (_Jv_JNI_UnregisterNatives): New function.
|
|
|
|
(_Jv_JNI_RegisterNatives): New function.
|
|
|
|
(_Jv_JNIFunctions): Updated for new functions.
|
|
|
|
(_Jv_GetJavaVM): New function.
|
|
|
|
(_Jv_JNI_GetJavaVM): Use it. Now static.
|
|
|
|
(_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
|
|
|
|
is already a Java thread but does not have a JNIEnv yet.
|
|
|
|
|
|
|
|
* java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
|
|
|
|
function.
|
|
|
|
|
2000-02-17 19:34:14 +01:00
|
|
|
2000-02-17 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
|
|
|
|
Fixes PR gcj/152.
|
|
|
|
|
2000-02-16 19:42:48 +01:00
|
|
|
2000-02-16 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-02-17 01:54:34 +01:00
|
|
|
* jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
|
|
|
|
|
2000-02-16 23:42:41 +01:00
|
|
|
* jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
|
|
|
|
(_Jv_JNI_NewObject): Likewise.
|
|
|
|
(_Jv_JNI_NewObjectA): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
|
|
|
|
as "return" type to _Jv_CallAnyMethodA.
|
|
|
|
(_Jv_JNI_CallAnyMethodA): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyVoidMethodV): Likewise.
|
|
|
|
|
2000-02-16 19:42:48 +01:00
|
|
|
* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
|
|
|
|
findClass.
|
|
|
|
|
2000-02-15 21:39:36 +01:00
|
|
|
2000-02-15 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-02-16 01:07:34 +01:00
|
|
|
* resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
|
|
|
|
jni_arg_types.
|
|
|
|
(init_cif): Added `rtype_p' argument.
|
|
|
|
* include/java-interp.h (class _Jv_MethodBase): Added
|
|
|
|
args_raw_size.
|
|
|
|
(class _Jv_InterpMethod): Removed args_raw_size.
|
|
|
|
(class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
|
|
|
|
* jni.cc (call): Pass JNIEnv and (for static methods only) the
|
|
|
|
class pointer as well as the ordinary arguments.
|
|
|
|
|
2000-02-15 23:59:23 +01:00
|
|
|
* jni.cc (mangled_name): Skip leading `(' in signature.
|
|
|
|
|
2000-02-15 23:42:10 +01:00
|
|
|
* jni.cc (add_char): Added missing `else'.
|
|
|
|
|
2000-02-15 21:39:36 +01:00
|
|
|
* jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
|
|
|
|
fails.
|
|
|
|
|
2000-02-15 09:53:00 +01:00
|
|
|
2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* NEWS: Updated.
|
|
|
|
|
|
|
|
* java/lang/natRuntime.cc (_load): Include library path with
|
|
|
|
exception message.
|
|
|
|
|
|
|
|
* java/lang/natSystem.cc (init_properties): set java.lang.classpath
|
|
|
|
property.
|
|
|
|
|
|
|
|
* java/lang/natThread.cc (dumpStack): Removed.
|
|
|
|
* java/lang/Thread.java (dumpStack): Implemented.
|
|
|
|
|
2000-02-15 08:53:11 +01:00
|
|
|
2000-02-15 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/natRuntime.cc (_load): On Unix, prefix library name
|
|
|
|
with `lib' for loadLibrary. Fixes PR gcj/150.
|
|
|
|
|
2000-02-14 11:23:29 +01:00
|
|
|
2000-02-14 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
|
|
|
|
|
|
|
|
* java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
|
|
|
|
New constructor.
|
|
|
|
(min): Implemented.
|
|
|
|
(max): Implemented.
|
|
|
|
(modPow): Rewritten to not use the naive, slow, brute force approach.
|
|
|
|
(isProbablePrime): Implemented.
|
|
|
|
(testBit): Implemented.
|
|
|
|
(flipBit): Implemented.
|
|
|
|
(getLowestSetBit): Implemented.
|
|
|
|
|
2000-02-13 19:07:09 +01:00
|
|
|
2000-02-16 Anthony Green <green@redhat.com>
|
|
|
|
|
|
|
|
* configure.host: Use the same options for i386 and i486 as we do
|
|
|
|
for i586 and i686.
|
|
|
|
|
2000-02-12 21:13:42 +01:00
|
|
|
2000-02-12 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/io/File.java (createTempFile): Use low bits from counter,
|
|
|
|
not high bits.
|
|
|
|
|
2000-02-12 04:49:13 +01:00
|
|
|
Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
|
|
|
|
|
|
|
|
* THANKS: More thanks.
|
|
|
|
|
2000-02-12 00:24:28 +01:00
|
|
|
2000-02-11 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* interpret.cc (continue1): Use STOREA, not STOREI, to implement
|
|
|
|
astore instruction. From Hans Boehm.
|
|
|
|
|
2000-02-14 11:23:29 +01:00
|
|
|
2000-02-11 Warren Levy <warrenl@cygnus.com>
|
2000-02-11 20:09:03 +01:00
|
|
|
|
|
|
|
* java/math/BigInteger.java(BigInteger(String, int)): New constructor.
|
|
|
|
(BigInteger(String)): New constructor.
|
|
|
|
(not): Rewritten using version from Kawa's BitOps class.
|
|
|
|
(valueOf): New private methods from Kawa's BitOps class.
|
|
|
|
(swappedOp): ditto.
|
|
|
|
(bitOp): ditto.
|
|
|
|
(setBitOp): ditto.
|
|
|
|
(and): Implemented.
|
|
|
|
(or): Implemented.
|
|
|
|
(xor): Implemented.
|
|
|
|
(andNot): Implemented.
|
|
|
|
(clearBit): Implemented.
|
|
|
|
(setBit): Implemented.
|
|
|
|
(bitCount): Implemented.
|
|
|
|
(toByteArray): Implemented.
|
|
|
|
|
2000-02-11 19:44:37 +01:00
|
|
|
2000-02-11 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/io/File.java (nextValue): Now synchronized.
|
|
|
|
|
2000-02-10 21:31:48 +01:00
|
|
|
2000-02-10 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-02-11 18:32:52 +01:00
|
|
|
* java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
|
|
|
|
* java/io/FileDescriptor.java (EXCL): New static field.
|
|
|
|
* java/io/File.java (tmpdir): New static field.
|
|
|
|
(createTempFile): New method.
|
|
|
|
(nextValue): New method.
|
|
|
|
* java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
|
|
|
|
property.
|
|
|
|
|
2000-02-11 00:44:05 +01:00
|
|
|
* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
|
|
|
|
(jboolean): Declare as an attributed int, not a bool.
|
|
|
|
(_Jv_func): Declare differently for C.
|
|
|
|
|
2000-02-10 21:31:48 +01:00
|
|
|
* gnu/gcj/jni/natNativeThread.cc: New file.
|
|
|
|
* gnu/gcj/jni/NativeThread.java: New file.
|
|
|
|
* java/lang/Thread.java (data): Now a RawData.
|
|
|
|
* include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
|
|
|
|
Declare.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (java/lang/Thread.h): New target.
|
|
|
|
(ordinary_java_source_files): Added NativeThread.java.
|
|
|
|
(nat_source_files): Added natNativeThread.cc.
|
|
|
|
* java/lang/natThread.cc: Include <jni.h>
|
|
|
|
(struct natThread): Added `jni_env' field.
|
|
|
|
(_Jv_GetCurrentJNIEnv): New function.
|
|
|
|
(_Jv_SetCurrentJNIEnv): Likewise.
|
|
|
|
(initialize_native): Initialize jni_env.
|
|
|
|
Include RawData.h.
|
|
|
|
* jni.cc (ThreadGroupClass): New define.
|
|
|
|
(_Jv_JNI_InvokeFunctions): New structure.
|
|
|
|
(JNI_GetCreatedJavaVMs): New function.
|
|
|
|
(the_vm): New global.
|
|
|
|
(JNI_GetDefaultJavaVMInitArgs): New function.
|
|
|
|
Include NativeThread.h.
|
|
|
|
(NativeThreadClass): New define.
|
|
|
|
(_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
|
|
|
|
(_Jv_JNI_DestroyJavaVM): New function.
|
|
|
|
(_Jv_JNI_AttachCurrentThread): New function.
|
|
|
|
(_Jv_JNI_DetachCurrentThread): New function.
|
|
|
|
(_Jv_JNI_GetEnv): New function.
|
|
|
|
(JNI_CreateJavaVM): New function.
|
|
|
|
(_Jv_JNI_GetJavaVM): New function.
|
|
|
|
(_Jv_JNIFunctions): Added entry for GetJavaVM.
|
|
|
|
* include/jni.h (JavaVMAttachArgs): New structure.
|
|
|
|
(JNI_EDETACHED): New define.
|
|
|
|
(JNI_EVERSION): Likewise.
|
|
|
|
(JavaVM): Define properly.
|
|
|
|
(struct JNIInvokeInterface): New structure.
|
|
|
|
(class _Jv_JavaVM): New class.
|
|
|
|
(JNI_OnLoad, JNI_OnUnload): Declare.
|
|
|
|
(JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
|
|
|
|
JNI_GetCreatedJavaVMs): Declare.
|
|
|
|
(JavaVMInitArgs): New typedef.
|
|
|
|
(JavaVMOption): Likewise.
|
|
|
|
(JNI_ERR): New define.
|
|
|
|
(JNI_OK): Likewise.
|
|
|
|
|
2000-02-10 18:16:30 +01:00
|
|
|
2000-02-10 Andrew Haley <aph@cygnus.com>
|
|
|
|
|
|
|
|
* interpret.cc: Don't include fdlibm.h.
|
|
|
|
Replace #if with #ifdef throughout.
|
|
|
|
Declare extern __ieee754_fmod.
|
|
|
|
(continue1): Remove op_getfield, op_getstatic, op_putfield,
|
|
|
|
op_putstatic insns.
|
|
|
|
* resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
|
|
|
|
Search class hierarchy for superclass vtable.
|
|
|
|
|
|
|
|
* java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
|
|
|
|
off the end of a pointer list.
|
|
|
|
|
|
|
|
* java/lang/natThread.cc (stop): Don't abort, throw an exception
|
|
|
|
instead.
|
|
|
|
(suspend): Ditto.
|
|
|
|
|
2000-02-10 01:14:54 +01:00
|
|
|
2000-02-09 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-02-10 01:17:10 +01:00
|
|
|
* java/lang/natRuntime.cc (_load): Call add_library.
|
|
|
|
(loadLibraryInternal): Likewise.
|
|
|
|
|
2000-02-10 01:14:54 +01:00
|
|
|
* gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
|
|
|
|
iconv_close when handle is not NULL. Thanks to Andrew Haley.
|
|
|
|
(Output_iconv::finalize): Likewise.
|
|
|
|
|
2000-02-08 22:30:45 +01:00
|
|
|
2000-02-08 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/util/Properties.java (setProperty): New method.
|
|
|
|
(store): New method.
|
|
|
|
|
2000-02-07 22:17:30 +01:00
|
|
|
2000-02-07 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-02-08 01:26:58 +01:00
|
|
|
* java/lang/Runtime.java (_load): Declare.
|
|
|
|
(load, loadLibrary): Wrote in terms of _load.
|
|
|
|
* java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
|
|
|
|
library.
|
|
|
|
(loadLibrary): Likewise.
|
|
|
|
Include <jni.h>.
|
|
|
|
(_load): New method.
|
|
|
|
(loadLibrary, load): Removed.
|
|
|
|
|
2000-02-08 01:23:09 +01:00
|
|
|
* jni.cc (ThrowableClass): New define.
|
|
|
|
(_Jv_JNI_Throw): Check argument.
|
|
|
|
(_Jv_JNI_ThrowNew): Likewise.
|
|
|
|
(wrap_value): Don't wrap object if it is NULL.
|
|
|
|
(_Jv_JNI_DefineClass): Use wrap_value.
|
|
|
|
(_Jv_JNI_FindClass): Likewise.
|
|
|
|
(_Jv_JNI_GetSuperclass): Likewise.
|
|
|
|
(_Jv_JNI_ExceptionOccurred): Likewise.
|
|
|
|
(_Jv_JNI_AllocObject): Likewise.
|
|
|
|
(_Jv_JNI_GetObjectClass): Likewise.
|
|
|
|
(_Jv_JNI_NewString): Likewise.
|
|
|
|
(_Jv_JNI_NewStringUTF): Likewise.
|
|
|
|
(_Jv_JNI_NewObjectArray): Likewise.
|
|
|
|
(_Jv_JNI_GetObjectArrayElement): Likewise.
|
|
|
|
(_Jv_JNI_NewPrimitiveArray): Likewise.
|
|
|
|
(_Jv_JNI_ToReflectedField): Likewise.
|
|
|
|
(_Jv_JNI_ToReflectedMethod): Likewise.
|
|
|
|
(_Jv_JNI_AllocObject): Check argument.
|
|
|
|
(_Jv_JNI_NewObjectV): Likewise.
|
|
|
|
(_Jv_JNI_NewObject): Likewise.
|
|
|
|
(_Jv_JNI_NewObjectA): Likewise.
|
|
|
|
(_Jv_JNI_GetObjectClass): Likewise.
|
|
|
|
(_Jv_JNI_GetField): Likewise.
|
|
|
|
(_Jv_JNI_SetField): Likewise.
|
|
|
|
|
2000-02-08 01:17:28 +01:00
|
|
|
* interpret.cc (PUSHL): Don't use expression statement.
|
|
|
|
(PUSHD): Likewise.
|
|
|
|
(LOADL): Likewise.
|
|
|
|
(STOREL): Likewise.
|
|
|
|
|
2000-02-07 22:17:30 +01:00
|
|
|
* jni.cc (add_char): Conditional on INTERPRETER.
|
|
|
|
(mangled_name): Likewise.
|
|
|
|
(call): Likewise.
|
|
|
|
* include/java-interp.h (class _Jv_MethodBase): Conditional on
|
|
|
|
INTERPRETER.
|
|
|
|
(class _Jv_JNIMethod): Likewise.
|
|
|
|
|
2000-02-04 23:00:36 +01:00
|
|
|
2000-02-04 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* Makefile.am: Added MPN.java and BigInteger.java.
|
|
|
|
* Makefile.in: Rebuilt.
|
2000-02-04 23:11:07 +01:00
|
|
|
* gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
|
|
|
|
<per@bothner.com>.
|
|
|
|
* java/math/BigInteger.java: New file. Based primarily on
|
|
|
|
Kawa's IntNum.java by Per Bothner <per@bothner.com>.
|
2000-02-04 23:00:36 +01:00
|
|
|
|
2000-02-04 21:49:27 +01:00
|
|
|
2000-02-04 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
|
|
|
|
pointers.
|
|
|
|
(handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
|
|
|
|
if the method is native.
|
|
|
|
* resolve.cc (ncode): Don't handle native methods.
|
|
|
|
(_Jv_JNIMethod::ncode): New method.
|
|
|
|
(_Jv_PrepareClass): Handle native methods.
|
|
|
|
* jni.cc (call): Renamed from _Jv_JNI_conversion_call.
|
|
|
|
Include AbstractMethodError.h.
|
|
|
|
(add_char): New function.
|
|
|
|
(mangled_name): Likewise.
|
|
|
|
* include/java-interp.h (class _Jv_JNIMethod): New class.
|
|
|
|
(class _Jv_MethodBase): New class.
|
|
|
|
(class _Jv_InterpMethod): Derive from _Jv_MethodBase.
|
|
|
|
(_Jv_InterpClass): Changed `interpreted_methods' field to type
|
|
|
|
`_Jv_MethodBase'.
|
|
|
|
|
|
|
|
* include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
|
|
|
|
* java/lang/natRuntime.cc (libraries_size, libraries_count,
|
|
|
|
libraries): New globals.
|
|
|
|
(add_library): New function.
|
|
|
|
(_Jv_FindSymbolInExecutable): New function.
|
|
|
|
|
|
|
|
* java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
|
|
|
|
Now static.
|
|
|
|
|
2000-02-04 17:59:35 +01:00
|
|
|
2000-02-04 Andrew Haley <aph@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/Throwable.java (CPlusPlusDemangler): New class.
|
|
|
|
(printStackTrace): Use a CPlusPlusDemangler to demangle names.
|
|
|
|
* java/lang/natThrowable.cc (printRawStackTrace): Rename
|
|
|
|
printStackTrace to printRawStackTrace.
|
|
|
|
|
2000-02-03 19:26:51 +01:00
|
|
|
2000-02-03 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/util/Calendar.java (toString): New method.
|
|
|
|
* java/util/SimpleTimeZone.java (clone): New method.
|
|
|
|
(toString): New method.
|
|
|
|
* java/util/TimeZone.java (clone): New method.
|
|
|
|
* java/text/SimpleDateFormat.java (clone): New method.
|
|
|
|
* java/text/NumberFormat.java (clone): New method.
|
|
|
|
(equals): New method.
|
|
|
|
* java/text/Format.java (clone): New method.
|
|
|
|
* java/text/DateFormatSymbols.java (DateFormatSymbols): New
|
|
|
|
constructor.
|
|
|
|
(clone): New method.
|
|
|
|
* java/text/DateFormat.java (clone): New method.
|
|
|
|
* java/text/Collator.java (clone): New method.
|
|
|
|
|
2000-02-03 18:17:26 +01:00
|
|
|
2000-02-03 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/io/PipedOutputStream.java (write(byte[], int, int)): New
|
|
|
|
method.
|
|
|
|
|
2000-02-01 17:32:21 +01:00
|
|
|
2000-02-01 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-02-02 02:55:03 +01:00
|
|
|
* include/java-interp.h (_Jv_JNI_conversion_call): Declare.
|
|
|
|
* resolve.cc (ncode): Use _Jv_JNI_conversion_call when
|
|
|
|
constructing the closure if the function is native.
|
|
|
|
* jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
|
|
|
|
a template function, #if'd out, or static.
|
|
|
|
Include <java-interp.h>.
|
|
|
|
|
2000-02-02 02:47:01 +01:00
|
|
|
* include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
|
|
|
|
|
2000-02-01 22:04:44 +01:00
|
|
|
* include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
|
|
|
|
|
2000-02-01 18:36:05 +01:00
|
|
|
* jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
|
|
|
|
(_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
|
|
|
|
`locals == NULL'.
|
|
|
|
(wrap_value): New function.
|
|
|
|
(_Jv_JNI_CallAnyMethodV): Use it.
|
|
|
|
(_Jv_JNI_CallAnyMethodA): Likewise.
|
|
|
|
(_Jv_JNI_GetField): Use wrap_value; removed specialized version.
|
|
|
|
(_Jv_JNI_GetStaticField): Likewise.
|
|
|
|
|
2000-02-01 17:32:21 +01:00
|
|
|
* jni.cc (_Jv_JNI_GetField): Specialize for jobject.
|
|
|
|
(_Jv_JNI_GetStaticField): Likewise.
|
|
|
|
|
2000-02-01 07:14:26 +01:00
|
|
|
2000-01-31 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* prims.cc (_Jv_MallocUnchecked): New function.
|
|
|
|
(main_init): Call _Jv_JNI_Init.
|
|
|
|
* include/jvm.h (_Jv_MallocUnchecked): Declare.
|
|
|
|
(_Jv_JNI_Init): Declare.
|
|
|
|
* jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
|
|
|
|
<string.h>.
|
|
|
|
(_Jv_JNI_NewGlobalRef): New function.
|
|
|
|
(_Jv_JNI_DeleteGlobalRef): New function.
|
|
|
|
(_Jv_JNI_DeleteLocalRef): New function.
|
|
|
|
(_Jv_JNI_conversion_call): Initialize and clear local reference
|
|
|
|
frame.
|
|
|
|
(_Jv_JNI_NewLocalRef): New function.
|
|
|
|
(struct _Jv_JNI_LocalFrame): New structure.
|
|
|
|
(_Jv_JNI_PushLocalFrame): New function.
|
|
|
|
(_Jv_JNI_EnsureLocalCapacity): New function.
|
|
|
|
(FRAME_SIZE): New define.
|
|
|
|
(_Jv_JNI_GetStringChars): Mark string, not characters.
|
|
|
|
(_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
|
|
|
|
(_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
|
|
|
|
(_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
|
|
|
|
elements.
|
|
|
|
(_Jv_JNI_DefineClass): Make return value a local ref.
|
|
|
|
(_Jv_JNI_FindClass): Likewise.
|
|
|
|
(_Jv_JNI_GetSuperclass): Likewise.
|
|
|
|
(_Jv_JNI_ExceptionOccurred): Likewise.
|
|
|
|
(_Jv_JNI_AllocObject): Likewise.
|
|
|
|
(_Jv_JNI_GetObjectClass): Likewise.
|
|
|
|
(_Jv_JNI_CallAnyMethodV): Likewise.
|
|
|
|
(_Jv_JNI_NewString): Likewise.
|
|
|
|
(_Jv_JNI_NewStringUTF): Likewise.
|
|
|
|
(_Jv_JNI_NewObjectArray): Likewise.
|
|
|
|
(_Jv_JNI_GetObjectArrayElement): Likewise.
|
|
|
|
(_Jv_JNI_ToReflectedField): Likewise.
|
|
|
|
(_Jv_JNI_ToReflectedMethod): Likewise.
|
|
|
|
(_Jv_JNIFunctions): Updated table for new functions.
|
|
|
|
(_Jv_JNI_Init): New function.
|
|
|
|
(mark_for_gc): Wrote.
|
|
|
|
(unmark_for_gc): Wrote.
|
|
|
|
* include/jni.h (struct JNINativeInterface): Removed name from
|
|
|
|
PopLocalFrame parameter.
|
|
|
|
(class _Jv_JNIEnv): Added `locals' field.
|
|
|
|
|
2000-01-31 09:56:09 +01:00
|
|
|
Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
|
|
|
|
|
|
|
|
* gnu/gcj/convert/natIconv.cc (read): Minor fixes.
|
|
|
|
(write): Ditto.
|
|
|
|
|
2000-01-31 05:53:47 +01:00
|
|
|
2000-01-30 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* include/config.h.in: Rebuilt.
|
|
|
|
* acconfig.h (HAVE_ICONV): Define.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
* configure.in: Check for `iconv' function.
|
|
|
|
* gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
|
|
|
|
no specific encoder exists.
|
|
|
|
* gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
|
|
|
|
no specific encoder exists.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (convert_source_files): Mention Input_iconv.java and
|
|
|
|
Output_iconv.java.
|
|
|
|
(nat_source_files): Added natIconv.cc.
|
|
|
|
* gnu/gcj/convert/natIconv.cc: New file.
|
|
|
|
* gnu/gcj/convert/Input_iconv.java: New file.
|
|
|
|
* gnu/gcj/convert/Output_iconv.java: New file.
|
|
|
|
|
2000-01-28 21:00:21 +01:00
|
|
|
2000-01-28 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
|
|
|
|
|
2000-01-27 00:44:40 +01:00
|
|
|
2000-01-26 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-01-27 00:56:36 +01:00
|
|
|
* gcj/method.h (JvNumMethods): Moved from Class.h.
|
|
|
|
(JvGetFirstMethod): Likewise.
|
|
|
|
* java/lang/Class.h (Object): Updated decl of
|
|
|
|
_Jv_JNI_ToReflectedField.
|
|
|
|
(Object): Added _Jv_JNI_ToReflectedMethod as a friend.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
|
|
|
|
argument of _Jv_JNI_ToReflectedField.
|
|
|
|
(java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
|
|
|
|
as a friend.
|
|
|
|
(java/lang/reflect/Method.h): Likewise.
|
|
|
|
* include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
|
|
|
|
__GCJ_JNI_IMPL__.
|
|
|
|
(jweak): New typedef.
|
|
|
|
(struct JNINativeInterface): Correctly declare remaining entries.
|
|
|
|
* jni.cc: Include Class.h, ClassLoader.h.
|
|
|
|
(_Jv_JNI_FindClass): New function.
|
|
|
|
(_Jv_JNI_DefineClass): New function.
|
|
|
|
(_Jv_JNI_conversion_call): New function.
|
|
|
|
(_Jv_JNI_FindClass): Use current class loader to find class.
|
|
|
|
(_Jv_JNI_ExceptionCheck): New function.
|
|
|
|
(_Jv_JNI_FromReflectedField): Now static.
|
|
|
|
(MethodClass): New define.
|
|
|
|
(_Jv_JNI_FromReflectedMethod): New function.
|
|
|
|
(_Jv_JNI_ToReflectedMethod): Likewise.
|
|
|
|
Include Method.h.
|
|
|
|
(_Jv_JNI_IsAssignableFrom): Renamed.
|
|
|
|
(_Jv_JNI_GetStringRegion): New function.
|
|
|
|
Include StringIndexOutOfBoundsException.h.
|
|
|
|
(_Jv_JNI_GetStringUTFRegion): New function.
|
|
|
|
(_Jv_JNIFunctions): Updated for new functions.
|
|
|
|
(_Jv_JNI_GetPrimitiveArrayCritical): New function
|
|
|
|
(_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
|
|
|
|
(_Jv_JNI_GetStringCritical): New function.
|
|
|
|
(_Jv_JNI_ReleaseStringCritical): Likewise.
|
|
|
|
(get_throwable): Removed.
|
|
|
|
(GCJ_JV_JNIENV_FRIEND): Removed.
|
|
|
|
(__GCJ_JNI_IMPL__): Define.
|
|
|
|
Include method.h.
|
|
|
|
|
2000-01-27 00:44:40 +01:00
|
|
|
* resolve.cc (get_ffi_type_from_signature): Handle case where
|
|
|
|
boolean is an int.
|
|
|
|
|
2000-01-26 01:56:36 +01:00
|
|
|
Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
|
|
|
|
|
|
|
|
* interpret.cc (run): Don't call println.
|
|
|
|
Don't include PrintStream.h.
|
|
|
|
|
|
|
|
* gcj/field.h (struct _Jv_Field): Use "jshort" as type for
|
|
|
|
nameIndex. Use "jint" as type for boffset.
|
|
|
|
* java/lang/Class.h (struct _Jv_Method): Made accflags a
|
|
|
|
_Jv_ushort.
|
|
|
|
(Class): Likewise. Also changed type of method_count,
|
|
|
|
vtable_method_count, size_in_bytes, field_count,
|
|
|
|
static_field_count, interface_count.
|
|
|
|
* gcj/array.h (__JArray): Made `length' a const jsize, not an
|
|
|
|
int.
|
|
|
|
|
natConstructor.cc (newInstance): Use _Jv_CallAnyMethodA.
* java/lang/reflect/natConstructor.cc (newInstance): Use
_Jv_CallAnyMethodA.
* include/jvm.h: Declare _Jv_CallAnyMethodA.
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
Include <jni.h>.
(COPY): Removed.
(invoke): Use _Jv_CallAnyMethodA.
(VAL): Redefined.
* java/lang/Class.h (Class): Declare JvGetFirstStaticField,
JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
functions.
(struct _Jv_Method): Added getNextMethod method.
(JvNumMethods): New function.
(JvGetFirstMethod): Likewise.
* gcj/field.h (JvGetFirstStaticField): New function.
(JvNumStaticFields): Likewise.
(getNextField): Renamed from getNextInstanceField.
(struct _Jv_Field): New method getClass.
* jni.cc: Wrote many new functions.
* include/jni.h (JNI_TRUE): Define.
(JNI_FALSE): Likewise.
(jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
jcharArray, jfloatArray, jdoubleArray): New typedefs.
(jfieldID, jmethodID): Likewise.
(JNI_COMMIT, JNI_ABORT): New defines.
(JNINativeMethod): New struct.
(struct JNINativeInterface): Correctly declared more entries.
(class _Jv_JNIEnv): Added `ex' member.
(JNI_VERSION_1_1): New define.
(JNI_VERSION_1_2): Likewise.
* boehm.cc (_Jv_MarkObj): Use getNextField, not
getNextInstanceField.
From-SVN: r31553
2000-01-22 00:50:31 +01:00
|
|
|
2000-01-21 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/reflect/natConstructor.cc (newInstance): Use
|
|
|
|
_Jv_CallAnyMethodA.
|
|
|
|
* include/jvm.h: Declare _Jv_CallAnyMethodA.
|
|
|
|
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
|
|
|
|
from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
|
|
|
|
Include <jni.h>.
|
|
|
|
(COPY): Removed.
|
|
|
|
(invoke): Use _Jv_CallAnyMethodA.
|
|
|
|
(VAL): Redefined.
|
|
|
|
* java/lang/Class.h (Class): Declare JvGetFirstStaticField,
|
|
|
|
JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
|
|
|
|
functions.
|
|
|
|
(struct _Jv_Method): Added getNextMethod method.
|
|
|
|
(JvNumMethods): New function.
|
|
|
|
(JvGetFirstMethod): Likewise.
|
|
|
|
* gcj/field.h (JvGetFirstStaticField): New function.
|
|
|
|
(JvNumStaticFields): Likewise.
|
|
|
|
(getNextField): Renamed from getNextInstanceField.
|
|
|
|
(struct _Jv_Field): New method getClass.
|
|
|
|
* jni.cc: Wrote many new functions.
|
|
|
|
* include/jni.h (JNI_TRUE): Define.
|
|
|
|
(JNI_FALSE): Likewise.
|
|
|
|
(jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
|
|
|
|
jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
|
|
|
|
jcharArray, jfloatArray, jdoubleArray): New typedefs.
|
|
|
|
(jfieldID, jmethodID): Likewise.
|
|
|
|
(JNI_COMMIT, JNI_ABORT): New defines.
|
|
|
|
(JNINativeMethod): New struct.
|
|
|
|
(struct JNINativeInterface): Correctly declared more entries.
|
|
|
|
(class _Jv_JNIEnv): Added `ex' member.
|
|
|
|
(JNI_VERSION_1_1): New define.
|
|
|
|
(JNI_VERSION_1_2): Likewise.
|
|
|
|
|
|
|
|
* boehm.cc (_Jv_MarkObj): Use getNextField, not
|
|
|
|
getNextInstanceField.
|
|
|
|
|
2000-01-20 18:32:26 +01:00
|
|
|
2000-01-20 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* resolve.cc (StringClass): Removed.
|
|
|
|
* defineclass.cc (StringClass): Removed.
|
|
|
|
|
2000-01-20 00:08:05 +01:00
|
|
|
2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* NEWS: updated.
|
|
|
|
|
2000-01-19 19:39:27 +01:00
|
|
|
2000-01-19 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-01-19 22:08:03 +01:00
|
|
|
* interpret.cc (PC_REGISTER_ASM): Removed.
|
|
|
|
|
2000-01-19 19:59:27 +01:00
|
|
|
* java/lang/natThrowable.cc: Don't use `#pragma implementation'.
|
|
|
|
From Bryce McKinlay.
|
|
|
|
|
2000-01-19 19:39:27 +01:00
|
|
|
* All files: Updated copyright to reflect Cygnus purchase.
|
|
|
|
|
2000-01-19 06:06:03 +01:00
|
|
|
2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
|
|
|
|
|
|
|
|
* configure: Rebuilt.
|
|
|
|
* configure.in: Recognize --disable-interpreter.
|
|
|
|
|
2000-01-18 15:42:14 +01:00
|
|
|
2000-01-18 Andrew Haley <aph@cygnus.com>
|
|
|
|
|
|
|
|
* name-finder.cc (lookup): Check for dladdr function.
|
|
|
|
acconfig.h (HAVE_DLADDR): Add.
|
|
|
|
configure.in: Check for HAVE_DLADDR
|
|
|
|
configure: Rebuilt.
|
|
|
|
include/config.h.in: Rebuilt.
|
|
|
|
|
2000-01-18 15:37:34 +01:00
|
|
|
2000-01-17 Andrew Haley <aph@cygnus.com>
|
|
|
|
|
|
|
|
* prims.cc (_Jv_RunMain): Set the name of this executable.
|
|
|
|
|
2000-01-17 20:22:20 +01:00
|
|
|
2000-01-17 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-01-18 07:22:13 +01:00
|
|
|
* java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
|
|
|
|
when backtrace can't be computed.
|
|
|
|
|
2000-01-18 06:33:35 +01:00
|
|
|
* configure: Rebuilt.
|
|
|
|
* configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
|
|
|
|
|
2000-01-17 20:22:20 +01:00
|
|
|
* java/lang/Runtime.java (loadLibraryInternal): Declare.
|
|
|
|
* java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
|
|
|
|
(_Jv_FindClassInCache): Likewise.
|
|
|
|
(_Jv_FindClass): Don't conditionalize body on INTERPRETER.
|
|
|
|
(findSystemClass): Try to load class from compiled module.
|
|
|
|
Include Runtime.h.
|
|
|
|
* java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
|
|
|
|
(loadLibrary): Likewise.
|
|
|
|
(lt_preloaded_symbols): Define.
|
|
|
|
(loadLibraryInternal): New method.
|
|
|
|
* include/config.h.in: Rebuilt.
|
|
|
|
* acconfig.h (USE_LTDL): Added.
|
|
|
|
* Makefile.am (SUBDIRS): Added $(DIRLTDL).
|
2000-01-18 06:33:35 +01:00
|
|
|
(INCLUDES): Added $(INCLTDL).
|
2000-01-17 20:22:20 +01:00
|
|
|
(libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
|
|
|
|
(libgcj_la_LIBADD): Likewise.
|
|
|
|
* aclocal.m4, configure: Rebuilt.
|
|
|
|
* configure.in: Added libltdl support.
|
|
|
|
|
2000-01-17 19:56:43 +01:00
|
|
|
2000-01-15 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
|
|
|
|
|
2000-01-17 16:45:24 +01:00
|
|
|
2000-01-14 Andrew Haley <aph@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/natThrowable.cc: New file.
|
|
|
|
|
|
|
|
* java/lang/Throwable.java (fillInStackTrace): Make native.
|
|
|
|
(printStackTrace): Call native method to do this.
|
|
|
|
(Throwable): Call fillInStackTrace.
|
|
|
|
(stackTrace): New variable.
|
|
|
|
|
|
|
|
* include/jvm.h: Add _Jv_ThisExecutable functions.
|
|
|
|
|
|
|
|
* prims.cc: (_Jv_execName): New variable.
|
|
|
|
(catch_segv): Call fillInStackTrace.
|
|
|
|
(catch_fpe): Ditto.
|
|
|
|
(_Jv_ThisExecutable): New functions.
|
|
|
|
(JvRunMain): Set the name of this executable.
|
|
|
|
|
|
|
|
* Makefile.am: Add java/lang/natThrowable.cc.
|
|
|
|
Add name-finder.cc.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
|
|
|
* acconfig.h: Add HAVE_PROC_SELF_EXE.
|
|
|
|
|
|
|
|
* configure.in: Force link with __frame_state_for in
|
|
|
|
FORCELIBGCCSPEC. Add new checks for backtrace.
|
|
|
|
* include/config.h.in: Rebuilt.
|
|
|
|
|
|
|
|
* name-finder.cc: New file.
|
|
|
|
* include/name-finder.h: New file.
|
2000-01-17 19:56:43 +01:00
|
|
|
|
2000-01-17 01:00:43 +01:00
|
|
|
2000-01-16 Anthony Green <green@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/StringBuffer.java (StringBuffer): Don't special case
|
|
|
|
null argument.
|
|
|
|
|
2000-01-16 22:33:46 +01:00
|
|
|
2000-01-16 Jeff Sturm <jsturm@sigma6.com>
|
|
|
|
|
|
|
|
* java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
|
|
|
|
|
2000-01-13 19:13:31 +01:00
|
|
|
2000-01-13 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
|
|
|
|
not system loader, as initiating loader.
|
|
|
|
|
2000-01-11 19:58:13 +01:00
|
|
|
2000-01-11 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
|
|
|
|
HP/UX. From David Scott Urban.
|
|
|
|
|
2000-01-10 21:02:47 +01:00
|
|
|
2000-01-10 Jeff Sturm <jsturm@sigma6.com>
|
|
|
|
|
|
|
|
* java/lang/natMath.cc (pow): Cast args to `double', not
|
|
|
|
`jdouble'.
|
|
|
|
(atan2): Likewise.
|
|
|
|
(IEEEremainder): Likewise.
|
|
|
|
* java/lang/mprec.h: Don't wrap includes in `extern "C"'.
|
|
|
|
* java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
|
|
|
|
|
2000-01-09 23:25:54 +01:00
|
|
|
2000-01-09 Anthony Green <green@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/natString.cc (init): Test for overflow condition
|
|
|
|
during out of bounds check.
|
|
|
|
(getChars): Throw StringIndexOutOfBoundsException, not
|
|
|
|
ArrayIndexOutOfBoundsException.
|
|
|
|
(getBytes): Ditto.
|
|
|
|
(regionMatches): Obey case option during string comparison.
|
|
|
|
|
|
|
|
* configure.host (ligcj_interpreter): New variable. Enable
|
|
|
|
interpreter by default on IA-32.
|
|
|
|
* configure.in: Examine libgcj_interpreter.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
|
2000-01-07 21:23:01 +01:00
|
|
|
2000-01-07 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-01-07 21:42:26 +01:00
|
|
|
* mauve-libgcj: Don't disable ClassTest.
|
|
|
|
|
2000-01-07 21:23:01 +01:00
|
|
|
* java/lang/natClass.cc (getClasses): Wrote.
|
|
|
|
|
2000-01-06 19:18:15 +01:00
|
|
|
2000-01-06 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/natClass.cc (_getConstructors): Correctly check
|
|
|
|
whether method name is the init name.
|
|
|
|
(getMethod): Look at accflags on method in `klass', not `this'.
|
|
|
|
|
2000-01-05 18:23:34 +01:00
|
|
|
2000-01-05 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
2000-01-06 01:56:21 +01:00
|
|
|
* java/lang/natClass.cc (getMethod): Compute offset relative to
|
|
|
|
`klass's methods table, not `this's table.
|
|
|
|
|
|
|
|
* java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
|
|
|
|
In unwrapping/widening case, check whether `k' is null, not
|
|
|
|
whether it is primitive. Initialize `num' from `argelts', not
|
|
|
|
`paramelts'. Correct create and pass arguments to ffi_call.
|
|
|
|
Don't let presence of `this' argument affect index used to look in
|
|
|
|
argument arrays.
|
|
|
|
(COPY): Set appropriate element in `values' vector.
|
|
|
|
|
2000-01-05 23:52:54 +01:00
|
|
|
* java/lang/natClass.cc: Include <gcj/method.h>.
|
|
|
|
|
2000-01-05 23:29:27 +01:00
|
|
|
* java/lang/Class.h (_getMethods): Correctly declare as private,
|
|
|
|
not public.
|
|
|
|
|
2000-01-05 23:22:10 +01:00
|
|
|
* java/lang/Class.h (_getMethods): Declare.
|
|
|
|
* java/lang/Class.java (_getMethods): Declare.
|
|
|
|
* java/lang/natClass.cc (getDeclaringClass): Always return NULL.
|
|
|
|
(getDeclaredClasses): Always return empty array.
|
|
|
|
(_getMethods): New method.
|
|
|
|
(getMethods): Wrote.
|
|
|
|
(getDeclaredMethod): Return `rmethod'.
|
|
|
|
(finit_name): New global.
|
|
|
|
(getDeclaredMethods): Check for finit_name.
|
|
|
|
(_getMethods): Likewise.
|
|
|
|
(getMethod): Only return public methods.
|
|
|
|
|
2000-01-05 18:23:34 +01:00
|
|
|
* java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
|
|
|
|
jboolean and select correct ffi type on that basis.
|
|
|
|
(_Jv_CallNonvirtualMethodA): Handle `void' return type.
|
|
|
|
Constructor call always has `void' return type.
|
|
|
|
|
2000-01-05 17:35:20 +01:00
|
|
|
2000-01-04 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/Class.h (getSignature): Updated.
|
|
|
|
* java/lang/Class.java (getSignature): Updated.
|
|
|
|
* java/lang/natClass.cc (getSignature): Added `is_constructor'
|
|
|
|
argument.
|
|
|
|
(getConstructor): Ensure constructor is public.
|
|
|
|
(_getConstructors): Check for public-ness of constructor when
|
|
|
|
`declared' is false, not when it is true.
|
|
|
|
|
2000-01-04 23:41:58 +01:00
|
|
|
2000-01-04 Warren Levy <warrenl@cygnus.com>
|
|
|
|
|
|
|
|
* java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
|
|
|
|
comment.
|
|
|
|
(receive): Set the sender's address in the DatagramPacket.
|
|
|
|
|
2000-01-04 09:46:52 +01:00
|
|
|
2000-01-04 Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
* java/lang/reflect/natConstructor.cc (newInstance): Pass
|
|
|
|
declaring class as return_type argument to
|
|
|
|
_Jv_CallNonvirtualMethodA.
|
|
|
|
* java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
|
|
|
|
constructor case, create object and use it as `this' argument.
|
|
|
|
* java/lang/Class.h (_getConstructors): Declare.
|
|
|
|
(_getFields): Declare.
|
|
|
|
* java/lang/Class.java (getConstructors): Wrote.
|
|
|
|
(_getConstructors): New native method.
|
|
|
|
(getDeclaredConstructors): Wrote.
|
|
|
|
(_getFields): Declare new native method.
|
|
|
|
* java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
|
|
|
|
incorrect comment.
|
|
|
|
(getMethod): Work correctly when class is primitive.
|
|
|
|
(getDeclaredMethods): Likewise. Compute offset using `method',
|
|
|
|
not `mptr'.
|
|
|
|
(getDeclaredMethod): Likewise.
|
|
|
|
(getConstructor): Wrote.
|
|
|
|
(ConstructorClass): New define.
|
|
|
|
(getDeclaredConstructor): Wrote.
|
|
|
|
(_getConstructors): New method.
|
|
|
|
(_getFields): New method.
|
|
|
|
(getFields): Wrote.
|
|
|
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
|
|
|
|
|
|
|
|
* prims.cc: Remove `#pragma implementation'.
|
|
|
|
* gcj/array.h: Remove `#pragma interface'.
|
|
|
|
|
|
|
|
* prims.cc (_Jv_equaln): New function.
|
|
|
|
* java/lang/Class.java (getSignature): Declare.
|
|
|
|
* resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
|
|
|
|
* java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
|
|
|
|
resolve.cc.
|
|
|
|
(getSignature): New method.
|
|
|
|
(getDeclaredMethod): Wrote.
|
|
|
|
(getMethod): Wrote.
|
|
|
|
Include StringBuffer.h.
|
|
|
|
* java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
|
|
|
|
as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
|
|
|
|
a friend.
|
|
|
|
(getSignature): Declare.
|
|
|
|
* include/jvm.h (_Jv_GetTypesFromSignature): Declare.
|
|
|
|
(_Jv_equaln): Declare.
|
|
|
|
(_Jv_CallNonvirtualMethodA): Declare.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* Makefile.am (nat_source_files): Added natConstructor.cc.
|
|
|
|
(java/lang/reflect/Constructor.h): New target.
|
|
|
|
* java/lang/reflect/natConstructor.cc: New file.
|
|
|
|
* java/lang/reflect/Constructor.java (newInstance): Now native.
|
|
|
|
(declaringClass): Renamed from decl_class.
|
|
|
|
(offset): Renamed from index.
|
|
|
|
(getType): New native method.
|
|
|
|
(getModifiers): Now native.
|
|
|
|
(getParameterTypes): Call getType if required.
|
|
|
|
(hashCode): Include hash code from declaring class.
|
|
|
|
(modifiers): Removed.
|
|
|
|
(toString): Call getType if required.
|
|
|
|
* gcj/method.h (_Jv_FromReflectedConstructor): New function.
|
|
|
|
* java/lang/reflect/natMethod.cc (hack_call): New method.
|
|
|
|
Removed `#if 0' around FFI code.
|
|
|
|
Include <gnu/gcj/RawData.h>.
|
|
|
|
(invoke): Use _Jv_CallNonvirtualMethodA. Throw
|
|
|
|
IllegalArgumentException when argument object and class disagree.
|
|
|
|
(_Jv_GetTypesFromSignature): New function.
|
|
|
|
(getType): Use it.
|
|
|
|
(ObjectClass): New define.
|
|
|
|
(_Jv_CallNonvirtualMethodA): New function.
|
|
|
|
* java/lang/reflect/Method.java (hack_trampoline): New method.
|
|
|
|
(hack_call): New native method.
|