Tom Tromey
26dfad441d
PrintWriter.java: Merged comments from Classpath.
...
* java/io/PrintWriter.java: Merged comments from Classpath.
(printlnUnsynchronized): Removed.
(println()): Print the separator.
(println): Call println(), not printlnUnsynchronized.
(out): Now protected, to match spec.
From-SVN: r35512
2000-08-06 01:54:07 +00:00
Tom Tromey
1ed67a71e4
StreamTokenizer.java (TT_NONE): Now private.
...
* java/io/StreamTokenizer.java (TT_NONE): Now private.
(nextToken): Handle backslashed newline. From Oskar Liljeblad.
For PR java.io/301.
From-SVN: r35511
2000-08-06 00:49:29 +00:00
Bryce McKinlay
d31772ca70
Missing changelog entry
...
From-SVN: r35469
2000-08-04 02:15:51 +01:00
Warren Levy
9b4773cbba
ObjectInputStream.java (readFields): Turn off readDataFromBlock while reading via GetField.
...
* java/io/ObjectInputStream.java (readFields): Turn off
readDataFromBlock while reading via GetField.
(GetField$1.get(String, Object)): Pass Class of default value to
getField.
(getField): Allow for null default values.
* java/io/ObjectOutputStream.java: Fixed typo in comment.
(PutField$1.put): Fixed calls of checkType in most of the put
methods to pass the correct parameter.
(PutField$1.put(String, Object)): Allow for null value arg.
(PutField$1.write): Turn off writeDataAsBlocks while writing via
PutField.
* java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
typo in spec'ed field name.
(getSerialPersistentFields): Changed spelling of method to match
the correct spelling of the spec'ed field name.
More serialization fixes per Mauve errors.
From-SVN: r35468
2000-08-04 00:42:20 +00:00
Tom Tromey
57b59acb05
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added new files.
From-SVN: r35457
2000-08-03 17:56:02 +00:00
Bryce McKinlay
5ab63c1aea
Makefile.am: Add new AWT stubs.
...
* Makefile.am: Add new AWT stubs.
* java/awt/Canvas.java: New placeholder class.
* java/awt/Checkbox.java: Ditto.
* java/awt/CheckboxMenuItem.java: Ditto.
* java/awt/Choice.java: Ditto.
* java/awt/Dialog.java: Ditto.
* java/awt/FileDialog.java: Ditto.
* java/awt/List.java: Ditto.
* java/awt/ScrollPane.java: Ditto.
* java/awt/TextField.java: Ditto.
* java/awt/datatransfer/Clipboard.java: Ditto.
* java/awt/Component.java (treeLock): Now a static String. Add
comment.
* java/awt/MenuItem.java (MenuItem): Add default constructor.
* java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
Some commented out. Partially implemented.
* java/awt/natToolkit.cc: Removed file.
From-SVN: r35450
2000-08-03 13:09:41 +01:00
Bryce McKinlay
af6ca671a6
Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
...
2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am: Make inner class CNI headers depend on libgcj.zip
only.
Fixes "make -j" builds.
* Makefile.in: Rebuild.
From-SVN: r35441
2000-08-03 07:48:34 +01:00
Tom Tromey
f536cd95fb
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (libgcj_la_SOURCES): Added posix.cc.
* java/net/natPlainSocketImpl.cc: Include posix.h.
(accept): Use _Jv_select.
* java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
(receive): Use _Jv_select.
* java/io/natFileDescriptorPosix.cc: Include posix.h.
(available): Use _Jv_select.
* java/lang/natSystem.cc: Include posix.h.
(currentTimeMillis): Use _Jv_gettimeofday.
* include/posix.h: New file.
* posix.cc: New file.
From-SVN: r35435
2000-08-02 21:54:04 +00:00
Tom Tromey
f9427d1704
encodings.pl: New file.
...
* scripts/encodings.pl: New file.
* Makefile.in: Rebuilt.
* Makefile.am (convert_source_files): Added IOConverter.java.
* gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
IOConverter.
(getDefaultDecodingClass): Canonicalize default encoding name.
(getEncoder): Likewise.
* gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
IOConverter.
(getDefaultDecodingClass): Canonicalize default encoding name.
(getDecoder): Likewise.
* gnu/gcj/convert/IOConverter.java: New file.
From-SVN: r35432
2000-08-02 19:56:53 +00:00
Bryce McKinlay
79c2c6da2c
[multiple changes]
...
2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
* interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
to match C declaration in ffi.h.
* Makefile.am: Add java/awt/Button.java.
* Makefile.in: Rebuilt.
2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
cast of the second argument to `ffi_raw_call' changed to match
prototype.
2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
argument to `ffi_raw_call' changed to match prototype.
From-SVN: r35418
2000-08-02 04:25:13 +01:00
Bryce McKinlay
aa18e0c184
Component.java (toString): Implemented.
...
* java/awt/Component.java (toString): Implemented.
* java/awt/Container.java (addImpl): Remove FIXME. Only call
dispatchEvent() to dispatch the event.
(removeImpl): Ditto.
From-SVN: r35363
2000-07-31 05:11:49 +01:00
Anthony Green
b708c42c7a
Component.java: Add treeLock object.
...
2000-07-30 Anthony Green <green@redhat.com>
* java/awt/Component.java: Add treeLock object.
(getTreeLock): Implement.
(isShowing): Implement.
From-SVN: r35362
2000-07-31 02:33:12 +00:00
Tom Tromey
e0a339f785
BorderLayout.java (BorderLayout()): New constructor.
...
* java/awt/BorderLayout.java (BorderLayout()): New constructor.
* java/awt/Frame.java (Frame): Pass `null' to Window constructor.
* java/awt/Window.java (addNotify): Wrote.
(addWindowListener): Wrote.
(getLocale): Wrote.
(getWarningString): Wrote.
(processEvent): Wrote.
(processWindowEvent): Wrote.
(removeWindowListener): Wrote.
(show): Call validate(), setVisible().
(toBack): Wrote.
(toFront): Wrote.
* java/awt/Toolkit.java (createWindow): Declare.
* java/awt/Frame.java (addNotify): Use getToolkit to find
toolkit.
* java/awt/Component.java (invalidate): Wrote.
(isValid): Wrote.
(getToolkit): Wrote.
* java/awt/Container.java (addContainerListener): Removed
unnecessary cast.
(removeContainerListener): Likewise.
(addImpl): Wrote.
(add(Component)): Use it.
(add(String,Component)): Likewise.
(add(Component,int)): Likewise.
(add(Component,Object)): Likewise.
(add(Component,Object,int)): Likewise.
(doLayout): Wrote.
(getAlignmentX): Wrote.
(getAlignmentY): Wrote.
(getComponentAt): Wrote.
(getMaximumSize): Wrote.
(invalidate): Wrote.
(list(PrintStream,int)): Wrote.
(list(PrintWriter,int)): Wrote.
(getMinimumSize): Wrote.
(getPreferredSize): Wrote.
(printComponents): Wrote.
(processContainerEvent): Look at containerListener, not
componentListener.
(remove): Added event processing and peer destruction.
(removeAll): Use remove.
(removeNotify): Wrote.
(validate): Wrote.
(validateTree): Wrote.
* java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
* java/awt/Label.java (addNotify): Do nothing if peer exists.
* java/awt/Container.java (addNotify): Don't create Container
peer.
* java/awt/Button.java (addNotify): Do nothing if peer exists.
From-SVN: r35361
2000-07-31 02:03:51 +00:00
Tom Tromey
4e07a9eadb
Container.java (remove(int)): Wrote.
...
* java/awt/Container.java (remove(int)): Wrote.
(remove(Component)): Wrote.
(add(Component)): Wrote.
(add(Component,int)): Wrote.
(removeAll): Wrote.
(addNotify): Set our own peer.
* java/awt/Scrollbar.java (listeners): Changed type.
(Scrollbar): Don't initialize listeners.
(addNotify): Wrote.
(setValue): Call setValues.
(setMinimum): Likewise.
(setMaxPriority): Likewise.
(setVisibleAmount): Likewise.
(setValues): Wrote.
(setUnitIncrement): Forward to peer.
(setLineIncrement): Call setUnitIncrement.
(setPageIncrement): Call setBlockIncrement.
(setBlockIncrement): Forward to peer.
(addAdjustmentListener): Rewrote.
(removeAdjustmentListener): Rewrote.
(processAdjustmentEvent): Rewrote.
(paramString): Wrote.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added Button.java.
* java/awt/Button.java: New file.
* java/awt/Toolkit.java (createLabel): Declare.
(createButton): Likewise.
(createScrollbar): Likewise.
(createContainer): Likewise.
* java/awt/Label.java (addNotify): Wrote.
(setAlignment): Call setAlignment in the peer.
(setText): Call setText in the peer.
From-SVN: r35354
2000-07-30 23:19:57 +00:00
Anthony Green
9145715ca3
Test case for gcj/295.
...
From-SVN: r35352
2000-07-30 21:50:24 +00:00
Warren Levy
2dacb3e9ce
ObjectOutputStream.java (writeObject): Per spec, call NotSerializableException with just the class name.
...
* java/io/ObjectOutputStream.java (writeObject): Per spec, call
NotSerializableException with just the class name.
From-SVN: r35325
2000-07-28 23:48:19 +00:00
Andrew Haley
99f7658d7c
interpret.cc (continue1): Insert missing break into switch.
...
2000-07-26 Andrew Haley <aph@cygnus.com>
* interpret.cc (continue1): Insert missing break into switch.
From-SVN: r35316
2000-07-28 13:11:45 +00:00
Warren Levy
614ee7902b
ObjectStreamException.java: Made constructors protected.
...
* java/io/ObjectStreamException.java: Made constructors protected.
Adjusts serialVersionUID.
From-SVN: r35315
2000-07-28 11:58:03 +00:00
Tom Tromey
8fec62b138
OutputStreamWriter.java (close): Only flush if not closed.
...
* java/io/OutputStreamWriter.java (close): Only flush if not
closed.
From-SVN: r35309
2000-07-28 02:54:16 +00:00
Warren Levy
7db51521a0
mauve-libgcj: Activated serialization tests.
...
* 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-27 23:57:07 +00:00
Tom Tromey
2d97a71922
RectangularShape.java (getPathIterator): Wrote.
...
* java/awt/geom/RectangularShape.java (getPathIterator):
Wrote.
From-SVN: r35295
2000-07-27 16:27:42 +00:00
Rolf W. Rasmussen
69b1b29156
ColorModel.java: New file...
...
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-25 17:53:30 +00:00
Oskar Liljeblad
05ae1c31cf
StreamTokenizer.java: Merged with classpath.
...
2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
* java/io/StreamTokenizer.java: Merged with classpath.
From-SVN: r35208
2000-07-23 17:52:13 +00:00
Tom Tromey
8039a4ea73
Makefile.in: Rebuilt.
...
* 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-23 00:24:14 +00:00
Tom Tromey
266a442034
* scripts/showval.java: New file.
...
From-SVN: r35152
2000-07-20 19:35:43 +00:00
Tom Tromey
7f8a07dbea
classes.pl (scan): Print inner classes properly.
...
* scripts/classes.pl (scan): Print inner classes properly.
* gcj/javaprims.h: Updated class list.
From-SVN: r35151
2000-07-20 19:34:29 +00:00
Tom Tromey
5e5c1371d3
natClassLoader.cc (_Jv_PrepareCompiledClass): Only initialize String fields 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-20 19:31:16 +00:00
Tom Tromey
373d3b1863
File.java (getParentFile): New method, from Classpath via Oskar Liljeblad.
...
* java/io/File.java (getParentFile): New method, from Classpath
via Oskar Liljeblad.
From-SVN: r35149
2000-07-20 19:29:14 +00:00
Tom Tromey
75723df4d3
* java/util/Vector.java (remove(Object)): Implemented.
...
From-SVN: r35148
2000-07-20 19:27:57 +00:00
Jeff Sturm
5cc80caa27
natThrowable.cc (fillInStackTrace): Check for zero return from backtrace().
...
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-19 14:37:56 +00:00
Bryce McKinlay
c180a82d69
commit changelog
...
From-SVN: r35044
2000-07-15 06:12:47 +01:00
Bryce McKinlay
1b0bd03b7f
EventQueue.java (invokeAndWait): Call postEvent() within synchronized block.
...
* 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-15 05:42:47 +01:00
Bryce McKinlay
d55bb5be91
Add missing imports.
...
From-SVN: r35002
2000-07-12 22:24:00 +01:00
Bryce McKinlay
6ae3fb6650
Fix missing "package" declaration.
...
From-SVN: r35001
2000-07-12 22:16:52 +01:00
Bryce McKinlay
826b480791
Add missing files from last check-in:
...
* 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-12 22:13:51 +01:00
Bryce McKinlay
e98da3dcf5
backport: Applet.java: New file.
...
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-12 05:52:04 +01:00
Bryce McKinlay
c7a136d3ef
Big AWT patch.
...
From-SVN: r34976
2000-07-12 04:32:07 +01:00
Andrew Haley
c2584d76af
static_init2.java: New file.
...
2000-07-11 Andrew Haley <aph@cygnus.com>
* libjava.compile/static_init2.java: New file.
From-SVN: r34962
2000-07-11 17:45:27 +00:00
Tom Tromey
4ea9cbf197
natClassLoader.cc (_Jv_PrepareCompiledClass): Initialize static final String fields.
...
* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
Initialize static final String fields.
From-SVN: r34910
2000-07-07 20:54:32 +00:00
Tom Tromey
261985c30c
stringconst2.out: New file.
...
* libjava.lang/stringconst2.out: New file.
* libjava.lang/stringconst2.java: New file.
From-SVN: r34909
2000-07-07 20:51:48 +00:00
Tom Tromey
fa948ac381
PrintWriter.java (print): Call write(String), not print(String).
...
* 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-07-03 21:03:52 +00:00
Tom Tromey
e5858cc975
* include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
...
From-SVN: r34818
2000-06-30 23:09:44 +00:00
Andrew Haley
52fa9d82f4
re GNATS java.io/203 (File.createTempFile doesn't close descriptor)
...
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-28 12:24:10 +00:00
Warren Levy
580ac50392
Removed extraneous conflict marker.
...
From-SVN: r34754
2000-06-28 11:26:42 +00:00
Warren Levy
2017da526c
Gnu.java: New file.
...
* 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-28 11:24:05 +00:00
Bryce McKinlay
06772c7d0e
ThreadGroup.java: Added synchronized flag to many methods.
...
* 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-28 07:03:11 +01:00
Warren Levy
d9984f96fc
Principal.java: New file.
...
* java/security/Principal.java: New file.
* Makefile.am: Added Principal.java.
* Makefile.in: Rebuilt.
From-SVN: r34749
2000-06-28 01:31:42 +00:00
Rolf W. Rasmussen
b32dabe5ed
MouseEvent.java: Fixed coordinate space confusion.
...
2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
* java/awt/event/MouseEvent.java: Fixed coordinate space
confusion.
From-SVN: r34746
2000-06-27 21:30:34 +00:00
Tom Tromey
56067b0077
PushbackInputStream.java (read): If there are characters in the buffer, 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 21:27:50 +00:00
Tom Tromey
260e1a2bb0
* java/lang/Double.java (valueOf): Call parseDouble().
...
From-SVN: r34737
2000-06-27 18:35:54 +00:00
Warren Levy
7b245d2461
PropertyChangeEvent.java (oldVal): Renamed to oldValue.
...
* 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-27 05:10:03 +00:00
Tom Tromey
cf036e712c
natDouble.cc (parseDouble): Renamed from doubleValueOf.
...
* java/lang/natDouble.cc (parseDouble): Renamed from
doubleValueOf.
* java/lang/Double.java (parseDouble): Renamed from
doubleValueOf. Now public.
From-SVN: r34679
2000-06-24 18:11:01 +00:00
Tom Tromey
90db9131f1
For PR gcj/260:
...
* libjava.lang/PR260.out: New file.
* libjava.lang/PR260.java: New file.
From-SVN: r34670
2000-06-23 21:53:52 +00:00
Andrew Haley
56e3dd2cea
ieeefp.h: Handle ia64, fr30, mcore.
...
* java/lang/ieeefp.h: Handle ia64, fr30, mcore.
* java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
From-SVN: r34667
2000-06-23 19:53:33 +00:00
Tom Tromey
782c59d653
natMethod.cc: Include <alloca.h>.
...
* 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-23 17:39:00 +00:00
Bryce McKinlay
0ee935e162
ThreadGroup.java (add(Thread)): Rename to addThread() to comply with 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-21 04:55:35 +01:00
Bryce McKinlay
6dfd8a7790
ThreadGroup.java: Merged with classpath.
...
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-20 14:30:14 +01:00
Tom Tromey
d4d17e95f1
re GNATS gcj/260 ("Klass.class" expression should cause Klass to be initialized)
...
* java/lang/natClass.cc (forName): Removed dead code. Initialize
returned class. For PR gcj/260.
From-SVN: r34590
2000-06-18 22:14:06 +00:00
Tom Tromey
3fff847575
re GNATS libgcj/261 (Macro-inconsistency)
...
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-16 15:52:24 +00:00
Tom Tromey
ff1c0096a1
natIconv.cc (iconv_adapter): New function.
...
* gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
(read): Use it.
(write): Likewise.
From-SVN: r34570
2000-06-16 01:11:12 +00:00
Bryce McKinlay
1bf8972740
2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
...
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-15 13:04:50 +01:00
Bryce McKinlay
d655f87d6f
2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
...
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-15 12:58:18 +01:00
Warren Levy
99a7631a98
Fix a stupid typo.
...
From-SVN: r34536
2000-06-13 23:52:00 +00:00
Warren Levy
7254e4eab9
Test for PR java.lang/258:
...
* libjava.lang/Class_1.java: New file.
* libjava.lang/Class_1.out: New file.
From-SVN: r34532
2000-06-13 23:44:05 +00:00
Tom Tromey
c74e221410
prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
...
* 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-31 23:50:37 +00:00
Bryce McKinlay
f1aa7a521a
cni.h: Include <string.h>.
...
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-31 23:49:19 +01:00
Tom Tromey
efc7058478
name-finder.h: Include <sys/wait.h>.
...
* 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-30 23:26:02 +00:00
Bryce McKinlay
f192590a79
re GNATS gcj/242 (Compiler generates call to wrong method from inner class)
...
2000-05-29 Bryce McKinlay <bryce@albatross.co.nz>
* libjava.lang/PR242.java: New file. PR gcj/242.
From-SVN: r34245
2000-05-29 06:26:14 +01:00
Warren Levy
0d0cd44169
ObjectOutputStream.java (writeObject): Use component type when writing arrays.
...
* java/io/ObjectOutputStream.java (writeObject): Use component type
when writing arrays.
Fixed typo.
From-SVN: r34142
2000-05-24 21:15:51 +00:00
Tom Tromey
a84b5d6436
* libjava.compile/PR238.java: New file. For PR gcj/238.
...
From-SVN: r34116
2000-05-23 22:38:07 +00:00
Tom Tromey
665bfbb0b4
stringconst.out: New file.
...
* libjava.lang/stringconst.out: New file.
* libjava.lang/stringconst.java: New file.
From-SVN: r34115
2000-05-23 21:45:16 +00:00
Bryce McKinlay
8f5c8c72db
re GNATS gcj/232 (segmentation violation at except.c:2180)
...
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz>
* libjava.compile/PR232B.java: Additional PR gcj/232 test.
From-SVN: r34092
2000-05-22 23:22:07 +01:00
Tom Tromey
1eccefcd18
* libjava.compile/PR235.java: New file. For PR gcj/235.
...
From-SVN: r34086
2000-05-22 19:34:21 +00:00
Tom Tromey
13ffcdbbf6
* libjava.compile/PR234.java: New file. For PR gcj/234.
...
From-SVN: r34072
2000-05-22 05:14:38 +00:00
Bryce McKinlay
f5f67fb58c
Test for PR gcj/232:
...
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz>
Test for PR gcj/232:
* libjava.compile/PR232.java: New file.
From-SVN: r34070
2000-05-22 04:16:01 +01:00
Bryce McKinlay
1c02a3d964
re GNATS libgcj/226 (implicit __builtin_expect) and GNATS gcj/228 (compressed JAR files)
...
2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
Fix for PR libgcj/226:
* java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
since this is an installed header.
Fix for PR libgcj/228:
* java/util/zip/ZipFile (getInputStream): Create inflater with
nowrapper option.
* java/util/zip/natInflater.cc (inflate): Throw zlib's error message
with DataFormatException.
From-SVN: r34064
2000-05-21 00:30:46 +01:00
Tom Tromey
fa5b690ab6
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (hack1): Removed.
(awto_files): Likewise.
(libgcjawt_la_SOURCES): Likewise.
(EXTRA_libgcjawt_la_SOURCES): Likewise.
(libgcjawt_la_DEPENDENCIES): Likewise.
(libgcjawt_la_LIBADD): Likewise.
(libgcjawt_la_LDFLAGS): Likewise.
(libgcjawt_la_LINK): Likewise.
($(awt_java_source_files:.java=.class)): Likewise.
(libgcj.zip): Don't depend on AWT files.
(MOSTLYCLEANFILES): Don't include AWT files.
($(awto_files)): Removed.
(nat_headers): Removed AWT files.
(cond_awt_java_source_files): Removed.
(ordinary_java_source_files): Added awt_java_source_files.
* libgcj.spec.in (*lib): Removed -lgcjawt.
* configure: Rebuilt.
* configure.in: Removed --enable-java-awt option.
From-SVN: r34058
2000-05-20 20:26:51 +00:00
Bryce McKinlay
ee2f99a584
ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
...
2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
(ZipEntry): Copy the Name' field.
(clone): Implement JDK1.2 method.
(setCompressedSize): ditto.
(hashCode): ditto.
From-SVN: r34043
2000-05-20 06:46:20 +01:00
Tom Tromey
ee7ea78d2a
Removed duplicate ChangeLog entry
...
From-SVN: r34042
2000-05-20 01:17:57 +00:00
Tom Tromey
1dcc053603
BufferedWriter.java: Merged with Classpath.
...
* java/io/BufferedWriter.java: Merged with Classpath.
* java/io/BufferedOutputStream.java: Merged with Classpath.
From-SVN: r34041
2000-05-19 23:35:34 +00:00
Tom Tromey
6c80c45e30
Jumbo patch:
...
* Imported beans and serialization
* Updated IA-64 port
* Miscellaneous bug fixes
From-SVN: r34028
2000-05-19 17:55:34 +00:00
Bryce McKinlay
51becdd6ae
Oops, typo in last change.
...
From-SVN: r34008
2000-05-19 03:46:09 +01:00
Bryce McKinlay
c1f76317e4
From Gregory R. Warnes <warnes@biostat.washington.edu>:
...
* gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
`jarFile', not `jarFileURL'.
From-SVN: r34005
2000-05-19 00:50:34 +01:00
Tom Tromey
fcd4823055
* lib/libjava.exp (bytecompile_file): Use exec, not system.
...
From-SVN: r33989
2000-05-18 17:17:55 +00:00
Bryce McKinlay
fc5b21380e
Thread.java: Declare `data' as Object, not RawData.
...
2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Thread.java: Declare `data' as Object, not RawData.
* java/lang/natThread.java (initialize_native): Cast `data' to
jobject.
* gnu/gcj/RawData.java: Clarify documentation.
From-SVN: r33981
2000-05-18 11:08:25 +01:00
Tom Tromey
9cb0bef59f
mauve.exp (test_mauve): Call `prune_warnings'.
...
* libjava.mauve/mauve.exp (test_mauve): Call `prune_warnings'.
(test_mauve_sim): Likewise.
(test_mauve): Redirect stderr in system call.
(test_mauve_sim): Likewise.
* lib/libjava.exp (test_libjava_from_source): Call
`prune_warnings'.
(test_libjava_from_javac): Likewise.
(bytecompile_file): Redirect stderr in system call.
* lib/libjava.exp (libjava_find_program): New proc.
(find_jvscan): Use it.
(find_gcjh): New proc.
* libjava.compile/compile.exp: Use "", not $options.
From-SVN: r33959
2000-05-17 15:48:44 +00:00
Tom Tromey
3faf9b6b1f
instance.out: New file.
...
* libjava.lang/instance.out: New file.
* libjava.lang/instance.java: New file.
From-SVN: r33941
2000-05-16 19:58:42 +00:00
Andrew Haley
3951562dfa
ppc-signal.h: New file.
...
2000-05-15 Andrew Haley <aph@cygnus.com>
* include/ppc-signal.h: New file.
From-SVN: r33932
2000-05-16 14:38:21 +00:00
Tom Tromey
839ba6c895
ZipInputStream.java (getNextEntry): When reading file headers, don't include `size' in the skip call.
...
* java/util/zip/ZipInputStream.java (getNextEntry): When reading
file headers, don't include `size' in the skip call.
From-SVN: r33850
2000-05-11 17:05:03 +00:00
Bryce McKinlay
ac83e16bc4
StringBuffer.java (replace): Calculate length for arraycopy() correctly.
...
2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/StringBuffer.java (replace): Calculate length for
arraycopy() correctly.
From-SVN: r33822
2000-05-10 12:13:17 +01:00
Bryce McKinlay
fe517fb2c9
StringBuffer.java (delete): Call arrayCopy() correctly.
...
2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
Avoid arrayCopy() call where possible. Update `count' _after_ calling
arrayCopy().
(replace): Reimplemented. Fix javadoc.
(reverse): Call ensureCapacity_unsynchronized().
(StringBuffer (String)): Use DEFAULT_CAPACITY.
From-SVN: r33819
2000-05-10 11:15:13 +01:00
Bryce McKinlay
8f0c0ebd0c
StringBuffer_1.java: New file.
...
2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
* libjava.lang/StringBuffer_1.java: New file.
* libjava.lang/StringBuffer_1.out: New file.
From-SVN: r33818
2000-05-10 11:13:07 +01:00
Tom Tromey
2238de654f
StringBuffer.java (toString): Don't mark buffer as shared.
...
* java/lang/StringBuffer.java (toString): Don't mark buffer as
shared.
(insert(int,char[],int,int): New method.
(delete): New method from Classpath.
(deleteCharAt): Likewise.
(substring): Likewise.
(shared): No longer private.
Added JavaDoc comments from Classpath.
* java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
shared.
From-SVN: r33809
2000-05-09 22:46:58 +00:00
Bryce McKinlay
84d7ae3293
Test for PR gcj/224:
...
2000-05-08 Bryce McKinlay <bryce@albatross.co.nz>
Test for PR gcj/224:
* libjava.compile/PR224.java: New file.
* libjava.compile/PR224.xfail: New file.
From-SVN: r33762
2000-05-08 07:37:54 +01:00
Tom Tromey
89b6698a3e
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (LIBLINK): New macro.
(libgcj_la_LINK): Use it.
(libgcjawt_la_LINK): Likewise.
From-SVN: r33760
2000-05-07 16:02:00 +00:00
Bryce McKinlay
5a3c491c8e
Forgot this file when checking in my last change.
...
From-SVN: r33745
2000-05-07 00:32:52 +01:00
Tom Tromey
fad163ed2f
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.zip): Don't pass -L to javac.
From-SVN: r33728
2000-05-06 16:25:13 +00:00
Tom Tromey
327f248083
re GNATS libgcj/220 (build fails with "only absolute run-paths are allowed" error during linking)
...
Fix for PR libgcj/220:
* Makefile.in: Rebuilt.
* Makefile.am (gij_LDFLAGS): Don't use libstdc++.
(jv_convert_LDFLAGS): Likewise.
(libgcj_la_LDFLAGS): Likewise.
(GCJLINK): New macro.
(jv_convert_LINK): Use it.
(gij_LINK): Likewise.
(libgcj_la_LINK): New macro.
(libgcjawt_la_LINK): Likewise.
From-SVN: r33706
2000-05-05 16:11:36 +00:00
Tom Tromey
a52dee2f36
field.h (JvFieldIsRef): Return false for gnu.gcj.RawData field.
...
* gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
field.
* boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
`0x0008'.
Include Modifier.h.
From-SVN: r33702
2000-05-05 04:46:26 +00:00
Bryce McKinlay
9d4c21486c
natClass.cc (isInstance): Use __builtin_expect.
...
2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/natClass.cc (isInstance): Use __builtin_expect.
(_Jv_IsAssignableFrom): Ditto.
(_Jv_IsInstanceOf): Ditto.
(_Jv_CheckCast): Ditto.
(_Jv_CheckArrayStore): Ditto.
* java/lang/Class.h (_Jv_InitClass): Ditto.
* java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
not `0'.
(notify): Ditto.
(notifyAll): Ditto.
(wait): Ditto.
(_Jv_MonitorExit): Ditto.
* boehm.cc (_Jv_MarkObj): Ditto.
(_Jv_MarkObj): Ditto.
(_Jv_MarkArray): Ditto.
* prims.cc (_Jv_AllocObject): Ditto.
(_Jv_NewObjectArray): Ditto.
(_Jv_NewPrimArray): Ditto.
(_Jv_Malloc): Ditto.
(_Jv_Realloc): Ditto.
(_Jv_MallocUnchecked): Ditto.
(_Jv_divI): Ditto.
(_Jv_remI): Ditto.
(_Jv_divJ): Ditto.
(_Jv_remJ): Ditto.
From-SVN: r33698
2000-05-05 03:56:14 +01:00