summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
* 2000-02-28 Mo DeJong <mdejong@cygnus.com>tromey2000-02-291-3/+3
| | | | | | | | * java/util/zip/ZipOutputStream.java(write_entry) : Fixed SIGSEV caused by use of the wrong instance variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32256 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-02-271-1/+1
| | | | | | | | * java/io/File.java (File(String, String)): For dirPath, treat an empty String the same as `null'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32217 138bc75d-0d04-0410-961f-82ee72b054a4
* Minor clean up and bug fix.green2000-02-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32196 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-02-251-7/+21
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32153 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/math/BigInteger.java(ival): Made private.warrenl2000-02-251-3/+3
| | | | | | | | (words): Ditto. (neg): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32143 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.green2000-02-211-4/+21
| | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32086 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-02-191-2/+2
| | | | | | | | * java/util/zip/ZipEntry.java (setCrc): Fix overflow. (setSize): ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32062 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvm.h (_Jv_GetJavaVM): Declare.tromey2000-02-181-2/+7
| | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32056 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (init_properties): set java.lang.classpathbryce2000-02-151-2/+9
| | | | | | | property. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31981 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natRuntime.cc (_load): Include library path withbryce2000-02-151-1/+3
| | | | | | | exception message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31979 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natThread.cc (dumpStack): Removed.bryce2000-02-152-10/+5
| | | | | | | * java/lang/Thread.java (dumpStack): Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31978 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natRuntime.cc (_load): On Unix, prefix library nametromey2000-02-151-3/+12
| | | | | | | with `lib' for loadLibrary. Fixes PR gcj/150. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31976 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.warrenl2000-02-141-20/+154
| | | | | | | | | | | | | | | * java/math/BigInteger.java(BigInteger(int,int,java.util.Random): New constructor. (min): Implemented. (max): Implemented. (modPow): Rewritten to not use the naive, slow, brute force approach. (isProbablePrime): Implemented. (testBit): Implemented. (flipBit): Implemented. (getLowestSetBit): Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31966 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (createTempFile): Use low bits from counter,tromey2000-02-121-1/+2
| | | | | | | not high bits. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31946 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/math/BigInteger.java(BigInteger(String, int)): New constructor.warrenl2000-02-111-24/+400
| | | | | | | | | | | | | | | | | | | | (BigInteger(String)): New constructor. (not): Rewritten using version from Kawa's BitOps class. (valueOf): New private methods from Kawa's BitOps class. (swappedOp): ditto. (bitOp): ditto. (setBitOp): ditto. (and): Implemented. (or): Implemented. (xor): Implemented. (andNot): Implemented. (clearBit): Implemented. (setBit): Implemented. (bitCount): Implemented. (toByteArray): Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31926 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (nextValue): Now synchronized.tromey2000-02-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31925 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.tromey2000-02-114-4/+84
| | | | | | | | | | | | * java/io/FileDescriptor.java (EXCL): New static field. * java/io/File.java (tmpdir): New static field. (createTempFile): New method. (nextValue): New method. * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir property. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31922 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/jni/natNativeThread.cc: New file.tromey2000-02-102-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/gcj/jni/NativeThread.java: New file. * java/lang/Thread.java (data): Now a RawData. * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv): Declare. * Makefile.in: Rebuilt. * Makefile.am (java/lang/Thread.h): New target. (ordinary_java_source_files): Added NativeThread.java. (nat_source_files): Added natNativeThread.cc. * java/lang/natThread.cc: Include <jni.h> (struct natThread): Added `jni_env' field. (_Jv_GetCurrentJNIEnv): New function. (_Jv_SetCurrentJNIEnv): Likewise. (initialize_native): Initialize jni_env. Include RawData.h. * jni.cc (ThreadGroupClass): New define. (_Jv_JNI_InvokeFunctions): New structure. (JNI_GetCreatedJavaVMs): New function. (the_vm): New global. (JNI_GetDefaultJavaVMInitArgs): New function. Include NativeThread.h. (NativeThreadClass): New define. (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1. (_Jv_JNI_DestroyJavaVM): New function. (_Jv_JNI_AttachCurrentThread): New function. (_Jv_JNI_DetachCurrentThread): New function. (_Jv_JNI_GetEnv): New function. (JNI_CreateJavaVM): New function. (_Jv_JNI_GetJavaVM): New function. (_Jv_JNIFunctions): Added entry for GetJavaVM. * include/jni.h (JavaVMAttachArgs): New structure. (JNI_EDETACHED): New define. (JNI_EVERSION): Likewise. (JavaVM): Define properly. (struct JNIInvokeInterface): New structure. (class _Jv_JavaVM): New class. (JNI_OnLoad, JNI_OnUnload): Declare. (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM, JNI_GetCreatedJavaVMs): Declare. (JavaVMInitArgs): New typedef. (JavaVMOption): Likewise. (JNI_ERR): New define. (JNI_OK): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31901 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-10 Andrew Haley <aph@cygnus.com>aph2000-02-102-4/+10
| | | | | | | | | | | | | | | | | | | | * interpret.cc: Don't include fdlibm.h. Replace #if with #ifdef throughout. Declare extern __ieee754_fmod. (continue1): Remove op_getfield, op_getstatic, op_putfield, op_putstatic insns. * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer. Search class hierarchy for superclass vtable. * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall off the end of a pointer list. * java/lang/natThread.cc (stop): Don't abort, throw an exception instead. (suspend): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31897 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natRuntime.cc (_load): Call add_library.tromey2000-02-101-0/+4
| | | | | | | (loadLibraryInternal): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31877 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Properties.java (setProperty): New method.tromey2000-02-081-79/+90
| | | | | | | (store): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31855 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Runtime.java (_load): Declare.tromey2000-02-082-28/+28
| | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31846 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Added MPN.java and BigInteger.java.warrenl2000-02-041-0/+1683
| | | | | | | | | * Makefile.in: Rebuilt. * gnu/gcj/math/MPN.java: New file. * java/math/BigInteger.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31794 138bc75d-0d04-0410-961f-82ee72b054a4
* * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBasetromey2000-02-042-3/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31790 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-04 Andrew Haley <aph@cygnus.com>aph2000-02-042-6/+90
| | | | | | | | | | * java/lang/Throwable.java (CPlusPlusDemangler): New class. (printStackTrace): Use a CPlusPlusDemangler to demangle names. * java/lang/natThrowable.cc (printRawStackTrace): Rename printStackTrace to printRawStackTrace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31785 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Calendar.java (toString): New method.tromey2000-02-039-10/+116
| | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31775 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/PipedOutputStream.java (write(byte[], int, int)): Newtromey2000-02-031-7/+10
| | | | | | | method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31774 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj/method.h (JvNumMethods): Moved from Class.h.tromey2000-01-261-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31638 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj/field.h (struct _Jv_Field): Use "jshort" as type fortromey2000-01-261-8/+8
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31621 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/natConstructor.cc (newInstance): Usetromey2000-01-213-79/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31553 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natThrowable.cc: Don't use `#pragma implementation'.tromey2000-01-191-2/+0
| | | | | | | From Bryce McKinlay. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31505 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright to reflect Cygnus purchase.tromey2000-01-19307-309/+309
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31504 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natThrowable.cc (fillInStackTrace): Return `this' eventromey2000-01-181-1/+1
| | | | | | | when backtrace can't be computed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31483 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Runtime.java (loadLibraryInternal): Declare.tromey2000-01-173-60/+71
| | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31472 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-14 Andrew Haley <aph@cygnus.com>aph2000-01-172-37/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31460 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-16 Anthony Green <green@cygnus.com>green2000-01-171-7/+4
| | | | | | | | * java/lang/StringBuffer.java (StringBuffer): Don't special case null argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31451 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-16 Jeff Sturm <jsturm@sigma6.com>tromey2000-01-161-15/+29
| | | | | | | * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31449 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',tromey2000-01-131-8/+6
| | | | | | | not system loader, as initiating loader. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31395 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor fortromey2000-01-111-1/+12
| | | | | | | HP/UX. From David Scott Urban. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31332 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-10 Jeff Sturm <jsturm@sigma6.com>tromey2000-01-103-14/+13
| | | | | | | | | | | | * 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"'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31305 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-09 Anthony Green <green@cygnus.com>green2000-01-091-16/+23
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31300 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (getClasses): Wrote.tromey2000-01-071-2/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31276 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (_getConstructors): Correctly checktromey2000-01-061-3/+3
| | | | | | | | whether method name is the init name. (getMethod): Look at accflags on method in `klass', not `this'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31258 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (getMethod): Compute offset relative totromey2000-01-062-25/+27
| | | | | | | | | | | | | | | `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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31253 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc: Include <gcj/method.h>.tromey2000-01-051-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31249 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Class.h (_getMethods): Correctly declare as private,tromey2000-01-051-2/+2
| | | | | | | not public. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31246 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Class.h (_getMethods): Declare.tromey2000-01-053-8/+131
| | | | | | | | | | | | | | | | * java/lang/Class.java (_getMethods): Declare. * java/lang/natClass.cc (getDeclaringClass): Always return NULL. (getDeclaredClasses): Always return empty array. (_getMethods): New method. (getMethods): Wrote. (getDeclaredMethod): Return `rmethod'. (finit_name): New global. (getDeclaredMethods): Check for finit_name. (_getMethods): Likewise. (getMethod): Only return public methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31245 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/natMethod.cc (get_ffi_type): Test size oftromey2000-01-051-4/+17
| | | | | | | | | jboolean and select correct ffi type on that basis. (_Jv_CallNonvirtualMethodA): Handle `void' return type. Constructor call always has `void' return type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31242 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Class.h (getSignature): Updated.tromey2000-01-053-10/+14
| | | | | | | | | | | | * java/lang/Class.java (getSignature): Updated. * java/lang/natClass.cc (getSignature): Added `is_constructor' argument. (getConstructor): Ensure constructor is public. (_getConstructors): Check for public-ness of constructor when `declared' is false, not when it is true. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31241 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesarywarrenl2000-01-041-3/+2
| | | | | | | | comment. (receive): Set the sender's address in the DatagramPacket. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31218 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud