OSDN Git Service

* verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index e5dbc1f..0afaa10 100644 (file)
@@ -1,3 +1,207 @@
+2001-11-18  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
+       message.
+       (_Jv_BytecodeVerifier::pop64): Likewise.
+       (_Jv_BytecodeVerifier::pop32): Likewise.
+       (_Jv_BytecodeVerifier::pop_raw): Likewise.
+       (_Jv_BytecodeVerifier::pop_type): Promote the match type.
+       (type::set_initialized): Only modify uninitialized types.
+       (type::set_uninitialized): Fix shadowing bug.  Simplify code.
+
+       * verify.cc: Include StringBuffer.h.
+       (verify_fail): Added pc argument.  Use StringBuffer to construct
+       exception message.
+       (_Jv_BytecodeVerifier::verify_instructions_0): Put PC into error
+       message.
+       (_Jv_BytecodeVerifier::check_return_type): Likewise.
+       (_Jv_BytecodeVerifier::handle_field_or_method): Likewise.
+       (_Jv_BytecodeVerifier::check_constant): Likewise.
+       (_Jv_BytecodeVerifier::check_class_constant): Likewise.
+       (_Jv_BytecodeVerifier::check_pool_index): Likewise.
+       (_Jv_BytecodeVerifier::get_variable): Likewise.
+       (_Jv_BytecodeVerifier::branch_prepass): Likewise.  Also, correctly
+       check exception handler endpoint.
+       (_Jv_BytecodeVerifier::verify_instructions_0): Correctly handle
+       wide arguments to current method.
+       (_Jv_BytecodeVerifier::check_wide_constant): New method.
+       (_Jv_BytecodeVerifier::verify_instructions_0) [op_ldc2_w]: Use
+       it.
+
+2001-11-17  Anthony Green  <green@redhat.com>
+
+       * jni.cc (unwrap): Fix test for wrapped objects.
+
+2001-11-16  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
+       case where field has primitive type.
+
+       * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
+       method.
+       (type::compatible): Use it.
+       (type::merge): Likewise.
+       (type::promote): Return a `type&'.
+       (get_one_type): Promote return value.
+
+       Re-merge with Classpath, from Brian Jones:
+       * java/lang/Integer.java (getInteger): Attempt to decode the value
+       of the system property instead of the name of the system property.
+       (parseInt): Throw NumberFormatException explicitly in the case of
+       a null argument in keeping with JDK 1.3.
+
+2001-11-16  Mark Wielaard  <mark@klomp.org>
+
+       * java/util/Timer.java (TaskQueue.isStopped): Remove method.
+       (Scheduler.run): Try to re-schedule task and ignore exception if
+       queue has been stopped.
+
+2001-11-15  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
+       (type::merge): Likewise.
+
+2001-11-14  Hans Boehm <Hans_Boehm@hp.com>
+
+       * java/lang/natString.cc: correct argument order for
+       _Jv_AllocPtrFreeObj
+
+2001-11-14  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
+       [op_dup_x2]: Likewise.
+       [op_dup2_x1]: Likewise.
+       [op_dup2_x2]: Likewise.
+       (branch_prepass): Added `op_newarray' case.  Updated unrecognized
+       instruction error.
+       (verify_instructions_0): Updated unrecognized instruction error.
+
+       * java/lang/reflect/Constructor.java (toString): Use more
+       efficient form of Modifier.toString().
+
+       Re-merges with Classpath, from various people:
+       * java/lang/reflect/Modifier.java: Reindented.
+       (toString): Only trim trailing space if text was added to
+       StringBuffer.
+       * java/lang/reflect/ReflectPermission: Reindented.
+
+       Re-merges with Classpath, from various people:
+       * java/lang/Double.java (parseDouble): Fixed ordering of
+       modifiers.
+       * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
+       * java/lang/reflect/Member.java: Reindented.
+       * java/util/ConcurrentModificationException.java: Javadoc
+       updates.
+       * java/util/EmptyStackException.java: Likewise.
+       * java/util/NoSuchElementException.java: Likewise.
+
+2001-11-13  Tom Tromey  <tromey@redhat.com>
+
+       Fix for PR libgcj/4859:
+       * java/util/Timer.java (TaskQueue.isStopped): New method.
+       (Scheduler.run): Don't re-schedule task if queue has been
+       stopped.
+
+2001-11-07  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
+       * jni.cc: Include JNIWeakRef.h.
+       (unwrap): New function.
+       (_Jv_JNI_DefineClass): Use it.
+       (_Jv_JNI_GetSuperclass): Likewise.
+       (_Jv_JNI_IsAssignableFrom): Likewise.
+       (_Jv_JNI_Throw): Likewise.
+       (_Jv_JNI_ThrowNew): Likewise.
+       (_Jv_JNI_IsSameObject): Likewise.
+       (_Jv_JNI_AllocObject): Likewise.
+       (_Jv_JNI_GetObjectClass): Likewise.
+       (_Jv_JNI_IsInstanceOf): Likewise.
+       (_Jv_JNI_GetAnyMethodID): Likewise.
+       (array_from_valist): Likewise.
+       (_Jv_JNI_CallAnyMethodV): Likewise.
+       (_Jv_JNI_CallAnyMethodA): Likewise.
+       (_Jv_JNI_CallAnyVoidMethodV): Likewise.
+       (_Jv_JNI_CallAnyVoidMethodA): Likewise.
+       (_Jv_JNI_CallStaticMethodV): Likewise.
+       (_Jv_JNI_CallStaticMethod): Likewise.
+       (_Jv_JNI_CallStaticMethodA): Likewise.
+       (_Jv_JNI_NewObjectV): Likewise.
+       (_Jv_JNI_NewObject): Likewise.
+       (_Jv_JNI_NewObjectA): Likewise.
+       (_Jv_JNI_GetField): Likewise.
+       (_Jv_JNI_SetField): Likewise.
+       (_Jv_JNI_GetAnyFieldID): Likewise.
+       (_Jv_JNI_SetStaticField): Likewise.
+       (_Jv_JNI_GetStringLength): Likewise.
+       (_Jv_JNI_GetStringChars): Likewise.
+       (_Jv_JNI_ReleaseStringChars): Likewise.
+       (_Jv_JNI_GetStringUTFLength): Likewise
+       (_Jv_JNI_GetStringUTFChars): Likewise.
+       (_Jv_JNI_GetStringRegion): Likewise.
+       (_Jv_JNI_GetStringUTFRegion): Likewise.
+       (_Jv_JNI_GetStringCritical): Likewise.
+       (_Jv_JNI_GetArrayLength): Likewise.
+       (_Jv_JNI_NewObjectArray): Likewise.
+       (_Jv_JNI_GetObjectArrayElement): Likewise.
+       (_Jv_JNI_SetObjectArrayElement): Likewise.
+       (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
+       (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
+       (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
+       (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
+       (_Jv_JNI_MonitorEnter): Likewise.
+       (_Jv_JNI_MonitorExit): Likewise.
+       (_Jv_JNI_ToReflectedField): Likewise.
+       (_Jv_JNI_FromReflectedField): Likewise.
+       (_Jv_JNI_ToReflectedMethod): Likewise.
+       (_Jv_JNI_FromReflectedMethod): Likewise.
+       (_Jv_JNI_NewGlobalRef): Likewise.
+       (_Jv_JNI_DeleteGlobalRef): Likewise.
+       (_Jv_JNI_DeleteLocalRef): Likewise.
+       (_Jv_JNI_NewLocalRef): Likewise.
+       (_Jv_JNI_NewWeakGlobalRef): New function.
+       (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
+       (_Jv_JNIFunctions): Updated for new methods.
+       (NOT_IMPL): Removed.
+       * gnu/gcj/runtime/JNIWeakRef.java: New file.
+
+2001-11-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
+
+2001-11-09  Jeff Sturm  <jsturm@one-point.com>
+
+       * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
+
+2001-11-07  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (skip_padding): Fail if padding byte is nonzero.
+
+2001-11-06  Tom Tromey  <tromey@redhat.com>
+
+       * HACKING: Make people commit their own patches.
+
+2001-11-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
+       * verify.cc: New file.
+       * include/java-interp.h (_Jv_count_arguments): Declare.
+       (_Jv_VerifyMethod): Likewise.
+       (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
+       (class _Jv_InterpException): Likewise.
+       * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
+       No longer static.  Updated callers.
+       * defineclass.cc (int_bits_to_float): Removed.
+       (long_bits_to_double): Likewise.
+       (prepare_pool_entry): Updated.
+       (handleCodeAttribute): Verify method (commented out for now).
+
+2001-11-05  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/util/ResourceBundle.java (class Security): Now static.
+
 2001-11-04  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        * java/util/ResourceBundle.java (getClassContext): Removed.