aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-07-28OutputStreamWriter.java (close): Only flush if not closed.Tom Tromey2-2/+7
* java/io/OutputStreamWriter.java (close): Only flush if not closed. From-SVN: r35309
2000-07-27mauve-libgcj: Activated serialization tests.Warren Levy13-20/+50
* mauve-libgcj: Activated serialization tests. * gcj/field.h (getModifiers): Mask off unknown flags. * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so spurious bits don't cause discrepancies. * java/io/ObjectOutputStream.java: Fixed typo in comment. * java/io/ObjectStreamClass.java: Fixed typos in comments. (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize. (hasClassInitializer): Call getDeclaredMethod instead of getMethod. * java/lang/Throwable.java (serialVersionUID): New field. * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used. * java/lang/reflect/natConstructor.cc (getModifiers): Mask off unknown flags. * java/lang/reflect/natMethod.cc: Ditto. * java/security/Key.java (serialVersionUID): Removed field for now. * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto. * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto. Serialization mods. From-SVN: r35302
2000-07-27RectangularShape.java (getPathIterator): Wrote.Tom Tromey2-3/+6
* java/awt/geom/RectangularShape.java (getPathIterator): Wrote. From-SVN: r35295
2000-07-25ColorModel.java: New file...Rolf W. Rasmussen24-74/+4520
2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no> * libjava/java/awt/image/ColorModel.java: New file, replaces the stub libjava/java/awt/ColorModel.java which was located in the wrong package. * libjava/java/awt/image/ComponentColorModel.java: New file. * libjava/java/awt/image/ComponentSampleModel.java: New file. * libjava/java/awt/image/DataBuffer.java: New file. * libjava/java/awt/image/DataBufferByte.java: New file. * libjava/java/awt/image/DataBufferInt.java: New file. * libjava/java/awt/image/DataBufferUShort.java: New file. * libjava/java/awt/image/DirectColorModel.java: New file. * libjava/java/awt/image/PackedColorModel.java: New file. * libjava/java/awt/image/Raster.java: New file. * libjava/java/awt/image/SampleModel.java: New file. * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New file. * libjava/java/awt/image/IndexColorModel.java: New file. * libjava/java/awt/image/ImageConsumer.java: Removed import of java.awt.ColorModel stub. * gnu/gcj/util/BitMaskExtent.java: New file, utility class. * gnu/gcj/util/Buffers.java: New file, utility class. * libjava/Makefile.am: Updated to include new files. * libjava/Makefile.in: Rebuilt. From-SVN: r35245
2000-07-23StreamTokenizer.java: Merged with classpath.Oskar Liljeblad2-49/+253
2000-07-23 Oskar Liljeblad <osk@hem.passagen.se> * java/io/StreamTokenizer.java: Merged with classpath. From-SVN: r35208
2000-07-23Makefile.in: Rebuilt.Tom Tromey16-160/+2244
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Updated for new files. * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values. * java/awt/Label.java: New file. * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D. (createIntersection, createUnion, getBounds2D): New methods. * java/awt/Scrollbar.java: New file. * java/awt/Shape.java: Updated to 1.2. * java/awt/geom/AffineTransform.java: New file. * java/awt/geom/Ellipse2D.java: New file. * java/awt/geom/NoninvertibleTransformException.java: New file. * java/awt/geom/PathIterator.java: New file. * java/awt/geom/Rectangle2D.java: New file. * java/awt/geom/RectangularShape.java: New file. * java/awt/geom/Point2D.java (Double, Float): New inner classes. * java/awt/geom/IllegalPathStateException.java: New file. From-SVN: r35195
2000-07-20* scripts/showval.java: New file.Tom Tromey2-0/+43
From-SVN: r35152
2000-07-20classes.pl (scan): Print inner classes properly.Tom Tromey3-11/+47
* scripts/classes.pl (scan): Print inner classes properly. * gcj/javaprims.h: Updated class list. From-SVN: r35151
2000-07-20natClassLoader.cc (_Jv_PrepareCompiledClass): Only initialize String fields ↵Tom Tromey2-17/+29
for interpreted classes. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only initialize String fields for interpreted classes. Fixes bug reported by Hans Boehm. From-SVN: r35150
2000-07-20File.java (getParentFile): New method, from Classpath via Oskar Liljeblad.Tom Tromey2-0/+9
* java/io/File.java (getParentFile): New method, from Classpath via Oskar Liljeblad. From-SVN: r35149
2000-07-20* java/util/Vector.java (remove(Object)): Implemented.Tom Tromey2-4/+19
From-SVN: r35148
2000-07-19natThrowable.cc (fillInStackTrace): Check for zero return from backtrace().Jeff Sturm2-3/+11
2000-07-19 Jeff Sturm <jeff.sturm@appnet.com> * java/lang/natThrowable.cc (fillInStackTrace): Check for zero return from backtrace(). From-SVN: r35135
2000-07-15commit changelogBryce McKinlay1-0/+7
From-SVN: r35044
2000-07-15EventQueue.java (invokeAndWait): Call postEvent() within synchronized block.Bryce McKinlay2-4/+8
* java/awt/EventQueue.java (invokeAndWait): Call postEvent() within synchronized block. * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier before calling notifyAll(). From-SVN: r35042
2000-07-12Add missing imports.Bryce McKinlay1-0/+2
From-SVN: r35002
2000-07-12Fix missing "package" declaration.Bryce McKinlay2-0/+4
From-SVN: r35001
2000-07-12Add missing files from last check-in:Bryce McKinlay4-0/+83
* java/awt/image/ImageConsumer.java: New file. * java/awt/image/ImageProducer.java: New file. * java/awt/image/ImageObserver.java: New file. From-SVN: r35000
2000-07-12backport: Applet.java: New file.Bryce McKinlay7-0/+566
2000-07-12 Bryce McKinlay <bryce@albatross.co.nz> Merged implementation of java.applet from classpath: * java/applet/Applet.java: New file. * java/applet/AppletContext.java: New file. * java/applet/AppletStub.java: New file. * java/applet/AudioClip.java: New file. * Makefile.am: Added new java.applet classes. * Makefile.in: Rebuilt. From-SVN: r34981
2000-07-12Big AWT patch.Bryce McKinlay70-261/+4822
From-SVN: r34976
2000-07-11static_init2.java: New file.Andrew Haley2-0/+13
2000-07-11 Andrew Haley <aph@cygnus.com> * libjava.compile/static_init2.java: New file. From-SVN: r34962
2000-07-07natClassLoader.cc (_Jv_PrepareCompiledClass): Initialize static final String ↵Tom Tromey2-1/+23
fields. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Initialize static final String fields. From-SVN: r34910
2000-07-07stringconst2.out: New file.Tom Tromey3-0/+27
* libjava.lang/stringconst2.out: New file. * libjava.lang/stringconst2.java: New file. From-SVN: r34909
2000-07-03PrintWriter.java (print): Call write(String), not print(String).Tom Tromey2-8/+26
* java/io/PrintWriter.java (print): Call write(String), not print(String). See PR libgcj/277. (print(String)): Use write, not out.write. From-SVN: r34853
2000-06-30* include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.Tom Tromey2-0/+5
From-SVN: r34818
2000-06-28re GNATS java.io/203 (File.createTempFile doesn't close descriptor)Andrew Haley3-1/+18
2000-06-27 Andrew Haley <aph@cygnus.com> * java/io/File.java (createTempFile): Close the FileDescriptor used to create a temp file. Fixes some of PR 203. * java/io/natFileDescriptorPosix.cc (open): Call garbage collection if we run out of file handles. From-SVN: r34755
2000-06-28Removed extraneous conflict marker.Warren Levy1-1/+0
From-SVN: r34754
2000-06-28Gnu.java: New file.Warren Levy7-8/+444
* gnu/java/security/provider/Gnu.java: New file. * gnu/java/security/provider/SHA.java: New file. * gnu/java/security/provider/SHA1PRNG.java: New file. * Makefile.am: Added the above files. * Makefile.in: Rebuilt. * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS. From-SVN: r34753
2000-06-28ThreadGroup.java: Added synchronized flag to many methods.Bryce McKinlay2-36/+51
* ThreadGroup.java: Added synchronized flag to many methods. (destroyed_flag): Removed. (isDestroyed, removeGroup, removeThread): Test for parent == null. (activeCount): Added spec note. From-SVN: r34750
2000-06-28Principal.java: New file.Warren Levy4-59/+165
* java/security/Principal.java: New file. * Makefile.am: Added Principal.java. * Makefile.in: Rebuilt. From-SVN: r34749
2000-06-27MouseEvent.java: Fixed coordinate space confusion.Rolf W. Rasmussen2-6/+8
2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no> * java/awt/event/MouseEvent.java: Fixed coordinate space confusion. From-SVN: r34746
2000-06-27PushbackInputStream.java (read): If there are characters in the buffer, ↵Tom Tromey3-11/+22
don't also call super.read(). * java/io/PushbackInputStream.java (read): If there are characters in the buffer, don't also call super.read(). * java/io/PushbackReader.java (read): If there are characters in the buffer, don't also call super.read(). From-SVN: r34745
2000-06-27* java/lang/Double.java (valueOf): Call parseDouble().Tom Tromey2-1/+5
From-SVN: r34737
2000-06-27PropertyChangeEvent.java (oldVal): Renamed to oldValue.Warren Levy12-101/+275
* java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue. (newVal): Renamed to newValue. * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt. * java/beans/beancontext/BeanContextServiceRevokedEvent.java (revokeNow): Renamed to invalidateRefs. * java/io/OptionalDataException.java: Updated FIXME. (eof): New placeholder field. (length); Ditto. * java/io/WriteAbortedException.java (message): Made transient. * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2. * java/lang/Throwable.java (stackTrace): Made transient. * java/net/InetAddress.java: Made Serializable. * java/security/KeyPair.java: Made Serializable. * java/security/Provider.java: Replaced with Classpath version that implements serialization and proper methods. * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats. (limits): Renamed to choiceLimits. Serialization changes per: http://java.sun.com/products/jdk/1.2/docs/api/serialized-form.html From-SVN: r34726
2000-06-24natDouble.cc (parseDouble): Renamed from doubleValueOf.Tom Tromey3-4/+11
* java/lang/natDouble.cc (parseDouble): Renamed from doubleValueOf. * java/lang/Double.java (parseDouble): Renamed from doubleValueOf. Now public. From-SVN: r34679
2000-06-23For PR gcj/260:Tom Tromey3-0/+22
* libjava.lang/PR260.out: New file. * libjava.lang/PR260.java: New file. From-SVN: r34670
2000-06-23ieeefp.h: Handle ia64, fr30, mcore.Andrew Haley3-2/+26
* java/lang/ieeefp.h: Handle ia64, fr30, mcore. * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace. From-SVN: r34667
2000-06-23natMethod.cc: Include <alloca.h>.Tom Tromey3-15/+10
* java/lang/reflect/natMethod.cc: Include <alloca.h>. * java/lang/natDouble.cc: Always include <alloca.h>. Fix for PR libgcj/267. From-SVN: r34665
2000-06-21ThreadGroup.java (add(Thread)): Rename to addThread() to comply with ↵Bryce McKinlay4-17/+42
classpath VM spec. 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to comply with classpath VM spec. (add(Group)): Rename to addGroup(). * java/lang/Thread.java (Thread): Use addThread(). * java/lang/natThread.cc (finish_): Use removeThread(). From-SVN: r34627
2000-06-20ThreadGroup.java: Merged with classpath.Bryce McKinlay5-291/+457
2000-06-20 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/ThreadGroup.java: Merged with classpath. * prims.cc (_Jv_RunMain): Don't use ain_group'. * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor argument. * java/lang/Thread.java (Thread): Bootstrap initial thread from ThreadGroup.root if Thread.currentThread is null. Honour the ThreadGroup's max priority setting. From-SVN: r34615
2000-06-18re GNATS gcj/260 ("Klass.class" expression should cause Klass to be initialized)Tom Tromey3-56/+24
* java/lang/natClass.cc (forName): Removed dead code. Initialize returned class. For PR gcj/260. From-SVN: r34590
2000-06-16re GNATS libgcj/261 (Macro-inconsistency)Tom Tromey3-4/+13
Fix for PR libgcj/261: * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception' argument. * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception' argument. (This is a patch from long ago that somehow went missing.) From-SVN: r34575
2000-06-16natIconv.cc (iconv_adapter): New function.Tom Tromey2-8/+24
* gnu/gcj/convert/natIconv.cc (iconv_adapter): New function. (read): Use it. (write): Likewise. From-SVN: r34570
2000-06-152000-06-15 Bryce McKinlay <bryce@albatross.co.nz>Bryce McKinlay2-2/+4
Fix for PR java.lang/258: * prims.cc (_Jv_PrimClass): Set state of primitive class to JV_STATE_DONE, to prevent accidental initialization. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call _Jv_InterfaceAssignableFrom if target is an interface and source is an interface or an abstract class. Remove redundant initializeClass calls. Remove duplicate if_idt test. (_Jv_InterfaceAssignableFrom): New function. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype. From-SVN: r34563
2000-06-152000-06-15 Bryce McKinlay <bryce@albatross.co.nz>Bryce McKinlay3-16/+41
Fix for PR java.lang/258: * prims.cc (_Jv_PrimClass): Set state of primitive class to JV_STATE_DONE, to prevent accidental initialization. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call _Jv_InterfaceAssignableFrom if target is an interface and source is an interface or an abstract class. Remove redundant initializeClass calls. Remove duplicate if_idt test. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): New function. From-SVN: r34562
2000-06-13Fix a stupid typo.Warren Levy1-1/+1
From-SVN: r34536
2000-06-13Test for PR java.lang/258:Warren Levy3-0/+76
* libjava.lang/Class_1.java: New file. * libjava.lang/Class_1.out: New file. From-SVN: r34532
2000-05-31prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.Tom Tromey5-7/+45
* prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well. (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass. * include/jvm.h (struct _Jv_ArrayVTable): Declare. (NUM_OBJECT_METHODS): New define. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added `array_vtable' parameter. Added assertion. * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable' parameter. From-SVN: r34312
2000-05-31cni.h: Include <string.h>.Bryce McKinlay5-0/+13
2000-05-31 Bryce McKinlay <bryce@albatross.co.nz> * gcj/cni.h: Include <string.h>. * defineclass.cc: Include <alloca.h>. * interpret.cc: Ditto. * gij.cc: Include <stdlib.h>. From-SVN: r34311
2000-05-30name-finder.h: Include <sys/wait.h>.Tom Tromey4-7/+26
* include/name-finder.h: Include <sys/wait.h>. (_Jv_name_finder::pid): Now of type `pid_t'. (_Jv_name_finder::~_Jv_name_finder): Call waitpid(). * java/lang/Throwable.java (CPlusPlusDemangler.close): Call `proc.waitFor()'. From-SVN: r34279
2000-05-29re GNATS gcj/242 (Compiler generates call to wrong method from inner class)Bryce McKinlay3-0/+43
2000-05-29 Bryce McKinlay <bryce@albatross.co.nz> * libjava.lang/PR242.java: New file. PR gcj/242. From-SVN: r34245