aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-10-09[multiple changes]Tom Tromey3-244/+269
2000-10-09 Alexandre Oliva <aoliva@redhat.com> * configure.in (GCJ): Avoid bogus error message when looking for (and not finding) gcj in the build tree. * configure: Rebuilt. 2000-10-09 Tom Tromey <tromey@cygnus.com> * configure: Rebuilt. * configure.in: Include sys/types.h when checking for socklen_t. From Arno J. Klaassen. From-SVN: r36811
2000-10-09New test codeAnthony Green2-0/+15
From-SVN: r36796
2000-10-09updateBryce McKinlay1-3/+3
From-SVN: r36795
2000-10-09re GNATS libgcj/341 (Throwable.printStackTrace() isn't working)Bryce McKinlay3-4/+12
2000-10-09 Bryce McKinlay <bryce@albatross.co.nz> * include/jvm.h: Enable __builtin_expect(). * name-finder.cc (lookup): Don't trust dladdr() if the address is from the main program. Fix for PR libgcj/341. From-SVN: r36794
2000-10-07* java/util/Properties.java: Merged with Classpath version.Tom Tromey2-366/+465
From-SVN: r36775
2000-10-06Rebuilt Makefile.insTom Tromey4-72/+80
From-SVN: r36741
2000-10-06natField.cc (BooleanClass): Don't define.Tom Tromey21-120/+116
* java/lang/reflect/natField.cc (BooleanClass): Don't define. * java/lang/reflect/natArray.cc (BooleanClass): Don't define. * java/lang/Class.h (Object): Added `class$' field. * java/lang/Object.h (Object): Added `class$' field. * defineclass.cc (ClassClass): Use `class$' form. (ClassObject): Likewise. * resolve.cc (ClassObject): Use `class$' form. (ObjectClass): Likewise. * interpret.cc (ClassError): Removed. * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use `class$' form. (IntegerClass): Likewise. * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$' form. * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form. (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass, SerializableClass): Likewise. Include Serializable.h, Cloneable.h. * java/lang/natSystem.cc (SystemClass): Removed. (init_properties): Use `class$' form. * java/lang/natObject.cc (CloneableClass): Removed. (clone): Use `class$' form. * java/lang/natClass.cc (CloneableClass): Use `class$' form. (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass, ConstructorClass): Likewise. * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form. (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass, IntegerClass, LongClass, FloatClass, DoubleClass): Likewise. * java/io/natObjectInputStream.cc (ObjectClass): Use `class$' form. (ClassClass): Likewise. * include/jvm.h (StringClass): Use `class$' form. * prims.cc (ObjectClass): Removed. (_Jv_RunMain): Use `class$' form. (_Jv_AllocObject): Likewise. * jni.cc (ClassClass): Use `class$' form. (ThrowableClass): Likewise. (ObjectClass): Likewise. (MethodClass): Likewise. (ThreadGroupClass): Likewise. (NativeThreadClass): Likewise. * boehm.cc (ObjectClass): Removed. (ClassClass): Removed. (_Jv_MarkObj): Use `class$' form. * gcj/field.h (JvFieldIsRef): Use `class$' form. Include RawData.h. From-SVN: r36740
2000-10-05Makefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java.Warren Levy16-204/+194
* Makefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java. * Makefile.in: Rebuilt. * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io namespace. * java/io/ObjectInputStream.java (processResolution): Fixed typo in method name. (processResolution): Handle readResolve method via reflection with removal of Resolvable interface. * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace method via reflection with removal of Replaceable interface. * java/io/Replaceable.java: Removed. * java/io/Resolvable.java: Removed. * java/security/Key.java (serialVersionUID): New field. * java/security/Provider.java (serialVersionUID): New field. * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): New field. * java/security/interfaces/DSAPublicKey.java (serialVersionUID): New field. * java/sql/DataTruncation.java (serialVersionUID): New field. * java/sql/SQLException.java (serialVersionUID): New field. * java/sql/SQLWarning.java (serialVersionUID): New field. * java/util/Date.java (serialVersionUID): New field. (millis): Made transient. (readObject): New method. (writeObject): New method. Serialization mods. Note: The interfaces java.io.Replaceable and java.io.Resolvable were only temporary additions to JDK 1.2 beta versions and were not included in the JDK 1.2 final. The Serialization spec instructs how to deal with their methods (via reflection). From-SVN: r36736
2000-10-05* gnu/gcj/convert/natIconv.cc (init): Terminate buffer.Tom Tromey2-2/+8
From-SVN: r36733
2000-10-03Updated ChangeLog to reflect patch creditTom Tromey1-3/+4
From-SVN: r36702
2000-10-02updateBryce McKinlay1-0/+26
From-SVN: r36689
2000-10-02prims.cc (_Jv_argv, _Jv_argc): New fields.Bryce McKinlay21-12/+1266
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz> * prims.cc (_Jv_argv, _Jv_argc): New fields. (JvRunMain): Set _Jv_argv and _Jv_argc. * java/awt/Component.java: Minor fixes. * java/awt/Image.java (UndefinedProperty): Initialize final field. * java/awt/Toolkit.java (systemEventQueue): Removed. (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit". * java/awt/Window.java (getToolkit): Don't call super. * java/awt/image/BufferedImage.java: Fix definate assignment errors. * java/awt/peer/ContainerPeer.java (insets): Remove unused method. * gnu/awt/gtk/GtkComponentPeer.java: New file. * gnu/awt/gtk/GtkContainerPeer.java: New file. * gnu/awt/gtk/GtkFramePeer.java: New file. * gnu/awt/gtk/GtkMainThread.java: New file. * gnu/awt/gtk/GtkToolkit.java: New file. * gnu/awt/gtk/GtkWindowPeer.java: New file. * gnu/awt/gtk/gtkcommon.cc: New file. * gnu/awt/gtk/gtkcommon.h: New file. * gnu/awt/gtk/natGtkComponentPeer.cc: New file. * gnu/awt/gtk/natGtkContainerPeer.cc: New file. * gnu/awt/gtk/natGtkFramePeer.cc: New file. * gnu/awt/gtk/natGtkMainThread.cc: New file. * gnu/awt/gtk/natGtkToolkit.cc: New file. * gnu/awt/gtk/natGtkWindowPeer.cc: New file. From-SVN: r36688
2000-09-30posix-threads.cc (_Jv_CondWait): Check to see if we are interrupted before ↵Tom Tromey2-12/+17
modifying the cv's wait set. 2000-09-30 Tom Tromey <tromey@cygnus.com> * posix-threads.cc (_Jv_CondWait): Check to see if we are interrupted before modifying the cv's wait set. From-SVN: r36680
2000-09-30Implement bitmap descriptor based marking for Boehm GC.Hans Boehm11-226/+412
2000-09-30 Hans Boehm <boehm@acm.org> Bryce McKinlay <bryce@albatross.co.nz> Implement bitmap descriptor based marking for Boehm GC. * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used. * configure: Rebuilt. * libgcj.spec.in: Pass JC1GCSPEC to jc1. * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline method get_finalizer(). (struct _Jv_ArrayVTable): Ditto. Declare method array with NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1. (_Jv_AllocObj): Add new jclass parameter. (_Jv_AllocArray): Ditto. (_Jv_BuildGCDescr): New prototype. * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use get_finalizer() instead of direct finalizer vtable offset. (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass `klass' to _Jv_AllocArray. Don't set the new array's vtable. (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass `klass' to _Jv_AllocObj. Don't set the new array's vtable. * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines. (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE. (_Jv_DetermineVTableIndex): Ditto. (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable calculations to account for new gc_descr field. * boehm.cc: #include gc_gcj.h. (obj_kind_x, obj_free_list): `#if 0'-ed away. (_Jv_MarkObj): Check that vtable doesn't point to a cleared object. New commentary from HB. Mark the classes vtable. (_Jv_MarkArray): Check that vtable doesn't point to a cleared object. (GC_DEFAULT_DESCR): New #define. (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now. (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC (). (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and scan conservativly if size is less than min_heap_addr. Set vtable pointer of new object before returning. (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC. (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and allocation for obj_kind_x. * nogc.cc (_Jv_BuildGCDescr): New function. Return 0. (_Jv_AllocObj): Set vtable on returned object. (_Jv_AllocArray): Ditto. * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend. (_Jv_NewPrimArray): Ditto. (_Jv_AllocObj): Declare as a friend. (_Jv_AllocArray): Ditto. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr from &ObjectClass into new array class. Remove offset-by-one adjustments from `method' size calculations to account for gc_descr field. Co-Authored-By: Bryce McKinlay <bryce@albatross.co.nz> From-SVN: r36679
2000-09-30ltconfig, [...]: Updated from libtool multi-language branch, to work around ↵Alexandre Oliva1-279/+268
Solaris' /bin/sh bug. * ltconfig, ltmain.sh, libtool.m4: Updated from libtool multi-language branch, to work around Solaris' /bin/sh bug. Rebuilt all affected `configure' scripts. From-SVN: r36673
2000-09-26Scrollbar.java (removeAdjustmentListener): Use `remove', not `add'.Tom Tromey2-1/+6
* java/awt/Scrollbar.java (removeAdjustmentListener): Use `remove', not `add'. From-SVN: r36650
2000-09-26natSystem.cc (file_encoding): Added return statement.Alexandre Petit-Bianco2-0/+5
2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com> * java/lang/natSystem.cc (file_encoding): Added return statement. From-SVN: r36647
2000-09-14Makefile.am: Re-work shell commands that exceeded command-line length limits.Alexandre Oliva3-16/+33
* Makefile.am: Re-work shell commands that exceeded command-line length limits. * Makefile.in: Rebuilt. From-SVN: r36416
2000-09-14Looks like Tom forgot to check this in...Alexandre Oliva1-0/+2
From-SVN: r36406
2000-09-14* java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.Alexandre Oliva2-1/+3
From-SVN: r36405
2000-09-14defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.Alexandre Oliva5-4/+20
* defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H. * java/lang/natDouble.cc: Likewise. * java/lang/reflect/natMethod.cc: Likewise. * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word. From-SVN: r36404
2000-09-13configure.in (LIBDATASTARTSPEC): Use `%s' to search for libgcjdata.a.Alexandre Oliva6-294/+437
2000-09-13 Alexandre Oliva <aoliva@redhat.com> * configure.in (LIBDATASTARTSPEC): Use `%s' to search for libgcjdata.a. (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir. * acinclude.m4: Arrange for automake to not bring in a new libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ. * Makefile.am: Leave it up to automake to subst GCJ. * aclocal.m4, configure, Makefile.in: Rebuilt. From-SVN: r36392
2000-09-13natArray.cc (BooleanClass): New define.Tom Tromey3-8/+27
* java/lang/reflect/natArray.cc (BooleanClass): New define. (get): Ensure Boolean class is initialized. * java/lang/reflect/natField.cc (BooleanClass): New define. (get): Ensure Boolean class is initialized. From-SVN: r36391
2000-09-13String.java (CASE_INSENSITIVE_ORDER): New static field.Bryce McKinlay4-5/+42
2000-09-13 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field. Initialize with anonymous class. (compareToIgnoreCase): New method. * java/lang/ThreadGroup.java (had_uncaught_exception): New field. (uncaughtException): Set had_uncaught_exception. * prims.cc (JvRunMain): Check value of had_uncaught_exception and exit with error status if set. (_Jv_RunMain): Ditto. From-SVN: r36385
2000-09-12* configure: Rebuilt with new ../libtool.m4.Alexandre Oliva2-246/+240
From-SVN: r36351
2000-09-11Field.java (toString): Don't rely on Class.toString.Tom Tromey3-8/+421
* java/lang/reflect/Field.java (toString): Don't rely on Class.toString. From-SVN: r36341
2000-09-11BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv.Tom Tromey7-238/+357
* gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv. * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder): Let default encoder use iconv. * configure: Rebuilt. * configure.in: Check for nl_langinfo and <langinfo.h>. * java/lang/natSystem.cc (file_encoding): New function. (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible. From-SVN: r36306
2000-09-10acinclude.m4: Simplify the tests for CC and CXX.Alexandre Oliva4-492/+389
* acinclude.m4: Simplify the tests for CC and CXX. * aclocal.m4, configure: Rebuilt. From-SVN: r36297
2000-09-10acinclude.m4: Include libtool macros from the source tree.Alexandre Oliva4-688/+823
* acinclude.m4: Include libtool macros from the source tree. * aclocal.m4, configure: Rebuilt. From-SVN: r36296
2000-09-10* Updated from libtool multi-language branch.Alexandre Oliva9-1506/+4265
From-SVN: r36295
2000-09-10This commit was generated by cvs2svn to compensate for changes in r36292,Alexandre Oliva1-17/+175
which included commits to RCS files with non-trunk default branches. From-SVN: r36293
2000-09-10Initial revisionAlexandre Oliva1-0/+13
From-SVN: r36290
2000-09-08PropertyChangeEvent.java (serialVersionUID): Added.Warren Levy29-34/+162
* java/beans/PropertyChangeEvent.java (serialVersionUID): Added. * java/beans/PropertyVetoException.java (serialVersionUID): Added. * java/io/File.java (writeObject): Added. (readObject): Added. (serialVersionUID): Added. * java/io/ObjectOutputStream.java (writeObject): Initialized fieldsAlreadyWritten before recursion rather than after. * java/io/ObjectStreamClass.java (serialVersionUID): Added. * java/io/OptionalDataException.java (serialVersionUID): Added. (OptionalDataException): Made package private. * java/io/SyncFailedException.java (SyncFailedException): Removed default constructor to match spec. * java/lang/Boolean.java (serialVersionUID): Added. * java/lang/Byte.java (serialVersionUID): Added. * java/lang/Character.java (serialVersionUID): Added. * java/lang/Double.java (serialVersionUID): Added. * java/lang/Float.java (serialVersionUID): Added. * java/lang/Integer.java (serialVersionUID): Added. * java/lang/Long.java (serialVersionUID): Added. * java/lang/Number.java (serialVersionUID): Added. * java/lang/Short.java (serialVersionUID): Added. * java/lang/String.java (serialVersionUID): Added. * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor to match spec. * java/lang/reflect/InvocationTargetException.java (serialVersionUID): Added. * java/net/URL.java (handler): Made transient. (hashCode): Added field for serialization, per spec. and use cached value if available. (serialVersionUID): Added. (URL): Initialize hashCode. (set): Adjust hashCode. (readObject): New Method to initialize the protocol handler when deserializing. (writeObject): New method. * java/text/BreakIterator.java: Removed 'implements Serializable'. * java/text/Collator.java: Removed 'implements Serializable'. * java/util/GregorianCalendar.java (serialVersionUID): Added. * java/util/Properties.java (serialVersionUID): Added. * java/util/Random.java (serialVersionUID): Added. (seed): Made private. (nextNextGaussian): Made private. (haveNextNextGaussian): Made private. * java/util/Stack.java (serialVersionUID): Added. * java/util/TimeZone.java (serialVersionUID): Added. * java/util/Vector.java (serialVersionUID): Added. Serialization mods. From-SVN: r36272
2000-09-07Makefile.am (Thread.h): Don't be friends with native threads functions.Bryce McKinlay5-50/+31
2000-09-07 Bryce McKinlay <bryce@albatross.co.nz> * Makefile.am (Thread.h): Don't be friends with native threads functions. * Makefile.in: Rebuilt. * java/lang/Thread.java (interrupt_flag): Make package-private. From-SVN: r36234
2000-09-06jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long' to avoid long long ↵Jeff Sturm2-2/+8
division. 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com> * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long' to avoid long long division. From-SVN: r36215
2000-09-06Constructor.java (toString): Use `getName' for parameter types.Tom Tromey3-3/+8
* java/lang/reflect/Constructor.java (toString): Use `getName' for parameter types. * java/lang/reflect/Method.java (toString): Use `getName' for return type. From-SVN: r36214
2000-09-06natMethod.cc (_Jv_CallAnyMethodA): Accept null `args' if method takes no ↵Tom Tromey2-2/+9
parameters. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null `args' if method takes no parameters. From-SVN: r36209
2000-09-06Fix for PR java.lang/339:Tom Tromey2-34/+125
* java/lang/natPosixProcess.cc (fail): New function. (cleanup): New function. (startProcess): Use them. Create pipe so child can communicate exec failure back to parent. From-SVN: r36202
2000-09-06* java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.Bryce McKinlay2-3/+4
From-SVN: r36170
2000-09-05natPlainDatagramSocketImpl.cc: Change various `JvThrow' calls to `throw'.Bryce McKinlay4-80/+114
2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow' calls to `throw'. (send): Undo last patch. Remove the label only. (mcastGrp): Ditto. * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to `throw'. * java/net/natInetAdress.cc: Ditto. From-SVN: r36165
2000-09-05* doc/cni.sgml: Updated from master copy.Tom Tromey2-117/+28
From-SVN: r36162
2000-09-05natIconv.cc (read): Remove unused local.Bryce McKinlay6-19/+20
2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> * gnu/gcj/convert/natIconv.cc (read): Remove unused local. (write): Ditto. * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null stack. Synchronize. * java/lang/fdlibm.h: #undef __P if previously defined. * java/lang/natSystem.cc (currentTimeMillis): Remove unused local. * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable block. (mcastGrp): Ditto. From-SVN: r36158
2000-09-04ZipFile.java (ZipFile): Delete file when opened in DELETE mode.Tom Tromey2-1/+6
* java/util/zip/ZipFile.java (ZipFile): Delete file when opened in DELETE mode. From-SVN: r36144
2000-09-04re GNATS java.io/203 (File.createTempFile doesn't close descriptor)Anthony Green3-16/+53
Fix for PR java.io/203: * java/io/File.java (createTempFile): Obey directory argument. Use java.io.tmpdir if needed. Don't leave FileDescripators open. * java/lang/natSystem.cc (init_properties): Use TMPDIR environment variable to set java.io.tmpdir on non-WIN32 systems. From-SVN: r36143
2000-09-04Forgot to add this from last commit.Anthony Green1-0/+9
From-SVN: r36142
2000-09-04File.java (deleteOnExit): New method.Anthony Green5-2/+60
* java/io/File.java (deleteOnExit): New method. * gnu/gcj/runtime/FileDeleter.java: New class. * java/lang/natRuntime.cc (exit): Call FileDeleter.deleteOnExitNow() * Makefile.am: Add FileDeleter.java. * Makefile.in: Rebuilt. From-SVN: r36141
2000-09-04Makefile.in: Rebuilt.Tom Tromey3-2/+8
* Makefile.in: Rebuilt. * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH environment variable. From-SVN: r36126
2000-09-01StreamTokenizer.java: Don't throw a NumberFormatException if a field is ↵Andrew Haley2-5/+26
numeric as far as the... 2000-09-01 Andrew Haley <aph@redhat.com> * java/io/StreamTokenizer.java: Don't throw a NumberFormatException if a field is numeric as far as the StreamTokenizer is concerned but not as far as Double.valueOf() is concerned: return a zero instead. For gcj/141. From-SVN: r36100
2000-09-01abstr.xfail: New file.Tom Tromey3-0/+20
* libjava.compile/abstr.xfail: New file. * libjava.compile/abstr.java: New file. From-SVN: r36087
2000-08-30Makefile.in: Rebuilt.Tom Tromey6-28/+56
* Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers. From-SVN: r36069