aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-02-09* libjava.compile/inner_priv.java: New file.Tom Tromey2-0/+15
From-SVN: r31868
2000-02-08Properties.java (setProperty): New method.Tom Tromey2-79/+95
* java/util/Properties.java (setProperty): New method. (store): New method. From-SVN: r31855
2000-02-08Runtime.java (_load): Declare.Tom Tromey3-28/+37
* 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. From-SVN: r31846
2000-02-08jni.cc (ThrowableClass): New define.Tom Tromey2-15/+60
* 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. From-SVN: r31845
2000-02-08interpret.cc (PUSHL): Don't use expression statement.Tom Tromey2-8/+13
* interpret.cc (PUSHL): Don't use expression statement. (PUSHD): Likewise. (LOADL): Likewise. (STOREL): Likewise. From-SVN: r31844
2000-02-07instinit2.out: New file.Alexandre Petit-Bianco15-0/+330
* libjava.lang/instinit2.out: New file. * libjava.lang/instinit2.java: New file. * libjava.lang/instinit.out: New file. * libjava.lang/instinit.java: New file. * libjava.lang/anonarray2.out: New file. * libjava.lang/anonarray2.java: New file. * libjava.lang/anonarray.out: New file. * libjava.lang/anonarray.java: New file. * libjava.lang/nested_with_ctor.out: New file. * libjava.lang/nested_with_ctor.java: New file. * libjava.lang/anfi.out: New file. * libjava.lang/anfi.java: New file. * libjava.lang/stub.out: New file. * libjava.lang/stub.java: New file. From-SVN: r31841
2000-02-07jni.cc (add_char): Conditional on INTERPRETER.Tom Tromey3-20/+28
* 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. From-SVN: r31839
2000-02-04Added credits for Per Bothner's work on MPN.java and IntNum.java (forWarren Levy1-2/+4
BigInteger). From-SVN: r31795
2000-02-04Makefile.am: Added MPN.java and BigInteger.java.Warren Levy5-7/+2437
* Makefile.am: Added MPN.java and BigInteger.java. * Makefile.in: Rebuilt. * gnu/gcj/math/MPN.java: New file. * java/math/BigInteger.java: New file. From-SVN: r31794
2000-02-04defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase pointers.Tom Tromey8-58/+312
* 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. From-SVN: r31790
2000-02-04Throwable.java (CPlusPlusDemangler): New class.Andrew Haley3-6/+97
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. From-SVN: r31785
2000-02-03Calendar.java (toString): New method.Tom Tromey10-10/+132
* 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. From-SVN: r31775
2000-02-03PipedOutputStream.java (write(byte[], int, int)): New method.Tom Tromey2-7/+15
* java/io/PipedOutputStream.java (write(byte[], int, int)): New method. From-SVN: r31774
2000-02-02java-interp.h (_Jv_JNI_conversion_call): Declare.Tom Tromey5-13/+37
* 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>. From-SVN: r31746
2000-02-02* include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.Tom Tromey2-10/+12
From-SVN: r31745
2000-02-01* include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.Tom Tromey2-5/+858
From-SVN: r31739
2000-02-01jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.Tom Tromey2-44/+43
* 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. From-SVN: r31736
2000-02-01jni.cc (_Jv_JNI_GetField): Specialize for jobject.Tom Tromey2-1/+21
* jni.cc (_Jv_JNI_GetField): Specialize for jobject. (_Jv_JNI_GetStaticField): Likewise. From-SVN: r31735
2000-02-01prims.cc (_Jv_MallocUnchecked): New function.Tom Tromey5-46/+333
* 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. From-SVN: r31730
2000-01-31natIconv.cc (read): Minor fixes.Anthony Green2-5/+16
* gnu/gcj/convert/natIconv.cc (read): Minor fixes. (write): Ditto. From-SVN: r31712
2000-01-31config.h.in: Rebuilt.Tom Tromey12-55/+295
* 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. From-SVN: r31708
2000-01-30final_inner.java: New file.Alexandre Petit-Bianco3-0/+26
* libjava.lang/final_inner.java: New file. * libjava.lang/final_inner.out: Likewise. From-SVN: r31704
2000-01-28Makefile.in: Rebuilt.Tom Tromey3-2/+7
* Makefile.in: Rebuilt. * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP. From-SVN: r31672
2000-01-26method.h (JvNumMethods): Moved from Class.h.Tom Tromey7-92/+367
* 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. From-SVN: r31638
2000-01-26resolve.cc (get_ffi_type_from_signature): Handle case where boolean is an int.Tom Tromey2-0/+15
* resolve.cc (get_ffi_type_from_signature): Handle case where boolean is an int. From-SVN: r31637
2000-01-26interpret.cc (run): Don't call println.Tom Tromey2-4/+15
* interpret.cc (run): Don't call println. Don't include PrintStream.h. From-SVN: r31622
2000-01-26field.h (struct _Jv_Field): Use "jshort" as type for nameIndex.Tom Tromey3-11/+13
* 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. From-SVN: r31621
2000-01-22config.h.in: Rebuilt.Anthony Green4-48/+92
* include/config.h.in: Rebuilt. * acconfig.h: Add undef for __NO_MATH_INLINES. * configure: Rebuilt. * configure.in: Add test for `g++ -O2 -ffloat-store' bug. From-SVN: r31566
2000-01-21natConstructor.cc (newInstance): Use _Jv_CallAnyMethodA.Tom Tromey10-532/+1669
* 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-21* libjava.compile/BlankFinal.java: New file.Tom Tromey2-0/+20
From-SVN: r31552
2000-01-20resolve.cc (StringClass): Removed.Tom Tromey3-6/+7
* resolve.cc (StringClass): Removed. * defineclass.cc (StringClass): Removed. From-SVN: r31539
2000-01-19Updated NEWS file.Bryce McKinlay2-0/+17
From-SVN: r31522
2000-01-19anon.java, [...]: New files.Alexandre Petit-Bianco44-0/+804
2000-01-19 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.lang/anon.java, libjava.lang/anon2.java, libjava.lang/anon3.java, libjava.lang/anon4.java, libjava.lang/direct_read.java, libjava.lang/direct_write.java, libjava.lang/indirect.java, libjava.lang/indirect_read.java, libjava.lang/indirect_write.java, libjava.lang/inner1.java, libjava.lang/inner2.java, libjava.lang/inner3.java, libjava.lang/inner4.java, libjava.lang/inner_array.java, libjava.lang/multiple_finit.java, libjava.lang/private_direct_read.java, libjava.lang/private_direct_write.java, libjava.lang/private_indirect_read.java, libjava.lang/private_indirect_write.java, libjava.lang/search_outer.java, libjava.lang/tmi.java, libjava.lang/tp.java, libjava.lang/update_outer.java: New files. From-SVN: r31511
2000-01-19* interpret.cc (PC_REGISTER_ASM): Removed.Tom Tromey2-10/+6
From-SVN: r31510
2000-01-19natThrowable.cc: Don't use `#pragma implementation'.Tom Tromey3-16/+49
* java/lang/natThrowable.cc: Don't use `#pragma implementation'. From Bryce McKinlay. From-SVN: r31505
2000-01-19* All files: Updated copyright to reflect Cygnus purchase.Tom Tromey380-382/+386
From-SVN: r31504
2000-01-19* libjava.compile/inner_pub.java: New file.Tom Tromey2-0/+15
From-SVN: r31503
2000-01-19configure: Rebuilt.Bryce McKinlay3-159/+168
2000-01-18 Bryce McKinlay <bryce@albatross.co.nz> * configure: Rebuilt. * configure.in: Recognize --disable-interpreter. From-SVN: r31496
2000-01-18name-finder.cc (lookup): Check for dladdr function.Andrew Haley6-118/+179
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. From-SVN: r31487
2000-01-18prims.cc (_Jv_RunMain): Set the name of this executable.Andrew Haley2-0/+10
2000-01-17 Andrew Haley <aph@cygnus.com> * prims.cc (_Jv_RunMain): Set the name of this executable. From-SVN: r31486
2000-01-18natThrowable.cc (fillInStackTrace): Return `this' even when backtrace can't ↵Tom Tromey2-1/+4
be computed. * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even when backtrace can't be computed. From-SVN: r31483
2000-01-18configure: Rebuilt.Tom Tromey3-4/+7
* configure: Rebuilt. * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call. From-SVN: r31482
2000-01-17Runtime.java (loadLibraryInternal): Declare.Tom Tromey14-897/+535
* 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). (INCLUDES): Added $(INCLTDL).b (libgcj_la_DEPENDENCIES): Added $(LIBLTDL). (libgcj_la_LIBADD): Likewise. * aclocal.m4, configure: Rebuilt. * configure.in: Added libltdl support. From-SVN: r31472
2000-01-17Initial revisionTom Tromey13-0/+7279
From-SVN: r31468
2000-01-17* prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.Tom Tromey2-3/+7
From-SVN: r31467
2000-01-17natThrowable.cc: New file.Andrew Haley13-161/+731
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. From-SVN: r31460
2000-01-17StringBuffer.java (StringBuffer): Don't special case null argument.Anthony Green2-7/+9
2000-01-16 Anthony Green <green@cygnus.com> * java/lang/StringBuffer.java (StringBuffer): Don't special case null argument. From-SVN: r31451
2000-01-16StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).Jeff Sturm2-15/+33
2000-01-16 Jeff Sturm <jsturm@sigma6.com> * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF). From-SVN: r31449
2000-01-16*** empty log message ***Anthony Green5-0/+69
From-SVN: r31448
2000-01-16pr83.out: New file.Anthony Green5-0/+74
* libjava.lang/pr83.out: New file. * libjava.lang/pr83.java: New file. * libjava.lang/pr109.out: New file. * libjava.lang/pr109.java: New file. From-SVN: r31446