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