1 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4 (addElement): Don't increment elementCount twice. Doh.
5 * java/util/ArrayList.java (add): Only call ensureCapacity if the
6 array needs to be expanded.
8 * java/util/Collections.java (UnmodifiableCollection): Implement
10 (UnmodifiableList): Throw UnsupportedOperationException from
11 modification methods. Set `l' from the one-parameter constructor.
12 (UnmodifiableMap): Implement toString().
13 (SynchronizedCollection): Ditto.
14 (SynchronizedList): Set `l' from the one-parameter constructor.
15 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
16 (SynchronizedMap): Implement toString().
18 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
20 * javax/naming/NameParser.java,
21 javax/naming/directory/AttributeInUseException.java,
22 javax/naming/directory/AttributeModificationException.java,
23 javax/naming/directory/InvalidAttributeIdentifierException.java,
24 javax/naming/directory/InvalidAttributesException.java,
25 javax/naming/directory/InvalidAttributeValueException.java,
26 javax/naming/directory/InvalidSearchControlsException.java,
27 javax/naming/directory/InvalidSearchFilterException.java,
28 javax/naming/directory/NoSuchAttributeException.java,
29 javax/naming/directory/SchemaViolationException.java: New files.
31 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
33 * javax/naming/InitialContext.java (rebind): Implement.
37 (listBindings): Implement.
38 (destroySubcontext): Implement.
39 (createSubcontext): Implement.
40 (lookupLink): Implement.
41 (getNameParser): Implement.
42 (composeName): Implement.
43 (addToEnvironment): Implement.
45 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
47 * javax/naming/AuthenticationException.java,
48 javax/naming/AuthenticationNotSupportedException.java,
49 javax/naming/CannotProceedException.java,
50 javax/naming/CommunicationException.java,
51 javax/naming/ConfigurationException.java,
52 javax/naming/ContextNotEmptyException.java,
53 javax/naming/InsufficientResourcesException.java,
54 javax/naming/InterruptedNamingException.java,
55 javax/naming/InvalidNameException.java,
56 javax/naming/LimitExceededException.java,
57 javax/naming/LinkException.java,
58 javax/naming/LinkLoopException.java,
59 javax/naming/MalformedLinkException.java,
60 javax/naming/NameAlreadyBoundException.java,
61 javax/naming/NameNotFoundException.java,
62 javax/naming/NamingSecurityException.java,
63 javax/naming/NoPermissionException.java,
64 javax/naming/NotContextException.java,
65 javax/naming/PartialResultException.java,
66 javax/naming/ReferralException.java,
67 javax/naming/ServiceUnavailableException.java,
68 javax/naming/SizeLimitExceededException.java,
69 javax/naming/TimeLimitExceededException.java: New files.
71 * javax/naming/Name.java (clone): New method.
72 (compareTo): New method.
73 (isEmpty): New method.
75 (getPrefix): New method.
76 (getSuffix): New method.
77 (startsWith): New method.
78 (endsWith): New method.
85 * javax/naming/Context.java (lookup): New method.
90 (listBindings): New method.
91 (destroySubcontext): New method.
92 (createSubcontext): New method.
93 (lookupLink): New method.
94 (getNameParser): New method.
95 (composeName): New method.
96 (addToEnvironment): New method.
97 (removeFromEnvironment): New method.
98 (getEnvironment): New method.
100 (getNameInNamespace): New method.
102 * javax/naming/InitialContext.java (lookup): New method.
103 (rebind): New method.
104 (unbind): New method.
105 (rename): New method.
107 (listBindings): New method.
108 (destroySubcontext): New method.
109 (createSubcontext): New method.
110 (lookupLink): New method.
111 (getNameParser): New method.
112 (composeName): New method.
113 (addToEnvironment): New method.
114 (removeFromEnvironment): New method.
115 (getEnvironment): New method.
117 (getNameInNamespace): New method.
119 2000-11-26 Tom Tromey <tromey@cygnus.com>
121 * Makefile.in: Rebuilt.
122 * Makefile.am (core_java_source_files): Added
123 RuntimePermission.java.
124 * java/lang/RuntimePermission.java: Imported from Classpath.
125 * java/lang/Thread.java (getContextClassLoader): Now
126 synchronized. Added security code.
127 (setContextClassLoader): Likewise.
129 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
130 length field of array.
131 (_Jv_NewPrimArray): Likewise.
132 * gcj/array.h (__JArray): `length' field now const. Added
135 2000-11-26 Anthony Green <green@redhat.com>
137 * javax/naming/spi/NamingManager.java,
138 javax/naming/spi/ObjectFactory.java,
139 javax/naming/spi/InitialContextFactory.java,
140 javax/naming/spi/InitialContextFactoryBuilder.java,
141 javax/naming/RefAddr.java, javax/naming/Reference.java,
142 javax/naming/NamingException.java, javax/naming/Context.java,
143 javax/naming/Referenceable.java,
144 javax/naming/directory/InitialDirContext.java,
145 javax/naming/directory/DirContext.java,
146 javax/naming/directory/Attributes.java,
147 javax/naming/directory/Attribute.java,
148 javax/naming/StringRefAddr.java,
149 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
150 javax/naming/InitialContext.java,
151 javax/naming/NoInitialContextException.java: New files.
153 2000-11-25 Anthony Green <green@redhat.com>
155 * prims.cc (_Jv_NewObjectArray): Undo placement change.
156 (_Jv_NewPrimArray): Likewise.
157 * gcj/array.h (__JArray): Undo const change. Removed constructor.
158 (class JArray): Removed constructor.
160 * java/lang/Thread.java (context_class_loader): New private data.
161 (getContextClassLoader): New method.
162 (setContextClassLoader): New method.
163 (Thread): Initialize context_class_loader.
165 * java/net/URLClassLoader.java: Import java.util.Enumeration.
166 (getResource): Rename to findResource.
167 (findResource): New method. Used to be getResource.
168 (getResourceAsStream): Deleted.
169 (jarFileize): Extracted logic from URLClassLoader constructor into
170 this new private method.
171 (addURL): New protected method.
172 (URLClassLoader): Call jarFileize. Use addElement instead of
174 (findResources): New method.
176 * java/lang/ClassLoader.java: Import java.util.Enumeration.
177 (getResource): Implement correct logic.
178 (findResource): New method.
179 (getResources): New method.
180 (findClass): Create a ClassNotFoundException with the name of the
181 class rather than nothing at all.
182 (defineClass) Only throw ClassFormatError.
184 * java/lang/Class.java (forName): New method.
185 * java/lang/Class.h (forName): New method.
186 * java/lang/natClass.cc (forName): New method.
188 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
190 * java/lang/System.java (setProperties): Only call init_properties()
191 if properties is null.
192 (getProperties): Ditto.
193 (getProperty): Ditto.
194 (setProperty): Call init_properties if properties are null.
195 (prop_init): Remove field.
196 * java/lang/natSystem.cc (init_properties): Synchronize the entire
197 method. Check for null properties after synchronizing instead of
198 prop_init flag. Set the properties field last for thread safety.
200 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
201 test for gcj.dumpobjects property and enable object stream dumping
203 (dumpElement): No longer native.
204 (dumpElementln): Ditto.
205 (setDump): Do not define.
206 * java/io/natObjectInputStream.cc (dumpElement): Removed.
207 (dumpElementln): Removed.
210 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
212 * configure: Rebuilt.
213 * Makefile.in: Rebuilt.
214 * Makefile.am (built_java_source_files): Add Configuration.java.
215 * configure.in: Add Configuration.java to CONFIG_FILES. Set
216 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
217 Create `gnu' directory in the build tree.
218 * gnu/classpath/Configuration.java.in: New file.
220 2000-11-24 Tom Tromey <tromey@cygnus.com>
222 * prims.cc (_Jv_NewObjectArray): Use placement new to create
224 (_Jv_NewPrimArray): Likewise.
226 * gcj/array.h (__JArray): `length' field now const. Added
228 (class JArray): Added constructor.
230 2000-11-23 Mark Wielaard <mark@klomp.org>
232 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
235 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
237 * java/util/Vector.java: Improve exception messages.
238 (Vector): Check initialCapacity for IllegalArgumentException.
239 (tromToSize): Don't check for elementCount == elementData.length
241 (toArray): Don't try to set null marker if target array is the same
242 length as the vector.
244 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
246 * Makefile.in: Rebuilt.
247 * Makefile.am (core_java_source_files): Added Collections.java.
248 * java/util/List.java: Merged from classpath.
249 * java/util/Vector.java: Ditto.
250 * java/util/Collections.java: From classpath.
251 * java/util/ArrayList.java (addAll(Collection)): Call
252 addAll(int,Collection) instead of duplicating code.
253 (indexOf): Clean up int initialization.
254 (clear): Set cleared array entries to null, to allow garbage
256 * java/util/List.java: Minor formatting fixes.
257 * java/util/SimpleTimeZone.java: ditto.
259 2000-11-18 Tom Tromey <tromey@cygnus.com>
261 * Makefile.in: Rebuilt.
262 * Makefile.am (core_java_source_files): Added new files.
263 * java/lang/reflect/ReflectPermission.java: New class.
264 * java/io/FileFilter.java: From Classpath
265 * java/io/FilePermission.java: From Classpath.
267 2000-11-17 Tom Tromey <tromey@cygnus.com>
269 * java/lang/reflect/AccessibleObject.java (isAccessible,
270 setAccessible): Now public.
272 * java/lang/natString.cc: Include Locale.h.
273 (toUpperCase): Added `locale' argument. Handle locale
275 (toLowerCase): Added `locale' argument. Handle locale
277 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
278 CAPITAL_I): New defines.
279 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
282 (toUpperCase, toLowerCase): New methods. Variants which accept
285 * java/lang/ExceptionInInitializerError.java (printStackTrace):
288 * java/util/PropertyPermission.java: Re-merged from Classpath.
290 * java/text/RuleBasedCollator.java (getCollationElementIterator):
292 * java/text/StringCharacterIterator.java: Reindented.
293 (setText): New method.
295 2000-11-17 Mark Wielaard <mark@klomp.org>
297 Merge with Classpath (changes by Bryce McKinlay)
298 * java/util/jar/*.java: Reformat all to unofficial standard coding
299 style. No changes of substance.
301 2000-11-17 Mark Wielaard <mark@klomp.org>
303 * java/util/zip/*.java: Javadoc updates.
305 2000-11-17 Tom Tromey <tromey@cygnus.com>
307 * java/text/CollationKey.java: Implement Comparable.
308 (compareTo(Object)): New method.
309 * java/text/Collator.java (compare(Object,Object)): New method.
310 Implement Comparator.
312 * java/util/zip/InflaterInputStream.java (available): New method.
314 (read, available, skip, fill): Throw exception if stream closed.
315 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
316 getNextEntry): Throw exception if closed.
318 2000-11-16 Tom Tromey <tromey@cygnus.com>
320 * java/io/PushbackReader.java: Merged with Classpath.
321 * java/util/Arrays.java: Updated from Classpath.
323 * scripts/blocks.pl: New file.
324 * java/lang/Character.java (Subset): New class.
325 (UnicodeBlock): New class.
327 * java/lang/Math.java (toDegrees, toRadians): New methods.
329 * java/lang/Float.java: Implement Comparable.
330 (compareTo): New methods.
331 * java/lang/Double.java: Implement Comparable.
332 (compareTo): New methods.
334 2000-11-16 Warren Levy <warrenl@cygnus.com>
336 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
338 (listeners): Made transient.
339 (source): Renamed from 'bean'.
340 (children): New field for serialization.
341 (propertyChangeSupportSerializedDataVersion): Ditto.
342 (serialVersionUID): Ditto.
343 (writeObject): New serialization method.
344 (readObject): New serialization method.
345 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
347 (listeners): Made transient.
348 (source): Renamed from 'bean'.
349 (children): New field for serialization.
350 (vetoableChangeSupportSerializedDataVersion): Ditto.
351 (serialVersionUID): Ditto.
352 (writeObject): New serialization method.
353 (readObject): New serialization method.
354 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
355 to allow constructor to have a return type (i.e. the class that the
356 constructor constructs).
358 2000-11-14 Tom Tromey <tromey@cygnus.com>
360 * Makefile.in: Rebuilt.
361 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
364 2000-11-02 Warren Levy <warrenl@cygnus.com>
366 * java/io/ObjectInputStream.java (readObject): Added code to
367 conditionally dump out the serialized data.
368 Handle ENDBLOCKDATA case a bit more gracefully since the current
369 behavior doesn't seem to work as expected.
370 (readStreamHeader): Added code for serialized data dumper.
371 (readNextBlock): Ditto.
373 (dump): New private static field for turning on/off dumper.
374 (setDump): New native method.
375 (dumpElement): New native method.
376 (dumpElementln): New native method.
377 * java/io/natObjectInputStream.cc (setDump): New method.
378 (dumpElement): New method.
379 (dumpElementln): New method.
381 2000-11-02 Warren Levy <warrenl@cygnus.com>
383 * java/net/InetAddress.java (addr): Renamed from 'address'.
384 (address): New field to match Serialized Form doc.
385 (hostName): Renamed from 'hostname' to match Serialized Form doc.
386 (family): New serialization field.
387 (serialVersionUID): New field.
388 (readObject): New method.
389 (writeObject): New method.
390 (getFamily): New native method.
391 (InetAddress): Set family.
392 * java/net/natInetAddress.cc (getFamily): New method.
393 (addr): Renamed from 'address'.
394 (hostName): Renamed from 'hostname' to match Serialized Form doc.
395 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
396 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
398 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
400 * java/util/AbstractList.java (SubList): Make it a top-level private
402 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
404 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
405 * Makefile.in: Rebuilt.
407 2000-11-02 Tom Tromey <tromey@cygnus.com>
409 * Makefile.in: Rebuilt.
410 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
413 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
415 * java/util/AbstractList.java (remove): Comment out modCount increment
416 to work around compiler bug.
419 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
421 * java/util/AbstractList.java: Throw messages with
422 IndexOutOfBoundsExceptions.
423 (listIterator()): Call listIterator(0).
424 (size): New field. Initialize to size().
425 (hasNext): Test position against size, not size().
426 (remove): Increment knownMod by one instead of resetting it from
429 (SubList.upMod): Removed.
430 (SubList.set): Don't call upMod() or update knownMod.
431 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
432 (SubList.remove): Ditto.
433 (SubList.addAll): Don't call backingList.size(). Increment size from
435 (SubList.iterator): New method. Call listIterator(0).
436 (SubList.listIterator): New method. Restore code to return an anonymous
437 listIterator implementation (with some changes).
438 * java/util/AbstractSequentialList.java: Throw messages with
439 IndexOutOfBoundsExceptions.
440 (addAll): Add a specnote.
441 * java/util/ArrayList.java (removeRange): Get the math right.
442 (addAll): Increment modCount _before_ creating iterator.
443 * java/util/LinkedList.java: Rewritten, mostly.
445 2000-11-01 Tom Tromey <tromey@cygnus.com>
447 * scripts/encodings.pl: Added `ASCII' alias.
448 * Makefile.in: Rebuilt.
449 * Makefile.am (convert_source_files): Added new files.
450 * gnu/gcj/convert/Input_ASCII.java: New file.
451 * gnu/gcj/convert/Output_ASCII.java: New file.
452 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
453 out-of-range characters.
454 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
455 (read): Swap bytes if required. Treat `count' as character count,
457 (write): Likewise. Also, handle case where iconv fails on a given
459 (init): Put encoding into exception.
460 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
461 (static): Call iconv_init. Rebuilt alias list.
462 (iconv_init): New private method.
464 2000-11-01 Tom Tromey <tromey@cygnus.com>
466 * Makefile.in: Rebuilt.
467 * Makefile.am (install-exec-hook): Only make a single symlink, and
468 remove the destination before making the link.
469 * configure: Rebuilt.
470 * configure.in: Call AC_PROG_LN_S.
472 2000-10-31 Warren Levy <warrenl@cygnus.com>
474 * jni.cc: Added include of java/lang/ThreadGroup.h.
475 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
476 per change of 2000-10-05.
478 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
480 * java/util/BitSet.java: Updated @specnote.
482 * java/io/Reader.java: Merge docs from classpath.
483 (skip): Synchronize on `lock'.
484 * java/io/FileReader.java: Import correct implementation from
486 * java/io/StringReader.java: Merge docs from classpath.
487 (ready): Throw IOException if stream is closed.
489 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
491 * java/util/AbstractCollection.java (addAll): Use size() instead of
492 hasNext() in iterator loop.
494 (contains): Ditto. Simplify loop.
495 (containsAll): Ditto.
500 (toString): Ditto. Use string concatenation operators, not
502 * java/util/AbstractList.java (addAll): Use size() instead of
503 hasNext() in iterator loop.
506 (indexOf): Ditto. Don't take null check outside of the loop.
507 (iterator): Return an AbstractListItr instead of anonymous class.
508 (lastIndexOf): Use a for loop bounded by size() instead of
509 hasPrevious() in iterator loop.
510 (listIterator): Return an AbstractListItr.
511 (removeRange): Remove bounds checking code and docs.
512 (AbstractListItr): New inner class. Code moved here from
514 (SubList.iterator): Removed. Use default implementation from
515 AbstractList instead.
516 (SubList.listIterator): As above.
517 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
518 instead of hasNext() in iterator loop.
519 (containsValue): Ditto.
525 (toString): Ditto. Use string concatenation operators, not
527 * java/util/AbstractSequentialList.java (addAll): Use a for loop
528 bounded by size() instead of hasNext() in iterator loop.
529 * java/util/AbstractSet.java (hashCode): Don't catch exception as
530 part of normal execution flow. Do an explicit null check instead.
531 * java/util/ArrayList.java (_iSize): Rename to `size'.
532 (_arData): Rename to `data'.
533 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
536 (removeRange): Make protected. Don't check bounds.
537 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
539 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
541 (addAll (int, Collection)): Check lower bounds. Simplify exception
543 (clone): Clone the data array too.
544 (indexOf): Inline doesEqual().
545 (lastIndexOf): Ditto.
546 (clear): Don't set array data to null.
547 (set): Check lower bounds. Simplify exception string.
548 (toArray): Correct comment.
549 (trimToSize): Don't update modCount, this is not a structural change.
552 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
554 (toString): Declare `bit' as long, not int.
555 (data): Made package-private, not private.
557 2000-10-27 Warren Levy <warrenl@cygnus.com>
559 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
560 array elements to true.
562 2000-10-27 Warren Levy <warrenl@cygnus.com>
564 * Makefile.am: Added locale files from Classpath.
565 * Makefile.in: Rebuilt.
566 * gnu/java/locale/Calendar.java: New file.
567 * gnu/java/locale/Calendar_de.java: New file.
568 * gnu/java/locale/Calendar_en.java: New file.
569 * gnu/java/locale/Calendar_nl.java: New file.
570 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
571 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
572 serialization compatibility.
573 (scale): Made private.
574 (serialVersionUID): New field.
575 * java/math/BigInteger.java (ival): Made transient.
576 (words): Made transient.
577 (bitCount): New serialization field.
579 (firstNonzeroByteNum): Ditto.
580 (lowestSetBit): Ditto.
583 (serialVersionUID): New field.
584 (readObject): New method.
585 (writeObject): New method.
586 * java/util/BitSet.java (serialVersionUID): New field.
587 * java/util/Calendar.java: Replaced with Classpath file.
588 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
589 of getDefault() for TimeZone or Locale instead of passing nulls.
590 * java/util/Locale.java (serialVersionUID): New field.
591 (writeObject): New method.
592 (readObject): New method.
593 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
595 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
597 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
598 (core_java_source_files): Put java.lang, java.io, and java.util here.
599 (ordinary_java_source_files): Order so that core_java_source_files are
601 (java_source_files): Reorder so that special_java_source_files are
603 * configure.in: Don't pass -I flag to gcj.
604 * Makefile.in: Rebuilt.
605 * configure: Rebuilt.
607 2000-10-25 Tom Tromey <tromey@cygnus.com>
609 * Makefile.in: Rebuilt.
610 * Makefile.am (install-exec-hook): New target.
612 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
614 * java/util/EventObject.java: Merged from classpath.
616 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
619 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
621 * java/util/AbstractSet.java (equals): Re-installed original code.
623 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
625 * Makefile.am: Added rules for libgcjx library.
626 * Makefile.in: Rebuilt.
627 * configure.in: Added check for X.
628 * configure: Rebuilt.
629 * gnu/awt/LightweightRedirector.java: New file.
630 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
631 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
632 * gnu/awt/j2d/Graphics2DImpl.java: New file.
633 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
634 * gnu/awt/j2d/MappedRaster.java: New file.
635 * gnu/awt/xlib/XCanvasPeer.java: New file.
636 * gnu/awt/xlib/XEventLoop.java: New file.
637 * gnu/awt/xlib/XEventQueue.java: New file.
638 * gnu/awt/xlib/XFontMetrics.java: New file.
639 * gnu/awt/xlib/XFramePeer.java: New file.
640 * gnu/awt/xlib/XGraphics.java: New file.
641 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
642 * gnu/awt/xlib/XPanelPeer.java: New file.
643 * gnu/awt/xlib/XToolkit.java: New file.
644 * gnu/gcj/xlib/Clip.java: New file.
645 * gnu/gcj/xlib/Colormap.java: New file.
646 * gnu/gcj/xlib/Display.java: New file.
647 * gnu/gcj/xlib/Drawable.java: New file.
648 * gnu/gcj/xlib/Font.java: New file.
649 * gnu/gcj/xlib/GC.java: New file.
650 * gnu/gcj/xlib/Pixmap.java: New file.
651 * gnu/gcj/xlib/Screen.java: New file.
652 * gnu/gcj/xlib/Visual.java: New file.
653 * gnu/gcj/xlib/WMSizeHints.java: New file.
654 * gnu/gcj/xlib/Window.java: New file.
655 * gnu/gcj/xlib/WindowAttributes.java: New file.
656 * gnu/gcj/xlib/XAnyEvent.java: New file.
657 * gnu/gcj/xlib/XButtonEvent.java: New file.
658 * gnu/gcj/xlib/XColor.java: New file.
659 * gnu/gcj/xlib/XConfigureEvent.java: New file.
660 * gnu/gcj/xlib/XConnectException.java: New file.
661 * gnu/gcj/xlib/XEvent.java: New file.
662 * gnu/gcj/xlib/XException.java: New file.
663 * gnu/gcj/xlib/XExposeEvent.java: New file.
664 * gnu/gcj/xlib/XID.java: New file.
665 * gnu/gcj/xlib/XImage.java: New file.
666 * gnu/gcj/xlib/XUnmapEvent.java: New file.
667 * gnu/gcj/xlib/natClip.cc: New file.
668 * gnu/gcj/xlib/natColormap.cc: New file.
669 * gnu/gcj/xlib/natDisplay.cc: New file.
670 * gnu/gcj/xlib/natDrawable.cc: New file.
671 * gnu/gcj/xlib/natFont.cc: New file.
672 * gnu/gcj/xlib/natGC.cc: New file.
673 * gnu/gcj/xlib/natPixmap.cc: New file.
674 * gnu/gcj/xlib/natScreen.cc: New file.
675 * gnu/gcj/xlib/natVisual.cc: New file.
676 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
677 * gnu/gcj/xlib/natWindow.cc: New file.
678 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
679 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
680 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
681 * gnu/gcj/xlib/natXColor.cc: New file.
682 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
683 * gnu/gcj/xlib/natXException.cc: New file.
684 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
685 * gnu/gcj/xlib/natXImage.cc: New file.
686 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
687 * java/awt/EventDispatchThread.java: Start thead on creation.
689 2000-10-20 Tom Tromey <tromey@cygnus.com>
691 From Arno J. Klaassen:
692 * interpret.cc: Include <stdlib.h> for alloca.
693 * defineclass.cc: Include <stdlib.h> for alloca.
695 * Makefile.in: Rebuilt.
696 * Makefile.am: Include deps.mk.
697 (GCJCOMPILE): Added -MD, -MT, and -MF.
698 ($(javao_files)): Don't depend on libgcj.zip.
699 (all-recursive): New target.
700 (%.lo:%.cc): Do dependency tracking.
701 ($(nat_headers)): Don't depend on libgcj.zip.
702 * configure: Rebuilt.
703 * configure.in: Make .d files and deps.mk.
705 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
707 * exception.cc: Don't #include "exception".
708 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
710 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
711 * Makefile.in: Updated.
713 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
715 * java/awt/peer/ChoicePeer.java (addItem): Removed.
716 * java/awt/peer/ComponentPeer.java (disable): Removed.
719 (minimumSize): Removed.
720 (preferredSize): Removed.
723 * java/awt/peer/ListPeer.java (addItem): Removed.
725 (minimumSize): Removed.
726 (preferredSize): Removed.
727 (setMultipleSelections): Removed.
728 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
729 (remove): Renamed from removeMenu.
730 * java/awt/peer/MenuItemPeer.java (disable): Removed.
732 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
733 (remove): Renamed from removeItem.
734 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
735 (getMinimumSize): Removed.
736 (getPreferredSize): Removed.
737 (minimumSize): Removed.
738 (preferredSize): Removed.
739 (replaceText): Removed.
740 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
741 (preferredSize): Removed.
742 (getMinimumSize): Removed.
743 (getPreferredSize): Removed.
744 (setEchoCharacter): Removed.
746 2000-10-10 Warren Levy <warrenl@cygnus.com>
748 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
749 * java/sql/Date.java (serialVersionUID): New field.
750 * java/sql/Time.java (serialVersionUID): New field.
751 * java/sql/Timestamp.java (serialVersionUID): New field.
752 * java/text/ChoiceFormat.java (serialVersionUID): New field.
753 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
754 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
755 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
756 (readObject): New serialization method.
757 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
758 (serialVersionOnStream): New field.
759 (readObject): New serialization method.
760 (getMonetaryDecimalSeparator): New method.
761 (setMonetaryDecimalSeparator): New method.
762 * java/text/NumberFormat.java (maxFractionDigits): New field.
763 (maxIntegerDigits): New field.
764 (minFractionDigits): New field.
765 (minIntegerDigits): New field.
766 (serialVersionOnStream): New field.
767 (serialVersionUID): New field.
768 (readObject): New serialization method.
769 (writeObject): New serialization method.
770 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
771 (serialVersionOnStream): New field.
772 (serialVersionUID): New field.
773 (readObject): New serialization method.
775 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
777 * configure.in (GCJ): Avoid bogus error message when looking for
778 (and not finding) gcj in the build tree.
779 * configure: Rebuilt.
781 2000-10-09 Tom Tromey <tromey@cygnus.com>
783 * configure: Rebuilt.
784 * configure.in: Include sys/types.h when checking for socklen_t.
785 From Arno J. Klaassen.
787 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
789 * include/jvm.h: Enable __builtin_expect().
791 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
792 the main program. Fix for PR libgcj/341.
794 2000-10-07 Tom Tromey <tromey@cygnus.com>
796 * java/util/Properties.java: Merged with Classpath version.
798 2000-10-05 Tom Tromey <tromey@cygnus.com>
800 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
801 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
802 * java/lang/Class.h (Object): Added `class$' field.
803 * java/lang/Object.h (Object): Added `class$' field.
804 * defineclass.cc (ClassClass): Use `class$' form.
805 (ClassObject): Likewise.
806 * resolve.cc (ClassObject): Use `class$' form.
807 (ObjectClass): Likewise.
808 * interpret.cc (ClassError): Removed.
809 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
811 (IntegerClass): Likewise.
812 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
814 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
815 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
816 SerializableClass): Likewise.
817 Include Serializable.h, Cloneable.h.
818 * java/lang/natSystem.cc (SystemClass): Removed.
819 (init_properties): Use `class$' form.
820 * java/lang/natObject.cc (CloneableClass): Removed.
821 (clone): Use `class$' form.
822 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
823 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
824 ConstructorClass): Likewise.
825 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
826 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
827 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
828 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
830 (ClassClass): Likewise.
831 * include/jvm.h (StringClass): Use `class$' form.
832 * prims.cc (ObjectClass): Removed.
833 (_Jv_RunMain): Use `class$' form.
834 (_Jv_AllocObject): Likewise.
835 * jni.cc (ClassClass): Use `class$' form.
836 (ThrowableClass): Likewise.
837 (ObjectClass): Likewise.
838 (MethodClass): Likewise.
839 (ThreadGroupClass): Likewise.
840 (NativeThreadClass): Likewise.
841 * boehm.cc (ObjectClass): Removed.
842 (ClassClass): Removed.
843 (_Jv_MarkObj): Use `class$' form.
844 * gcj/field.h (JvFieldIsRef): Use `class$' form.
847 2000-10-05 Warren Levy <warrenl@cygnus.com>
849 * Makefile.am: Removed java/io/Replaceable.java and
850 java/io/Resolvable.java.
851 * Makefile.in: Rebuilt.
852 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
854 * java/io/ObjectInputStream.java (processResolution): Fixed typo
856 (processResolution): Handle readResolve method via reflection with
857 removal of Resolvable interface.
858 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
859 method via reflection with removal of Replaceable interface.
860 * java/io/Replaceable.java: Removed.
861 * java/io/Resolvable.java: Removed.
862 * java/security/Key.java (serialVersionUID): New field.
863 * java/security/Provider.java (serialVersionUID): New field.
864 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
866 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
868 * java/sql/DataTruncation.java (serialVersionUID): New field.
869 * java/sql/SQLException.java (serialVersionUID): New field.
870 * java/sql/SQLWarning.java (serialVersionUID): New field.
871 * java/util/Date.java (serialVersionUID): New field.
872 (millis): Made transient.
873 (readObject): New method.
874 (writeObject): New method.
876 2000-10-05 Tom Tromey <tromey@cygnus.com>
878 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
880 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
882 * prims.cc (_Jv_argv, _Jv_argc): New fields.
883 (JvRunMain): Set _Jv_argv and _Jv_argc.
884 * java/awt/Component.java: Minor fixes.
885 * java/awt/Image.java (UndefinedProperty): Initialize final field.
886 * java/awt/Toolkit.java (systemEventQueue): Removed.
887 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
888 * java/awt/Window.java (getToolkit): Don't call super.
889 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
890 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
891 * gnu/awt/gtk/GtkComponentPeer.java: New file.
892 * gnu/awt/gtk/GtkContainerPeer.java: New file.
893 * gnu/awt/gtk/GtkFramePeer.java: New file.
894 * gnu/awt/gtk/GtkMainThread.java: New file.
895 * gnu/awt/gtk/GtkToolkit.java: New file.
896 * gnu/awt/gtk/GtkWindowPeer.java: New file.
897 * gnu/awt/gtk/gtkcommon.cc: New file.
898 * gnu/awt/gtk/gtkcommon.h: New file.
899 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
900 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
901 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
902 * gnu/awt/gtk/natGtkMainThread.cc: New file.
903 * gnu/awt/gtk/natGtkToolkit.cc: New file.
904 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
906 2000-09-30 Tom Tromey <tromey@cygnus.com>
908 * posix-threads.cc (_Jv_CondWait): Check to see if we are
909 interrupted before modifying the cv's wait set.
912 2000-09-30 Hans Boehm <boehm@acm.org>
913 Bryce McKinlay <bryce@albatross.co.nz>
915 Implement bitmap descriptor based marking for Boehm GC.
917 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
918 * configure: Rebuilt.
919 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
920 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
921 method get_finalizer().
922 (struct _Jv_ArrayVTable): Ditto. Declare method array with
923 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
924 (_Jv_AllocObj): Add new jclass parameter.
925 (_Jv_AllocArray): Ditto.
926 (_Jv_BuildGCDescr): New prototype.
927 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
928 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
929 get_finalizer() instead of direct finalizer vtable offset.
930 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
931 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
932 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
933 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
934 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
935 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
936 (_Jv_DetermineVTableIndex): Ditto.
937 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
938 calculations to account for new gc_descr field.
939 * boehm.cc: #include gc_gcj.h.
940 (obj_kind_x, obj_free_list): `#if 0'-ed away.
941 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
942 New commentary from HB. Mark the classes vtable.
943 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
944 (GC_DEFAULT_DESCR): New #define.
945 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
946 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
947 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
948 scan conservativly if size is less than min_heap_addr. Set vtable
949 pointer of new object before returning.
950 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
951 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
952 allocation for obj_kind_x.
953 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
954 (_Jv_AllocObj): Set vtable on returned object.
955 (_Jv_AllocArray): Ditto.
956 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
957 (_Jv_NewPrimArray): Ditto.
958 (_Jv_AllocObj): Declare as a friend.
959 (_Jv_AllocArray): Ditto.
960 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
961 from &ObjectClass into new array class. Remove offset-by-one
962 adjustments from `method' size calculations to account for gc_descr
965 2000-09-26 Tom Tromey <tromey@cygnus.com>
967 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
970 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
972 * java/lang/natSystem.cc (file_encoding): Added return statement.
974 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
976 * Makefile.am: Re-work shell commands that exceeded command-line
978 * Makefile.in: Rebuilt.
980 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
982 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
983 * java/lang/natDouble.cc: Likewise.
984 * java/lang/reflect/natMethod.cc: Likewise.
985 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
987 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
989 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
991 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
992 * acinclude.m4: Arrange for automake to not bring in a new
993 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
994 * Makefile.am: Leave it up to automake to subst GCJ.
995 * aclocal.m4, configure, Makefile.in: Rebuilt.
997 2000-09-13 Tom Tromey <tromey@cygnus.com>
999 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1000 (get): Ensure Boolean class is initialized.
1001 * java/lang/reflect/natField.cc (BooleanClass): New define.
1002 (get): Ensure Boolean class is initialized.
1004 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1006 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1007 Initialize with anonymous class.
1008 (compareToIgnoreCase): New method.
1010 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1011 (uncaughtException): Set had_uncaught_exception.
1012 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1013 exit with error status if set.
1014 (_Jv_RunMain): Ditto.
1016 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1018 * configure: Rebuilt with new ../libtool.m4.
1020 2000-09-11 Tom Tromey <tromey@cygnus.com>
1022 * java/lang/reflect/Field.java (toString): Don't rely on
1025 2000-09-08 Tom Tromey <tromey@cygnus.com>
1027 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1028 default decoder use iconv.
1029 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1030 Let default encoder use iconv.
1031 * configure: Rebuilt.
1032 * configure.in: Check for nl_langinfo and <langinfo.h>.
1033 * java/lang/natSystem.cc (file_encoding): New function.
1034 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1036 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1038 * acinclude.m4: Simplify the tests for CC and CXX.
1039 * aclocal.m4, configure: Rebuilt.
1041 * acinclude.m4: Include libtool macros from the source tree.
1042 * aclocal.m4, configure: Rebuilt.
1044 2000-09-08 Warren Levy <warrenl@cygnus.com>
1046 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1047 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1048 * java/io/File.java (writeObject): Added.
1049 (readObject): Added.
1050 (serialVersionUID): Added.
1051 * java/io/ObjectOutputStream.java (writeObject): Initialized
1052 fieldsAlreadyWritten before recursion rather than after.
1053 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1054 * java/io/OptionalDataException.java (serialVersionUID): Added.
1055 (OptionalDataException): Made package private.
1056 * java/io/SyncFailedException.java (SyncFailedException): Removed
1057 default constructor to match spec.
1058 * java/lang/Boolean.java (serialVersionUID): Added.
1059 * java/lang/Byte.java (serialVersionUID): Added.
1060 * java/lang/Character.java (serialVersionUID): Added.
1061 * java/lang/Double.java (serialVersionUID): Added.
1062 * java/lang/Float.java (serialVersionUID): Added.
1063 * java/lang/Integer.java (serialVersionUID): Added.
1064 * java/lang/Long.java (serialVersionUID): Added.
1065 * java/lang/Number.java (serialVersionUID): Added.
1066 * java/lang/Short.java (serialVersionUID): Added.
1067 * java/lang/String.java (serialVersionUID): Added.
1068 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1070 * java/lang/reflect/InvocationTargetException.java
1071 (serialVersionUID): Added.
1072 * java/net/URL.java (handler): Made transient.
1073 (hashCode): Added field for serialization, per spec. and use
1074 cached value if available.
1075 (serialVersionUID): Added.
1076 (URL): Initialize hashCode.
1077 (set): Adjust hashCode.
1078 (readObject): New Method to initialize the protocol handler when
1080 (writeObject): New method.
1081 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1082 * java/text/Collator.java: Removed 'implements Serializable'.
1083 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1084 * java/util/Properties.java (serialVersionUID): Added.
1085 * java/util/Random.java (serialVersionUID): Added.
1086 (seed): Made private.
1087 (nextNextGaussian): Made private.
1088 (haveNextNextGaussian): Made private.
1089 * java/util/Stack.java (serialVersionUID): Added.
1090 * java/util/TimeZone.java (serialVersionUID): Added.
1091 * java/util/Vector.java (serialVersionUID): Added.
1093 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1095 * Makefile.am (Thread.h): Don't be friends with native threads
1097 * Makefile.in: Rebuilt.
1098 * java/lang/Thread.java (interrupt_flag): Make package-private.
1100 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1102 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1103 to avoid long long division.
1105 2000-09-06 Tom Tromey <tromey@cygnus.com>
1107 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1109 * java/lang/reflect/Method.java (toString): Use `getName' for
1112 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1113 `args' if method takes no parameters.
1115 Fix for PR java.lang/339:
1116 * java/lang/natPosixProcess.cc (fail): New function.
1117 (cleanup): New function.
1118 (startProcess): Use them. Create pipe so child can communicate
1119 exec failure back to parent.
1121 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1123 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1125 (send): Undo last patch. Remove the label only.
1127 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1129 * java/net/natInetAdress.cc: Ditto.
1131 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1133 2000-09-05 Tom Tromey <tromey@cygnus.com>
1135 * doc/cni.sgml: Updated from master copy.
1137 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1139 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1141 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1143 * java/lang/fdlibm.h: #undef __P if previously defined.
1144 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1145 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1149 2000-09-04 Tom Tromey <tromey@cygnus.com>
1151 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1154 2000-09-04 Anthony Green <green@redhat.com>
1156 Fix for PR java.io/203:
1157 * java/io/File.java (createTempFile): Obey directory argument.
1158 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1159 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1160 variable to set java.io.tmpdir on non-WIN32 systems.
1162 2000-09-04 Anthony Green <green@redhat.com>
1164 * java/io/File.java (deleteOnExit): New method.
1165 * gnu/gcj/runtime/FileDeleter.java: New class.
1166 * java/lang/natRuntime.cc (exit): Call
1167 FileDeleter.deleteOnExitNow()
1168 * Makefile.am: Add FileDeleter.java.
1169 * Makefile.in: Rebuilt.
1171 2000-09-02 Tom Tromey <tromey@cygnus.com>
1173 * Makefile.in: Rebuilt.
1174 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1175 environment variable.
1177 2000-09-01 Andrew Haley <aph@redhat.com>
1179 * java/io/StreamTokenizer.java: Don't throw a
1180 NumberFormatException if a field is numeric as far as the
1181 StreamTokenizer is concerned but not as far as Double.valueOf() is
1182 concerned: return a zero instead.
1184 2000-08-30 Tom Tromey <tromey@cygnus.com>
1186 * Makefile.in: Rebuilt.
1187 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1189 2000-08-28 Tom Tromey <tromey@cygnus.com>
1191 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1192 gnu/gcj/awt/ComponentDataBlitOp.java,
1193 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1194 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1195 java/awt/color/ICC_ColorSpace.java,
1196 java/awt/color/ICC_Profile.java,
1197 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1198 java/awt/image/ComponentColorModel.java,
1199 java/awt/image/ComponentSampleModel.java,
1200 java/awt/image/DataBuffer.java,
1201 java/awt/image/DataBufferByte.java,
1202 java/awt/image/DataBufferInt.java,
1203 java/awt/image/DataBufferUShort.java,
1204 java/awt/image/DirectColorModel.java,
1205 java/awt/image/IndexColorModel.java,
1206 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1207 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1208 java/awt/image/SinglePixelPackedSampleModel.java,
1209 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1210 Removed Latin-1 copyright symbols.
1211 * java/util/zip/ZipFile.java: Indentation fixes.
1213 2000-08-27 Mark Wielaard <mark@klomp.org>
1215 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1216 constructor, close can delete the file, finalize calls close.
1217 * java/util/jar/JarFile.java: Constructor that takes mode now
1220 2000-08-27 Anthony Green <green@redhat.com>
1222 * java/util/ArrayList.java, java/util/Timer.java,
1223 java/util/LinkedList.java, java/util/TimerTask.java,
1224 java/util/HashMap.java, java/util/AbstractMap.java,
1225 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1226 java/util/SortedSet.java: Imported from GNU Classpath.
1227 * Makefile.in: Rebuilt.
1228 * Makefile.am: Added new files.
1230 2000-08-26 Anthony Green <green@redhat.com>
1232 * Makefile.in: Rebuilt.
1233 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1236 * prims.cc: Include ClassLoader.h.
1237 (_Jv_RunMain): When executing jar files, classpath must be the jar
1238 file only. Lose our reference to the system ClassLoader in order
1239 to get a new one with the correct classpath.
1240 * java/lang/natSystem.cc (init_properties): When executing a jar
1241 file, only use the jar file for java.class.path.
1243 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1244 for bytecode archives.
1246 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1247 exists, but not Main-Class.
1249 2000-08-23 Mark Wielaard <mark@klomp.org>
1251 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1252 return -1 when fill() has no more data for the Inflater.
1254 2000-08-23 Mark Wielaard <mark@klomp.org>
1256 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
1257 write(String) already does.
1259 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1261 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
1262 to `alive_flag', call `init'.
1263 (init): New native method.
1264 * gnu/gcj/jni/natNativeThread.cc (init): New native method
1267 2000-08-21 Mark Wielaard <mark@klomp.org>
1269 * Makefile.in: Rebuilt.
1270 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
1272 (java/lang/reflect/Field.h): Likewise.
1273 (java/lang/reflect/Method.h): Likewise.
1274 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
1277 2000-08-21 Tom Tromey <tromey@cygnus.com>
1279 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
1282 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
1284 * java/lang/natSystem.cc (init_properties): Change sourceware
1285 reference to sources.redhat.com.
1287 * include/java-props.h: Add _Jv_Jar_Class_Path.
1288 * prims.cc: Ditto. Set it from `gij -jar file' option.
1290 * java/lang/natSystem.cc (init_properties): Set java.class.path
1292 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
1294 * java/util/PropertyPermission.java: Import from GNU Classpath.
1295 * Makefile.in: Rebuilt.
1296 * Makefile.am: Add java/util/PropertyPermission.java.
1297 * java/lang/System.java: Add setProperty method.
1299 * gij.cc (main): Add -jar option to execute jar files.
1300 (help): Describe -jar option.
1301 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
1302 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
1303 * gnu/gcj/runtime/FirstThread.java (main): New method.
1305 * java/util/jar/Attributes.java: Correct comment spelling.
1307 2000-08-20 Mark Wielaard <mark@klomp.org>
1309 * java/util/zip/Adler32.java: Make private variables really private
1310 * java/util/zip/CRC32.java: Make private variables really private
1311 * java/util/zip/CheckedInputStream.java: skip() could skip to much
1313 * java/util/zip/InflaterInputStream.java: skip() could skip to
1315 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
1316 * java/util/zip/ZipFile.java: size() new 1.2 method
1317 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
1318 ZipEntry. since 1.2 available() always returns just 1 or 0 when
1321 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
1323 * java/util/jar/JarFile.java: Don't call
1324 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
1327 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
1329 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
1330 Read the entire contents of the class file, not just what is
1333 * java/net/JarURLConnection.java: getEntry doesn't take any
1334 arguments. Return null if element is null.
1336 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
1337 size from the archive, not the inflated size.
1339 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
1340 java.util.zip.ZipFile.getEntry.
1342 * gij.cc (help): Change sourceware reference to
1345 2000-08-19 Tom Tromey <tromey@cygnus.com>
1347 * java/util/zip/ZipInputStream.java (createZipEntry):
1350 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
1352 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
1353 java/util/jar/JarException.java, java/util/jar/JarFile.java,
1354 java/util/jar/JarInputStream.java,
1355 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
1356 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
1357 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
1358 java/security/cert/CRL.java, java/security/cert/CRLException.java,
1359 java/security/cert/Certificate.java,
1360 java/security/cert/CertificateEncodingException.java,
1361 java/security/cert/CertificateException.java,
1362 java/security/cert/CertificateExpiredException.java,
1363 java/security/cert/CertificateFactory.java,
1364 java/security/cert/CertificateFactorySpi.java,
1365 java/security/cert/CertificateNotYetValidException.java,
1366 java/security/cert/CertificateParsingException.java,
1367 java/security/cert/X509CRL.java,
1368 java/security/cert/X509CRLEntry.java,
1369 java/security/cert/X509Certificate.java,
1370 java/security/cert/X509Extension.java: Imported from Classpath.
1371 * java/util/Hashtable.java: Imported from Classpath.
1373 * java/util/zip/ZipInputStream.java: Create stub for
1376 * gcj/javaprims.h: Updated class list.
1378 * Makefile.in, gcj/Makefile.in: Rebuilt.
1379 * Makefile.am (ordinary_java_source_files): Add these new classes.
1381 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1383 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
1384 * gnu/gcj/awt/GLightweightPeer.java: New file.
1385 * java/awt/BorderLayout.java: Implemented all methods.
1386 * java/awt/Button.java (actionListener, actionCommand): Renamed
1387 and modifier change.
1388 (addNotify): Call super.
1389 (dispatchEventImpl): New method.
1390 (getListeners): New method.
1391 (label): Made package-private, not private.
1392 * java/awt/Canvas.java: Implemented class body.
1393 * java/awt/Color.java (brighter): New method.
1394 (darker): New method.
1395 (hashCode): New method.
1396 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
1397 (getGraphicsConfiguration): Delegate to
1398 getGraphicsConfigurationImpl().
1399 (getGraphicsConfigurationImpl): New method.
1400 (getToolkit): Only return value from peer if not null.
1401 (isDisplayable): Check with parent.
1402 (isShowing): No parent implies not showing.
1403 (getForeground): Check parent property if local is null.
1404 (getBackground): Likewise.
1405 (getFont): Likewise.
1406 (setForeground): Inform peer.
1407 (setBackground): Likewise
1408 (setLocale): Invalidate component.
1409 (getColorModel): Implemented.
1410 (setLocation): Invalidate, or ignore if no change.
1411 (setSize): Invalidate, or ignore if no change.
1412 (setBounds): Invalidate, or ignore if no change.
1413 (isOpaque): By default, heavyweight implies opaque.
1414 (isLightweight): Implemented.
1415 (getMaximumSize): Implemented.
1416 (doLayout): Implemented, NOP.
1417 (validate): Implemented, NOP.
1418 (invalidate): Only propagate to parent if parent was valid.
1419 (getGraphics): Implemented.
1420 (getFontMetrics): Implemented.
1421 (update): Implemented.
1422 (paintAll): Implemented.
1423 (repaint): Implemented all repaint methods.
1424 (print): Implemented.
1425 (printAll): Implemented.
1426 (createImage): Implemented.
1427 (dispatchEvent): Give the peer a chance to handle the event.
1428 (dispatchEventImpl): Dispatch paint events.
1429 (enableEvents): Lightweights enable events on parent component.
1430 (coalesceEvents): Coalesce paint events, and select event type
1432 (coalescePaintEvents): New method.
1433 (processEvent): Fix unfortunate ordering of statements, and call
1434 correct method for MOUSE_CLICKED.
1435 (processPaintEvent): New method.
1436 (addNotify): Allow container to notify children before event
1437 mask is set in peer.
1438 (addNotifyContainerChildren): New method.
1439 (removeNotify): Visibility should not change on removeNotify.
1440 (paramString): Implemented.
1441 (list): Implemented two of the list methods.
1442 * Container (myInsets): Removed, insets are managed by peer.
1443 (getInsets): Query peer.
1444 (addImpl): Fix reparenting, enable events for lightweights,
1445 initialize component array.
1446 (validate): Call doLayout in validateTree() instead.
1447 (validateTree): Do nothing if already valid. Call beginValidate(),
1448 endValidate() on peer. Call validateTree() instead of validate()
1449 for children that are containers. Mark valid after validation of
1451 (setFont): Partial implementation.
1452 (paint): Implemented.
1453 (visitChildren): New method.
1454 (visitChild): New method.
1455 (update): Implemented.
1456 (print): Implemented.
1457 (paintComponents): Implemented.
1458 (printComponents): Consider translation and clipping.
1459 (getComponentAt): Ignore invisible children. Return this if no
1461 (addNotify): Call super.
1462 (addNotifyContainerChildren): New method.
1463 (paramString): Implemented.
1464 (list): Implemented.
1465 * java/awt/EventQueue (invokeAndWait): Get system event queue the
1467 (invokeLater): Likewise.
1468 (isDispatchThread): Likewise.
1469 * java/awt/FontMetrics (getLeading): Formula change.
1470 (getDescent): Consider leading also.
1471 (getMaxAscent): Default to getAscent().
1472 (getMaxDescent): Default to getDescent.
1473 (getMaxAdvance): Return value signifying unknown.
1474 (charWidth): Both methods implemented.
1475 (charsWidth): Implemented.
1476 (bytesWidth): Implemented.
1477 (getWidths): Implemented.
1478 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
1480 (Frame): Rearragend constuctor chaining to disallow null being
1481 passed as a graphics configuration.
1482 (getTitle): Return empty string if null.
1484 (getIconImage): New method.
1485 (setIconImage): New method.
1486 (finalize): New method.
1487 (setMenuBar): Notify peer.
1488 (isResizable): New method.
1489 (setResizable): New method.
1490 (getState): New method.
1492 (remove): Implemented.
1493 (removeNotify): New method.
1494 (getFrames): New method.
1495 * java/awt/Graphics.java: Implemented body of class.
1496 * java/awt/Graphics2D.java: New file.
1497 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
1498 * java/awt/Image.java: Implemented body of class.
1499 * java/awt/Panel.java (Panel): Call correct super constructor.
1500 (addNotify): Implemented.
1501 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
1502 * java/awt/RenderingHints.java: New file.
1503 * java/awt/Toolkit.java (createComponent): Implemented.
1504 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
1505 * java/awt/Window.java (Window): Two new constructors. Reordered
1506 constructor chaining.
1507 (getGraphicsConfigurationImpl): New method.
1508 (finalize): Call super.
1509 (addNotify): Call super.
1510 (pack): Do layout stuff.
1511 (show): Ensure that peer exists and that component is valid.
1512 (dispose): Dispose owned children.
1513 (getOwner): Simplify code, casting null pointers is valid.
1514 (getGraphicsConfiguration): Ask peer if local value is null.
1515 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
1517 * java/awt/image/BufferedImage.java: New file.
1518 * java/awt/image/RasterOp.java: New file.
1519 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
1520 More powerfull replacement for getColorModel().
1521 (getColorModel) Removed.
1522 (setEventMask) New method.
1523 * Makefile.am: Added new files.
1524 * Makefile.in: Rebuilt.
1526 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
1528 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
1529 (finit_leg_name): New global.
1530 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
1531 `$finit$'. This is a backward compatibility hack.
1532 (java::lang::Class::_getMethods): Likewise.
1534 2000-08-15 Andrew Haley <aph@cygnus.com>
1536 * include/jvm.h (_Jv_HashCode): New hash code.
1538 2000-08-15 Tom Tromey <tromey@cygnus.com>
1540 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
1542 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
1544 * THANKS: More thanks.
1546 2000-08-10 Tom Tromey <tromey@cygnus.com>
1548 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
1550 (connect): Likewise.
1552 (getOption): Likewise.
1553 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
1554 case when errno not set.
1557 (receive): Likewise.
1558 (mcastGrp): Likewise.
1559 (setOption): Likewise.
1560 (getOption): Likewise.
1562 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
1563 John Stracke <francis@ecal.com>
1565 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
1566 (connect): Don't falsely claim HTTP/1.1 compliance. Call
1568 (disconnect): Don't unset connected flag.
1569 (getHeaderField (String)): Call connect() if not connected.
1570 (getHeaderField (int)): Ditto.
1571 (getHeaderFieldKey): Ditto.
1572 (getHttpHeaders): Don't call connect().
1573 * java/net/HttpURLConnection.java (instanceFollowRedirects,
1574 gotResponseVals): New fields.
1575 (getResponseCode): Call getResponseVals() conditionally.
1576 (getResponseMessage): Ditto.
1577 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
1579 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
1581 * Makefile.am: Move beans and applet classes to awt_java_source_files.
1582 * Makefile.in: Rebuilt.
1583 * java/awt/Color.java (getTransparency): New method.
1584 * java/awt/Component.java: Various updates.
1585 * java/awt/Container.java (removeNotify): Call super.removeNotify()
1586 after dealing with children.
1587 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
1588 * java/awt/Window.java: Various new methods and updates.
1589 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
1591 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
1592 * java/awt/event/WindowEvent.java (paramString): Ditto.
1593 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
1595 * java/awt/geom/Point2D.java (clone): Ditto.
1596 * java/awt/geom/RectangularShape.java (clone): Ditto.
1597 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
1598 isAlphaPremultiplied): Make package-private, not private.
1600 2000-08-08 Tom Tromey <tromey@cygnus.com>
1602 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
1603 surrogate characters.
1604 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
1606 (write): Correct handling of surrogate characters.
1608 2000-08-07 Tom Tromey <tromey@cygnus.com>
1610 * java/lang/reflect/Method.java (hashCode): Use getName().
1611 (toString): Likewise.
1612 * java/lang/reflect/natMethod.cc (getType): Initialize
1615 * java/lang/reflect/Method.java (toString): Use Class.getName, not
1617 * java/lang/reflect/Field.java (toString): Correct formatting.
1620 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
1622 (receive): Streamlined.
1624 2000-08-05 Tom Tromey <tromey@cygnus.com>
1626 * java/io/PrintWriter.java: Merged comments from Classpath.
1627 (printlnUnsynchronized): Removed.
1628 (println()): Print the separator.
1629 (println): Call println(), not printlnUnsynchronized.
1630 (out): Now protected, to match spec.
1632 2000-08-04 Tom Tromey <tromey@cygnus.com>
1634 * java/io/StreamTokenizer.java (TT_NONE): Now private.
1635 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
1638 2000-08-03 Warren Levy <warrenl@cygnus.com>
1640 * java/io/ObjectInputStream.java (readFields): Turn off
1641 readDataFromBlock while reading via GetField.
1642 (GetField$1.get(String, Object)): Pass Class of default value to
1644 (getField): Allow for null default values.
1646 * java/io/ObjectOutputStream.java: Fixed typo in comment.
1647 (PutField$1.put): Fixed calls of checkType in most of the put
1648 methods to pass the correct parameter.
1649 (PutField$1.put(String, Object)): Allow for null value arg.
1650 (PutField$1.write): Turn off writeDataAsBlocks while writing via
1653 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
1654 typo in spec'ed field name.
1655 (getSerialPersistentFields): Changed spelling of method to match
1656 the correct spelling of the spec'ed field name.
1658 2000-08-03 Tom Tromey <tromey@cygnus.com>
1660 * Makefile.in: Rebuilt.
1661 * Makefile.am (awt_java_source_files): Added new files.
1663 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
1665 * Makefile.am: Add new AWT stubs.
1666 * java/awt/Canvas.java: New placeholder class.
1667 * java/awt/Checkbox.java: Ditto.
1668 * java/awt/CheckboxMenuItem.java: Ditto.
1669 * java/awt/Choice.java: Ditto.
1670 * java/awt/Dialog.java: Ditto.
1671 * java/awt/FileDialog.java: Ditto.
1672 * java/awt/List.java: Ditto.
1673 * java/awt/ScrollPane.java: Ditto.
1674 * java/awt/TextField.java: Ditto.
1675 * java/awt/datatransfer/Clipboard.java: Ditto.
1676 * java/awt/Component.java (treeLock): Now a static String. Add comment.
1677 * java/awt/MenuItem.java (MenuItem): Add default constructor.
1678 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
1679 Some commented out. Partially implemented.
1680 * java/awt/natToolkit.cc: Removed file.
1682 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
1684 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
1685 Fixes "make -j" builds.
1686 * Makefile.in: Rebuild.
1688 2000-08-02 Tom Tromey <tromey@cygnus.com>
1690 * Makefile.in: Rebuilt.
1691 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
1692 * java/net/natPlainSocketImpl.cc: Include posix.h.
1693 (accept): Use _Jv_select.
1694 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
1695 (receive): Use _Jv_select.
1696 * java/io/natFileDescriptorPosix.cc: Include posix.h.
1697 (available): Use _Jv_select.
1698 * java/lang/natSystem.cc: Include posix.h.
1699 (currentTimeMillis): Use _Jv_gettimeofday.
1700 * include/posix.h: New file.
1701 * posix.cc: New file.
1703 * scripts/encodings.pl: New file.
1704 * Makefile.in: Rebuilt.
1705 * Makefile.am (convert_source_files): Added IOConverter.java.
1706 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
1708 (getDefaultDecodingClass): Canonicalize default encoding name.
1709 (getEncoder): Likewise.
1710 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
1712 (getDefaultDecodingClass): Canonicalize default encoding name.
1713 (getDecoder): Likewise.
1714 * gnu/gcj/convert/IOConverter.java: New file.
1716 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1718 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
1719 to match C declaration in ffi.h.
1720 * Makefile.am: Add java/awt/Button.java.
1721 * Makefile.in: Rebuilt.
1723 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
1725 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
1726 cast of the second argument to `ffi_raw_call' changed to match
1729 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1731 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
1732 argument to `ffi_raw_call' changed to match prototype.
1734 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
1736 * java/awt/Component.java (toString): Implemented.
1737 * java/awt/Container.java (addImpl): Remove FIXME. Only call
1738 dispatchEvent() to dispatch the event.
1739 (removeImpl): Ditto.
1741 2000-07-30 Anthony Green <green@redhat.com>
1743 * java/awt/Component.java: Add treeLock object.
1744 (getTreeLock): Implement.
1745 (isShowing): Implement.
1747 2000-07-30 Tom Tromey <tromey@cygnus.com>
1749 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
1751 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
1753 * java/awt/Window.java (addNotify): Wrote.
1754 (addWindowListener): Wrote.
1756 (getWarningString): Wrote.
1757 (processEvent): Wrote.
1758 (processWindowEvent): Wrote.
1759 (removeWindowListener): Wrote.
1760 (show): Call validate(), setVisible().
1764 * java/awt/Toolkit.java (createWindow): Declare.
1766 * java/awt/Frame.java (addNotify): Use getToolkit to find
1769 * java/awt/Component.java (invalidate): Wrote.
1771 (getToolkit): Wrote.
1773 * java/awt/Container.java (addContainerListener): Removed
1775 (removeContainerListener): Likewise.
1777 (add(Component)): Use it.
1778 (add(String,Component)): Likewise.
1779 (add(Component,int)): Likewise.
1780 (add(Component,Object)): Likewise.
1781 (add(Component,Object,int)): Likewise.
1783 (getAlignmentX): Wrote.
1784 (getAlignmentY): Wrote.
1785 (getComponentAt): Wrote.
1786 (getMaximumSize): Wrote.
1787 (invalidate): Wrote.
1788 (list(PrintStream,int)): Wrote.
1789 (list(PrintWriter,int)): Wrote.
1790 (getMinimumSize): Wrote.
1791 (getPreferredSize): Wrote.
1792 (printComponents): Wrote.
1793 (processContainerEvent): Look at containerListener, not
1795 (remove): Added event processing and peer destruction.
1796 (removeAll): Use remove.
1797 (removeNotify): Wrote.
1799 (validateTree): Wrote.
1801 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
1802 * java/awt/Label.java (addNotify): Do nothing if peer exists.
1803 * java/awt/Container.java (addNotify): Don't create Container
1805 * java/awt/Button.java (addNotify): Do nothing if peer exists.
1807 2000-07-30 Tom Tromey <tromey@cygnus.com>
1809 * java/awt/Container.java (remove(int)): Wrote.
1810 (remove(Component)): Wrote.
1811 (add(Component)): Wrote.
1812 (add(Component,int)): Wrote.
1814 (addNotify): Set our own peer.
1815 * java/awt/Scrollbar.java (listeners): Changed type.
1816 (Scrollbar): Don't initialize listeners.
1818 (setValue): Call setValues.
1819 (setMinimum): Likewise.
1820 (setMaxPriority): Likewise.
1821 (setVisibleAmount): Likewise.
1823 (setUnitIncrement): Forward to peer.
1824 (setLineIncrement): Call setUnitIncrement.
1825 (setPageIncrement): Call setBlockIncrement.
1826 (setBlockIncrement): Forward to peer.
1827 (addAdjustmentListener): Rewrote.
1828 (removeAdjustmentListener): Rewrote.
1829 (processAdjustmentEvent): Rewrote.
1830 (paramString): Wrote.
1831 * Makefile.in: Rebuilt.
1832 * Makefile.am (awt_java_source_files): Added Button.java.
1833 * java/awt/Button.java: New file.
1834 * java/awt/Toolkit.java (createLabel): Declare.
1835 (createButton): Likewise.
1836 (createScrollbar): Likewise.
1837 (createContainer): Likewise.
1838 * java/awt/Label.java (addNotify): Wrote.
1839 (setAlignment): Call setAlignment in the peer.
1840 (setText): Call setText in the peer.
1842 2000-07-28 Warren Levy <warrenl@cygnus.com>
1844 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
1845 NotSerializableException with just the class name.
1847 2000-07-26 Andrew Haley <aph@cygnus.com>
1849 * interpret.cc (continue1): Insert missing break into switch.
1851 2000-07-28 Warren Levy <warrenl@cygnus.com>
1853 * java/io/ObjectStreamException.java: Made constructors protected.
1855 2000-07-27 Tom Tromey <tromey@cygnus.com>
1857 * java/io/OutputStreamWriter.java (close): Only flush if not
1860 2000-07-27 Warren Levy <warrenl@cygnus.com>
1862 * mauve-libgcj: Activated serialization tests.
1863 * gcj/field.h (getModifiers): Mask off unknown flags.
1864 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
1865 spurious bits don't cause discrepancies.
1866 * java/io/ObjectOutputStream.java: Fixed typo in comment.
1867 * java/io/ObjectStreamClass.java: Fixed typos in comments.
1868 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
1869 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
1870 * java/lang/Throwable.java (serialVersionUID): New field.
1871 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
1872 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
1874 * java/lang/reflect/natMethod.cc: Ditto.
1875 * java/security/Key.java (serialVersionUID): Removed field for now.
1876 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
1877 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
1879 2000-07-22 Tom Tromey <tromey@cygnus.com>
1881 * java/awt/geom/RectangularShape.java (getPathIterator):
1884 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1886 * libjava/java/awt/image/ColorModel.java: New file, replaces the
1887 stub libjava/java/awt/ColorModel.java which was located in the
1889 * libjava/java/awt/image/ComponentColorModel.java: New file.
1890 * libjava/java/awt/image/ComponentSampleModel.java: New file.
1891 * libjava/java/awt/image/DataBuffer.java: New file.
1892 * libjava/java/awt/image/DataBufferByte.java: New file.
1893 * libjava/java/awt/image/DataBufferInt.java: New file.
1894 * libjava/java/awt/image/DataBufferUShort.java: New file.
1895 * libjava/java/awt/image/DirectColorModel.java: New file.
1896 * libjava/java/awt/image/PackedColorModel.java: New file.
1897 * libjava/java/awt/image/Raster.java: New file.
1898 * libjava/java/awt/image/SampleModel.java: New file.
1899 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
1901 * libjava/java/awt/image/IndexColorModel.java: New file.
1902 * libjava/java/awt/image/ImageConsumer.java: Removed import of
1903 java.awt.ColorModel stub.
1905 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
1906 * gnu/gcj/util/Buffers.java: New file, utility class.
1908 * libjava/Makefile.am: Updated to include new files.
1909 * libjava/Makefile.in: Rebuilt.
1911 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
1913 * java/io/StreamTokenizer.java: Merged with classpath.
1915 2000-07-20 Tom Tromey <tromey@cygnus.com>
1917 * Makefile.in: Rebuilt.
1918 * Makefile.am (awt_java_source_files): Updated for new files.
1919 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
1920 * java/awt/Label.java: New file.
1921 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
1922 (createIntersection, createUnion, getBounds2D): New methods.
1923 * java/awt/Scrollbar.java: New file.
1924 * java/awt/Shape.java: Updated to 1.2.
1925 * java/awt/geom/AffineTransform.java: New file.
1926 * java/awt/geom/Ellipse2D.java: New file.
1927 * java/awt/geom/NoninvertibleTransformException.java: New file.
1928 * java/awt/geom/PathIterator.java: New file.
1929 * java/awt/geom/Rectangle2D.java: New file.
1930 * java/awt/geom/RectangularShape.java: New file.
1931 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
1932 * java/awt/geom/IllegalPathStateException.java: New file.
1934 * scripts/showval.java: New file.
1936 * scripts/classes.pl (scan): Print inner classes properly.
1937 * gcj/javaprims.h: Updated class list.
1939 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
1940 initialize String fields for interpreted classes. Fixes bug
1941 reported by Hans Boehm.
1943 * java/io/File.java (getParentFile): New method, from Classpath
1944 via Oskar Liljeblad.
1946 * java/util/Vector.java (remove(Object)): Implemented.
1948 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
1950 * java/lang/natThrowable.cc (fillInStackTrace): Check for
1951 zero return from backtrace().
1953 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
1955 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
1957 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
1958 before calling notifyAll().
1960 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
1962 Add missing files from last check-in:
1963 * java/awt/image/ImageConsumer.java: New file.
1964 * java/awt/image/ImageProducer.java: New file.
1965 * java/awt/image/ImageObserver.java: New file.
1967 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
1969 Merged implementation of java.applet from classpath:
1970 * java/applet/Applet.java: New file.
1971 * java/applet/AppletContext.java: New file.
1972 * java/applet/AppletStub.java: New file.
1973 * java/applet/AudioClip.java: New file.
1975 * Makefile.am: Added new java.applet classes.
1976 * Makefile.in: Rebuilt.
1978 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
1981 * java/util/ResourceBundle.java (getLocale): stub.
1982 * Makefile.am: Added new AWT classes.
1983 * Makefile.in: Rebuilt.
1984 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
1985 constructors. Fix toString() and paramString().
1986 * java/awt/AWTEventMulticaster.java: New class. Implemented.
1987 * java/awt/CheckboxGroup.java: New class.
1988 * java/awt/ColorModel.java: New class.
1989 * java/awt/Component.java: Added stubs for most methods. Implemented
1991 * java/awt/Container.java: ditto.
1992 * java/awt/ComponentOrientation.java: New class. Partly implemented.
1993 * java/awt/Cursor.java: ditto.
1994 * java/awt/Event.java: Fix paramString().
1995 * java/awt/EventQueue.java: New class. Implemented.
1996 * java/awt/Font.java: Added additional stub methods. Implemented
1998 * java/awt/FontMetrics.java: New class. Stubbed.
1999 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2001 * java/awt/Insets.java: New class. Implemented.
2002 * java/awt/Menu.java: Add new methods. Partially implemented.
2003 * java/awt/MenuItem.java: Add new methods and fields. Partially
2005 * java/awt/MenuShortcut.java: New class. Implemented.
2006 * java/awt/Panel.java: New class. Placeholder.
2007 * java/awt/PopupMenu.java: New class. Stubbed.
2008 * java/awt/Rectangle.java: New class. Implemented.
2009 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2010 * java/awt/event/ActionEvent.java: Implement paramString().
2011 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2012 * java/awt/event/ComponentEvent.java: Implement paramString().
2013 * java/awt/event/ContainerEvent.java: Implement paramString().
2014 * java/awt/event/FocusEvent.java: Implement paramString().
2015 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2016 * java/awt/event/HierarchyBoundsListener.java: New class.
2017 * java/awt/event/HierarchyEvent.java: New class.
2018 * java/awt/event/HierarchyListener.java: New class.
2019 * java/awt/event/InputMethodEvent.java: Implement paramString().
2020 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2021 exception if !catchExceptions.
2022 * java/awt/event/ItemEvent.java: Implement paramString().
2023 * java/awt/event/KeyEvent.java: Implement paramString().
2024 * java/awt/event/MouseEvent.java: Implement paramString().
2025 * java/awt/event/PaintEvent.java: Implement paramString().
2026 * java/awt/event/TextEvent.java: Implement paramString().
2027 * java/awt/event/WindowEvent.java: Implement paramString().
2029 AWT Peer interfaces:
2030 * java/awt/peer/ButtonPeer.java: New file.
2031 * java/awt/peer/ListPeer.java: New file.
2032 * java/awt/peer/CanvasPeer.java: New file.
2033 * java/awt/peer/MenuBarPeer.java: New file.
2034 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2035 * java/awt/peer/MenuComponentPeer.java: New file.
2036 * java/awt/peer/CheckboxPeer.java: New file.
2037 * java/awt/peer/MenuItemPeer.java: New file.
2038 * java/awt/peer/ChoicePeer.java: New file.
2039 * java/awt/peer/MenuPeer.java: New file.
2040 * java/awt/peer/ComponentPeer.java: Implemented.
2041 * java/awt/peer/PanelPeer.java: New file.
2042 * java/awt/peer/ContainerPeer.java: Implemented.
2043 * java/awt/peer/PopupMenuPeer.java: New file.
2044 * java/awt/peer/DialogPeer.java: New file.
2045 * java/awt/peer/ScrollPanePeer.java: New file.
2046 * java/awt/peer/FileDialogPeer.java: New file.
2047 * java/awt/peer/ScrollbarPeer.java: New file.
2048 * java/awt/peer/FontPeer.java: New file.
2049 * java/awt/peer/TextAreaPeer.java: New file.
2050 * java/awt/peer/FramePeer.java: Implemented.
2051 * java/awt/peer/TextComponentPeer.java: New file.
2052 * java/awt/peer/LabelPeer.java: New file.
2053 * java/awt/peer/TextFieldPeer.java: New file.
2054 * java/awt/peer/LightweightPeer.java: New file.
2055 * java/awt/peer/WindowPeer.java: Implemented.
2057 2000-07-06 Tom Tromey <tromey@cygnus.com>
2059 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2060 Initialize static final String fields.
2062 2000-07-03 Tom Tromey <tromey@cygnus.com>
2064 * java/io/PrintWriter.java (print): Call write(String), not
2065 print(String). See PR libgcj/277.
2066 (print(String)): Use write, not out.write.
2068 2000-06-30 Tom Tromey <tromey@cygnus.com>
2070 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2072 2000-06-27 Andrew Haley <aph@cygnus.com>
2074 * java/io/File.java (createTempFile): Close the FileDescriptor
2075 used to create a temp file. Fixes some of PR 203.
2076 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2077 collection if we run out of file handles.
2079 2000-06-28 Warren Levy <warrenl@cygnus.com>
2081 * gnu/java/security/provider/Gnu.java: New file.
2082 * gnu/java/security/provider/SHA.java: New file.
2083 * gnu/java/security/provider/SHA1PRNG.java: New file.
2084 * Makefile.am: Added the above files.
2085 * Makefile.in: Rebuilt.
2087 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2089 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2091 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2092 (destroyed_flag): Removed.
2093 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2094 (activeCount): Added spec note.
2096 2000-06-27 Warren Levy <warrenl@cygnus.com>
2098 * java/security/Principal.java: New file.
2099 * Makefile.am: Added Principal.java.
2100 * Makefile.in: Rebuilt.
2102 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2104 * java/awt/event/MouseEvent.java: Fixed coordinate space
2107 2000-06-27 Tom Tromey <tromey@cygnus.com>
2109 * java/io/PushbackInputStream.java (read): If there are characters
2110 in the buffer, don't also call super.read().
2111 * java/io/PushbackReader.java (read): If there are characters in
2112 the buffer, don't also call super.read().
2114 * java/lang/Double.java (valueOf): Call parseDouble().
2116 2000-06-26 Warren Levy <warrenl@cygnus.com>
2118 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2119 (newVal): Renamed to newValue.
2120 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2121 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2122 (revokeNow): Renamed to invalidateRefs.
2123 * java/io/OptionalDataException.java: Updated FIXME.
2124 (eof): New placeholder field.
2126 * java/io/WriteAbortedException.java (message): Made transient.
2127 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2128 * java/lang/Throwable.java (stackTrace): Made transient.
2129 * java/net/InetAddress.java: Made Serializable.
2130 * java/security/KeyPair.java: Made Serializable.
2131 * java/security/Provider.java: Replaced with Classpath version that
2132 implements serialization and proper methods.
2133 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2134 (limits): Renamed to choiceLimits.
2136 2000-06-24 Tom Tromey <tromey@cygnus.com>
2138 * java/lang/natDouble.cc (parseDouble): Renamed from
2140 * java/lang/Double.java (parseDouble): Renamed from
2141 doubleValueOf. Now public.
2143 2000-06-23 Andrew Haley <aph@cygnus.com>
2145 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2146 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2148 2000-06-23 Tom Tromey <tromey@cygnus.com>
2150 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2151 * java/lang/natDouble.cc: Always include <alloca.h>.
2152 Fix for PR libgcj/267.
2154 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2156 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2157 comply with classpath VM spec.
2158 (add(Group)): Rename to addGroup().
2159 * java/lang/Thread.java (Thread): Use addThread().
2160 * java/lang/natThread.cc (finish_): Use removeThread().
2162 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2164 * java/lang/ThreadGroup.java: Merged with classpath.
2165 * prims.cc (_Jv_RunMain): Don't use `main_group'.
2166 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2168 * java/lang/Thread.java (Thread): Bootstrap initial thread from
2169 ThreadGroup.root if Thread.currentThread is null. Honour the
2170 ThreadGroup's max priority setting.
2172 2000-06-18 Tom Tromey <tromey@cygnus.com>
2174 * java/lang/natClass.cc (forName): Removed dead code. Initialize
2175 returned class. For PR gcj/260.
2177 2000-06-16 Tom Tromey <tromey@cygnus.com>
2179 Fix for PR libgcj/261:
2180 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2182 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2183 argument. (This is a patch from long ago that somehow went
2186 2000-06-15 Tom Tromey <tromey@cygnus.com>
2188 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2192 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2194 Fix for PR java.lang/258:
2195 * prims.cc (_Jv_PrimClass): Set state of primitive class to
2196 JV_STATE_DONE, to prevent accidental initialization.
2197 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
2198 _Jv_InterfaceAssignableFrom if target is an interface and source is an
2199 interface or an abstract class. Remove redundant initializeClass calls.
2200 Remove duplicate if_idt test.
2201 (_Jv_InterfaceAssignableFrom): New function.
2202 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2204 2000-05-31 Tom Tromey <tromey@cygnus.com>
2206 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2207 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2208 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2209 (NUM_OBJECT_METHODS): New define.
2210 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2211 `array_vtable' parameter. Added assertion.
2212 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2215 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
2217 * gcj/cni.h: Include <string.h>.
2218 * defineclass.cc: Include <alloca.h>.
2219 * interpret.cc: Ditto.
2220 * gij.cc: Include <stdlib.h>.
2222 2000-05-30 Tom Tromey <tromey@cygnus.com>
2224 * include/name-finder.h: Include <sys/wait.h>.
2225 (_Jv_name_finder::pid): Now of type `pid_t'.
2226 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2227 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2230 2000-05-24 Warren Levy <warrenl@cygnus.com>
2232 * java/io/ObjectOutputStream.java (writeObject): Use component type
2233 when writing arrays.
2236 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2238 Fix for PR libgcj/226:
2239 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2240 since this is an installed header.
2242 Fix for PR libgcj/228:
2243 * java/util/zip/ZipFile (getInputStream): Create inflater with
2246 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2247 with DataFormatException.
2249 2000-05-20 Tom Tromey <tromey@cygnus.com>
2251 * Makefile.in: Rebuilt.
2252 * Makefile.am (hack1): Removed.
2253 (awto_files): Likewise.
2254 (libgcjawt_la_SOURCES): Likewise.
2255 (EXTRA_libgcjawt_la_SOURCES): Likewise.
2256 (libgcjawt_la_DEPENDENCIES): Likewise.
2257 (libgcjawt_la_LIBADD): Likewise.
2258 (libgcjawt_la_LDFLAGS): Likewise.
2259 (libgcjawt_la_LINK): Likewise.
2260 ($(awt_java_source_files:.java=.class)): Likewise.
2261 (libgcj.zip): Don't depend on AWT files.
2262 (MOSTLYCLEANFILES): Don't include AWT files.
2263 ($(awto_files)): Removed.
2264 (nat_headers): Removed AWT files.
2265 (cond_awt_java_source_files): Removed.
2266 (ordinary_java_source_files): Added awt_java_source_files.
2267 * libgcj.spec.in (*lib): Removed -lgcjawt.
2268 * configure: Rebuilt.
2269 * configure.in: Removed --enable-java-awt option.
2271 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2273 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
2274 (ZipEntry): Copy the `name' field.
2275 (clone): Implement JDK1.2 method.
2276 (setCompressedSize): ditto.
2279 2000-05-19 Tom Tromey <tromey@cygnus.com>
2281 * java/io/BufferedWriter.java: Merged with Classpath.
2282 * java/io/BufferedOutputStream.java: Merged with Classpath.
2284 2000-05-16 Andrew Haley <aph@cygnus.com>
2286 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
2287 build_ia64_frame_state.
2288 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
2291 2000-05-15 Warren Levy <warrenl@cygnus.com>
2293 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
2294 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
2295 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
2296 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
2297 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
2298 * gnu/gcj/beans/editors/FontEditor.java: Removed.
2299 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
2300 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
2301 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
2302 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
2303 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
2304 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
2305 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
2306 * gnu/gcj/beans/editors/StringEditor.java: Removed.
2307 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
2308 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
2309 * gnu/gcj/io/NullOutputStream.java: Removed.
2310 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
2311 * gnu/gcj/lang/ArrayHelper.java: Removed.
2312 * gnu/gcj/lang/ClassHelper.java: Removed.
2313 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
2315 * gnu/java/beans/BeanInfoEmbryo.java: New file.
2316 * gnu/java/beans/EmptyBeanInfo.java: New file.
2317 * gnu/java/beans/ExplicitBeanInfo.java: New file.
2318 * gnu/java/beans/IntrospectionIncubator.java: New file.
2319 * gnu/java/beans/editors/ColorEditor.java: New file.
2320 * gnu/java/beans/editors/FontEditor.java: New file.
2321 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
2322 * gnu/java/beans/editors/NativeByteEditor.java: New file.
2323 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
2324 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
2325 * gnu/java/beans/editors/NativeIntEditor.java: New file.
2326 * gnu/java/beans/editors/NativeLongEditor.java: New file.
2327 * gnu/java/beans/editors/NativeShortEditor.java: New file.
2328 * gnu/java/beans/editors/StringEditor.java: New file.
2329 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
2330 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
2331 * gnu/java/io/NullOutputStream.java: New file.
2332 * gnu/java/io/ObjectIdentityWrapper.java: New file.
2333 * gnu/java/lang/ArrayHelper.java: New file.
2334 * gnu/java/lang/ClassHelper.java: New file.
2335 * gnu/java/lang/reflect/TypeSignature.java: New file.
2337 * Makefile.am: Updated for moving Classpath files from gnu/gcj
2338 namespace back to the original Classpath gnu/java namespace.
2339 * Makefile.in: Rebuilt.
2341 * java/beans/Beans.java: Namespace change.
2342 * java/beans/EventSetDescriptor.java: Namespace change.
2343 * java/beans/Introspector.java: Namespace change.
2344 * java/beans/PropertyEditorManager.java: Namespace change.
2345 * java/io/ObjectInputStream.java: Namespace change.
2346 * java/io/ObjectOutputStream.java: Namespace change.
2347 * java/io/ObjectStreamClass.java: Namespace change.
2348 * java/io/ObjectStreamField.java: Namespace change.
2350 2000-04-21 Warren Levy <warrenl@cygnus.com>
2352 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
2353 now that compiler patch is available.
2354 Removed unneeded System.loadLibrary.
2355 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
2356 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
2358 2000-04-19 Andrew Haley <aph@cygnus.com>
2360 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
2361 and target classes have been initialized.
2363 2000-04-19 Andrew Haley <aph@cygnus.com>
2365 * java/lang/String.java: implement Serializable, Comparable.
2366 (compareTo (Object)): New method.
2368 2000-04-19 Warren Levy <warrenl@cygnus.com>
2370 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
2371 instead of getField to retrieve non-public field.
2372 (getSerialPersistantFields): Ditto.
2374 2000-04-18 Warren Levy <warrenl@cygnus.com>
2376 * mauve-libgcj: Turned off object serialization tests temporarily
2377 due to compiler error.
2379 2000-04-17 Warren Levy <warrenl@cygnus.com>
2381 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
2382 to avoid build problem.
2384 * mauve-libgcj: Turned on object serialization tests.
2386 2000-04-17 Tom Tromey <tromey@cygnus.com>
2388 * libgcj.spec.in (*lib): Added -lgcjawt.
2390 2000-04-17 Andrew Haley <aph@cygnus.com>
2392 * Makefile.am: Add new files:
2393 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
2395 * Makefile.in: Rebuilt.
2397 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
2398 interface that has no implementations.
2399 Check for an attempt to assign an abstract class to an interface.
2401 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
2402 if we fail to find MessageDigest.getInstance ("SHA").
2404 * gnu/gcj/io/SimpleSHSStream.java: New file.
2405 * gnu/gcj/io/natSimpleSHSStream.java: New file.
2406 * gnu/gcj/io/shs.cc: New file.
2407 * gnu/gcj/io/shs.h: new file.
2409 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
2412 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
2413 punctuation from the classname of an array element.
2415 * gcj/javaprims.h: Add SimpleDigestStream.
2417 2000-04-17 Andrew Haley <aph@cygnus.com>
2419 * java/lang/natClass.cc (getPrivateField): Make recursive calls
2420 to getPrivateField for superclasses.
2422 2000-04-14 Andrew Haley <aph@cygnus.com>
2424 * Makefile.am: Add new files:
2425 java/io/ObjectOutputStream$PutField.h,
2426 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
2427 java/io/natObjectOutputStream.cc
2428 * Makefile.in: Rebuilt.
2429 * gcj/Makefile.in: Rebuilt.
2430 * include/Makefile.in: Rebuilt.
2431 * java/lang/Class.h (getPrivateField): New method.
2432 (getPrivateMethod): Ditto.
2433 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
2434 and java::io::ObjectStreamClass our friends.
2435 * java/lang/natClass.cc (getPrivateField): New method.
2436 (getPrivateMethod): Ditto.
2437 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
2438 * gcj/javaprims.h: Add serialization classes.
2439 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
2440 (setByteField): Ditto.
2441 (setCharField): Ditto.
2442 (setDoubleField): Ditto.
2443 (setFloatField): Ditto.
2444 (setIntField): Ditto.
2445 (setLongField): Ditto.
2446 (setShortField): Ditto.
2447 (setObjectField): Ditto.
2448 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
2450 (getByteField): Ditto.
2451 (getCharField): Ditto.
2452 (getDoubleField): Ditto.
2453 (getFloatField): Ditto.
2454 (getIntField): Ditto.
2455 (getLongField): Ditto.
2456 (getShortField): Ditto.
2457 (getObjectField): Ditto.
2458 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
2460 (getSerialPersistantFields): Ditto.
2461 (getDefinedSUID): Ditto.
2462 * java/io/natObjectOutputStream.cc: New file.
2463 * java/io/natObjectInputStream.cc: New file.
2465 2000-04-13 Warren Levy <warrenl@cygnus.com>
2467 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
2468 problems. Revert to previous version to reproduce and when fixed.
2470 2000-04-13 Warren Levy <warrenl@cygnus.com>
2472 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
2473 * gnu/gcj/io/NullOutputStream.java: New file.
2474 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
2475 * java/io/BlockDataException.java: New file.
2476 * java/io/Externalizable.java: New file.
2477 * java/io/InvalidClassException.java: New file.
2478 * java/io/InvalidObjectException.java: New file.
2479 * java/io/NotActiveException.java: New file.
2480 * java/io/NotSerializableException.java: New file.
2481 * java/io/ObjectInput.java: New file.
2482 * java/io/ObjectInputStream.java: New file.
2483 * java/io/ObjectInputValidation.java: New file.
2484 * java/io/ObjectOutput.java: New file.
2485 * java/io/ObjectOutputStream.java: New file.
2486 * java/io/ObjectStreamClass.java: New file.
2487 * java/io/ObjectStreamConstants.java: New file.
2488 * java/io/ObjectStreamField.java: New file.
2489 * java/io/Replaceable.java: New file.
2490 * java/io/Resolvable.java: New file.
2491 * java/io/SerializablePermission.java: New file.
2492 * java/io/WriteAbortedException.java: New file.
2493 * java/security/BasicPermission.java: New file.
2494 * java/security/DigestOutputStream.java: New file.
2495 * java/security/Guard.java: New file.
2496 * java/security/Permission.java: New file.
2497 * java/security/PermissionCollection.java: New file.
2498 * Makefile.am: Added above files.
2499 * Makefile.in: Rebuilt.
2501 * java/beans/Beans.java (instantiate): Activated serialization code.
2502 * java/lang/SecurityManager.java (checkPermission): New method.
2504 2000-04-12 Warren Levy <warrenl@cygnus.com>
2506 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
2507 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
2508 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
2509 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
2510 * gnu/gcj/beans/editors/ColorEditor.java: New file.
2511 * gnu/gcj/beans/editors/FontEditor.java: New file.
2512 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
2513 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
2514 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
2515 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
2516 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
2517 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
2518 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
2519 * gnu/gcj/beans/editors/StringEditor.java: New file.
2520 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
2521 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
2522 * gnu/gcj/lang/ArrayHelper.java: New file.
2523 * gnu/gcj/lang/ClassHelper.java: New file.
2524 * java/beans/BeanDescriptor.java: New file.
2525 * java/beans/BeanInfo.java: New file.
2526 * java/beans/Beans.java: New file.
2527 * java/beans/Customizer.java: New file.
2528 * java/beans/DesignMode.java: New file.
2529 * java/beans/EventSetDescriptor.java: New file.
2530 * java/beans/FeatureDescriptor.java: New file.
2531 * java/beans/IndexedPropertyDescriptor.java: New file.
2532 * java/beans/IntrospectionException.java: New file.
2533 * java/beans/Introspector.java: New file.
2534 * java/beans/MethodDescriptor.java: New file.
2535 * java/beans/ParameterDescriptor.java: New file.
2536 * java/beans/PropertyChangeEvent.java: New file.
2537 * java/beans/PropertyChangeListener.java: New file.
2538 * java/beans/PropertyChangeSupport.java: New file.
2539 * java/beans/PropertyDescriptor.java: New file.
2540 * java/beans/PropertyEditor.java: New file.
2541 * java/beans/PropertyEditorManager.java: New file.
2542 * java/beans/PropertyEditorSupport.java: New file.
2543 * java/beans/PropertyVetoException.java: New file.
2544 * java/beans/SimpleBeanInfo.java: New file.
2545 * java/beans/VetoableChangeListener.java: New file.
2546 * java/beans/VetoableChangeSupport.java: New file.
2547 * java/beans/Visibility.java: New file.
2548 * java/beans/beancontext/BeanContext.java: New file.
2549 * java/beans/beancontext/BeanContextChild.java: New file.
2550 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
2551 * java/beans/beancontext/BeanContextChildSupport.java: New file.
2552 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
2553 * java/beans/beancontext/BeanContextEvent.java: New file.
2554 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
2555 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
2556 * java/beans/beancontext/BeanContextProxy.java: New file.
2557 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
2559 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
2560 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
2562 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
2563 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
2565 * java/beans/beancontext/BeanContextServices.java: New file.
2566 * java/beans/beancontext/BeanContextServicesListener.java: New file.
2567 * java/util/AbstractCollection.java: New file.
2568 * java/util/AbstractList.java: New file.
2569 * java/util/Arrays.java: New file.
2570 * Makefile.am: Added above files.
2571 * Makefile.in: Rebuilt.
2573 2000-04-11 Warren Levy <warrenl@cygnus.com>
2575 * java/awt/AWTError.java: New file.
2576 * java/awt/AWTEvent.java: New file.
2577 * java/awt/AWTException.java: New file.
2578 * java/awt/ActiveEvent.java: New file.
2579 * java/awt/Adjustable.java: New file.
2580 * java/awt/BorderLayout.java: New file.
2581 * java/awt/Color.java: New file.
2582 * java/awt/Component.java: New file.
2583 * java/awt/Container.java: New file.
2584 * java/awt/Dimension.java: New file.
2585 * java/awt/Event.java: New file.
2586 * java/awt/Font.java: New file.
2587 * java/awt/Frame.java: New file.
2588 * java/awt/Graphics.java: New file.
2589 * java/awt/IllegalComponentStateException.java: New file.
2590 * java/awt/Image.java: New file.
2591 * java/awt/ItemSelectable.java: New file.
2592 * java/awt/LayoutManager.java: New file.
2593 * java/awt/LayoutManager2.java: New file.
2594 * java/awt/Menu.java: New file.
2595 * java/awt/MenuBar.java: New file.
2596 * java/awt/MenuComponent.java: New file.
2597 * java/awt/MenuContainer.java: New file.
2598 * java/awt/MenuItem.java: New file.
2599 * java/awt/Paint.java: New file.
2600 * java/awt/PaintContext.java: New file.
2601 * java/awt/Point.java: New file.
2602 * java/awt/Rectangle.java: New file.
2603 * java/awt/Shape.java: New file.
2604 * java/awt/TextArea.java: New file.
2605 * java/awt/TextComponent.java: New file.
2606 * java/awt/Toolkit.java: New file.
2607 * java/awt/Transparency.java: New file.
2608 * java/awt/Window.java: New file.
2609 * java/awt/natToolkit.cc: New file.
2610 * java/awt/event/AWTEventListener.java: New file.
2611 * java/awt/event/ActionEvent.java: New file.
2612 * java/awt/event/ActionListener.java: New file.
2613 * java/awt/event/AdjustmentEvent.java: New file.
2614 * java/awt/event/AdjustmentListener.java: New file.
2615 * java/awt/event/ComponentAdapter.java: New file.
2616 * java/awt/event/ComponentEvent.java: New file.
2617 * java/awt/event/ComponentListener.java: New file.
2618 * java/awt/event/ContainerAdapter.java: New file.
2619 * java/awt/event/ContainerEvent.java: New file.
2620 * java/awt/event/ContainerListener.java: New file.
2621 * java/awt/event/FocusAdapter.java: New file.
2622 * java/awt/event/FocusEvent.java: New file.
2623 * java/awt/event/FocusListener.java: New file.
2624 * java/awt/event/InputEvent.java: New file.
2625 * java/awt/event/InputMethodEvent.java: New file.
2626 * java/awt/event/InputMethodListener.java: New file.
2627 * java/awt/event/InvocationEvent.java: New file.
2628 * java/awt/event/ItemEvent.java: New file.
2629 * java/awt/event/ItemListener.java: New file.
2630 * java/awt/event/KeyAdapter.java: New file.
2631 * java/awt/event/KeyEvent.java: New file.
2632 * java/awt/event/KeyListener.java: New file.
2633 * java/awt/event/MouseAdapter.java: New file.
2634 * java/awt/event/MouseEvent.java: New file.
2635 * java/awt/event/MouseListener.java: New file.
2636 * java/awt/event/MouseMotionAdapter.java: New file.
2637 * java/awt/event/MouseMotionListener.java: New file.
2638 * java/awt/event/PaintEvent.java: New file.
2639 * java/awt/event/TextEvent.java: New file.
2640 * java/awt/event/TextListener.java: New file.
2641 * java/awt/event/WindowAdapter.java: New file.
2642 * java/awt/event/WindowEvent.java: New file.
2643 * java/awt/event/WindowListener.java: New file.
2644 * java/awt/geom/Dimension2D.java: New file.
2645 * java/awt/geom/Point2D.java: New file.
2646 * java/awt/peer/ComponentPeer.java: New file.
2647 * java/awt/peer/ContainerPeer.java: New file.
2648 * java/awt/peer/FramePeer.java: New file.
2649 * java/awt/peer/WindowPeer.java: New file.
2650 * java/util/Collection.java: New file.
2651 * java/util/Comparator.java: New file.
2652 * java/util/Iterator.java: New file.
2653 * java/util/List.java: New file.
2654 * java/util/ListIterator.java: New file.
2655 * Makefile.am: Added above files.
2656 * Makefile.in: Rebuilt.
2658 2000-04-10 Warren Levy <warrenl@cygnus.com>
2660 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
2661 * java/lang/FirstThread.java: Ditto.
2662 * java/lang/StringBuffer.java: Ditto.
2663 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2665 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
2666 Special case handled in java.math.BigInteger.
2667 * java/math/BigInteger.java (divide): Handle the special case when
2668 dividing by 1 and the high bit of the dividend is set.
2669 (setShiftRight): Handle case when count == 0.
2671 2000-04-05 Andrew Haley <aph@cygnus.com>
2673 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
2676 2000-04-05 Andrew Haley <aph@cygnus.com>
2678 * sysdep/ia64.c (rse_address_add): Delete.
2679 (IS_NaT_COLLECTION_ADDR): Delete.
2680 (ia64_backtrace_helper): check for null unwind_info.
2682 * sysdep/ia64-frame.h: add calc_caller_bsp.
2684 * java/lang/natThrowable.cc (printRawStackTrace): Flush
2687 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
2688 (_Jv_remI): Likewise.
2689 (_Jv_divJ): Likewise.
2690 (_Jv_remJ): Likewise.
2692 * interpret.cc (continue1): Use divide subroutines to guarantee
2693 correct Java standard behaviour.
2694 Floating-point division should not abort; make it so.
2696 2000-03-29 Tom Tromey <tromey@cygnus.com>
2698 * configure: Rebuilt.
2699 * configure.in: Test against `libgcj_sjlj', not
2700 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
2701 to be set even when using sjlj.
2703 2000-03-24 Andrew Haley <aph@cygnus.com>
2705 * Makefile.am: Add file addr2name.awk.
2706 * Makefile.in: Rebuilt.
2707 * addr2name.awk: New file.
2708 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
2710 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
2713 2000-03-22 Andrew Haley <aph@cygnus.com>
2715 * configure.host: Add -funwind-tables for IA64.
2716 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
2717 * Makefile.in: Rebuilt.
2718 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
2719 * sysdep/ia64.c: New file.
2720 * sysdep/ia64-frame.h: New file.
2721 * configure.in: Add sysdep/ia64.c for ia64.
2722 * configure: Rebuilt.
2724 2000-03-17 Andrew Haley <aph@cygnus.com>
2726 * java/lang/natString.cc: Remove `register' keyword.
2727 interpret.cc: ditto.
2729 2000-03-16 Andrew Haley <aph@cygnus.com>
2731 * configure.host (ia64): Enable interpreter.
2733 2000-03-14 Hans Boehm <boehm@acm.org>
2735 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
2737 2000-03-14 Andrew Haley <aph@cygnus.com>
2739 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
2742 2000-03-10 Andrew Haley <aph@cygnus.com>
2744 * java/lang/ieeefp.h: Import latest version from fdlibm.
2746 2000-03-14 Andrew Haley <aph@cygnus.com>
2748 * prims.cc (_Jv_ThrowSignal): New function.
2749 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
2751 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
2752 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
2753 * include/ppc-signal.h: New file.
2755 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
2757 * java/lang/Thread.java: Declare `data' as Object, not RawData.
2758 * java/lang/natThread.java (initialize_native): Cast `data' to
2760 * gnu/gcj/RawData.java: Clarify documentation.
2762 From Gregory R. Warnes <warnes@biostat.washington.edu>:
2763 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
2764 `jarFile', not `jarFileURL'.
2766 2000-05-15 Andrew Haley <aph@cygnus.com>
2768 * include/ppc-signal.h: New file.
2770 2000-05-11 Tom Tromey <tromey@cygnus.com>
2772 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
2773 file headers, don't include `size' in the skip call.
2775 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
2777 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
2778 Avoid arrayCopy() call where possible. Update `count' _after_ calling
2780 (replace): Reimplemented. Fix javadoc.
2781 (reverse): Call ensureCapacity_unsynchronized().
2782 (StringBuffer (String)): Use DEFAULT_CAPACITY.
2784 (replace): Calculate length for arraycopy() correctly.
2786 2000-05-09 Tom Tromey <tromey@cygnus.com>
2788 * java/lang/StringBuffer.java (toString): Don't mark buffer as
2790 (insert(int,char[],int,int): New method.
2791 (delete): New method from Classpath.
2792 (deleteCharAt): Likewise.
2793 (substring): Likewise.
2794 (shared): No longer private.
2795 Added JavaDoc comments from Classpath.
2796 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
2799 2000-05-07 Tom Tromey <tromey@cygnus.com>
2801 * Makefile.in: Rebuilt.
2802 * Makefile.am (LIBLINK): New macro.
2803 (libgcj_la_LINK): Use it.
2804 (libgcjawt_la_LINK): Likewise.
2806 2000-05-06 Tom Tromey <tromey@cygnus.com>
2808 * Makefile.in: Rebuilt.
2809 * Makefile.am (libgcj.zip): Don't pass -L to javac.
2811 2000-05-05 Tom Tromey <tromey@cygnus.com>
2813 Fix for PR libgcj/220:
2814 * Makefile.in: Rebuilt.
2815 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
2816 (jv_convert_LDFLAGS): Likewise.
2817 (libgcj_la_LDFLAGS): Likewise.
2818 (GCJLINK): New macro.
2819 (jv_convert_LINK): Use it.
2820 (gij_LINK): Likewise.
2821 (libgcj_la_LINK): New macro.
2822 (libgcjawt_la_LINK): Likewise.
2824 2000-05-04 Tom Tromey <tromey@cygnus.com>
2826 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
2828 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
2832 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
2834 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
2835 (_Jv_IsAssignableFrom): Ditto.
2836 (_Jv_IsInstanceOf): Ditto.
2837 (_Jv_CheckCast): Ditto.
2838 (_Jv_CheckArrayStore): Ditto.
2839 * java/lang/Class.h (_Jv_InitClass): Ditto.
2840 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
2845 (_Jv_MonitorExit): Ditto.
2846 * boehm.cc (_Jv_MarkObj): Ditto.
2847 (_Jv_MarkObj): Ditto.
2848 (_Jv_MarkArray): Ditto.
2849 * prims.cc (_Jv_AllocObject): Ditto.
2850 (_Jv_NewObjectArray): Ditto.
2851 (_Jv_NewPrimArray): Ditto.
2852 (_Jv_Malloc): Ditto.
2853 (_Jv_Realloc): Ditto.
2854 (_Jv_MallocUnchecked): Ditto.
2860 2000-05-04 Tom Tromey <tromey@cygnus.com>
2862 * java/util/Locale.java (Locale): Don't explicitly check for
2864 * java/util/Hashtable.java (containsKey): Don't explicitly check
2867 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
2869 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
2871 * java/text/StringCharacterIterator.java
2872 (StringCharacterIterator): Don't check for null.
2873 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
2875 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
2876 check for null pointer.
2877 (leaveGroup): Likewise.
2878 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
2880 (setData): Likewise.
2881 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
2884 2000-04-28 Jakub Jelinek <jakub@redhat.com>
2886 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
2887 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
2888 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
2889 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
2890 -rpath for in-gcc builds.
2891 * Makefile.in: Rebuilt.
2893 2000-04-28 Tom Tromey <tromey@cygnus.com>
2895 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
2898 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
2900 * libjava/java/lang/String.java (toString): Remove `final' hack.
2902 2000-04-05 Tom Tromey <tromey@cygnus.com>
2904 Runtime support for PR gcj/2:
2905 * prims.cc (_Jv_ThrowNullPointerException): New function.
2906 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
2908 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
2910 * prims.cc (_Jv_NewObjectArray): Fix typo.
2912 2000-04-26 Tom Tromey <tromey@cygnus.com>
2914 * Makefile.in: Rebuilt.
2915 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
2917 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
2919 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
2922 2000-04-22 Anthony Green <green@cygnus.com>
2924 * include/jvm.h (__builtin_expect): Define as unused for now.
2925 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
2929 (_Jv_MonitorExit): Ditto.
2930 * boehm.cc (_Jv_MarkObj): Ditto.
2931 (_Jv_MarkObj): Ditto.
2932 (_Jv_MarkArray): Ditto.
2933 (_Jv_AllocBytes): Ditto.
2934 * prims.cc (_Jv_AllocObject): Ditto.
2935 (_Jv_NewObjectArray): Ditto.
2936 (_Jv_NewPrimArray): Ditto.
2937 (_Jv_Malloc): Ditto.
2938 (_Jv_Realloc): Ditto.
2939 (_Jv_MallocUnchecked): Ditto.
2945 * include/Makefile.in: Rebuilt.
2946 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
2948 2000-04-21 Tom Tromey <tromey@cygnus.com>
2950 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
2951 Yet another new version from Classpath.
2953 Fix for PR libgcj/15:
2954 * java/util/natGregorianCalendar.cc (_REENTRANT,
2955 _POSIX_PTHREAD_SEMANTICS): Don't define.
2956 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
2957 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
2959 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
2961 * configure: Rebuilt.
2962 * configure.in: If using POSIX threads, define _REENTRANT if
2963 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
2964 GETHOSTBYNAME_R_NEEDS_REENTRANT.
2966 * java/io/PipedInputStream.java, java/io/PipedReader.java,
2967 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
2968 version from Classpath.
2970 Fix for PR libgcj/213:
2971 * Makefile.in: Rebuilt.
2972 * Makefile.am (gij_SOURCES): Added gij.cc.
2973 (EXTRA_gij_SOURCES): Removed.
2974 (gij_LDADD): Removed gij.lo.
2975 (gij_DEPENDENCIES): Likewise.
2976 ($(gij_OBJECTS)): Depend on nat_headers.
2978 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
2979 `setURL', not `url.set'.
2981 2000-04-20 Tom Tromey <tromey@cygnus.com>
2983 Fix for PR java.io/204:
2984 * java/io/PipedInputStream.java, java/io/PipedReader.java,
2985 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
2988 Fix for PR libgcj/212:
2989 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
2990 * include/jvm.h (_Jv_word, _Jv_word2): Define.
2991 * java/lang/Class.h (_Jv_word): Declare.
2993 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
2995 2000-04-19 Tom Tromey <tromey@cygnus.com>
2997 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
2998 doesn't have a loader.
3000 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3002 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3003 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3005 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3007 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3009 (available): Initialize `where' to prevent bogus compiler warning.
3011 2000-04-12 Tom Tromey <tromey@cygnus.com>
3013 * java/lang/natString.cc (intern): Temporarily disable finalizer
3016 * java/lang/natString.cc (unintern): Added `obj' argument.
3017 (intern): Register finalizer for string.
3018 * java/lang/String.java (unintern): Now static; added obj
3021 2000-04-11 Tom Tromey <tromey@cygnus.com>
3023 * java/util/Vector.java (VectorEnumeration): Now `final'.
3024 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3025 (HashtableEnumeration): Likewise.
3026 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3027 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3029 2000-04-10 Warren Levy <warrenl@cygnus.com>
3031 * java/io/ObjectStreamException.java: New file.
3032 * java/io/OptionalDataException.java: New file.
3033 * java/io/StreamCorruptedException.java: New file.
3034 * java/math/BigDecimal.java: New file.
3035 * java/sql/CallableStatement.java: New file.
3036 * java/sql/Connection.java: New file.
3037 * java/sql/DataTruncation.java: New file.
3038 * java/sql/DatabaseMetaData.java: New file.
3039 * java/sql/Date.java: New file.
3040 * java/sql/Driver.java: New file.
3041 * java/sql/DriverManager.java: New file.
3042 * java/sql/DriverPropertyInfo.java: New file.
3043 * java/sql/PreparedStatement.java: New file.
3044 * java/sql/ResultSet.java: New file.
3045 * java/sql/ResultSetMetaData.java: New file.
3046 * java/sql/SQLException.java: New file.
3047 * java/sql/SQLWarning.java: New file.
3048 * java/sql/Statement.java: New file.
3049 * java/sql/Time.java: New file.
3050 * java/sql/Timestamp.java: New file.
3051 * java/sql/Types.java: New file.
3052 * Makefile.am: Added above new files.
3053 * Makefile.in: Rebuilt.
3055 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3056 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3057 DatagramSocket constructor instead of null.
3059 2000-04-08 Anthony Green <green@cygnus.com>
3061 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3064 2000-04-08 Anthony Green <green@cygnus.com>
3066 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3067 (_Jv_MutexUnlock): Ditto.
3068 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3069 (_Jv_MutexUnlock): Ditto.
3071 2000-04-08 Anthony Green <green@cygnus.com>
3073 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3074 (ensureCapacity_unsynchronized): New private method.
3075 (append): Use ensureCapacity_unsynchronized.
3077 2000-04-08 Tom Tromey <tromey@cygnus.com>
3079 * Makefile.in: Rebuilt.
3080 * Makefile.am (awt_java_source_files): Added new files.
3081 * java/awt/IllegalComponentStateException.java: New file.
3082 * java/awt/ItemSelectable.java: New file.
3083 * java/awt/event/WindowEvent.java: Finished.
3084 * java/awt/event/TextEvent.java: Finished.
3085 * java/awt/event/ContainerEvent.java: New file.
3086 * java/awt/Component.java (getX, getY): New methods.
3087 * java/awt/event/PaintEvent.java: New file.
3088 * java/awt/event/MouseEvent.java: New file.
3089 * java/awt/ActiveEvent.java: New file.
3090 * java/awt/event/KeyEvent.java: Finished.
3091 * java/awt/event/ItemEvent.java: New file.
3092 * java/awt/Adjustable.java: New file.
3093 * java/awt/event/InputMethodEvent.java: New file.
3094 * java/awt/event/InputEvent.java: Finished.
3095 * java/awt/event/FocusEvent.java: New file.
3096 * java/awt/event/MouseMotionAdapter.java: New file.
3097 * java/awt/event/MouseAdapter.java: New file.
3098 * java/awt/event/KeyAdapter.java: New file.
3099 * java/awt/event/FocusAdapter.java: New file.
3100 * java/awt/event/ContainerAdapter.java: New file.
3101 * java/awt/event/ComponentEvent.java: Finished.
3102 * java/awt/event/AdjustmentEvent.java: New file.
3103 * java/awt/event/ComponentAdapter.java: New file.
3104 * java/awt/event/ActionEvent.java: Finished.
3105 * java/awt/event/MouseMotionListener.java: New file.
3106 * java/awt/event/MouseListener.java: New file.
3107 * java/awt/event/ItemListener.java: New file.
3108 * java/awt/event/InputMethodListener.java: New file.
3109 * java/awt/event/ContainerListener.java: New file.
3110 * java/awt/event/FocusListener.java: New file.
3111 * java/awt/event/ComponentListener.java: New file.
3112 * java/awt/event/AWTEventListener.java: New file.
3113 * java/awt/event/AdjustmentListener.java: New file.
3115 2000-04-08 Anthony Green <green@cygnus.com>
3117 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3118 check when we have to.
3120 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3123 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3126 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3127 inline hasMoreElements.
3129 2000-04-05 Tom Tromey <tromey@cygnus.com>
3131 * configure: Rebuilt.
3132 * configure.in: Recognize --enable-java-awt.
3133 (AWT): New conditional.
3134 * Makefile.in: Rebuilt.
3135 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3137 (libgcjawt_la_SOURCES): New macro.
3138 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3139 (libgcjawt_la_DEPENDENCIES): Likewise.
3140 (libgcjawt_la_LIBADD): Likewise.
3141 (libgcjawt_la_LDFLAGS): Likewise.
3142 (libgcj.zip): Depend on cond_java_awt_source_files
3143 (cond_awt_java_source_files): New macro.
3144 (MOSTLYCLEANFILES): Added awto_files.
3145 (awto_files): New macro. Use where javao_files used.
3146 (nat_headers): Use cond_awt_java_source_files.
3148 2000-04-04 Tom Tromey <tromey@cygnus.com>
3150 * Makefile.in: Rebuilt.
3151 * Makefile.am (awt_java_source_files): Added AWTException.java.
3152 * java/awt/AWTException.java: New file.
3154 2000-04-03 Tom Tromey <tromey@cygnus.com>
3156 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3157 commentary from Alex.
3159 * Makefile.in: Rebuilt.
3160 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3163 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
3165 * configure: Rebuilt.
3166 * configure.in: Add --disable-jvmpi.
3167 * include/config.h.in: Rebuilt.
3168 * acconfig.h: Add ENABLE_JVMPI.
3170 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3171 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3172 (_Jv_JVMPI_Notify_THREAD_END): New define.
3173 (_Jv_JVMPI_Notify_THREAD_END): New define.
3174 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3175 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3176 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3178 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3181 * java/lang/natThread.cc: Include JVMPI headers if necessary.
3182 (finish_): Generate JVMPI thread end events.
3183 (run_): Generate JVMPI thread start events.
3184 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3185 preloaded JNI library.
3186 Include JVMPI headers if necessary.
3187 (run): Generate JVMPI thread start events.
3189 * boehm.cc: Define GC_disable and GC_enable.
3190 (_Jv_DisableGC): New function.
3191 (_Jv_EnableGC): New function.
3192 (disable_gc_mutex): Declare.
3193 * nogc.cc (_Jv_DisableGC): New function.
3194 (_Jv_EnableGC): New function.
3196 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3197 (_Jv_JVMPI_Interface): Define.
3198 (jvmpiEnableEvent): New function.
3199 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3201 * include/jvmpi.h: New file.
3203 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
3205 * Makefile.in: New #defines and friends for Thread.h.
3206 * Makefile.am: Ditto.
3207 * posix-threads.cc: (struct starter): Remove `object'.
3208 (_Jv_CondWait): Use interruptable condition variables and new
3209 recursive mutexes. New return codes on interrupt or non-ownership
3211 (_Jv_CondNotify): Ditto.
3212 (_Jv_CondNotifyAll): Ditto.
3213 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3214 the target thread by signaling its wait condition.
3215 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3216 not the starter struct. Initialize wait_mutex and wait_cond.
3217 (_Jv_MutexLock): New recursive mutex implementation. Moved from
3219 (_Jv_MutexUnlock): Ditto.
3220 (really_start): Set info->data->thread from pthread_self() to work
3221 around a race condition. Destroy wait_mutex and wait_cond when run()
3223 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3224 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3226 startable_flag: New private field.
3227 (Thread): Initialize `startable_flag'.
3228 (toString): Check for null thread group.
3229 * java/lang/natThread.cc: (struct natThread): New fields
3230 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3231 (class locker): Removed.
3232 (initialize_native): Initialize `join_cond' and `join_mutex'.
3233 (interrupt): Now just calls _Jv_ThreadInterrupt().
3234 (join): Simplified. Just wait on the target thread's join condition.
3235 (finish_): Remove join list code. Unset thread group. Signal
3236 potential joiners by notifying the dying threads join_cond.
3237 (start): Check for illegal restarts.
3238 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3240 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3241 #defines and #ifdefs.
3242 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3243 `wait_mutex', `next'.
3244 (struct _Jv_ConditionVariable_t): Define as a struct instead of
3245 directly mapping to pthread_cond_t.
3246 (struct _Jv_Mutex_t): New recursive implementation.
3247 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3248 _Jv_HaveCondDestroy: Never define this for posix-threads.
3249 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3250 (_Jv_CondNotifyAll): Ditto.
3251 (_Jv_MutexLock): Ditto.
3252 (_Jv_MutexUnlock): Ditto.
3253 (_Jv_MutexInit): Changed to reflect new mutex implementation.
3254 (_Jv_MutexDestroy): Ditto.
3255 (_Jv_CondDestroy): Removed.
3256 (_Jv_PthreadGetMutex): Removed.
3257 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
3258 error. Add a FIXME about this.
3259 (_Jv_CondNotifyAll): Ditto.
3260 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
3261 _JV_NOT_OWNER on other errors. Add FIXME.
3263 2000-03-26 Tom Tromey <tromey@cygnus.com>
3265 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
3267 (call): Don't throw exception here.
3269 2000-03-26 Tom Tromey <tromey@cygnus.com>
3271 * java/lang/mprec.h: Use SIZEOF_VOID_P.
3272 * interpret.cc: Use SIZEOF_VOID_P.
3273 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
3274 (_Jv_loadLong): Likewise.
3275 (_Jv_storeDouble): Likewise.
3276 * configure: Rebuilt.
3277 * configure.in: Check size of void*.
3279 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
3281 2000-03-26 Hans Boehm <boehm@acm.org>
3283 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
3284 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
3286 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
3287 __IEEE_LITTLE_ENDIAN appropriately on IA64.
3288 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
3289 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
3291 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
3292 (FFI_RAW_SIZE): Likewise.
3293 (_Jv_InterpMethod::ncode): Use them.
3294 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
3295 STORED): Define differently on a 64 bit machine.
3296 (continue1): Use ffi_java_raw_call when appropriate.
3298 2000-03-24 Warren Levy <warrenl@cygnus.com>
3300 * java/math/BigInteger.java(divide): Handle the special case when
3301 dividing by 1 and the high bit of the dividend is set.
3302 (setShiftRight): Handle case when count == 0.
3304 2000-03-24 Warren Levy <warrenl@cygnus.com>
3306 * java/awt/Font.java(isBold): Fix syntax error.
3308 * java/awt/Frame.java(postEvent): ditto.
3309 * java/awt/Menu.java(postEvent): ditto.
3310 * java/awt/MenuBar.java(postEvent): ditto.
3311 * java/awt/Toolkit.java(init): Included a stub.
3313 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
3315 * java/awt/Event.java: Add all the event type constants.
3316 (Event): Implemented constructors.
3317 (controlDown): Implemented.
3318 (metaDown): Implemented.
3319 (paramString): Stubbed.
3320 (shiftDown): Implemented.
3321 (toString): Implemented.
3322 (translate): Implemented.
3324 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
3326 * java/lang/natClass.cc (isInstance): Initialize `this'.
3327 (isAssignableFrom): Initialize `this' and `klass'.
3328 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
3329 implemented by any loaded class, so return false.
3330 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
3331 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
3333 2000-03-19 Warren Levy <warrenl@cygnus.com>
3335 * java/awt/Color.java: Specified java.io for Serializable.
3336 * java/awt/Toolkit.java: Imported java.net.URL.
3338 2000-03-19 Warren Levy <warrenl@cygnus.com>
3340 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
3342 2000-03-16 Warren Levy <warrenl@cygnus.com>
3344 * java/awt/Color.java: New file.
3345 * java/awt/Graphics.java: New file.
3346 * java/awt/Image.java: New file.
3347 * java/awt/Paint.java: New file.
3348 * java/awt/PaintContext.java: New file.
3349 * java/awt/Transparency.java: New file.
3350 * java/util/Collection.java: New file.
3351 * java/util/Comparator.java: New file.
3352 * java/util/Iterator.java: New file.
3353 * java/util/List.java: New file.
3354 * java/util/ListIterator.java: New file.
3355 * Makefile.am: Added above new files.
3356 * Makefile.in: Rebuilt.
3358 * java/awt/Font.java (PLAIN): New field.
3360 (ITALIC): New field.
3361 (ROMAN_BASELINE): New field.
3362 (CENTER_BASELINE): New field.
3363 (HANGING_BASELINE): New field.
3367 (pointSize): New field.
3368 (Font): Implemented constructor.
3369 (isPlain): Implemented method.
3370 (isBold): Implemented method.
3371 (isItalic): Implemented method.
3372 (getName): Implemented method.
3373 (getStyle): Implemented method.
3374 (getSize): Implemented method.
3375 (getSize2D): Implemented method.
3377 * java/awt/Frame.java (getFont): Stubbed.
3378 (postEvent): Stubbed.
3380 * java/awt/Menu.java (postEvent): Stubbed.
3381 * java/awt/MenuBar.java (getFont): Stubbed.
3382 (postEvent): Stubbed.
3383 * java/awt/Toolkit.java (getImage): Added abstract method.
3385 2000-03-15 Tom Tromey <tromey@cygnus.com>
3387 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
3389 * prims.cc (win32_exception_handler): Reformatted.
3391 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
3392 (_Jv_HaveMutexDestroy): Likewise.
3394 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
3396 * java/io/natFileDescriptorWin32.cc: New file.
3397 * java/io/natFileWin32.cc: New file.
3398 * java/net/natInetAddress.cc: Added conditional inclusion of
3399 Windows / Winsock headers.
3400 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
3401 inclusion of Windows / Winsock headers.
3402 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
3403 Windows / Winsock headers.
3404 * include/win32-signal.h: New file.
3405 * include/win32-threads.h: New file.
3406 * win32-threads.cc: New file.
3407 * exception.cc (win32_get_restart_frame): New function.
3408 * prims.cc (win32_exception_handler): New function.
3409 (main_init) Performs Winsock initialisation.
3410 (main_init) Installs exeception handler.
3412 2000-03-14 Tom Tromey <tromey@cygnus.com>
3414 * jni.cc (mangled_name): Fixed assertion.
3415 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
3416 turned assert into actual failure.
3418 2000-03-09 Warren Levy <warrenl@cygnus.com>
3420 * java/security/Key.java(serialVersionUID): Set to 0 for now.
3421 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
3422 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
3424 2000-03-09 Warren Levy <warrenl@cygnus.com>
3426 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
3427 * java/security/DigestException.java: New file.
3428 * java/security/GeneralSecurityException.java: New file.
3429 * java/security/InvalidAlgorithmParameterException.java: New file.
3430 * java/security/InvalidKeyException.java: New file.
3431 * java/security/InvalidParameterException.java: New file.
3432 * java/security/Key.java: New file.
3433 * java/security/KeyException.java: New file.
3434 * java/security/KeyPair.java: New file.
3435 * java/security/KeyPairGenerator.java: New file.
3436 * java/security/KeyPairGeneratorSpi.java: New file.
3437 * java/security/NoSuchProviderException.java: New file.
3438 * java/security/PrivateKey.java: New file.
3439 * java/security/Provider.java: New file.
3440 * java/security/PublicKey.java: New file.
3441 * java/security/SecureRandom.java: New file.
3442 * java/security/Security.java: New file.
3443 * java/security/Signature.java: New file.
3444 * java/security/SignatureException.java: New file.
3445 * java/security/interfaces/DSAKey.java: New file.
3446 * java/security/interfaces/DSAParams.java: New file.
3447 * java/security/interfaces/DSAPrivateKey.java: New file.
3448 * java/security/interfaces/DSAPublicKey.java: New file.
3449 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
3450 * java/security/interfaces/RSAPrivateKey.java: New file.
3451 * java/security/interfaces/RSAPublicKey.java: New file.
3452 * java/security/spec/AlgorithmParameterSpec.java: New file.
3453 * java/security/spec/InvalidKeySpecException.java: New file.
3454 * java/security/spec/InvalidParameterSpecException.java: New file.
3455 * java/security/spec/KeySpec.java: New file.
3456 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
3457 * java/security/spec/RSAPrivateKeySpec.java: New file.
3458 * java/security/spec/RSAPublicKeySpec.java: New file.
3459 * Makefile.am: Added above java.security files.
3460 * Makefile.in: Rebuilt.
3462 * java/security/MessageDigest.java: Rewritten.
3463 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
3465 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
3469 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
3471 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
3472 _Jv_PrepareConstantTimeTables.
3473 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
3474 classes should have an IDT, so don't return if klass is an array
3477 2000-03-08 Tom Tromey <tromey@cygnus.com>
3479 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
3480 of `void' to be created.
3482 2000-03-08 Warren Levy <warrenl@cygnus.com>
3484 * java/math/BigInteger.java(signum): Handle zero properly.
3486 2000-03-07 Tom Tromey <tromey@cygnus.com>
3488 * All files: Updated copyright information.
3489 * COPYING: New file.
3490 * COPYING.LIB: Removed.
3491 * LIBGCJ_LICENSE: We now use GPL + special exception.
3493 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
3495 * resolve.cc (_Jv_SearchMethodInClass): New function.
3496 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
3497 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
3499 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
3501 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
3502 (struct _Jv_ifaces): New declaration.
3503 JV_CLASS: New macro definition.
3504 (getComponentType): Relocate below isArray() for inlining.
3505 (getModifiers): Declare `inline'.
3506 (getSuperclass): Ditto.
3508 (isPrimitive): Ditto.
3509 (_Jv_IsAssignableFrom): New prototype.
3510 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
3512 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
3513 Check for JV_STATE_DONE before invoking initializeClass().
3514 (_Jv_PrepareConstantTimeTables): New prototype.
3515 (_Jv_GetInterfaces): Ditto.
3516 (_Jv_GenerateITable): Ditto.
3517 (_Jv_GetMethodString): Ditto.
3518 (_Jv_AppendPartialITable): Ditto.
3519 (_Jv_FindIIndex): Ditto.
3520 depth, ancestors, idt: New class fields.
3522 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
3523 inline function `_Jv_IsAssignableFrom'. Use that function.
3524 (isInstance): Declare `inline'.
3525 (initializeClass): Get lock on class before checking `state'. Unlock
3526 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
3528 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
3529 (_Jv_IsAssignableFrom): New inline function. Test assignability using
3530 class->depth and ancestor table.
3531 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
3532 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
3533 _Jv_IsAssignableFrom.
3534 (_Jv_CheckArrayStore): Ditto.
3535 (_Jv_LookupInterfaceMethodIdx): New function.
3536 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
3537 (_Jv_PrepareConstantTimeTables): New function.
3538 (_Jv_IndexOf): Ditto.
3539 (_Jv_GetInterfaces): Ditto.
3540 (_Jv_GenerateITable): Ditto.
3541 (_Jv_GetMethodString): Ditto.
3542 (_Jv_AppendPartialITable): Ditto.
3543 iindex_mutex, iindex_mutex_initialized: New static fields.
3544 (_Jv_FindIIndex): New function.
3546 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
3548 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
3549 (_Jv_CheckArrayStore): Ditto.
3550 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
3551 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
3552 Moved to gcj/array.h.
3553 (_Jv_Realloc): New function.
3555 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
3557 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
3558 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
3559 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
3560 JvNewDoubleArray): Implementations moved from prims.cc and
3563 * gcj/javaprims.h (_Jv_Realloc): Prototype.
3565 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
3567 2000-03-06 Tom Tromey <tromey@cygnus.com>
3569 * jni.cc (MARK_NONE): New define.
3570 (MARK_USER): Likewise.
3571 (MARK_SYSTEM): Likewise.
3572 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
3574 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
3575 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
3576 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
3577 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
3579 (call): Use MARK_SYSTEM.
3580 (_Jv_GetJNIEnvNewFrame): New function.
3581 (_Jv_LookupJNIMethod): New function.
3582 (_Jv_JNI_PopSystemFrame): New function.
3583 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
3585 2000-03-05 Tom Tromey <tromey@cygnus.com>
3587 Fix for PR libgcj/43:
3588 * include/Makefile.in: Rebuilt.
3589 * include/Makefile.am (include_HEADERS): New define.
3591 2000-03-05 Anthony Green <green@redhat.com>
3593 * gcj/javaprims.h ("Java"): Remove FirstThread.
3595 * configure.host: Fix __NO_MATH_INLNES botch.
3597 * Makefile.in: Rebuilt.
3598 * Makefile.am (nat_source_files): Move natFirstThread.cc.
3599 (gnu/gcj/runtime/FirstThread.h): Moved.
3600 (ordinary_java_source_files): Move FirstThread.java.
3601 * prims.cc: Deal with FirstThread movement.
3603 (_Jv_RunMain): Ditto.
3605 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
3606 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
3608 2000-03-05 Warren Levy <warrenl@cygnus.com>
3610 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
3611 Handle null addresses.
3613 2000-03-04 Anthony Green <green@redhat.com>
3615 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
3618 2000-03-04 Anthony Green <green@redhat.com>
3620 * configure: Rebuilt.
3621 * configure.in (ZLIBTESTSPEC): New macro.
3622 (GCTESTSPEC): New macro.
3623 (LIBGCJTESTSPEC): New macro.
3624 * libgcj-test.spec.in: New file.
3626 2000-03-02 Tom Tromey <tromey@cygnus.com>
3628 * include/java-interp.h: Don't include MethodInvocation.h.
3629 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
3630 * Makefile.in: Rebuilt.
3631 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
3632 (ordinary_java_source_files): Don't mention
3633 MethodInvocation.java.
3634 * gnu/gcj/runtime/MethodInvocation.java: Removed.
3635 * interpret.cc (MethodInvocation::continue1): Removed.
3636 (run): Handle exceptions here.
3637 * java/lang/ClassLoader.java (defineClass1, defineClass2):
3639 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
3641 (defineClass2): Removed.
3643 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
3645 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
3647 (hack_call): Removed.
3649 * java/lang/Class.h (Class): Removed hackRunInitializers,
3651 * java/lang/natClass.cc (hackRunInitializers): Removed.
3652 (initializeClass): Catch exceptions here.
3653 Include ExceptionInInitializerError.h.
3654 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
3657 * java/lang/Object.h (Object): Don't mention hack12_6.
3658 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
3660 * java/lang/Object.java (hack12_6): Removed.
3662 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
3663 (start): Use run_, not run__.
3664 * java/lang/Thread.java (run_): Renamed from run__; old run_
3667 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
3668 (_Jv_JNI_EnsureLocalCapacity): Likewise.
3669 (_Jv_JNI_DefineClass): Likewise.
3670 (_Jv_JNI_ThrowNew): Likewise.
3671 (_Jv_JNI_AllocObject): Likewise.
3672 (_Jv_JNI_GetAnyMethodID): Likewise.
3673 (_Jv_JNI_CallAnyMethodV): Likewise.
3674 (_Jv_JNI_CallAnyMethodA): Likewise.
3675 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3676 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
3677 (_Jv_JNI_GetAnyFieldID): Likewise.
3678 (_Jv_JNI_NewString): Likewise.
3679 (_Jv_JNI_NewStringUTF): Likewise.
3680 (_Jv_JNI_GetStringUTFChars): Likewise.
3681 (_Jv_JNI_NewObjectArray): Likewise.
3682 (_Jv_JNI_NewPrimitiveArray): Likewise.
3683 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
3684 (_Jv_JNI_GetStringRegion): Likewise.
3685 (_Jv_JNI_GetStringUTFRegion): Likewise.
3686 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
3687 (_Jv_JNI_MonitorEnter): Likewise.
3688 (_Jv_JNI_MonitorExit): Likewise.
3689 (_Jv_JNI_ToReflectedField): Likewise.
3690 (_Jv_JNI_ToReflectedMethod): Likewise.
3691 (_Jv_JNI_RegisterNatives): Likewise.
3692 (_Jv_JNI_AttachCurrentThread): Likewise.
3693 (_Jv_JNI_DestroyJavaVM): Likewise.
3695 2000-02-28 Mo DeJong <mdejong@cygnus.com>
3697 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
3698 error caused by the incorrect casting of a long to an int.
3700 2000-02-28 Mo DeJong <mdejong@cygnus.com>
3702 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
3703 SIGSEV caused by use of the wrong instance variable.
3705 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
3707 * java/io/File.java (File(String, String)): For dirPath, treat an
3708 empty String the same as `null'.
3710 2000-02-26 Anthony Green <green@cygnus.com>
3712 * gnu/gcj/io/MimeTypes.java: Test for null.
3714 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
3715 (JNI_GetCreatedJavaVMs): Remove compiler warning.
3717 * java/net/URLConnection.java: Update copyright notice.
3719 2000-02-25 Tom Tromey <tromey@cygnus.com>
3721 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
3724 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
3726 * java/net/URLConnection.java (initializeDateFormats): New
3728 (getHeaderFieldDate): Call initializeDateFormats if required.
3729 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
3731 Fix for PR libgcj/38.
3733 2000-02-24 Warren Levy <warrenl@cygnus.com>
3735 * java/math/BigInteger.java(ival): Made private.
3739 2000-02-20 Anthony Green <green@cygnus.com>
3741 * Makefile.in: Rebuilt.
3742 * Makefile.am (ordinary_java_source_files): Add
3743 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
3745 * scripts/MakeDefaultMimeTypes.java: New file.
3746 * scripts/mime.types: New file.
3747 * scripts/classes.pl: Moved from top level.
3748 * classes.pl: Moved to scripts directory.
3750 * java/net/URLConnection.java: Implement guessContentTypeFromName.
3752 * gnu/gcj/io/MimeTypes.java: New file.
3753 * gnu/gcj/io/DefaultMimeTypes.java: New file.
3755 2000-02-20 Tom Tromey <tromey@cygnus.com>
3757 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
3759 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3761 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
3764 2000-02-18 Tom Tromey <tromey@cygnus.com>
3766 * include/jvm.h (_Jv_GetJavaVM): Declare.
3767 * include/java-interp.h (_Jv_GetFirstMethod): New function.
3768 (_Jv_MethodBase::get_method): New method.
3769 (_Jv_JNIMethod::set_function): New method.
3770 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
3771 (_Jv_JNI_RegisterNatives): New function.
3772 (_Jv_JNIFunctions): Updated for new functions.
3773 (_Jv_GetJavaVM): New function.
3774 (_Jv_JNI_GetJavaVM): Use it. Now static.
3775 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
3776 is already a Java thread but does not have a JNIEnv yet.
3778 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
3781 2000-02-17 Tom Tromey <tromey@cygnus.com>
3783 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
3786 2000-02-16 Tom Tromey <tromey@cygnus.com>
3788 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
3790 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
3791 (_Jv_JNI_NewObject): Likewise.
3792 (_Jv_JNI_NewObjectA): Likewise.
3793 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
3794 as "return" type to _Jv_CallAnyMethodA.
3795 (_Jv_JNI_CallAnyMethodA): Likewise.
3796 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3798 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
3801 2000-02-15 Tom Tromey <tromey@cygnus.com>
3803 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
3805 (init_cif): Added `rtype_p' argument.
3806 * include/java-interp.h (class _Jv_MethodBase): Added
3808 (class _Jv_InterpMethod): Removed args_raw_size.
3809 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
3810 * jni.cc (call): Pass JNIEnv and (for static methods only) the
3811 class pointer as well as the ordinary arguments.
3813 * jni.cc (mangled_name): Skip leading `(' in signature.
3815 * jni.cc (add_char): Added missing `else'.
3817 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
3820 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3824 * java/lang/natRuntime.cc (_load): Include library path with
3827 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
3830 * java/lang/natThread.cc (dumpStack): Removed.
3831 * java/lang/Thread.java (dumpStack): Implemented.
3833 2000-02-15 Tom Tromey <tromey@cygnus.com>
3835 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
3836 with `lib' for loadLibrary. Fixes PR gcj/150.
3838 2000-02-14 Warren Levy <warrenl@cygnus.com>
3840 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
3842 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
3846 (modPow): Rewritten to not use the naive, slow, brute force approach.
3847 (isProbablePrime): Implemented.
3848 (testBit): Implemented.
3849 (flipBit): Implemented.
3850 (getLowestSetBit): Implemented.
3852 2000-02-16 Anthony Green <green@redhat.com>
3854 * configure.host: Use the same options for i386 and i486 as we do
3857 2000-02-12 Tom Tromey <tromey@cygnus.com>
3859 * java/io/File.java (createTempFile): Use low bits from counter,
3862 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
3864 * THANKS: More thanks.
3866 2000-02-11 Tom Tromey <tromey@cygnus.com>
3868 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
3869 astore instruction. From Hans Boehm.
3871 2000-02-11 Warren Levy <warrenl@cygnus.com>
3873 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
3874 (BigInteger(String)): New constructor.
3875 (not): Rewritten using version from Kawa's BitOps class.
3876 (valueOf): New private methods from Kawa's BitOps class.
3883 (andNot): Implemented.
3884 (clearBit): Implemented.
3885 (setBit): Implemented.
3886 (bitCount): Implemented.
3887 (toByteArray): Implemented.
3889 2000-02-11 Tom Tromey <tromey@cygnus.com>
3891 * java/io/File.java (nextValue): Now synchronized.
3893 2000-02-10 Tom Tromey <tromey@cygnus.com>
3895 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
3896 * java/io/FileDescriptor.java (EXCL): New static field.
3897 * java/io/File.java (tmpdir): New static field.
3898 (createTempFile): New method.
3899 (nextValue): New method.
3900 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
3903 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
3904 (jboolean): Declare as an attributed int, not a bool.
3905 (_Jv_func): Declare differently for C.
3907 * gnu/gcj/jni/natNativeThread.cc: New file.
3908 * gnu/gcj/jni/NativeThread.java: New file.
3909 * java/lang/Thread.java (data): Now a RawData.
3910 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
3912 * Makefile.in: Rebuilt.
3913 * Makefile.am (java/lang/Thread.h): New target.
3914 (ordinary_java_source_files): Added NativeThread.java.
3915 (nat_source_files): Added natNativeThread.cc.
3916 * java/lang/natThread.cc: Include <jni.h>
3917 (struct natThread): Added `jni_env' field.
3918 (_Jv_GetCurrentJNIEnv): New function.
3919 (_Jv_SetCurrentJNIEnv): Likewise.
3920 (initialize_native): Initialize jni_env.
3922 * jni.cc (ThreadGroupClass): New define.
3923 (_Jv_JNI_InvokeFunctions): New structure.
3924 (JNI_GetCreatedJavaVMs): New function.
3925 (the_vm): New global.
3926 (JNI_GetDefaultJavaVMInitArgs): New function.
3927 Include NativeThread.h.
3928 (NativeThreadClass): New define.
3929 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
3930 (_Jv_JNI_DestroyJavaVM): New function.
3931 (_Jv_JNI_AttachCurrentThread): New function.
3932 (_Jv_JNI_DetachCurrentThread): New function.
3933 (_Jv_JNI_GetEnv): New function.
3934 (JNI_CreateJavaVM): New function.
3935 (_Jv_JNI_GetJavaVM): New function.
3936 (_Jv_JNIFunctions): Added entry for GetJavaVM.
3937 * include/jni.h (JavaVMAttachArgs): New structure.
3938 (JNI_EDETACHED): New define.
3939 (JNI_EVERSION): Likewise.
3940 (JavaVM): Define properly.
3941 (struct JNIInvokeInterface): New structure.
3942 (class _Jv_JavaVM): New class.
3943 (JNI_OnLoad, JNI_OnUnload): Declare.
3944 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
3945 JNI_GetCreatedJavaVMs): Declare.
3946 (JavaVMInitArgs): New typedef.
3947 (JavaVMOption): Likewise.
3948 (JNI_ERR): New define.
3951 2000-02-10 Andrew Haley <aph@cygnus.com>
3953 * interpret.cc: Don't include fdlibm.h.
3954 Replace #if with #ifdef throughout.
3955 Declare extern __ieee754_fmod.
3956 (continue1): Remove op_getfield, op_getstatic, op_putfield,
3958 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
3959 Search class hierarchy for superclass vtable.
3961 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
3962 off the end of a pointer list.
3964 * java/lang/natThread.cc (stop): Don't abort, throw an exception
3968 2000-02-09 Tom Tromey <tromey@cygnus.com>
3970 * java/lang/natRuntime.cc (_load): Call add_library.
3971 (loadLibraryInternal): Likewise.
3973 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
3974 iconv_close when handle is not NULL. Thanks to Andrew Haley.
3975 (Output_iconv::finalize): Likewise.
3977 2000-02-08 Tom Tromey <tromey@cygnus.com>
3979 * java/util/Properties.java (setProperty): New method.
3980 (store): New method.
3982 2000-02-07 Tom Tromey <tromey@cygnus.com>
3984 * java/lang/Runtime.java (_load): Declare.
3985 (load, loadLibrary): Wrote in terms of _load.
3986 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
3988 (loadLibrary): Likewise.
3990 (_load): New method.
3991 (loadLibrary, load): Removed.
3993 * jni.cc (ThrowableClass): New define.
3994 (_Jv_JNI_Throw): Check argument.
3995 (_Jv_JNI_ThrowNew): Likewise.
3996 (wrap_value): Don't wrap object if it is NULL.
3997 (_Jv_JNI_DefineClass): Use wrap_value.
3998 (_Jv_JNI_FindClass): Likewise.
3999 (_Jv_JNI_GetSuperclass): Likewise.
4000 (_Jv_JNI_ExceptionOccurred): Likewise.
4001 (_Jv_JNI_AllocObject): Likewise.
4002 (_Jv_JNI_GetObjectClass): Likewise.
4003 (_Jv_JNI_NewString): Likewise.
4004 (_Jv_JNI_NewStringUTF): Likewise.
4005 (_Jv_JNI_NewObjectArray): Likewise.
4006 (_Jv_JNI_GetObjectArrayElement): Likewise.
4007 (_Jv_JNI_NewPrimitiveArray): Likewise.
4008 (_Jv_JNI_ToReflectedField): Likewise.
4009 (_Jv_JNI_ToReflectedMethod): Likewise.
4010 (_Jv_JNI_AllocObject): Check argument.
4011 (_Jv_JNI_NewObjectV): Likewise.
4012 (_Jv_JNI_NewObject): Likewise.
4013 (_Jv_JNI_NewObjectA): Likewise.
4014 (_Jv_JNI_GetObjectClass): Likewise.
4015 (_Jv_JNI_GetField): Likewise.
4016 (_Jv_JNI_SetField): Likewise.
4018 * interpret.cc (PUSHL): Don't use expression statement.
4023 * jni.cc (add_char): Conditional on INTERPRETER.
4024 (mangled_name): Likewise.
4026 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4028 (class _Jv_JNIMethod): Likewise.
4030 2000-02-04 Warren Levy <warrenl@cygnus.com>
4032 * Makefile.am: Added MPN.java and BigInteger.java.
4033 * Makefile.in: Rebuilt.
4034 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4036 * java/math/BigInteger.java: New file. Based primarily on
4037 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4039 2000-02-04 Tom Tromey <tromey@cygnus.com>
4041 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4043 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4044 if the method is native.
4045 * resolve.cc (ncode): Don't handle native methods.
4046 (_Jv_JNIMethod::ncode): New method.
4047 (_Jv_PrepareClass): Handle native methods.
4048 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4049 Include AbstractMethodError.h.
4050 (add_char): New function.
4051 (mangled_name): Likewise.
4052 * include/java-interp.h (class _Jv_JNIMethod): New class.
4053 (class _Jv_MethodBase): New class.
4054 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4055 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4058 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4059 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4060 libraries): New globals.
4061 (add_library): New function.
4062 (_Jv_FindSymbolInExecutable): New function.
4064 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4067 2000-02-04 Andrew Haley <aph@cygnus.com>
4069 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4070 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4071 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4072 printStackTrace to printRawStackTrace.
4074 2000-02-03 Tom Tromey <tromey@cygnus.com>
4076 * java/util/Calendar.java (toString): New method.
4077 * java/util/SimpleTimeZone.java (clone): New method.
4078 (toString): New method.
4079 * java/util/TimeZone.java (clone): New method.
4080 * java/text/SimpleDateFormat.java (clone): New method.
4081 * java/text/NumberFormat.java (clone): New method.
4082 (equals): New method.
4083 * java/text/Format.java (clone): New method.
4084 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4086 (clone): New method.
4087 * java/text/DateFormat.java (clone): New method.
4088 * java/text/Collator.java (clone): New method.
4090 2000-02-03 Tom Tromey <tromey@cygnus.com>
4092 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4095 2000-02-01 Tom Tromey <tromey@cygnus.com>
4097 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4098 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4099 constructing the closure if the function is native.
4100 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4101 a template function, #if'd out, or static.
4102 Include <java-interp.h>.
4104 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4106 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4108 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4109 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4111 (wrap_value): New function.
4112 (_Jv_JNI_CallAnyMethodV): Use it.
4113 (_Jv_JNI_CallAnyMethodA): Likewise.
4114 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4115 (_Jv_JNI_GetStaticField): Likewise.
4117 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4118 (_Jv_JNI_GetStaticField): Likewise.
4120 2000-01-31 Tom Tromey <tromey@cygnus.com>
4122 * prims.cc (_Jv_MallocUnchecked): New function.
4123 (main_init): Call _Jv_JNI_Init.
4124 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4125 (_Jv_JNI_Init): Declare.
4126 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4128 (_Jv_JNI_NewGlobalRef): New function.
4129 (_Jv_JNI_DeleteGlobalRef): New function.
4130 (_Jv_JNI_DeleteLocalRef): New function.
4131 (_Jv_JNI_conversion_call): Initialize and clear local reference
4133 (_Jv_JNI_NewLocalRef): New function.
4134 (struct _Jv_JNI_LocalFrame): New structure.
4135 (_Jv_JNI_PushLocalFrame): New function.
4136 (_Jv_JNI_EnsureLocalCapacity): New function.
4137 (FRAME_SIZE): New define.
4138 (_Jv_JNI_GetStringChars): Mark string, not characters.
4139 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4140 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4141 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4143 (_Jv_JNI_DefineClass): Make return value a local ref.
4144 (_Jv_JNI_FindClass): Likewise.
4145 (_Jv_JNI_GetSuperclass): Likewise.
4146 (_Jv_JNI_ExceptionOccurred): Likewise.
4147 (_Jv_JNI_AllocObject): Likewise.
4148 (_Jv_JNI_GetObjectClass): Likewise.
4149 (_Jv_JNI_CallAnyMethodV): Likewise.
4150 (_Jv_JNI_NewString): Likewise.
4151 (_Jv_JNI_NewStringUTF): Likewise.
4152 (_Jv_JNI_NewObjectArray): Likewise.
4153 (_Jv_JNI_GetObjectArrayElement): Likewise.
4154 (_Jv_JNI_ToReflectedField): Likewise.
4155 (_Jv_JNI_ToReflectedMethod): Likewise.
4156 (_Jv_JNIFunctions): Updated table for new functions.
4157 (_Jv_JNI_Init): New function.
4158 (mark_for_gc): Wrote.
4159 (unmark_for_gc): Wrote.
4160 * include/jni.h (struct JNINativeInterface): Removed name from
4161 PopLocalFrame parameter.
4162 (class _Jv_JNIEnv): Added `locals' field.
4164 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
4166 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4169 2000-01-30 Tom Tromey <tromey@cygnus.com>
4171 * include/config.h.in: Rebuilt.
4172 * acconfig.h (HAVE_ICONV): Define.
4173 * configure: Rebuilt.
4174 * configure.in: Check for `iconv' function.
4175 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4176 no specific encoder exists.
4177 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4178 no specific encoder exists.
4179 * Makefile.in: Rebuilt.
4180 * Makefile.am (convert_source_files): Mention Input_iconv.java and
4182 (nat_source_files): Added natIconv.cc.
4183 * gnu/gcj/convert/natIconv.cc: New file.
4184 * gnu/gcj/convert/Input_iconv.java: New file.
4185 * gnu/gcj/convert/Output_iconv.java: New file.
4187 2000-01-28 Tom Tromey <tromey@cygnus.com>
4189 * Makefile.in: Rebuilt.
4190 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4192 2000-01-26 Tom Tromey <tromey@cygnus.com>
4194 * gcj/method.h (JvNumMethods): Moved from Class.h.
4195 (JvGetFirstMethod): Likewise.
4196 * java/lang/Class.h (Object): Updated decl of
4197 _Jv_JNI_ToReflectedField.
4198 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4199 * Makefile.in: Rebuilt.
4200 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4201 argument of _Jv_JNI_ToReflectedField.
4202 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4204 (java/lang/reflect/Method.h): Likewise.
4205 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
4207 (jweak): New typedef.
4208 (struct JNINativeInterface): Correctly declare remaining entries.
4209 * jni.cc: Include Class.h, ClassLoader.h.
4210 (_Jv_JNI_FindClass): New function.
4211 (_Jv_JNI_DefineClass): New function.
4212 (_Jv_JNI_conversion_call): New function.
4213 (_Jv_JNI_FindClass): Use current class loader to find class.
4214 (_Jv_JNI_ExceptionCheck): New function.
4215 (_Jv_JNI_FromReflectedField): Now static.
4216 (MethodClass): New define.
4217 (_Jv_JNI_FromReflectedMethod): New function.
4218 (_Jv_JNI_ToReflectedMethod): Likewise.
4220 (_Jv_JNI_IsAssignableFrom): Renamed.
4221 (_Jv_JNI_GetStringRegion): New function.
4222 Include StringIndexOutOfBoundsException.h.
4223 (_Jv_JNI_GetStringUTFRegion): New function.
4224 (_Jv_JNIFunctions): Updated for new functions.
4225 (_Jv_JNI_GetPrimitiveArrayCritical): New function
4226 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4227 (_Jv_JNI_GetStringCritical): New function.
4228 (_Jv_JNI_ReleaseStringCritical): Likewise.
4229 (get_throwable): Removed.
4230 (GCJ_JV_JNIENV_FRIEND): Removed.
4231 (__GCJ_JNI_IMPL__): Define.
4234 * resolve.cc (get_ffi_type_from_signature): Handle case where
4237 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
4239 * interpret.cc (run): Don't call println.
4240 Don't include PrintStream.h.
4242 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4243 nameIndex. Use "jint" as type for boffset.
4244 * java/lang/Class.h (struct _Jv_Method): Made accflags a
4246 (Class): Likewise. Also changed type of method_count,
4247 vtable_method_count, size_in_bytes, field_count,
4248 static_field_count, interface_count.
4249 * gcj/array.h (__JArray): Made `length' a const jsize, not an
4252 2000-01-21 Tom Tromey <tromey@cygnus.com>
4254 * java/lang/reflect/natConstructor.cc (newInstance): Use
4256 * include/jvm.h: Declare _Jv_CallAnyMethodA.
4257 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
4258 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
4261 (invoke): Use _Jv_CallAnyMethodA.
4263 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
4264 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
4266 (struct _Jv_Method): Added getNextMethod method.
4267 (JvNumMethods): New function.
4268 (JvGetFirstMethod): Likewise.
4269 * gcj/field.h (JvGetFirstStaticField): New function.
4270 (JvNumStaticFields): Likewise.
4271 (getNextField): Renamed from getNextInstanceField.
4272 (struct _Jv_Field): New method getClass.
4273 * jni.cc: Wrote many new functions.
4274 * include/jni.h (JNI_TRUE): Define.
4275 (JNI_FALSE): Likewise.
4276 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
4277 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
4278 jcharArray, jfloatArray, jdoubleArray): New typedefs.
4279 (jfieldID, jmethodID): Likewise.
4280 (JNI_COMMIT, JNI_ABORT): New defines.
4281 (JNINativeMethod): New struct.
4282 (struct JNINativeInterface): Correctly declared more entries.
4283 (class _Jv_JNIEnv): Added `ex' member.
4284 (JNI_VERSION_1_1): New define.
4285 (JNI_VERSION_1_2): Likewise.
4287 * boehm.cc (_Jv_MarkObj): Use getNextField, not
4288 getNextInstanceField.
4290 2000-01-20 Tom Tromey <tromey@cygnus.com>
4292 * resolve.cc (StringClass): Removed.
4293 * defineclass.cc (StringClass): Removed.
4295 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
4299 2000-01-19 Tom Tromey <tromey@cygnus.com>
4301 * interpret.cc (PC_REGISTER_ASM): Removed.
4303 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
4304 From Bryce McKinlay.
4306 * All files: Updated copyright to reflect Cygnus purchase.
4308 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
4310 * configure: Rebuilt.
4311 * configure.in: Recognize --disable-interpreter.
4313 2000-01-18 Andrew Haley <aph@cygnus.com>
4315 * name-finder.cc (lookup): Check for dladdr function.
4316 acconfig.h (HAVE_DLADDR): Add.
4317 configure.in: Check for HAVE_DLADDR
4319 include/config.h.in: Rebuilt.
4321 2000-01-17 Andrew Haley <aph@cygnus.com>
4323 * prims.cc (_Jv_RunMain): Set the name of this executable.
4325 2000-01-17 Tom Tromey <tromey@cygnus.com>
4327 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
4328 when backtrace can't be computed.
4330 * configure: Rebuilt.
4331 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
4333 * java/lang/Runtime.java (loadLibraryInternal): Declare.
4334 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
4335 (_Jv_FindClassInCache): Likewise.
4336 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
4337 (findSystemClass): Try to load class from compiled module.
4339 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
4340 (loadLibrary): Likewise.
4341 (lt_preloaded_symbols): Define.
4342 (loadLibraryInternal): New method.
4343 * include/config.h.in: Rebuilt.
4344 * acconfig.h (USE_LTDL): Added.
4345 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
4346 (INCLUDES): Added $(INCLTDL).
4347 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
4348 (libgcj_la_LIBADD): Likewise.
4349 * aclocal.m4, configure: Rebuilt.
4350 * configure.in: Added libltdl support.
4352 2000-01-15 Tom Tromey <tromey@cygnus.com>
4354 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
4356 2000-01-14 Andrew Haley <aph@cygnus.com>
4358 * java/lang/natThrowable.cc: New file.
4360 * java/lang/Throwable.java (fillInStackTrace): Make native.
4361 (printStackTrace): Call native method to do this.
4362 (Throwable): Call fillInStackTrace.
4363 (stackTrace): New variable.
4365 * include/jvm.h: Add _Jv_ThisExecutable functions.
4367 * prims.cc: (_Jv_execName): New variable.
4368 (catch_segv): Call fillInStackTrace.
4370 (_Jv_ThisExecutable): New functions.
4371 (JvRunMain): Set the name of this executable.
4373 * Makefile.am: Add java/lang/natThrowable.cc.
4375 * Makefile.in: Rebuilt.
4377 * acconfig.h: Add HAVE_PROC_SELF_EXE.
4379 * configure.in: Force link with __frame_state_for in
4380 FORCELIBGCCSPEC. Add new checks for backtrace.
4381 * include/config.h.in: Rebuilt.
4383 * name-finder.cc: New file.
4384 * include/name-finder.h: New file.
4386 2000-01-16 Anthony Green <green@cygnus.com>
4388 * java/lang/StringBuffer.java (StringBuffer): Don't special case
4391 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
4393 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
4395 2000-01-13 Tom Tromey <tromey@cygnus.com>
4397 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
4398 not system loader, as initiating loader.
4400 2000-01-11 Tom Tromey <tromey@cygnus.com>
4402 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
4403 HP/UX. From David Scott Urban.
4405 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
4407 * java/lang/natMath.cc (pow): Cast args to `double', not
4410 (IEEEremainder): Likewise.
4411 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
4412 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
4414 2000-01-09 Anthony Green <green@cygnus.com>
4416 * java/lang/natString.cc (init): Test for overflow condition
4417 during out of bounds check.
4418 (getChars): Throw StringIndexOutOfBoundsException, not
4419 ArrayIndexOutOfBoundsException.
4421 (regionMatches): Obey case option during string comparison.
4423 * configure.host (ligcj_interpreter): New variable. Enable
4424 interpreter by default on IA-32.
4425 * configure.in: Examine libgcj_interpreter.
4426 * configure: Rebuilt.
4428 2000-01-07 Tom Tromey <tromey@cygnus.com>
4430 * mauve-libgcj: Don't disable ClassTest.
4432 * java/lang/natClass.cc (getClasses): Wrote.
4434 2000-01-06 Tom Tromey <tromey@cygnus.com>
4436 * java/lang/natClass.cc (_getConstructors): Correctly check
4437 whether method name is the init name.
4438 (getMethod): Look at accflags on method in `klass', not `this'.
4440 2000-01-05 Tom Tromey <tromey@cygnus.com>
4442 * java/lang/natClass.cc (getMethod): Compute offset relative to
4443 `klass's methods table, not `this's table.
4445 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
4446 In unwrapping/widening case, check whether `k' is null, not
4447 whether it is primitive. Initialize `num' from `argelts', not
4448 `paramelts'. Correct create and pass arguments to ffi_call.
4449 Don't let presence of `this' argument affect index used to look in
4451 (COPY): Set appropriate element in `values' vector.
4453 * java/lang/natClass.cc: Include <gcj/method.h>.
4455 * java/lang/Class.h (_getMethods): Correctly declare as private,
4458 * java/lang/Class.h (_getMethods): Declare.
4459 * java/lang/Class.java (_getMethods): Declare.
4460 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
4461 (getDeclaredClasses): Always return empty array.
4462 (_getMethods): New method.
4463 (getMethods): Wrote.
4464 (getDeclaredMethod): Return `rmethod'.
4465 (finit_name): New global.
4466 (getDeclaredMethods): Check for finit_name.
4467 (_getMethods): Likewise.
4468 (getMethod): Only return public methods.
4470 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
4471 jboolean and select correct ffi type on that basis.
4472 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
4473 Constructor call always has `void' return type.
4475 2000-01-04 Tom Tromey <tromey@cygnus.com>
4477 * java/lang/Class.h (getSignature): Updated.
4478 * java/lang/Class.java (getSignature): Updated.
4479 * java/lang/natClass.cc (getSignature): Added `is_constructor'
4481 (getConstructor): Ensure constructor is public.
4482 (_getConstructors): Check for public-ness of constructor when
4483 `declared' is false, not when it is true.
4485 2000-01-04 Warren Levy <warrenl@cygnus.com>
4487 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
4489 (receive): Set the sender's address in the DatagramPacket.
4491 2000-01-04 Tom Tromey <tromey@cygnus.com>
4493 * java/lang/reflect/natConstructor.cc (newInstance): Pass
4494 declaring class as return_type argument to
4495 _Jv_CallNonvirtualMethodA.
4496 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
4497 constructor case, create object and use it as `this' argument.
4498 * java/lang/Class.h (_getConstructors): Declare.
4499 (_getFields): Declare.
4500 * java/lang/Class.java (getConstructors): Wrote.
4501 (_getConstructors): New native method.
4502 (getDeclaredConstructors): Wrote.
4503 (_getFields): Declare new native method.
4504 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
4506 (getMethod): Work correctly when class is primitive.
4507 (getDeclaredMethods): Likewise. Compute offset using `method',
4509 (getDeclaredMethod): Likewise.
4510 (getConstructor): Wrote.
4511 (ConstructorClass): New define.
4512 (getDeclaredConstructor): Wrote.
4513 (_getConstructors): New method.
4514 (_getFields): New method.
4517 * Makefile.in: Rebuilt.
4518 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
4520 * prims.cc: Remove `#pragma implementation'.
4521 * gcj/array.h: Remove `#pragma interface'.
4523 * prims.cc (_Jv_equaln): New function.
4524 * java/lang/Class.java (getSignature): Declare.
4525 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
4526 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
4528 (getSignature): New method.
4529 (getDeclaredMethod): Wrote.
4531 Include StringBuffer.h.
4532 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
4533 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
4535 (getSignature): Declare.
4536 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
4537 (_Jv_equaln): Declare.
4538 (_Jv_CallNonvirtualMethodA): Declare.
4539 * Makefile.in: Rebuilt.
4540 * Makefile.am (nat_source_files): Added natConstructor.cc.
4541 (java/lang/reflect/Constructor.h): New target.
4542 * java/lang/reflect/natConstructor.cc: New file.
4543 * java/lang/reflect/Constructor.java (newInstance): Now native.
4544 (declaringClass): Renamed from decl_class.
4545 (offset): Renamed from index.
4546 (getType): New native method.
4547 (getModifiers): Now native.
4548 (getParameterTypes): Call getType if required.
4549 (hashCode): Include hash code from declaring class.
4550 (modifiers): Removed.
4551 (toString): Call getType if required.
4552 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
4553 * java/lang/reflect/natMethod.cc (hack_call): New method.
4554 Removed `#if 0' around FFI code.
4555 Include <gnu/gcj/RawData.h>.
4556 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
4557 IllegalArgumentException when argument object and class disagree.
4558 (_Jv_GetTypesFromSignature): New function.
4560 (ObjectClass): New define.
4561 (_Jv_CallNonvirtualMethodA): New function.
4562 * java/lang/reflect/Method.java (hack_trampoline): New method.
4563 (hack_call): New native method.