1 2000-11-01 Tom Tromey <tromey@cygnus.com>
3 * scripts/encodings.pl: Added `ASCII' alias.
4 * Makefile.in: Rebuilt.
5 * Makefile.am (convert_source_files): Added new files.
6 * gnu/gcj/convert/Input_ASCII.java: New file.
7 * gnu/gcj/convert/Output_ASCII.java: New file.
8 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
9 out-of-range characters.
10 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
11 (read): Swap bytes if required. Treat `count' as character count,
13 (write): Likewise. Also, handle case where iconv fails on a given
15 (init): Put encoding into exception.
16 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
17 (static): Call iconv_init. Rebuilt alias list.
18 (iconv_init): New private method.
20 2000-11-01 Tom Tromey <tromey@cygnus.com>
22 * Makefile.in: Rebuilt.
23 * Makefile.am (install-exec-hook): Only make a single symlink, and
24 remove the destination before making the link.
26 * configure.in: Call AC_PROG_LN_S.
28 2000-10-31 Warren Levy <warrenl@cygnus.com>
30 * jni.cc: Added include of java/lang/ThreadGroup.h.
31 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
32 per change of 2000-10-05.
34 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
36 * java/util/BitSet.java: Updated @specnote.
38 * java/io/Reader.java: Merge docs from classpath.
39 (skip): Synchronize on `lock'.
40 * java/io/FileReader.java: Import correct implementation from
42 * java/io/StringReader.java: Merge docs from classpath.
43 (ready): Throw IOException if stream is closed.
45 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
47 * java/util/AbstractCollection.java (addAll): Use size() instead of
48 hasNext() in iterator loop.
50 (contains): Ditto. Simplify loop.
56 (toString): Ditto. Use string concatenation operators, not
58 * java/util/AbstractList.java (addAll): Use size() instead of
59 hasNext() in iterator loop.
62 (indexOf): Ditto. Don't take null check outside of the loop.
63 (iterator): Return an AbstractListItr instead of anonymous class.
64 (lastIndexOf): Use a for loop bounded by size() instead of
65 hasPrevious() in iterator loop.
66 (listIterator): Return an AbstractListItr.
67 (removeRange): Remove bounds checking code and docs.
68 (AbstractListItr): New inner class. Code moved here from
70 (SubList.iterator): Removed. Use default implementation from
72 (SubList.listIterator): As above.
73 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
74 instead of hasNext() in iterator loop.
75 (containsValue): Ditto.
81 (toString): Ditto. Use string concatenation operators, not
83 * java/util/AbstractSequentialList.java (addAll): Use a for loop
84 bounded by size() instead of hasNext() in iterator loop.
85 * java/util/AbstractSet.java (hashCode): Don't catch exception as
86 part of normal execution flow. Do an explicit null check instead.
87 * java/util/ArrayList.java (_iSize): Rename to `size'.
88 (_arData): Rename to `data'.
89 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
92 (removeRange): Make protected. Don't check bounds.
93 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
95 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
97 (addAll (int, Collection)): Check lower bounds. Simplify exception
99 (clone): Clone the data array too.
100 (indexOf): Inline doesEqual().
101 (lastIndexOf): Ditto.
102 (clear): Don't set array data to null.
103 (set): Check lower bounds. Simplify exception string.
104 (toArray): Correct comment.
105 (trimToSize): Don't update modCount, this is not a structural change.
108 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
110 (toString): Declare `bit' as long, not int.
111 (data): Made package-private, not private.
113 2000-10-27 Warren Levy <warrenl@cygnus.com>
115 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
116 array elements to true.
118 2000-10-27 Warren Levy <warrenl@cygnus.com>
120 * Makefile.am: Added locale files from Classpath.
121 * Makefile.in: Rebuilt.
122 * gnu/java/locale/Calendar.java: New file.
123 * gnu/java/locale/Calendar_de.java: New file.
124 * gnu/java/locale/Calendar_en.java: New file.
125 * gnu/java/locale/Calendar_nl.java: New file.
126 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
127 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
128 serialization compatibility.
129 (scale): Made private.
130 (serialVersionUID): New field.
131 * java/math/BigInteger.java (ival): Made transient.
132 (words): Made transient.
133 (bitCount): New serialization field.
135 (firstNonzeroByteNum): Ditto.
136 (lowestSetBit): Ditto.
139 (serialVersionUID): New field.
140 (readObject): New method.
141 (writeObject): New method.
142 * java/util/BitSet.java (serialVersionUID): New field.
143 * java/util/Calendar.java: Replaced with Classpath file.
144 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
145 of getDefault() for TimeZone or Locale instead of passing nulls.
146 * java/util/Locale.java (serialVersionUID): New field.
147 (writeObject): New method.
148 (readObject): New method.
149 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
151 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
153 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
154 (core_java_source_files): Put java.lang, java.io, and java.util here.
155 (ordinary_java_source_files): Order so that core_java_source_files are
157 (java_source_files): Reorder so that special_java_source_files are
159 * configure.in: Don't pass -I flag to gcj.
160 * Makefile.in: Rebuilt.
161 * configure: Rebuilt.
163 2000-10-25 Tom Tromey <tromey@cygnus.com>
165 * Makefile.in: Rebuilt.
166 * Makefile.am (install-exec-hook): New target.
168 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
170 * java/util/EventObject.java: Merged from classpath.
172 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
175 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
177 * java/util/AbstractSet.java (equals): Re-installed original code.
179 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
181 * Makefile.am: Added rules for libgcjx library.
182 * Makefile.in: Rebuilt.
183 * configure.in: Added check for X.
184 * configure: Rebuilt.
185 * gnu/awt/LightweightRedirector.java: New file.
186 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
187 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
188 * gnu/awt/j2d/Graphics2DImpl.java: New file.
189 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
190 * gnu/awt/j2d/MappedRaster.java: New file.
191 * gnu/awt/xlib/XCanvasPeer.java: New file.
192 * gnu/awt/xlib/XEventLoop.java: New file.
193 * gnu/awt/xlib/XEventQueue.java: New file.
194 * gnu/awt/xlib/XFontMetrics.java: New file.
195 * gnu/awt/xlib/XFramePeer.java: New file.
196 * gnu/awt/xlib/XGraphics.java: New file.
197 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
198 * gnu/awt/xlib/XPanelPeer.java: New file.
199 * gnu/awt/xlib/XToolkit.java: New file.
200 * gnu/gcj/xlib/Clip.java: New file.
201 * gnu/gcj/xlib/Colormap.java: New file.
202 * gnu/gcj/xlib/Display.java: New file.
203 * gnu/gcj/xlib/Drawable.java: New file.
204 * gnu/gcj/xlib/Font.java: New file.
205 * gnu/gcj/xlib/GC.java: New file.
206 * gnu/gcj/xlib/Pixmap.java: New file.
207 * gnu/gcj/xlib/Screen.java: New file.
208 * gnu/gcj/xlib/Visual.java: New file.
209 * gnu/gcj/xlib/WMSizeHints.java: New file.
210 * gnu/gcj/xlib/Window.java: New file.
211 * gnu/gcj/xlib/WindowAttributes.java: New file.
212 * gnu/gcj/xlib/XAnyEvent.java: New file.
213 * gnu/gcj/xlib/XButtonEvent.java: New file.
214 * gnu/gcj/xlib/XColor.java: New file.
215 * gnu/gcj/xlib/XConfigureEvent.java: New file.
216 * gnu/gcj/xlib/XConnectException.java: New file.
217 * gnu/gcj/xlib/XEvent.java: New file.
218 * gnu/gcj/xlib/XException.java: New file.
219 * gnu/gcj/xlib/XExposeEvent.java: New file.
220 * gnu/gcj/xlib/XID.java: New file.
221 * gnu/gcj/xlib/XImage.java: New file.
222 * gnu/gcj/xlib/XUnmapEvent.java: New file.
223 * gnu/gcj/xlib/natClip.cc: New file.
224 * gnu/gcj/xlib/natColormap.cc: New file.
225 * gnu/gcj/xlib/natDisplay.cc: New file.
226 * gnu/gcj/xlib/natDrawable.cc: New file.
227 * gnu/gcj/xlib/natFont.cc: New file.
228 * gnu/gcj/xlib/natGC.cc: New file.
229 * gnu/gcj/xlib/natPixmap.cc: New file.
230 * gnu/gcj/xlib/natScreen.cc: New file.
231 * gnu/gcj/xlib/natVisual.cc: New file.
232 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
233 * gnu/gcj/xlib/natWindow.cc: New file.
234 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
235 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
236 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
237 * gnu/gcj/xlib/natXColor.cc: New file.
238 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
239 * gnu/gcj/xlib/natXException.cc: New file.
240 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
241 * gnu/gcj/xlib/natXImage.cc: New file.
242 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
243 * java/awt/EventDispatchThread.java: Start thead on creation.
245 2000-10-20 Tom Tromey <tromey@cygnus.com>
247 From Arno J. Klaassen:
248 * interpret.cc: Include <stdlib.h> for alloca.
249 * defineclass.cc: Include <stdlib.h> for alloca.
251 * Makefile.in: Rebuilt.
252 * Makefile.am: Include deps.mk.
253 (GCJCOMPILE): Added -MD, -MT, and -MF.
254 ($(javao_files)): Don't depend on libgcj.zip.
255 (all-recursive): New target.
256 (%.lo:%.cc): Do dependency tracking.
257 ($(nat_headers)): Don't depend on libgcj.zip.
258 * configure: Rebuilt.
259 * configure.in: Make .d files and deps.mk.
261 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
263 * exception.cc: Don't #include "exception".
264 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
266 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
267 * Makefile.in: Updated.
269 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
271 * java/awt/peer/ChoicePeer.java (addItem): Removed.
272 * java/awt/peer/ComponentPeer.java (disable): Removed.
275 (minimumSize): Removed.
276 (preferredSize): Removed.
279 * java/awt/peer/ListPeer.java (addItem): Removed.
281 (minimumSize): Removed.
282 (preferredSize): Removed.
283 (setMultipleSelections): Removed.
284 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
285 (remove): Renamed from removeMenu.
286 * java/awt/peer/MenuItemPeer.java (disable): Removed.
288 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
289 (remove): Renamed from removeItem.
290 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
291 (getMinimumSize): Removed.
292 (getPreferredSize): Removed.
293 (minimumSize): Removed.
294 (preferredSize): Removed.
295 (replaceText): Removed.
296 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
297 (preferredSize): Removed.
298 (getMinimumSize): Removed.
299 (getPreferredSize): Removed.
300 (setEchoCharacter): Removed.
302 2000-10-10 Warren Levy <warrenl@cygnus.com>
304 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
305 * java/sql/Date.java (serialVersionUID): New field.
306 * java/sql/Time.java (serialVersionUID): New field.
307 * java/sql/Timestamp.java (serialVersionUID): New field.
308 * java/text/ChoiceFormat.java (serialVersionUID): New field.
309 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
310 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
311 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
312 (readObject): New serialization method.
313 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
314 (serialVersionOnStream): New field.
315 (readObject): New serialization method.
316 (getMonetaryDecimalSeparator): New method.
317 (setMonetaryDecimalSeparator): New method.
318 * java/text/NumberFormat.java (maxFractionDigits): New field.
319 (maxIntegerDigits): New field.
320 (minFractionDigits): New field.
321 (minIntegerDigits): New field.
322 (serialVersionOnStream): New field.
323 (serialVersionUID): New field.
324 (readObject): New serialization method.
325 (writeObject): New serialization method.
326 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
327 (serialVersionOnStream): New field.
328 (serialVersionUID): New field.
329 (readObject): New serialization method.
331 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
333 * configure.in (GCJ): Avoid bogus error message when looking for
334 (and not finding) gcj in the build tree.
335 * configure: Rebuilt.
337 2000-10-09 Tom Tromey <tromey@cygnus.com>
339 * configure: Rebuilt.
340 * configure.in: Include sys/types.h when checking for socklen_t.
341 From Arno J. Klaassen.
343 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
345 * include/jvm.h: Enable __builtin_expect().
347 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
348 the main program. Fix for PR libgcj/341.
350 2000-10-07 Tom Tromey <tromey@cygnus.com>
352 * java/util/Properties.java: Merged with Classpath version.
354 2000-10-05 Tom Tromey <tromey@cygnus.com>
356 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
357 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
358 * java/lang/Class.h (Object): Added `class$' field.
359 * java/lang/Object.h (Object): Added `class$' field.
360 * defineclass.cc (ClassClass): Use `class$' form.
361 (ClassObject): Likewise.
362 * resolve.cc (ClassObject): Use `class$' form.
363 (ObjectClass): Likewise.
364 * interpret.cc (ClassError): Removed.
365 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
367 (IntegerClass): Likewise.
368 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
370 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
371 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
372 SerializableClass): Likewise.
373 Include Serializable.h, Cloneable.h.
374 * java/lang/natSystem.cc (SystemClass): Removed.
375 (init_properties): Use `class$' form.
376 * java/lang/natObject.cc (CloneableClass): Removed.
377 (clone): Use `class$' form.
378 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
379 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
380 ConstructorClass): Likewise.
381 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
382 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
383 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
384 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
386 (ClassClass): Likewise.
387 * include/jvm.h (StringClass): Use `class$' form.
388 * prims.cc (ObjectClass): Removed.
389 (_Jv_RunMain): Use `class$' form.
390 (_Jv_AllocObject): Likewise.
391 * jni.cc (ClassClass): Use `class$' form.
392 (ThrowableClass): Likewise.
393 (ObjectClass): Likewise.
394 (MethodClass): Likewise.
395 (ThreadGroupClass): Likewise.
396 (NativeThreadClass): Likewise.
397 * boehm.cc (ObjectClass): Removed.
398 (ClassClass): Removed.
399 (_Jv_MarkObj): Use `class$' form.
400 * gcj/field.h (JvFieldIsRef): Use `class$' form.
403 2000-10-05 Warren Levy <warrenl@cygnus.com>
405 * Makefile.am: Removed java/io/Replaceable.java and
406 java/io/Resolvable.java.
407 * Makefile.in: Rebuilt.
408 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
410 * java/io/ObjectInputStream.java (processResolution): Fixed typo
412 (processResolution): Handle readResolve method via reflection with
413 removal of Resolvable interface.
414 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
415 method via reflection with removal of Replaceable interface.
416 * java/io/Replaceable.java: Removed.
417 * java/io/Resolvable.java: Removed.
418 * java/security/Key.java (serialVersionUID): New field.
419 * java/security/Provider.java (serialVersionUID): New field.
420 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
422 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
424 * java/sql/DataTruncation.java (serialVersionUID): New field.
425 * java/sql/SQLException.java (serialVersionUID): New field.
426 * java/sql/SQLWarning.java (serialVersionUID): New field.
427 * java/util/Date.java (serialVersionUID): New field.
428 (millis): Made transient.
429 (readObject): New method.
430 (writeObject): New method.
432 2000-10-05 Tom Tromey <tromey@cygnus.com>
434 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
436 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
438 * prims.cc (_Jv_argv, _Jv_argc): New fields.
439 (JvRunMain): Set _Jv_argv and _Jv_argc.
440 * java/awt/Component.java: Minor fixes.
441 * java/awt/Image.java (UndefinedProperty): Initialize final field.
442 * java/awt/Toolkit.java (systemEventQueue): Removed.
443 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
444 * java/awt/Window.java (getToolkit): Don't call super.
445 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
446 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
447 * gnu/awt/gtk/GtkComponentPeer.java: New file.
448 * gnu/awt/gtk/GtkContainerPeer.java: New file.
449 * gnu/awt/gtk/GtkFramePeer.java: New file.
450 * gnu/awt/gtk/GtkMainThread.java: New file.
451 * gnu/awt/gtk/GtkToolkit.java: New file.
452 * gnu/awt/gtk/GtkWindowPeer.java: New file.
453 * gnu/awt/gtk/gtkcommon.cc: New file.
454 * gnu/awt/gtk/gtkcommon.h: New file.
455 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
456 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
457 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
458 * gnu/awt/gtk/natGtkMainThread.cc: New file.
459 * gnu/awt/gtk/natGtkToolkit.cc: New file.
460 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
462 2000-09-30 Tom Tromey <tromey@cygnus.com>
464 * posix-threads.cc (_Jv_CondWait): Check to see if we are
465 interrupted before modifying the cv's wait set.
468 2000-09-30 Hans Boehm <boehm@acm.org>
469 Bryce McKinlay <bryce@albatross.co.nz>
471 Implement bitmap descriptor based marking for Boehm GC.
473 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
474 * configure: Rebuilt.
475 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
476 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
477 method get_finalizer().
478 (struct _Jv_ArrayVTable): Ditto. Declare method array with
479 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
480 (_Jv_AllocObj): Add new jclass parameter.
481 (_Jv_AllocArray): Ditto.
482 (_Jv_BuildGCDescr): New prototype.
483 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
484 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
485 get_finalizer() instead of direct finalizer vtable offset.
486 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
487 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
488 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
489 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
490 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
491 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
492 (_Jv_DetermineVTableIndex): Ditto.
493 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
494 calculations to account for new gc_descr field.
495 * boehm.cc: #include gc_gcj.h.
496 (obj_kind_x, obj_free_list): `#if 0'-ed away.
497 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
498 New commentary from HB. Mark the classes vtable.
499 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
500 (GC_DEFAULT_DESCR): New #define.
501 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
502 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
503 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
504 scan conservativly if size is less than min_heap_addr. Set vtable
505 pointer of new object before returning.
506 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
507 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
508 allocation for obj_kind_x.
509 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
510 (_Jv_AllocObj): Set vtable on returned object.
511 (_Jv_AllocArray): Ditto.
512 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
513 (_Jv_NewPrimArray): Ditto.
514 (_Jv_AllocObj): Declare as a friend.
515 (_Jv_AllocArray): Ditto.
516 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
517 from &ObjectClass into new array class. Remove offset-by-one
518 adjustments from `method' size calculations to account for gc_descr
521 2000-09-26 Tom Tromey <tromey@cygnus.com>
523 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
526 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
528 * java/lang/natSystem.cc (file_encoding): Added return statement.
530 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
532 * Makefile.am: Re-work shell commands that exceeded command-line
534 * Makefile.in: Rebuilt.
536 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
538 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
539 * java/lang/natDouble.cc: Likewise.
540 * java/lang/reflect/natMethod.cc: Likewise.
541 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
543 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
545 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
547 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
548 * acinclude.m4: Arrange for automake to not bring in a new
549 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
550 * Makefile.am: Leave it up to automake to subst GCJ.
551 * aclocal.m4, configure, Makefile.in: Rebuilt.
553 2000-09-13 Tom Tromey <tromey@cygnus.com>
555 * java/lang/reflect/natArray.cc (BooleanClass): New define.
556 (get): Ensure Boolean class is initialized.
557 * java/lang/reflect/natField.cc (BooleanClass): New define.
558 (get): Ensure Boolean class is initialized.
560 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
562 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
563 Initialize with anonymous class.
564 (compareToIgnoreCase): New method.
566 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
567 (uncaughtException): Set had_uncaught_exception.
568 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
569 exit with error status if set.
570 (_Jv_RunMain): Ditto.
572 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
574 * configure: Rebuilt with new ../libtool.m4.
576 2000-09-11 Tom Tromey <tromey@cygnus.com>
578 * java/lang/reflect/Field.java (toString): Don't rely on
581 2000-09-08 Tom Tromey <tromey@cygnus.com>
583 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
584 default decoder use iconv.
585 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
586 Let default encoder use iconv.
587 * configure: Rebuilt.
588 * configure.in: Check for nl_langinfo and <langinfo.h>.
589 * java/lang/natSystem.cc (file_encoding): New function.
590 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
592 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
594 * acinclude.m4: Simplify the tests for CC and CXX.
595 * aclocal.m4, configure: Rebuilt.
597 * acinclude.m4: Include libtool macros from the source tree.
598 * aclocal.m4, configure: Rebuilt.
600 2000-09-08 Warren Levy <warrenl@cygnus.com>
602 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
603 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
604 * java/io/File.java (writeObject): Added.
606 (serialVersionUID): Added.
607 * java/io/ObjectOutputStream.java (writeObject): Initialized
608 fieldsAlreadyWritten before recursion rather than after.
609 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
610 * java/io/OptionalDataException.java (serialVersionUID): Added.
611 (OptionalDataException): Made package private.
612 * java/io/SyncFailedException.java (SyncFailedException): Removed
613 default constructor to match spec.
614 * java/lang/Boolean.java (serialVersionUID): Added.
615 * java/lang/Byte.java (serialVersionUID): Added.
616 * java/lang/Character.java (serialVersionUID): Added.
617 * java/lang/Double.java (serialVersionUID): Added.
618 * java/lang/Float.java (serialVersionUID): Added.
619 * java/lang/Integer.java (serialVersionUID): Added.
620 * java/lang/Long.java (serialVersionUID): Added.
621 * java/lang/Number.java (serialVersionUID): Added.
622 * java/lang/Short.java (serialVersionUID): Added.
623 * java/lang/String.java (serialVersionUID): Added.
624 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
626 * java/lang/reflect/InvocationTargetException.java
627 (serialVersionUID): Added.
628 * java/net/URL.java (handler): Made transient.
629 (hashCode): Added field for serialization, per spec. and use
630 cached value if available.
631 (serialVersionUID): Added.
632 (URL): Initialize hashCode.
633 (set): Adjust hashCode.
634 (readObject): New Method to initialize the protocol handler when
636 (writeObject): New method.
637 * java/text/BreakIterator.java: Removed 'implements Serializable'.
638 * java/text/Collator.java: Removed 'implements Serializable'.
639 * java/util/GregorianCalendar.java (serialVersionUID): Added.
640 * java/util/Properties.java (serialVersionUID): Added.
641 * java/util/Random.java (serialVersionUID): Added.
642 (seed): Made private.
643 (nextNextGaussian): Made private.
644 (haveNextNextGaussian): Made private.
645 * java/util/Stack.java (serialVersionUID): Added.
646 * java/util/TimeZone.java (serialVersionUID): Added.
647 * java/util/Vector.java (serialVersionUID): Added.
649 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
651 * Makefile.am (Thread.h): Don't be friends with native threads
653 * Makefile.in: Rebuilt.
654 * java/lang/Thread.java (interrupt_flag): Make package-private.
656 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
658 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
659 to avoid long long division.
661 2000-09-06 Tom Tromey <tromey@cygnus.com>
663 * java/lang/reflect/Constructor.java (toString): Use `getName' for
665 * java/lang/reflect/Method.java (toString): Use `getName' for
668 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
669 `args' if method takes no parameters.
671 Fix for PR java.lang/339:
672 * java/lang/natPosixProcess.cc (fail): New function.
673 (cleanup): New function.
674 (startProcess): Use them. Create pipe so child can communicate
675 exec failure back to parent.
677 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
679 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
681 (send): Undo last patch. Remove the label only.
683 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
685 * java/net/natInetAdress.cc: Ditto.
687 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
689 2000-09-05 Tom Tromey <tromey@cygnus.com>
691 * doc/cni.sgml: Updated from master copy.
693 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
695 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
697 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
699 * java/lang/fdlibm.h: #undef __P if previously defined.
700 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
701 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
705 2000-09-04 Tom Tromey <tromey@cygnus.com>
707 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
710 2000-09-04 Anthony Green <green@redhat.com>
712 Fix for PR java.io/203:
713 * java/io/File.java (createTempFile): Obey directory argument.
714 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
715 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
716 variable to set java.io.tmpdir on non-WIN32 systems.
718 2000-09-04 Anthony Green <green@redhat.com>
720 * java/io/File.java (deleteOnExit): New method.
721 * gnu/gcj/runtime/FileDeleter.java: New class.
722 * java/lang/natRuntime.cc (exit): Call
723 FileDeleter.deleteOnExitNow()
724 * Makefile.am: Add FileDeleter.java.
725 * Makefile.in: Rebuilt.
727 2000-09-02 Tom Tromey <tromey@cygnus.com>
729 * Makefile.in: Rebuilt.
730 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
731 environment variable.
733 2000-09-01 Andrew Haley <aph@redhat.com>
735 * java/io/StreamTokenizer.java: Don't throw a
736 NumberFormatException if a field is numeric as far as the
737 StreamTokenizer is concerned but not as far as Double.valueOf() is
738 concerned: return a zero instead.
740 2000-08-30 Tom Tromey <tromey@cygnus.com>
742 * Makefile.in: Rebuilt.
743 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
745 2000-08-28 Tom Tromey <tromey@cygnus.com>
747 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
748 gnu/gcj/awt/ComponentDataBlitOp.java,
749 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
750 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
751 java/awt/color/ICC_ColorSpace.java,
752 java/awt/color/ICC_Profile.java,
753 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
754 java/awt/image/ComponentColorModel.java,
755 java/awt/image/ComponentSampleModel.java,
756 java/awt/image/DataBuffer.java,
757 java/awt/image/DataBufferByte.java,
758 java/awt/image/DataBufferInt.java,
759 java/awt/image/DataBufferUShort.java,
760 java/awt/image/DirectColorModel.java,
761 java/awt/image/IndexColorModel.java,
762 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
763 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
764 java/awt/image/SinglePixelPackedSampleModel.java,
765 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
766 Removed Latin-1 copyright symbols.
767 * java/util/zip/ZipFile.java: Indentation fixes.
769 2000-08-27 Mark Wielaard <mark@klomp.org>
771 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
772 constructor, close can delete the file, finalize calls close.
773 * java/util/jar/JarFile.java: Constructor that takes mode now
776 2000-08-27 Anthony Green <green@redhat.com>
778 * java/util/ArrayList.java, java/util/Timer.java,
779 java/util/LinkedList.java, java/util/TimerTask.java,
780 java/util/HashMap.java, java/util/AbstractMap.java,
781 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
782 java/util/SortedSet.java: Imported from GNU Classpath.
783 * Makefile.in: Rebuilt.
784 * Makefile.am: Added new files.
786 2000-08-26 Anthony Green <green@redhat.com>
788 * Makefile.in: Rebuilt.
789 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
792 * prims.cc: Include ClassLoader.h.
793 (_Jv_RunMain): When executing jar files, classpath must be the jar
794 file only. Lose our reference to the system ClassLoader in order
795 to get a new one with the correct classpath.
796 * java/lang/natSystem.cc (init_properties): When executing a jar
797 file, only use the jar file for java.class.path.
799 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
800 for bytecode archives.
802 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
803 exists, but not Main-Class.
805 2000-08-23 Mark Wielaard <mark@klomp.org>
807 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
808 return -1 when fill() has no more data for the Inflater.
810 2000-08-23 Mark Wielaard <mark@klomp.org>
812 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
813 write(String) already does.
815 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
817 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
818 to `alive_flag', call `init'.
819 (init): New native method.
820 * gnu/gcj/jni/natNativeThread.cc (init): New native method
823 2000-08-21 Mark Wielaard <mark@klomp.org>
825 * Makefile.in: Rebuilt.
826 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
828 (java/lang/reflect/Field.h): Likewise.
829 (java/lang/reflect/Method.h): Likewise.
830 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
833 2000-08-21 Tom Tromey <tromey@cygnus.com>
835 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
838 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
840 * java/lang/natSystem.cc (init_properties): Change sourceware
841 reference to sources.redhat.com.
843 * include/java-props.h: Add _Jv_Jar_Class_Path.
844 * prims.cc: Ditto. Set it from `gij -jar file' option.
846 * java/lang/natSystem.cc (init_properties): Set java.class.path
848 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
850 * java/util/PropertyPermission.java: Import from GNU Classpath.
851 * Makefile.in: Rebuilt.
852 * Makefile.am: Add java/util/PropertyPermission.java.
853 * java/lang/System.java: Add setProperty method.
855 * gij.cc (main): Add -jar option to execute jar files.
856 (help): Describe -jar option.
857 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
858 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
859 * gnu/gcj/runtime/FirstThread.java (main): New method.
861 * java/util/jar/Attributes.java: Correct comment spelling.
863 2000-08-20 Mark Wielaard <mark@klomp.org>
865 * java/util/zip/Adler32.java: Make private variables really private
866 * java/util/zip/CRC32.java: Make private variables really private
867 * java/util/zip/CheckedInputStream.java: skip() could skip to much
869 * java/util/zip/InflaterInputStream.java: skip() could skip to
871 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
872 * java/util/zip/ZipFile.java: size() new 1.2 method
873 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
874 ZipEntry. since 1.2 available() always returns just 1 or 0 when
877 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
879 * java/util/jar/JarFile.java: Don't call
880 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
883 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
885 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
886 Read the entire contents of the class file, not just what is
889 * java/net/JarURLConnection.java: getEntry doesn't take any
890 arguments. Return null if element is null.
892 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
893 size from the archive, not the inflated size.
895 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
896 java.util.zip.ZipFile.getEntry.
898 * gij.cc (help): Change sourceware reference to
901 2000-08-19 Tom Tromey <tromey@cygnus.com>
903 * java/util/zip/ZipInputStream.java (createZipEntry):
906 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
908 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
909 java/util/jar/JarException.java, java/util/jar/JarFile.java,
910 java/util/jar/JarInputStream.java,
911 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
912 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
913 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
914 java/security/cert/CRL.java, java/security/cert/CRLException.java,
915 java/security/cert/Certificate.java,
916 java/security/cert/CertificateEncodingException.java,
917 java/security/cert/CertificateException.java,
918 java/security/cert/CertificateExpiredException.java,
919 java/security/cert/CertificateFactory.java,
920 java/security/cert/CertificateFactorySpi.java,
921 java/security/cert/CertificateNotYetValidException.java,
922 java/security/cert/CertificateParsingException.java,
923 java/security/cert/X509CRL.java,
924 java/security/cert/X509CRLEntry.java,
925 java/security/cert/X509Certificate.java,
926 java/security/cert/X509Extension.java: Imported from Classpath.
927 * java/util/Hashtable.java: Imported from Classpath.
929 * java/util/zip/ZipInputStream.java: Create stub for
932 * gcj/javaprims.h: Updated class list.
934 * Makefile.in, gcj/Makefile.in: Rebuilt.
935 * Makefile.am (ordinary_java_source_files): Add these new classes.
937 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
939 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
940 * gnu/gcj/awt/GLightweightPeer.java: New file.
941 * java/awt/BorderLayout.java: Implemented all methods.
942 * java/awt/Button.java (actionListener, actionCommand): Renamed
944 (addNotify): Call super.
945 (dispatchEventImpl): New method.
946 (getListeners): New method.
947 (label): Made package-private, not private.
948 * java/awt/Canvas.java: Implemented class body.
949 * java/awt/Color.java (brighter): New method.
950 (darker): New method.
951 (hashCode): New method.
952 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
953 (getGraphicsConfiguration): Delegate to
954 getGraphicsConfigurationImpl().
955 (getGraphicsConfigurationImpl): New method.
956 (getToolkit): Only return value from peer if not null.
957 (isDisplayable): Check with parent.
958 (isShowing): No parent implies not showing.
959 (getForeground): Check parent property if local is null.
960 (getBackground): Likewise.
962 (setForeground): Inform peer.
963 (setBackground): Likewise
964 (setLocale): Invalidate component.
965 (getColorModel): Implemented.
966 (setLocation): Invalidate, or ignore if no change.
967 (setSize): Invalidate, or ignore if no change.
968 (setBounds): Invalidate, or ignore if no change.
969 (isOpaque): By default, heavyweight implies opaque.
970 (isLightweight): Implemented.
971 (getMaximumSize): Implemented.
972 (doLayout): Implemented, NOP.
973 (validate): Implemented, NOP.
974 (invalidate): Only propagate to parent if parent was valid.
975 (getGraphics): Implemented.
976 (getFontMetrics): Implemented.
977 (update): Implemented.
978 (paintAll): Implemented.
979 (repaint): Implemented all repaint methods.
980 (print): Implemented.
981 (printAll): Implemented.
982 (createImage): Implemented.
983 (dispatchEvent): Give the peer a chance to handle the event.
984 (dispatchEventImpl): Dispatch paint events.
985 (enableEvents): Lightweights enable events on parent component.
986 (coalesceEvents): Coalesce paint events, and select event type
988 (coalescePaintEvents): New method.
989 (processEvent): Fix unfortunate ordering of statements, and call
990 correct method for MOUSE_CLICKED.
991 (processPaintEvent): New method.
992 (addNotify): Allow container to notify children before event
994 (addNotifyContainerChildren): New method.
995 (removeNotify): Visibility should not change on removeNotify.
996 (paramString): Implemented.
997 (list): Implemented two of the list methods.
998 * Container (myInsets): Removed, insets are managed by peer.
999 (getInsets): Query peer.
1000 (addImpl): Fix reparenting, enable events for lightweights,
1001 initialize component array.
1002 (validate): Call doLayout in validateTree() instead.
1003 (validateTree): Do nothing if already valid. Call beginValidate(),
1004 endValidate() on peer. Call validateTree() instead of validate()
1005 for children that are containers. Mark valid after validation of
1007 (setFont): Partial implementation.
1008 (paint): Implemented.
1009 (visitChildren): New method.
1010 (visitChild): New method.
1011 (update): Implemented.
1012 (print): Implemented.
1013 (paintComponents): Implemented.
1014 (printComponents): Consider translation and clipping.
1015 (getComponentAt): Ignore invisible children. Return this if no
1017 (addNotify): Call super.
1018 (addNotifyContainerChildren): New method.
1019 (paramString): Implemented.
1020 (list): Implemented.
1021 * java/awt/EventQueue (invokeAndWait): Get system event queue the
1023 (invokeLater): Likewise.
1024 (isDispatchThread): Likewise.
1025 * java/awt/FontMetrics (getLeading): Formula change.
1026 (getDescent): Consider leading also.
1027 (getMaxAscent): Default to getAscent().
1028 (getMaxDescent): Default to getDescent.
1029 (getMaxAdvance): Return value signifying unknown.
1030 (charWidth): Both methods implemented.
1031 (charsWidth): Implemented.
1032 (bytesWidth): Implemented.
1033 (getWidths): Implemented.
1034 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
1036 (Frame): Rearragend constuctor chaining to disallow null being
1037 passed as a graphics configuration.
1038 (getTitle): Return empty string if null.
1040 (getIconImage): New method.
1041 (setIconImage): New method.
1042 (finalize): New method.
1043 (setMenuBar): Notify peer.
1044 (isResizable): New method.
1045 (setResizable): New method.
1046 (getState): New method.
1048 (remove): Implemented.
1049 (removeNotify): New method.
1050 (getFrames): New method.
1051 * java/awt/Graphics.java: Implemented body of class.
1052 * java/awt/Graphics2D.java: New file.
1053 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
1054 * java/awt/Image.java: Implemented body of class.
1055 * java/awt/Panel.java (Panel): Call correct super constructor.
1056 (addNotify): Implemented.
1057 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
1058 * java/awt/RenderingHints.java: New file.
1059 * java/awt/Toolkit.java (createComponent): Implemented.
1060 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
1061 * java/awt/Window.java (Window): Two new constructors. Reordered
1062 constructor chaining.
1063 (getGraphicsConfigurationImpl): New method.
1064 (finalize): Call super.
1065 (addNotify): Call super.
1066 (pack): Do layout stuff.
1067 (show): Ensure that peer exists and that component is valid.
1068 (dispose): Dispose owned children.
1069 (getOwner): Simplify code, casting null pointers is valid.
1070 (getGraphicsConfiguration): Ask peer if local value is null.
1071 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
1073 * java/awt/image/BufferedImage.java: New file.
1074 * java/awt/image/RasterOp.java: New file.
1075 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
1076 More powerfull replacement for getColorModel().
1077 (getColorModel) Removed.
1078 (setEventMask) New method.
1079 * Makefile.am: Added new files.
1080 * Makefile.in: Rebuilt.
1082 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
1084 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
1085 (finit_leg_name): New global.
1086 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
1087 `$finit$'. This is a backward compatibility hack.
1088 (java::lang::Class::_getMethods): Likewise.
1090 2000-08-15 Andrew Haley <aph@cygnus.com>
1092 * include/jvm.h (_Jv_HashCode): New hash code.
1094 2000-08-15 Tom Tromey <tromey@cygnus.com>
1096 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
1098 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
1100 * THANKS: More thanks.
1102 2000-08-10 Tom Tromey <tromey@cygnus.com>
1104 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
1106 (connect): Likewise.
1108 (getOption): Likewise.
1109 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
1110 case when errno not set.
1113 (receive): Likewise.
1114 (mcastGrp): Likewise.
1115 (setOption): Likewise.
1116 (getOption): Likewise.
1118 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
1119 John Stracke <francis@ecal.com>
1121 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
1122 (connect): Don't falsely claim HTTP/1.1 compliance. Call
1124 (disconnect): Don't unset connected flag.
1125 (getHeaderField (String)): Call connect() if not connected.
1126 (getHeaderField (int)): Ditto.
1127 (getHeaderFieldKey): Ditto.
1128 (getHttpHeaders): Don't call connect().
1129 * java/net/HttpURLConnection.java (instanceFollowRedirects,
1130 gotResponseVals): New fields.
1131 (getResponseCode): Call getResponseVals() conditionally.
1132 (getResponseMessage): Ditto.
1133 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
1135 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
1137 * Makefile.am: Move beans and applet classes to awt_java_source_files.
1138 * Makefile.in: Rebuilt.
1139 * java/awt/Color.java (getTransparency): New method.
1140 * java/awt/Component.java: Various updates.
1141 * java/awt/Container.java (removeNotify): Call super.removeNotify()
1142 after dealing with children.
1143 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
1144 * java/awt/Window.java: Various new methods and updates.
1145 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
1147 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
1148 * java/awt/event/WindowEvent.java (paramString): Ditto.
1149 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
1151 * java/awt/geom/Point2D.java (clone): Ditto.
1152 * java/awt/geom/RectangularShape.java (clone): Ditto.
1153 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
1154 isAlphaPremultiplied): Make package-private, not private.
1156 2000-08-08 Tom Tromey <tromey@cygnus.com>
1158 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
1159 surrogate characters.
1160 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
1162 (write): Correct handling of surrogate characters.
1164 2000-08-07 Tom Tromey <tromey@cygnus.com>
1166 * java/lang/reflect/Method.java (hashCode): Use getName().
1167 (toString): Likewise.
1168 * java/lang/reflect/natMethod.cc (getType): Initialize
1171 * java/lang/reflect/Method.java (toString): Use Class.getName, not
1173 * java/lang/reflect/Field.java (toString): Correct formatting.
1176 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
1178 (receive): Streamlined.
1180 2000-08-05 Tom Tromey <tromey@cygnus.com>
1182 * java/io/PrintWriter.java: Merged comments from Classpath.
1183 (printlnUnsynchronized): Removed.
1184 (println()): Print the separator.
1185 (println): Call println(), not printlnUnsynchronized.
1186 (out): Now protected, to match spec.
1188 2000-08-04 Tom Tromey <tromey@cygnus.com>
1190 * java/io/StreamTokenizer.java (TT_NONE): Now private.
1191 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
1194 2000-08-03 Warren Levy <warrenl@cygnus.com>
1196 * java/io/ObjectInputStream.java (readFields): Turn off
1197 readDataFromBlock while reading via GetField.
1198 (GetField$1.get(String, Object)): Pass Class of default value to
1200 (getField): Allow for null default values.
1202 * java/io/ObjectOutputStream.java: Fixed typo in comment.
1203 (PutField$1.put): Fixed calls of checkType in most of the put
1204 methods to pass the correct parameter.
1205 (PutField$1.put(String, Object)): Allow for null value arg.
1206 (PutField$1.write): Turn off writeDataAsBlocks while writing via
1209 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
1210 typo in spec'ed field name.
1211 (getSerialPersistentFields): Changed spelling of method to match
1212 the correct spelling of the spec'ed field name.
1214 2000-08-03 Tom Tromey <tromey@cygnus.com>
1216 * Makefile.in: Rebuilt.
1217 * Makefile.am (awt_java_source_files): Added new files.
1219 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
1221 * Makefile.am: Add new AWT stubs.
1222 * java/awt/Canvas.java: New placeholder class.
1223 * java/awt/Checkbox.java: Ditto.
1224 * java/awt/CheckboxMenuItem.java: Ditto.
1225 * java/awt/Choice.java: Ditto.
1226 * java/awt/Dialog.java: Ditto.
1227 * java/awt/FileDialog.java: Ditto.
1228 * java/awt/List.java: Ditto.
1229 * java/awt/ScrollPane.java: Ditto.
1230 * java/awt/TextField.java: Ditto.
1231 * java/awt/datatransfer/Clipboard.java: Ditto.
1232 * java/awt/Component.java (treeLock): Now a static String. Add comment.
1233 * java/awt/MenuItem.java (MenuItem): Add default constructor.
1234 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
1235 Some commented out. Partially implemented.
1236 * java/awt/natToolkit.cc: Removed file.
1238 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
1240 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
1241 Fixes "make -j" builds.
1242 * Makefile.in: Rebuild.
1244 2000-08-02 Tom Tromey <tromey@cygnus.com>
1246 * Makefile.in: Rebuilt.
1247 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
1248 * java/net/natPlainSocketImpl.cc: Include posix.h.
1249 (accept): Use _Jv_select.
1250 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
1251 (receive): Use _Jv_select.
1252 * java/io/natFileDescriptorPosix.cc: Include posix.h.
1253 (available): Use _Jv_select.
1254 * java/lang/natSystem.cc: Include posix.h.
1255 (currentTimeMillis): Use _Jv_gettimeofday.
1256 * include/posix.h: New file.
1257 * posix.cc: New file.
1259 * scripts/encodings.pl: New file.
1260 * Makefile.in: Rebuilt.
1261 * Makefile.am (convert_source_files): Added IOConverter.java.
1262 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
1264 (getDefaultDecodingClass): Canonicalize default encoding name.
1265 (getEncoder): Likewise.
1266 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
1268 (getDefaultDecodingClass): Canonicalize default encoding name.
1269 (getDecoder): Likewise.
1270 * gnu/gcj/convert/IOConverter.java: New file.
1272 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1274 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
1275 to match C declaration in ffi.h.
1276 * Makefile.am: Add java/awt/Button.java.
1277 * Makefile.in: Rebuilt.
1279 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
1281 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
1282 cast of the second argument to `ffi_raw_call' changed to match
1285 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1287 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
1288 argument to `ffi_raw_call' changed to match prototype.
1290 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
1292 * java/awt/Component.java (toString): Implemented.
1293 * java/awt/Container.java (addImpl): Remove FIXME. Only call
1294 dispatchEvent() to dispatch the event.
1295 (removeImpl): Ditto.
1297 2000-07-30 Anthony Green <green@redhat.com>
1299 * java/awt/Component.java: Add treeLock object.
1300 (getTreeLock): Implement.
1301 (isShowing): Implement.
1303 2000-07-30 Tom Tromey <tromey@cygnus.com>
1305 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
1307 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
1309 * java/awt/Window.java (addNotify): Wrote.
1310 (addWindowListener): Wrote.
1312 (getWarningString): Wrote.
1313 (processEvent): Wrote.
1314 (processWindowEvent): Wrote.
1315 (removeWindowListener): Wrote.
1316 (show): Call validate(), setVisible().
1320 * java/awt/Toolkit.java (createWindow): Declare.
1322 * java/awt/Frame.java (addNotify): Use getToolkit to find
1325 * java/awt/Component.java (invalidate): Wrote.
1327 (getToolkit): Wrote.
1329 * java/awt/Container.java (addContainerListener): Removed
1331 (removeContainerListener): Likewise.
1333 (add(Component)): Use it.
1334 (add(String,Component)): Likewise.
1335 (add(Component,int)): Likewise.
1336 (add(Component,Object)): Likewise.
1337 (add(Component,Object,int)): Likewise.
1339 (getAlignmentX): Wrote.
1340 (getAlignmentY): Wrote.
1341 (getComponentAt): Wrote.
1342 (getMaximumSize): Wrote.
1343 (invalidate): Wrote.
1344 (list(PrintStream,int)): Wrote.
1345 (list(PrintWriter,int)): Wrote.
1346 (getMinimumSize): Wrote.
1347 (getPreferredSize): Wrote.
1348 (printComponents): Wrote.
1349 (processContainerEvent): Look at containerListener, not
1351 (remove): Added event processing and peer destruction.
1352 (removeAll): Use remove.
1353 (removeNotify): Wrote.
1355 (validateTree): Wrote.
1357 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
1358 * java/awt/Label.java (addNotify): Do nothing if peer exists.
1359 * java/awt/Container.java (addNotify): Don't create Container
1361 * java/awt/Button.java (addNotify): Do nothing if peer exists.
1363 2000-07-30 Tom Tromey <tromey@cygnus.com>
1365 * java/awt/Container.java (remove(int)): Wrote.
1366 (remove(Component)): Wrote.
1367 (add(Component)): Wrote.
1368 (add(Component,int)): Wrote.
1370 (addNotify): Set our own peer.
1371 * java/awt/Scrollbar.java (listeners): Changed type.
1372 (Scrollbar): Don't initialize listeners.
1374 (setValue): Call setValues.
1375 (setMinimum): Likewise.
1376 (setMaxPriority): Likewise.
1377 (setVisibleAmount): Likewise.
1379 (setUnitIncrement): Forward to peer.
1380 (setLineIncrement): Call setUnitIncrement.
1381 (setPageIncrement): Call setBlockIncrement.
1382 (setBlockIncrement): Forward to peer.
1383 (addAdjustmentListener): Rewrote.
1384 (removeAdjustmentListener): Rewrote.
1385 (processAdjustmentEvent): Rewrote.
1386 (paramString): Wrote.
1387 * Makefile.in: Rebuilt.
1388 * Makefile.am (awt_java_source_files): Added Button.java.
1389 * java/awt/Button.java: New file.
1390 * java/awt/Toolkit.java (createLabel): Declare.
1391 (createButton): Likewise.
1392 (createScrollbar): Likewise.
1393 (createContainer): Likewise.
1394 * java/awt/Label.java (addNotify): Wrote.
1395 (setAlignment): Call setAlignment in the peer.
1396 (setText): Call setText in the peer.
1398 2000-07-28 Warren Levy <warrenl@cygnus.com>
1400 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
1401 NotSerializableException with just the class name.
1403 2000-07-26 Andrew Haley <aph@cygnus.com>
1405 * interpret.cc (continue1): Insert missing break into switch.
1407 2000-07-28 Warren Levy <warrenl@cygnus.com>
1409 * java/io/ObjectStreamException.java: Made constructors protected.
1411 2000-07-27 Tom Tromey <tromey@cygnus.com>
1413 * java/io/OutputStreamWriter.java (close): Only flush if not
1416 2000-07-27 Warren Levy <warrenl@cygnus.com>
1418 * mauve-libgcj: Activated serialization tests.
1419 * gcj/field.h (getModifiers): Mask off unknown flags.
1420 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
1421 spurious bits don't cause discrepancies.
1422 * java/io/ObjectOutputStream.java: Fixed typo in comment.
1423 * java/io/ObjectStreamClass.java: Fixed typos in comments.
1424 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
1425 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
1426 * java/lang/Throwable.java (serialVersionUID): New field.
1427 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
1428 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
1430 * java/lang/reflect/natMethod.cc: Ditto.
1431 * java/security/Key.java (serialVersionUID): Removed field for now.
1432 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
1433 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
1435 2000-07-22 Tom Tromey <tromey@cygnus.com>
1437 * java/awt/geom/RectangularShape.java (getPathIterator):
1440 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1442 * libjava/java/awt/image/ColorModel.java: New file, replaces the
1443 stub libjava/java/awt/ColorModel.java which was located in the
1445 * libjava/java/awt/image/ComponentColorModel.java: New file.
1446 * libjava/java/awt/image/ComponentSampleModel.java: New file.
1447 * libjava/java/awt/image/DataBuffer.java: New file.
1448 * libjava/java/awt/image/DataBufferByte.java: New file.
1449 * libjava/java/awt/image/DataBufferInt.java: New file.
1450 * libjava/java/awt/image/DataBufferUShort.java: New file.
1451 * libjava/java/awt/image/DirectColorModel.java: New file.
1452 * libjava/java/awt/image/PackedColorModel.java: New file.
1453 * libjava/java/awt/image/Raster.java: New file.
1454 * libjava/java/awt/image/SampleModel.java: New file.
1455 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
1457 * libjava/java/awt/image/IndexColorModel.java: New file.
1458 * libjava/java/awt/image/ImageConsumer.java: Removed import of
1459 java.awt.ColorModel stub.
1461 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
1462 * gnu/gcj/util/Buffers.java: New file, utility class.
1464 * libjava/Makefile.am: Updated to include new files.
1465 * libjava/Makefile.in: Rebuilt.
1467 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
1469 * java/io/StreamTokenizer.java: Merged with classpath.
1471 2000-07-20 Tom Tromey <tromey@cygnus.com>
1473 * Makefile.in: Rebuilt.
1474 * Makefile.am (awt_java_source_files): Updated for new files.
1475 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
1476 * java/awt/Label.java: New file.
1477 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
1478 (createIntersection, createUnion, getBounds2D): New methods.
1479 * java/awt/Scrollbar.java: New file.
1480 * java/awt/Shape.java: Updated to 1.2.
1481 * java/awt/geom/AffineTransform.java: New file.
1482 * java/awt/geom/Ellipse2D.java: New file.
1483 * java/awt/geom/NoninvertibleTransformException.java: New file.
1484 * java/awt/geom/PathIterator.java: New file.
1485 * java/awt/geom/Rectangle2D.java: New file.
1486 * java/awt/geom/RectangularShape.java: New file.
1487 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
1488 * java/awt/geom/IllegalPathStateException.java: New file.
1490 * scripts/showval.java: New file.
1492 * scripts/classes.pl (scan): Print inner classes properly.
1493 * gcj/javaprims.h: Updated class list.
1495 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
1496 initialize String fields for interpreted classes. Fixes bug
1497 reported by Hans Boehm.
1499 * java/io/File.java (getParentFile): New method, from Classpath
1500 via Oskar Liljeblad.
1502 * java/util/Vector.java (remove(Object)): Implemented.
1504 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
1506 * java/lang/natThrowable.cc (fillInStackTrace): Check for
1507 zero return from backtrace().
1509 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
1511 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
1513 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
1514 before calling notifyAll().
1516 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
1518 Add missing files from last check-in:
1519 * java/awt/image/ImageConsumer.java: New file.
1520 * java/awt/image/ImageProducer.java: New file.
1521 * java/awt/image/ImageObserver.java: New file.
1523 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
1525 Merged implementation of java.applet from classpath:
1526 * java/applet/Applet.java: New file.
1527 * java/applet/AppletContext.java: New file.
1528 * java/applet/AppletStub.java: New file.
1529 * java/applet/AudioClip.java: New file.
1531 * Makefile.am: Added new java.applet classes.
1532 * Makefile.in: Rebuilt.
1534 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
1537 * java/util/ResourceBundle.java (getLocale): stub.
1538 * Makefile.am: Added new AWT classes.
1539 * Makefile.in: Rebuilt.
1540 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
1541 constructors. Fix toString() and paramString().
1542 * java/awt/AWTEventMulticaster.java: New class. Implemented.
1543 * java/awt/CheckboxGroup.java: New class.
1544 * java/awt/ColorModel.java: New class.
1545 * java/awt/Component.java: Added stubs for most methods. Implemented
1547 * java/awt/Container.java: ditto.
1548 * java/awt/ComponentOrientation.java: New class. Partly implemented.
1549 * java/awt/Cursor.java: ditto.
1550 * java/awt/Event.java: Fix paramString().
1551 * java/awt/EventQueue.java: New class. Implemented.
1552 * java/awt/Font.java: Added additional stub methods. Implemented
1554 * java/awt/FontMetrics.java: New class. Stubbed.
1555 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
1557 * java/awt/Insets.java: New class. Implemented.
1558 * java/awt/Menu.java: Add new methods. Partially implemented.
1559 * java/awt/MenuItem.java: Add new methods and fields. Partially
1561 * java/awt/MenuShortcut.java: New class. Implemented.
1562 * java/awt/Panel.java: New class. Placeholder.
1563 * java/awt/PopupMenu.java: New class. Stubbed.
1564 * java/awt/Rectangle.java: New class. Implemented.
1565 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
1566 * java/awt/event/ActionEvent.java: Implement paramString().
1567 * java/awt/event/AdjustmentEvent.java: Implement paramString().
1568 * java/awt/event/ComponentEvent.java: Implement paramString().
1569 * java/awt/event/ContainerEvent.java: Implement paramString().
1570 * java/awt/event/FocusEvent.java: Implement paramString().
1571 * java/awt/event/HierarchyBoundsAdapter.java: New class.
1572 * java/awt/event/HierarchyBoundsListener.java: New class.
1573 * java/awt/event/HierarchyEvent.java: New class.
1574 * java/awt/event/HierarchyListener.java: New class.
1575 * java/awt/event/InputMethodEvent.java: Implement paramString().
1576 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
1577 exception if !catchExceptions.
1578 * java/awt/event/ItemEvent.java: Implement paramString().
1579 * java/awt/event/KeyEvent.java: Implement paramString().
1580 * java/awt/event/MouseEvent.java: Implement paramString().
1581 * java/awt/event/PaintEvent.java: Implement paramString().
1582 * java/awt/event/TextEvent.java: Implement paramString().
1583 * java/awt/event/WindowEvent.java: Implement paramString().
1585 AWT Peer interfaces:
1586 * java/awt/peer/ButtonPeer.java: New file.
1587 * java/awt/peer/ListPeer.java: New file.
1588 * java/awt/peer/CanvasPeer.java: New file.
1589 * java/awt/peer/MenuBarPeer.java: New file.
1590 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
1591 * java/awt/peer/MenuComponentPeer.java: New file.
1592 * java/awt/peer/CheckboxPeer.java: New file.
1593 * java/awt/peer/MenuItemPeer.java: New file.
1594 * java/awt/peer/ChoicePeer.java: New file.
1595 * java/awt/peer/MenuPeer.java: New file.
1596 * java/awt/peer/ComponentPeer.java: Implemented.
1597 * java/awt/peer/PanelPeer.java: New file.
1598 * java/awt/peer/ContainerPeer.java: Implemented.
1599 * java/awt/peer/PopupMenuPeer.java: New file.
1600 * java/awt/peer/DialogPeer.java: New file.
1601 * java/awt/peer/ScrollPanePeer.java: New file.
1602 * java/awt/peer/FileDialogPeer.java: New file.
1603 * java/awt/peer/ScrollbarPeer.java: New file.
1604 * java/awt/peer/FontPeer.java: New file.
1605 * java/awt/peer/TextAreaPeer.java: New file.
1606 * java/awt/peer/FramePeer.java: Implemented.
1607 * java/awt/peer/TextComponentPeer.java: New file.
1608 * java/awt/peer/LabelPeer.java: New file.
1609 * java/awt/peer/TextFieldPeer.java: New file.
1610 * java/awt/peer/LightweightPeer.java: New file.
1611 * java/awt/peer/WindowPeer.java: Implemented.
1613 2000-07-06 Tom Tromey <tromey@cygnus.com>
1615 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
1616 Initialize static final String fields.
1618 2000-07-03 Tom Tromey <tromey@cygnus.com>
1620 * java/io/PrintWriter.java (print): Call write(String), not
1621 print(String). See PR libgcj/277.
1622 (print(String)): Use write, not out.write.
1624 2000-06-30 Tom Tromey <tromey@cygnus.com>
1626 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
1628 2000-06-27 Andrew Haley <aph@cygnus.com>
1630 * java/io/File.java (createTempFile): Close the FileDescriptor
1631 used to create a temp file. Fixes some of PR 203.
1632 * java/io/natFileDescriptorPosix.cc (open): Call garbage
1633 collection if we run out of file handles.
1635 2000-06-28 Warren Levy <warrenl@cygnus.com>
1637 * gnu/java/security/provider/Gnu.java: New file.
1638 * gnu/java/security/provider/SHA.java: New file.
1639 * gnu/java/security/provider/SHA1PRNG.java: New file.
1640 * Makefile.am: Added the above files.
1641 * Makefile.in: Rebuilt.
1643 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
1645 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
1647 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
1648 (destroyed_flag): Removed.
1649 (isDestroyed, removeGroup, removeThread): Test for parent == null.
1650 (activeCount): Added spec note.
1652 2000-06-27 Warren Levy <warrenl@cygnus.com>
1654 * java/security/Principal.java: New file.
1655 * Makefile.am: Added Principal.java.
1656 * Makefile.in: Rebuilt.
1658 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1660 * java/awt/event/MouseEvent.java: Fixed coordinate space
1663 2000-06-27 Tom Tromey <tromey@cygnus.com>
1665 * java/io/PushbackInputStream.java (read): If there are characters
1666 in the buffer, don't also call super.read().
1667 * java/io/PushbackReader.java (read): If there are characters in
1668 the buffer, don't also call super.read().
1670 * java/lang/Double.java (valueOf): Call parseDouble().
1672 2000-06-26 Warren Levy <warrenl@cygnus.com>
1674 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
1675 (newVal): Renamed to newValue.
1676 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
1677 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
1678 (revokeNow): Renamed to invalidateRefs.
1679 * java/io/OptionalDataException.java: Updated FIXME.
1680 (eof): New placeholder field.
1682 * java/io/WriteAbortedException.java (message): Made transient.
1683 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
1684 * java/lang/Throwable.java (stackTrace): Made transient.
1685 * java/net/InetAddress.java: Made Serializable.
1686 * java/security/KeyPair.java: Made Serializable.
1687 * java/security/Provider.java: Replaced with Classpath version that
1688 implements serialization and proper methods.
1689 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
1690 (limits): Renamed to choiceLimits.
1692 2000-06-24 Tom Tromey <tromey@cygnus.com>
1694 * java/lang/natDouble.cc (parseDouble): Renamed from
1696 * java/lang/Double.java (parseDouble): Renamed from
1697 doubleValueOf. Now public.
1699 2000-06-23 Andrew Haley <aph@cygnus.com>
1701 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
1702 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
1704 2000-06-23 Tom Tromey <tromey@cygnus.com>
1706 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
1707 * java/lang/natDouble.cc: Always include <alloca.h>.
1708 Fix for PR libgcj/267.
1710 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
1712 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
1713 comply with classpath VM spec.
1714 (add(Group)): Rename to addGroup().
1715 * java/lang/Thread.java (Thread): Use addThread().
1716 * java/lang/natThread.cc (finish_): Use removeThread().
1718 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
1720 * java/lang/ThreadGroup.java: Merged with classpath.
1721 * prims.cc (_Jv_RunMain): Don't use `main_group'.
1722 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
1724 * java/lang/Thread.java (Thread): Bootstrap initial thread from
1725 ThreadGroup.root if Thread.currentThread is null. Honour the
1726 ThreadGroup's max priority setting.
1728 2000-06-18 Tom Tromey <tromey@cygnus.com>
1730 * java/lang/natClass.cc (forName): Removed dead code. Initialize
1731 returned class. For PR gcj/260.
1733 2000-06-16 Tom Tromey <tromey@cygnus.com>
1735 Fix for PR libgcj/261:
1736 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
1738 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
1739 argument. (This is a patch from long ago that somehow went
1742 2000-06-15 Tom Tromey <tromey@cygnus.com>
1744 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
1748 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1750 Fix for PR java.lang/258:
1751 * prims.cc (_Jv_PrimClass): Set state of primitive class to
1752 JV_STATE_DONE, to prevent accidental initialization.
1753 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
1754 _Jv_InterfaceAssignableFrom if target is an interface and source is an
1755 interface or an abstract class. Remove redundant initializeClass calls.
1756 Remove duplicate if_idt test.
1757 (_Jv_InterfaceAssignableFrom): New function.
1758 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
1760 2000-05-31 Tom Tromey <tromey@cygnus.com>
1762 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
1763 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
1764 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
1765 (NUM_OBJECT_METHODS): New define.
1766 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1767 `array_vtable' parameter. Added assertion.
1768 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
1771 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
1773 * gcj/cni.h: Include <string.h>.
1774 * defineclass.cc: Include <alloca.h>.
1775 * interpret.cc: Ditto.
1776 * gij.cc: Include <stdlib.h>.
1778 2000-05-30 Tom Tromey <tromey@cygnus.com>
1780 * include/name-finder.h: Include <sys/wait.h>.
1781 (_Jv_name_finder::pid): Now of type `pid_t'.
1782 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
1783 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
1786 2000-05-24 Warren Levy <warrenl@cygnus.com>
1788 * java/io/ObjectOutputStream.java (writeObject): Use component type
1789 when writing arrays.
1792 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
1794 Fix for PR libgcj/226:
1795 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
1796 since this is an installed header.
1798 Fix for PR libgcj/228:
1799 * java/util/zip/ZipFile (getInputStream): Create inflater with
1802 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
1803 with DataFormatException.
1805 2000-05-20 Tom Tromey <tromey@cygnus.com>
1807 * Makefile.in: Rebuilt.
1808 * Makefile.am (hack1): Removed.
1809 (awto_files): Likewise.
1810 (libgcjawt_la_SOURCES): Likewise.
1811 (EXTRA_libgcjawt_la_SOURCES): Likewise.
1812 (libgcjawt_la_DEPENDENCIES): Likewise.
1813 (libgcjawt_la_LIBADD): Likewise.
1814 (libgcjawt_la_LDFLAGS): Likewise.
1815 (libgcjawt_la_LINK): Likewise.
1816 ($(awt_java_source_files:.java=.class)): Likewise.
1817 (libgcj.zip): Don't depend on AWT files.
1818 (MOSTLYCLEANFILES): Don't include AWT files.
1819 ($(awto_files)): Removed.
1820 (nat_headers): Removed AWT files.
1821 (cond_awt_java_source_files): Removed.
1822 (ordinary_java_source_files): Added awt_java_source_files.
1823 * libgcj.spec.in (*lib): Removed -lgcjawt.
1824 * configure: Rebuilt.
1825 * configure.in: Removed --enable-java-awt option.
1827 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
1829 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
1830 (ZipEntry): Copy the `name' field.
1831 (clone): Implement JDK1.2 method.
1832 (setCompressedSize): ditto.
1835 2000-05-19 Tom Tromey <tromey@cygnus.com>
1837 * java/io/BufferedWriter.java: Merged with Classpath.
1838 * java/io/BufferedOutputStream.java: Merged with Classpath.
1840 2000-05-16 Andrew Haley <aph@cygnus.com>
1842 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
1843 build_ia64_frame_state.
1844 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
1847 2000-05-15 Warren Levy <warrenl@cygnus.com>
1849 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
1850 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
1851 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
1852 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
1853 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
1854 * gnu/gcj/beans/editors/FontEditor.java: Removed.
1855 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
1856 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
1857 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
1858 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
1859 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
1860 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
1861 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
1862 * gnu/gcj/beans/editors/StringEditor.java: Removed.
1863 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
1864 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
1865 * gnu/gcj/io/NullOutputStream.java: Removed.
1866 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
1867 * gnu/gcj/lang/ArrayHelper.java: Removed.
1868 * gnu/gcj/lang/ClassHelper.java: Removed.
1869 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
1871 * gnu/java/beans/BeanInfoEmbryo.java: New file.
1872 * gnu/java/beans/EmptyBeanInfo.java: New file.
1873 * gnu/java/beans/ExplicitBeanInfo.java: New file.
1874 * gnu/java/beans/IntrospectionIncubator.java: New file.
1875 * gnu/java/beans/editors/ColorEditor.java: New file.
1876 * gnu/java/beans/editors/FontEditor.java: New file.
1877 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
1878 * gnu/java/beans/editors/NativeByteEditor.java: New file.
1879 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
1880 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
1881 * gnu/java/beans/editors/NativeIntEditor.java: New file.
1882 * gnu/java/beans/editors/NativeLongEditor.java: New file.
1883 * gnu/java/beans/editors/NativeShortEditor.java: New file.
1884 * gnu/java/beans/editors/StringEditor.java: New file.
1885 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
1886 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
1887 * gnu/java/io/NullOutputStream.java: New file.
1888 * gnu/java/io/ObjectIdentityWrapper.java: New file.
1889 * gnu/java/lang/ArrayHelper.java: New file.
1890 * gnu/java/lang/ClassHelper.java: New file.
1891 * gnu/java/lang/reflect/TypeSignature.java: New file.
1893 * Makefile.am: Updated for moving Classpath files from gnu/gcj
1894 namespace back to the original Classpath gnu/java namespace.
1895 * Makefile.in: Rebuilt.
1897 * java/beans/Beans.java: Namespace change.
1898 * java/beans/EventSetDescriptor.java: Namespace change.
1899 * java/beans/Introspector.java: Namespace change.
1900 * java/beans/PropertyEditorManager.java: Namespace change.
1901 * java/io/ObjectInputStream.java: Namespace change.
1902 * java/io/ObjectOutputStream.java: Namespace change.
1903 * java/io/ObjectStreamClass.java: Namespace change.
1904 * java/io/ObjectStreamField.java: Namespace change.
1906 2000-04-21 Warren Levy <warrenl@cygnus.com>
1908 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
1909 now that compiler patch is available.
1910 Removed unneeded System.loadLibrary.
1911 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
1912 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
1914 2000-04-19 Andrew Haley <aph@cygnus.com>
1916 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
1917 and target classes have been initialized.
1919 2000-04-19 Andrew Haley <aph@cygnus.com>
1921 * java/lang/String.java: implement Serializable, Comparable.
1922 (compareTo (Object)): New method.
1924 2000-04-19 Warren Levy <warrenl@cygnus.com>
1926 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
1927 instead of getField to retrieve non-public field.
1928 (getSerialPersistantFields): Ditto.
1930 2000-04-18 Warren Levy <warrenl@cygnus.com>
1932 * mauve-libgcj: Turned off object serialization tests temporarily
1933 due to compiler error.
1935 2000-04-17 Warren Levy <warrenl@cygnus.com>
1937 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
1938 to avoid build problem.
1940 * mauve-libgcj: Turned on object serialization tests.
1942 2000-04-17 Tom Tromey <tromey@cygnus.com>
1944 * libgcj.spec.in (*lib): Added -lgcjawt.
1946 2000-04-17 Andrew Haley <aph@cygnus.com>
1948 * Makefile.am: Add new files:
1949 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
1951 * Makefile.in: Rebuilt.
1953 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
1954 interface that has no implementations.
1955 Check for an attempt to assign an abstract class to an interface.
1957 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
1958 if we fail to find MessageDigest.getInstance ("SHA").
1960 * gnu/gcj/io/SimpleSHSStream.java: New file.
1961 * gnu/gcj/io/natSimpleSHSStream.java: New file.
1962 * gnu/gcj/io/shs.cc: New file.
1963 * gnu/gcj/io/shs.h: new file.
1965 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
1968 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
1969 punctuation from the classname of an array element.
1971 * gcj/javaprims.h: Add SimpleDigestStream.
1973 2000-04-17 Andrew Haley <aph@cygnus.com>
1975 * java/lang/natClass.cc (getPrivateField): Make recursive calls
1976 to getPrivateField for superclasses.
1978 2000-04-14 Andrew Haley <aph@cygnus.com>
1980 * Makefile.am: Add new files:
1981 java/io/ObjectOutputStream$PutField.h,
1982 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
1983 java/io/natObjectOutputStream.cc
1984 * Makefile.in: Rebuilt.
1985 * gcj/Makefile.in: Rebuilt.
1986 * include/Makefile.in: Rebuilt.
1987 * java/lang/Class.h (getPrivateField): New method.
1988 (getPrivateMethod): Ditto.
1989 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
1990 and java::io::ObjectStreamClass our friends.
1991 * java/lang/natClass.cc (getPrivateField): New method.
1992 (getPrivateMethod): Ditto.
1993 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
1994 * gcj/javaprims.h: Add serialization classes.
1995 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
1996 (setByteField): Ditto.
1997 (setCharField): Ditto.
1998 (setDoubleField): Ditto.
1999 (setFloatField): Ditto.
2000 (setIntField): Ditto.
2001 (setLongField): Ditto.
2002 (setShortField): Ditto.
2003 (setObjectField): Ditto.
2004 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
2006 (getByteField): Ditto.
2007 (getCharField): Ditto.
2008 (getDoubleField): Ditto.
2009 (getFloatField): Ditto.
2010 (getIntField): Ditto.
2011 (getLongField): Ditto.
2012 (getShortField): Ditto.
2013 (getObjectField): Ditto.
2014 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
2016 (getSerialPersistantFields): Ditto.
2017 (getDefinedSUID): Ditto.
2018 * java/io/natObjectOutputStream.cc: New file.
2019 * java/io/natObjectInputStream.cc: New file.
2021 2000-04-13 Warren Levy <warrenl@cygnus.com>
2023 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
2024 problems. Revert to previous version to reproduce and when fixed.
2026 2000-04-13 Warren Levy <warrenl@cygnus.com>
2028 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
2029 * gnu/gcj/io/NullOutputStream.java: New file.
2030 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
2031 * java/io/BlockDataException.java: New file.
2032 * java/io/Externalizable.java: New file.
2033 * java/io/InvalidClassException.java: New file.
2034 * java/io/InvalidObjectException.java: New file.
2035 * java/io/NotActiveException.java: New file.
2036 * java/io/NotSerializableException.java: New file.
2037 * java/io/ObjectInput.java: New file.
2038 * java/io/ObjectInputStream.java: New file.
2039 * java/io/ObjectInputValidation.java: New file.
2040 * java/io/ObjectOutput.java: New file.
2041 * java/io/ObjectOutputStream.java: New file.
2042 * java/io/ObjectStreamClass.java: New file.
2043 * java/io/ObjectStreamConstants.java: New file.
2044 * java/io/ObjectStreamField.java: New file.
2045 * java/io/Replaceable.java: New file.
2046 * java/io/Resolvable.java: New file.
2047 * java/io/SerializablePermission.java: New file.
2048 * java/io/WriteAbortedException.java: New file.
2049 * java/security/BasicPermission.java: New file.
2050 * java/security/DigestOutputStream.java: New file.
2051 * java/security/Guard.java: New file.
2052 * java/security/Permission.java: New file.
2053 * java/security/PermissionCollection.java: New file.
2054 * Makefile.am: Added above files.
2055 * Makefile.in: Rebuilt.
2057 * java/beans/Beans.java (instantiate): Activated serialization code.
2058 * java/lang/SecurityManager.java (checkPermission): New method.
2060 2000-04-12 Warren Levy <warrenl@cygnus.com>
2062 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
2063 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
2064 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
2065 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
2066 * gnu/gcj/beans/editors/ColorEditor.java: New file.
2067 * gnu/gcj/beans/editors/FontEditor.java: New file.
2068 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
2069 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
2070 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
2071 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
2072 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
2073 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
2074 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
2075 * gnu/gcj/beans/editors/StringEditor.java: New file.
2076 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
2077 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
2078 * gnu/gcj/lang/ArrayHelper.java: New file.
2079 * gnu/gcj/lang/ClassHelper.java: New file.
2080 * java/beans/BeanDescriptor.java: New file.
2081 * java/beans/BeanInfo.java: New file.
2082 * java/beans/Beans.java: New file.
2083 * java/beans/Customizer.java: New file.
2084 * java/beans/DesignMode.java: New file.
2085 * java/beans/EventSetDescriptor.java: New file.
2086 * java/beans/FeatureDescriptor.java: New file.
2087 * java/beans/IndexedPropertyDescriptor.java: New file.
2088 * java/beans/IntrospectionException.java: New file.
2089 * java/beans/Introspector.java: New file.
2090 * java/beans/MethodDescriptor.java: New file.
2091 * java/beans/ParameterDescriptor.java: New file.
2092 * java/beans/PropertyChangeEvent.java: New file.
2093 * java/beans/PropertyChangeListener.java: New file.
2094 * java/beans/PropertyChangeSupport.java: New file.
2095 * java/beans/PropertyDescriptor.java: New file.
2096 * java/beans/PropertyEditor.java: New file.
2097 * java/beans/PropertyEditorManager.java: New file.
2098 * java/beans/PropertyEditorSupport.java: New file.
2099 * java/beans/PropertyVetoException.java: New file.
2100 * java/beans/SimpleBeanInfo.java: New file.
2101 * java/beans/VetoableChangeListener.java: New file.
2102 * java/beans/VetoableChangeSupport.java: New file.
2103 * java/beans/Visibility.java: New file.
2104 * java/beans/beancontext/BeanContext.java: New file.
2105 * java/beans/beancontext/BeanContextChild.java: New file.
2106 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
2107 * java/beans/beancontext/BeanContextChildSupport.java: New file.
2108 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
2109 * java/beans/beancontext/BeanContextEvent.java: New file.
2110 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
2111 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
2112 * java/beans/beancontext/BeanContextProxy.java: New file.
2113 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
2115 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
2116 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
2118 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
2119 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
2121 * java/beans/beancontext/BeanContextServices.java: New file.
2122 * java/beans/beancontext/BeanContextServicesListener.java: New file.
2123 * java/util/AbstractCollection.java: New file.
2124 * java/util/AbstractList.java: New file.
2125 * java/util/Arrays.java: New file.
2126 * Makefile.am: Added above files.
2127 * Makefile.in: Rebuilt.
2129 2000-04-11 Warren Levy <warrenl@cygnus.com>
2131 * java/awt/AWTError.java: New file.
2132 * java/awt/AWTEvent.java: New file.
2133 * java/awt/AWTException.java: New file.
2134 * java/awt/ActiveEvent.java: New file.
2135 * java/awt/Adjustable.java: New file.
2136 * java/awt/BorderLayout.java: New file.
2137 * java/awt/Color.java: New file.
2138 * java/awt/Component.java: New file.
2139 * java/awt/Container.java: New file.
2140 * java/awt/Dimension.java: New file.
2141 * java/awt/Event.java: New file.
2142 * java/awt/Font.java: New file.
2143 * java/awt/Frame.java: New file.
2144 * java/awt/Graphics.java: New file.
2145 * java/awt/IllegalComponentStateException.java: New file.
2146 * java/awt/Image.java: New file.
2147 * java/awt/ItemSelectable.java: New file.
2148 * java/awt/LayoutManager.java: New file.
2149 * java/awt/LayoutManager2.java: New file.
2150 * java/awt/Menu.java: New file.
2151 * java/awt/MenuBar.java: New file.
2152 * java/awt/MenuComponent.java: New file.
2153 * java/awt/MenuContainer.java: New file.
2154 * java/awt/MenuItem.java: New file.
2155 * java/awt/Paint.java: New file.
2156 * java/awt/PaintContext.java: New file.
2157 * java/awt/Point.java: New file.
2158 * java/awt/Rectangle.java: New file.
2159 * java/awt/Shape.java: New file.
2160 * java/awt/TextArea.java: New file.
2161 * java/awt/TextComponent.java: New file.
2162 * java/awt/Toolkit.java: New file.
2163 * java/awt/Transparency.java: New file.
2164 * java/awt/Window.java: New file.
2165 * java/awt/natToolkit.cc: New file.
2166 * java/awt/event/AWTEventListener.java: New file.
2167 * java/awt/event/ActionEvent.java: New file.
2168 * java/awt/event/ActionListener.java: New file.
2169 * java/awt/event/AdjustmentEvent.java: New file.
2170 * java/awt/event/AdjustmentListener.java: New file.
2171 * java/awt/event/ComponentAdapter.java: New file.
2172 * java/awt/event/ComponentEvent.java: New file.
2173 * java/awt/event/ComponentListener.java: New file.
2174 * java/awt/event/ContainerAdapter.java: New file.
2175 * java/awt/event/ContainerEvent.java: New file.
2176 * java/awt/event/ContainerListener.java: New file.
2177 * java/awt/event/FocusAdapter.java: New file.
2178 * java/awt/event/FocusEvent.java: New file.
2179 * java/awt/event/FocusListener.java: New file.
2180 * java/awt/event/InputEvent.java: New file.
2181 * java/awt/event/InputMethodEvent.java: New file.
2182 * java/awt/event/InputMethodListener.java: New file.
2183 * java/awt/event/InvocationEvent.java: New file.
2184 * java/awt/event/ItemEvent.java: New file.
2185 * java/awt/event/ItemListener.java: New file.
2186 * java/awt/event/KeyAdapter.java: New file.
2187 * java/awt/event/KeyEvent.java: New file.
2188 * java/awt/event/KeyListener.java: New file.
2189 * java/awt/event/MouseAdapter.java: New file.
2190 * java/awt/event/MouseEvent.java: New file.
2191 * java/awt/event/MouseListener.java: New file.
2192 * java/awt/event/MouseMotionAdapter.java: New file.
2193 * java/awt/event/MouseMotionListener.java: New file.
2194 * java/awt/event/PaintEvent.java: New file.
2195 * java/awt/event/TextEvent.java: New file.
2196 * java/awt/event/TextListener.java: New file.
2197 * java/awt/event/WindowAdapter.java: New file.
2198 * java/awt/event/WindowEvent.java: New file.
2199 * java/awt/event/WindowListener.java: New file.
2200 * java/awt/geom/Dimension2D.java: New file.
2201 * java/awt/geom/Point2D.java: New file.
2202 * java/awt/peer/ComponentPeer.java: New file.
2203 * java/awt/peer/ContainerPeer.java: New file.
2204 * java/awt/peer/FramePeer.java: New file.
2205 * java/awt/peer/WindowPeer.java: New file.
2206 * java/util/Collection.java: New file.
2207 * java/util/Comparator.java: New file.
2208 * java/util/Iterator.java: New file.
2209 * java/util/List.java: New file.
2210 * java/util/ListIterator.java: New file.
2211 * Makefile.am: Added above files.
2212 * Makefile.in: Rebuilt.
2214 2000-04-10 Warren Levy <warrenl@cygnus.com>
2216 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
2217 * java/lang/FirstThread.java: Ditto.
2218 * java/lang/StringBuffer.java: Ditto.
2219 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2221 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
2222 Special case handled in java.math.BigInteger.
2223 * java/math/BigInteger.java (divide): Handle the special case when
2224 dividing by 1 and the high bit of the dividend is set.
2225 (setShiftRight): Handle case when count == 0.
2227 2000-04-05 Andrew Haley <aph@cygnus.com>
2229 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
2232 2000-04-05 Andrew Haley <aph@cygnus.com>
2234 * sysdep/ia64.c (rse_address_add): Delete.
2235 (IS_NaT_COLLECTION_ADDR): Delete.
2236 (ia64_backtrace_helper): check for null unwind_info.
2238 * sysdep/ia64-frame.h: add calc_caller_bsp.
2240 * java/lang/natThrowable.cc (printRawStackTrace): Flush
2243 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
2244 (_Jv_remI): Likewise.
2245 (_Jv_divJ): Likewise.
2246 (_Jv_remJ): Likewise.
2248 * interpret.cc (continue1): Use divide subroutines to guarantee
2249 correct Java standard behaviour.
2250 Floating-point division should not abort; make it so.
2252 2000-03-29 Tom Tromey <tromey@cygnus.com>
2254 * configure: Rebuilt.
2255 * configure.in: Test against `libgcj_sjlj', not
2256 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
2257 to be set even when using sjlj.
2259 2000-03-24 Andrew Haley <aph@cygnus.com>
2261 * Makefile.am: Add file addr2name.awk.
2262 * Makefile.in: Rebuilt.
2263 * addr2name.awk: New file.
2264 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
2266 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
2269 2000-03-22 Andrew Haley <aph@cygnus.com>
2271 * configure.host: Add -funwind-tables for IA64.
2272 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
2273 * Makefile.in: Rebuilt.
2274 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
2275 * sysdep/ia64.c: New file.
2276 * sysdep/ia64-frame.h: New file.
2277 * configure.in: Add sysdep/ia64.c for ia64.
2278 * configure: Rebuilt.
2280 2000-03-17 Andrew Haley <aph@cygnus.com>
2282 * java/lang/natString.cc: Remove `register' keyword.
2283 interpret.cc: ditto.
2285 2000-03-16 Andrew Haley <aph@cygnus.com>
2287 * configure.host (ia64): Enable interpreter.
2289 2000-03-14 Hans Boehm <boehm@acm.org>
2291 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
2293 2000-03-14 Andrew Haley <aph@cygnus.com>
2295 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
2298 2000-03-10 Andrew Haley <aph@cygnus.com>
2300 * java/lang/ieeefp.h: Import latest version from fdlibm.
2302 2000-03-14 Andrew Haley <aph@cygnus.com>
2304 * prims.cc (_Jv_ThrowSignal): New function.
2305 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
2307 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
2308 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
2309 * include/ppc-signal.h: New file.
2311 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
2313 * java/lang/Thread.java: Declare `data' as Object, not RawData.
2314 * java/lang/natThread.java (initialize_native): Cast `data' to
2316 * gnu/gcj/RawData.java: Clarify documentation.
2318 From Gregory R. Warnes <warnes@biostat.washington.edu>:
2319 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
2320 `jarFile', not `jarFileURL'.
2322 2000-05-15 Andrew Haley <aph@cygnus.com>
2324 * include/ppc-signal.h: New file.
2326 2000-05-11 Tom Tromey <tromey@cygnus.com>
2328 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
2329 file headers, don't include `size' in the skip call.
2331 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
2333 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
2334 Avoid arrayCopy() call where possible. Update `count' _after_ calling
2336 (replace): Reimplemented. Fix javadoc.
2337 (reverse): Call ensureCapacity_unsynchronized().
2338 (StringBuffer (String)): Use DEFAULT_CAPACITY.
2340 (replace): Calculate length for arraycopy() correctly.
2342 2000-05-09 Tom Tromey <tromey@cygnus.com>
2344 * java/lang/StringBuffer.java (toString): Don't mark buffer as
2346 (insert(int,char[],int,int): New method.
2347 (delete): New method from Classpath.
2348 (deleteCharAt): Likewise.
2349 (substring): Likewise.
2350 (shared): No longer private.
2351 Added JavaDoc comments from Classpath.
2352 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
2355 2000-05-07 Tom Tromey <tromey@cygnus.com>
2357 * Makefile.in: Rebuilt.
2358 * Makefile.am (LIBLINK): New macro.
2359 (libgcj_la_LINK): Use it.
2360 (libgcjawt_la_LINK): Likewise.
2362 2000-05-06 Tom Tromey <tromey@cygnus.com>
2364 * Makefile.in: Rebuilt.
2365 * Makefile.am (libgcj.zip): Don't pass -L to javac.
2367 2000-05-05 Tom Tromey <tromey@cygnus.com>
2369 Fix for PR libgcj/220:
2370 * Makefile.in: Rebuilt.
2371 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
2372 (jv_convert_LDFLAGS): Likewise.
2373 (libgcj_la_LDFLAGS): Likewise.
2374 (GCJLINK): New macro.
2375 (jv_convert_LINK): Use it.
2376 (gij_LINK): Likewise.
2377 (libgcj_la_LINK): New macro.
2378 (libgcjawt_la_LINK): Likewise.
2380 2000-05-04 Tom Tromey <tromey@cygnus.com>
2382 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
2384 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
2388 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
2390 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
2391 (_Jv_IsAssignableFrom): Ditto.
2392 (_Jv_IsInstanceOf): Ditto.
2393 (_Jv_CheckCast): Ditto.
2394 (_Jv_CheckArrayStore): Ditto.
2395 * java/lang/Class.h (_Jv_InitClass): Ditto.
2396 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
2401 (_Jv_MonitorExit): Ditto.
2402 * boehm.cc (_Jv_MarkObj): Ditto.
2403 (_Jv_MarkObj): Ditto.
2404 (_Jv_MarkArray): Ditto.
2405 * prims.cc (_Jv_AllocObject): Ditto.
2406 (_Jv_NewObjectArray): Ditto.
2407 (_Jv_NewPrimArray): Ditto.
2408 (_Jv_Malloc): Ditto.
2409 (_Jv_Realloc): Ditto.
2410 (_Jv_MallocUnchecked): Ditto.
2416 2000-05-04 Tom Tromey <tromey@cygnus.com>
2418 * java/util/Locale.java (Locale): Don't explicitly check for
2420 * java/util/Hashtable.java (containsKey): Don't explicitly check
2423 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
2425 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
2427 * java/text/StringCharacterIterator.java
2428 (StringCharacterIterator): Don't check for null.
2429 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
2431 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
2432 check for null pointer.
2433 (leaveGroup): Likewise.
2434 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
2436 (setData): Likewise.
2437 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
2440 2000-04-28 Jakub Jelinek <jakub@redhat.com>
2442 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
2443 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
2444 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
2445 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
2446 -rpath for in-gcc builds.
2447 * Makefile.in: Rebuilt.
2449 2000-04-28 Tom Tromey <tromey@cygnus.com>
2451 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
2454 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
2456 * libjava/java/lang/String.java (toString): Remove `final' hack.
2458 2000-04-05 Tom Tromey <tromey@cygnus.com>
2460 Runtime support for PR gcj/2:
2461 * prims.cc (_Jv_ThrowNullPointerException): New function.
2462 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
2464 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
2466 * prims.cc (_Jv_NewObjectArray): Fix typo.
2468 2000-04-26 Tom Tromey <tromey@cygnus.com>
2470 * Makefile.in: Rebuilt.
2471 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
2473 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
2475 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
2478 2000-04-22 Anthony Green <green@cygnus.com>
2480 * include/jvm.h (__builtin_expect): Define as unused for now.
2481 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
2485 (_Jv_MonitorExit): Ditto.
2486 * boehm.cc (_Jv_MarkObj): Ditto.
2487 (_Jv_MarkObj): Ditto.
2488 (_Jv_MarkArray): Ditto.
2489 (_Jv_AllocBytes): Ditto.
2490 * prims.cc (_Jv_AllocObject): Ditto.
2491 (_Jv_NewObjectArray): Ditto.
2492 (_Jv_NewPrimArray): Ditto.
2493 (_Jv_Malloc): Ditto.
2494 (_Jv_Realloc): Ditto.
2495 (_Jv_MallocUnchecked): Ditto.
2501 * include/Makefile.in: Rebuilt.
2502 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
2504 2000-04-21 Tom Tromey <tromey@cygnus.com>
2506 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
2507 Yet another new version from Classpath.
2509 Fix for PR libgcj/15:
2510 * java/util/natGregorianCalendar.cc (_REENTRANT,
2511 _POSIX_PTHREAD_SEMANTICS): Don't define.
2512 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
2513 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
2515 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
2517 * configure: Rebuilt.
2518 * configure.in: If using POSIX threads, define _REENTRANT if
2519 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
2520 GETHOSTBYNAME_R_NEEDS_REENTRANT.
2522 * java/io/PipedInputStream.java, java/io/PipedReader.java,
2523 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
2524 version from Classpath.
2526 Fix for PR libgcj/213:
2527 * Makefile.in: Rebuilt.
2528 * Makefile.am (gij_SOURCES): Added gij.cc.
2529 (EXTRA_gij_SOURCES): Removed.
2530 (gij_LDADD): Removed gij.lo.
2531 (gij_DEPENDENCIES): Likewise.
2532 ($(gij_OBJECTS)): Depend on nat_headers.
2534 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
2535 `setURL', not `url.set'.
2537 2000-04-20 Tom Tromey <tromey@cygnus.com>
2539 Fix for PR java.io/204:
2540 * java/io/PipedInputStream.java, java/io/PipedReader.java,
2541 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
2544 Fix for PR libgcj/212:
2545 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
2546 * include/jvm.h (_Jv_word, _Jv_word2): Define.
2547 * java/lang/Class.h (_Jv_word): Declare.
2549 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
2551 2000-04-19 Tom Tromey <tromey@cygnus.com>
2553 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
2554 doesn't have a loader.
2556 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
2558 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
2559 MAYBE_MARK to ptr_t, for compatibility with new GC version.
2561 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
2563 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
2565 (available): Initialize `where' to prevent bogus compiler warning.
2567 2000-04-12 Tom Tromey <tromey@cygnus.com>
2569 * java/lang/natString.cc (intern): Temporarily disable finalizer
2572 * java/lang/natString.cc (unintern): Added `obj' argument.
2573 (intern): Register finalizer for string.
2574 * java/lang/String.java (unintern): Now static; added obj
2577 2000-04-11 Tom Tromey <tromey@cygnus.com>
2579 * java/util/Vector.java (VectorEnumeration): Now `final'.
2580 * java/util/Hashtable.java (HashtableEntry): Now `final'.
2581 (HashtableEnumeration): Likewise.
2582 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
2583 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
2585 2000-04-10 Warren Levy <warrenl@cygnus.com>
2587 * java/io/ObjectStreamException.java: New file.
2588 * java/io/OptionalDataException.java: New file.
2589 * java/io/StreamCorruptedException.java: New file.
2590 * java/math/BigDecimal.java: New file.
2591 * java/sql/CallableStatement.java: New file.
2592 * java/sql/Connection.java: New file.
2593 * java/sql/DataTruncation.java: New file.
2594 * java/sql/DatabaseMetaData.java: New file.
2595 * java/sql/Date.java: New file.
2596 * java/sql/Driver.java: New file.
2597 * java/sql/DriverManager.java: New file.
2598 * java/sql/DriverPropertyInfo.java: New file.
2599 * java/sql/PreparedStatement.java: New file.
2600 * java/sql/ResultSet.java: New file.
2601 * java/sql/ResultSetMetaData.java: New file.
2602 * java/sql/SQLException.java: New file.
2603 * java/sql/SQLWarning.java: New file.
2604 * java/sql/Statement.java: New file.
2605 * java/sql/Time.java: New file.
2606 * java/sql/Timestamp.java: New file.
2607 * java/sql/Types.java: New file.
2608 * Makefile.am: Added above new files.
2609 * Makefile.in: Rebuilt.
2611 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2612 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
2613 DatagramSocket constructor instead of null.
2615 2000-04-08 Anthony Green <green@cygnus.com>
2617 * include/posix-threads.h (_Jv_MutexUnlock): Replace
2620 2000-04-08 Anthony Green <green@cygnus.com>
2622 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
2623 (_Jv_MutexUnlock): Ditto.
2624 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
2625 (_Jv_MutexUnlock): Ditto.
2627 2000-04-08 Anthony Green <green@cygnus.com>
2629 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
2630 (ensureCapacity_unsynchronized): New private method.
2631 (append): Use ensureCapacity_unsynchronized.
2633 2000-04-08 Tom Tromey <tromey@cygnus.com>
2635 * Makefile.in: Rebuilt.
2636 * Makefile.am (awt_java_source_files): Added new files.
2637 * java/awt/IllegalComponentStateException.java: New file.
2638 * java/awt/ItemSelectable.java: New file.
2639 * java/awt/event/WindowEvent.java: Finished.
2640 * java/awt/event/TextEvent.java: Finished.
2641 * java/awt/event/ContainerEvent.java: New file.
2642 * java/awt/Component.java (getX, getY): New methods.
2643 * java/awt/event/PaintEvent.java: New file.
2644 * java/awt/event/MouseEvent.java: New file.
2645 * java/awt/ActiveEvent.java: New file.
2646 * java/awt/event/KeyEvent.java: Finished.
2647 * java/awt/event/ItemEvent.java: New file.
2648 * java/awt/Adjustable.java: New file.
2649 * java/awt/event/InputMethodEvent.java: New file.
2650 * java/awt/event/InputEvent.java: Finished.
2651 * java/awt/event/FocusEvent.java: New file.
2652 * java/awt/event/MouseMotionAdapter.java: New file.
2653 * java/awt/event/MouseAdapter.java: New file.
2654 * java/awt/event/KeyAdapter.java: New file.
2655 * java/awt/event/FocusAdapter.java: New file.
2656 * java/awt/event/ContainerAdapter.java: New file.
2657 * java/awt/event/ComponentEvent.java: Finished.
2658 * java/awt/event/AdjustmentEvent.java: New file.
2659 * java/awt/event/ComponentAdapter.java: New file.
2660 * java/awt/event/ActionEvent.java: Finished.
2661 * java/awt/event/MouseMotionListener.java: New file.
2662 * java/awt/event/MouseListener.java: New file.
2663 * java/awt/event/ItemListener.java: New file.
2664 * java/awt/event/InputMethodListener.java: New file.
2665 * java/awt/event/ContainerListener.java: New file.
2666 * java/awt/event/FocusListener.java: New file.
2667 * java/awt/event/ComponentListener.java: New file.
2668 * java/awt/event/AWTEventListener.java: New file.
2669 * java/awt/event/AdjustmentListener.java: New file.
2671 2000-04-08 Anthony Green <green@cygnus.com>
2673 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
2674 check when we have to.
2676 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
2679 * java/util/StringTokenizer.java: Minor optimization. Eliminates
2682 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
2683 inline hasMoreElements.
2685 2000-04-05 Tom Tromey <tromey@cygnus.com>
2687 * configure: Rebuilt.
2688 * configure.in: Recognize --enable-java-awt.
2689 (AWT): New conditional.
2690 * Makefile.in: Rebuilt.
2691 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
2693 (libgcjawt_la_SOURCES): New macro.
2694 (EXTRA_libgcjawt_la_SOURCES): Likewise.
2695 (libgcjawt_la_DEPENDENCIES): Likewise.
2696 (libgcjawt_la_LIBADD): Likewise.
2697 (libgcjawt_la_LDFLAGS): Likewise.
2698 (libgcj.zip): Depend on cond_java_awt_source_files
2699 (cond_awt_java_source_files): New macro.
2700 (MOSTLYCLEANFILES): Added awto_files.
2701 (awto_files): New macro. Use where javao_files used.
2702 (nat_headers): Use cond_awt_java_source_files.
2704 2000-04-04 Tom Tromey <tromey@cygnus.com>
2706 * Makefile.in: Rebuilt.
2707 * Makefile.am (awt_java_source_files): Added AWTException.java.
2708 * java/awt/AWTException.java: New file.
2710 2000-04-03 Tom Tromey <tromey@cygnus.com>
2712 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
2713 commentary from Alex.
2715 * Makefile.in: Rebuilt.
2716 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
2719 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
2721 * configure: Rebuilt.
2722 * configure.in: Add --disable-jvmpi.
2723 * include/config.h.in: Rebuilt.
2724 * acconfig.h: Add ENABLE_JVMPI.
2726 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
2727 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
2728 (_Jv_JVMPI_Notify_THREAD_END): New define.
2729 (_Jv_JVMPI_Notify_THREAD_END): New define.
2730 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
2731 (_Jv_JVMPI_Notify_THREAD_END): Declare.
2732 (_Jv_JVMPI_Notify_THREAD_END): Declare.
2734 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
2737 * java/lang/natThread.cc: Include JVMPI headers if necessary.
2738 (finish_): Generate JVMPI thread end events.
2739 (run_): Generate JVMPI thread start events.
2740 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
2741 preloaded JNI library.
2742 Include JVMPI headers if necessary.
2743 (run): Generate JVMPI thread start events.
2745 * boehm.cc: Define GC_disable and GC_enable.
2746 (_Jv_DisableGC): New function.
2747 (_Jv_EnableGC): New function.
2748 (disable_gc_mutex): Declare.
2749 * nogc.cc (_Jv_DisableGC): New function.
2750 (_Jv_EnableGC): New function.
2752 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
2753 (_Jv_JVMPI_Interface): Define.
2754 (jvmpiEnableEvent): New function.
2755 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
2757 * include/jvmpi.h: New file.
2759 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2761 * Makefile.in: New #defines and friends for Thread.h.
2762 * Makefile.am: Ditto.
2763 * posix-threads.cc: (struct starter): Remove `object'.
2764 (_Jv_CondWait): Use interruptable condition variables and new
2765 recursive mutexes. New return codes on interrupt or non-ownership
2767 (_Jv_CondNotify): Ditto.
2768 (_Jv_CondNotifyAll): Ditto.
2769 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
2770 the target thread by signaling its wait condition.
2771 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
2772 not the starter struct. Initialize wait_mutex and wait_cond.
2773 (_Jv_MutexLock): New recursive mutex implementation. Moved from
2775 (_Jv_MutexUnlock): Ditto.
2776 (really_start): Set info->data->thread from pthread_self() to work
2777 around a race condition. Destroy wait_mutex and wait_cond when run()
2779 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
2780 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
2782 startable_flag: New private field.
2783 (Thread): Initialize `startable_flag'.
2784 (toString): Check for null thread group.
2785 * java/lang/natThread.cc: (struct natThread): New fields
2786 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
2787 (class locker): Removed.
2788 (initialize_native): Initialize `join_cond' and `join_mutex'.
2789 (interrupt): Now just calls _Jv_ThreadInterrupt().
2790 (join): Simplified. Just wait on the target thread's join condition.
2791 (finish_): Remove join list code. Unset thread group. Signal
2792 potential joiners by notifying the dying threads join_cond.
2793 (start): Check for illegal restarts.
2794 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
2796 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
2797 #defines and #ifdefs.
2798 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
2799 `wait_mutex', `next'.
2800 (struct _Jv_ConditionVariable_t): Define as a struct instead of
2801 directly mapping to pthread_cond_t.
2802 (struct _Jv_Mutex_t): New recursive implementation.
2803 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
2804 _Jv_HaveCondDestroy: Never define this for posix-threads.
2805 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
2806 (_Jv_CondNotifyAll): Ditto.
2807 (_Jv_MutexLock): Ditto.
2808 (_Jv_MutexUnlock): Ditto.
2809 (_Jv_MutexInit): Changed to reflect new mutex implementation.
2810 (_Jv_MutexDestroy): Ditto.
2811 (_Jv_CondDestroy): Removed.
2812 (_Jv_PthreadGetMutex): Removed.
2813 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
2814 error. Add a FIXME about this.
2815 (_Jv_CondNotifyAll): Ditto.
2816 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
2817 _JV_NOT_OWNER on other errors. Add FIXME.
2819 2000-03-26 Tom Tromey <tromey@cygnus.com>
2821 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
2823 (call): Don't throw exception here.
2825 2000-03-26 Tom Tromey <tromey@cygnus.com>
2827 * java/lang/mprec.h: Use SIZEOF_VOID_P.
2828 * interpret.cc: Use SIZEOF_VOID_P.
2829 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
2830 (_Jv_loadLong): Likewise.
2831 (_Jv_storeDouble): Likewise.
2832 * configure: Rebuilt.
2833 * configure.in: Check size of void*.
2835 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
2837 2000-03-26 Hans Boehm <boehm@acm.org>
2839 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
2840 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
2842 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
2843 __IEEE_LITTLE_ENDIAN appropriately on IA64.
2844 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
2845 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
2847 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
2848 (FFI_RAW_SIZE): Likewise.
2849 (_Jv_InterpMethod::ncode): Use them.
2850 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
2851 STORED): Define differently on a 64 bit machine.
2852 (continue1): Use ffi_java_raw_call when appropriate.
2854 2000-03-24 Warren Levy <warrenl@cygnus.com>
2856 * java/math/BigInteger.java(divide): Handle the special case when
2857 dividing by 1 and the high bit of the dividend is set.
2858 (setShiftRight): Handle case when count == 0.
2860 2000-03-24 Warren Levy <warrenl@cygnus.com>
2862 * java/awt/Font.java(isBold): Fix syntax error.
2864 * java/awt/Frame.java(postEvent): ditto.
2865 * java/awt/Menu.java(postEvent): ditto.
2866 * java/awt/MenuBar.java(postEvent): ditto.
2867 * java/awt/Toolkit.java(init): Included a stub.
2869 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
2871 * java/awt/Event.java: Add all the event type constants.
2872 (Event): Implemented constructors.
2873 (controlDown): Implemented.
2874 (metaDown): Implemented.
2875 (paramString): Stubbed.
2876 (shiftDown): Implemented.
2877 (toString): Implemented.
2878 (translate): Implemented.
2880 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
2882 * java/lang/natClass.cc (isInstance): Initialize `this'.
2883 (isAssignableFrom): Initialize `this' and `klass'.
2884 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
2885 implemented by any loaded class, so return false.
2886 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
2887 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
2889 2000-03-19 Warren Levy <warrenl@cygnus.com>
2891 * java/awt/Color.java: Specified java.io for Serializable.
2892 * java/awt/Toolkit.java: Imported java.net.URL.
2894 2000-03-19 Warren Levy <warrenl@cygnus.com>
2896 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
2898 2000-03-16 Warren Levy <warrenl@cygnus.com>
2900 * java/awt/Color.java: New file.
2901 * java/awt/Graphics.java: New file.
2902 * java/awt/Image.java: New file.
2903 * java/awt/Paint.java: New file.
2904 * java/awt/PaintContext.java: New file.
2905 * java/awt/Transparency.java: New file.
2906 * java/util/Collection.java: New file.
2907 * java/util/Comparator.java: New file.
2908 * java/util/Iterator.java: New file.
2909 * java/util/List.java: New file.
2910 * java/util/ListIterator.java: New file.
2911 * Makefile.am: Added above new files.
2912 * Makefile.in: Rebuilt.
2914 * java/awt/Font.java (PLAIN): New field.
2916 (ITALIC): New field.
2917 (ROMAN_BASELINE): New field.
2918 (CENTER_BASELINE): New field.
2919 (HANGING_BASELINE): New field.
2923 (pointSize): New field.
2924 (Font): Implemented constructor.
2925 (isPlain): Implemented method.
2926 (isBold): Implemented method.
2927 (isItalic): Implemented method.
2928 (getName): Implemented method.
2929 (getStyle): Implemented method.
2930 (getSize): Implemented method.
2931 (getSize2D): Implemented method.
2933 * java/awt/Frame.java (getFont): Stubbed.
2934 (postEvent): Stubbed.
2936 * java/awt/Menu.java (postEvent): Stubbed.
2937 * java/awt/MenuBar.java (getFont): Stubbed.
2938 (postEvent): Stubbed.
2939 * java/awt/Toolkit.java (getImage): Added abstract method.
2941 2000-03-15 Tom Tromey <tromey@cygnus.com>
2943 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
2945 * prims.cc (win32_exception_handler): Reformatted.
2947 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
2948 (_Jv_HaveMutexDestroy): Likewise.
2950 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
2952 * java/io/natFileDescriptorWin32.cc: New file.
2953 * java/io/natFileWin32.cc: New file.
2954 * java/net/natInetAddress.cc: Added conditional inclusion of
2955 Windows / Winsock headers.
2956 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
2957 inclusion of Windows / Winsock headers.
2958 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
2959 Windows / Winsock headers.
2960 * include/win32-signal.h: New file.
2961 * include/win32-threads.h: New file.
2962 * win32-threads.cc: New file.
2963 * exception.cc (win32_get_restart_frame): New function.
2964 * prims.cc (win32_exception_handler): New function.
2965 (main_init) Performs Winsock initialisation.
2966 (main_init) Installs exeception handler.
2968 2000-03-14 Tom Tromey <tromey@cygnus.com>
2970 * jni.cc (mangled_name): Fixed assertion.
2971 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
2972 turned assert into actual failure.
2974 2000-03-09 Warren Levy <warrenl@cygnus.com>
2976 * java/security/Key.java(serialVersionUID): Set to 0 for now.
2977 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
2978 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
2980 2000-03-09 Warren Levy <warrenl@cygnus.com>
2982 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
2983 * java/security/DigestException.java: New file.
2984 * java/security/GeneralSecurityException.java: New file.
2985 * java/security/InvalidAlgorithmParameterException.java: New file.
2986 * java/security/InvalidKeyException.java: New file.
2987 * java/security/InvalidParameterException.java: New file.
2988 * java/security/Key.java: New file.
2989 * java/security/KeyException.java: New file.
2990 * java/security/KeyPair.java: New file.
2991 * java/security/KeyPairGenerator.java: New file.
2992 * java/security/KeyPairGeneratorSpi.java: New file.
2993 * java/security/NoSuchProviderException.java: New file.
2994 * java/security/PrivateKey.java: New file.
2995 * java/security/Provider.java: New file.
2996 * java/security/PublicKey.java: New file.
2997 * java/security/SecureRandom.java: New file.
2998 * java/security/Security.java: New file.
2999 * java/security/Signature.java: New file.
3000 * java/security/SignatureException.java: New file.
3001 * java/security/interfaces/DSAKey.java: New file.
3002 * java/security/interfaces/DSAParams.java: New file.
3003 * java/security/interfaces/DSAPrivateKey.java: New file.
3004 * java/security/interfaces/DSAPublicKey.java: New file.
3005 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
3006 * java/security/interfaces/RSAPrivateKey.java: New file.
3007 * java/security/interfaces/RSAPublicKey.java: New file.
3008 * java/security/spec/AlgorithmParameterSpec.java: New file.
3009 * java/security/spec/InvalidKeySpecException.java: New file.
3010 * java/security/spec/InvalidParameterSpecException.java: New file.
3011 * java/security/spec/KeySpec.java: New file.
3012 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
3013 * java/security/spec/RSAPrivateKeySpec.java: New file.
3014 * java/security/spec/RSAPublicKeySpec.java: New file.
3015 * Makefile.am: Added above java.security files.
3016 * Makefile.in: Rebuilt.
3018 * java/security/MessageDigest.java: Rewritten.
3019 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
3021 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
3025 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
3027 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
3028 _Jv_PrepareConstantTimeTables.
3029 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
3030 classes should have an IDT, so don't return if klass is an array
3033 2000-03-08 Tom Tromey <tromey@cygnus.com>
3035 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
3036 of `void' to be created.
3038 2000-03-08 Warren Levy <warrenl@cygnus.com>
3040 * java/math/BigInteger.java(signum): Handle zero properly.
3042 2000-03-07 Tom Tromey <tromey@cygnus.com>
3044 * All files: Updated copyright information.
3045 * COPYING: New file.
3046 * COPYING.LIB: Removed.
3047 * LIBGCJ_LICENSE: We now use GPL + special exception.
3049 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
3051 * resolve.cc (_Jv_SearchMethodInClass): New function.
3052 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
3053 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
3055 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
3057 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
3058 (struct _Jv_ifaces): New declaration.
3059 JV_CLASS: New macro definition.
3060 (getComponentType): Relocate below isArray() for inlining.
3061 (getModifiers): Declare `inline'.
3062 (getSuperclass): Ditto.
3064 (isPrimitive): Ditto.
3065 (_Jv_IsAssignableFrom): New prototype.
3066 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
3068 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
3069 Check for JV_STATE_DONE before invoking initializeClass().
3070 (_Jv_PrepareConstantTimeTables): New prototype.
3071 (_Jv_GetInterfaces): Ditto.
3072 (_Jv_GenerateITable): Ditto.
3073 (_Jv_GetMethodString): Ditto.
3074 (_Jv_AppendPartialITable): Ditto.
3075 (_Jv_FindIIndex): Ditto.
3076 depth, ancestors, idt: New class fields.
3078 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
3079 inline function `_Jv_IsAssignableFrom'. Use that function.
3080 (isInstance): Declare `inline'.
3081 (initializeClass): Get lock on class before checking `state'. Unlock
3082 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
3084 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
3085 (_Jv_IsAssignableFrom): New inline function. Test assignability using
3086 class->depth and ancestor table.
3087 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
3088 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
3089 _Jv_IsAssignableFrom.
3090 (_Jv_CheckArrayStore): Ditto.
3091 (_Jv_LookupInterfaceMethodIdx): New function.
3092 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
3093 (_Jv_PrepareConstantTimeTables): New function.
3094 (_Jv_IndexOf): Ditto.
3095 (_Jv_GetInterfaces): Ditto.
3096 (_Jv_GenerateITable): Ditto.
3097 (_Jv_GetMethodString): Ditto.
3098 (_Jv_AppendPartialITable): Ditto.
3099 iindex_mutex, iindex_mutex_initialized: New static fields.
3100 (_Jv_FindIIndex): New function.
3102 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
3104 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
3105 (_Jv_CheckArrayStore): Ditto.
3106 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
3107 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
3108 Moved to gcj/array.h.
3109 (_Jv_Realloc): New function.
3111 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
3113 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
3114 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
3115 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
3116 JvNewDoubleArray): Implementations moved from prims.cc and
3119 * gcj/javaprims.h (_Jv_Realloc): Prototype.
3121 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
3123 2000-03-06 Tom Tromey <tromey@cygnus.com>
3125 * jni.cc (MARK_NONE): New define.
3126 (MARK_USER): Likewise.
3127 (MARK_SYSTEM): Likewise.
3128 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
3130 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
3131 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
3132 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
3133 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
3135 (call): Use MARK_SYSTEM.
3136 (_Jv_GetJNIEnvNewFrame): New function.
3137 (_Jv_LookupJNIMethod): New function.
3138 (_Jv_JNI_PopSystemFrame): New function.
3139 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
3141 2000-03-05 Tom Tromey <tromey@cygnus.com>
3143 Fix for PR libgcj/43:
3144 * include/Makefile.in: Rebuilt.
3145 * include/Makefile.am (include_HEADERS): New define.
3147 2000-03-05 Anthony Green <green@redhat.com>
3149 * gcj/javaprims.h ("Java"): Remove FirstThread.
3151 * configure.host: Fix __NO_MATH_INLNES botch.
3153 * Makefile.in: Rebuilt.
3154 * Makefile.am (nat_source_files): Move natFirstThread.cc.
3155 (gnu/gcj/runtime/FirstThread.h): Moved.
3156 (ordinary_java_source_files): Move FirstThread.java.
3157 * prims.cc: Deal with FirstThread movement.
3159 (_Jv_RunMain): Ditto.
3161 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
3162 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
3164 2000-03-05 Warren Levy <warrenl@cygnus.com>
3166 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
3167 Handle null addresses.
3169 2000-03-04 Anthony Green <green@redhat.com>
3171 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
3174 2000-03-04 Anthony Green <green@redhat.com>
3176 * configure: Rebuilt.
3177 * configure.in (ZLIBTESTSPEC): New macro.
3178 (GCTESTSPEC): New macro.
3179 (LIBGCJTESTSPEC): New macro.
3180 * libgcj-test.spec.in: New file.
3182 2000-03-02 Tom Tromey <tromey@cygnus.com>
3184 * include/java-interp.h: Don't include MethodInvocation.h.
3185 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
3186 * Makefile.in: Rebuilt.
3187 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
3188 (ordinary_java_source_files): Don't mention
3189 MethodInvocation.java.
3190 * gnu/gcj/runtime/MethodInvocation.java: Removed.
3191 * interpret.cc (MethodInvocation::continue1): Removed.
3192 (run): Handle exceptions here.
3193 * java/lang/ClassLoader.java (defineClass1, defineClass2):
3195 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
3197 (defineClass2): Removed.
3199 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
3201 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
3203 (hack_call): Removed.
3205 * java/lang/Class.h (Class): Removed hackRunInitializers,
3207 * java/lang/natClass.cc (hackRunInitializers): Removed.
3208 (initializeClass): Catch exceptions here.
3209 Include ExceptionInInitializerError.h.
3210 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
3213 * java/lang/Object.h (Object): Don't mention hack12_6.
3214 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
3216 * java/lang/Object.java (hack12_6): Removed.
3218 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
3219 (start): Use run_, not run__.
3220 * java/lang/Thread.java (run_): Renamed from run__; old run_
3223 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
3224 (_Jv_JNI_EnsureLocalCapacity): Likewise.
3225 (_Jv_JNI_DefineClass): Likewise.
3226 (_Jv_JNI_ThrowNew): Likewise.
3227 (_Jv_JNI_AllocObject): Likewise.
3228 (_Jv_JNI_GetAnyMethodID): Likewise.
3229 (_Jv_JNI_CallAnyMethodV): Likewise.
3230 (_Jv_JNI_CallAnyMethodA): Likewise.
3231 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3232 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
3233 (_Jv_JNI_GetAnyFieldID): Likewise.
3234 (_Jv_JNI_NewString): Likewise.
3235 (_Jv_JNI_NewStringUTF): Likewise.
3236 (_Jv_JNI_GetStringUTFChars): Likewise.
3237 (_Jv_JNI_NewObjectArray): Likewise.
3238 (_Jv_JNI_NewPrimitiveArray): Likewise.
3239 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
3240 (_Jv_JNI_GetStringRegion): Likewise.
3241 (_Jv_JNI_GetStringUTFRegion): Likewise.
3242 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
3243 (_Jv_JNI_MonitorEnter): Likewise.
3244 (_Jv_JNI_MonitorExit): Likewise.
3245 (_Jv_JNI_ToReflectedField): Likewise.
3246 (_Jv_JNI_ToReflectedMethod): Likewise.
3247 (_Jv_JNI_RegisterNatives): Likewise.
3248 (_Jv_JNI_AttachCurrentThread): Likewise.
3249 (_Jv_JNI_DestroyJavaVM): Likewise.
3251 2000-02-28 Mo DeJong <mdejong@cygnus.com>
3253 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
3254 error caused by the incorrect casting of a long to an int.
3256 2000-02-28 Mo DeJong <mdejong@cygnus.com>
3258 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
3259 SIGSEV caused by use of the wrong instance variable.
3261 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
3263 * java/io/File.java (File(String, String)): For dirPath, treat an
3264 empty String the same as `null'.
3266 2000-02-26 Anthony Green <green@cygnus.com>
3268 * gnu/gcj/io/MimeTypes.java: Test for null.
3270 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
3271 (JNI_GetCreatedJavaVMs): Remove compiler warning.
3273 * java/net/URLConnection.java: Update copyright notice.
3275 2000-02-25 Tom Tromey <tromey@cygnus.com>
3277 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
3280 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
3282 * java/net/URLConnection.java (initializeDateFormats): New
3284 (getHeaderFieldDate): Call initializeDateFormats if required.
3285 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
3287 Fix for PR libgcj/38.
3289 2000-02-24 Warren Levy <warrenl@cygnus.com>
3291 * java/math/BigInteger.java(ival): Made private.
3295 2000-02-20 Anthony Green <green@cygnus.com>
3297 * Makefile.in: Rebuilt.
3298 * Makefile.am (ordinary_java_source_files): Add
3299 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
3301 * scripts/MakeDefaultMimeTypes.java: New file.
3302 * scripts/mime.types: New file.
3303 * scripts/classes.pl: Moved from top level.
3304 * classes.pl: Moved to scripts directory.
3306 * java/net/URLConnection.java: Implement guessContentTypeFromName.
3308 * gnu/gcj/io/MimeTypes.java: New file.
3309 * gnu/gcj/io/DefaultMimeTypes.java: New file.
3311 2000-02-20 Tom Tromey <tromey@cygnus.com>
3313 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
3315 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3317 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
3320 2000-02-18 Tom Tromey <tromey@cygnus.com>
3322 * include/jvm.h (_Jv_GetJavaVM): Declare.
3323 * include/java-interp.h (_Jv_GetFirstMethod): New function.
3324 (_Jv_MethodBase::get_method): New method.
3325 (_Jv_JNIMethod::set_function): New method.
3326 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
3327 (_Jv_JNI_RegisterNatives): New function.
3328 (_Jv_JNIFunctions): Updated for new functions.
3329 (_Jv_GetJavaVM): New function.
3330 (_Jv_JNI_GetJavaVM): Use it. Now static.
3331 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
3332 is already a Java thread but does not have a JNIEnv yet.
3334 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
3337 2000-02-17 Tom Tromey <tromey@cygnus.com>
3339 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
3342 2000-02-16 Tom Tromey <tromey@cygnus.com>
3344 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
3346 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
3347 (_Jv_JNI_NewObject): Likewise.
3348 (_Jv_JNI_NewObjectA): Likewise.
3349 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
3350 as "return" type to _Jv_CallAnyMethodA.
3351 (_Jv_JNI_CallAnyMethodA): Likewise.
3352 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3354 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
3357 2000-02-15 Tom Tromey <tromey@cygnus.com>
3359 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
3361 (init_cif): Added `rtype_p' argument.
3362 * include/java-interp.h (class _Jv_MethodBase): Added
3364 (class _Jv_InterpMethod): Removed args_raw_size.
3365 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
3366 * jni.cc (call): Pass JNIEnv and (for static methods only) the
3367 class pointer as well as the ordinary arguments.
3369 * jni.cc (mangled_name): Skip leading `(' in signature.
3371 * jni.cc (add_char): Added missing `else'.
3373 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
3376 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3380 * java/lang/natRuntime.cc (_load): Include library path with
3383 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
3386 * java/lang/natThread.cc (dumpStack): Removed.
3387 * java/lang/Thread.java (dumpStack): Implemented.
3389 2000-02-15 Tom Tromey <tromey@cygnus.com>
3391 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
3392 with `lib' for loadLibrary. Fixes PR gcj/150.
3394 2000-02-14 Warren Levy <warrenl@cygnus.com>
3396 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
3398 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
3402 (modPow): Rewritten to not use the naive, slow, brute force approach.
3403 (isProbablePrime): Implemented.
3404 (testBit): Implemented.
3405 (flipBit): Implemented.
3406 (getLowestSetBit): Implemented.
3408 2000-02-16 Anthony Green <green@redhat.com>
3410 * configure.host: Use the same options for i386 and i486 as we do
3413 2000-02-12 Tom Tromey <tromey@cygnus.com>
3415 * java/io/File.java (createTempFile): Use low bits from counter,
3418 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
3420 * THANKS: More thanks.
3422 2000-02-11 Tom Tromey <tromey@cygnus.com>
3424 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
3425 astore instruction. From Hans Boehm.
3427 2000-02-11 Warren Levy <warrenl@cygnus.com>
3429 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
3430 (BigInteger(String)): New constructor.
3431 (not): Rewritten using version from Kawa's BitOps class.
3432 (valueOf): New private methods from Kawa's BitOps class.
3439 (andNot): Implemented.
3440 (clearBit): Implemented.
3441 (setBit): Implemented.
3442 (bitCount): Implemented.
3443 (toByteArray): Implemented.
3445 2000-02-11 Tom Tromey <tromey@cygnus.com>
3447 * java/io/File.java (nextValue): Now synchronized.
3449 2000-02-10 Tom Tromey <tromey@cygnus.com>
3451 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
3452 * java/io/FileDescriptor.java (EXCL): New static field.
3453 * java/io/File.java (tmpdir): New static field.
3454 (createTempFile): New method.
3455 (nextValue): New method.
3456 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
3459 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
3460 (jboolean): Declare as an attributed int, not a bool.
3461 (_Jv_func): Declare differently for C.
3463 * gnu/gcj/jni/natNativeThread.cc: New file.
3464 * gnu/gcj/jni/NativeThread.java: New file.
3465 * java/lang/Thread.java (data): Now a RawData.
3466 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
3468 * Makefile.in: Rebuilt.
3469 * Makefile.am (java/lang/Thread.h): New target.
3470 (ordinary_java_source_files): Added NativeThread.java.
3471 (nat_source_files): Added natNativeThread.cc.
3472 * java/lang/natThread.cc: Include <jni.h>
3473 (struct natThread): Added `jni_env' field.
3474 (_Jv_GetCurrentJNIEnv): New function.
3475 (_Jv_SetCurrentJNIEnv): Likewise.
3476 (initialize_native): Initialize jni_env.
3478 * jni.cc (ThreadGroupClass): New define.
3479 (_Jv_JNI_InvokeFunctions): New structure.
3480 (JNI_GetCreatedJavaVMs): New function.
3481 (the_vm): New global.
3482 (JNI_GetDefaultJavaVMInitArgs): New function.
3483 Include NativeThread.h.
3484 (NativeThreadClass): New define.
3485 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
3486 (_Jv_JNI_DestroyJavaVM): New function.
3487 (_Jv_JNI_AttachCurrentThread): New function.
3488 (_Jv_JNI_DetachCurrentThread): New function.
3489 (_Jv_JNI_GetEnv): New function.
3490 (JNI_CreateJavaVM): New function.
3491 (_Jv_JNI_GetJavaVM): New function.
3492 (_Jv_JNIFunctions): Added entry for GetJavaVM.
3493 * include/jni.h (JavaVMAttachArgs): New structure.
3494 (JNI_EDETACHED): New define.
3495 (JNI_EVERSION): Likewise.
3496 (JavaVM): Define properly.
3497 (struct JNIInvokeInterface): New structure.
3498 (class _Jv_JavaVM): New class.
3499 (JNI_OnLoad, JNI_OnUnload): Declare.
3500 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
3501 JNI_GetCreatedJavaVMs): Declare.
3502 (JavaVMInitArgs): New typedef.
3503 (JavaVMOption): Likewise.
3504 (JNI_ERR): New define.
3507 2000-02-10 Andrew Haley <aph@cygnus.com>
3509 * interpret.cc: Don't include fdlibm.h.
3510 Replace #if with #ifdef throughout.
3511 Declare extern __ieee754_fmod.
3512 (continue1): Remove op_getfield, op_getstatic, op_putfield,
3514 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
3515 Search class hierarchy for superclass vtable.
3517 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
3518 off the end of a pointer list.
3520 * java/lang/natThread.cc (stop): Don't abort, throw an exception
3524 2000-02-09 Tom Tromey <tromey@cygnus.com>
3526 * java/lang/natRuntime.cc (_load): Call add_library.
3527 (loadLibraryInternal): Likewise.
3529 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
3530 iconv_close when handle is not NULL. Thanks to Andrew Haley.
3531 (Output_iconv::finalize): Likewise.
3533 2000-02-08 Tom Tromey <tromey@cygnus.com>
3535 * java/util/Properties.java (setProperty): New method.
3536 (store): New method.
3538 2000-02-07 Tom Tromey <tromey@cygnus.com>
3540 * java/lang/Runtime.java (_load): Declare.
3541 (load, loadLibrary): Wrote in terms of _load.
3542 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
3544 (loadLibrary): Likewise.
3546 (_load): New method.
3547 (loadLibrary, load): Removed.
3549 * jni.cc (ThrowableClass): New define.
3550 (_Jv_JNI_Throw): Check argument.
3551 (_Jv_JNI_ThrowNew): Likewise.
3552 (wrap_value): Don't wrap object if it is NULL.
3553 (_Jv_JNI_DefineClass): Use wrap_value.
3554 (_Jv_JNI_FindClass): Likewise.
3555 (_Jv_JNI_GetSuperclass): Likewise.
3556 (_Jv_JNI_ExceptionOccurred): Likewise.
3557 (_Jv_JNI_AllocObject): Likewise.
3558 (_Jv_JNI_GetObjectClass): Likewise.
3559 (_Jv_JNI_NewString): Likewise.
3560 (_Jv_JNI_NewStringUTF): Likewise.
3561 (_Jv_JNI_NewObjectArray): Likewise.
3562 (_Jv_JNI_GetObjectArrayElement): Likewise.
3563 (_Jv_JNI_NewPrimitiveArray): Likewise.
3564 (_Jv_JNI_ToReflectedField): Likewise.
3565 (_Jv_JNI_ToReflectedMethod): Likewise.
3566 (_Jv_JNI_AllocObject): Check argument.
3567 (_Jv_JNI_NewObjectV): Likewise.
3568 (_Jv_JNI_NewObject): Likewise.
3569 (_Jv_JNI_NewObjectA): Likewise.
3570 (_Jv_JNI_GetObjectClass): Likewise.
3571 (_Jv_JNI_GetField): Likewise.
3572 (_Jv_JNI_SetField): Likewise.
3574 * interpret.cc (PUSHL): Don't use expression statement.
3579 * jni.cc (add_char): Conditional on INTERPRETER.
3580 (mangled_name): Likewise.
3582 * include/java-interp.h (class _Jv_MethodBase): Conditional on
3584 (class _Jv_JNIMethod): Likewise.
3586 2000-02-04 Warren Levy <warrenl@cygnus.com>
3588 * Makefile.am: Added MPN.java and BigInteger.java.
3589 * Makefile.in: Rebuilt.
3590 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
3592 * java/math/BigInteger.java: New file. Based primarily on
3593 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
3595 2000-02-04 Tom Tromey <tromey@cygnus.com>
3597 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
3599 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
3600 if the method is native.
3601 * resolve.cc (ncode): Don't handle native methods.
3602 (_Jv_JNIMethod::ncode): New method.
3603 (_Jv_PrepareClass): Handle native methods.
3604 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
3605 Include AbstractMethodError.h.
3606 (add_char): New function.
3607 (mangled_name): Likewise.
3608 * include/java-interp.h (class _Jv_JNIMethod): New class.
3609 (class _Jv_MethodBase): New class.
3610 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
3611 (_Jv_InterpClass): Changed `interpreted_methods' field to type
3614 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
3615 * java/lang/natRuntime.cc (libraries_size, libraries_count,
3616 libraries): New globals.
3617 (add_library): New function.
3618 (_Jv_FindSymbolInExecutable): New function.
3620 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
3623 2000-02-04 Andrew Haley <aph@cygnus.com>
3625 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
3626 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
3627 * java/lang/natThrowable.cc (printRawStackTrace): Rename
3628 printStackTrace to printRawStackTrace.
3630 2000-02-03 Tom Tromey <tromey@cygnus.com>
3632 * java/util/Calendar.java (toString): New method.
3633 * java/util/SimpleTimeZone.java (clone): New method.
3634 (toString): New method.
3635 * java/util/TimeZone.java (clone): New method.
3636 * java/text/SimpleDateFormat.java (clone): New method.
3637 * java/text/NumberFormat.java (clone): New method.
3638 (equals): New method.
3639 * java/text/Format.java (clone): New method.
3640 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
3642 (clone): New method.
3643 * java/text/DateFormat.java (clone): New method.
3644 * java/text/Collator.java (clone): New method.
3646 2000-02-03 Tom Tromey <tromey@cygnus.com>
3648 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
3651 2000-02-01 Tom Tromey <tromey@cygnus.com>
3653 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
3654 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
3655 constructing the closure if the function is native.
3656 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
3657 a template function, #if'd out, or static.
3658 Include <java-interp.h>.
3660 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
3662 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
3664 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
3665 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
3667 (wrap_value): New function.
3668 (_Jv_JNI_CallAnyMethodV): Use it.
3669 (_Jv_JNI_CallAnyMethodA): Likewise.
3670 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
3671 (_Jv_JNI_GetStaticField): Likewise.
3673 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
3674 (_Jv_JNI_GetStaticField): Likewise.
3676 2000-01-31 Tom Tromey <tromey@cygnus.com>
3678 * prims.cc (_Jv_MallocUnchecked): New function.
3679 (main_init): Call _Jv_JNI_Init.
3680 * include/jvm.h (_Jv_MallocUnchecked): Declare.
3681 (_Jv_JNI_Init): Declare.
3682 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
3684 (_Jv_JNI_NewGlobalRef): New function.
3685 (_Jv_JNI_DeleteGlobalRef): New function.
3686 (_Jv_JNI_DeleteLocalRef): New function.
3687 (_Jv_JNI_conversion_call): Initialize and clear local reference
3689 (_Jv_JNI_NewLocalRef): New function.
3690 (struct _Jv_JNI_LocalFrame): New structure.
3691 (_Jv_JNI_PushLocalFrame): New function.
3692 (_Jv_JNI_EnsureLocalCapacity): New function.
3693 (FRAME_SIZE): New define.
3694 (_Jv_JNI_GetStringChars): Mark string, not characters.
3695 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
3696 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
3697 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
3699 (_Jv_JNI_DefineClass): Make return value a local ref.
3700 (_Jv_JNI_FindClass): Likewise.
3701 (_Jv_JNI_GetSuperclass): Likewise.
3702 (_Jv_JNI_ExceptionOccurred): Likewise.
3703 (_Jv_JNI_AllocObject): Likewise.
3704 (_Jv_JNI_GetObjectClass): Likewise.
3705 (_Jv_JNI_CallAnyMethodV): Likewise.
3706 (_Jv_JNI_NewString): Likewise.
3707 (_Jv_JNI_NewStringUTF): Likewise.
3708 (_Jv_JNI_NewObjectArray): Likewise.
3709 (_Jv_JNI_GetObjectArrayElement): Likewise.
3710 (_Jv_JNI_ToReflectedField): Likewise.
3711 (_Jv_JNI_ToReflectedMethod): Likewise.
3712 (_Jv_JNIFunctions): Updated table for new functions.
3713 (_Jv_JNI_Init): New function.
3714 (mark_for_gc): Wrote.
3715 (unmark_for_gc): Wrote.
3716 * include/jni.h (struct JNINativeInterface): Removed name from
3717 PopLocalFrame parameter.
3718 (class _Jv_JNIEnv): Added `locals' field.
3720 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
3722 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
3725 2000-01-30 Tom Tromey <tromey@cygnus.com>
3727 * include/config.h.in: Rebuilt.
3728 * acconfig.h (HAVE_ICONV): Define.
3729 * configure: Rebuilt.
3730 * configure.in: Check for `iconv' function.
3731 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
3732 no specific encoder exists.
3733 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
3734 no specific encoder exists.
3735 * Makefile.in: Rebuilt.
3736 * Makefile.am (convert_source_files): Mention Input_iconv.java and
3738 (nat_source_files): Added natIconv.cc.
3739 * gnu/gcj/convert/natIconv.cc: New file.
3740 * gnu/gcj/convert/Input_iconv.java: New file.
3741 * gnu/gcj/convert/Output_iconv.java: New file.
3743 2000-01-28 Tom Tromey <tromey@cygnus.com>
3745 * Makefile.in: Rebuilt.
3746 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
3748 2000-01-26 Tom Tromey <tromey@cygnus.com>
3750 * gcj/method.h (JvNumMethods): Moved from Class.h.
3751 (JvGetFirstMethod): Likewise.
3752 * java/lang/Class.h (Object): Updated decl of
3753 _Jv_JNI_ToReflectedField.
3754 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
3755 * Makefile.in: Rebuilt.
3756 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
3757 argument of _Jv_JNI_ToReflectedField.
3758 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
3760 (java/lang/reflect/Method.h): Likewise.
3761 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
3763 (jweak): New typedef.
3764 (struct JNINativeInterface): Correctly declare remaining entries.
3765 * jni.cc: Include Class.h, ClassLoader.h.
3766 (_Jv_JNI_FindClass): New function.
3767 (_Jv_JNI_DefineClass): New function.
3768 (_Jv_JNI_conversion_call): New function.
3769 (_Jv_JNI_FindClass): Use current class loader to find class.
3770 (_Jv_JNI_ExceptionCheck): New function.
3771 (_Jv_JNI_FromReflectedField): Now static.
3772 (MethodClass): New define.
3773 (_Jv_JNI_FromReflectedMethod): New function.
3774 (_Jv_JNI_ToReflectedMethod): Likewise.
3776 (_Jv_JNI_IsAssignableFrom): Renamed.
3777 (_Jv_JNI_GetStringRegion): New function.
3778 Include StringIndexOutOfBoundsException.h.
3779 (_Jv_JNI_GetStringUTFRegion): New function.
3780 (_Jv_JNIFunctions): Updated for new functions.
3781 (_Jv_JNI_GetPrimitiveArrayCritical): New function
3782 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
3783 (_Jv_JNI_GetStringCritical): New function.
3784 (_Jv_JNI_ReleaseStringCritical): Likewise.
3785 (get_throwable): Removed.
3786 (GCJ_JV_JNIENV_FRIEND): Removed.
3787 (__GCJ_JNI_IMPL__): Define.
3790 * resolve.cc (get_ffi_type_from_signature): Handle case where
3793 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
3795 * interpret.cc (run): Don't call println.
3796 Don't include PrintStream.h.
3798 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
3799 nameIndex. Use "jint" as type for boffset.
3800 * java/lang/Class.h (struct _Jv_Method): Made accflags a
3802 (Class): Likewise. Also changed type of method_count,
3803 vtable_method_count, size_in_bytes, field_count,
3804 static_field_count, interface_count.
3805 * gcj/array.h (__JArray): Made `length' a const jsize, not an
3808 2000-01-21 Tom Tromey <tromey@cygnus.com>
3810 * java/lang/reflect/natConstructor.cc (newInstance): Use
3812 * include/jvm.h: Declare _Jv_CallAnyMethodA.
3813 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
3814 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
3817 (invoke): Use _Jv_CallAnyMethodA.
3819 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
3820 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
3822 (struct _Jv_Method): Added getNextMethod method.
3823 (JvNumMethods): New function.
3824 (JvGetFirstMethod): Likewise.
3825 * gcj/field.h (JvGetFirstStaticField): New function.
3826 (JvNumStaticFields): Likewise.
3827 (getNextField): Renamed from getNextInstanceField.
3828 (struct _Jv_Field): New method getClass.
3829 * jni.cc: Wrote many new functions.
3830 * include/jni.h (JNI_TRUE): Define.
3831 (JNI_FALSE): Likewise.
3832 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
3833 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
3834 jcharArray, jfloatArray, jdoubleArray): New typedefs.
3835 (jfieldID, jmethodID): Likewise.
3836 (JNI_COMMIT, JNI_ABORT): New defines.
3837 (JNINativeMethod): New struct.
3838 (struct JNINativeInterface): Correctly declared more entries.
3839 (class _Jv_JNIEnv): Added `ex' member.
3840 (JNI_VERSION_1_1): New define.
3841 (JNI_VERSION_1_2): Likewise.
3843 * boehm.cc (_Jv_MarkObj): Use getNextField, not
3844 getNextInstanceField.
3846 2000-01-20 Tom Tromey <tromey@cygnus.com>
3848 * resolve.cc (StringClass): Removed.
3849 * defineclass.cc (StringClass): Removed.
3851 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
3855 2000-01-19 Tom Tromey <tromey@cygnus.com>
3857 * interpret.cc (PC_REGISTER_ASM): Removed.
3859 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
3860 From Bryce McKinlay.
3862 * All files: Updated copyright to reflect Cygnus purchase.
3864 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
3866 * configure: Rebuilt.
3867 * configure.in: Recognize --disable-interpreter.
3869 2000-01-18 Andrew Haley <aph@cygnus.com>
3871 * name-finder.cc (lookup): Check for dladdr function.
3872 acconfig.h (HAVE_DLADDR): Add.
3873 configure.in: Check for HAVE_DLADDR
3875 include/config.h.in: Rebuilt.
3877 2000-01-17 Andrew Haley <aph@cygnus.com>
3879 * prims.cc (_Jv_RunMain): Set the name of this executable.
3881 2000-01-17 Tom Tromey <tromey@cygnus.com>
3883 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
3884 when backtrace can't be computed.
3886 * configure: Rebuilt.
3887 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
3889 * java/lang/Runtime.java (loadLibraryInternal): Declare.
3890 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
3891 (_Jv_FindClassInCache): Likewise.
3892 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
3893 (findSystemClass): Try to load class from compiled module.
3895 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
3896 (loadLibrary): Likewise.
3897 (lt_preloaded_symbols): Define.
3898 (loadLibraryInternal): New method.
3899 * include/config.h.in: Rebuilt.
3900 * acconfig.h (USE_LTDL): Added.
3901 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
3902 (INCLUDES): Added $(INCLTDL).
3903 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
3904 (libgcj_la_LIBADD): Likewise.
3905 * aclocal.m4, configure: Rebuilt.
3906 * configure.in: Added libltdl support.
3908 2000-01-15 Tom Tromey <tromey@cygnus.com>
3910 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
3912 2000-01-14 Andrew Haley <aph@cygnus.com>
3914 * java/lang/natThrowable.cc: New file.
3916 * java/lang/Throwable.java (fillInStackTrace): Make native.
3917 (printStackTrace): Call native method to do this.
3918 (Throwable): Call fillInStackTrace.
3919 (stackTrace): New variable.
3921 * include/jvm.h: Add _Jv_ThisExecutable functions.
3923 * prims.cc: (_Jv_execName): New variable.
3924 (catch_segv): Call fillInStackTrace.
3926 (_Jv_ThisExecutable): New functions.
3927 (JvRunMain): Set the name of this executable.
3929 * Makefile.am: Add java/lang/natThrowable.cc.
3931 * Makefile.in: Rebuilt.
3933 * acconfig.h: Add HAVE_PROC_SELF_EXE.
3935 * configure.in: Force link with __frame_state_for in
3936 FORCELIBGCCSPEC. Add new checks for backtrace.
3937 * include/config.h.in: Rebuilt.
3939 * name-finder.cc: New file.
3940 * include/name-finder.h: New file.
3942 2000-01-16 Anthony Green <green@cygnus.com>
3944 * java/lang/StringBuffer.java (StringBuffer): Don't special case
3947 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
3949 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
3951 2000-01-13 Tom Tromey <tromey@cygnus.com>
3953 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
3954 not system loader, as initiating loader.
3956 2000-01-11 Tom Tromey <tromey@cygnus.com>
3958 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
3959 HP/UX. From David Scott Urban.
3961 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
3963 * java/lang/natMath.cc (pow): Cast args to `double', not
3966 (IEEEremainder): Likewise.
3967 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
3968 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
3970 2000-01-09 Anthony Green <green@cygnus.com>
3972 * java/lang/natString.cc (init): Test for overflow condition
3973 during out of bounds check.
3974 (getChars): Throw StringIndexOutOfBoundsException, not
3975 ArrayIndexOutOfBoundsException.
3977 (regionMatches): Obey case option during string comparison.
3979 * configure.host (ligcj_interpreter): New variable. Enable
3980 interpreter by default on IA-32.
3981 * configure.in: Examine libgcj_interpreter.
3982 * configure: Rebuilt.
3984 2000-01-07 Tom Tromey <tromey@cygnus.com>
3986 * mauve-libgcj: Don't disable ClassTest.
3988 * java/lang/natClass.cc (getClasses): Wrote.
3990 2000-01-06 Tom Tromey <tromey@cygnus.com>
3992 * java/lang/natClass.cc (_getConstructors): Correctly check
3993 whether method name is the init name.
3994 (getMethod): Look at accflags on method in `klass', not `this'.
3996 2000-01-05 Tom Tromey <tromey@cygnus.com>
3998 * java/lang/natClass.cc (getMethod): Compute offset relative to
3999 `klass's methods table, not `this's table.
4001 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
4002 In unwrapping/widening case, check whether `k' is null, not
4003 whether it is primitive. Initialize `num' from `argelts', not
4004 `paramelts'. Correct create and pass arguments to ffi_call.
4005 Don't let presence of `this' argument affect index used to look in
4007 (COPY): Set appropriate element in `values' vector.
4009 * java/lang/natClass.cc: Include <gcj/method.h>.
4011 * java/lang/Class.h (_getMethods): Correctly declare as private,
4014 * java/lang/Class.h (_getMethods): Declare.
4015 * java/lang/Class.java (_getMethods): Declare.
4016 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
4017 (getDeclaredClasses): Always return empty array.
4018 (_getMethods): New method.
4019 (getMethods): Wrote.
4020 (getDeclaredMethod): Return `rmethod'.
4021 (finit_name): New global.
4022 (getDeclaredMethods): Check for finit_name.
4023 (_getMethods): Likewise.
4024 (getMethod): Only return public methods.
4026 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
4027 jboolean and select correct ffi type on that basis.
4028 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
4029 Constructor call always has `void' return type.
4031 2000-01-04 Tom Tromey <tromey@cygnus.com>
4033 * java/lang/Class.h (getSignature): Updated.
4034 * java/lang/Class.java (getSignature): Updated.
4035 * java/lang/natClass.cc (getSignature): Added `is_constructor'
4037 (getConstructor): Ensure constructor is public.
4038 (_getConstructors): Check for public-ness of constructor when
4039 `declared' is false, not when it is true.
4041 2000-01-04 Warren Levy <warrenl@cygnus.com>
4043 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
4045 (receive): Set the sender's address in the DatagramPacket.
4047 2000-01-04 Tom Tromey <tromey@cygnus.com>
4049 * java/lang/reflect/natConstructor.cc (newInstance): Pass
4050 declaring class as return_type argument to
4051 _Jv_CallNonvirtualMethodA.
4052 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
4053 constructor case, create object and use it as `this' argument.
4054 * java/lang/Class.h (_getConstructors): Declare.
4055 (_getFields): Declare.
4056 * java/lang/Class.java (getConstructors): Wrote.
4057 (_getConstructors): New native method.
4058 (getDeclaredConstructors): Wrote.
4059 (_getFields): Declare new native method.
4060 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
4062 (getMethod): Work correctly when class is primitive.
4063 (getDeclaredMethods): Likewise. Compute offset using `method',
4065 (getDeclaredMethod): Likewise.
4066 (getConstructor): Wrote.
4067 (ConstructorClass): New define.
4068 (getDeclaredConstructor): Wrote.
4069 (_getConstructors): New method.
4070 (_getFields): New method.
4073 * Makefile.in: Rebuilt.
4074 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
4076 * prims.cc: Remove `#pragma implementation'.
4077 * gcj/array.h: Remove `#pragma interface'.
4079 * prims.cc (_Jv_equaln): New function.
4080 * java/lang/Class.java (getSignature): Declare.
4081 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
4082 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
4084 (getSignature): New method.
4085 (getDeclaredMethod): Wrote.
4087 Include StringBuffer.h.
4088 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
4089 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
4091 (getSignature): Declare.
4092 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
4093 (_Jv_equaln): Declare.
4094 (_Jv_CallNonvirtualMethodA): Declare.
4095 * Makefile.in: Rebuilt.
4096 * Makefile.am (nat_source_files): Added natConstructor.cc.
4097 (java/lang/reflect/Constructor.h): New target.
4098 * java/lang/reflect/natConstructor.cc: New file.
4099 * java/lang/reflect/Constructor.java (newInstance): Now native.
4100 (declaringClass): Renamed from decl_class.
4101 (offset): Renamed from index.
4102 (getType): New native method.
4103 (getModifiers): Now native.
4104 (getParameterTypes): Call getType if required.
4105 (hashCode): Include hash code from declaring class.
4106 (modifiers): Removed.
4107 (toString): Call getType if required.
4108 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
4109 * java/lang/reflect/natMethod.cc (hack_call): New method.
4110 Removed `#if 0' around FFI code.
4111 Include <gnu/gcj/RawData.h>.
4112 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
4113 IllegalArgumentException when argument object and class disagree.
4114 (_Jv_GetTypesFromSignature): New function.
4116 (ObjectClass): New define.
4117 (_Jv_CallNonvirtualMethodA): New function.
4118 * java/lang/reflect/Method.java (hack_trampoline): New method.
4119 (hack_call): New native method.