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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Tom Tromey
f70b7142c2
Locale.java (Locale): Don't explicitly check for null.
...
* java/util/Locale.java (Locale): Don't explicitly check for
null.
* java/util/Hashtable.java (containsKey): Don't explicitly check
for null.
(get): Likewise.
* java/util/BitSet.java (and, or, xor): Don't explicitly check for
null.
* java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
for null.
* java/text/StringCharacterIterator.java
(StringCharacterIterator): Don't check for null.
* java/text/ChoiceFormat.java (setChoices): Don't explicitly check
for null pointer.
* java/net/MulticastSocket.java (joinGroup): Don't explicitly
check for null pointer.
(leaveGroup): Likewise.
* java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
comment.
(setData): Likewise.
* java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
for `p==null'.
From-SVN: r33671
2000-05-04 15:50:34 +00:00
Bryce McKinlay
065ccab369
String.java (toString): Remove `final' hack.
...
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
* libjava/java/lang/String.java (toString): Remove `final' hack.
From-SVN: r33508
2000-04-28 08:56:34 +01:00
Anthony Green
1143c0a03f
+ 2000-04-22 Anthony Green <green@cygnus.com> + + * include/jvm.h (__builtin_expect): Define as unused for now.
...
+ 2000-04-22 Anthony Green <green@cygnus.com>
+
+ * include/jvm.h (__builtin_expect): Define as unused for now.
+ * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
+ (notify): Ditto.
+ (notifyAll): Ditto.
+ (wait): Ditto.
+ (_Jv_MonitorExit): Ditto.
+ * boehm.cc (_Jv_MarkObj): Ditto.
+ (_Jv_MarkObj): Ditto.
+ (_Jv_MarkArray): Ditto.
+ (_Jv_AllocBytes): 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.
+
+ * include/Makefile.in: Rebuilt.
+ * include/Makefile.am (include_HEADERS): Add jvmpi.h.
+
From-SVN: r33339
2000-04-22 17:09:39 +00:00
Tom Tromey
6cd167e1a7
PipedInputStream.java, [...]: Yet another new version from Classpath.
...
* java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
Yet another new version from Classpath.
From-SVN: r33328
2000-04-21 21:41:32 +00:00
Tom Tromey
7234f9bc03
re GNATS libgcj/15 (_REENTRANT should be defined more consistently)
...
Fix for PR libgcj/15:
* java/util/natGregorianCalendar.cc (_REENTRANT,
_POSIX_PTHREAD_SEMANTICS): Don't define.
* java/net/natInetAddress.cc (_REENTRANT): Don't define.
* java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
Don't define.
* java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
define.
* configure: Rebuilt.
* configure.in: If using POSIX threads, define _REENTRANT if
needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
GETHOSTBYNAME_R_NEEDS_REENTRANT.
From-SVN: r33318
2000-04-21 20:38:43 +00:00
Tom Tromey
051d082b26
PipedInputStream.java, [...]: New version from Classpath.
...
* java/io/PipedInputStream.java, java/io/PipedReader.java,
java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
version from Classpath.
From-SVN: r33316
2000-04-21 20:12:05 +00:00
Tom Tromey
d3474943bf
Fix for PR java.io/204:
...
* java/io/PipedInputStream.java, java/io/PipedReader.java,
java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
from Classpath.
From-SVN: r33300
2000-04-21 01:18:16 +00:00
Tom Tromey
18fcc4961b
re GNATS libgcj/212 (build is broken on Linux/Alpha)
...
Fix for PR libgcj/212:
* gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
* include/jvm.h (_Jv_word, _Jv_word2): Define.
* java/lang/Class.h (_Jv_word): Declare.
From-SVN: r33292
2000-04-20 22:24:33 +00:00