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