Removed bogus ChangeLog entry
[gcc.git] / libjava / ChangeLog
1 2001-01-12 Tom Tromey <tromey@redhat.com>
2
3 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
4 Wrote.
5 (setCursor): Wrote.
6 Include Cursor.h.
7 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
8 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
9 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
10 * gnu/awt/gtk/GtkLabelPeer.java: New file.
11 * gnu/awt/gtk/GtkButtonPeer.java: New file.
12
13 * java/lang/natSystem.cc: Include locale.h if it exists.
14 * configure: Rebuilt.
15 * configure.in: Check for locale.h.
16
17 2001-01-11 Tom Tromey <tromey@redhat.com>
18
19 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
20 (Cursor(int), getPredefinedCursor): Throw exception if argument
21 invalid.
22
23 2001-01-03 Tom Tromey <tromey@redhat.com>
24
25 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
26 (getLocationOnScreen): Wrote.
27
28 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
29
30 * Makefile.am: Re-enable dependencies.
31 * Makefile.in: Rebuilt.
32
33 2001-01-10 Warren Levy <warrenl@redhat.com>
34
35 * java/math/BigDecimal.java (divide): Fixed comment.
36
37 2001-01-10 Warren Levy <warrenl@redhat.com>
38
39 Fix for PR libgcj/1596:
40 * java/math/BigDecimal.java (divide): Check newScale for validity.
41 Ensure that BigInteger.pow() is called with a non-negative value.
42 (setScale (int)): New public method.
43 (setScale (int,int)): New public method.
44
45 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
46
47 Fix for PR libgcj/1338:
48 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
49 commentChar. Fixed typos in comments.
50
51 2001-01-08 Warren Levy <warrenl@redhat.com>
52
53 Fix for PR libgcj/1411:
54 * Makefile.am: Removed java/util/natTimeZone.cc.
55 * Makefile.in: Rebuilt.
56 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
57 missing localized timezone names.
58 * java/lang/System.java (getDefaultTimeZoneId): New private method.
59 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
60 (init_properties): Set user.timezone property.
61 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
62 default timezone names; removed non-standard ones. Use standard
63 ID names per JCL.
64 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
65 (UTC): Ditto.
66 * java/util/TimeZone.java: Add standard ID names per JCL; removed
67 non-standard ones.
68 (getDefaultTimeZoneId): Removed.
69 (zoneGMT): Removed.
70 (getDefaultTimeZoneId): Removed.
71 * java/util/natTimeZone.cc: Removed.
72
73 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
74
75 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
76 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
77 (_Jv_GetArrayClass): New inline function.
78 (arrayclass): New field.
79 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
80 _Jv_GetArrayElementFromElementType.
81 (_Jv_NewPrimArray): Ditto.
82 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
83 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
84 Set Modifier::ABSTRACT.
85 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
86 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
87 Now synchronized. Array classes are now referenced from
88 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
89 Set array classes' accessibility flags correctly. Optimize so that
90 all array classes share the same IDT.
91 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
92 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
93 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
94 in superclasses from overwriting classes own fields.
95 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
96 Modifier::isAbstract().
97 (null_idt): New static field.
98 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
99 no interfaces.
100 (_Jv_IndexOf): Made inline.
101 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
102
103 2001-01-08 Tom Tromey <tromey@redhat.com>
104
105 Fix for PR java/1586:
106 * Makefile.in: Rebuilt.
107 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
108
109 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
110
111 * Makefile.am: Use the new "-M -MF" option for generating dependencies
112 from the c++ compiler.
113 * Makefile.in: Rebuilt.
114
115 2001-01-07 Anthony Green <green@redhat.com>
116
117 * Makefile.am (texinfo): Add texinfo target for generating texinfo
118 documentation.
119 * Makefile.in: Rebuilt.
120
121 * scripts/TexinfoDoclet.java: New file.
122
123 * doc/java-applet.texi, doc/java-lang-reflect.texi,
124 doc/java-awt-color.texi, doc/java-lang.texi,
125 doc/java-awt-datatransfer.texi, doc/java-math.texi,
126 doc/java-awt-event.texi, doc/java-net.texi,
127 doc/java-awt-geom.texi, doc/java-security-spec.texi,
128 doc/java-awt-image.texi, doc/java-security.texi,
129 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
130 doc/java-text.texi, doc/java-beans-beancontext.texi,
131 doc/java-util-jar.texi, doc/java-beans.texi,
132 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
133 doc/java-lang-ref.texi: New files.
134
135 2001-01-07 Anthony Green <green@redhat.com>
136
137 * java/net/URLConnection.java (setDoOutput): URLConnection's may
138 be used for both input and output, so don't clear doInput.
139
140 * java/lang/StringBuffer.java: Fix comments.
141
142 2001-01-06 Anthony Green <green@redhat.com>
143
144 * java/beans/PropertyDescriptor.java: Fix comment.
145 * java/io/PushbackReader.java: Fix comment.
146 * java/io/ObjectStreamClass.java: Fix comment.
147 * java/io/DataInputStream.java: Fix comment.
148 * java/io/PipedInputStream.java: Fix comments.
149 * java/io/PipedReader.java: Fix comments.
150 * java/sql/DatabaseMetaData.java: Fix comments.
151
152 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
153
154 * java/io/PipedReader: Synchronize on "lock" instead of this.
155
156 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
157
158 * java/lang/Thread.java: Update comment.
159
160 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
161 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
162 * java/io/PipedReader: New implementation based on new
163 PipedInputStream.
164 * java/io/PipedWriter: Updated to match new PipedReader.
165
166 2001-01-03 Tom Tromey <tromey@redhat.com>
167
168 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
169 (getViewportSize): Insets include scrollbar size.
170 (doLayout): Finished.
171 (getScrollPosition): Wrote.
172 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
173
174 2001-01-02 Tom Tromey <tromey@redhat.com>
175
176 * java/awt/ScrollPane.java: Wrote.
177 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
178 method.
179
180 * java/awt/Panel.java (Panel()): Fixed.
181
182 * java/awt/Component.java (isShowing): Return false if no peer
183 exists, and true if component is visible and no parent exists.
184 (getLocationOnScreen): Wrote.
185 (getPreferredSize): Removed FIXME comment.
186 (getMinimumSize): Likewise.
187 (getAlignmentX, getAlignmentY): Wrote.
188 (list): Wrote.
189 (requestFocus): Wrote.
190 (transferFocus): Wrote.
191 (findNextFocusComponent): New method.
192 (hasFocus()): Wrote.
193 (checkImage): Wrote.
194 (enableEvents): Call setEventMask on the peer.
195
196 * java/awt/Container.java (list): Use super.list() to print self.
197 (findNextFocusComponent): New method.
198 (setLayout): Call invalidate.
199 (findComponentAt): Wrote.
200
201 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
202
203 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
204 the correct versions of various linuxthreads functions get linked.
205 * Makefile.in: Rebuilt.
206 * java/lang/natThread.cc (finalize_native): New static function. Call
207 _Jv_ThreadDestroyData.
208 (initialize_native): Register finalizer for "data".
209 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
210 (_Jv_ThreadDestroyData): New prototype.
211 * include/win32-threads.h: Ditto.
212 * include/no-threads.h: Ditto.
213 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
214 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
215 move mutex and condition variable destroy code from:
216 (really_start): ...here.
217 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
218 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
219 (_Jv_ThreadDestroyData): Implemented.
220 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
221 (_Jv_AllocArray): Ditto.
222
223 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
224
225 * java/sql/DriverManager.java (getConnection): Don't set user/password
226 properties if null.
227
228 2000-12-27 Warren Levy <warrenl@redhat.com>
229
230 Fix for PR libgcj/1358:
231 * java/lang/System.java: Update Copyright date properly.
232 * java/util/Calendar.java: Fix typo in comment.
233 (set): Set 24-hour clock hour instead of 12-hour clock hour.
234 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
235 initialize times. Spec says to set H:M:S values to zero only if
236 a date is given.
237 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
238 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
239 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
240 timezones and GMT offsets, being careful to account for units of
241 milliseconds vs. seconds.
242
243 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
244
245 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
246 not be assigned to Object.
247
248 Fix for PR libgcj/1516:
249 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
250 Add boolean entry.
251 (can_widen): Declared inline. Remove redundant checks for void
252 arguments and char->short conversion. Add special case for boolean
253 conversions.
254 (ffi_type): Declared inline.
255 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
256
257 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
258
259 * java/sql/SQLWarning.java: Fixed typo in comment.
260
261 2000-12-26 Tom Tromey <tromey@redhat.com>
262
263 * java/awt/MenuItem.java (paramString): Now protected.
264
265 * java/awt/MenuShortcut.java: Implements Serializable.
266
267 * java/awt/MenuBar.java: Rewrote from scratch.
268
269 * java/awt/MenuComponent.java (removeNotify): Wrote.
270 Implements Serializable.
271
272 * java/awt/GridBagConstraints.java (GridBagConstraints): New
273 constructor.
274
275 * java/awt/CheckboxMenuItem.java: Wrote.
276
277 2000-12-25 Tom Tromey <tromey@redhat.com>
278
279 * java/awt/MenuContainer.java: Fixed typo.
280
281 * Makefile.in: Rebuilt.
282 * Makefile.am (awt_java_source_files): Added SystemColor.java.
283 * java/awt/SystemColor.java: New file.
284
285 * java/awt/Color.java (rgba): Now package-private.
286
287 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
288
289 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
290 getComponent.
291
292 * java/awt/MenuItem.java (addNotify): New method.
293 (MenuItem(String,MenuShortcut)): New constructor.
294 (setLabel): Notify peer of change.
295 (setEnabled): Likewise.
296
297 * java/awt/GridLayout.java (toString): New method.
298
299 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
300 (FlowLayout): Check for LEADING and TRAILING.
301 (setAlignment): Likewise.
302 (layoutContainer): Handle component orientation.
303
304 * java/awt/Component.java (orientatin): New field.
305 (setComponentOrientation): Wrote.
306 (getComponentOrientation): Wrote.
307
308 * java/awt/Event.java (Event): Implements Serializable.
309 (consumed): New field for serialization.
310 * java/awt/Dimension.java (Dimension): Implements Serializable.
311 * java/awt/Cursor.java (Cursor): Implements Serializable.
312 * java/awt/Container.java (Container): No longer abstract.
313
314 * java/awt/Choice.java: Wrote.
315 * java/awt/Checkbox.java: Wrote.
316 * java/awt/ItemSelectable.java: Documented.
317 * java/awt/CheckboxGroup.java: Wrote.
318
319 * java/awt/CardLayout.java (layoutContainer): Directly use fields
320 in other classes.
321 (getSize): Likewise.
322
323 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
324
325 * java/io/FileDescriptor.java: Initialize fd to -1.
326 Remove default constructor.
327
328 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
329
330 * java/lang/mprec.h: Change C9X reference to refer to C99.
331
332 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
333
334 * java/lang/Throwable.java (trace_enabled): New static field.
335 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
336 trace_enabled not set.
337 * prims.cc (main_init): Turn off trace_enabled while creating
338 default exception objects.
339
340 2000-12-21 Tom Tromey <tromey@redhat.com>
341
342 * java/beans/PropertyChangeListener.java: Extends EventListener.
343 * java/beans/VetoableChangeListener.java: Extends EventListener.
344
345 * java/util/zip/Deflater.java (update, init): Now private.
346
347 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
348
349 * java/util/BasicMapEntry.java: Re-added.
350 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
351 (putAll): Test for BasicMapEntry.
352 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
353 (putAll): Test for BasicMapEntry.
354 Change references from `HashMap.Entry' to `Entry' in various places.
355 * Makefile.am: Add BasicMapEntry.java.
356 * Makefile.in: Rebuilt.
357
358 2000-12-18 Warren Levy <warrenl@redhat.com>
359
360 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
361 need to set timezone to a valid non-null value. Partial fix for
362 PR 331.
363
364 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
365
366 * java/awt/Window.java (addNotify): Remove peer casting hack now that
367 gcj/312 is fixed.
368 * java/awt/Button.java (addNotify): Likewise.
369 * java/awt/Label.java (addNotify): Likewise.
370 * java/awt/Panel.java (addNotify): Likewise.
371 * java/awt/Scrollbar.java (addNotify): Likewise.
372 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
373 Remove redundant null checks.
374
375 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
376
377 * COPYING: Update to current
378 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
379 to 19yy as example year in copyright notice).
380
381 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
382
383 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
384 end-of-stream if avail_in is 0.
385
386 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
387
388 * java/util/ArrayList.java (data): Declare transient.
389 (serialPersistantFields): Removed.
390 (readObject): Use defaultReadObject(), not readFields().
391 (writeObject): Use defaultWriteObject(), not writeFields().
392
393 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
394
395 * java/util/Hashtable.java (put): Remove `last' variable.
396 Link new entry to head of list.
397 * java/util/HashMap.java (put): Ditto.
398
399 2000-12-15 Tom Tromey <tromey@redhat.com>
400
401 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
402 loader to Class.forName.
403
404 2000-12-14 Tom Tromey <tromey@redhat.com>
405
406 * java/util/ResourceBundle.java
407 (getBundle(String,Locale,ClassLoader)): New method.
408 (trySomeGetBundle): Added `loader' argument.
409 (partialGetBundle): Likewise.
410
411 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
412 maximumFractionDigits, maximumIntegerDigits,
413 minimumFractionDigits, minimumIntegerDigits): Now
414 package-private.
415
416 * java/lang/Thread.java (checkAccess): Now final.
417
418 * java/lang/RuntimePermission.java: Class now final.
419
420 * java/io/StringWriter.java (StringWriter(int)): Now public.
421
422 * java/io/SerializablePermission.java (legal_names): Now private.
423
424 * java/lang/Character.java: Updated UnicodeBlock constants.
425 * scripts/blocks.pl: Special case private use and surrogate
426 areas. Updated URL.
427
428 2000-12-12 Tom Tromey <tromey@redhat.com>
429
430 * Makefile.in: Rebuilt.
431 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
432 option.
433 (GCJCOMPILE): Use it.
434 (JAVAC): Likewise.
435
436 2000-12-11 Tom Tromey <tromey@redhat.com>
437
438 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
439 New static final fields.
440
441 * scripts/classes.pl (scan): Skip lines with leading `*'.
442 Fix for PR libgcj/378.
443
444 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
445
446 * configure.in: Remove check for -fuse-divide-subroutine.
447 * configure: Rebuilt.
448
449 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
450
451 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
452
453 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
454
455 * Makefile.am: Add HashSet.java and java/lang/ref classes.
456 Remove BasicMapEntry.java and Bucket.java.
457 * Makefile.in: Rebuilt.
458 * java/util/HashMap.java: Rewritten.
459 * java/util/HashSet.java: Imported from classpath.
460 * java/util/WeakHashMap.java: Imported from classpath.
461 * java/util/Hashtable.java: Rewritten based on new HashMap code.
462 * java/util/Bucket.java: Deleted.
463 * java/util/BasicMapEntry.java: Deleted.
464 * java/util/Collections.java (search): Use a for-loop, not iterator
465 hasNext().
466 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
467 of elements in source.
468 (max): Use a for-loop.
469 (min): Ditto.
470 (reverse): Keep track of positions instead of using Iterator's
471 nextIndex() and previousIndex().
472 (shuffle(List)): Initialize defaultRandom if required using
473 double-check thread safety idiom. Call two-argument shuffle method
474 using defaultRandom.
475 (defaultRandom): New field.
476 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
477 using previousIndex() and nextIndex().
478 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
479 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
480 * java/util/AbstractMap.java (toString): Use StringBuffer.
481 * java/lang/ref/PhantomReference.java: Imported from classpath.
482 * java/lang/ref/SoftReference.java: Ditto.
483 * java/lang/ref/Reference.java: Ditto.
484 * java/lang/ref/WeakReference.java: Ditto.
485 * java/lang/ref/ReferenceQueue.java: Ditto.
486
487 2000-12-10 Richard Henderson <rth@redhat.com>
488
489 * configure.host: Recognize alpha*-*, not alphaev6-*.
490
491 2000-12-09 Anthony Green <green@redhat.com>
492
493 * configure.host: Enable interpreter for Alpha.
494
495 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
496
497 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
498 (ZIP): Points at fastjar instead of zip.
499 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
500 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
501 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
502 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
503 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
504 ($(x_java_source_files:.java=.class):): Likewise.
505 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
506 fastar's flags.
507 (CLEANFILES): libgcj.jar replaces libgcj.zip.
508 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
509 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
510 java/lang/String.h:, java/lang/reflect/Constructor.h:,
511 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
512 gnu/gcj/runtime/VMClassLoader.h:,
513 java/io/ObjectInputStream$$GetField.h:,
514 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
515 (Makefile.in): Rebuilt.
516
517 2000-12-08 Tom Tromey <tromey@redhat.com>
518
519 From Phil Edwards:
520 * configure: Rebuilt.
521 * configure.in: Use echo, not `:', to create .d files.
522
523 2000-12-08 Warren Levy <warrenl@redhat.com>
524
525 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
526 NullPointerException so proper check of offset can be done.
527
528 2000-12-08 Warren Levy <warrenl@redhat.com>
529
530 * java/io/FileInputStream.java (close): Check if the fd is valid.
531 * java/io/RandomAccessFile.java (close): Ditto.
532 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
533 * java/net/PlainSocketImpl.java (close): Ditto.
534
535 2000-12-06 Tom Tromey <tromey@redhat.com>
536
537 * java/awt/GridBagConstraints.java: Filled in values for static
538 final fields.
539
540 * java/util/BitSet.java: Updated copyright notice.
541
542 * Makefile.in: Rebuilt.
543 * Makefile.am (awt_java_source_files): Added new file.
544 * java/awt/GridBagConstraints.java: New file.
545
546 2000-12-05 Tom Tromey <tromey@redhat.com>
547
548 * java/text/Collator.java (decomposeCharacter, decmp, strength):
549 Now package-private, not protected.
550 * java/text/DateFormatSymbols.java (equals): Now private.
551 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
552 * java/util/BitSet.java: Class no longer final.
553
554 2000-12-04 Warren Levy <warrenl@redhat.com>
555
556 * java/util/TimeZone.java (getAvailableIDs): Activated commented
557 out code dependent on compiler and library changes.
558
559 2000-12-04 Warren Levy <warrenl@redhat.com>
560
561 * java/io/FilePermission.java: Made class final per spec.
562 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
563 method name to match spec (fixed typo).
564 * java/util/LinkedList.java: Implements List.
565
566 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
567
568 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
569 Edgar Villanueva <edgarvil@home.com>.
570
571 2000-12-03 Tom Tromey <tromey@redhat.com>
572
573 * java/awt/geom/Point2D.java: Added protected constructor.
574 (equals): New method.
575 (Float.setLocation(float,float)): New method.
576 * java/awt/geom/Dimension2D.java: Added protected constructor.
577 * java/awt/geom/AffineTransform.java: Made all constants public.
578 (concatenate): Fixed typo in name.
579 * java/awt/event/WindowAdapter.java: Class now abstract.
580 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
581 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
582 AWTEvent.
583
584 * java/awt/AWTError.java: Extend Error, not
585 IllegalStateException.
586
587 * Makefile.in: Rebuilt.
588 * Makefile.am (awt_java_source_files): Added new file.
589 * java/awt/geom/RoundRectangle2D.java: New file.
590
591 * Makefile.in: Rebuilt.
592 * Makefile.am (awt_java_source_files): Added new file.
593 * java/awt/FlowLayout.java: New file.
594
595 * Makefile.in: Rebuilt.
596 * Makefile.am (awt_java_source_files): Added new file.
597 * java/awt/GridLayout.java: New file.
598
599 2000-12-02 Tom Tromey <tromey@redhat.com>
600
601 * Makefile.in: Rebuilt.
602 * Makefile.am (awt_java_source_files): Added new files.
603 * java/awt/CardLayout.java: New file.
604 * java/awt/AWTPermission.java: New file.
605
606 2000-12-01 Tom Tromey <tromey@redhat.com>
607
608 * java/util/Vector.java (insertElementAt): Unconditionally
609 increment elementCount.
610 (removeRange): Clear unused slots in vector.
611
612 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
613
614 * java/lang/natMath.cc: Declare fabsf() function.
615 * java/lang/mprec.h: Don't include math.h.
616 * java/lang/dtoa.c: Include string.h.
617 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
618 compiler warning.
619
620 From Adam Welc <welc@cs.purdue.edu>:
621 * java/util/LinkedList.java (removeFirst): Update `first' field.
622 Handle the last == first case.
623 (removeLast): Update `last' field. Handle the last == first case.
624
625 2000-12-01 Warren Levy <warrenl@cygnus.com>
626
627 * Makefile.am: Added entries for new java.sql modules.
628 * Makefile.in: Rebuilt.
629
630 2000-12-01 Warren Levy <warrenl@cygnus.com>
631
632 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
633 that aren't quite 1.2 compatible yet.
634
635 2000-11-30 Warren Levy <warrenl@cygnus.com>
636
637 * java/sql/Array.java: New file from classpath.
638 * java/sql/BatchUpdateException.java: Ditto.
639 * java/sql/Blob.java: Ditto.
640 * java/sql/Clob.java: Ditto.
641 * java/sql/Ref.java: Ditto.
642 * java/sql/SQLData.java: Ditto.
643 * java/sql/SQLInput.java: Ditto.
644 * java/sql/SQLOutput.java: Ditto.
645 * java/sql/Struct.java: Ditto.
646 * java/sql/CallableStatement.java: Merged file from claspath.
647 * java/sql/Connection.java: Ditto.
648 * java/sql/DataTruncation.java: Ditto.
649 * java/sql/DatabaseMetaData.java: Ditto.
650 * java/sql/DriverManager.java: Ditto.
651 * java/sql/PreparedStatement.java: Ditto.
652 * java/sql/ResultSet.java: Ditto.
653 * java/sql/ResultSetMetaData.java: Ditto.
654 * java/sql/SQLException.java: Ditto.
655 * java/sql/SQLWarning.java: Ditto.
656 * java/sql/Statement.java: Ditto.
657 * java/sql/Types.java: Ditto.
658
659 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
660
661 * java/lang/natSystem.cc (init_properties): Set user.language and
662 user.region.
663 * configure.in: Check for setlocale.
664 * configure: Rebuilt.
665 * include/config.h.in: Rebuilt.
666
667 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
668 the infate() call didn't deliver any output. Throw a ZipException if
669 the needsDictionary() call returns true.
670 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
671 * java/io/InputStreamReader: Use the default buffer size for the
672 contained BufferedInputStream.
673
674 2000-11-28 Warren Levy <warrenl@cygnus.com>
675
676 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
677 more time zone entries.
678 * java/text/SimpleDateFormat.java (format): Added case for
679 TIMEZONE_FIELD.
680
681 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
682
683 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
684 directly rather than read() in all cases. Make primitive read
685 implementations more efficient, as defined in JDK online docs.
686 (skipBytes): Behave like the JDK's implementation.
687 * java/io/BufferedReader.java: Merge classpath docs. Check for a
688 closed stream with checkStatus() whenever an IOException can be
689 thrown.
690 (checkStatus): New private method.
691
692 2000-11-27 Warren Levy <warrenl@cygnus.com>
693
694 * Makefile.am: Added natTimeZone.cc.
695 * Makefile.in: Rebuilt.
696 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
697 * java/text/DateFormatSymbols.java (ampms): Made package private.
698 (eras): Made package private.
699 (months): Made package private.
700 (shortMonths): Made package private.
701 (shortWeekdays): Made package private.
702 (weekdays): Made package private.
703 (formatPrefixes): New private field.
704 (localPatternCharsDefault): Made private.
705 (dateFormats): New package private field.
706 (timeFormats): New package private field.
707 (formatsForKey): New private method.
708 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
709 (DateFormatSymbols(DateFormatSymbols)): Ditto.
710 * java/text/SimpleDateFormat.java: Merged with Classpath.
711 * java/util/TimeZone.java: Merged with Classpath.
712 * java/util/natTimeZone.cc: New file.
713
714 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
715
716 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
717 (addElement): Don't increment elementCount twice. Doh.
718 * java/util/ArrayList.java (add): Only call ensureCapacity if the
719 array needs to be expanded.
720 (addAll): Ditto.
721 * java/util/Collections.java (UnmodifiableCollection): Implement
722 toString().
723 (UnmodifiableList): Throw UnsupportedOperationException from
724 modification methods. Set `l' from the one-parameter constructor.
725 (UnmodifiableMap): Implement toString().
726 (SynchronizedCollection): Ditto.
727 (SynchronizedList): Set `l' from the one-parameter constructor.
728 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
729 (SynchronizedMap): Implement toString().
730
731 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
732
733 * javax/naming/NameParser.java,
734 javax/naming/directory/AttributeInUseException.java,
735 javax/naming/directory/AttributeModificationException.java,
736 javax/naming/directory/InvalidAttributeIdentifierException.java,
737 javax/naming/directory/InvalidAttributesException.java,
738 javax/naming/directory/InvalidAttributeValueException.java,
739 javax/naming/directory/InvalidSearchControlsException.java,
740 javax/naming/directory/InvalidSearchFilterException.java,
741 javax/naming/directory/NoSuchAttributeException.java,
742 javax/naming/directory/SchemaViolationException.java: New files.
743
744 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
745
746 * javax/naming/InitialContext.java (rebind): Implement.
747 (unbind): Implement.
748 (rename): Implement.
749 (list): Implement.
750 (listBindings): Implement.
751 (destroySubcontext): Implement.
752 (createSubcontext): Implement.
753 (lookupLink): Implement.
754 (getNameParser): Implement.
755 (composeName): Implement.
756 (addToEnvironment): Implement.
757
758 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
759
760 * javax/naming/AuthenticationException.java,
761 javax/naming/AuthenticationNotSupportedException.java,
762 javax/naming/CannotProceedException.java,
763 javax/naming/CommunicationException.java,
764 javax/naming/ConfigurationException.java,
765 javax/naming/ContextNotEmptyException.java,
766 javax/naming/InsufficientResourcesException.java,
767 javax/naming/InterruptedNamingException.java,
768 javax/naming/InvalidNameException.java,
769 javax/naming/LimitExceededException.java,
770 javax/naming/LinkException.java,
771 javax/naming/LinkLoopException.java,
772 javax/naming/MalformedLinkException.java,
773 javax/naming/NameAlreadyBoundException.java,
774 javax/naming/NameNotFoundException.java,
775 javax/naming/NamingSecurityException.java,
776 javax/naming/NoPermissionException.java,
777 javax/naming/NotContextException.java,
778 javax/naming/PartialResultException.java,
779 javax/naming/ReferralException.java,
780 javax/naming/ServiceUnavailableException.java,
781 javax/naming/SizeLimitExceededException.java,
782 javax/naming/TimeLimitExceededException.java: New files.
783
784 * javax/naming/Name.java (clone): New method.
785 (compareTo): New method.
786 (isEmpty): New method.
787 (getAll): New method.
788 (getPrefix): New method.
789 (getSuffix): New method.
790 (startsWith): New method.
791 (endsWith): New method.
792 (addAll): New method.
793 (addAll): New method.
794 (add): New method.
795 (add): New method.
796 (remove): New method.
797
798 * javax/naming/Context.java (lookup): New method.
799 (rebind): New method.
800 (unbind): New method.
801 (rename): New method.
802 (list): New method.
803 (listBindings): New method.
804 (destroySubcontext): New method.
805 (createSubcontext): New method.
806 (lookupLink): New method.
807 (getNameParser): New method.
808 (composeName): New method.
809 (addToEnvironment): New method.
810 (removeFromEnvironment): New method.
811 (getEnvironment): New method.
812 (close): New method.
813 (getNameInNamespace): New method.
814
815 * javax/naming/InitialContext.java (lookup): New method.
816 (rebind): New method.
817 (unbind): New method.
818 (rename): New method.
819 (list): New method.
820 (listBindings): New method.
821 (destroySubcontext): New method.
822 (createSubcontext): New method.
823 (lookupLink): New method.
824 (getNameParser): New method.
825 (composeName): New method.
826 (addToEnvironment): New method.
827 (removeFromEnvironment): New method.
828 (getEnvironment): New method.
829 (close): New method.
830 (getNameInNamespace): New method.
831
832 2000-11-26 Tom Tromey <tromey@cygnus.com>
833
834 * Makefile.in: Rebuilt.
835 * Makefile.am (core_java_source_files): Added
836 RuntimePermission.java.
837 * java/lang/RuntimePermission.java: Imported from Classpath.
838 * java/lang/Thread.java (getContextClassLoader): Now
839 synchronized. Added security code.
840 (setContextClassLoader): Likewise.
841
842 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
843 length field of array.
844 (_Jv_NewPrimArray): Likewise.
845 * gcj/array.h (__JArray): `length' field now const. Added
846 constructor.
847
848 2000-11-26 Anthony Green <green@redhat.com>
849
850 * javax/naming/spi/NamingManager.java,
851 javax/naming/spi/ObjectFactory.java,
852 javax/naming/spi/InitialContextFactory.java,
853 javax/naming/spi/InitialContextFactoryBuilder.java,
854 javax/naming/RefAddr.java, javax/naming/Reference.java,
855 javax/naming/NamingException.java, javax/naming/Context.java,
856 javax/naming/Referenceable.java,
857 javax/naming/directory/InitialDirContext.java,
858 javax/naming/directory/DirContext.java,
859 javax/naming/directory/Attributes.java,
860 javax/naming/directory/Attribute.java,
861 javax/naming/StringRefAddr.java,
862 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
863 javax/naming/InitialContext.java,
864 javax/naming/NoInitialContextException.java: New files.
865
866 2000-11-25 Anthony Green <green@redhat.com>
867
868 * prims.cc (_Jv_NewObjectArray): Undo placement change.
869 (_Jv_NewPrimArray): Likewise.
870 * gcj/array.h (__JArray): Undo const change. Removed constructor.
871 (class JArray): Removed constructor.
872
873 * java/lang/Thread.java (context_class_loader): New private data.
874 (getContextClassLoader): New method.
875 (setContextClassLoader): New method.
876 (Thread): Initialize context_class_loader.
877
878 * java/net/URLClassLoader.java: Import java.util.Enumeration.
879 (getResource): Rename to findResource.
880 (findResource): New method. Used to be getResource.
881 (getResourceAsStream): Deleted.
882 (jarFileize): Extracted logic from URLClassLoader constructor into
883 this new private method.
884 (addURL): New protected method.
885 (URLClassLoader): Call jarFileize. Use addElement instead of
886 insertElementAt.
887 (findResources): New method.
888
889 * java/lang/ClassLoader.java: Import java.util.Enumeration.
890 (getResource): Implement correct logic.
891 (findResource): New method.
892 (getResources): New method.
893 (findClass): Create a ClassNotFoundException with the name of the
894 class rather than nothing at all.
895 (defineClass) Only throw ClassFormatError.
896
897 * java/lang/Class.java (forName): New method.
898 * java/lang/Class.h (forName): New method.
899 * java/lang/natClass.cc (forName): New method.
900
901 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
902
903 * java/lang/System.java (setProperties): Only call init_properties()
904 if properties is null.
905 (getProperties): Ditto.
906 (getProperty): Ditto.
907 (setProperty): Call init_properties if properties are null.
908 (prop_init): Remove field.
909 * java/lang/natSystem.cc (init_properties): Synchronize the entire
910 method. Check for null properties after synchronizing instead of
911 prop_init flag. Set the properties field last for thread safety.
912
913 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
914 test for gcj.dumpobjects property and enable object stream dumping
915 if it is set.
916 (dumpElement): No longer native.
917 (dumpElementln): Ditto.
918 (setDump): Do not define.
919 * java/io/natObjectInputStream.cc (dumpElement): Removed.
920 (dumpElementln): Removed.
921 (setDump): Removed.
922
923 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
924
925 * configure: Rebuilt.
926 * Makefile.in: Rebuilt.
927 * Makefile.am (built_java_source_files): Add Configuration.java.
928 * configure.in: Add Configuration.java to CONFIG_FILES. Set
929 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
930 Create `gnu' directory in the build tree.
931 * gnu/classpath/Configuration.java.in: New file.
932
933 2000-11-24 Tom Tromey <tromey@cygnus.com>
934
935 * prims.cc (_Jv_NewObjectArray): Use placement new to create
936 array.
937 (_Jv_NewPrimArray): Likewise.
938 Include <new>.
939 * gcj/array.h (__JArray): `length' field now const. Added
940 constructor.
941 (class JArray): Added constructor.
942
943 2000-11-23 Mark Wielaard <mark@klomp.org>
944
945 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
946 lookup.
947
948 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
949
950 * java/util/Vector.java: Improve exception messages.
951 (Vector): Check initialCapacity for IllegalArgumentException.
952 (tromToSize): Don't check for elementCount == elementData.length
953 case.
954 (toArray): Don't try to set null marker if target array is the same
955 length as the vector.
956
957 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
958
959 * Makefile.in: Rebuilt.
960 * Makefile.am (core_java_source_files): Added Collections.java.
961 * java/util/List.java: Merged from classpath.
962 * java/util/Vector.java: Ditto.
963 * java/util/Collections.java: From classpath.
964 * java/util/ArrayList.java (addAll(Collection)): Call
965 addAll(int,Collection) instead of duplicating code.
966 (indexOf): Clean up int initialization.
967 (clear): Set cleared array entries to null, to allow garbage
968 collection.
969 * java/util/List.java: Minor formatting fixes.
970 * java/util/SimpleTimeZone.java: ditto.
971
972 2000-11-18 Tom Tromey <tromey@cygnus.com>
973
974 * Makefile.in: Rebuilt.
975 * Makefile.am (core_java_source_files): Added new files.
976 * java/lang/reflect/ReflectPermission.java: New class.
977 * java/io/FileFilter.java: From Classpath
978 * java/io/FilePermission.java: From Classpath.
979
980 2000-11-17 Tom Tromey <tromey@cygnus.com>
981
982 * java/lang/reflect/AccessibleObject.java (isAccessible,
983 setAccessible): Now public.
984
985 * java/lang/natString.cc: Include Locale.h.
986 (toUpperCase): Added `locale' argument. Handle locale
987 sensitivity.
988 (toLowerCase): Added `locale' argument. Handle locale
989 sensitivity.
990 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
991 CAPITAL_I): New defines.
992 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
993 final.
994 Import Locale.
995 (toUpperCase, toLowerCase): New methods. Variants which accept
996 locale now native.
997
998 * java/lang/ExceptionInInitializerError.java (printStackTrace):
999 New methods.
1000
1001 * java/util/PropertyPermission.java: Re-merged from Classpath.
1002
1003 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1004 New method.
1005 * java/text/StringCharacterIterator.java: Reindented.
1006 (setText): New method.
1007
1008 2000-11-17 Mark Wielaard <mark@klomp.org>
1009
1010 Merge with Classpath (changes by Bryce McKinlay)
1011 * java/util/jar/*.java: Reformat all to unofficial standard coding
1012 style. No changes of substance.
1013
1014 2000-11-17 Mark Wielaard <mark@klomp.org>
1015
1016 * java/util/zip/*.java: Javadoc updates.
1017
1018 2000-11-17 Tom Tromey <tromey@cygnus.com>
1019
1020 * java/text/CollationKey.java: Implement Comparable.
1021 (compareTo(Object)): New method.
1022 * java/text/Collator.java (compare(Object,Object)): New method.
1023 Implement Comparator.
1024
1025 * java/util/zip/InflaterInputStream.java (available): New method.
1026 (close): New method.
1027 (read, available, skip, fill): Throw exception if stream closed.
1028 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1029 getNextEntry): Throw exception if closed.
1030
1031 2000-11-16 Tom Tromey <tromey@cygnus.com>
1032
1033 * java/io/PushbackReader.java: Merged with Classpath.
1034 * java/util/Arrays.java: Updated from Classpath.
1035
1036 * scripts/blocks.pl: New file.
1037 * java/lang/Character.java (Subset): New class.
1038 (UnicodeBlock): New class.
1039
1040 * java/lang/Math.java (toDegrees, toRadians): New methods.
1041
1042 * java/lang/Float.java: Implement Comparable.
1043 (compareTo): New methods.
1044 * java/lang/Double.java: Implement Comparable.
1045 (compareTo): New methods.
1046
1047 2000-11-16 Warren Levy <warrenl@cygnus.com>
1048
1049 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1050 transient.
1051 (listeners): Made transient.
1052 (source): Renamed from 'bean'.
1053 (children): New field for serialization.
1054 (propertyChangeSupportSerializedDataVersion): Ditto.
1055 (serialVersionUID): Ditto.
1056 (writeObject): New serialization method.
1057 (readObject): New serialization method.
1058 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1059 transient.
1060 (listeners): Made transient.
1061 (source): Renamed from 'bean'.
1062 (children): New field for serialization.
1063 (vetoableChangeSupportSerializedDataVersion): Ditto.
1064 (serialVersionUID): Ditto.
1065 (writeObject): New serialization method.
1066 (readObject): New serialization method.
1067 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1068 to allow constructor to have a return type (i.e. the class that the
1069 constructor constructs).
1070
1071 2000-11-14 Tom Tromey <tromey@cygnus.com>
1072
1073 * Makefile.in: Rebuilt.
1074 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1075 and -k not given.
1076
1077 2000-11-02 Warren Levy <warrenl@cygnus.com>
1078
1079 * java/io/ObjectInputStream.java (readObject): Added code to
1080 conditionally dump out the serialized data.
1081 Handle ENDBLOCKDATA case a bit more gracefully since the current
1082 behavior doesn't seem to work as expected.
1083 (readStreamHeader): Added code for serialized data dumper.
1084 (readNextBlock): Ditto.
1085 (readFields): Ditto.
1086 (dump): New private static field for turning on/off dumper.
1087 (setDump): New native method.
1088 (dumpElement): New native method.
1089 (dumpElementln): New native method.
1090 * java/io/natObjectInputStream.cc (setDump): New method.
1091 (dumpElement): New method.
1092 (dumpElementln): New method.
1093
1094 2000-11-02 Warren Levy <warrenl@cygnus.com>
1095
1096 * java/net/InetAddress.java (addr): Renamed from 'address'.
1097 (address): New field to match Serialized Form doc.
1098 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1099 (family): New serialization field.
1100 (serialVersionUID): New field.
1101 (readObject): New method.
1102 (writeObject): New method.
1103 (getFamily): New native method.
1104 (InetAddress): Set family.
1105 * java/net/natInetAddress.cc (getFamily): New method.
1106 (addr): Renamed from 'address'.
1107 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1108 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1109 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1110
1111 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1112
1113 * java/util/AbstractList.java (SubList): Make it a top-level private
1114 class.
1115 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1116 (add): Ditto.
1117 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1118 * Makefile.in: Rebuilt.
1119
1120 2000-11-02 Tom Tromey <tromey@cygnus.com>
1121
1122 * Makefile.in: Rebuilt.
1123 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1124 link.
1125
1126 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1127
1128 * java/util/AbstractList.java (remove): Comment out modCount increment
1129 to work around compiler bug.
1130 (add): Ditto.
1131
1132 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1133
1134 * java/util/AbstractList.java: Throw messages with
1135 IndexOutOfBoundsExceptions.
1136 (listIterator()): Call listIterator(0).
1137 (size): New field. Initialize to size().
1138 (hasNext): Test position against size, not size().
1139 (remove): Increment knownMod by one instead of resetting it from
1140 modCount.
1141 (add): Ditto.
1142 (SubList.upMod): Removed.
1143 (SubList.set): Don't call upMod() or update knownMod.
1144 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1145 (SubList.remove): Ditto.
1146 (SubList.addAll): Don't call backingList.size(). Increment size from
1147 c.size().
1148 (SubList.iterator): New method. Call listIterator(0).
1149 (SubList.listIterator): New method. Restore code to return an anonymous
1150 listIterator implementation (with some changes).
1151 * java/util/AbstractSequentialList.java: Throw messages with
1152 IndexOutOfBoundsExceptions.
1153 (addAll): Add a specnote.
1154 * java/util/ArrayList.java (removeRange): Get the math right.
1155 (addAll): Increment modCount _before_ creating iterator.
1156 * java/util/LinkedList.java: Rewritten, mostly.
1157
1158 2000-11-01 Tom Tromey <tromey@cygnus.com>
1159
1160 * scripts/encodings.pl: Added `ASCII' alias.
1161 * Makefile.in: Rebuilt.
1162 * Makefile.am (convert_source_files): Added new files.
1163 * gnu/gcj/convert/Input_ASCII.java: New file.
1164 * gnu/gcj/convert/Output_ASCII.java: New file.
1165 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1166 out-of-range characters.
1167 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1168 (read): Swap bytes if required. Treat `count' as character count,
1169 not byte count.
1170 (write): Likewise. Also, handle case where iconv fails on a given
1171 character.
1172 (init): Put encoding into exception.
1173 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1174 (static): Call iconv_init. Rebuilt alias list.
1175 (iconv_init): New private method.
1176
1177 2000-11-01 Tom Tromey <tromey@cygnus.com>
1178
1179 * Makefile.in: Rebuilt.
1180 * Makefile.am (install-exec-hook): Only make a single symlink, and
1181 remove the destination before making the link.
1182 * configure: Rebuilt.
1183 * configure.in: Call AC_PROG_LN_S.
1184
1185 2000-10-31 Warren Levy <warrenl@cygnus.com>
1186
1187 * jni.cc: Added include of java/lang/ThreadGroup.h.
1188 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1189 per change of 2000-10-05.
1190
1191 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1192
1193 * java/util/BitSet.java: Updated @specnote.
1194
1195 * java/io/Reader.java: Merge docs from classpath.
1196 (skip): Synchronize on `lock'.
1197 * java/io/FileReader.java: Import correct implementation from
1198 classpath.
1199 * java/io/StringReader.java: Merge docs from classpath.
1200 (ready): Throw IOException if stream is closed.
1201
1202 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1203
1204 * java/util/AbstractCollection.java (addAll): Use size() instead of
1205 hasNext() in iterator loop.
1206 (clear): Ditto.
1207 (contains): Ditto. Simplify loop.
1208 (containsAll): Ditto.
1209 (remove): Ditto.
1210 (removeAll): Ditto.
1211 (retainAll): Ditto.
1212 (toArray): Ditto.
1213 (toString): Ditto. Use string concatenation operators, not
1214 StringBuffer.
1215 * java/util/AbstractList.java (addAll): Use size() instead of
1216 hasNext() in iterator loop.
1217 (equals): Ditto.
1218 (hashCode): Ditto.
1219 (indexOf): Ditto. Don't take null check outside of the loop.
1220 (iterator): Return an AbstractListItr instead of anonymous class.
1221 (lastIndexOf): Use a for loop bounded by size() instead of
1222 hasPrevious() in iterator loop.
1223 (listIterator): Return an AbstractListItr.
1224 (removeRange): Remove bounds checking code and docs.
1225 (AbstractListItr): New inner class. Code moved here from
1226 listIterator().
1227 (SubList.iterator): Removed. Use default implementation from
1228 AbstractList instead.
1229 (SubList.listIterator): As above.
1230 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1231 instead of hasNext() in iterator loop.
1232 (containsValue): Ditto.
1233 (equals): Ditto.
1234 (get): Ditto.
1235 (put): Ditto.
1236 (putAll): Ditto.
1237 (remove): Ditto.
1238 (toString): Ditto. Use string concatenation operators, not
1239 StringBuffer.
1240 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1241 bounded by size() instead of hasNext() in iterator loop.
1242 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1243 part of normal execution flow. Do an explicit null check instead.
1244 * java/util/ArrayList.java (_iSize): Rename to `size'.
1245 (_arData): Rename to `data'.
1246 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1247 message.
1248 (remove): Ditto.
1249 (removeRange): Make protected. Don't check bounds.
1250 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1251 message.
1252 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1253 check.
1254 (addAll (int, Collection)): Check lower bounds. Simplify exception
1255 string.
1256 (clone): Clone the data array too.
1257 (indexOf): Inline doesEqual().
1258 (lastIndexOf): Ditto.
1259 (clear): Don't set array data to null.
1260 (set): Check lower bounds. Simplify exception string.
1261 (toArray): Correct comment.
1262 (trimToSize): Don't update modCount, this is not a structural change.
1263 Add comment.
1264
1265 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1266 implemented.
1267 (toString): Declare `bit' as long, not int.
1268 (data): Made package-private, not private.
1269
1270 2000-10-27 Warren Levy <warrenl@cygnus.com>
1271
1272 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1273 array elements to true.
1274
1275 2000-10-27 Warren Levy <warrenl@cygnus.com>
1276
1277 * Makefile.am: Added locale files from Classpath.
1278 * Makefile.in: Rebuilt.
1279 * gnu/java/locale/Calendar.java: New file.
1280 * gnu/java/locale/Calendar_de.java: New file.
1281 * gnu/java/locale/Calendar_en.java: New file.
1282 * gnu/java/locale/Calendar_nl.java: New file.
1283 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1284 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1285 serialization compatibility.
1286 (scale): Made private.
1287 (serialVersionUID): New field.
1288 * java/math/BigInteger.java (ival): Made transient.
1289 (words): Made transient.
1290 (bitCount): New serialization field.
1291 (bitLength): Ditto.
1292 (firstNonzeroByteNum): Ditto.
1293 (lowestSetBit): Ditto.
1294 (magnitude): Ditto.
1295 (signum): Ditto.
1296 (serialVersionUID): New field.
1297 (readObject): New method.
1298 (writeObject): New method.
1299 * java/util/BitSet.java (serialVersionUID): New field.
1300 * java/util/Calendar.java: Replaced with Classpath file.
1301 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1302 of getDefault() for TimeZone or Locale instead of passing nulls.
1303 * java/util/Locale.java (serialVersionUID): New field.
1304 (writeObject): New method.
1305 (readObject): New method.
1306 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1307
1308 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1309
1310 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1311 (core_java_source_files): Put java.lang, java.io, and java.util here.
1312 (ordinary_java_source_files): Order so that core_java_source_files are
1313 built first.
1314 (java_source_files): Reorder so that special_java_source_files are
1315 built first.
1316 * configure.in: Don't pass -I flag to gcj.
1317 * Makefile.in: Rebuilt.
1318 * configure: Rebuilt.
1319
1320 2000-10-25 Tom Tromey <tromey@cygnus.com>
1321
1322 * Makefile.in: Rebuilt.
1323 * Makefile.am (install-exec-hook): New target.
1324
1325 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1326
1327 * java/util/EventObject.java: Merged from classpath.
1328
1329 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1330 with stack dump.
1331
1332 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1333
1334 * java/util/AbstractSet.java (equals): Re-installed original code.
1335
1336 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1337
1338 * Makefile.am: Added rules for libgcjx library.
1339 * Makefile.in: Rebuilt.
1340 * configure.in: Added check for X.
1341 * configure: Rebuilt.
1342 * gnu/awt/LightweightRedirector.java: New file.
1343 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1344 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1345 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1346 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1347 * gnu/awt/j2d/MappedRaster.java: New file.
1348 * gnu/awt/xlib/XCanvasPeer.java: New file.
1349 * gnu/awt/xlib/XEventLoop.java: New file.
1350 * gnu/awt/xlib/XEventQueue.java: New file.
1351 * gnu/awt/xlib/XFontMetrics.java: New file.
1352 * gnu/awt/xlib/XFramePeer.java: New file.
1353 * gnu/awt/xlib/XGraphics.java: New file.
1354 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1355 * gnu/awt/xlib/XPanelPeer.java: New file.
1356 * gnu/awt/xlib/XToolkit.java: New file.
1357 * gnu/gcj/xlib/Clip.java: New file.
1358 * gnu/gcj/xlib/Colormap.java: New file.
1359 * gnu/gcj/xlib/Display.java: New file.
1360 * gnu/gcj/xlib/Drawable.java: New file.
1361 * gnu/gcj/xlib/Font.java: New file.
1362 * gnu/gcj/xlib/GC.java: New file.
1363 * gnu/gcj/xlib/Pixmap.java: New file.
1364 * gnu/gcj/xlib/Screen.java: New file.
1365 * gnu/gcj/xlib/Visual.java: New file.
1366 * gnu/gcj/xlib/WMSizeHints.java: New file.
1367 * gnu/gcj/xlib/Window.java: New file.
1368 * gnu/gcj/xlib/WindowAttributes.java: New file.
1369 * gnu/gcj/xlib/XAnyEvent.java: New file.
1370 * gnu/gcj/xlib/XButtonEvent.java: New file.
1371 * gnu/gcj/xlib/XColor.java: New file.
1372 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1373 * gnu/gcj/xlib/XConnectException.java: New file.
1374 * gnu/gcj/xlib/XEvent.java: New file.
1375 * gnu/gcj/xlib/XException.java: New file.
1376 * gnu/gcj/xlib/XExposeEvent.java: New file.
1377 * gnu/gcj/xlib/XID.java: New file.
1378 * gnu/gcj/xlib/XImage.java: New file.
1379 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1380 * gnu/gcj/xlib/natClip.cc: New file.
1381 * gnu/gcj/xlib/natColormap.cc: New file.
1382 * gnu/gcj/xlib/natDisplay.cc: New file.
1383 * gnu/gcj/xlib/natDrawable.cc: New file.
1384 * gnu/gcj/xlib/natFont.cc: New file.
1385 * gnu/gcj/xlib/natGC.cc: New file.
1386 * gnu/gcj/xlib/natPixmap.cc: New file.
1387 * gnu/gcj/xlib/natScreen.cc: New file.
1388 * gnu/gcj/xlib/natVisual.cc: New file.
1389 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1390 * gnu/gcj/xlib/natWindow.cc: New file.
1391 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1392 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1393 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1394 * gnu/gcj/xlib/natXColor.cc: New file.
1395 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1396 * gnu/gcj/xlib/natXException.cc: New file.
1397 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1398 * gnu/gcj/xlib/natXImage.cc: New file.
1399 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1400 * java/awt/EventDispatchThread.java: Start thead on creation.
1401
1402 2000-10-20 Tom Tromey <tromey@cygnus.com>
1403
1404 From Arno J. Klaassen:
1405 * interpret.cc: Include <stdlib.h> for alloca.
1406 * defineclass.cc: Include <stdlib.h> for alloca.
1407
1408 * Makefile.in: Rebuilt.
1409 * Makefile.am: Include deps.mk.
1410 (GCJCOMPILE): Added -MD, -MT, and -MF.
1411 ($(javao_files)): Don't depend on libgcj.zip.
1412 (all-recursive): New target.
1413 (%.lo:%.cc): Do dependency tracking.
1414 ($(nat_headers)): Don't depend on libgcj.zip.
1415 * configure: Rebuilt.
1416 * configure.in: Make .d files and deps.mk.
1417
1418 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1419
1420 * exception.cc: Don't #include "exception".
1421 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1422
1423 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1424 * Makefile.in: Updated.
1425
1426 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1427
1428 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1429 * java/awt/peer/ComponentPeer.java (disable): Removed.
1430 (enable): Removed.
1431 (hide): Removed.
1432 (minimumSize): Removed.
1433 (preferredSize): Removed.
1434 (reshape): Removed.
1435 (show): Removed.
1436 * java/awt/peer/ListPeer.java (addItem): Removed.
1437 (clear): Removed.
1438 (minimumSize): Removed.
1439 (preferredSize): Removed.
1440 (setMultipleSelections): Removed.
1441 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1442 (remove): Renamed from removeMenu.
1443 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1444 (enable): Removed.
1445 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1446 (remove): Renamed from removeItem.
1447 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1448 (getMinimumSize): Removed.
1449 (getPreferredSize): Removed.
1450 (minimumSize): Removed.
1451 (preferredSize): Removed.
1452 (replaceText): Removed.
1453 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1454 (preferredSize): Removed.
1455 (getMinimumSize): Removed.
1456 (getPreferredSize): Removed.
1457 (setEchoCharacter): Removed.
1458
1459 2000-10-10 Warren Levy <warrenl@cygnus.com>
1460
1461 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1462 * java/sql/Date.java (serialVersionUID): New field.
1463 * java/sql/Time.java (serialVersionUID): New field.
1464 * java/sql/Timestamp.java (serialVersionUID): New field.
1465 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1466 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1467 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1468 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1469 (readObject): New serialization method.
1470 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1471 (serialVersionOnStream): New field.
1472 (readObject): New serialization method.
1473 (getMonetaryDecimalSeparator): New method.
1474 (setMonetaryDecimalSeparator): New method.
1475 * java/text/NumberFormat.java (maxFractionDigits): New field.
1476 (maxIntegerDigits): New field.
1477 (minFractionDigits): New field.
1478 (minIntegerDigits): New field.
1479 (serialVersionOnStream): New field.
1480 (serialVersionUID): New field.
1481 (readObject): New serialization method.
1482 (writeObject): New serialization method.
1483 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1484 (serialVersionOnStream): New field.
1485 (serialVersionUID): New field.
1486 (readObject): New serialization method.
1487
1488 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1489
1490 * configure.in (GCJ): Avoid bogus error message when looking for
1491 (and not finding) gcj in the build tree.
1492 * configure: Rebuilt.
1493
1494 2000-10-09 Tom Tromey <tromey@cygnus.com>
1495
1496 * configure: Rebuilt.
1497 * configure.in: Include sys/types.h when checking for socklen_t.
1498 From Arno J. Klaassen.
1499
1500 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1501
1502 * include/jvm.h: Enable __builtin_expect().
1503
1504 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1505 the main program. Fix for PR libgcj/341.
1506
1507 2000-10-07 Tom Tromey <tromey@cygnus.com>
1508
1509 * java/util/Properties.java: Merged with Classpath version.
1510
1511 2000-10-05 Tom Tromey <tromey@cygnus.com>
1512
1513 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1514 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1515 * java/lang/Class.h (Object): Added `class$' field.
1516 * java/lang/Object.h (Object): Added `class$' field.
1517 * defineclass.cc (ClassClass): Use `class$' form.
1518 (ClassObject): Likewise.
1519 * resolve.cc (ClassObject): Use `class$' form.
1520 (ObjectClass): Likewise.
1521 * interpret.cc (ClassError): Removed.
1522 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1523 `class$' form.
1524 (IntegerClass): Likewise.
1525 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1526 form.
1527 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1528 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1529 SerializableClass): Likewise.
1530 Include Serializable.h, Cloneable.h.
1531 * java/lang/natSystem.cc (SystemClass): Removed.
1532 (init_properties): Use `class$' form.
1533 * java/lang/natObject.cc (CloneableClass): Removed.
1534 (clone): Use `class$' form.
1535 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1536 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1537 ConstructorClass): Likewise.
1538 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1539 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1540 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1541 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1542 form.
1543 (ClassClass): Likewise.
1544 * include/jvm.h (StringClass): Use `class$' form.
1545 * prims.cc (ObjectClass): Removed.
1546 (_Jv_RunMain): Use `class$' form.
1547 (_Jv_AllocObject): Likewise.
1548 * jni.cc (ClassClass): Use `class$' form.
1549 (ThrowableClass): Likewise.
1550 (ObjectClass): Likewise.
1551 (MethodClass): Likewise.
1552 (ThreadGroupClass): Likewise.
1553 (NativeThreadClass): Likewise.
1554 * boehm.cc (ObjectClass): Removed.
1555 (ClassClass): Removed.
1556 (_Jv_MarkObj): Use `class$' form.
1557 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1558 Include RawData.h.
1559
1560 2000-10-05 Warren Levy <warrenl@cygnus.com>
1561
1562 * Makefile.am: Removed java/io/Replaceable.java and
1563 java/io/Resolvable.java.
1564 * Makefile.in: Rebuilt.
1565 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1566 namespace.
1567 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1568 in method name.
1569 (processResolution): Handle readResolve method via reflection with
1570 removal of Resolvable interface.
1571 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1572 method via reflection with removal of Replaceable interface.
1573 * java/io/Replaceable.java: Removed.
1574 * java/io/Resolvable.java: Removed.
1575 * java/security/Key.java (serialVersionUID): New field.
1576 * java/security/Provider.java (serialVersionUID): New field.
1577 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1578 New field.
1579 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1580 New field.
1581 * java/sql/DataTruncation.java (serialVersionUID): New field.
1582 * java/sql/SQLException.java (serialVersionUID): New field.
1583 * java/sql/SQLWarning.java (serialVersionUID): New field.
1584 * java/util/Date.java (serialVersionUID): New field.
1585 (millis): Made transient.
1586 (readObject): New method.
1587 (writeObject): New method.
1588
1589 2000-10-05 Tom Tromey <tromey@cygnus.com>
1590
1591 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1592
1593 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1594
1595 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1596 (JvRunMain): Set _Jv_argv and _Jv_argc.
1597 * java/awt/Component.java: Minor fixes.
1598 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1599 * java/awt/Toolkit.java (systemEventQueue): Removed.
1600 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1601 * java/awt/Window.java (getToolkit): Don't call super.
1602 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1603 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1604 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1605 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1606 * gnu/awt/gtk/GtkFramePeer.java: New file.
1607 * gnu/awt/gtk/GtkMainThread.java: New file.
1608 * gnu/awt/gtk/GtkToolkit.java: New file.
1609 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1610 * gnu/awt/gtk/gtkcommon.cc: New file.
1611 * gnu/awt/gtk/gtkcommon.h: New file.
1612 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1613 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1614 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1615 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1616 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1617 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1618
1619 2000-09-30 Tom Tromey <tromey@cygnus.com>
1620
1621 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1622 interrupted before modifying the cv's wait set.
1623 From Corey Minyard.
1624
1625 2000-09-30 Hans Boehm <boehm@acm.org>
1626 Bryce McKinlay <bryce@albatross.co.nz>
1627
1628 Implement bitmap descriptor based marking for Boehm GC.
1629
1630 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1631 * configure: Rebuilt.
1632 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1633 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1634 method get_finalizer().
1635 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1636 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1637 (_Jv_AllocObj): Add new jclass parameter.
1638 (_Jv_AllocArray): Ditto.
1639 (_Jv_BuildGCDescr): New prototype.
1640 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1641 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1642 get_finalizer() instead of direct finalizer vtable offset.
1643 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1644 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1645 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1646 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1647 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1648 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1649 (_Jv_DetermineVTableIndex): Ditto.
1650 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1651 calculations to account for new gc_descr field.
1652 * boehm.cc: #include gc_gcj.h.
1653 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1654 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1655 New commentary from HB. Mark the classes vtable.
1656 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1657 (GC_DEFAULT_DESCR): New #define.
1658 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1659 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1660 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1661 scan conservativly if size is less than min_heap_addr. Set vtable
1662 pointer of new object before returning.
1663 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1664 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1665 allocation for obj_kind_x.
1666 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1667 (_Jv_AllocObj): Set vtable on returned object.
1668 (_Jv_AllocArray): Ditto.
1669 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1670 (_Jv_NewPrimArray): Ditto.
1671 (_Jv_AllocObj): Declare as a friend.
1672 (_Jv_AllocArray): Ditto.
1673 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1674 from &ObjectClass into new array class. Remove offset-by-one
1675 adjustments from `method' size calculations to account for gc_descr
1676 field.
1677
1678 2000-09-26 Tom Tromey <tromey@cygnus.com>
1679
1680 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1681 `remove', not `add'.
1682
1683 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1684
1685 * java/lang/natSystem.cc (file_encoding): Added return statement.
1686
1687 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1688
1689 * Makefile.am: Re-work shell commands that exceeded command-line
1690 length limits.
1691 * Makefile.in: Rebuilt.
1692
1693 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1694
1695 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1696 * java/lang/natDouble.cc: Likewise.
1697 * java/lang/reflect/natMethod.cc: Likewise.
1698 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1699
1700 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1701
1702 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1703 libgcjdata.a.
1704 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1705 * acinclude.m4: Arrange for automake to not bring in a new
1706 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1707 * Makefile.am: Leave it up to automake to subst GCJ.
1708 * aclocal.m4, configure, Makefile.in: Rebuilt.
1709
1710 2000-09-13 Tom Tromey <tromey@cygnus.com>
1711
1712 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1713 (get): Ensure Boolean class is initialized.
1714 * java/lang/reflect/natField.cc (BooleanClass): New define.
1715 (get): Ensure Boolean class is initialized.
1716
1717 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1718
1719 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1720 Initialize with anonymous class.
1721 (compareToIgnoreCase): New method.
1722
1723 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1724 (uncaughtException): Set had_uncaught_exception.
1725 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1726 exit with error status if set.
1727 (_Jv_RunMain): Ditto.
1728
1729 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1730
1731 * configure: Rebuilt with new ../libtool.m4.
1732
1733 2000-09-11 Tom Tromey <tromey@cygnus.com>
1734
1735 * java/lang/reflect/Field.java (toString): Don't rely on
1736 Class.toString.
1737
1738 2000-09-08 Tom Tromey <tromey@cygnus.com>
1739
1740 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1741 default decoder use iconv.
1742 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1743 Let default encoder use iconv.
1744 * configure: Rebuilt.
1745 * configure.in: Check for nl_langinfo and <langinfo.h>.
1746 * java/lang/natSystem.cc (file_encoding): New function.
1747 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1748
1749 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1750
1751 * acinclude.m4: Simplify the tests for CC and CXX.
1752 * aclocal.m4, configure: Rebuilt.
1753
1754 * acinclude.m4: Include libtool macros from the source tree.
1755 * aclocal.m4, configure: Rebuilt.
1756
1757 2000-09-08 Warren Levy <warrenl@cygnus.com>
1758
1759 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1760 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1761 * java/io/File.java (writeObject): Added.
1762 (readObject): Added.
1763 (serialVersionUID): Added.
1764 * java/io/ObjectOutputStream.java (writeObject): Initialized
1765 fieldsAlreadyWritten before recursion rather than after.
1766 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1767 * java/io/OptionalDataException.java (serialVersionUID): Added.
1768 (OptionalDataException): Made package private.
1769 * java/io/SyncFailedException.java (SyncFailedException): Removed
1770 default constructor to match spec.
1771 * java/lang/Boolean.java (serialVersionUID): Added.
1772 * java/lang/Byte.java (serialVersionUID): Added.
1773 * java/lang/Character.java (serialVersionUID): Added.
1774 * java/lang/Double.java (serialVersionUID): Added.
1775 * java/lang/Float.java (serialVersionUID): Added.
1776 * java/lang/Integer.java (serialVersionUID): Added.
1777 * java/lang/Long.java (serialVersionUID): Added.
1778 * java/lang/Number.java (serialVersionUID): Added.
1779 * java/lang/Short.java (serialVersionUID): Added.
1780 * java/lang/String.java (serialVersionUID): Added.
1781 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1782 to match spec.
1783 * java/lang/reflect/InvocationTargetException.java
1784 (serialVersionUID): Added.
1785 * java/net/URL.java (handler): Made transient.
1786 (hashCode): Added field for serialization, per spec. and use
1787 cached value if available.
1788 (serialVersionUID): Added.
1789 (URL): Initialize hashCode.
1790 (set): Adjust hashCode.
1791 (readObject): New Method to initialize the protocol handler when
1792 deserializing.
1793 (writeObject): New method.
1794 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1795 * java/text/Collator.java: Removed 'implements Serializable'.
1796 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1797 * java/util/Properties.java (serialVersionUID): Added.
1798 * java/util/Random.java (serialVersionUID): Added.
1799 (seed): Made private.
1800 (nextNextGaussian): Made private.
1801 (haveNextNextGaussian): Made private.
1802 * java/util/Stack.java (serialVersionUID): Added.
1803 * java/util/TimeZone.java (serialVersionUID): Added.
1804 * java/util/Vector.java (serialVersionUID): Added.
1805
1806 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1807
1808 * Makefile.am (Thread.h): Don't be friends with native threads
1809 functions.
1810 * Makefile.in: Rebuilt.
1811 * java/lang/Thread.java (interrupt_flag): Make package-private.
1812
1813 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1814
1815 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1816 to avoid long long division.
1817
1818 2000-09-06 Tom Tromey <tromey@cygnus.com>
1819
1820 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1821 parameter types.
1822 * java/lang/reflect/Method.java (toString): Use `getName' for
1823 return type.
1824
1825 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1826 `args' if method takes no parameters.
1827
1828 Fix for PR java.lang/339:
1829 * java/lang/natPosixProcess.cc (fail): New function.
1830 (cleanup): New function.
1831 (startProcess): Use them. Create pipe so child can communicate
1832 exec failure back to parent.
1833
1834 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1835
1836 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1837 calls to `throw'.
1838 (send): Undo last patch. Remove the label only.
1839 (mcastGrp): Ditto.
1840 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1841 `throw'.
1842 * java/net/natInetAdress.cc: Ditto.
1843
1844 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1845
1846 2000-09-05 Tom Tromey <tromey@cygnus.com>
1847
1848 * doc/cni.sgml: Updated from master copy.
1849
1850 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1851
1852 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1853 (write): Ditto.
1854 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1855 stack. Synchronize.
1856 * java/lang/fdlibm.h: #undef __P if previously defined.
1857 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1858 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1859 block.
1860 (mcastGrp): Ditto.
1861
1862 2000-09-04 Tom Tromey <tromey@cygnus.com>
1863
1864 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1865 DELETE mode.
1866
1867 2000-09-04 Anthony Green <green@redhat.com>
1868
1869 Fix for PR java.io/203:
1870 * java/io/File.java (createTempFile): Obey directory argument.
1871 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1872 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1873 variable to set java.io.tmpdir on non-WIN32 systems.
1874
1875 2000-09-04 Anthony Green <green@redhat.com>
1876
1877 * java/io/File.java (deleteOnExit): New method.
1878 * gnu/gcj/runtime/FileDeleter.java: New class.
1879 * java/lang/natRuntime.cc (exit): Call
1880 FileDeleter.deleteOnExitNow()
1881 * Makefile.am: Add FileDeleter.java.
1882 * Makefile.in: Rebuilt.
1883
1884 2000-09-02 Tom Tromey <tromey@cygnus.com>
1885
1886 * Makefile.in: Rebuilt.
1887 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1888 environment variable.
1889
1890 2000-09-01 Andrew Haley <aph@redhat.com>
1891
1892 * java/io/StreamTokenizer.java: Don't throw a
1893 NumberFormatException if a field is numeric as far as the
1894 StreamTokenizer is concerned but not as far as Double.valueOf() is
1895 concerned: return a zero instead.
1896
1897 2000-08-30 Tom Tromey <tromey@cygnus.com>
1898
1899 * Makefile.in: Rebuilt.
1900 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1901
1902 2000-08-28 Tom Tromey <tromey@cygnus.com>
1903
1904 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1905 gnu/gcj/awt/ComponentDataBlitOp.java,
1906 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1907 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1908 java/awt/color/ICC_ColorSpace.java,
1909 java/awt/color/ICC_Profile.java,
1910 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1911 java/awt/image/ComponentColorModel.java,
1912 java/awt/image/ComponentSampleModel.java,
1913 java/awt/image/DataBuffer.java,
1914 java/awt/image/DataBufferByte.java,
1915 java/awt/image/DataBufferInt.java,
1916 java/awt/image/DataBufferUShort.java,
1917 java/awt/image/DirectColorModel.java,
1918 java/awt/image/IndexColorModel.java,
1919 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1920 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1921 java/awt/image/SinglePixelPackedSampleModel.java,
1922 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1923 Removed Latin-1 copyright symbols.
1924 * java/util/zip/ZipFile.java: Indentation fixes.
1925
1926 2000-08-27 Mark Wielaard <mark@klomp.org>
1927
1928 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1929 constructor, close can delete the file, finalize calls close.
1930 * java/util/jar/JarFile.java: Constructor that takes mode now
1931 calls super.
1932
1933 2000-08-27 Anthony Green <green@redhat.com>
1934
1935 * java/util/ArrayList.java, java/util/Timer.java,
1936 java/util/LinkedList.java, java/util/TimerTask.java,
1937 java/util/HashMap.java, java/util/AbstractMap.java,
1938 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1939 java/util/SortedSet.java: Imported from GNU Classpath.
1940 * Makefile.in: Rebuilt.
1941 * Makefile.am: Added new files.
1942
1943 2000-08-26 Anthony Green <green@redhat.com>
1944
1945 * Makefile.in: Rebuilt.
1946 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1947 friend.
1948
1949 * prims.cc: Include ClassLoader.h.
1950 (_Jv_RunMain): When executing jar files, classpath must be the jar
1951 file only. Lose our reference to the system ClassLoader in order
1952 to get a new one with the correct classpath.
1953 * java/lang/natSystem.cc (init_properties): When executing a jar
1954 file, only use the jar file for java.class.path.
1955
1956 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1957 for bytecode archives.
1958
1959 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1960 exists, but not Main-Class.
1961
1962 2000-08-23 Mark Wielaard <mark@klomp.org>
1963
1964 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1965 return -1 when fill() has no more data for the Inflater.
1966
1967 2000-08-23 Mark Wielaard <mark@klomp.org>
1968
1969 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
1970 write(String) already does.
1971
1972 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1973
1974 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
1975 to `alive_flag', call `init'.
1976 (init): New native method.
1977 * gnu/gcj/jni/natNativeThread.cc (init): New native method
1978 implementation.
1979
1980 2000-08-21 Mark Wielaard <mark@klomp.org>
1981
1982 * Makefile.in: Rebuilt.
1983 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
1984 a `friend class'.
1985 (java/lang/reflect/Field.h): Likewise.
1986 (java/lang/reflect/Method.h): Likewise.
1987 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
1988 `friend class'.
1989
1990 2000-08-21 Tom Tromey <tromey@cygnus.com>
1991
1992 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
1993 debugging prints.
1994
1995 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
1996
1997 * java/lang/natSystem.cc (init_properties): Change sourceware
1998 reference to sources.redhat.com.
1999
2000 * include/java-props.h: Add _Jv_Jar_Class_Path.
2001 * prims.cc: Ditto. Set it from `gij -jar file' option.
2002
2003 * java/lang/natSystem.cc (init_properties): Set java.class.path
2004 from
2005 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2006
2007 * java/util/PropertyPermission.java: Import from GNU Classpath.
2008 * Makefile.in: Rebuilt.
2009 * Makefile.am: Add java/util/PropertyPermission.java.
2010 * java/lang/System.java: Add setProperty method.
2011
2012 * gij.cc (main): Add -jar option to execute jar files.
2013 (help): Describe -jar option.
2014 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2015 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2016 * gnu/gcj/runtime/FirstThread.java (main): New method.
2017
2018 * java/util/jar/Attributes.java: Correct comment spelling.
2019
2020 2000-08-20 Mark Wielaard <mark@klomp.org>
2021
2022 * java/util/zip/Adler32.java: Make private variables really private
2023 * java/util/zip/CRC32.java: Make private variables really private
2024 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2025 bytes
2026 * java/util/zip/InflaterInputStream.java: skip() could skip to
2027 much bytes
2028 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2029 * java/util/zip/ZipFile.java: size() new 1.2 method
2030 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2031 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2032 closed
2033
2034 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2035
2036 * java/util/jar/JarFile.java: Don't call
2037 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2038 <mark@klomp.org>.
2039
2040 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2041
2042 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2043 Read the entire contents of the class file, not just what is
2044 available().
2045
2046 * java/net/JarURLConnection.java: getEntry doesn't take any
2047 arguments. Return null if element is null.
2048
2049 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2050 size from the archive, not the inflated size.
2051
2052 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2053 java.util.zip.ZipFile.getEntry.
2054
2055 * gij.cc (help): Change sourceware reference to
2056 sources.redhat.com.
2057
2058 2000-08-19 Tom Tromey <tromey@cygnus.com>
2059
2060 * java/util/zip/ZipInputStream.java (createZipEntry):
2061 Implemented.
2062
2063 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2064
2065 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2066 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2067 java/util/jar/JarInputStream.java,
2068 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2069 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2070 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2071 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2072 java/security/cert/Certificate.java,
2073 java/security/cert/CertificateEncodingException.java,
2074 java/security/cert/CertificateException.java,
2075 java/security/cert/CertificateExpiredException.java,
2076 java/security/cert/CertificateFactory.java,
2077 java/security/cert/CertificateFactorySpi.java,
2078 java/security/cert/CertificateNotYetValidException.java,
2079 java/security/cert/CertificateParsingException.java,
2080 java/security/cert/X509CRL.java,
2081 java/security/cert/X509CRLEntry.java,
2082 java/security/cert/X509Certificate.java,
2083 java/security/cert/X509Extension.java: Imported from Classpath.
2084 * java/util/Hashtable.java: Imported from Classpath.
2085
2086 * java/util/zip/ZipInputStream.java: Create stub for
2087 createZipEntry.
2088
2089 * gcj/javaprims.h: Updated class list.
2090
2091 * Makefile.in, gcj/Makefile.in: Rebuilt.
2092 * Makefile.am (ordinary_java_source_files): Add these new classes.
2093
2094 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2095
2096 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2097 * gnu/gcj/awt/GLightweightPeer.java: New file.
2098 * java/awt/BorderLayout.java: Implemented all methods.
2099 * java/awt/Button.java (actionListener, actionCommand): Renamed
2100 and modifier change.
2101 (addNotify): Call super.
2102 (dispatchEventImpl): New method.
2103 (getListeners): New method.
2104 (label): Made package-private, not private.
2105 * java/awt/Canvas.java: Implemented class body.
2106 * java/awt/Color.java (brighter): New method.
2107 (darker): New method.
2108 (hashCode): New method.
2109 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2110 (getGraphicsConfiguration): Delegate to
2111 getGraphicsConfigurationImpl().
2112 (getGraphicsConfigurationImpl): New method.
2113 (getToolkit): Only return value from peer if not null.
2114 (isDisplayable): Check with parent.
2115 (isShowing): No parent implies not showing.
2116 (getForeground): Check parent property if local is null.
2117 (getBackground): Likewise.
2118 (getFont): Likewise.
2119 (setForeground): Inform peer.
2120 (setBackground): Likewise
2121 (setLocale): Invalidate component.
2122 (getColorModel): Implemented.
2123 (setLocation): Invalidate, or ignore if no change.
2124 (setSize): Invalidate, or ignore if no change.
2125 (setBounds): Invalidate, or ignore if no change.
2126 (isOpaque): By default, heavyweight implies opaque.
2127 (isLightweight): Implemented.
2128 (getMaximumSize): Implemented.
2129 (doLayout): Implemented, NOP.
2130 (validate): Implemented, NOP.
2131 (invalidate): Only propagate to parent if parent was valid.
2132 (getGraphics): Implemented.
2133 (getFontMetrics): Implemented.
2134 (update): Implemented.
2135 (paintAll): Implemented.
2136 (repaint): Implemented all repaint methods.
2137 (print): Implemented.
2138 (printAll): Implemented.
2139 (createImage): Implemented.
2140 (dispatchEvent): Give the peer a chance to handle the event.
2141 (dispatchEventImpl): Dispatch paint events.
2142 (enableEvents): Lightweights enable events on parent component.
2143 (coalesceEvents): Coalesce paint events, and select event type
2144 using a switch.
2145 (coalescePaintEvents): New method.
2146 (processEvent): Fix unfortunate ordering of statements, and call
2147 correct method for MOUSE_CLICKED.
2148 (processPaintEvent): New method.
2149 (addNotify): Allow container to notify children before event
2150 mask is set in peer.
2151 (addNotifyContainerChildren): New method.
2152 (removeNotify): Visibility should not change on removeNotify.
2153 (paramString): Implemented.
2154 (list): Implemented two of the list methods.
2155 * Container (myInsets): Removed, insets are managed by peer.
2156 (getInsets): Query peer.
2157 (addImpl): Fix reparenting, enable events for lightweights,
2158 initialize component array.
2159 (validate): Call doLayout in validateTree() instead.
2160 (validateTree): Do nothing if already valid. Call beginValidate(),
2161 endValidate() on peer. Call validateTree() instead of validate()
2162 for children that are containers. Mark valid after validation of
2163 children.
2164 (setFont): Partial implementation.
2165 (paint): Implemented.
2166 (visitChildren): New method.
2167 (visitChild): New method.
2168 (update): Implemented.
2169 (print): Implemented.
2170 (paintComponents): Implemented.
2171 (printComponents): Consider translation and clipping.
2172 (getComponentAt): Ignore invisible children. Return this if no
2173 child match.
2174 (addNotify): Call super.
2175 (addNotifyContainerChildren): New method.
2176 (paramString): Implemented.
2177 (list): Implemented.
2178 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2179 right way.
2180 (invokeLater): Likewise.
2181 (isDispatchThread): Likewise.
2182 * java/awt/FontMetrics (getLeading): Formula change.
2183 (getDescent): Consider leading also.
2184 (getMaxAscent): Default to getAscent().
2185 (getMaxDescent): Default to getDescent.
2186 (getMaxAdvance): Return value signifying unknown.
2187 (charWidth): Both methods implemented.
2188 (charsWidth): Implemented.
2189 (bytesWidth): Implemented.
2190 (getWidths): Implemented.
2191 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2192 state): New fields.
2193 (Frame): Rearragend constuctor chaining to disallow null being
2194 passed as a graphics configuration.
2195 (getTitle): Return empty string if null.
2196 (dispose): Removed.
2197 (getIconImage): New method.
2198 (setIconImage): New method.
2199 (finalize): New method.
2200 (setMenuBar): Notify peer.
2201 (isResizable): New method.
2202 (setResizable): New method.
2203 (getState): New method.
2204 (getFont): Removed.
2205 (remove): Implemented.
2206 (removeNotify): New method.
2207 (getFrames): New method.
2208 * java/awt/Graphics.java: Implemented body of class.
2209 * java/awt/Graphics2D.java: New file.
2210 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2211 * java/awt/Image.java: Implemented body of class.
2212 * java/awt/Panel.java (Panel): Call correct super constructor.
2213 (addNotify): Implemented.
2214 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2215 * java/awt/RenderingHints.java: New file.
2216 * java/awt/Toolkit.java (createComponent): Implemented.
2217 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2218 * java/awt/Window.java (Window): Two new constructors. Reordered
2219 constructor chaining.
2220 (getGraphicsConfigurationImpl): New method.
2221 (finalize): Call super.
2222 (addNotify): Call super.
2223 (pack): Do layout stuff.
2224 (show): Ensure that peer exists and that component is valid.
2225 (dispose): Dispose owned children.
2226 (getOwner): Simplify code, casting null pointers is valid.
2227 (getGraphicsConfiguration): Ask peer if local value is null.
2228 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2229 getcmd().
2230 * java/awt/image/BufferedImage.java: New file.
2231 * java/awt/image/RasterOp.java: New file.
2232 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2233 More powerfull replacement for getColorModel().
2234 (getColorModel) Removed.
2235 (setEventMask) New method.
2236 * Makefile.am: Added new files.
2237 * Makefile.in: Rebuilt.
2238
2239 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2240
2241 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2242 (finit_leg_name): New global.
2243 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2244 `$finit$'. This is a backward compatibility hack.
2245 (java::lang::Class::_getMethods): Likewise.
2246
2247 2000-08-15 Andrew Haley <aph@cygnus.com>
2248
2249 * include/jvm.h (_Jv_HashCode): New hash code.
2250
2251 2000-08-15 Tom Tromey <tromey@cygnus.com>
2252
2253 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2254
2255 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2256
2257 * THANKS: More thanks.
2258
2259 2000-08-10 Tom Tromey <tromey@cygnus.com>
2260
2261 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2262 when errno not set.
2263 (connect): Likewise.
2264 (accept): Likewise.
2265 (getOption): Likewise.
2266 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2267 case when errno not set.
2268 (peek): Likewise.
2269 (send): Likewise.
2270 (receive): Likewise.
2271 (mcastGrp): Likewise.
2272 (setOption): Likewise.
2273 (getOption): Likewise.
2274
2275 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2276 John Stracke <francis@ecal.com>
2277
2278 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2279 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2280 getHttpHeaders().
2281 (disconnect): Don't unset connected flag.
2282 (getHeaderField (String)): Call connect() if not connected.
2283 (getHeaderField (int)): Ditto.
2284 (getHeaderFieldKey): Ditto.
2285 (getHttpHeaders): Don't call connect().
2286 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2287 gotResponseVals): New fields.
2288 (getResponseCode): Call getResponseVals() conditionally.
2289 (getResponseMessage): Ditto.
2290 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2291
2292 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2293
2294 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2295 * Makefile.in: Rebuilt.
2296 * java/awt/Color.java (getTransparency): New method.
2297 * java/awt/Component.java: Various updates.
2298 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2299 after dealing with children.
2300 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2301 * java/awt/Window.java: Various new methods and updates.
2302 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2303 to int for switch.
2304 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2305 * java/awt/event/WindowEvent.java (paramString): Ditto.
2306 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2307 try/catch block.
2308 * java/awt/geom/Point2D.java (clone): Ditto.
2309 * java/awt/geom/RectangularShape.java (clone): Ditto.
2310 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2311 isAlphaPremultiplied): Make package-private, not private.
2312
2313 2000-08-08 Tom Tromey <tromey@cygnus.com>
2314
2315 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2316 surrogate characters.
2317 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2318 true.
2319 (write): Correct handling of surrogate characters.
2320
2321 2000-08-07 Tom Tromey <tromey@cygnus.com>
2322
2323 * java/lang/reflect/Method.java (hashCode): Use getName().
2324 (toString): Likewise.
2325 * java/lang/reflect/natMethod.cc (getType): Initialize
2326 exception_types.
2327
2328 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2329 Class.toString.
2330 * java/lang/reflect/Field.java (toString): Correct formatting.
2331 From Corey Minyard.
2332
2333 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2334 rewrote.
2335 (receive): Streamlined.
2336
2337 2000-08-05 Tom Tromey <tromey@cygnus.com>
2338
2339 * java/io/PrintWriter.java: Merged comments from Classpath.
2340 (printlnUnsynchronized): Removed.
2341 (println()): Print the separator.
2342 (println): Call println(), not printlnUnsynchronized.
2343 (out): Now protected, to match spec.
2344
2345 2000-08-04 Tom Tromey <tromey@cygnus.com>
2346
2347 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2348 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2349 For PR java.io/301.
2350
2351 2000-08-03 Warren Levy <warrenl@cygnus.com>
2352
2353 * java/io/ObjectInputStream.java (readFields): Turn off
2354 readDataFromBlock while reading via GetField.
2355 (GetField$1.get(String, Object)): Pass Class of default value to
2356 getField.
2357 (getField): Allow for null default values.
2358
2359 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2360 (PutField$1.put): Fixed calls of checkType in most of the put
2361 methods to pass the correct parameter.
2362 (PutField$1.put(String, Object)): Allow for null value arg.
2363 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2364 PutField.
2365
2366 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2367 typo in spec'ed field name.
2368 (getSerialPersistentFields): Changed spelling of method to match
2369 the correct spelling of the spec'ed field name.
2370
2371 2000-08-03 Tom Tromey <tromey@cygnus.com>
2372
2373 * Makefile.in: Rebuilt.
2374 * Makefile.am (awt_java_source_files): Added new files.
2375
2376 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2377
2378 * Makefile.am: Add new AWT stubs.
2379 * java/awt/Canvas.java: New placeholder class.
2380 * java/awt/Checkbox.java: Ditto.
2381 * java/awt/CheckboxMenuItem.java: Ditto.
2382 * java/awt/Choice.java: Ditto.
2383 * java/awt/Dialog.java: Ditto.
2384 * java/awt/FileDialog.java: Ditto.
2385 * java/awt/List.java: Ditto.
2386 * java/awt/ScrollPane.java: Ditto.
2387 * java/awt/TextField.java: Ditto.
2388 * java/awt/datatransfer/Clipboard.java: Ditto.
2389 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2390 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2391 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2392 Some commented out. Partially implemented.
2393 * java/awt/natToolkit.cc: Removed file.
2394
2395 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2396
2397 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2398 Fixes "make -j" builds.
2399 * Makefile.in: Rebuild.
2400
2401 2000-08-02 Tom Tromey <tromey@cygnus.com>
2402
2403 * Makefile.in: Rebuilt.
2404 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2405 * java/net/natPlainSocketImpl.cc: Include posix.h.
2406 (accept): Use _Jv_select.
2407 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2408 (receive): Use _Jv_select.
2409 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2410 (available): Use _Jv_select.
2411 * java/lang/natSystem.cc: Include posix.h.
2412 (currentTimeMillis): Use _Jv_gettimeofday.
2413 * include/posix.h: New file.
2414 * posix.cc: New file.
2415
2416 * scripts/encodings.pl: New file.
2417 * Makefile.in: Rebuilt.
2418 * Makefile.am (convert_source_files): Added IOConverter.java.
2419 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2420 IOConverter.
2421 (getDefaultDecodingClass): Canonicalize default encoding name.
2422 (getEncoder): Likewise.
2423 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2424 IOConverter.
2425 (getDefaultDecodingClass): Canonicalize default encoding name.
2426 (getDecoder): Likewise.
2427 * gnu/gcj/convert/IOConverter.java: New file.
2428
2429 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2430
2431 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2432 to match C declaration in ffi.h.
2433 * Makefile.am: Add java/awt/Button.java.
2434 * Makefile.in: Rebuilt.
2435
2436 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2437
2438 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2439 cast of the second argument to `ffi_raw_call' changed to match
2440 prototype.
2441
2442 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2443
2444 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2445 argument to `ffi_raw_call' changed to match prototype.
2446
2447 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2448
2449 * java/awt/Component.java (toString): Implemented.
2450 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2451 dispatchEvent() to dispatch the event.
2452 (removeImpl): Ditto.
2453
2454 2000-07-30 Anthony Green <green@redhat.com>
2455
2456 * java/awt/Component.java: Add treeLock object.
2457 (getTreeLock): Implement.
2458 (isShowing): Implement.
2459
2460 2000-07-30 Tom Tromey <tromey@cygnus.com>
2461
2462 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2463
2464 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2465
2466 * java/awt/Window.java (addNotify): Wrote.
2467 (addWindowListener): Wrote.
2468 (getLocale): Wrote.
2469 (getWarningString): Wrote.
2470 (processEvent): Wrote.
2471 (processWindowEvent): Wrote.
2472 (removeWindowListener): Wrote.
2473 (show): Call validate(), setVisible().
2474 (toBack): Wrote.
2475 (toFront): Wrote.
2476
2477 * java/awt/Toolkit.java (createWindow): Declare.
2478
2479 * java/awt/Frame.java (addNotify): Use getToolkit to find
2480 toolkit.
2481
2482 * java/awt/Component.java (invalidate): Wrote.
2483 (isValid): Wrote.
2484 (getToolkit): Wrote.
2485
2486 * java/awt/Container.java (addContainerListener): Removed
2487 unnecessary cast.
2488 (removeContainerListener): Likewise.
2489 (addImpl): Wrote.
2490 (add(Component)): Use it.
2491 (add(String,Component)): Likewise.
2492 (add(Component,int)): Likewise.
2493 (add(Component,Object)): Likewise.
2494 (add(Component,Object,int)): Likewise.
2495 (doLayout): Wrote.
2496 (getAlignmentX): Wrote.
2497 (getAlignmentY): Wrote.
2498 (getComponentAt): Wrote.
2499 (getMaximumSize): Wrote.
2500 (invalidate): Wrote.
2501 (list(PrintStream,int)): Wrote.
2502 (list(PrintWriter,int)): Wrote.
2503 (getMinimumSize): Wrote.
2504 (getPreferredSize): Wrote.
2505 (printComponents): Wrote.
2506 (processContainerEvent): Look at containerListener, not
2507 componentListener.
2508 (remove): Added event processing and peer destruction.
2509 (removeAll): Use remove.
2510 (removeNotify): Wrote.
2511 (validate): Wrote.
2512 (validateTree): Wrote.
2513
2514 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2515 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2516 * java/awt/Container.java (addNotify): Don't create Container
2517 peer.
2518 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2519
2520 2000-07-30 Tom Tromey <tromey@cygnus.com>
2521
2522 * java/awt/Container.java (remove(int)): Wrote.
2523 (remove(Component)): Wrote.
2524 (add(Component)): Wrote.
2525 (add(Component,int)): Wrote.
2526 (removeAll): Wrote.
2527 (addNotify): Set our own peer.
2528 * java/awt/Scrollbar.java (listeners): Changed type.
2529 (Scrollbar): Don't initialize listeners.
2530 (addNotify): Wrote.
2531 (setValue): Call setValues.
2532 (setMinimum): Likewise.
2533 (setMaxPriority): Likewise.
2534 (setVisibleAmount): Likewise.
2535 (setValues): Wrote.
2536 (setUnitIncrement): Forward to peer.
2537 (setLineIncrement): Call setUnitIncrement.
2538 (setPageIncrement): Call setBlockIncrement.
2539 (setBlockIncrement): Forward to peer.
2540 (addAdjustmentListener): Rewrote.
2541 (removeAdjustmentListener): Rewrote.
2542 (processAdjustmentEvent): Rewrote.
2543 (paramString): Wrote.
2544 * Makefile.in: Rebuilt.
2545 * Makefile.am (awt_java_source_files): Added Button.java.
2546 * java/awt/Button.java: New file.
2547 * java/awt/Toolkit.java (createLabel): Declare.
2548 (createButton): Likewise.
2549 (createScrollbar): Likewise.
2550 (createContainer): Likewise.
2551 * java/awt/Label.java (addNotify): Wrote.
2552 (setAlignment): Call setAlignment in the peer.
2553 (setText): Call setText in the peer.
2554
2555 2000-07-28 Warren Levy <warrenl@cygnus.com>
2556
2557 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2558 NotSerializableException with just the class name.
2559
2560 2000-07-26 Andrew Haley <aph@cygnus.com>
2561
2562 * interpret.cc (continue1): Insert missing break into switch.
2563
2564 2000-07-28 Warren Levy <warrenl@cygnus.com>
2565
2566 * java/io/ObjectStreamException.java: Made constructors protected.
2567
2568 2000-07-27 Tom Tromey <tromey@cygnus.com>
2569
2570 * java/io/OutputStreamWriter.java (close): Only flush if not
2571 closed.
2572
2573 2000-07-27 Warren Levy <warrenl@cygnus.com>
2574
2575 * mauve-libgcj: Activated serialization tests.
2576 * gcj/field.h (getModifiers): Mask off unknown flags.
2577 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2578 spurious bits don't cause discrepancies.
2579 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2580 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2581 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2582 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2583 * java/lang/Throwable.java (serialVersionUID): New field.
2584 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2585 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2586 unknown flags.
2587 * java/lang/reflect/natMethod.cc: Ditto.
2588 * java/security/Key.java (serialVersionUID): Removed field for now.
2589 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2590 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2591
2592 2000-07-22 Tom Tromey <tromey@cygnus.com>
2593
2594 * java/awt/geom/RectangularShape.java (getPathIterator):
2595 Wrote.
2596
2597 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2598
2599 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2600 stub libjava/java/awt/ColorModel.java which was located in the
2601 wrong package.
2602 * libjava/java/awt/image/ComponentColorModel.java: New file.
2603 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2604 * libjava/java/awt/image/DataBuffer.java: New file.
2605 * libjava/java/awt/image/DataBufferByte.java: New file.
2606 * libjava/java/awt/image/DataBufferInt.java: New file.
2607 * libjava/java/awt/image/DataBufferUShort.java: New file.
2608 * libjava/java/awt/image/DirectColorModel.java: New file.
2609 * libjava/java/awt/image/PackedColorModel.java: New file.
2610 * libjava/java/awt/image/Raster.java: New file.
2611 * libjava/java/awt/image/SampleModel.java: New file.
2612 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2613 file.
2614 * libjava/java/awt/image/IndexColorModel.java: New file.
2615 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2616 java.awt.ColorModel stub.
2617
2618 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2619 * gnu/gcj/util/Buffers.java: New file, utility class.
2620
2621 * libjava/Makefile.am: Updated to include new files.
2622 * libjava/Makefile.in: Rebuilt.
2623
2624 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2625
2626 * java/io/StreamTokenizer.java: Merged with classpath.
2627
2628 2000-07-20 Tom Tromey <tromey@cygnus.com>
2629
2630 * Makefile.in: Rebuilt.
2631 * Makefile.am (awt_java_source_files): Updated for new files.
2632 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2633 * java/awt/Label.java: New file.
2634 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2635 (createIntersection, createUnion, getBounds2D): New methods.
2636 * java/awt/Scrollbar.java: New file.
2637 * java/awt/Shape.java: Updated to 1.2.
2638 * java/awt/geom/AffineTransform.java: New file.
2639 * java/awt/geom/Ellipse2D.java: New file.
2640 * java/awt/geom/NoninvertibleTransformException.java: New file.
2641 * java/awt/geom/PathIterator.java: New file.
2642 * java/awt/geom/Rectangle2D.java: New file.
2643 * java/awt/geom/RectangularShape.java: New file.
2644 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2645 * java/awt/geom/IllegalPathStateException.java: New file.
2646
2647 * scripts/showval.java: New file.
2648
2649 * scripts/classes.pl (scan): Print inner classes properly.
2650 * gcj/javaprims.h: Updated class list.
2651
2652 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2653 initialize String fields for interpreted classes. Fixes bug
2654 reported by Hans Boehm.
2655
2656 * java/io/File.java (getParentFile): New method, from Classpath
2657 via Oskar Liljeblad.
2658
2659 * java/util/Vector.java (remove(Object)): Implemented.
2660
2661 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2662
2663 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2664 zero return from backtrace().
2665
2666 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2667
2668 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2669 synchronized block.
2670 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2671 before calling notifyAll().
2672
2673 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2674
2675 Add missing files from last check-in:
2676 * java/awt/image/ImageConsumer.java: New file.
2677 * java/awt/image/ImageProducer.java: New file.
2678 * java/awt/image/ImageObserver.java: New file.
2679
2680 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2681
2682 Merged implementation of java.applet from classpath:
2683 * java/applet/Applet.java: New file.
2684 * java/applet/AppletContext.java: New file.
2685 * java/applet/AppletStub.java: New file.
2686 * java/applet/AudioClip.java: New file.
2687
2688 * Makefile.am: Added new java.applet classes.
2689 * Makefile.in: Rebuilt.
2690
2691 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2692
2693 AWT Stuff:
2694 * java/util/ResourceBundle.java (getLocale): stub.
2695 * Makefile.am: Added new AWT classes.
2696 * Makefile.in: Rebuilt.
2697 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2698 constructors. Fix toString() and paramString().
2699 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2700 * java/awt/CheckboxGroup.java: New class.
2701 * java/awt/ColorModel.java: New class.
2702 * java/awt/Component.java: Added stubs for most methods. Implemented
2703 event dispatch.
2704 * java/awt/Container.java: ditto.
2705 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2706 * java/awt/Cursor.java: ditto.
2707 * java/awt/Event.java: Fix paramString().
2708 * java/awt/EventQueue.java: New class. Implemented.
2709 * java/awt/Font.java: Added additional stub methods. Implemented
2710 toString().
2711 * java/awt/FontMetrics.java: New class. Stubbed.
2712 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2713 Java2D parts.
2714 * java/awt/Insets.java: New class. Implemented.
2715 * java/awt/Menu.java: Add new methods. Partially implemented.
2716 * java/awt/MenuItem.java: Add new methods and fields. Partially
2717 implemented.
2718 * java/awt/MenuShortcut.java: New class. Implemented.
2719 * java/awt/Panel.java: New class. Placeholder.
2720 * java/awt/PopupMenu.java: New class. Stubbed.
2721 * java/awt/Rectangle.java: New class. Implemented.
2722 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2723 * java/awt/event/ActionEvent.java: Implement paramString().
2724 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2725 * java/awt/event/ComponentEvent.java: Implement paramString().
2726 * java/awt/event/ContainerEvent.java: Implement paramString().
2727 * java/awt/event/FocusEvent.java: Implement paramString().
2728 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2729 * java/awt/event/HierarchyBoundsListener.java: New class.
2730 * java/awt/event/HierarchyEvent.java: New class.
2731 * java/awt/event/HierarchyListener.java: New class.
2732 * java/awt/event/InputMethodEvent.java: Implement paramString().
2733 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2734 exception if !catchExceptions.
2735 * java/awt/event/ItemEvent.java: Implement paramString().
2736 * java/awt/event/KeyEvent.java: Implement paramString().
2737 * java/awt/event/MouseEvent.java: Implement paramString().
2738 * java/awt/event/PaintEvent.java: Implement paramString().
2739 * java/awt/event/TextEvent.java: Implement paramString().
2740 * java/awt/event/WindowEvent.java: Implement paramString().
2741
2742 AWT Peer interfaces:
2743 * java/awt/peer/ButtonPeer.java: New file.
2744 * java/awt/peer/ListPeer.java: New file.
2745 * java/awt/peer/CanvasPeer.java: New file.
2746 * java/awt/peer/MenuBarPeer.java: New file.
2747 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2748 * java/awt/peer/MenuComponentPeer.java: New file.
2749 * java/awt/peer/CheckboxPeer.java: New file.
2750 * java/awt/peer/MenuItemPeer.java: New file.
2751 * java/awt/peer/ChoicePeer.java: New file.
2752 * java/awt/peer/MenuPeer.java: New file.
2753 * java/awt/peer/ComponentPeer.java: Implemented.
2754 * java/awt/peer/PanelPeer.java: New file.
2755 * java/awt/peer/ContainerPeer.java: Implemented.
2756 * java/awt/peer/PopupMenuPeer.java: New file.
2757 * java/awt/peer/DialogPeer.java: New file.
2758 * java/awt/peer/ScrollPanePeer.java: New file.
2759 * java/awt/peer/FileDialogPeer.java: New file.
2760 * java/awt/peer/ScrollbarPeer.java: New file.
2761 * java/awt/peer/FontPeer.java: New file.
2762 * java/awt/peer/TextAreaPeer.java: New file.
2763 * java/awt/peer/FramePeer.java: Implemented.
2764 * java/awt/peer/TextComponentPeer.java: New file.
2765 * java/awt/peer/LabelPeer.java: New file.
2766 * java/awt/peer/TextFieldPeer.java: New file.
2767 * java/awt/peer/LightweightPeer.java: New file.
2768 * java/awt/peer/WindowPeer.java: Implemented.
2769
2770 2000-07-06 Tom Tromey <tromey@cygnus.com>
2771
2772 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2773 Initialize static final String fields.
2774
2775 2000-07-03 Tom Tromey <tromey@cygnus.com>
2776
2777 * java/io/PrintWriter.java (print): Call write(String), not
2778 print(String). See PR libgcj/277.
2779 (print(String)): Use write, not out.write.
2780
2781 2000-06-30 Tom Tromey <tromey@cygnus.com>
2782
2783 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2784
2785 2000-06-27 Andrew Haley <aph@cygnus.com>
2786
2787 * java/io/File.java (createTempFile): Close the FileDescriptor
2788 used to create a temp file. Fixes some of PR 203.
2789 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2790 collection if we run out of file handles.
2791
2792 2000-06-28 Warren Levy <warrenl@cygnus.com>
2793
2794 * gnu/java/security/provider/Gnu.java: New file.
2795 * gnu/java/security/provider/SHA.java: New file.
2796 * gnu/java/security/provider/SHA1PRNG.java: New file.
2797 * Makefile.am: Added the above files.
2798 * Makefile.in: Rebuilt.
2799
2800 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2801
2802 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2803
2804 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2805 (destroyed_flag): Removed.
2806 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2807 (activeCount): Added spec note.
2808
2809 2000-06-27 Warren Levy <warrenl@cygnus.com>
2810
2811 * java/security/Principal.java: New file.
2812 * Makefile.am: Added Principal.java.
2813 * Makefile.in: Rebuilt.
2814
2815 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2816
2817 * java/awt/event/MouseEvent.java: Fixed coordinate space
2818 confusion.
2819
2820 2000-06-27 Tom Tromey <tromey@cygnus.com>
2821
2822 * java/io/PushbackInputStream.java (read): If there are characters
2823 in the buffer, don't also call super.read().
2824 * java/io/PushbackReader.java (read): If there are characters in
2825 the buffer, don't also call super.read().
2826
2827 * java/lang/Double.java (valueOf): Call parseDouble().
2828
2829 2000-06-26 Warren Levy <warrenl@cygnus.com>
2830
2831 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2832 (newVal): Renamed to newValue.
2833 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2834 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2835 (revokeNow): Renamed to invalidateRefs.
2836 * java/io/OptionalDataException.java: Updated FIXME.
2837 (eof): New placeholder field.
2838 (length); Ditto.
2839 * java/io/WriteAbortedException.java (message): Made transient.
2840 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2841 * java/lang/Throwable.java (stackTrace): Made transient.
2842 * java/net/InetAddress.java: Made Serializable.
2843 * java/security/KeyPair.java: Made Serializable.
2844 * java/security/Provider.java: Replaced with Classpath version that
2845 implements serialization and proper methods.
2846 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2847 (limits): Renamed to choiceLimits.
2848
2849 2000-06-24 Tom Tromey <tromey@cygnus.com>
2850
2851 * java/lang/natDouble.cc (parseDouble): Renamed from
2852 doubleValueOf.
2853 * java/lang/Double.java (parseDouble): Renamed from
2854 doubleValueOf. Now public.
2855
2856 2000-06-23 Andrew Haley <aph@cygnus.com>
2857
2858 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2859 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2860
2861 2000-06-23 Tom Tromey <tromey@cygnus.com>
2862
2863 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2864 * java/lang/natDouble.cc: Always include <alloca.h>.
2865 Fix for PR libgcj/267.
2866
2867 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2868
2869 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2870 comply with classpath VM spec.
2871 (add(Group)): Rename to addGroup().
2872 * java/lang/Thread.java (Thread): Use addThread().
2873 * java/lang/natThread.cc (finish_): Use removeThread().
2874
2875 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2876
2877 * java/lang/ThreadGroup.java: Merged with classpath.
2878 * prims.cc (_Jv_RunMain): Don't use `main_group'.
2879 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2880 argument.
2881 * java/lang/Thread.java (Thread): Bootstrap initial thread from
2882 ThreadGroup.root if Thread.currentThread is null. Honour the
2883 ThreadGroup's max priority setting.
2884
2885 2000-06-18 Tom Tromey <tromey@cygnus.com>
2886
2887 * java/lang/natClass.cc (forName): Removed dead code. Initialize
2888 returned class. For PR gcj/260.
2889
2890 2000-06-16 Tom Tromey <tromey@cygnus.com>
2891
2892 Fix for PR libgcj/261:
2893 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2894 argument.
2895 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2896 argument. (This is a patch from long ago that somehow went
2897 missing.)
2898
2899 2000-06-15 Tom Tromey <tromey@cygnus.com>
2900
2901 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2902 (read): Use it.
2903 (write): Likewise.
2904
2905 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2906
2907 Fix for PR java.lang/258:
2908 * prims.cc (_Jv_PrimClass): Set state of primitive class to
2909 JV_STATE_DONE, to prevent accidental initialization.
2910 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
2911 _Jv_InterfaceAssignableFrom if target is an interface and source is an
2912 interface or an abstract class. Remove redundant initializeClass calls.
2913 Remove duplicate if_idt test.
2914 (_Jv_InterfaceAssignableFrom): New function.
2915 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2916
2917 2000-05-31 Tom Tromey <tromey@cygnus.com>
2918
2919 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2920 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2921 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2922 (NUM_OBJECT_METHODS): New define.
2923 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2924 `array_vtable' parameter. Added assertion.
2925 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2926 parameter.
2927
2928 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
2929
2930 * gcj/cni.h: Include <string.h>.
2931 * defineclass.cc: Include <alloca.h>.
2932 * interpret.cc: Ditto.
2933 * gij.cc: Include <stdlib.h>.
2934
2935 2000-05-30 Tom Tromey <tromey@cygnus.com>
2936
2937 * include/name-finder.h: Include <sys/wait.h>.
2938 (_Jv_name_finder::pid): Now of type `pid_t'.
2939 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2940 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2941 `proc.waitFor()'.
2942
2943 2000-05-24 Warren Levy <warrenl@cygnus.com>
2944
2945 * java/io/ObjectOutputStream.java (writeObject): Use component type
2946 when writing arrays.
2947 Fixed typo.
2948
2949 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2950
2951 Fix for PR libgcj/226:
2952 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2953 since this is an installed header.
2954
2955 Fix for PR libgcj/228:
2956 * java/util/zip/ZipFile (getInputStream): Create inflater with
2957 nowrapper option.
2958
2959 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2960 with DataFormatException.
2961
2962 2000-05-20 Tom Tromey <tromey@cygnus.com>
2963
2964 * Makefile.in: Rebuilt.
2965 * Makefile.am (hack1): Removed.
2966 (awto_files): Likewise.
2967 (libgcjawt_la_SOURCES): Likewise.
2968 (EXTRA_libgcjawt_la_SOURCES): Likewise.
2969 (libgcjawt_la_DEPENDENCIES): Likewise.
2970 (libgcjawt_la_LIBADD): Likewise.
2971 (libgcjawt_la_LDFLAGS): Likewise.
2972 (libgcjawt_la_LINK): Likewise.
2973 ($(awt_java_source_files:.java=.class)): Likewise.
2974 (libgcj.zip): Don't depend on AWT files.
2975 (MOSTLYCLEANFILES): Don't include AWT files.
2976 ($(awto_files)): Removed.
2977 (nat_headers): Removed AWT files.
2978 (cond_awt_java_source_files): Removed.
2979 (ordinary_java_source_files): Added awt_java_source_files.
2980 * libgcj.spec.in (*lib): Removed -lgcjawt.
2981 * configure: Rebuilt.
2982 * configure.in: Removed --enable-java-awt option.
2983
2984 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2985
2986 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
2987 (ZipEntry): Copy the `name' field.
2988 (clone): Implement JDK1.2 method.
2989 (setCompressedSize): ditto.
2990 (hashCode): ditto.
2991
2992 2000-05-19 Tom Tromey <tromey@cygnus.com>
2993
2994 * java/io/BufferedWriter.java: Merged with Classpath.
2995 * java/io/BufferedOutputStream.java: Merged with Classpath.
2996
2997 2000-05-16 Andrew Haley <aph@cygnus.com>
2998
2999 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3000 build_ia64_frame_state.
3001 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3002 defintion in gcc.
3003
3004 2000-05-15 Warren Levy <warrenl@cygnus.com>
3005
3006 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3007 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3008 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3009 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3010 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3011 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3012 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3013 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3014 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3015 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3016 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3017 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3018 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3019 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3020 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3021 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3022 * gnu/gcj/io/NullOutputStream.java: Removed.
3023 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3024 * gnu/gcj/lang/ArrayHelper.java: Removed.
3025 * gnu/gcj/lang/ClassHelper.java: Removed.
3026 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3027
3028 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3029 * gnu/java/beans/EmptyBeanInfo.java: New file.
3030 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3031 * gnu/java/beans/IntrospectionIncubator.java: New file.
3032 * gnu/java/beans/editors/ColorEditor.java: New file.
3033 * gnu/java/beans/editors/FontEditor.java: New file.
3034 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3035 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3036 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3037 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3038 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3039 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3040 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3041 * gnu/java/beans/editors/StringEditor.java: New file.
3042 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3043 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3044 * gnu/java/io/NullOutputStream.java: New file.
3045 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3046 * gnu/java/lang/ArrayHelper.java: New file.
3047 * gnu/java/lang/ClassHelper.java: New file.
3048 * gnu/java/lang/reflect/TypeSignature.java: New file.
3049
3050 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3051 namespace back to the original Classpath gnu/java namespace.
3052 * Makefile.in: Rebuilt.
3053
3054 * java/beans/Beans.java: Namespace change.
3055 * java/beans/EventSetDescriptor.java: Namespace change.
3056 * java/beans/Introspector.java: Namespace change.
3057 * java/beans/PropertyEditorManager.java: Namespace change.
3058 * java/io/ObjectInputStream.java: Namespace change.
3059 * java/io/ObjectOutputStream.java: Namespace change.
3060 * java/io/ObjectStreamClass.java: Namespace change.
3061 * java/io/ObjectStreamField.java: Namespace change.
3062
3063 2000-04-21 Warren Levy <warrenl@cygnus.com>
3064
3065 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3066 now that compiler patch is available.
3067 Removed unneeded System.loadLibrary.
3068 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3069 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3070
3071 2000-04-19 Andrew Haley <aph@cygnus.com>
3072
3073 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3074 and target classes have been initialized.
3075
3076 2000-04-19 Andrew Haley <aph@cygnus.com>
3077
3078 * java/lang/String.java: implement Serializable, Comparable.
3079 (compareTo (Object)): New method.
3080
3081 2000-04-19 Warren Levy <warrenl@cygnus.com>
3082
3083 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3084 instead of getField to retrieve non-public field.
3085 (getSerialPersistantFields): Ditto.
3086
3087 2000-04-18 Warren Levy <warrenl@cygnus.com>
3088
3089 * mauve-libgcj: Turned off object serialization tests temporarily
3090 due to compiler error.
3091
3092 2000-04-17 Warren Levy <warrenl@cygnus.com>
3093
3094 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3095 to avoid build problem.
3096 (DEBUGln): Ditto.
3097 * mauve-libgcj: Turned on object serialization tests.
3098
3099 2000-04-17 Tom Tromey <tromey@cygnus.com>
3100
3101 * libgcj.spec.in (*lib): Added -lgcjawt.
3102
3103 2000-04-17 Andrew Haley <aph@cygnus.com>
3104
3105 * Makefile.am: Add new files:
3106 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3107 gnu/gcj/io/shs.cc.
3108 * Makefile.in: Rebuilt.
3109
3110 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3111 interface that has no implementations.
3112 Check for an attempt to assign an abstract class to an interface.
3113
3114 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3115 if we fail to find MessageDigest.getInstance ("SHA").
3116
3117 * gnu/gcj/io/SimpleSHSStream.java: New file.
3118 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3119 * gnu/gcj/io/shs.cc: New file.
3120 * gnu/gcj/io/shs.h: new file.
3121
3122 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3123 serializable.
3124
3125 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3126 punctuation from the classname of an array element.
3127
3128 * gcj/javaprims.h: Add SimpleDigestStream.
3129
3130 2000-04-17 Andrew Haley <aph@cygnus.com>
3131
3132 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3133 to getPrivateField for superclasses.
3134
3135 2000-04-14 Andrew Haley <aph@cygnus.com>
3136
3137 * Makefile.am: Add new files:
3138 java/io/ObjectOutputStream$PutField.h,
3139 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3140 java/io/natObjectOutputStream.cc
3141 * Makefile.in: Rebuilt.
3142 * gcj/Makefile.in: Rebuilt.
3143 * include/Makefile.in: Rebuilt.
3144 * java/lang/Class.h (getPrivateField): New method.
3145 (getPrivateMethod): Ditto.
3146 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3147 and java::io::ObjectStreamClass our friends.
3148 * java/lang/natClass.cc (getPrivateField): New method.
3149 (getPrivateMethod): Ditto.
3150 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3151 * gcj/javaprims.h: Add serialization classes.
3152 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3153 (setByteField): Ditto.
3154 (setCharField): Ditto.
3155 (setDoubleField): Ditto.
3156 (setFloatField): Ditto.
3157 (setIntField): Ditto.
3158 (setLongField): Ditto.
3159 (setShortField): Ditto.
3160 (setObjectField): Ditto.
3161 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3162 Java.
3163 (getByteField): Ditto.
3164 (getCharField): Ditto.
3165 (getDoubleField): Ditto.
3166 (getFloatField): Ditto.
3167 (getIntField): Ditto.
3168 (getLongField): Ditto.
3169 (getShortField): Ditto.
3170 (getObjectField): Ditto.
3171 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3172 Java.
3173 (getSerialPersistantFields): Ditto.
3174 (getDefinedSUID): Ditto.
3175 * java/io/natObjectOutputStream.cc: New file.
3176 * java/io/natObjectInputStream.cc: New file.
3177
3178 2000-04-13 Warren Levy <warrenl@cygnus.com>
3179
3180 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3181 problems. Revert to previous version to reproduce and when fixed.
3182
3183 2000-04-13 Warren Levy <warrenl@cygnus.com>
3184
3185 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3186 * gnu/gcj/io/NullOutputStream.java: New file.
3187 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3188 * java/io/BlockDataException.java: New file.
3189 * java/io/Externalizable.java: New file.
3190 * java/io/InvalidClassException.java: New file.
3191 * java/io/InvalidObjectException.java: New file.
3192 * java/io/NotActiveException.java: New file.
3193 * java/io/NotSerializableException.java: New file.
3194 * java/io/ObjectInput.java: New file.
3195 * java/io/ObjectInputStream.java: New file.
3196 * java/io/ObjectInputValidation.java: New file.
3197 * java/io/ObjectOutput.java: New file.
3198 * java/io/ObjectOutputStream.java: New file.
3199 * java/io/ObjectStreamClass.java: New file.
3200 * java/io/ObjectStreamConstants.java: New file.
3201 * java/io/ObjectStreamField.java: New file.
3202 * java/io/Replaceable.java: New file.
3203 * java/io/Resolvable.java: New file.
3204 * java/io/SerializablePermission.java: New file.
3205 * java/io/WriteAbortedException.java: New file.
3206 * java/security/BasicPermission.java: New file.
3207 * java/security/DigestOutputStream.java: New file.
3208 * java/security/Guard.java: New file.
3209 * java/security/Permission.java: New file.
3210 * java/security/PermissionCollection.java: New file.
3211 * Makefile.am: Added above files.
3212 * Makefile.in: Rebuilt.
3213
3214 * java/beans/Beans.java (instantiate): Activated serialization code.
3215 * java/lang/SecurityManager.java (checkPermission): New method.
3216
3217 2000-04-12 Warren Levy <warrenl@cygnus.com>
3218
3219 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3220 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3221 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3222 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3223 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3224 * gnu/gcj/beans/editors/FontEditor.java: New file.
3225 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3226 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3227 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3228 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3229 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3230 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3231 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3232 * gnu/gcj/beans/editors/StringEditor.java: New file.
3233 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3234 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3235 * gnu/gcj/lang/ArrayHelper.java: New file.
3236 * gnu/gcj/lang/ClassHelper.java: New file.
3237 * java/beans/BeanDescriptor.java: New file.
3238 * java/beans/BeanInfo.java: New file.
3239 * java/beans/Beans.java: New file.
3240 * java/beans/Customizer.java: New file.
3241 * java/beans/DesignMode.java: New file.
3242 * java/beans/EventSetDescriptor.java: New file.
3243 * java/beans/FeatureDescriptor.java: New file.
3244 * java/beans/IndexedPropertyDescriptor.java: New file.
3245 * java/beans/IntrospectionException.java: New file.
3246 * java/beans/Introspector.java: New file.
3247 * java/beans/MethodDescriptor.java: New file.
3248 * java/beans/ParameterDescriptor.java: New file.
3249 * java/beans/PropertyChangeEvent.java: New file.
3250 * java/beans/PropertyChangeListener.java: New file.
3251 * java/beans/PropertyChangeSupport.java: New file.
3252 * java/beans/PropertyDescriptor.java: New file.
3253 * java/beans/PropertyEditor.java: New file.
3254 * java/beans/PropertyEditorManager.java: New file.
3255 * java/beans/PropertyEditorSupport.java: New file.
3256 * java/beans/PropertyVetoException.java: New file.
3257 * java/beans/SimpleBeanInfo.java: New file.
3258 * java/beans/VetoableChangeListener.java: New file.
3259 * java/beans/VetoableChangeSupport.java: New file.
3260 * java/beans/Visibility.java: New file.
3261 * java/beans/beancontext/BeanContext.java: New file.
3262 * java/beans/beancontext/BeanContextChild.java: New file.
3263 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3264 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3265 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3266 * java/beans/beancontext/BeanContextEvent.java: New file.
3267 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3268 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3269 * java/beans/beancontext/BeanContextProxy.java: New file.
3270 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3271 New file.
3272 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3273 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3274 New file.
3275 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3276 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3277 New file.
3278 * java/beans/beancontext/BeanContextServices.java: New file.
3279 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3280 * java/util/AbstractCollection.java: New file.
3281 * java/util/AbstractList.java: New file.
3282 * java/util/Arrays.java: New file.
3283 * Makefile.am: Added above files.
3284 * Makefile.in: Rebuilt.
3285
3286 2000-04-11 Warren Levy <warrenl@cygnus.com>
3287
3288 * java/awt/AWTError.java: New file.
3289 * java/awt/AWTEvent.java: New file.
3290 * java/awt/AWTException.java: New file.
3291 * java/awt/ActiveEvent.java: New file.
3292 * java/awt/Adjustable.java: New file.
3293 * java/awt/BorderLayout.java: New file.
3294 * java/awt/Color.java: New file.
3295 * java/awt/Component.java: New file.
3296 * java/awt/Container.java: New file.
3297 * java/awt/Dimension.java: New file.
3298 * java/awt/Event.java: New file.
3299 * java/awt/Font.java: New file.
3300 * java/awt/Frame.java: New file.
3301 * java/awt/Graphics.java: New file.
3302 * java/awt/IllegalComponentStateException.java: New file.
3303 * java/awt/Image.java: New file.
3304 * java/awt/ItemSelectable.java: New file.
3305 * java/awt/LayoutManager.java: New file.
3306 * java/awt/LayoutManager2.java: New file.
3307 * java/awt/Menu.java: New file.
3308 * java/awt/MenuBar.java: New file.
3309 * java/awt/MenuComponent.java: New file.
3310 * java/awt/MenuContainer.java: New file.
3311 * java/awt/MenuItem.java: New file.
3312 * java/awt/Paint.java: New file.
3313 * java/awt/PaintContext.java: New file.
3314 * java/awt/Point.java: New file.
3315 * java/awt/Rectangle.java: New file.
3316 * java/awt/Shape.java: New file.
3317 * java/awt/TextArea.java: New file.
3318 * java/awt/TextComponent.java: New file.
3319 * java/awt/Toolkit.java: New file.
3320 * java/awt/Transparency.java: New file.
3321 * java/awt/Window.java: New file.
3322 * java/awt/natToolkit.cc: New file.
3323 * java/awt/event/AWTEventListener.java: New file.
3324 * java/awt/event/ActionEvent.java: New file.
3325 * java/awt/event/ActionListener.java: New file.
3326 * java/awt/event/AdjustmentEvent.java: New file.
3327 * java/awt/event/AdjustmentListener.java: New file.
3328 * java/awt/event/ComponentAdapter.java: New file.
3329 * java/awt/event/ComponentEvent.java: New file.
3330 * java/awt/event/ComponentListener.java: New file.
3331 * java/awt/event/ContainerAdapter.java: New file.
3332 * java/awt/event/ContainerEvent.java: New file.
3333 * java/awt/event/ContainerListener.java: New file.
3334 * java/awt/event/FocusAdapter.java: New file.
3335 * java/awt/event/FocusEvent.java: New file.
3336 * java/awt/event/FocusListener.java: New file.
3337 * java/awt/event/InputEvent.java: New file.
3338 * java/awt/event/InputMethodEvent.java: New file.
3339 * java/awt/event/InputMethodListener.java: New file.
3340 * java/awt/event/InvocationEvent.java: New file.
3341 * java/awt/event/ItemEvent.java: New file.
3342 * java/awt/event/ItemListener.java: New file.
3343 * java/awt/event/KeyAdapter.java: New file.
3344 * java/awt/event/KeyEvent.java: New file.
3345 * java/awt/event/KeyListener.java: New file.
3346 * java/awt/event/MouseAdapter.java: New file.
3347 * java/awt/event/MouseEvent.java: New file.
3348 * java/awt/event/MouseListener.java: New file.
3349 * java/awt/event/MouseMotionAdapter.java: New file.
3350 * java/awt/event/MouseMotionListener.java: New file.
3351 * java/awt/event/PaintEvent.java: New file.
3352 * java/awt/event/TextEvent.java: New file.
3353 * java/awt/event/TextListener.java: New file.
3354 * java/awt/event/WindowAdapter.java: New file.
3355 * java/awt/event/WindowEvent.java: New file.
3356 * java/awt/event/WindowListener.java: New file.
3357 * java/awt/geom/Dimension2D.java: New file.
3358 * java/awt/geom/Point2D.java: New file.
3359 * java/awt/peer/ComponentPeer.java: New file.
3360 * java/awt/peer/ContainerPeer.java: New file.
3361 * java/awt/peer/FramePeer.java: New file.
3362 * java/awt/peer/WindowPeer.java: New file.
3363 * java/util/Collection.java: New file.
3364 * java/util/Comparator.java: New file.
3365 * java/util/Iterator.java: New file.
3366 * java/util/List.java: New file.
3367 * java/util/ListIterator.java: New file.
3368 * Makefile.am: Added above files.
3369 * Makefile.in: Rebuilt.
3370
3371 2000-04-10 Warren Levy <warrenl@cygnus.com>
3372
3373 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3374 * java/lang/FirstThread.java: Ditto.
3375 * java/lang/StringBuffer.java: Ditto.
3376 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3377
3378 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3379 Special case handled in java.math.BigInteger.
3380 * java/math/BigInteger.java (divide): Handle the special case when
3381 dividing by 1 and the high bit of the dividend is set.
3382 (setShiftRight): Handle case when count == 0.
3383
3384 2000-04-05 Andrew Haley <aph@cygnus.com>
3385
3386 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3387 special case.
3388
3389 2000-04-05 Andrew Haley <aph@cygnus.com>
3390
3391 * sysdep/ia64.c (rse_address_add): Delete.
3392 (IS_NaT_COLLECTION_ADDR): Delete.
3393 (ia64_backtrace_helper): check for null unwind_info.
3394
3395 * sysdep/ia64-frame.h: add calc_caller_bsp.
3396
3397 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3398 PrintWriter.
3399
3400 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3401 (_Jv_remI): Likewise.
3402 (_Jv_divJ): Likewise.
3403 (_Jv_remJ): Likewise.
3404
3405 * interpret.cc (continue1): Use divide subroutines to guarantee
3406 correct Java standard behaviour.
3407 Floating-point division should not abort; make it so.
3408
3409 2000-03-29 Tom Tromey <tromey@cygnus.com>
3410
3411 * configure: Rebuilt.
3412 * configure.in: Test against `libgcj_sjlj', not
3413 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3414 to be set even when using sjlj.
3415
3416 2000-03-24 Andrew Haley <aph@cygnus.com>
3417
3418 * Makefile.am: Add file addr2name.awk.
3419 * Makefile.in: Rebuilt.
3420 * addr2name.awk: New file.
3421 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3422 lookups on ia64.
3423 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3424 blank line.
3425
3426 2000-03-22 Andrew Haley <aph@cygnus.com>
3427
3428 * configure.host: Add -funwind-tables for IA64.
3429 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3430 * Makefile.in: Rebuilt.
3431 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3432 * sysdep/ia64.c: New file.
3433 * sysdep/ia64-frame.h: New file.
3434 * configure.in: Add sysdep/ia64.c for ia64.
3435 * configure: Rebuilt.
3436
3437 2000-03-17 Andrew Haley <aph@cygnus.com>
3438
3439 * java/lang/natString.cc: Remove `register' keyword.
3440 interpret.cc: ditto.
3441
3442 2000-03-16 Andrew Haley <aph@cygnus.com>
3443
3444 * configure.host (ia64): Enable interpreter.
3445
3446 2000-03-14 Hans Boehm <boehm@acm.org>
3447
3448 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3449
3450 2000-03-14 Andrew Haley <aph@cygnus.com>
3451
3452 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3453 `_exception'.
3454
3455 2000-03-10 Andrew Haley <aph@cygnus.com>
3456
3457 * java/lang/ieeefp.h: Import latest version from fdlibm.
3458
3459 2000-03-14 Andrew Haley <aph@cygnus.com>
3460
3461 * prims.cc (_Jv_ThrowSignal): New function.
3462 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3463 (catch_fpe): Ditto.
3464 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3465 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3466 * include/ppc-signal.h: New file.
3467
3468 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3469
3470 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3471 * java/lang/natThread.java (initialize_native): Cast `data' to
3472 jobject.
3473 * gnu/gcj/RawData.java: Clarify documentation.
3474
3475 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3476 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3477 `jarFile', not `jarFileURL'.
3478
3479 2000-05-15 Andrew Haley <aph@cygnus.com>
3480
3481 * include/ppc-signal.h: New file.
3482
3483 2000-05-11 Tom Tromey <tromey@cygnus.com>
3484
3485 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3486 file headers, don't include `size' in the skip call.
3487
3488 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3489
3490 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3491 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3492 arrayCopy().
3493 (replace): Reimplemented. Fix javadoc.
3494 (reverse): Call ensureCapacity_unsynchronized().
3495 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3496
3497 (replace): Calculate length for arraycopy() correctly.
3498
3499 2000-05-09 Tom Tromey <tromey@cygnus.com>
3500
3501 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3502 shared.
3503 (insert(int,char[],int,int): New method.
3504 (delete): New method from Classpath.
3505 (deleteCharAt): Likewise.
3506 (substring): Likewise.
3507 (shared): No longer private.
3508 Added JavaDoc comments from Classpath.
3509 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3510 shared.
3511
3512 2000-05-07 Tom Tromey <tromey@cygnus.com>
3513
3514 * Makefile.in: Rebuilt.
3515 * Makefile.am (LIBLINK): New macro.
3516 (libgcj_la_LINK): Use it.
3517 (libgcjawt_la_LINK): Likewise.
3518
3519 2000-05-06 Tom Tromey <tromey@cygnus.com>
3520
3521 * Makefile.in: Rebuilt.
3522 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3523
3524 2000-05-05 Tom Tromey <tromey@cygnus.com>
3525
3526 Fix for PR libgcj/220:
3527 * Makefile.in: Rebuilt.
3528 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3529 (jv_convert_LDFLAGS): Likewise.
3530 (libgcj_la_LDFLAGS): Likewise.
3531 (GCJLINK): New macro.
3532 (jv_convert_LINK): Use it.
3533 (gij_LINK): Likewise.
3534 (libgcj_la_LINK): New macro.
3535 (libgcjawt_la_LINK): Likewise.
3536
3537 2000-05-04 Tom Tromey <tromey@cygnus.com>
3538
3539 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3540 field.
3541 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3542 `0x0008'.
3543 Include Modifier.h.
3544
3545 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3546
3547 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3548 (_Jv_IsAssignableFrom): Ditto.
3549 (_Jv_IsInstanceOf): Ditto.
3550 (_Jv_CheckCast): Ditto.
3551 (_Jv_CheckArrayStore): Ditto.
3552 * java/lang/Class.h (_Jv_InitClass): Ditto.
3553 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3554 not `0'.
3555 (notify): Ditto.
3556 (notifyAll): Ditto.
3557 (wait): Ditto.
3558 (_Jv_MonitorExit): Ditto.
3559 * boehm.cc (_Jv_MarkObj): Ditto.
3560 (_Jv_MarkObj): Ditto.
3561 (_Jv_MarkArray): Ditto.
3562 * prims.cc (_Jv_AllocObject): Ditto.
3563 (_Jv_NewObjectArray): Ditto.
3564 (_Jv_NewPrimArray): Ditto.
3565 (_Jv_Malloc): Ditto.
3566 (_Jv_Realloc): Ditto.
3567 (_Jv_MallocUnchecked): Ditto.
3568 (_Jv_divI): Ditto.
3569 (_Jv_remI): Ditto.
3570 (_Jv_divJ): Ditto.
3571 (_Jv_remJ): Ditto.
3572
3573 2000-05-04 Tom Tromey <tromey@cygnus.com>
3574
3575 * java/util/Locale.java (Locale): Don't explicitly check for
3576 null.
3577 * java/util/Hashtable.java (containsKey): Don't explicitly check
3578 for null.
3579 (get): Likewise.
3580 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3581 null.
3582 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3583 for null.
3584 * java/text/StringCharacterIterator.java
3585 (StringCharacterIterator): Don't check for null.
3586 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3587 for null pointer.
3588 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3589 check for null pointer.
3590 (leaveGroup): Likewise.
3591 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3592 comment.
3593 (setData): Likewise.
3594 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3595 for `p==null'.
3596
3597 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3598
3599 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3600 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3601 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3602 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3603 -rpath for in-gcc builds.
3604 * Makefile.in: Rebuilt.
3605
3606 2000-04-28 Tom Tromey <tromey@cygnus.com>
3607
3608 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3609 Fix for PR gcj/218.
3610
3611 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3612
3613 * libjava/java/lang/String.java (toString): Remove `final' hack.
3614
3615 2000-04-05 Tom Tromey <tromey@cygnus.com>
3616
3617 Runtime support for PR gcj/2:
3618 * prims.cc (_Jv_ThrowNullPointerException): New function.
3619 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3620
3621 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3622
3623 * prims.cc (_Jv_NewObjectArray): Fix typo.
3624
3625 2000-04-26 Tom Tromey <tromey@cygnus.com>
3626
3627 * Makefile.in: Rebuilt.
3628 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3629
3630 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3631
3632 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3633 calling main.
3634
3635 2000-04-22 Anthony Green <green@cygnus.com>
3636
3637 * include/jvm.h (__builtin_expect): Define as unused for now.
3638 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3639 (notify): Ditto.
3640 (notifyAll): Ditto.
3641 (wait): Ditto.
3642 (_Jv_MonitorExit): Ditto.
3643 * boehm.cc (_Jv_MarkObj): Ditto.
3644 (_Jv_MarkObj): Ditto.
3645 (_Jv_MarkArray): Ditto.
3646 (_Jv_AllocBytes): Ditto.
3647 * prims.cc (_Jv_AllocObject): Ditto.
3648 (_Jv_NewObjectArray): Ditto.
3649 (_Jv_NewPrimArray): Ditto.
3650 (_Jv_Malloc): Ditto.
3651 (_Jv_Realloc): Ditto.
3652 (_Jv_MallocUnchecked): Ditto.
3653 (_Jv_divI): Ditto.
3654 (_Jv_remI): Ditto.
3655 (_Jv_divJ): Ditto.
3656 (_Jv_remJ): Ditto.
3657
3658 * include/Makefile.in: Rebuilt.
3659 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3660
3661 2000-04-21 Tom Tromey <tromey@cygnus.com>
3662
3663 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3664 Yet another new version from Classpath.
3665
3666 Fix for PR libgcj/15:
3667 * java/util/natGregorianCalendar.cc (_REENTRANT,
3668 _POSIX_PTHREAD_SEMANTICS): Don't define.
3669 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3670 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3671 Don't define.
3672 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3673 define.
3674 * configure: Rebuilt.
3675 * configure.in: If using POSIX threads, define _REENTRANT if
3676 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3677 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3678
3679 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3680 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3681 version from Classpath.
3682
3683 Fix for PR libgcj/213:
3684 * Makefile.in: Rebuilt.
3685 * Makefile.am (gij_SOURCES): Added gij.cc.
3686 (EXTRA_gij_SOURCES): Removed.
3687 (gij_LDADD): Removed gij.lo.
3688 (gij_DEPENDENCIES): Likewise.
3689 ($(gij_OBJECTS)): Depend on nat_headers.
3690
3691 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3692 `setURL', not `url.set'.
3693
3694 2000-04-20 Tom Tromey <tromey@cygnus.com>
3695
3696 Fix for PR java.io/204:
3697 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3698 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3699 from Classpath.
3700
3701 Fix for PR libgcj/212:
3702 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3703 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3704 * java/lang/Class.h (_Jv_word): Declare.
3705
3706 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3707
3708 2000-04-19 Tom Tromey <tromey@cygnus.com>
3709
3710 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3711 doesn't have a loader.
3712
3713 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3714
3715 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3716 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3717
3718 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3719
3720 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3721 libgcj/202.
3722 (available): Initialize `where' to prevent bogus compiler warning.
3723
3724 2000-04-12 Tom Tromey <tromey@cygnus.com>
3725
3726 * java/lang/natString.cc (intern): Temporarily disable finalizer
3727 registration.
3728
3729 * java/lang/natString.cc (unintern): Added `obj' argument.
3730 (intern): Register finalizer for string.
3731 * java/lang/String.java (unintern): Now static; added obj
3732 argument.
3733
3734 2000-04-11 Tom Tromey <tromey@cygnus.com>
3735
3736 * java/util/Vector.java (VectorEnumeration): Now `final'.
3737 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3738 (HashtableEnumeration): Likewise.
3739 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3740 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3741
3742 2000-04-10 Warren Levy <warrenl@cygnus.com>
3743
3744 * java/io/ObjectStreamException.java: New file.
3745 * java/io/OptionalDataException.java: New file.
3746 * java/io/StreamCorruptedException.java: New file.
3747 * java/math/BigDecimal.java: New file.
3748 * java/sql/CallableStatement.java: New file.
3749 * java/sql/Connection.java: New file.
3750 * java/sql/DataTruncation.java: New file.
3751 * java/sql/DatabaseMetaData.java: New file.
3752 * java/sql/Date.java: New file.
3753 * java/sql/Driver.java: New file.
3754 * java/sql/DriverManager.java: New file.
3755 * java/sql/DriverPropertyInfo.java: New file.
3756 * java/sql/PreparedStatement.java: New file.
3757 * java/sql/ResultSet.java: New file.
3758 * java/sql/ResultSetMetaData.java: New file.
3759 * java/sql/SQLException.java: New file.
3760 * java/sql/SQLWarning.java: New file.
3761 * java/sql/Statement.java: New file.
3762 * java/sql/Time.java: New file.
3763 * java/sql/Timestamp.java: New file.
3764 * java/sql/Types.java: New file.
3765 * Makefile.am: Added above new files.
3766 * Makefile.in: Rebuilt.
3767
3768 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3769 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3770 DatagramSocket constructor instead of null.
3771
3772 2000-04-08 Anthony Green <green@cygnus.com>
3773
3774 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3775 _JV_NOT_OWNER.
3776
3777 2000-04-08 Anthony Green <green@cygnus.com>
3778
3779 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3780 (_Jv_MutexUnlock): Ditto.
3781 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3782 (_Jv_MutexUnlock): Ditto.
3783
3784 2000-04-08 Anthony Green <green@cygnus.com>
3785
3786 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3787 (ensureCapacity_unsynchronized): New private method.
3788 (append): Use ensureCapacity_unsynchronized.
3789
3790 2000-04-08 Tom Tromey <tromey@cygnus.com>
3791
3792 * Makefile.in: Rebuilt.
3793 * Makefile.am (awt_java_source_files): Added new files.
3794 * java/awt/IllegalComponentStateException.java: New file.
3795 * java/awt/ItemSelectable.java: New file.
3796 * java/awt/event/WindowEvent.java: Finished.
3797 * java/awt/event/TextEvent.java: Finished.
3798 * java/awt/event/ContainerEvent.java: New file.
3799 * java/awt/Component.java (getX, getY): New methods.
3800 * java/awt/event/PaintEvent.java: New file.
3801 * java/awt/event/MouseEvent.java: New file.
3802 * java/awt/ActiveEvent.java: New file.
3803 * java/awt/event/KeyEvent.java: Finished.
3804 * java/awt/event/ItemEvent.java: New file.
3805 * java/awt/Adjustable.java: New file.
3806 * java/awt/event/InputMethodEvent.java: New file.
3807 * java/awt/event/InputEvent.java: Finished.
3808 * java/awt/event/FocusEvent.java: New file.
3809 * java/awt/event/MouseMotionAdapter.java: New file.
3810 * java/awt/event/MouseAdapter.java: New file.
3811 * java/awt/event/KeyAdapter.java: New file.
3812 * java/awt/event/FocusAdapter.java: New file.
3813 * java/awt/event/ContainerAdapter.java: New file.
3814 * java/awt/event/ComponentEvent.java: Finished.
3815 * java/awt/event/AdjustmentEvent.java: New file.
3816 * java/awt/event/ComponentAdapter.java: New file.
3817 * java/awt/event/ActionEvent.java: Finished.
3818 * java/awt/event/MouseMotionListener.java: New file.
3819 * java/awt/event/MouseListener.java: New file.
3820 * java/awt/event/ItemListener.java: New file.
3821 * java/awt/event/InputMethodListener.java: New file.
3822 * java/awt/event/ContainerListener.java: New file.
3823 * java/awt/event/FocusListener.java: New file.
3824 * java/awt/event/ComponentListener.java: New file.
3825 * java/awt/event/AWTEventListener.java: New file.
3826 * java/awt/event/AdjustmentListener.java: New file.
3827
3828 2000-04-08 Anthony Green <green@cygnus.com>
3829
3830 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3831 check when we have to.
3832
3833 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3834 x) as `inline'.
3835
3836 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3837 one method call.
3838
3839 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3840 inline hasMoreElements.
3841
3842 2000-04-05 Tom Tromey <tromey@cygnus.com>
3843
3844 * configure: Rebuilt.
3845 * configure.in: Recognize --enable-java-awt.
3846 (AWT): New conditional.
3847 * Makefile.in: Rebuilt.
3848 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3849 requested.
3850 (libgcjawt_la_SOURCES): New macro.
3851 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3852 (libgcjawt_la_DEPENDENCIES): Likewise.
3853 (libgcjawt_la_LIBADD): Likewise.
3854 (libgcjawt_la_LDFLAGS): Likewise.
3855 (libgcj.zip): Depend on cond_java_awt_source_files
3856 (cond_awt_java_source_files): New macro.
3857 (MOSTLYCLEANFILES): Added awto_files.
3858 (awto_files): New macro. Use where javao_files used.
3859 (nat_headers): Use cond_awt_java_source_files.
3860
3861 2000-04-04 Tom Tromey <tromey@cygnus.com>
3862
3863 * Makefile.in: Rebuilt.
3864 * Makefile.am (awt_java_source_files): Added AWTException.java.
3865 * java/awt/AWTException.java: New file.
3866
3867 2000-04-03 Tom Tromey <tromey@cygnus.com>
3868
3869 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3870 commentary from Alex.
3871
3872 * Makefile.in: Rebuilt.
3873 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3874 From H.J. Lu.
3875
3876 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
3877
3878 * configure: Rebuilt.
3879 * configure.in: Add --disable-jvmpi.
3880 * include/config.h.in: Rebuilt.
3881 * acconfig.h: Add ENABLE_JVMPI.
3882
3883 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3884 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3885 (_Jv_JVMPI_Notify_THREAD_END): New define.
3886 (_Jv_JVMPI_Notify_THREAD_END): New define.
3887 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3888 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3889 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3890
3891 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3892 events.
3893
3894 * java/lang/natThread.cc: Include JVMPI headers if necessary.
3895 (finish_): Generate JVMPI thread end events.
3896 (run_): Generate JVMPI thread start events.
3897 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3898 preloaded JNI library.
3899 Include JVMPI headers if necessary.
3900 (run): Generate JVMPI thread start events.
3901
3902 * boehm.cc: Define GC_disable and GC_enable.
3903 (_Jv_DisableGC): New function.
3904 (_Jv_EnableGC): New function.
3905 (disable_gc_mutex): Declare.
3906 * nogc.cc (_Jv_DisableGC): New function.
3907 (_Jv_EnableGC): New function.
3908
3909 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3910 (_Jv_JVMPI_Interface): Define.
3911 (jvmpiEnableEvent): New function.
3912 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3913
3914 * include/jvmpi.h: New file.
3915
3916 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
3917
3918 * Makefile.in: New #defines and friends for Thread.h.
3919 * Makefile.am: Ditto.
3920 * posix-threads.cc: (struct starter): Remove `object'.
3921 (_Jv_CondWait): Use interruptable condition variables and new
3922 recursive mutexes. New return codes on interrupt or non-ownership
3923 of mutex.
3924 (_Jv_CondNotify): Ditto.
3925 (_Jv_CondNotifyAll): Ditto.
3926 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3927 the target thread by signaling its wait condition.
3928 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3929 not the starter struct. Initialize wait_mutex and wait_cond.
3930 (_Jv_MutexLock): New recursive mutex implementation. Moved from
3931 posix-threads.h.
3932 (_Jv_MutexUnlock): Ditto.
3933 (really_start): Set info->data->thread from pthread_self() to work
3934 around a race condition. Destroy wait_mutex and wait_cond when run()
3935 returns.
3936 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3937 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3938 set.
3939 startable_flag: New private field.
3940 (Thread): Initialize `startable_flag'.
3941 (toString): Check for null thread group.
3942 * java/lang/natThread.cc: (struct natThread): New fields
3943 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3944 (class locker): Removed.
3945 (initialize_native): Initialize `join_cond' and `join_mutex'.
3946 (interrupt): Now just calls _Jv_ThreadInterrupt().
3947 (join): Simplified. Just wait on the target thread's join condition.
3948 (finish_): Remove join list code. Unset thread group. Signal
3949 potential joiners by notifying the dying threads join_cond.
3950 (start): Check for illegal restarts.
3951 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3952 act appropriatly.
3953 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3954 #defines and #ifdefs.
3955 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3956 `wait_mutex', `next'.
3957 (struct _Jv_ConditionVariable_t): Define as a struct instead of
3958 directly mapping to pthread_cond_t.
3959 (struct _Jv_Mutex_t): New recursive implementation.
3960 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3961 _Jv_HaveCondDestroy: Never define this for posix-threads.
3962 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3963 (_Jv_CondNotifyAll): Ditto.
3964 (_Jv_MutexLock): Ditto.
3965 (_Jv_MutexUnlock): Ditto.
3966 (_Jv_MutexInit): Changed to reflect new mutex implementation.
3967 (_Jv_MutexDestroy): Ditto.
3968 (_Jv_CondDestroy): Removed.
3969 (_Jv_PthreadGetMutex): Removed.
3970 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
3971 error. Add a FIXME about this.
3972 (_Jv_CondNotifyAll): Ditto.
3973 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
3974 _JV_NOT_OWNER on other errors. Add FIXME.
3975
3976 2000-03-26 Tom Tromey <tromey@cygnus.com>
3977
3978 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
3979 set, throw it.
3980 (call): Don't throw exception here.
3981
3982 2000-03-26 Tom Tromey <tromey@cygnus.com>
3983
3984 * java/lang/mprec.h: Use SIZEOF_VOID_P.
3985 * interpret.cc: Use SIZEOF_VOID_P.
3986 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
3987 (_Jv_loadLong): Likewise.
3988 (_Jv_storeDouble): Likewise.
3989 * configure: Rebuilt.
3990 * configure.in: Check size of void*.
3991
3992 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
3993
3994 2000-03-26 Hans Boehm <boehm@acm.org>
3995
3996 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
3997 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
3998 machine.
3999 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4000 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4001 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4002 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4003 case.
4004 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4005 (FFI_RAW_SIZE): Likewise.
4006 (_Jv_InterpMethod::ncode): Use them.
4007 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4008 STORED): Define differently on a 64 bit machine.
4009 (continue1): Use ffi_java_raw_call when appropriate.
4010
4011 2000-03-24 Warren Levy <warrenl@cygnus.com>
4012
4013 * java/math/BigInteger.java(divide): Handle the special case when
4014 dividing by 1 and the high bit of the dividend is set.
4015 (setShiftRight): Handle case when count == 0.
4016
4017 2000-03-24 Warren Levy <warrenl@cygnus.com>
4018
4019 * java/awt/Font.java(isBold): Fix syntax error.
4020 (isItalic): ditto.
4021 * java/awt/Frame.java(postEvent): ditto.
4022 * java/awt/Menu.java(postEvent): ditto.
4023 * java/awt/MenuBar.java(postEvent): ditto.
4024 * java/awt/Toolkit.java(init): Included a stub.
4025
4026 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4027
4028 * java/awt/Event.java: Add all the event type constants.
4029 (Event): Implemented constructors.
4030 (controlDown): Implemented.
4031 (metaDown): Implemented.
4032 (paramString): Stubbed.
4033 (shiftDown): Implemented.
4034 (toString): Implemented.
4035 (translate): Implemented.
4036
4037 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4038
4039 * java/lang/natClass.cc (isInstance): Initialize `this'.
4040 (isAssignableFrom): Initialize `this' and `klass'.
4041 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4042 implemented by any loaded class, so return false.
4043 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4044 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4045
4046 2000-03-19 Warren Levy <warrenl@cygnus.com>
4047
4048 * java/awt/Color.java: Specified java.io for Serializable.
4049 * java/awt/Toolkit.java: Imported java.net.URL.
4050
4051 2000-03-19 Warren Levy <warrenl@cygnus.com>
4052
4053 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4054
4055 2000-03-16 Warren Levy <warrenl@cygnus.com>
4056
4057 * java/awt/Color.java: New file.
4058 * java/awt/Graphics.java: New file.
4059 * java/awt/Image.java: New file.
4060 * java/awt/Paint.java: New file.
4061 * java/awt/PaintContext.java: New file.
4062 * java/awt/Transparency.java: New file.
4063 * java/util/Collection.java: New file.
4064 * java/util/Comparator.java: New file.
4065 * java/util/Iterator.java: New file.
4066 * java/util/List.java: New file.
4067 * java/util/ListIterator.java: New file.
4068 * Makefile.am: Added above new files.
4069 * Makefile.in: Rebuilt.
4070
4071 * java/awt/Font.java (PLAIN): New field.
4072 (BOLD): New field.
4073 (ITALIC): New field.
4074 (ROMAN_BASELINE): New field.
4075 (CENTER_BASELINE): New field.
4076 (HANGING_BASELINE): New field.
4077 (name): New field.
4078 (style): New field.
4079 (size): New field.
4080 (pointSize): New field.
4081 (Font): Implemented constructor.
4082 (isPlain): Implemented method.
4083 (isBold): Implemented method.
4084 (isItalic): Implemented method.
4085 (getName): Implemented method.
4086 (getStyle): Implemented method.
4087 (getSize): Implemented method.
4088 (getSize2D): Implemented method.
4089 (decode): Stubbed.
4090 * java/awt/Frame.java (getFont): Stubbed.
4091 (postEvent): Stubbed.
4092 (remove): Stubbed.
4093 * java/awt/Menu.java (postEvent): Stubbed.
4094 * java/awt/MenuBar.java (getFont): Stubbed.
4095 (postEvent): Stubbed.
4096 * java/awt/Toolkit.java (getImage): Added abstract method.
4097
4098 2000-03-15 Tom Tromey <tromey@cygnus.com>
4099
4100 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4101
4102 * prims.cc (win32_exception_handler): Reformatted.
4103
4104 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4105 (_Jv_HaveMutexDestroy): Likewise.
4106
4107 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4108
4109 * java/io/natFileDescriptorWin32.cc: New file.
4110 * java/io/natFileWin32.cc: New file.
4111 * java/net/natInetAddress.cc: Added conditional inclusion of
4112 Windows / Winsock headers.
4113 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4114 inclusion of Windows / Winsock headers.
4115 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4116 Windows / Winsock headers.
4117 * include/win32-signal.h: New file.
4118 * include/win32-threads.h: New file.
4119 * win32-threads.cc: New file.
4120 * exception.cc (win32_get_restart_frame): New function.
4121 * prims.cc (win32_exception_handler): New function.
4122 (main_init) Performs Winsock initialisation.
4123 (main_init) Installs exeception handler.
4124
4125 2000-03-14 Tom Tromey <tromey@cygnus.com>
4126
4127 * jni.cc (mangled_name): Fixed assertion.
4128 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4129 turned assert into actual failure.
4130
4131 2000-03-09 Warren Levy <warrenl@cygnus.com>
4132
4133 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4134 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4135 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4136
4137 2000-03-09 Warren Levy <warrenl@cygnus.com>
4138
4139 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4140 * java/security/DigestException.java: New file.
4141 * java/security/GeneralSecurityException.java: New file.
4142 * java/security/InvalidAlgorithmParameterException.java: New file.
4143 * java/security/InvalidKeyException.java: New file.
4144 * java/security/InvalidParameterException.java: New file.
4145 * java/security/Key.java: New file.
4146 * java/security/KeyException.java: New file.
4147 * java/security/KeyPair.java: New file.
4148 * java/security/KeyPairGenerator.java: New file.
4149 * java/security/KeyPairGeneratorSpi.java: New file.
4150 * java/security/NoSuchProviderException.java: New file.
4151 * java/security/PrivateKey.java: New file.
4152 * java/security/Provider.java: New file.
4153 * java/security/PublicKey.java: New file.
4154 * java/security/SecureRandom.java: New file.
4155 * java/security/Security.java: New file.
4156 * java/security/Signature.java: New file.
4157 * java/security/SignatureException.java: New file.
4158 * java/security/interfaces/DSAKey.java: New file.
4159 * java/security/interfaces/DSAParams.java: New file.
4160 * java/security/interfaces/DSAPrivateKey.java: New file.
4161 * java/security/interfaces/DSAPublicKey.java: New file.
4162 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4163 * java/security/interfaces/RSAPrivateKey.java: New file.
4164 * java/security/interfaces/RSAPublicKey.java: New file.
4165 * java/security/spec/AlgorithmParameterSpec.java: New file.
4166 * java/security/spec/InvalidKeySpecException.java: New file.
4167 * java/security/spec/InvalidParameterSpecException.java: New file.
4168 * java/security/spec/KeySpec.java: New file.
4169 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4170 * java/security/spec/RSAPrivateKeySpec.java: New file.
4171 * java/security/spec/RSAPublicKeySpec.java: New file.
4172 * Makefile.am: Added above java.security files.
4173 * Makefile.in: Rebuilt.
4174
4175 * java/security/MessageDigest.java: Rewritten.
4176 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4177
4178 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4179
4180 * README: Updated.
4181
4182 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4183
4184 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4185 _Jv_PrepareConstantTimeTables.
4186 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4187 classes should have an IDT, so don't return if klass is an array
4188 class.
4189
4190 2000-03-08 Tom Tromey <tromey@cygnus.com>
4191
4192 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4193 of `void' to be created.
4194
4195 2000-03-08 Warren Levy <warrenl@cygnus.com>
4196
4197 * java/math/BigInteger.java(signum): Handle zero properly.
4198
4199 2000-03-07 Tom Tromey <tromey@cygnus.com>
4200
4201 * All files: Updated copyright information.
4202 * COPYING: New file.
4203 * COPYING.LIB: Removed.
4204 * LIBGCJ_LICENSE: We now use GPL + special exception.
4205
4206 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4207
4208 * resolve.cc (_Jv_SearchMethodInClass): New function.
4209 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4210 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4211
4212 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4213
4214 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4215 (struct _Jv_ifaces): New declaration.
4216 JV_CLASS: New macro definition.
4217 (getComponentType): Relocate below isArray() for inlining.
4218 (getModifiers): Declare `inline'.
4219 (getSuperclass): Ditto.
4220 (isArray): Ditto.
4221 (isPrimitive): Ditto.
4222 (_Jv_IsAssignableFrom): New prototype.
4223 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4224 linkage.
4225 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4226 Check for JV_STATE_DONE before invoking initializeClass().
4227 (_Jv_PrepareConstantTimeTables): New prototype.
4228 (_Jv_GetInterfaces): Ditto.
4229 (_Jv_GenerateITable): Ditto.
4230 (_Jv_GetMethodString): Ditto.
4231 (_Jv_AppendPartialITable): Ditto.
4232 (_Jv_FindIIndex): Ditto.
4233 depth, ancestors, idt: New class fields.
4234
4235 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4236 inline function `_Jv_IsAssignableFrom'. Use that function.
4237 (isInstance): Declare `inline'.
4238 (initializeClass): Get lock on class before checking `state'. Unlock
4239 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4240 the lock held.
4241 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4242 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4243 class->depth and ancestor table.
4244 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4245 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4246 _Jv_IsAssignableFrom.
4247 (_Jv_CheckArrayStore): Ditto.
4248 (_Jv_LookupInterfaceMethodIdx): New function.
4249 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4250 (_Jv_PrepareConstantTimeTables): New function.
4251 (_Jv_IndexOf): Ditto.
4252 (_Jv_GetInterfaces): Ditto.
4253 (_Jv_GenerateITable): Ditto.
4254 (_Jv_GetMethodString): Ditto.
4255 (_Jv_AppendPartialITable): Ditto.
4256 iindex_mutex, iindex_mutex_initialized: New static fields.
4257 (_Jv_FindIIndex): New function.
4258
4259 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4260
4261 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4262 (_Jv_CheckArrayStore): Ditto.
4263 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4264 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4265 Moved to gcj/array.h.
4266 (_Jv_Realloc): New function.
4267
4268 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4269
4270 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4271 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4272 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4273 JvNewDoubleArray): Implementations moved from prims.cc and
4274 declared `inline'.
4275
4276 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4277
4278 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4279
4280 2000-03-06 Tom Tromey <tromey@cygnus.com>
4281
4282 * jni.cc (MARK_NONE): New define.
4283 (MARK_USER): Likewise.
4284 (MARK_SYSTEM): Likewise.
4285 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4286 smaller.
4287 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4288 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4289 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4290 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4291 argument.
4292 (call): Use MARK_SYSTEM.
4293 (_Jv_GetJNIEnvNewFrame): New function.
4294 (_Jv_LookupJNIMethod): New function.
4295 (_Jv_JNI_PopSystemFrame): New function.
4296 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4297
4298 2000-03-05 Tom Tromey <tromey@cygnus.com>
4299
4300 Fix for PR libgcj/43:
4301 * include/Makefile.in: Rebuilt.
4302 * include/Makefile.am (include_HEADERS): New define.
4303
4304 2000-03-05 Anthony Green <green@redhat.com>
4305
4306 * gcj/javaprims.h ("Java"): Remove FirstThread.
4307
4308 * configure.host: Fix __NO_MATH_INLNES botch.
4309
4310 * Makefile.in: Rebuilt.
4311 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4312 (gnu/gcj/runtime/FirstThread.h): Moved.
4313 (ordinary_java_source_files): Move FirstThread.java.
4314 * prims.cc: Deal with FirstThread movement.
4315 (JvRunMain): Ditto.
4316 (_Jv_RunMain): Ditto.
4317
4318 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4319 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4320
4321 2000-03-05 Warren Levy <warrenl@cygnus.com>
4322
4323 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4324 Handle null addresses.
4325
4326 2000-03-04 Anthony Green <green@redhat.com>
4327
4328 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4329 See PR gcj/151.
4330
4331 2000-03-04 Anthony Green <green@redhat.com>
4332
4333 * configure: Rebuilt.
4334 * configure.in (ZLIBTESTSPEC): New macro.
4335 (GCTESTSPEC): New macro.
4336 (LIBGCJTESTSPEC): New macro.
4337 * libgcj-test.spec.in: New file.
4338
4339 2000-03-02 Tom Tromey <tromey@cygnus.com>
4340
4341 * include/java-interp.h: Don't include MethodInvocation.h.
4342 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4343 * Makefile.in: Rebuilt.
4344 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4345 (ordinary_java_source_files): Don't mention
4346 MethodInvocation.java.
4347 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4348 * interpret.cc (MethodInvocation::continue1): Removed.
4349 (run): Handle exceptions here.
4350 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4351 Removed.
4352 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4353 here.
4354 (defineClass2): Removed.
4355
4356 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4357 Removed.
4358 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4359 exceptions here.
4360 (hack_call): Removed.
4361
4362 * java/lang/Class.h (Class): Removed hackRunInitializers,
4363 hackTrampoline.
4364 * java/lang/natClass.cc (hackRunInitializers): Removed.
4365 (initializeClass): Catch exceptions here.
4366 Include ExceptionInInitializerError.h.
4367 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4368 Removed.
4369
4370 * java/lang/Object.h (Object): Don't mention hack12_6.
4371 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4372 here.
4373 * java/lang/Object.java (hack12_6): Removed.
4374
4375 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4376 (start): Use run_, not run__.
4377 * java/lang/Thread.java (run_): Renamed from run__; old run_
4378 removed.
4379
4380 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4381 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4382 (_Jv_JNI_DefineClass): Likewise.
4383 (_Jv_JNI_ThrowNew): Likewise.
4384 (_Jv_JNI_AllocObject): Likewise.
4385 (_Jv_JNI_GetAnyMethodID): Likewise.
4386 (_Jv_JNI_CallAnyMethodV): Likewise.
4387 (_Jv_JNI_CallAnyMethodA): Likewise.
4388 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4389 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4390 (_Jv_JNI_GetAnyFieldID): Likewise.
4391 (_Jv_JNI_NewString): Likewise.
4392 (_Jv_JNI_NewStringUTF): Likewise.
4393 (_Jv_JNI_GetStringUTFChars): Likewise.
4394 (_Jv_JNI_NewObjectArray): Likewise.
4395 (_Jv_JNI_NewPrimitiveArray): Likewise.
4396 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4397 (_Jv_JNI_GetStringRegion): Likewise.
4398 (_Jv_JNI_GetStringUTFRegion): Likewise.
4399 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4400 (_Jv_JNI_MonitorEnter): Likewise.
4401 (_Jv_JNI_MonitorExit): Likewise.
4402 (_Jv_JNI_ToReflectedField): Likewise.
4403 (_Jv_JNI_ToReflectedMethod): Likewise.
4404 (_Jv_JNI_RegisterNatives): Likewise.
4405 (_Jv_JNI_AttachCurrentThread): Likewise.
4406 (_Jv_JNI_DestroyJavaVM): Likewise.
4407
4408 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4409
4410 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4411 error caused by the incorrect casting of a long to an int.
4412
4413 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4414
4415 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4416 SIGSEV caused by use of the wrong instance variable.
4417
4418 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4419
4420 * java/io/File.java (File(String, String)): For dirPath, treat an
4421 empty String the same as `null'.
4422
4423 2000-02-26 Anthony Green <green@cygnus.com>
4424
4425 * gnu/gcj/io/MimeTypes.java: Test for null.
4426
4427 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4428 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4429
4430 * java/net/URLConnection.java: Update copyright notice.
4431
4432 2000-02-25 Tom Tromey <tromey@cygnus.com>
4433
4434 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4435 `INTERPRETER'.
4436
4437 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4438
4439 * java/net/URLConnection.java (initializeDateFormats): New
4440 private method.
4441 (getHeaderFieldDate): Call initializeDateFormats if required.
4442 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4443 these.
4444 Fix for PR libgcj/38.
4445
4446 2000-02-24 Warren Levy <warrenl@cygnus.com>
4447
4448 * java/math/BigInteger.java(ival): Made private.
4449 (words): Ditto.
4450 (neg): Ditto.
4451
4452 2000-02-20 Anthony Green <green@cygnus.com>
4453
4454 * Makefile.in: Rebuilt.
4455 * Makefile.am (ordinary_java_source_files): Add
4456 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4457
4458 * scripts/MakeDefaultMimeTypes.java: New file.
4459 * scripts/mime.types: New file.
4460 * scripts/classes.pl: Moved from top level.
4461 * classes.pl: Moved to scripts directory.
4462
4463 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4464
4465 * gnu/gcj/io/MimeTypes.java: New file.
4466 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4467
4468 2000-02-20 Tom Tromey <tromey@cygnus.com>
4469
4470 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4471
4472 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4473
4474 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4475 (setSize): ditto.
4476
4477 2000-02-18 Tom Tromey <tromey@cygnus.com>
4478
4479 * include/jvm.h (_Jv_GetJavaVM): Declare.
4480 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4481 (_Jv_MethodBase::get_method): New method.
4482 (_Jv_JNIMethod::set_function): New method.
4483 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4484 (_Jv_JNI_RegisterNatives): New function.
4485 (_Jv_JNIFunctions): Updated for new functions.
4486 (_Jv_GetJavaVM): New function.
4487 (_Jv_JNI_GetJavaVM): Use it. Now static.
4488 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4489 is already a Java thread but does not have a JNIEnv yet.
4490
4491 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4492 function.
4493
4494 2000-02-17 Tom Tromey <tromey@cygnus.com>
4495
4496 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4497 Fixes PR gcj/152.
4498
4499 2000-02-16 Tom Tromey <tromey@cygnus.com>
4500
4501 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4502
4503 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4504 (_Jv_JNI_NewObject): Likewise.
4505 (_Jv_JNI_NewObjectA): Likewise.
4506 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4507 as "return" type to _Jv_CallAnyMethodA.
4508 (_Jv_JNI_CallAnyMethodA): Likewise.
4509 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4510
4511 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4512 findClass.
4513
4514 2000-02-15 Tom Tromey <tromey@cygnus.com>
4515
4516 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4517 jni_arg_types.
4518 (init_cif): Added `rtype_p' argument.
4519 * include/java-interp.h (class _Jv_MethodBase): Added
4520 args_raw_size.
4521 (class _Jv_InterpMethod): Removed args_raw_size.
4522 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4523 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4524 class pointer as well as the ordinary arguments.
4525
4526 * jni.cc (mangled_name): Skip leading `(' in signature.
4527
4528 * jni.cc (add_char): Added missing `else'.
4529
4530 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4531 fails.
4532
4533 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4534
4535 * NEWS: Updated.
4536
4537 * java/lang/natRuntime.cc (_load): Include library path with
4538 exception message.
4539
4540 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4541 property.
4542
4543 * java/lang/natThread.cc (dumpStack): Removed.
4544 * java/lang/Thread.java (dumpStack): Implemented.
4545
4546 2000-02-15 Tom Tromey <tromey@cygnus.com>
4547
4548 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4549 with `lib' for loadLibrary. Fixes PR gcj/150.
4550
4551 2000-02-14 Warren Levy <warrenl@cygnus.com>
4552
4553 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4554
4555 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4556 New constructor.
4557 (min): Implemented.
4558 (max): Implemented.
4559 (modPow): Rewritten to not use the naive, slow, brute force approach.
4560 (isProbablePrime): Implemented.
4561 (testBit): Implemented.
4562 (flipBit): Implemented.
4563 (getLowestSetBit): Implemented.
4564
4565 2000-02-16 Anthony Green <green@redhat.com>
4566
4567 * configure.host: Use the same options for i386 and i486 as we do
4568 for i586 and i686.
4569
4570 2000-02-12 Tom Tromey <tromey@cygnus.com>
4571
4572 * java/io/File.java (createTempFile): Use low bits from counter,
4573 not high bits.
4574
4575 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4576
4577 * THANKS: More thanks.
4578
4579 2000-02-11 Tom Tromey <tromey@cygnus.com>
4580
4581 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4582 astore instruction. From Hans Boehm.
4583
4584 2000-02-11 Warren Levy <warrenl@cygnus.com>
4585
4586 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4587 (BigInteger(String)): New constructor.
4588 (not): Rewritten using version from Kawa's BitOps class.
4589 (valueOf): New private methods from Kawa's BitOps class.
4590 (swappedOp): ditto.
4591 (bitOp): ditto.
4592 (setBitOp): ditto.
4593 (and): Implemented.
4594 (or): Implemented.
4595 (xor): Implemented.
4596 (andNot): Implemented.
4597 (clearBit): Implemented.
4598 (setBit): Implemented.
4599 (bitCount): Implemented.
4600 (toByteArray): Implemented.
4601
4602 2000-02-11 Tom Tromey <tromey@cygnus.com>
4603
4604 * java/io/File.java (nextValue): Now synchronized.
4605
4606 2000-02-10 Tom Tromey <tromey@cygnus.com>
4607
4608 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4609 * java/io/FileDescriptor.java (EXCL): New static field.
4610 * java/io/File.java (tmpdir): New static field.
4611 (createTempFile): New method.
4612 (nextValue): New method.
4613 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4614 property.
4615
4616 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4617 (jboolean): Declare as an attributed int, not a bool.
4618 (_Jv_func): Declare differently for C.
4619
4620 * gnu/gcj/jni/natNativeThread.cc: New file.
4621 * gnu/gcj/jni/NativeThread.java: New file.
4622 * java/lang/Thread.java (data): Now a RawData.
4623 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4624 Declare.
4625 * Makefile.in: Rebuilt.
4626 * Makefile.am (java/lang/Thread.h): New target.
4627 (ordinary_java_source_files): Added NativeThread.java.
4628 (nat_source_files): Added natNativeThread.cc.
4629 * java/lang/natThread.cc: Include <jni.h>
4630 (struct natThread): Added `jni_env' field.
4631 (_Jv_GetCurrentJNIEnv): New function.
4632 (_Jv_SetCurrentJNIEnv): Likewise.
4633 (initialize_native): Initialize jni_env.
4634 Include RawData.h.
4635 * jni.cc (ThreadGroupClass): New define.
4636 (_Jv_JNI_InvokeFunctions): New structure.
4637 (JNI_GetCreatedJavaVMs): New function.
4638 (the_vm): New global.
4639 (JNI_GetDefaultJavaVMInitArgs): New function.
4640 Include NativeThread.h.
4641 (NativeThreadClass): New define.
4642 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4643 (_Jv_JNI_DestroyJavaVM): New function.
4644 (_Jv_JNI_AttachCurrentThread): New function.
4645 (_Jv_JNI_DetachCurrentThread): New function.
4646 (_Jv_JNI_GetEnv): New function.
4647 (JNI_CreateJavaVM): New function.
4648 (_Jv_JNI_GetJavaVM): New function.
4649 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4650 * include/jni.h (JavaVMAttachArgs): New structure.
4651 (JNI_EDETACHED): New define.
4652 (JNI_EVERSION): Likewise.
4653 (JavaVM): Define properly.
4654 (struct JNIInvokeInterface): New structure.
4655 (class _Jv_JavaVM): New class.
4656 (JNI_OnLoad, JNI_OnUnload): Declare.
4657 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4658 JNI_GetCreatedJavaVMs): Declare.
4659 (JavaVMInitArgs): New typedef.
4660 (JavaVMOption): Likewise.
4661 (JNI_ERR): New define.
4662 (JNI_OK): Likewise.
4663
4664 2000-02-10 Andrew Haley <aph@cygnus.com>
4665
4666 * interpret.cc: Don't include fdlibm.h.
4667 Replace #if with #ifdef throughout.
4668 Declare extern __ieee754_fmod.
4669 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4670 op_putstatic insns.
4671 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4672 Search class hierarchy for superclass vtable.
4673
4674 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4675 off the end of a pointer list.
4676
4677 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4678 instead.
4679 (suspend): Ditto.
4680
4681 2000-02-09 Tom Tromey <tromey@cygnus.com>
4682
4683 * java/lang/natRuntime.cc (_load): Call add_library.
4684 (loadLibraryInternal): Likewise.
4685
4686 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4687 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4688 (Output_iconv::finalize): Likewise.
4689
4690 2000-02-08 Tom Tromey <tromey@cygnus.com>
4691
4692 * java/util/Properties.java (setProperty): New method.
4693 (store): New method.
4694
4695 2000-02-07 Tom Tromey <tromey@cygnus.com>
4696
4697 * java/lang/Runtime.java (_load): Declare.
4698 (load, loadLibrary): Wrote in terms of _load.
4699 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4700 library.
4701 (loadLibrary): Likewise.
4702 Include <jni.h>.
4703 (_load): New method.
4704 (loadLibrary, load): Removed.
4705
4706 * jni.cc (ThrowableClass): New define.
4707 (_Jv_JNI_Throw): Check argument.
4708 (_Jv_JNI_ThrowNew): Likewise.
4709 (wrap_value): Don't wrap object if it is NULL.
4710 (_Jv_JNI_DefineClass): Use wrap_value.
4711 (_Jv_JNI_FindClass): Likewise.
4712 (_Jv_JNI_GetSuperclass): Likewise.
4713 (_Jv_JNI_ExceptionOccurred): Likewise.
4714 (_Jv_JNI_AllocObject): Likewise.
4715 (_Jv_JNI_GetObjectClass): Likewise.
4716 (_Jv_JNI_NewString): Likewise.
4717 (_Jv_JNI_NewStringUTF): Likewise.
4718 (_Jv_JNI_NewObjectArray): Likewise.
4719 (_Jv_JNI_GetObjectArrayElement): Likewise.
4720 (_Jv_JNI_NewPrimitiveArray): Likewise.
4721 (_Jv_JNI_ToReflectedField): Likewise.
4722 (_Jv_JNI_ToReflectedMethod): Likewise.
4723 (_Jv_JNI_AllocObject): Check argument.
4724 (_Jv_JNI_NewObjectV): Likewise.
4725 (_Jv_JNI_NewObject): Likewise.
4726 (_Jv_JNI_NewObjectA): Likewise.
4727 (_Jv_JNI_GetObjectClass): Likewise.
4728 (_Jv_JNI_GetField): Likewise.
4729 (_Jv_JNI_SetField): Likewise.
4730
4731 * interpret.cc (PUSHL): Don't use expression statement.
4732 (PUSHD): Likewise.
4733 (LOADL): Likewise.
4734 (STOREL): Likewise.
4735
4736 * jni.cc (add_char): Conditional on INTERPRETER.
4737 (mangled_name): Likewise.
4738 (call): Likewise.
4739 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4740 INTERPRETER.
4741 (class _Jv_JNIMethod): Likewise.
4742
4743 2000-02-04 Warren Levy <warrenl@cygnus.com>
4744
4745 * Makefile.am: Added MPN.java and BigInteger.java.
4746 * Makefile.in: Rebuilt.
4747 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4748 <per@bothner.com>.
4749 * java/math/BigInteger.java: New file. Based primarily on
4750 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4751
4752 2000-02-04 Tom Tromey <tromey@cygnus.com>
4753
4754 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4755 pointers.
4756 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4757 if the method is native.
4758 * resolve.cc (ncode): Don't handle native methods.
4759 (_Jv_JNIMethod::ncode): New method.
4760 (_Jv_PrepareClass): Handle native methods.
4761 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4762 Include AbstractMethodError.h.
4763 (add_char): New function.
4764 (mangled_name): Likewise.
4765 * include/java-interp.h (class _Jv_JNIMethod): New class.
4766 (class _Jv_MethodBase): New class.
4767 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4768 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4769 `_Jv_MethodBase'.
4770
4771 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4772 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4773 libraries): New globals.
4774 (add_library): New function.
4775 (_Jv_FindSymbolInExecutable): New function.
4776
4777 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4778 Now static.
4779
4780 2000-02-04 Andrew Haley <aph@cygnus.com>
4781
4782 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4783 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4784 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4785 printStackTrace to printRawStackTrace.
4786
4787 2000-02-03 Tom Tromey <tromey@cygnus.com>
4788
4789 * java/util/Calendar.java (toString): New method.
4790 * java/util/SimpleTimeZone.java (clone): New method.
4791 (toString): New method.
4792 * java/util/TimeZone.java (clone): New method.
4793 * java/text/SimpleDateFormat.java (clone): New method.
4794 * java/text/NumberFormat.java (clone): New method.
4795 (equals): New method.
4796 * java/text/Format.java (clone): New method.
4797 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4798 constructor.
4799 (clone): New method.
4800 * java/text/DateFormat.java (clone): New method.
4801 * java/text/Collator.java (clone): New method.
4802
4803 2000-02-03 Tom Tromey <tromey@cygnus.com>
4804
4805 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4806 method.
4807
4808 2000-02-01 Tom Tromey <tromey@cygnus.com>
4809
4810 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4811 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4812 constructing the closure if the function is native.
4813 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4814 a template function, #if'd out, or static.
4815 Include <java-interp.h>.
4816
4817 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4818
4819 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4820
4821 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4822 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4823 `locals == NULL'.
4824 (wrap_value): New function.
4825 (_Jv_JNI_CallAnyMethodV): Use it.
4826 (_Jv_JNI_CallAnyMethodA): Likewise.
4827 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4828 (_Jv_JNI_GetStaticField): Likewise.
4829
4830 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4831 (_Jv_JNI_GetStaticField): Likewise.
4832
4833 2000-01-31 Tom Tromey <tromey@cygnus.com>
4834
4835 * prims.cc (_Jv_MallocUnchecked): New function.
4836 (main_init): Call _Jv_JNI_Init.
4837 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4838 (_Jv_JNI_Init): Declare.
4839 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4840 <string.h>.
4841 (_Jv_JNI_NewGlobalRef): New function.
4842 (_Jv_JNI_DeleteGlobalRef): New function.
4843 (_Jv_JNI_DeleteLocalRef): New function.
4844 (_Jv_JNI_conversion_call): Initialize and clear local reference
4845 frame.
4846 (_Jv_JNI_NewLocalRef): New function.
4847 (struct _Jv_JNI_LocalFrame): New structure.
4848 (_Jv_JNI_PushLocalFrame): New function.
4849 (_Jv_JNI_EnsureLocalCapacity): New function.
4850 (FRAME_SIZE): New define.
4851 (_Jv_JNI_GetStringChars): Mark string, not characters.
4852 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4853 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4854 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4855 elements.
4856 (_Jv_JNI_DefineClass): Make return value a local ref.
4857 (_Jv_JNI_FindClass): Likewise.
4858 (_Jv_JNI_GetSuperclass): Likewise.
4859 (_Jv_JNI_ExceptionOccurred): Likewise.
4860 (_Jv_JNI_AllocObject): Likewise.
4861 (_Jv_JNI_GetObjectClass): Likewise.
4862 (_Jv_JNI_CallAnyMethodV): Likewise.
4863 (_Jv_JNI_NewString): Likewise.
4864 (_Jv_JNI_NewStringUTF): Likewise.
4865 (_Jv_JNI_NewObjectArray): Likewise.
4866 (_Jv_JNI_GetObjectArrayElement): Likewise.
4867 (_Jv_JNI_ToReflectedField): Likewise.
4868 (_Jv_JNI_ToReflectedMethod): Likewise.
4869 (_Jv_JNIFunctions): Updated table for new functions.
4870 (_Jv_JNI_Init): New function.
4871 (mark_for_gc): Wrote.
4872 (unmark_for_gc): Wrote.
4873 * include/jni.h (struct JNINativeInterface): Removed name from
4874 PopLocalFrame parameter.
4875 (class _Jv_JNIEnv): Added `locals' field.
4876
4877 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
4878
4879 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4880 (write): Ditto.
4881
4882 2000-01-30 Tom Tromey <tromey@cygnus.com>
4883
4884 * include/config.h.in: Rebuilt.
4885 * acconfig.h (HAVE_ICONV): Define.
4886 * configure: Rebuilt.
4887 * configure.in: Check for `iconv' function.
4888 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4889 no specific encoder exists.
4890 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4891 no specific encoder exists.
4892 * Makefile.in: Rebuilt.
4893 * Makefile.am (convert_source_files): Mention Input_iconv.java and
4894 Output_iconv.java.
4895 (nat_source_files): Added natIconv.cc.
4896 * gnu/gcj/convert/natIconv.cc: New file.
4897 * gnu/gcj/convert/Input_iconv.java: New file.
4898 * gnu/gcj/convert/Output_iconv.java: New file.
4899
4900 2000-01-28 Tom Tromey <tromey@cygnus.com>
4901
4902 * Makefile.in: Rebuilt.
4903 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4904
4905 2000-01-26 Tom Tromey <tromey@cygnus.com>
4906
4907 * gcj/method.h (JvNumMethods): Moved from Class.h.
4908 (JvGetFirstMethod): Likewise.
4909 * java/lang/Class.h (Object): Updated decl of
4910 _Jv_JNI_ToReflectedField.
4911 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4912 * Makefile.in: Rebuilt.
4913 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4914 argument of _Jv_JNI_ToReflectedField.
4915 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4916 as a friend.
4917 (java/lang/reflect/Method.h): Likewise.
4918 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
4919 __GCJ_JNI_IMPL__.
4920 (jweak): New typedef.
4921 (struct JNINativeInterface): Correctly declare remaining entries.
4922 * jni.cc: Include Class.h, ClassLoader.h.
4923 (_Jv_JNI_FindClass): New function.
4924 (_Jv_JNI_DefineClass): New function.
4925 (_Jv_JNI_conversion_call): New function.
4926 (_Jv_JNI_FindClass): Use current class loader to find class.
4927 (_Jv_JNI_ExceptionCheck): New function.
4928 (_Jv_JNI_FromReflectedField): Now static.
4929 (MethodClass): New define.
4930 (_Jv_JNI_FromReflectedMethod): New function.
4931 (_Jv_JNI_ToReflectedMethod): Likewise.
4932 Include Method.h.
4933 (_Jv_JNI_IsAssignableFrom): Renamed.
4934 (_Jv_JNI_GetStringRegion): New function.
4935 Include StringIndexOutOfBoundsException.h.
4936 (_Jv_JNI_GetStringUTFRegion): New function.
4937 (_Jv_JNIFunctions): Updated for new functions.
4938 (_Jv_JNI_GetPrimitiveArrayCritical): New function
4939 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4940 (_Jv_JNI_GetStringCritical): New function.
4941 (_Jv_JNI_ReleaseStringCritical): Likewise.
4942 (get_throwable): Removed.
4943 (GCJ_JV_JNIENV_FRIEND): Removed.
4944 (__GCJ_JNI_IMPL__): Define.
4945 Include method.h.
4946
4947 * resolve.cc (get_ffi_type_from_signature): Handle case where
4948 boolean is an int.
4949
4950 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
4951
4952 * interpret.cc (run): Don't call println.
4953 Don't include PrintStream.h.
4954
4955 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4956 nameIndex. Use "jint" as type for boffset.
4957 * java/lang/Class.h (struct _Jv_Method): Made accflags a
4958 _Jv_ushort.
4959 (Class): Likewise. Also changed type of method_count,
4960 vtable_method_count, size_in_bytes, field_count,
4961 static_field_count, interface_count.
4962 * gcj/array.h (__JArray): Made `length' a const jsize, not an
4963 int.
4964
4965 2000-01-21 Tom Tromey <tromey@cygnus.com>
4966
4967 * java/lang/reflect/natConstructor.cc (newInstance): Use
4968 _Jv_CallAnyMethodA.
4969 * include/jvm.h: Declare _Jv_CallAnyMethodA.
4970 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
4971 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
4972 Include <jni.h>.
4973 (COPY): Removed.
4974 (invoke): Use _Jv_CallAnyMethodA.
4975 (VAL): Redefined.
4976 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
4977 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
4978 functions.
4979 (struct _Jv_Method): Added getNextMethod method.
4980 (JvNumMethods): New function.
4981 (JvGetFirstMethod): Likewise.
4982 * gcj/field.h (JvGetFirstStaticField): New function.
4983 (JvNumStaticFields): Likewise.
4984 (getNextField): Renamed from getNextInstanceField.
4985 (struct _Jv_Field): New method getClass.
4986 * jni.cc: Wrote many new functions.
4987 * include/jni.h (JNI_TRUE): Define.
4988 (JNI_FALSE): Likewise.
4989 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
4990 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
4991 jcharArray, jfloatArray, jdoubleArray): New typedefs.
4992 (jfieldID, jmethodID): Likewise.
4993 (JNI_COMMIT, JNI_ABORT): New defines.
4994 (JNINativeMethod): New struct.
4995 (struct JNINativeInterface): Correctly declared more entries.
4996 (class _Jv_JNIEnv): Added `ex' member.
4997 (JNI_VERSION_1_1): New define.
4998 (JNI_VERSION_1_2): Likewise.
4999
5000 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5001 getNextInstanceField.
5002
5003 2000-01-20 Tom Tromey <tromey@cygnus.com>
5004
5005 * resolve.cc (StringClass): Removed.
5006 * defineclass.cc (StringClass): Removed.
5007
5008 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5009
5010 * NEWS: updated.
5011
5012 2000-01-19 Tom Tromey <tromey@cygnus.com>
5013
5014 * interpret.cc (PC_REGISTER_ASM): Removed.
5015
5016 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5017 From Bryce McKinlay.
5018
5019 * All files: Updated copyright to reflect Cygnus purchase.
5020
5021 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5022
5023 * configure: Rebuilt.
5024 * configure.in: Recognize --disable-interpreter.
5025
5026 2000-01-18 Andrew Haley <aph@cygnus.com>
5027
5028 * name-finder.cc (lookup): Check for dladdr function.
5029 acconfig.h (HAVE_DLADDR): Add.
5030 configure.in: Check for HAVE_DLADDR
5031 configure: Rebuilt.
5032 include/config.h.in: Rebuilt.
5033
5034 2000-01-17 Andrew Haley <aph@cygnus.com>
5035
5036 * prims.cc (_Jv_RunMain): Set the name of this executable.
5037
5038 2000-01-17 Tom Tromey <tromey@cygnus.com>
5039
5040 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5041 when backtrace can't be computed.
5042
5043 * configure: Rebuilt.
5044 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5045
5046 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5047 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5048 (_Jv_FindClassInCache): Likewise.
5049 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5050 (findSystemClass): Try to load class from compiled module.
5051 Include Runtime.h.
5052 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5053 (loadLibrary): Likewise.
5054 (lt_preloaded_symbols): Define.
5055 (loadLibraryInternal): New method.
5056 * include/config.h.in: Rebuilt.
5057 * acconfig.h (USE_LTDL): Added.
5058 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5059 (INCLUDES): Added $(INCLTDL).
5060 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5061 (libgcj_la_LIBADD): Likewise.
5062 * aclocal.m4, configure: Rebuilt.
5063 * configure.in: Added libltdl support.
5064
5065 2000-01-15 Tom Tromey <tromey@cygnus.com>
5066
5067 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5068
5069 2000-01-14 Andrew Haley <aph@cygnus.com>
5070
5071 * java/lang/natThrowable.cc: New file.
5072
5073 * java/lang/Throwable.java (fillInStackTrace): Make native.
5074 (printStackTrace): Call native method to do this.
5075 (Throwable): Call fillInStackTrace.
5076 (stackTrace): New variable.
5077
5078 * include/jvm.h: Add _Jv_ThisExecutable functions.
5079
5080 * prims.cc: (_Jv_execName): New variable.
5081 (catch_segv): Call fillInStackTrace.
5082 (catch_fpe): Ditto.
5083 (_Jv_ThisExecutable): New functions.
5084 (JvRunMain): Set the name of this executable.
5085
5086 * Makefile.am: Add java/lang/natThrowable.cc.
5087 Add name-finder.cc.
5088 * Makefile.in: Rebuilt.
5089
5090 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5091
5092 * configure.in: Force link with __frame_state_for in
5093 FORCELIBGCCSPEC. Add new checks for backtrace.
5094 * include/config.h.in: Rebuilt.
5095
5096 * name-finder.cc: New file.
5097 * include/name-finder.h: New file.
5098
5099 2000-01-16 Anthony Green <green@cygnus.com>
5100
5101 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5102 null argument.
5103
5104 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5105
5106 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5107
5108 2000-01-13 Tom Tromey <tromey@cygnus.com>
5109
5110 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5111 not system loader, as initiating loader.
5112
5113 2000-01-11 Tom Tromey <tromey@cygnus.com>
5114
5115 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5116 HP/UX. From David Scott Urban.
5117
5118 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5119
5120 * java/lang/natMath.cc (pow): Cast args to `double', not
5121 `jdouble'.
5122 (atan2): Likewise.
5123 (IEEEremainder): Likewise.
5124 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5125 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5126
5127 2000-01-09 Anthony Green <green@cygnus.com>
5128
5129 * java/lang/natString.cc (init): Test for overflow condition
5130 during out of bounds check.
5131 (getChars): Throw StringIndexOutOfBoundsException, not
5132 ArrayIndexOutOfBoundsException.
5133 (getBytes): Ditto.
5134 (regionMatches): Obey case option during string comparison.
5135
5136 * configure.host (ligcj_interpreter): New variable. Enable
5137 interpreter by default on IA-32.
5138 * configure.in: Examine libgcj_interpreter.
5139 * configure: Rebuilt.
5140
5141 2000-01-07 Tom Tromey <tromey@cygnus.com>
5142
5143 * mauve-libgcj: Don't disable ClassTest.
5144
5145 * java/lang/natClass.cc (getClasses): Wrote.
5146
5147 2000-01-06 Tom Tromey <tromey@cygnus.com>
5148
5149 * java/lang/natClass.cc (_getConstructors): Correctly check
5150 whether method name is the init name.
5151 (getMethod): Look at accflags on method in `klass', not `this'.
5152
5153 2000-01-05 Tom Tromey <tromey@cygnus.com>
5154
5155 * java/lang/natClass.cc (getMethod): Compute offset relative to
5156 `klass's methods table, not `this's table.
5157
5158 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5159 In unwrapping/widening case, check whether `k' is null, not
5160 whether it is primitive. Initialize `num' from `argelts', not
5161 `paramelts'. Correct create and pass arguments to ffi_call.
5162 Don't let presence of `this' argument affect index used to look in
5163 argument arrays.
5164 (COPY): Set appropriate element in `values' vector.
5165
5166 * java/lang/natClass.cc: Include <gcj/method.h>.
5167
5168 * java/lang/Class.h (_getMethods): Correctly declare as private,
5169 not public.
5170
5171 * java/lang/Class.h (_getMethods): Declare.
5172 * java/lang/Class.java (_getMethods): Declare.
5173 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5174 (getDeclaredClasses): Always return empty array.
5175 (_getMethods): New method.
5176 (getMethods): Wrote.
5177 (getDeclaredMethod): Return `rmethod'.
5178 (finit_name): New global.
5179 (getDeclaredMethods): Check for finit_name.
5180 (_getMethods): Likewise.
5181 (getMethod): Only return public methods.
5182
5183 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5184 jboolean and select correct ffi type on that basis.
5185 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5186 Constructor call always has `void' return type.
5187
5188 2000-01-04 Tom Tromey <tromey@cygnus.com>
5189
5190 * java/lang/Class.h (getSignature): Updated.
5191 * java/lang/Class.java (getSignature): Updated.
5192 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5193 argument.
5194 (getConstructor): Ensure constructor is public.
5195 (_getConstructors): Check for public-ness of constructor when
5196 `declared' is false, not when it is true.
5197
5198 2000-01-04 Warren Levy <warrenl@cygnus.com>
5199
5200 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5201 comment.
5202 (receive): Set the sender's address in the DatagramPacket.
5203
5204 2000-01-04 Tom Tromey <tromey@cygnus.com>
5205
5206 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5207 declaring class as return_type argument to
5208 _Jv_CallNonvirtualMethodA.
5209 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5210 constructor case, create object and use it as `this' argument.
5211 * java/lang/Class.h (_getConstructors): Declare.
5212 (_getFields): Declare.
5213 * java/lang/Class.java (getConstructors): Wrote.
5214 (_getConstructors): New native method.
5215 (getDeclaredConstructors): Wrote.
5216 (_getFields): Declare new native method.
5217 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5218 incorrect comment.
5219 (getMethod): Work correctly when class is primitive.
5220 (getDeclaredMethods): Likewise. Compute offset using `method',
5221 not `mptr'.
5222 (getDeclaredMethod): Likewise.
5223 (getConstructor): Wrote.
5224 (ConstructorClass): New define.
5225 (getDeclaredConstructor): Wrote.
5226 (_getConstructors): New method.
5227 (_getFields): New method.
5228 (getFields): Wrote.
5229
5230 * Makefile.in: Rebuilt.
5231 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5232
5233 * prims.cc: Remove `#pragma implementation'.
5234 * gcj/array.h: Remove `#pragma interface'.
5235
5236 * prims.cc (_Jv_equaln): New function.
5237 * java/lang/Class.java (getSignature): Declare.
5238 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5239 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5240 resolve.cc.
5241 (getSignature): New method.
5242 (getDeclaredMethod): Wrote.
5243 (getMethod): Wrote.
5244 Include StringBuffer.h.
5245 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5246 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5247 a friend.
5248 (getSignature): Declare.
5249 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5250 (_Jv_equaln): Declare.
5251 (_Jv_CallNonvirtualMethodA): Declare.
5252 * Makefile.in: Rebuilt.
5253 * Makefile.am (nat_source_files): Added natConstructor.cc.
5254 (java/lang/reflect/Constructor.h): New target.
5255 * java/lang/reflect/natConstructor.cc: New file.
5256 * java/lang/reflect/Constructor.java (newInstance): Now native.
5257 (declaringClass): Renamed from decl_class.
5258 (offset): Renamed from index.
5259 (getType): New native method.
5260 (getModifiers): Now native.
5261 (getParameterTypes): Call getType if required.
5262 (hashCode): Include hash code from declaring class.
5263 (modifiers): Removed.
5264 (toString): Call getType if required.
5265 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5266 * java/lang/reflect/natMethod.cc (hack_call): New method.
5267 Removed `#if 0' around FFI code.
5268 Include <gnu/gcj/RawData.h>.
5269 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5270 IllegalArgumentException when argument object and class disagree.
5271 (_Jv_GetTypesFromSignature): New function.
5272 (getType): Use it.
5273 (ObjectClass): New define.
5274 (_Jv_CallNonvirtualMethodA): New function.
5275 * java/lang/reflect/Method.java (hack_trampoline): New method.
5276 (hack_call): New native method.