aboutsummaryrefslogtreecommitdiff
path: root/libjava/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2000-02-10natRuntime.cc (_load): Call add_library.Tom Tromey1-0/+3
* java/lang/natRuntime.cc (_load): Call add_library. (loadLibraryInternal): Likewise. From-SVN: r31877
2000-02-10natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL.Tom Tromey1-0/+6
* gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL. Thanks to Andrew Haley. (Output_iconv::finalize): Likewise. From-SVN: r31876
2000-02-08Properties.java (setProperty): New method.Tom Tromey1-0/+5
* java/util/Properties.java (setProperty): New method. (store): New method. From-SVN: r31855
2000-02-08Runtime.java (_load): Declare.Tom Tromey1-0/+9
* 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 Tromey1-0/+25
* 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 Tromey1-0/+5
* interpret.cc (PUSHL): Don't use expression statement. (PUSHD): Likewise. (LOADL): Likewise. (STOREL): Likewise. From-SVN: r31844
2000-02-07jni.cc (add_char): Conditional on INTERPRETER.Tom Tromey1-0/+9
* 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 Levy1-0/+7
* 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 Tromey1-0/+28
* 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 Haley1-0/+7
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 Tromey1-0/+16
* 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 Tromey1-0/+5
* java/io/PipedOutputStream.java (write(byte[], int, int)): New method. From-SVN: r31774
2000-02-02java-interp.h (_Jv_JNI_conversion_call): Declare.Tom Tromey1-0/+7
* 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 Tromey1-0/+2
From-SVN: r31745
2000-02-01* include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.Tom Tromey1-0/+2
From-SVN: r31739
2000-02-01jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.Tom Tromey1-0/+9
* 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 Tromey1-0/+5
* jni.cc (_Jv_JNI_GetField): Specialize for jobject. (_Jv_JNI_GetStaticField): Likewise. From-SVN: r31735
2000-02-01prims.cc (_Jv_MallocUnchecked): New function.Tom Tromey1-0/+44
* 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 Green1-0/+5
* gnu/gcj/convert/natIconv.cc (read): Minor fixes. (write): Ditto. From-SVN: r31712
2000-01-31config.h.in: Rebuilt.Tom Tromey1-0/+18
* 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-28Makefile.in: Rebuilt.Tom Tromey1-0/+5
* Makefile.in: Rebuilt. * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP. From-SVN: r31672
2000-01-26method.h (JvNumMethods): Moved from Class.h.Tom Tromey1-0/+40
* 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 Tromey1-0/+5
* 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 Tromey1-0/+15
* interpret.cc (run): Don't call println. Don't include PrintStream.h. From-SVN: r31622
2000-01-21natConstructor.cc (newInstance): Use _Jv_CallAnyMethodA.Tom Tromey1-0/+38
* 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-20resolve.cc (StringClass): Removed.Tom Tromey1-0/+5
* resolve.cc (StringClass): Removed. * defineclass.cc (StringClass): Removed. From-SVN: r31539
2000-01-19Updated NEWS file.Bryce McKinlay1-0/+4
From-SVN: r31522
2000-01-19* interpret.cc (PC_REGISTER_ASM): Removed.Tom Tromey1-0/+2
From-SVN: r31510
2000-01-19natThrowable.cc: Don't use `#pragma implementation'.Tom Tromey1-0/+3
* 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 Tromey1-0/+4
From-SVN: r31504
2000-01-19configure: Rebuilt.Bryce McKinlay1-0/+5
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 Haley1-0/+8
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 Haley1-0/+4
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 Tromey1-0/+3
be computed. * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even when backtrace can't be computed. From-SVN: r31483
2000-01-18configure: Rebuilt.Tom Tromey1-1/+4
* configure: Rebuilt. * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call. From-SVN: r31482
2000-01-17Runtime.java (loadLibraryInternal): Declare.Tom Tromey1-0/+21
* 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-17* prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.Tom Tromey1-1/+5
From-SVN: r31467
2000-01-17natThrowable.cc: New file.Andrew Haley1-0/+30
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 Green1-0/+5
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 Sturm1-0/+4
2000-01-16 Jeff Sturm <jsturm@sigma6.com> * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF). From-SVN: r31449
2000-01-13natClassLoader.cc (_Jv_FindClass): Register `loader', not system loader, as ↵Tom Tromey1-0/+5
initiating loader. * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader', not system loader, as initiating loader. From-SVN: r31395
2000-01-11natSystem.cc (getpwuid_adaptor): New adaptor for HP/UX.Tom Tromey1-0/+5
* java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for HP/UX. From David Scott Urban. From-SVN: r31332
2000-01-10natMath.cc (pow): Cast args to `double', not `jdouble'.Jeff Sturm1-0/+9
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"'. From-SVN: r31305
2000-01-09natString.cc (init): Test for overflow condition during out of bounds check.Anthony Green1-0/+14
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. From-SVN: r31300
2000-01-07* mauve-libgcj: Don't disable ClassTest.Tom Tromey1-0/+2
From-SVN: r31278
2000-01-07* java/lang/natClass.cc (getClasses): Wrote.Tom Tromey1-0/+4
From-SVN: r31276
2000-01-06natClass.cc (_getConstructors): Correctly check whether method name is the ↵Tom Tromey1-0/+6
init name. * java/lang/natClass.cc (_getConstructors): Correctly check whether method name is the init name. (getMethod): Look at accflags on method in `klass', not `this'. From-SVN: r31258
2000-01-06natClass.cc (getMethod): Compute offset relative to `klass's methods table, ↵Tom Tromey1-0/+11
not `this's table. * 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. From-SVN: r31253
2000-01-05* java/lang/natClass.cc: Include <gcj/method.h>.Tom Tromey1-0/+2
From-SVN: r31249