aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2000-08-29BitMaskExtent.java, [...]: Removed Latin-1 copyright symbols.Tom Tromey27-31/+61
* gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java, gnu/gcj/awt/ComponentDataBlitOp.java, gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java, java/awt/RenderingHints.java, java/awt/color/ColorSpace.java, java/awt/color/ICC_ColorSpace.java, java/awt/color/ICC_Profile.java, java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java, java/awt/image/ComponentColorModel.java, java/awt/image/ComponentSampleModel.java, java/awt/image/DataBuffer.java, java/awt/image/DataBufferByte.java, java/awt/image/DataBufferInt.java, java/awt/image/DataBufferUShort.java, java/awt/image/DirectColorModel.java, java/awt/image/IndexColorModel.java, java/awt/image/PackedColorModel.java, java/awt/image/Raster.java, java/awt/image/RasterOp.java, java/awt/image/SampleModel.java, java/awt/image/SinglePixelPackedSampleModel.java, java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java: Removed Latin-1 copyright symbols. * java/util/zip/ZipFile.java: Indentation fixes. From-SVN: r36027
2000-08-27ZipFile.java: Implement OPEN_DELETE mode...Mark Wielaard3-14/+49
* java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new constructor, close can delete the file, finalize calls close. * java/util/jar/JarFile.java: Constructor that takes mode now calls super. From-SVN: r36007
2000-08-27ArrayList.java, [...]: Imported from GNU Classpath.Anthony Green12-10/+3112
2000-08-27 Anthony Green <green@redhat.com> * java/util/ArrayList.java, java/util/Timer.java, java/util/LinkedList.java, java/util/TimerTask.java, java/util/HashMap.java, java/util/AbstractMap.java, java/util/SortedMap.java, java/util/AbstractSequentialList.java, java/util/SortedSet.java: Imported from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Added new files. From-SVN: r36006
2000-08-26Makefile.in: Rebuilt.Anthony Green10-76/+98
2000-08-26 Anthony Green <green@redhat.com> * Makefile.in: Rebuilt. * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a friend. * prims.cc: Include ClassLoader.h. (_Jv_RunMain): When executing jar files, classpath must be the jar file only. Lose our reference to the system ClassLoader in order to get a new one with the correct classpath. * java/lang/natSystem.cc (init_properties): When executing a jar file, only use the jar file for java.class.path. * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name for bytecode archives. * gnu/gcj/runtime/FirstThread.java: Handle case where manifest exists, but not Main-Class. From-SVN: r35999
2000-08-24InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has ↵Mark Wielaard2-0/+7
no more data for the Inflater. * java/util/zip/InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has no more data for the Inflater. From-SVN: r35963
2000-08-24PrintWriter.java (print(String)): Don't catch IOException, write(String) ↵Mark Wielaard2-8/+6
already does. * java/io/PrintWriter.java (print(String)): Don't catch IOException, write(String) already does. From-SVN: r35937
2000-08-23NativeThread.java (NativeThread): Removed assignment to `alive_flag', call ↵Alexandre Petit-Bianco3-1/+16
`init'. 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com> * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment to `alive_flag', call `init'. (init): New native method. * gnu/gcj/jni/natNativeThread.cc (init): New native method implementation. (http://sources.redhat.com/ml/java-patches/2000-q3/msg00142.html) From-SVN: r35931
2000-08-22Makefile.in: Rebuilt.Mark Wielaard6-36/+66
2000-08-21 Mark Wielaard <mark@klomp.org> * Makefile.in: Rebuilt. * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as a `friend class'. (java/lang/reflect/Field.h): Likewise. (java/lang/reflect/Method.h): Likewise. (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a `friend class'. From-SVN: r35863
2000-08-21ResourceBundle.java (trySomeGetBundle): Removed debugging prints.Tom Tromey2-16/+17
* java/util/ResourceBundle.java (trySomeGetBundle): Removed debugging prints. From-SVN: r35859
2000-08-21Fixed typo in ChangeLogAnthony Green1-1/+0
From-SVN: r35830
2000-08-21natSystem.cc (init_properties): Change sourceware reference to ↵Anthony Green12-24/+385
sources.redhat.com. Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com> * java/lang/natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. * include/java-props.h: Add _Jv_Jar_Class_Path. * prims.cc: Ditto. Set it from `gij -jar file' option. * java/lang/natSystem.cc (init_properties): Set java.class.path from {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .} * java/util/PropertyPermission.java: Import from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Add java/util/PropertyPermission.java. * java/lang/System.java: Add setProperty method. * gij.cc (main): Add -jar option to execute jar files. (help): Describe -jar option. * prims.cc (_Jv_RunMain): Add support for jar execution mode. * gnu/gcj/tools/Gij.java: New file. * include/jvm.h: Add is_jar argument to _Jv_RunMain. * gnu/gcj/runtime/FirstThread.java (main): New method. * java/util/jar/Attributes.java: Correct comment spelling. From-SVN: r35829