aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2000-01-13natClassLoader.cc (_Jv_FindClass): Register `loader', not system loader, as ↵Tom Tromey2-8/+11
initiating loader. * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader', not system loader, as initiating loader. From-SVN: r31395
2000-01-11klass.out: New file.Tom Tromey3-0/+16
* libjava.lang/klass.out: New file. * libjava.lang/klass.java: New file. From-SVN: r31333
2000-01-11natSystem.cc (getpwuid_adaptor): New adaptor for HP/UX.Tom Tromey2-1/+17
* 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 Sturm4-14/+22
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 Green5-169/+202
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 Tromey2-2/+2
From-SVN: r31278
2000-01-07* java/lang/natClass.cc (getClasses): Wrote.Tom Tromey2-2/+9
From-SVN: r31276
2000-01-06natClass.cc (_getConstructors): Correctly check whether method name is the ↵Tom Tromey2-3/+9
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 Tromey3-25/+38
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 Tromey2-0/+3
From-SVN: r31249
2000-01-05Class.h (_getMethods): Correctly declare as private, not public.Tom Tromey2-2/+5
* java/lang/Class.h (_getMethods): Correctly declare as private, not public. From-SVN: r31246
2000-01-05Class.h (_getMethods): Declare.Tom Tromey4-8/+143
* java/lang/Class.h (_getMethods): Declare. * 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. From-SVN: r31245
2000-01-05natMethod.cc (get_ffi_type): Test size of jboolean and select correct ffi ↵Tom Tromey2-4/+24
type on that basis. * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of jboolean and select correct ffi type on that basis. (_Jv_CallNonvirtualMethodA): Handle `void' return type. Constructor call always has `void' return type. From-SVN: r31242
2000-01-05Class.h (getSignature): Updated.Tom Tromey4-10/+24
* java/lang/Class.h (getSignature): Updated. * 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. From-SVN: r31241
2000-01-04natPlainDatagramSocketImpl.cc (peek): Removed unnecesary comment.Warren Levy2-3/+8
* java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary comment. (receive): Set the sender's address in the DatagramPacket. From-SVN: r31218
2000-01-04[multiple changes]Tom Tromey18-227/+734
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
2000-01-03mauve.exp (mauve_compute_uses): Let user select specific tests to run.Tom Tromey2-1/+11
* libjava.mauve/mauve.exp (mauve_compute_uses): Let user select specific tests to run. From-SVN: r31183
1999-12-27Commit forgotten Thread.java patch.Bryce McKinlay1-4/+13
From-SVN: r31094
1999-12-24natObject.cc (notify): Throw message with IllegalMonitorStateException.Bryce McKinlay4-64/+108
1999-12-22 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natObject.cc (notify): Throw message with IllegalMonitorStateException. (notifyAll): Ditto. (wait): Ditto. * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag. (isInterrupted_): New function, which does clear interrupt_flag. (interrupt): Use `isInterrupted_'. * java/lang/natThread.cc (interrupt): Add comment. (join): Set `Prev' in joiner loop. Change various calls to `isInterrupted' to use `isInterrupted_'. * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait on linux. Set result to 0 on an interrupt. Test interrupted status of java Thread object directly. FLAG_INTERRUPTED: removed. (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails. (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED. (_Jv_InitThreads): Don't block SIGINT. (_Jv_ThreadWait): Don't configure SIGINT handler. From-SVN: r31082
1999-12-21* mauve-libgcj: Added java.lang.reflect.Modifier.toString12.Tom Tromey2-0/+6
From-SVN: r31061
1999-12-20Modifier.java (STRICT): New constant.Tom Tromey3-3/+16
* java/lang/reflect/Modifier.java (STRICT): New constant. (isStrict): New method. (toString): Added `strict'. From-SVN: r31040
1999-12-20Alpha Linux changes.Anthony Green3-2/+8
From-SVN: r31030
1999-12-20libgcjdata.c: New file.Anthony Green7-256/+427
1999-12-19 Anthony Green <green@cygnus.com> * libgcjdata.c: New file. * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile. * configure: Rebuilt. * configure.in (LIBDATASTARTSPEC): Force data with a known name into the program. * Makefile.in: Rebuilt. * Makefile.am: Build libgcjdata.a. * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile. * configure: Rebuilt. * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc into every program. From-SVN: r31027
1999-12-18re GNATS libgcj/111 (bug in reflection code)Tom Tromey2-0/+6
* java/lang/reflect/Method.java (toString): Call getType if required. Partial fix for PR libgcj/111. From Per Bothner. From-SVN: r31002
1999-12-17* java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.Tom Tromey2-4/+9
From-SVN: r30996
1999-12-17Boolean.java (Boolean(String)): Set Value' to false on a null String ↵Bryce McKinlay4-61/+47
constructor parameter. 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/Boolean.java (Boolean(String)): Set Value' to false on a null String constructor parameter. * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls for exception messages. BooleanClass: declare. (setOption): Use BooleanClass instead of Class.forName() for instanceof test. (bind): Cast 4th parameter of setsockopt to char *' for compatibility with older Solaris headers. * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary sprintf calls for exception messages. BooleanClass, IntegerClass: declare. (setOption): Use BooleanClass and IntegerClass, not Class.forName() for instanceof test. From-SVN: r30988
1999-12-15natSystem.cc (init_properties): Don't set user.name or user.home if ↵Tom Tromey6-232/+603
NO_GETUID defined. * java/lang/natSystem.cc (init_properties): Don't set user.name or user.home if NO_GETUID defined. Only set user.dir if getcwd exists. * include/config.h.in: Rebuilt. * acconfig.h (NO_GETUID): New define. * configure.in: Rebuilt. * configure.in: Define NO_GETUID in cross case. Check for getcwd in native case. From-SVN: r30964
1999-12-09re GNATS libgcj/117 (_Jv_PthreadCheckMonitor test is not portable.)Tom Tromey2-2/+22
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case where no recursive mutexes exist. Fixes PR libgcj/117. From-SVN: r30847
1999-12-06jvm.h: Declare many functions with __attribute__((__malloc__)).Anthony Green3-12/+23
* include/jvm.h: Declare many functions with __attribute__((__malloc__)). * gcj/javaprims.h: Ditto. From-SVN: r30794
1999-12-03Updated the thanks list.Anthony Green2-2/+19
From-SVN: r30764
1999-12-02natString.cc (equalsIgnoreCase): return false if anotherString is null.Bryce McKinlay3-5/+12
* java/lang/natString.cc (equalsIgnoreCase): return false if anotherString is null. * java/lang/Boolean.java (valueOf): return FALSE if argument is null. From-SVN: r30763
1999-12-02ServerSocket.java (ServerSocket): Bind to any interface if bindAddr is null.Bryce McKinlay2-1/+6
1999-12-02 Bryce McKinlay <bryce@albatross.co.nz> * libjava/java/net/ServerSocket.java (ServerSocket): Bind to any interface if bindAddr is null. From-SVN: r30755
1999-11-30re GNATS libgcj/98 (pthread_mutex_init in libjava/posix-threads.cc)Tom Tromey2-1/+10
* posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get mutex to initialize. Initialize `count' if required. Fixes PR libgcj/98. From-SVN: r30725
1999-11-29exception.cc: Remove prototype declarations for malloc and free.Per Bothner3-74/+276
1999-11-27 Per Bothner <per@bothner.com> * exception.cc: Remove prototype declarations for malloc and free. These clash with recent versions of glibc, which specifies `throws ()' when __cplusplus is defined. Instead, #include <stdlib.h>. From-SVN: r30709
1999-11-25prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayElementFromElementType.Tom Tromey5-51/+63
* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayElementFromElementType. (_Jv_NewPrimArray): Likewise. * java/lang/natObject.cc (clone): Use _Jv_GetArrayElementFromElementType instead of sizeof. * java/lang/natSystem.cc (arraycopy): Use _Jv_GetArrayElementFromElementType. * include/jvm.h (_Jv_GetArrayElementFromElementType): New function. From-SVN: r30655