1. 05 Mar, 2007 1 commit
    • natVMProxy.cc (ncode_closure.meth): Delete. · a29114a3
      2007-03-05  Andrew Haley  <aph@redhat.com>
      
      	* java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
      	(generateProxyClass): Don't pass method to ncode.
      	(run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
      	* java/lang/reflect/Method.h: Rebuild.
      	* java/lang/reflect/Method.java (internalGetParameterTypes,
      	internalGetExceptionTypes): New methods.
      	* headers.txt (class java/lang/reflect/Method): Declare
      	_Jv_GetReflectedMethod.  Be its friend.
      	* java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
      	* java/lang/Class.h: Declare it.  Be its friend.
      
      From-SVN: r122554
      Andrew Haley committed
  2. 01 Feb, 2007 1 commit
    • LogManager.java (loggers): Genericized. · 4d2446d9
      	* java/util/logging/LogManager.java (loggers): Genericized.
      	(addLogger): Merged.
      	(findAncestor): Likewise.
      	(getLogger): Likewise.
      	(getLoggerNames): Genericized.
      	(reset): Merged.
      	(getLevelProperty): Likewise.
      	* java/lang/reflect/Method.java (getDeclaringClass): Genericized.
      	* java/lang/reflect/Constructor.java (getParameterTypes):
      	Genericized.
      	(getExceptionTypes): Likewise.
      	(newInstance): Likewise.
      	* java/lang/reflect/Array.java (newInstance): Genericized.
      	* java/lang/Object.java (getClass): Genericized.
      	* java/nio/charset/spi/CharsetProvider.java (charsets):
      	Genericized.
      	* java/text/Collator.java: Implement Comparable<Object>.
      
      From-SVN: r121473
      Tom Tromey committed
  3. 09 Jan, 2007 1 commit
  4. 24 May, 2006 1 commit
    • re PR libgcj/27729 (Field, Method and Constructor need isSynthetic() implemetation) · 5aca4c41
      gcc/java:
      	PR libgcj/27729:
      	* jcf.h (ACC_INVISIBLE): Changed value.
      libjava:
      	PR libgcj/27729:
      	* java/lang/reflect/natField.cc (getAddr): Added parens.
      	* java/lang/reflect/natConstructor.cc (getModifiersInternal):
      	Renamed.  Don't mask flags.
      	* java/lang/reflect/Constructor.java (CONSTRUCTOR_MODIFIERS): New
      	constant.
      	(getModifiersInternal): Renamed.
      	(getModifiers): Rewrote.
      	(isSynthetic, isVarArgs): New methods.
      	(hashCode): Rewrote.
      	(addTypeParameters, toGenericString): New methods.
      	(getTypeParameters): Rewrote.
      	(getSignature): New method.
      	(getGenericParameterTypes, getGenericExceptionTypes): Likewise.
      	* java/lang/reflect/natMethod.cc (getModifiersInternal):
      	Renamed.  Don't mask flags.
      	* java/lang/reflect/natField.cc (getModifiersInternal): Renamed.
      	Don't mask flags.
      	* java/lang/reflect/Modifier.java (BRIDGE, VARARGS, SYNTHETIC,
      	ENUM): New constants.
      	(INVISIBLE): Changed value.
      	* java/lang/reflect/Method.java: Mostly merged with Classpath.
      	(getModifiersInternal): Renamed.
      	(getModifiers): Rewrote.
      	(isBridge, isSynthetic, isVarArgs): New methods.
      	(toGenericString): Likewise.
      	(getTypeParameters): Likewise.
      	(getSignature): Likewise.
      	(getGenericExceptionTypes, getGenericParameterTypes,
      	getGenericReturnType): Likewise.
      	(METHOD_MODIFIERS): New constant.
      	* java/lang/reflect/Field.java: Mostly merged with Classpath.
      	Added javadoc everywhere.
      	(getModifiersInternal): Renamed.
      	(getModifiers, isSynthetic, isEnumConstant): Rewrote.
      	(toGenericString): New method.
      	(getGenericType, getSignature): Likewise.
      	(FIELD_MODIFIERS): New constant.
      
      From-SVN: r114046
      Tom Tromey committed
  5. 18 May, 2006 1 commit
    • Imported GNU Classpath 0.90 · 4f9533c7
             Imported GNU Classpath 0.90
             * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
      
             * sources.am: Regenerated.
             * gcj/javaprims.h: Regenerated.
             * Makefile.in: Regenerated.
             * gcj/Makefile.in: Regenerated.
             * include/Makefile.in: Regenerated.
             * testsuite/Makefile.in: Regenerated.
      
             * gnu/java/lang/VMInstrumentationImpl.java: New override.
             * gnu/java/net/local/LocalSocketImpl.java: Likewise.
             * gnu/classpath/jdwp/VMMethod.java: Likewise.
             * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
             interface.
             * java/lang/Thread.java: Add UncaughtExceptionHandler.
             * java/lang/reflect/Method.java: Implements GenericDeclaration and
             isSynthetic(),
             * java/lang/reflect/Field.java: Likewise.
             * java/lang/reflect/Constructor.java
             * java/lang/Class.java: Implements Type, GenericDeclaration,
             getSimpleName() and getEnclosing*() methods.
             * java/lang/Class.h: Add new public methods.
             * java/lang/Math.java: Add signum(), ulp() and log10().
             * java/lang/natMath.cc (log10): New function.
             * java/security/VMSecureRandom.java: New override.
             * java/util/logging/Logger.java: Updated to latest classpath
             version.
             * java/util/logging/LogManager.java: New override.
      
      From-SVN: r113887
      Mark Wielaard committed
  6. 25 Oct, 2003 1 commit
  7. 05 Aug, 2003 1 commit
    • Method.java: Updated status comment. · 0d4d2279
      	* java/lang/reflect/Method.java: Updated status comment.
      	Imported javadoc from Classpath and re-ordered methods.
      	* java/lang/reflect/Constructor.java: Reindented.  Updated
      	status comment.  Imported javadoc from Classpath and re-ordered
      	methods.
      
      From-SVN: r70184
      Tom Tromey committed
  8. 24 Aug, 2001 1 commit
    • Field.java (toString): Use Method.appendClassName. · 224b7b7b
      	* java/lang/reflect/Field.java (toString): Use
      	Method.appendClassName.
      	* java/lang/reflect/Constructor.java (toString): Use
      	Method.appendClassName.
      	* java/lang/reflect/Method.java: Reindented.
      	(appendClassName): New method.
      	(toString): Use it.
      	* defineclass.cc (handleMethod ): Initialize `throws' field of
      	method.
      	(read_one_method_attribute): Handle Exceptions attribute.
      	* java/lang/reflect/natMethod.cc (ClassClass): Removed.
      	(ObjectClass): Removed.
      	(getType): Compute `exception_types'.
      	* java/lang/Class.h (struct _Jv_Method): Added `throws' field.
      
      From-SVN: r45153
      Tom Tromey committed
  9. 22 Mar, 2001 1 commit
  10. 06 Sep, 2000 1 commit
  11. 08 Aug, 2000 1 commit
  12. 07 Aug, 2000 1 commit
  13. 07 Mar, 2000 1 commit
  14. 02 Mar, 2000 1 commit
    • java-interp.h: Don't include MethodInvocation.h. · b099f07d
      	* 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
      Tom Tromey committed
  15. 19 Jan, 2000 1 commit
  16. 04 Jan, 2000 1 commit
    • [multiple changes] · 0f918fea
      2000-01-04  Tom Tromey  <tromey@cygnus.com>
      
      	* java/lang/reflect/natConstructor.cc (newInstance): Pass
      	declaring class as return_type argument to
      	_Jv_CallNonvirtualMethodA.
      	* java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
      	constructor case, create object and use it as `this' argument.
      	* java/lang/Class.h (_getConstructors): Declare.
      	(_getFields): Declare.
      	* java/lang/Class.java (getConstructors): Wrote.
      	(_getConstructors): New native method.
      	(getDeclaredConstructors): Wrote.
      	(_getFields): Declare new native method.
      	* java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
      	incorrect comment.
      	(getMethod): Work correctly when class is primitive.
      	(getDeclaredMethods): Likewise.  Compute offset using `method',
      	not `mptr'.
      	(getDeclaredMethod): Likewise.
      	(getConstructor): Wrote.
      	(ConstructorClass): New define.
      	(getDeclaredConstructor): Wrote.
      	(_getConstructors): New method.
      	(_getFields): New method.
      	(getFields): Wrote.
      
      	* Makefile.in: Rebuilt.
      	* Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
      
      	* prims.cc: Remove `#pragma implementation'.
      	* gcj/array.h: Remove `#pragma interface'.
      
      	* prims.cc (_Jv_equaln): New function.
      	* java/lang/Class.java (getSignature): Declare.
      	* resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
      	* java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
      	resolve.cc.
      	(getSignature): New method.
      	(getDeclaredMethod): Wrote.
      	(getMethod): Wrote.
      	Include StringBuffer.h.
      	* java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
      	as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
      	a friend.
      	(getSignature): Declare.
      	* include/jvm.h (_Jv_GetTypesFromSignature): Declare.
      	(_Jv_equaln): Declare.
      	(_Jv_CallNonvirtualMethodA): Declare.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (nat_source_files): Added natConstructor.cc.
      	(java/lang/reflect/Constructor.h): New target.
      	* java/lang/reflect/natConstructor.cc: New file.
      	* java/lang/reflect/Constructor.java (newInstance): Now native.
      	(declaringClass): Renamed from decl_class.
      	(offset): Renamed from index.
      	(getType): New native method.
      	(getModifiers): Now native.
      	(getParameterTypes): Call getType if required.
      	(hashCode): Include hash code from declaring class.
      	(modifiers): Removed.
      	(toString): Call getType if required.
      	* gcj/method.h (_Jv_FromReflectedConstructor): New function.
      	* java/lang/reflect/natMethod.cc (hack_call): New method.
      	Removed `#if 0' around FFI code.
      	Include <gnu/gcj/RawData.h>.
      	(invoke): Use _Jv_CallNonvirtualMethodA.  Throw
      	IllegalArgumentException when argument object and class disagree.
      	(_Jv_GetTypesFromSignature): New function.
      	(getType): Use it.
      	(ObjectClass): New define.
      	(_Jv_CallNonvirtualMethodA): New function.
      	* java/lang/reflect/Method.java (hack_trampoline): New method.
      	(hack_call): New native method.
      
      1999-12-21  Per Bothner  <per@bothner.com>
      
      	* java/lang/natClass.cc (getDeclaredMethods): Correctly compute
      	offset in new Method.
      
      From-SVN: r31199
      Tom Tromey committed
  17. 20 Dec, 1999 1 commit
  18. 18 Dec, 1999 1 commit
  19. 07 Apr, 1999 1 commit