aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-03-08re GNATS gcj/162 (gcj does not initialize interfaces according to spec)Tom Tromey2-3/+8
* libjava.lang/PR162.java: Mention `PR162', not `Test', as class name. From-SVN: r32408
2000-03-07Test for PR gcj/163:Bryce McKinlay3-0/+15
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> Test for PR gcj/163: * libjava.lang/PR163.java: New file. * libjava.lang/PR163.xfail: New file. From-SVN: r32393
2000-03-07libjava.exp (test_libjava_from_javac): Removed hack for interfaces.Tom Tromey2-13/+23
* lib/libjava.exp (test_libjava_from_javac): Removed hack for interfaces. Fail if jv-scan reports a parse error. From-SVN: r32392
2000-03-07All files: Updated copyright information.Tom Tromey390-880/+750
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
2000-03-07Test for PR gcj/162:Tom Tromey3-0/+39
* libjava.lang/PR162.out: New file. * libjava.lang/PR162.java: New file. From-SVN: r32384
2000-03-07resolve.cc (_Jv_SearchMethodInClass): New function.Bryce McKinlay10-224/+772
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-07Test for PR gcj/164:Tom Tromey3-0/+13
* libjava.compile/PR164.xfail: New file. * libjava.compile/PR164.java: New file. From-SVN: r32374
2000-03-07jni.cc (MARK_NONE): New define.Tom Tromey2-50/+117
* 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. From-SVN: r32373
2000-03-06* libjava.compile/PR127.xfail: New file.Bryce McKinlay2-0/+2
From-SVN: r32357
2000-03-06re GNATS gcj/127 (gcj dumps core on method invocation on a primitive type)Bryce McKinlay2-0/+16
2000-03-06 Bryce McKinlay <bryce@albatross.co.nz> * libjava.compile/PR127.java: New file. PR 127 test case from Joerg Brunsmann. From-SVN: r32356
2000-03-06re GNATS gcj/124 (protected constructor for InvocationTargetException still ↵Tom Tromey5-5/+58
visible) * lib/libjava.exp (test_libjava): Document `shouldfail' token. (test_libjava_from_source): Handle `shouldfail' case. (test_libjava_from_javac): Likewise. Test for PR libgcj/124: * libjava.compile/PR124.java: New file. * libjava.compile/PR124.xfail: New file. From-SVN: r32353
2000-03-06re GNATS java.io/141 (StreamTokenizer doesn't scan mixed token types correctly)Anthony Green3-0/+55
2000-03-05 Anthony Green <green@redhat.com> * libjava.lang/PR141.java: New file. * libjava.lang/PR141.out: New file. For PR java.io/141. From-SVN: r32352
2000-03-06re GNATS libgcj/43 (jni.h not installed)Tom Tromey3-19/+71
Fix for PR libgcj/43: * include/Makefile.in: Rebuilt. * include/Makefile.am (include_HEADERS): New define. From-SVN: r32351
2000-03-05javaprims.h ("Java"): Remove FirstThread.Anthony Green2-1/+17
2000-03-08 Anthony Green <green@redhat.com> * gcj/javaprims.h ("Java"): Remove FirstThread. From-SVN: r32349
2000-03-05configure.host: Fix __NO_MATH_INLNES botch.Anthony Green9-27/+45
* 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. From-SVN: r32348
2000-03-05re GNATS gcj/129 (Static array length access bug in gcj)Anthony Green3-0/+21
* libjava.compile/PR129_B.java: New file. * libjava.compile/support/PR129_A.java: New file. For PR gcj/129. From-SVN: r32340
2000-03-05DatagramSocket.java (DatagramSocket(int,InetAddress)): Handle null addresses.Warren Levy2-2/+7
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)): Handle null addresses. From-SVN: r32339
2000-03-05re GNATS gcj/151 (strange result on Math.sin(1e50))Anthony Green2-1/+6
* configure.host (libgcj_flags): Define __NO_MATH_INLINES. See PR gcj/151. From-SVN: r32337
2000-03-05New test code.Anthony Green3-0/+40
From-SVN: r32336
2000-03-04configure: Rebuilt.Anthony Green4-149/+187
* configure: Rebuilt. * configure.in (ZLIBTESTSPEC): New macro. (GCTESTSPEC): New macro. (LIBGCJTESTSPEC): New macro. * libgcj-test.spec.in: New file. From-SVN: r32330
2000-03-02java-interp.h: Don't include MethodInvocation.h.Tom Tromey19-482/+582
* 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-02-29THANKS updatesTom Tromey1-1/+3
From-SVN: r32258
2000-02-29ZipOutputStream.java (closeEntry): Fixed error caused by the incorrect ↵Mo DeJong2-1/+6
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-29ZipOutputStream.java (write_entry): Fixed SIGSEV caused by use of the wrong ↵Mo DeJong2-3/+8
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-29static_inner.java: New file.Mo DeJong2-0/+23
2000-02-28 Mo DeJong <mdejong@cygnus.com> * libjava.compile/static_inner.java: New file. From-SVN: r32250
2000-02-27noclass.c: New file.Tom Tromey4-0/+34
* libjava.jni/noclass.c: New file. * libjava.jni/noclass.out: New file. * libjava.jni/noclass.java: New file. From-SVN: r32226
2000-02-27File.java (File(String, String)): For dirPath, treat an empty String the ↵Bryce McKinlay2-1/+6
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-26Minor clean up and bug fix.Anthony Green4-5/+13
From-SVN: r32196
2000-02-25jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'.Tom Tromey2-0/+9
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'. From-SVN: r32156
2000-02-25re GNATS libgcj/38 (Static initializer in DecimalFormat eventually depends ↵Bryce McKinlay2-7/+30
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-25BigInteger.java (ival): Made private.Warren Levy2-3/+9
* java/math/BigInteger.java(ival): Made private. (words): Ditto. (neg): Ditto. From-SVN: r32143
2000-02-21Forgot to commit ChangeLogAnthony Green1-0/+16
From-SVN: r32087
2000-02-21Makefile.in: Rebuilt.Anthony Green8-54/+639
* 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* boehm.cc (_Jv_AllocBytes): Clear returned memory.Tom Tromey2-1/+12
From-SVN: r32085
2000-02-19ZipEntry.java (setCrc): Fix overflow.Bryce McKinlay2-2/+7
2000-02-19 Bryce McKinlay <bryce@albatross.co.nz> * java/util/zip/ZipEntry.java (setCrc): Fix overflow. (setSize): ditto. From-SVN: r32062
2000-02-18jvm.h (_Jv_GetJavaVM): Declare.Tom Tromey5-14/+135
* 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-18register.java: New file.Tom Tromey4-0/+55
* libjava.jni/register.java: New file. * libjava.jni/register.c: New file. * libjava.jni/register.out: New file. From-SVN: r32055
2000-02-17Rotated ChangeLogsTom Tromey2-7109/+7108
From-SVN: r32043
2000-02-17re GNATS gcj/152 (Installation flaw)Tom Tromey2-1/+8
* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert. Fixes PR gcj/152. From-SVN: r32036
2000-02-17* jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.Tom Tromey2-0/+11
From-SVN: r32021
2000-02-17calls.c: New file.Tom Tromey4-0/+140
* libjava.jni/calls.c: New file. * libjava.jni/calls.out: New file. * libjava.jni/calls.java: New file. From-SVN: r32020
2000-02-16jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.Tom Tromey2-3/+34
* 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-16throwit.java: New file.Tom Tromey4-0/+68
* libjava.jni/throwit.java: New file. * libjava.jni/throwit.c: New file. * libjava.jni/throwit.out: New file. From-SVN: r32016
2000-02-16jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass.Tom Tromey2-1/+6
* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass. From-SVN: r32013
2000-02-16findclass.java: New fileTom Tromey1-0/+6
* libjava.jni/findclass.java: New file * libjava.jni/findclass.c: New file * libjava.jni/findclass.out: New file From-SVN: r32012
2000-02-16findclass.java: New fileTom Tromey3-0/+29
* libjava.jni/findclass.java: New file * libjava.jni/findclass.c: New file * libjava.jni/findclass.out: New file From-SVN: r32011
2000-02-16InterfaceDispatch.java: New file.Bryce McKinlay3-0/+435
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-16virtual.java: New file.Tom Tromey16-0/+156
* 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-16resolve.cc (ncode): Set args_raw_size.Tom Tromey4-9/+71
* 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-15* jni.cc (mangled_name): Skip leading `(' in signature.Tom Tromey2-1/+4
From-SVN: r31993