Tom Tromey
b099f07de9
java-interp.h: Don't include MethodInvocation.h.
...
* 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.
From-SVN: r32294
2000-03-02 20:25:20 +00:00
Tom Tromey
84d59b7c5a
THANKS updates
...
From-SVN: r32258
2000-02-29 17:11:46 +00:00
Mo DeJong
fee2681f8a
ZipOutputStream.java (closeEntry): Fixed error caused by the incorrect casting of a long to an int.
...
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.
From-SVN: r32257
2000-02-29 17:08:00 +00:00
Mo DeJong
f8b7a5d26b
ZipOutputStream.java (write_entry): Fixed SIGSEV caused by use of the wrong instance variable.
...
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.
From-SVN: r32256
2000-02-29 17:04:35 +00:00
Mo DeJong
73bb4fe42a
static_inner.java: New file.
...
2000-02-28 Mo DeJong <mdejong@cygnus.com>
* libjava.compile/static_inner.java: New file.
From-SVN: r32250
2000-02-29 04:18:35 +00:00
Tom Tromey
a51c1a1a0a
noclass.c: New file.
...
* libjava.jni/noclass.c: New file.
* libjava.jni/noclass.out: New file.
* libjava.jni/noclass.java: New file.
From-SVN: r32226
2000-02-27 21:42:40 +00:00
Bryce McKinlay
91da35dbf2
File.java (File(String, String)): For dirPath, treat an empty String the same as `null'.
...
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'.
From-SVN: r32217
2000-02-27 10:43:47 +00:00
Anthony Green
e1b1511329
Minor clean up and bug fix.
...
From-SVN: r32196
2000-02-26 21:12:54 +00:00
Tom Tromey
ac52f669c5
jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'.
...
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
`INTERPRETER'.
From-SVN: r32156
2000-02-25 23:49:34 +00:00
Bryce McKinlay
4ae4a3c973
re GNATS libgcj/38 (Static initializer in DecimalFormat eventually depends on itself)
...
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.
From-SVN: r32153
2000-02-25 22:38:33 +00:00
Warren Levy
12b595c7c4
BigInteger.java (ival): Made private.
...
* java/math/BigInteger.java(ival): Made private.
(words): Ditto.
(neg): Ditto.
From-SVN: r32143
2000-02-25 04:00:09 +00:00
Anthony Green
9b90451bee
Forgot to commit ChangeLog
...
From-SVN: r32087
2000-02-21 08:21:52 +00:00
Anthony Green
06440a12a2
Makefile.in: Rebuilt.
...
* 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.
From-SVN: r32086
2000-02-21 05:54:29 +00:00
Tom Tromey
38b3a2c089
* boehm.cc (_Jv_AllocBytes): Clear returned memory.
...
From-SVN: r32085
2000-02-21 05:14:06 +00:00
Bryce McKinlay
a0e34aaae4
ZipEntry.java (setCrc): Fix overflow.
...
2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/zip/ZipEntry.java (setCrc): Fix overflow.
(setSize): ditto.
From-SVN: r32062
2000-02-19 02:54:14 +00:00
Tom Tromey
8ade47715e
jvm.h (_Jv_GetJavaVM): Declare.
...
* 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.
From-SVN: r32056
2000-02-18 21:22:06 +00:00
Tom Tromey
31e890f0f3
register.java: New file.
...
* libjava.jni/register.java: New file.
* libjava.jni/register.c: New file.
* libjava.jni/register.out: New file.
From-SVN: r32055
2000-02-18 21:15:32 +00:00
Tom Tromey
8dd8ff2e98
Rotated ChangeLogs
...
From-SVN: r32043
2000-02-17 22:57:30 +00:00
Tom Tromey
de3cb4e4c1
re GNATS gcj/152 (Installation flaw)
...
* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
Fixes PR gcj/152.
From-SVN: r32036
2000-02-17 18:34:14 +00:00
Tom Tromey
5ef57049f9
* jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
...
From-SVN: r32021
2000-02-17 00:54:34 +00:00
Tom Tromey
c082d01fa9
calls.c: New file.
...
* libjava.jni/calls.c: New file.
* libjava.jni/calls.out: New file.
* libjava.jni/calls.java: New file.
From-SVN: r32020
2000-02-17 00:49:27 +00:00
Tom Tromey
1adbc4d8be
jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
...
* 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.
From-SVN: r32017
2000-02-16 22:42:41 +00:00
Tom Tromey
5b0d59b4e7
throwit.java: New file.
...
* libjava.jni/throwit.java: New file.
* libjava.jni/throwit.c: New file.
* libjava.jni/throwit.out: New file.
From-SVN: r32016
2000-02-16 22:39:36 +00:00
Tom Tromey
d77a164002
jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass.
...
* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
findClass.
From-SVN: r32013
2000-02-16 18:42:48 +00:00
Tom Tromey
5bdd3ac1ea
findclass.java: New file
...
* libjava.jni/findclass.java: New file
* libjava.jni/findclass.c: New file
* libjava.jni/findclass.out: New file
From-SVN: r32012
2000-02-16 18:41:28 +00:00
Tom Tromey
04297fe74f
findclass.java: New file
...
* libjava.jni/findclass.java: New file
* libjava.jni/findclass.c: New file
* libjava.jni/findclass.out: New file
From-SVN: r32011
2000-02-16 18:35:05 +00:00
Bryce McKinlay
432ba90f48
InterfaceDispatch.java: New file.
...
2000-02-16 Bryce McKinlay <bryce@albatross.co.nz>
* libjava.lang/InterfaceDispatch.java: New file.
* libjava.lang/InterfaceDispatch.out: New file.
From-SVN: r32001
2000-02-16 05:13:46 +00:00
Tom Tromey
73d7c68909
virtual.java: New file.
...
* libjava.jni/virtual.java: New file.
* libjava.jni/virtual.c: New file.
* libjava.jni/virtual.out: New file.
* libjava.jni/final_method.java: New file.
* libjava.jni/final_method.c: New file.
* libjava.jni/final_method.out: New file.
* libjava.jni/overload.java: New file.
* libjava.jni/overload.c: New file.
* libjava.jni/overload.out: New file.
* libjava.jni/simple_int.java: New file.
* libjava.jni/simple_int.c: New file.
* libjava.jni/simple_int.out: New file.
* libjava.jni/invoke.out: New file.
* libjava.jni/invoke.c: New file.
* libjava.jni/invoke.java: New file.
From-SVN: r31996
2000-02-16 00:19:55 +00:00
Tom Tromey
d348bda453
resolve.cc (ncode): Set args_raw_size.
...
* 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.
From-SVN: r31995
2000-02-16 00:07:34 +00:00
Tom Tromey
cdd59e7bdf
* jni.cc (mangled_name): Skip leading `(' in signature.
...
From-SVN: r31993
2000-02-15 22:59:23 +00:00
Tom Tromey
abfb784400
* jni.cc (add_char): Added missing `else'.
...
From-SVN: r31991
2000-02-15 22:42:10 +00:00
Tom Tromey
2d759f7165
jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc fails.
...
* jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
fails.
From-SVN: r31986
2000-02-15 20:39:36 +00:00
Bryce McKinlay
6ad91f8611
Updated the NEWS
...
From-SVN: r31983
2000-02-15 09:35:51 +00:00
Bryce McKinlay
2e5aca8386
Updated ChangeLog
...
From-SVN: r31982
2000-02-15 08:53:00 +00:00
Bryce McKinlay
12e7d63aec
natSystem.cc (init_properties): set java.lang.classpath property.
...
* java/lang/natSystem.cc (init_properties): set java.lang.classpath
property.
From-SVN: r31981
2000-02-15 08:52:03 +00:00
Bryce McKinlay
b5f853e62b
Updated the NEWS
...
From-SVN: r31980
2000-02-15 08:51:29 +00:00
Bryce McKinlay
1733ad7f10
natRuntime.cc (_load): Include library path with exception message.
...
* java/lang/natRuntime.cc (_load): Include library path with
exception message.
From-SVN: r31979
2000-02-15 08:51:04 +00:00
Bryce McKinlay
83379befc0
natThread.cc (dumpStack): Removed.
...
* java/lang/natThread.cc (dumpStack): Removed.
* java/lang/Thread.java (dumpStack): Implemented.
From-SVN: r31978
2000-02-15 08:47:16 +00:00
Tom Tromey
26c3229c0b
re GNATS gcj/150 (System.loadLibrary() semantics arn't the same as in the JDK)
...
* java/lang/natRuntime.cc (_load): On Unix, prefix library name
with `lib' for loadLibrary. Fixes PR gcj/150.
From-SVN: r31976
2000-02-15 07:53:11 +00:00
Tom Tromey
77de5d85d0
ltdl.c: If HAVE_BOEHM_GC defined, includ gc.h.
...
* ltdl.c: If HAVE_BOEHM_GC defined, includ gc.h.
* Makefile.in: Rebuilt.
* Makefile.am (INCLUDES): New macro.
* config.h.in, configure: Rebuilt.
* acconfig.h (HAVE_BOEHM_GC): Define.
* configure.in: Handle --enable-java-gc.
From-SVN: r31971
2000-02-14 21:59:58 +00:00
Warren Levy
34540fe35e
MPN.java (findLowestBit): Made methods public.
...
* 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.
From-SVN: r31966
2000-02-14 10:23:29 +00:00
Anthony Green
97ce4a51fa
gcj/142
...
i386 and i486 should configure the same as i586 and i686.
From-SVN: r31954
2000-02-13 18:07:09 +00:00
Anthony Green
6ab17fd868
New test code.
...
From-SVN: r31952
2000-02-12 23:43:51 +00:00
Anthony Green
addcdfec59
New test case.
...
From-SVN: r31951
2000-02-12 23:09:34 +00:00
Anthony Green
762016bf0a
New test case.
...
From-SVN: r31950
2000-02-12 22:57:18 +00:00
Anthony Green
d6455b5baf
New test case.
...
From-SVN: r31949
2000-02-12 22:45:06 +00:00
Tom Tromey
dd16866663
File.java (createTempFile): Use low bits from counter, not high bits.
...
* java/io/File.java (createTempFile): Use low bits from counter,
not high bits.
From-SVN: r31946
2000-02-12 20:13:42 +00:00
Alexandre Petit-Bianco
e35b951f52
inner_interface.out: New file.
...
2000-02-12 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.lang/inner_interface.out: New file.
* libjava.lang/inner_interface.java: New file.
* libjava.lang/final_int.out: New file.
* libjava.lang/final_int.java: New file.
* libjava.lang/final_static_and_friend.out: New file.
* libjava.lang/final_static_and_friend.java: New file.
From-SVN: r31944
2000-02-12 18:34:50 +00:00
Anthony Green
95311793fe
More thanks.
...
From-SVN: r31942
2000-02-12 03:49:13 +00:00
Tom Tromey
28ec5077d7
interpret.cc (continue1): Use STOREA, not STOREI, to implement astore instruction.
...
* interpret.cc (continue1): Use STOREA, not STOREI, to implement
astore instruction. From Hans Boehm.
From-SVN: r31939
2000-02-11 23:24:28 +00:00