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