OSDN Git Service

4dece51693b03fb3cef37ca85fbe5f0b7cbb8cda
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2002-01-17  Tom Tromey  <tromey@redhat.com>
2
3         * java/awt/MenuComponent.java: Merged with Classpath.
4         * java/awt/MenuItem.java: Merged with Classpath.
5         * java/awt/Button.java: Merged with Classpath.
6
7         * java/awt/ActiveEvent.java: Updated copyright.
8
9         * java/awt/AWTError.java: Replaced with Classpath version.
10         * java/awt/AWTException.java: Replaced with Classpath version.
11         * java/awt/IllegalComponentStateException.java: Replaced with
12         Classpath version.
13
14 2002-01-16  Tom Tromey  <tromey@redhat.com>
15
16         * java/awt/Canvas.java (serialVersionUID): New constant.
17         Updated copyright.  Added javadoc from Classpath.
18         * java/awt/ItemSelectable.java: Replaced with Classpath version.
19
20         * java/awt/CheckboxGroup.java: Merged with Classpath.
21         * java/awt/Checkbox.java: Merged with Classpath.
22
23         * java/awt/Dimension.java: Updated copyright.  Added javadoc from
24         Classpath.
25         * java/awt/Point.java: Updated copyright.
26
27         * java/awt/Point.java (toString): Use getClass().getName().
28         Added javadoc.
29
30         * java/util/IdentityHashMap.java (IdentityHashMap): Removed
31         commented code.
32         (hash): Correctly compute initial value for `h'.
33
34         * java/awt/Label.java: Merged with Classpath.
35
36 2002-01-15  Tom Tromey  <tromey@redhat.com>
37
38         * java/awt/AWTPermission.java: Updated copyright.
39
40         * java/awt/LayoutManager2.java: Merged with Classpath.
41         * java/awt/LayoutManager.java: Merged with Classpath.
42         * java/awt/GridLayout.java: Updated copyright and javadoc.
43         (getSize): Use `parent.ncomponents'.  Handle insets.
44         (layoutContainer): Use `parent.ncomponents'.  Handle case where
45         there are fewer children than columns.  Correctly compute size of
46         each cell in the grid.  Handle case where there isn't enough
47         space.
48         * java/awt/CardLayout.java (tab): Renamed from `map'.  Updated
49         all users.
50         (gotoComponent): Use parent.ncomponents.  Ensure child exists
51         before calling setVisible() on it.  Last item is `num - 1', not
52         `num'.
53         (layoutContainer): Hoist invariants out of loop.
54
55         Start of AWT merge with Classpath:
56         * Makefile.in: Rebuilt.
57         * Makefile.am (awt_java_source_files): Reference files in
58         gnu/java/awt, not gnu/gcj/awt.
59         * java/awt/image/BufferedImage.java: Updated copyright.
60         * java/awt/image/ComponentColorModel.java: Updated copyright.
61         * java/awt/image/ComponentSampleModel.java: Updated copyright.
62         * java/awt/image/DataBuffer.java: Updated copyright.
63         * java/awt/image/DataBufferByte.java: Updated copyright.
64         * java/awt/image/DataBufferInt.java: Updated copyright.
65         * java/awt/image/DataBufferUShort.java: Updated copyright.
66         * java/awt/image/IndexColorModel.java: Updated copyright.
67         * java/awt/image/PackedColorModel.java: Updated copyright.
68         * java/awt/image/Raster.java: Updated copyright.
69         * java/awt/image/RasterOp.java: Updated copyright.
70         * java/awt/image/SampleModel.java: Updated copyright.
71         * java/awt/image/SinglePixelPackedSampleModel.java: Updated copyright.
72         * java/awt/image/WritableRaster.java: Updated copyright.
73         * java/awt/color/ColorSpace.java: Updated copyright.
74         * java/awt/color/ICC_ColorSpace.java: Updated copyright
75         * java/awt/color/ICC_Profile.java: Updated copyright.
76         * java/awt/event/HierarchyBoundsAdapter.java: Updated copyright.
77         * java/awt/event/HierarchyBoundsListener.java: Updated copyright.
78         * java/awt/event/HierarchyEvent.java: Updated copyright.
79         * java/awt/event/HierarchyListener.java: Updated copyright.
80         * java/awt/geom/AffineTransform.java: Updated copyright.
81         * java/awt/geom/Dimension2D.java: Updated copyright.
82         * java/awt/geom/Ellipse2D.java: Updated copyright.
83         * java/awt/geom/IllegalPathStateException.java: Updated copyright.
84         * java/awt/geom/Line2D.java: Updated copyright.
85         * java/awt/geom/NoninvertibleTransformException.java: Updated
86         copyright.
87         * java/awt/geom/PathIterator.java: Updated copyright.
88         * java/awt/geom/Point2D.java: Updated copyright.
89         * java/awt/geom/Rectangle2D.java: Updated copyright.
90         * java/awt/geom/RectangularShape.java: Updated copyright.
91         * java/awt/geom/RoundRectangle2D.java: Updated copyright.
92         * java/awt/Toolkit.java: Updated import for file moves.
93         * java/awt/Rectangle.java: Updated copyright; added javadoc from
94         Classpath.
95         (hashCode): New method from Classpath.
96         * java/awt/Graphics2D.java: Updated copyright.
97         * java/awt/Transparency.java: Updated copyright.
98         * java/awt/Paint.java: Updated copyright.
99         * java/awt/Graphics.java: New version from Classpath.
100         * java/awt/EventDispatchThread.java: Updated copyright.
101         * java/awt/CardLayout.java (layoutContainer): Don't skip invisible
102         children.
103         (gotoComponent): Wrap around on next/previous.
104         * gnu/gcj/awt/BitMaskExtent.java: Removed.
105         * gnu/gcj/awt/Buffers.java: Removed.
106         * gnu/gcj/awt/ComponentDataBlitOp.java: Removed.
107         * gnu/gcj/awt/GLightweightPeer.java: Removed.
108         * gnu/java/awt/BitMaskExtent.java: Added.
109         * gnu/java/awt/Buffers.java: Added.
110         * gnu/java/awt/ComponentDataBlitOp.java: Added.
111         * gnu/java/awt/GLightweightPeer.java: Added.
112         * java/awt/geom/Line2D.java (clone): Ignore
113         CloneNotSupportedException.
114         * gnu/gcj/awt/GLightweightPeer.java (getColorModel): New method.
115         * java/awt/Frame.java: Merged with Classpath.
116         * java/awt/RenderingHints.java: Copyright update.
117         * java/awt/Paint.java: Copyright update.
118         * java/awt/image/DirectColorModel.java: Merged with Classpath.
119         * java/awt/image/ColorModel.java: Merged with Classpath.
120         * java/awt/Window.java (show): New Implementation from Classpath.
121         (isShowing): Use super.isShowing().
122         * java/awt/EventQueue.java: Merged with Classpath.
123         * java/awt/AWTEventMulticaster.java (save): Throw
124         RuntimeException.
125         (saveInternal): Likewise.
126         * java/awt/AWTEvent.java: Now implements Serializable.
127         * java/awt/Event.java: Copyright update.
128         * java/awt/peer/ComponentPeer.java: Merged with Classpath.
129         * java/awt/image/BufferedImage.java: Copyright update.
130         * java/awt/GraphicsConfiguration.java: Copyright update.
131         * java/awt/Component.java: (addNotify): Don't call
132         addNotifyContainerChildren().
133         (addNotifyContainerChildren): Removed.
134         (setPeer): New method from Classpath.
135         (setTreeLock): Likewise.
136         (setVisible): Rewrote.
137         (show): Use it.
138         (hide): Likewise.
139         (validate): Set `valid'.
140         (checkImage(Image,ImageObserver)): Implementation from Classpath.
141         (createImage(ImageProducer)): Likewise.
142         (prepareImage): Likewise.
143         * java/awt/Container.java (addImpl): Handle case where constraint
144         is not a String.  Post event via system event queue.
145         (remove): Post event via system event queue.
146         (validateTree): Only validate child if it is invalid.
147         (getAlignmentX): Call super method as default.
148         (getAlignmentY): Likewise.
149         (addContainerListener): Now synchronized.
150         (removeContainerListener): Likewise.
151         (addNotifyContainerChildren): Now private.
152         * java/awt/ComponentOrientation.java: Updated copyright.  Added
153         @author.
154         * java/awt/FlowLayout.java (serialVersionUID): New field.
155         (setAlignment): Better exception message.
156         (layoutContainer): Don't compute component's preferred size unless
157         we're going to use it.
158         * java/awt/BorderLayout.java (AFTER_LAST_LINE, AFTER_LINE_ENDS,
159         BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS): New constants.
160         (firstLine, lastLine, firstItem, lastItem): New fields.
161         (addLayoutComponent): Handle case where constraints is null.
162         Also, handle relative locations.
163         (removeLayoutComponent): Handle relative locations.
164         (MIN, MAX, PREF): New constants.
165         (calcCompSize): New method.
166         (calcSize): New method.
167         (minimumLayoutSize): Use it.
168         (preferredLayoutSize): Likewise.
169         (maximumLayoutSize): Likewise.
170         (toString): Include more information.
171         (setBounds): New method.
172         (layoutContainer): Use libgcj implementation; extended to handle
173         relative locations.
174
175 2002-01-15  Tom Tromey  <tromey@redhat.com>
176
177         * java/lang/Float.java (equals): Preserve old code.
178         * java/lang/Double.java (equals): Preserve old code.
179
180 2002-01-15  Eric Blake  <ebb9@email.byu.edu>
181
182         * java/lang/Double.java (equals, compare): Fix 0.0 vs. -0.0 math.
183         * java/lang/Float.java (equals, compare): Ditto.
184
185 2002-01-13  Mark Wielaard  <mark@klomp.org>
186
187         * java/net/DatagramSocket.java (getReceiveBufferSize): new 1.2 method.
188         * java/net/DatagramSocket.java (getSendBufferSize): Likewise.
189         * java/net/DatagramSocket.java (setReceiveBufferSize): Likewise.
190         * java/net/DatagramSocket.java (setSendBufferSize): Likewise.
191
192 2002-01-11  Mark Wielaard  <mark@klomp.org>
193
194         * java/net/InetAddress.java (ANY_IF): moved from ServerSocket.
195         * java/net/DatagramSocket.java (DatagramSocket): use ANY_IF from
196         InetAddress.
197         * java/net/MulticastSocket.java (MulticastSocket): Likewise.
198         * java/net/Socket.java: Merge with Classpath.
199         * java/net/ServerSocket.java: Likewise.
200
201 2002-01-11  Chris Sears  <cbsears_sf@yahoo.com>
202
203         * interpret.cc (NULLARRAYCHECK): New macro.
204         (SAVE_PC): Just store `pc'.
205         (find_exception): Subtract one from `pc' here.
206         (continue1) [insn_iaload, insn_laload, insn_faload, insn_daload,
207         insn_aaload, insn_baload, insn_caload, insn_saload, insn_iastore,
208         insn_lastore, insn_fastore, insn_dastore, insn_aastore,
209         insn_bastore, insn_castore, insn_sastore]: Use NULLARRAYCHECK, and
210         don't call SAVE_PC.
211         (continue1) [insn_fdiv, insn_ddiv, insn_frem, insn_drem]: Don't
212         call SAVE_PC.
213
214 2002-01-11  Tom Tromey  <tromey@redhat.com>
215
216         * java/lang/natSystem.cc (init_properties): Only look for default
217         locale if LC_MESSAGES is defined.
218         * aclocal.m4, configure, include/config.h.in: Rebuilt.
219         * configure.in: Call AM_LC_MESSAGES.
220         * acinclude.m4 (AM_LC_MESSAGES): New macro.
221
222 2002-01-10  Tom Tromey  <tromey@redhat.com>
223
224         For PR libgcj/5303:
225         * gnu/java/rmi/rmic/RMIC.java (parseOptions): Handle --help and
226         --version.  Recognize GNU-style long options.  Print GNU-style
227         error messages.
228         (usage): Print GNU-style help.  Exit with status 0.
229         (error): New method.
230         (run): Print error message if no class names found.
231         (main): Don't print usage on error.
232
233 2002-01-09  Tom Tromey  <tromey@redhat.com>
234
235         * gnu/gcj/convert/Convert.java (version): Use java.vm.name
236         property.
237         (help, version): Use println(), not println("").
238
239         For PR libgcj/5303:
240         * gnu/gcj/convert/Convert.java (error): Program is called
241         `jv-convert'.  Print GNU-style message.  Exit with status 1, not
242         -1.
243         (main): Handle --help and --version.
244         (help): New method.
245         (version): Likewise.
246
247 2002-01-08  Tom Tromey  <tromey@redhat.com>
248
249         * Makefile.in: Rebuilt.
250         * Makefile.am (ordinary_java_source_files): Added new files.
251         * gnu/java/locale/LocaleInformation.java: Extend
252         LocaleInformation_en.
253         * gnu/java/locale/LocaleInformation_en.java: Added zone strings
254         and time/date formats.
255         * gnu/java/locale/LocaleInformation_en_US.java: Now automatically
256         generated.
257         * gnu/java/locale/LocaleInformation_af_ZA.java: New file.
258         * gnu/java/locale/LocaleInformation_ar_AE.java: New file.
259         * gnu/java/locale/LocaleInformation_ar_BH.java: New file.
260         * gnu/java/locale/LocaleInformation_ar_DZ.java: New file.
261         * gnu/java/locale/LocaleInformation_ar_EG.java: New file.
262         * gnu/java/locale/LocaleInformation_ar_IN.java: New file.
263         * gnu/java/locale/LocaleInformation_ar_IQ.java: New file.
264         * gnu/java/locale/LocaleInformation_ar_JO.java: New file.
265         * gnu/java/locale/LocaleInformation_ar_KW.java: New file.
266         * gnu/java/locale/LocaleInformation_ar_LB.java: New file.
267         * gnu/java/locale/LocaleInformation_ar_LY.java: New file.
268         * gnu/java/locale/LocaleInformation_ar_MA.java: New file.
269         * gnu/java/locale/LocaleInformation_ar_OM.java: New file.
270         * gnu/java/locale/LocaleInformation_ar_QA.java: New file.
271         * gnu/java/locale/LocaleInformation_ar_SD.java: New file.
272         * gnu/java/locale/LocaleInformation_ar_SY.java: New file.
273         * gnu/java/locale/LocaleInformation_ar_TN.java: New file.
274         * gnu/java/locale/LocaleInformation_ar_YE.java: New file.
275         * gnu/java/locale/LocaleInformation_be_BY.java: New file.
276         * gnu/java/locale/LocaleInformation_bn_IN.java: New file.
277         * gnu/java/locale/LocaleInformation_br_FR.java: New file.
278         * gnu/java/locale/LocaleInformation_bs_BA.java: New file.
279         * gnu/java/locale/LocaleInformation_ca_ES.java: New file.
280         * gnu/java/locale/LocaleInformation_cs_CZ.java: New file.
281         * gnu/java/locale/LocaleInformation_cy_GB.java: New file.
282         * gnu/java/locale/LocaleInformation_da_DK.java: New file.
283         * gnu/java/locale/LocaleInformation_de_AT.java: New file.
284         * gnu/java/locale/LocaleInformation_de_BE.java: New file.
285         * gnu/java/locale/LocaleInformation_de_CH.java: New file.
286         * gnu/java/locale/LocaleInformation_de_DE.java: New file.
287         * gnu/java/locale/LocaleInformation_de_LU.java: New file.
288         * gnu/java/locale/LocaleInformation_el_GR.java: New file.
289         * gnu/java/locale/LocaleInformation_en_AU.java: New file.
290         * gnu/java/locale/LocaleInformation_en_BW.java: New file.
291         * gnu/java/locale/LocaleInformation_en_CA.java: New file.
292         * gnu/java/locale/LocaleInformation_en_DK.java: New file.
293         * gnu/java/locale/LocaleInformation_en_GB.java: New file.
294         * gnu/java/locale/LocaleInformation_en_HK.java: New file.
295         * gnu/java/locale/LocaleInformation_en_IE.java: New file.
296         * gnu/java/locale/LocaleInformation_en_IN.java: New file.
297         * gnu/java/locale/LocaleInformation_en_NZ.java: New file.
298         * gnu/java/locale/LocaleInformation_en_PH.java: New file.
299         * gnu/java/locale/LocaleInformation_en_SG.java: New file.
300         * gnu/java/locale/LocaleInformation_en_ZA.java: New file.
301         * gnu/java/locale/LocaleInformation_en_ZW.java: New file.
302         * gnu/java/locale/LocaleInformation_es_AR.java: New file.
303         * gnu/java/locale/LocaleInformation_es_BO.java: New file.
304         * gnu/java/locale/LocaleInformation_es_CL.java: New file.
305         * gnu/java/locale/LocaleInformation_es_CO.java: New file.
306         * gnu/java/locale/LocaleInformation_es_CR.java: New file.
307         * gnu/java/locale/LocaleInformation_es_DO.java: New file.
308         * gnu/java/locale/LocaleInformation_es_EC.java: New file.
309         * gnu/java/locale/LocaleInformation_es_ES.java: New file.
310         * gnu/java/locale/LocaleInformation_es_GT.java: New file.
311         * gnu/java/locale/LocaleInformation_es_HN.java: New file.
312         * gnu/java/locale/LocaleInformation_es_MX.java: New file.
313         * gnu/java/locale/LocaleInformation_es_NI.java: New file.
314         * gnu/java/locale/LocaleInformation_es_PA.java: New file.
315         * gnu/java/locale/LocaleInformation_es_PE.java: New file.
316         * gnu/java/locale/LocaleInformation_es_PR.java: New file.
317         * gnu/java/locale/LocaleInformation_es_PY.java: New file.
318         * gnu/java/locale/LocaleInformation_es_SV.java: New file.
319         * gnu/java/locale/LocaleInformation_es_US.java: New file.
320         * gnu/java/locale/LocaleInformation_es_UY.java: New file.
321         * gnu/java/locale/LocaleInformation_es_VE.java: New file.
322         * gnu/java/locale/LocaleInformation_et_EE.java: New file.
323         * gnu/java/locale/LocaleInformation_eu_ES.java: New file.
324         * gnu/java/locale/LocaleInformation_fa_IR.java: New file.
325         * gnu/java/locale/LocaleInformation_fi_FI.java: New file.
326         * gnu/java/locale/LocaleInformation_fo_FO.java: New file.
327         * gnu/java/locale/LocaleInformation_fr_BE.java: New file.
328         * gnu/java/locale/LocaleInformation_fr_CA.java: New file.
329         * gnu/java/locale/LocaleInformation_fr_CH.java: New file.
330         * gnu/java/locale/LocaleInformation_fr_FR.java: New file.
331         * gnu/java/locale/LocaleInformation_fr_LU.java: New file.
332         * gnu/java/locale/LocaleInformation_ga_IE.java: New file.
333         * gnu/java/locale/LocaleInformation_gd_GB.java: New file.
334         * gnu/java/locale/LocaleInformation_gl_ES.java: New file.
335         * gnu/java/locale/LocaleInformation_gv_GB.java: New file.
336         * gnu/java/locale/LocaleInformation_he_IL.java: New file.
337         * gnu/java/locale/LocaleInformation_hi_IN.java: New file.
338         * gnu/java/locale/LocaleInformation_hr_HR.java: New file.
339         * gnu/java/locale/LocaleInformation_hu_HU.java: New file.
340         * gnu/java/locale/LocaleInformation_id_ID.java: New file.
341         * gnu/java/locale/LocaleInformation_it_CH.java: New file.
342         * gnu/java/locale/LocaleInformation_it_IT.java: New file.
343         * gnu/java/locale/LocaleInformation_iw_IL.java: New file.
344         * gnu/java/locale/LocaleInformation_ja_JP.java: New file.
345         * gnu/java/locale/LocaleInformation_ka_GE.java: New file.
346         * gnu/java/locale/LocaleInformation_kl_GL.java: New file.
347         * gnu/java/locale/LocaleInformation_ko_KR.java: New file.
348         * gnu/java/locale/LocaleInformation_kw_GB.java: New file.
349         * gnu/java/locale/LocaleInformation_lt_LT.java: New file.
350         * gnu/java/locale/LocaleInformation_lv_LV.java: New file.
351         * gnu/java/locale/LocaleInformation_mi_NZ.java: New file.
352         * gnu/java/locale/LocaleInformation_mk_MK.java: New file.
353         * gnu/java/locale/LocaleInformation_mr_IN.java: New file.
354         * gnu/java/locale/LocaleInformation_mt_MT.java: New file.
355         * gnu/java/locale/LocaleInformation_nl_BE.java: New file.
356         * gnu/java/locale/LocaleInformation_nl_NL.java: New file.
357         * gnu/java/locale/LocaleInformation_nn_NO.java: New file.
358         * gnu/java/locale/LocaleInformation_no_NO.java: New file.
359         * gnu/java/locale/LocaleInformation_oc_FR.java: New file.
360         * gnu/java/locale/LocaleInformation_pl_PL.java: New file.
361         * gnu/java/locale/LocaleInformation_pt_BR.java: New file.
362         * gnu/java/locale/LocaleInformation_pt_PT.java: New file.
363         * gnu/java/locale/LocaleInformation_ro_RO.java: New file.
364         * gnu/java/locale/LocaleInformation_ru_RU.java: New file.
365         * gnu/java/locale/LocaleInformation_ru_UA.java: New file.
366         * gnu/java/locale/LocaleInformation_se_NO.java: New file.
367         * gnu/java/locale/LocaleInformation_sk_SK.java: New file.
368         * gnu/java/locale/LocaleInformation_sl_SI.java: New file.
369         * gnu/java/locale/LocaleInformation_sq_AL.java: New file.
370         * gnu/java/locale/LocaleInformation_sr_YU.java: New file.
371         * gnu/java/locale/LocaleInformation_sv_FI.java: New file.
372         * gnu/java/locale/LocaleInformation_sv_SE.java: New file.
373         * gnu/java/locale/LocaleInformation_ta_IN.java: New file.
374         * gnu/java/locale/LocaleInformation_te_IN.java: New file.
375         * gnu/java/locale/LocaleInformation_tg_TJ.java: New file.
376         * gnu/java/locale/LocaleInformation_tl_PH.java: New file.
377         * gnu/java/locale/LocaleInformation_tr_TR.java: New file.
378         * gnu/java/locale/LocaleInformation_uk_UA.java: New file.
379         * gnu/java/locale/LocaleInformation_ur_PK.java: New file.
380         * gnu/java/locale/LocaleInformation_uz_UZ.java: New file.
381         * gnu/java/locale/LocaleInformation_vi_VN.java: New file.
382         * gnu/java/locale/LocaleInformation_yi_US.java: New file.
383         * gnu/java/locale/LocaleInformation_zh_CN.java: New file.
384         * gnu/java/locale/LocaleInformation_zh_HK.java: New file.
385         * gnu/java/locale/LocaleInformation_zh_SG.java: New file.
386         * gnu/java/locale/LocaleInformation_zh_TW.java: New file.
387
388         For PR libgcj/5031:
389         * java/lang/natSystem.cc (init_properties): Use LC_MESSAGES to
390         choose default locale.
391
392         * Makefile.in: Rebuilt.
393         * Makefile.am (jv_convert_LDADD): Removed convert_source_files.
394
395 2002-01-08  Nic Ferrier  <nferrier@tf1.tapsellferrier.co.uk> 
396
397         * java/net/natPlainSocketImpl.cc: Added timeout handling for
398         sockets.
399         (close): New function closes the socket.
400         (write): New functions for output to socket.
401         (read): New functions for reading from socket.
402         * java/net/PlainSocketImpl.java: Glue for new timeout
403         implementation.
404         (write): Call the native impl.
405         (read): Likewise.
406         (getInputStream): Get a stream to read from the socket.
407         (getOutputStream): Get a stream to write to the socket.
408
409 2002-01-08  Tom Tromey  <tromey@redhat.com>
410
411         * resolve.cc (_Jv_PrepareClass): Enable verifier.
412
413 2002-01-07  Andreas Tobler <a.tobler@schweiz.ch>
414
415         * java/lang/reflect/natMethod.cc: Don't include alloca.h.
416         (_Jv_CallAnyMethodA): Convert alloca to __builtin_alloca.
417
418 2002-01-08  Chris Sears  <cbsears_sf@yahoo.com>
419
420         * interpret.cc (ARRAYBOUNDSCHECK): New macro.
421         (continue1) [insn_iaload, insn_laload, insn_faload, insn_daload,
422         insn_aaload, insn_baload, insn_caload, insn_saload, insn_iastore,
423         insn_lastore, insn_fastore, insn_dastore, insn_aastore,
424         insn_bastore, insn_castore, insn_sastore]: Use it.
425         (continue1) [insn_arraylength]: Check for null array.
426
427 2002-01-06 Andreas Tobler <a.tobler@schweiz.ch>
428
429         * configure, include/config.h.in: Rebuilt.
430         * java/lang/natSystem.cc (getSystemTimeZone): Check HAVE_TM_ZONE.
431         * configure.in: Call AC_STRUCT_TIMEZONE.
432
433 2002-01-02 Andreas Tobler <a.tobler@schweiz.ch>
434
435         * configure.host: Disable the interpreter for Darwin.
436
437 2002-01-04  Tom Tromey  <tromey@redhat.com>
438
439         * java/lang/Thread.java (stop): No longer synchronized.
440         (start): Likewise.
441
442 2002-01-02  Tom Tromey  <tromey@redhat.com>
443
444         * java/lang/ieeefp.h: Fix bug in my hand-application of previous
445         patch.
446
447 2002-1-1  Andrew Pinski  <pinskia@physics.uc.edu>
448
449         * libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for
450         PPC Darwin, not for all of Darwin.
451
452 2001-12-29 Andreas Tobler <a.tobler@schweiz.ch>
453
454         * libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for
455         Darwin.
456
457 2001-12-21  Tom Tromey  <tromey@redhat.com>
458
459         * java/io/ObjectInputStream.java (enableResolveObject): Use
460         correct security check.
461         * java/io/ObjectOutputStream.java (enableReplaceObject): Use
462         correct security check.
463
464         Fix for PR java/5165:
465         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
466         Convert any constant string field to a String; not just final
467         fields.
468
469         Fix for PR libgcj/2428:
470         * java/lang/natClass.cc: Include RuntimePermission.h.
471         (getClassLoader): Define.
472         * java/lang/Class.h (Class.getClassLoader): Only declare.
473
474 2001-12-19  Tom Tromey  <tromey@redhat.com>
475
476         * java/awt/FlowLayout.java (FlowLayout(), FlowLayout(int)): Set
477         gaps to 5.
478         (FlowLayout(int,int,int)): Use methods to set fields.
479         (getSize): Skip invisible components.
480         (layoutContainer): Skip invisible components.
481
482 2001-12-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
483
484         * include/jvm.h (_Jv_BuildGCDescr): Declare unconditionally.
485         * nogc.cc (_Jv_BuildGCDescr): Define unconditionally.
486         * boehm.cc (_Jv_BuildGCDescr): Likewise.
487
488 2001-12-18  Tom Tromey  <tromey@redhat.com>
489
490         * java/text/CollationElementIterator.java (secondaryOrder): Cast
491         result to `short'.
492         (tertiaryOrder): Likewise.
493
494 2001-12-16  Tom Tromey  <tromey@redhat.com>
495
496         For PR libgcj/5103:
497         * include/jvm.h (__GCJ_JNI_IMPL__): Define.
498         * include/config.h.in: Rebuilt.
499         * configure: Rebuilt.
500         * configure.in: Define JV_HAVE_INTTYPES_H if inttypes.h found.
501         Added comment for HAVE_DLOPEN to avoid autoheader error.
502         * gcj/libgcj-config.h.in (JV_HAVE_INTTYPES_H): Added.
503         * include/jni.h: Include <gcj/libgcj-config.h>.  Don't include
504         CNI-specific headers if we are compiling ordinary JNI code with a
505         C++ compiler.  Include <inttypes.h> and JNIWeakRef.h when
506         appropriate.
507         * jni.cc: Don't include JNIWeakRef.h.
508         (__GCJ_JNI_IMPL__): Don't define.
509
510         For PR java/5088:
511         * java/lang/natClassLoader.cc (_Jv_InitNewClassFields): New
512         function.
513         (_Jv_NewClass): Use it.
514         (defineClass0): Use it.
515         * prims.cc (_Jv_InitPrimClass): Adjust vtable here.
516         (_Jv_InitPrimClass): Use _Jv_InitNewClassFields.
517         (_Jv_NewArray): Don't abort; just throw exception.
518         Include InternalError.h.
519         * java/lang/Class.h (Class::Class): Declare, don't define.
520         (Class): Declare _Jv_InitNewClassFields as a friend.
521         (union _Jv_Self): Removed.
522
523         * Makefile.in: Rebuilt.
524         * Makefile.am (ordinary_java_source_files): Removed old file;
525         added new file.
526         * gnu/java/math/MPN.java: New file.
527         * gnu/gcj/math/MPN.java: Removed.
528         * java/math/BigInteger.java: Merged with Classpath.
529
530 2001-12-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
531
532         * java/io/DataOutputStream (write (byte[], int, int)): Update 
533         "written" correctly. Fix from the ORP team.
534
535 2001-12-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
536
537         * include/jvm.h (_Jv_VTable::idx_to_offset): New method.
538         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
539         _Jv_MakeVTable and _Jv_LinkOffsetTable if needed.
540         * java/lang/Class.h (_Jv_Method): Add "index" field.
541         (_Jv_MethodSymbol): New struct type.
542         (_Jv_LinkOffsetTable, _Jv_LayoutVTableMethods, _Jv_SetVTableEntries,
543         _Jv_MakeVTable): Friends.
544         (otable, otable_syms): New Class fields.
545         * java/lang/natClass.cc (_Jv_LinkOffsetTable): New function.
546         (isVirtualMethod): New static function.
547         (_Jv_LayoutVTableMethods): New function.
548         (_Jv_SetVTableEntries): New function.
549         (_Jv_MakeVTable): New function.
550
551 2001-12-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
552
553         * java/util/BitSet.java (and): Fix off-by-one bug, don't skip part of
554         the bitset.
555         (andNot): Likewise.
556         (xor): Likewise.
557
558 2001-12-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
559
560         * java/util/LinkedList.java (LinkedListItr.add): Don't skip the next
561         entry.
562
563 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
564
565         * java/util/TreeMap.java (removeNode): Fix bug in node removal.
566
567 2001-12-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
568
569         * java/util/AbstractCollection.java (containsAll): Use size of the
570         correct collection for loop bound.
571         * java/util/AbstractList.java (iterator.next): Increment pos after
572         calling get on backing list.
573         (listIterator.next): Likewise.
574         * java/util/LinkedList.java (addLastEntry): Don't increment size before
575         checking for size == 0.
576         (addFirstEntry): Rearrange to match addLastEntry.
577         (add): Do not increment size before inserting the new entry.
578
579         * java/util/AbstractCollection.java (addAll): Use size of the
580         correct collection for loop bound.
581
582 2001-12-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
583
584         * java/util/AbstractSet.java (removeAll): Fix scoping thinko.
585         * java/util/HashMap.java (putAllInternal): Set size here.
586         * java/util/Hashtable.java (putAllInternal): New method. Copy contents
587         of a map efficiently without calling put() or putAll().
588         (Hashtable (map)): Use putAllInternal.
589         (clone): Likewise.
590
591 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
592
593         * java/util/Collections.java:
594         * java/util/Vector.java:
595         * java/util/WeakHashMap.java: Fix spelling errors.
596
597 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
598
599         * java/util/AbstractCollection.java (removeAllInternal),
600         (retainAllInternal): Add hooks for use by ArrayList.
601         * java/util/AbstractList.java: Minor code updates. Fix some
602         scoping.
603         * java/util/AbstractMap.java: ditto
604         * java/util/ArrayList.java (readObject, writeObject): ditto
605         (removeAllInternal, retainAllInternal): Optimize.
606         * java/util/Arrays.java: ditto
607         * java/util/Collections.java: ditto. Change order of parameters
608         to equals(Object, Object) to match specs.
609         * java/util/Dictionary.java: Improve javadoc.
610         (Dictionary): Add explicit constructor.
611         * java/util/HashMap.java: Improve javadoc. Rearrange methods to
612         follow order in JDK. Cleanups related to recent code migration to
613         AbstractMap. Fix some scoping.
614         (entrySet): Cache the result.
615         (modCount): Ensure that this is updated correctly.
616         * java/util/HashSet.java: Improve javadoc. Fix some scoping.
617         (init): Add hooks for LinkedHashSet.
618         (map): Use "" instead of Boolean.TRUE in backing map. Use
619         package-private API where possible for less overhead.
620         (readObject, writeObject): Fix serialization.
621         * java/util/Hashtable.java: Improve javadoc. Fix some scoping.
622         (entrySet, keySet, values): Cache the result.
623         (modCount): Ensure that this is updated correctly.
624         (contains, remove): Fix NullPointer checking to match specs.
625         (class Enumeration): Make more like HashIterator.
626         * java/util/IdentityHashMap.java: Minor code updates.
627         (modCount): Ensure that this is updated correctly.
628         (readObject, writeObject): Fix serialization.
629         * java/util/LinkedHashMap.java: Minor code updates. Cleanups
630         related to recent code migration to AbstractMap.
631         * java/util/LinkedHashSet.java: New file.
632         * java/util/LinkedList.java:
633         (readObject, writeObject): Fix serialization.
634         * java/util/Makefile.am: List recently added files.
635         * java/util/Stack.java: Minor code updates.
636         * java/util/TreeMap.java: Improve javadoc. Overhaul the class to
637         be more efficient. Fix some scoping. Rearrange the methods.
638         (nil): Ensure that this can be thread-safe, and make it a static
639         final. Initialize it to be more useful as a sentinal node.
640         (Node): Specify color in constructor.
641         (deleteFixup, insertFixup): Improve comments and algorithm.
642         (fabricateTree): Redesign with less overhead.
643         (lowestGreaterThan): Add parameter first to make SubMap easier.
644         (removeNode): Patch hole where nil was being modified. Choose
645         predecessor instead of successor so in-place swap works.
646         (class VerifyResult, verifyTree, verifySub, verifyError): Remove
647         this dead code after verifying the class works.
648         (class SubMap): Rewrite several algorithms to avoid problems with
649         comparing nil.
650         * java/util/TreeSet.java: Improve javadoc. Fix some scoping.
651         (clone): Fix ClassCastException when cloning subSet().
652         (readObject, writeObject): Fix serialization.
653         * java/util/WeakHashMap.java: Improve javadoc. Fix some scoping.
654         (NULL_KEY): Make it compare as null, for ease elsewhere.
655         (Class WeakEntry): Rename from Entry, to avoid shadowing
656         Map.Entry. Add missing toString.
657         (modCount): Ensure that this is updated correctly.
658         (clear, containsValue, keySet, putAll, values, WeakHashMap(Map)):
659         Add missing methods and constructor.
660
661 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
662
663         * java/util/ArrayList.java (checkBoundExclusive),
664         (checkBoundInclusive): Rename from range??clusive, to match
665         AbstractList.
666         * java/util/LinkedList.java (checkBoundsExclusive),
667         (checkBoundsInclusive): ditto
668         * java/util/Vector.java (checkBoundExclusive),
669         (checkBoundInclusive): Move bounds checking into common methods.
670
671 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
672
673         * java/util/AbstractList.java:
674         (modCount): Make sure it is updated in all needed places.
675         * java/util/ArrayList.java: Improve javadoc. Implements
676         RandomAccess. Add serialVersionUID. Reorder methods.
677         (modCount): Make sure it is updated in all needed places.
678         (rangeExclusive, rangeInclusive): Add common methods for bounds
679         check.
680         (isEmpty): Add missing method.
681         * java/util/Collections.java: (class SynchronizedList): Make
682         package visible.
683         * java/util/ConcurrentModificationException.java: Improve
684         javadoc.
685         * java/util/EmptyStackException.java: Improve javadoc.
686         * java/util/LinkedList.java: Improve javadoc.
687         (modCount): Make sure it is updated in all needed places.
688         (rangeExclusive, rangeInclusive): Add common methods for bounds
689         check.
690         * java/util/NoSuchElementException.java: Improve javadoc.
691         * java/util/Stack.java: Improve javadoc. Fix synchronization
692         issues.
693         (modCount): Make sure it is updated in all needed places.
694         * java/util/Vector.java: Improve javadoc. Fix synchronization
695         issues. Implements RandomAccess. Reorder methods.
696         (modCount): Make sure it is updated in all needed places.
697         (setSize): Fix according to specifications: this does not dictate
698         the backing array size.
699         (removeAll, retainAll): Faster implementations.
700
701 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
702
703         * java/util/BitSet.java: Improve javadoc.
704         (cardinality(), clear(), clear(int, int), flip(int)),
705         (flip(int, int), get(int, int), intersects(BitSet), isEmpty()),
706         (nextClearBit(int), nextSetBit(int), set(int, boolean)),
707         (set(int, int), set(int, int, boolean)): Add new JDK 1.4 methods.
708         (clone): Fix so subclasses clone correctly.
709
710 2001-12-15  Eric Blake  <ebb9@email.byu.edu>
711
712         * java/util/AbstractCollection.java: Improve javadoc.
713         (AbstractCollection()): Make constructor protected.
714         (equals(Object, Object), hashCode(Object)): Add utility methods.
715         * java/util/AbstractList.java: Improve javadoc.
716         (AbstractList()): Make constructor protected.
717         (indexOf(Object)): Call listIterator(), not listIterator(int).
718         (iterator()): Follow Sun's requirement to not use listIterator(0).
719         (listIterator(int)): Make AbstractListItr anonymous.
720         (subList(int, int)): Add support for RandomAccess.
721         (SubList.add(int, Object), SubList.remove(Object)): Fix bug with
722         modCount tracking.
723         (SubList.addAll(Collection)): Add missing method.
724         (SubList.listIterator(int)): Fix bugs in indexing, modCount
725         tracking.
726         (class RandomAccessSubList): Add new class.
727         * java/util/AbstractMap.java: Improve javadoc.
728         (keys, values, KEYS, VALUES, ENTRIES): Consolidate common map
729         fields.
730         (AbstractMap()): Make constructor protected.
731         (equals(Object, Object), hashCode(Object)): Add utility methods.
732         (equals(Object)): Change algorithm to
733         entrySet().equals(m.entrySet()), as documented by Sun.
734         (keySet(), values()): Cache the collections.
735         * java/util/AbstractSequentialList.java: Improve javadoc.
736         (AbstractSequentialList()): Make constructor protected.
737         * java/util/AbstractSet.java: Improve javadoc.
738         (AbstractSet()): Make constructor protected.
739         (removeAll(Collection)): Add missing method.
740         * java/util/Arrays.java: Improve javadoc, rearrange method orders.
741         (defaultComparator): Remove, in favor of
742         Collections.compare(Object, Object, Comparator).
743         (binarySearch, equals, sort): Fix natural order comparison of
744         floats and doubles. Also improve Object comparison - when
745         comparator is null, use natural order.
746         (fill, sort): Add missing checks for IllegalArgumentException.
747         (sort, qsort): Fix sorting bugs, rework the code for more
748         legibility.
749         (mergeSort): Inline into sort(Object[], int, int, Comparator).
750         (class ArrayList): Rename from ListImpl, and make compatible with
751         JDK serialization. Add methods which more efficiently override
752         those of AbstractList.
753         * java/util/Collections: Improve javadoc.
754         (isSequential(List)): Add and use a method for deciding between
755         RandomAccess and sequential algorithms on lists.
756         (class Empty*, class Synchronized*, class Unmodifiable*): Make
757         compliant with JDK serializability.
758         (class Singleton*, class CopiesList, class RevereseComparator),
759         (class UnmodifiableMap.UnmodifiableEntrySet),
760         (class *RandomAccessList): New classes for serial compatibility.
761         (class Empty*, class Singleton*, class CopiesList): Add methods
762         which more efficiently override those of Abstract*.
763         (search): Inline into binarySearch(List, Object, Comparator).
764         (binarySearch): Make sequential search only do log(n) comparisons,
765         instead of n.
766         (copy(List, List)): Do bounds checking before starting.
767         (indexOfSubList, lastIndexOfSubList, list, replaceAll, rotate),
768         (swap): Add new JDK 1.4 methods.
769         (binarySearch, max, min, sort): Allow null comparator to represent
770         natural ordering.
771         (reverse(List)): Avoid unnecessary swap.
772         (shuffle(List, Random)): Do shuffle in-place for RandomAccess
773         lists.
774         (SingletonList.get): Fix logic bug.
775         (SingletonMap.entrySet): Make the entry immutable, and cache the
776         returned set.
777         (SynchronizedCollection, SynchronizedMap, UnmodifiableCollection),
778         (UnmodifiableMap): Detect null pointer in construction.
779         (SynchronizedMap, UnmodifiableMap): Cache collection views.
780         * java/util/BasicMapEntry: Improve javadoc.
781
782 2001-12-14  Hans Boehm  <Hans_Boehm@hp.com>
783
784         * libjava/prims.cc: Some old cleanups.  The collector now
785         handles test for out of memory.
786
787         * libjava/prims.cc, libjava/gcj/javaprims.h:
788         (_Jv_AllocObjectNoInitNoFinalizer, _Jv_AllocObjectNoFinalizer):
789         New functions for finalizer-free allocation.
790         (jvmpi_notify_alloc): Became separate function.
791
792         * libjava/java/lang/Object.h, libjava/include/jvm.h: Adjust for
793         revised vtable layout on IA64.  With TARGET_VTABLE_USES_DESCRIPTORS,
794         there is only one extra descriptor.
795
796 2001-12-12  Tom Tromey  <tromey@redhat.com>
797
798         * prims.cc (_Jv_RunMain): Use `using' to simplify code.  Set
799         _Jv_Jar_Class_Path early.
800
801         * jni.cc (call): Synchronize if required.
802
803         * gij.cc (main): Clarify --help output.
804
805         * gnu/gcj/runtime/StringBuffer.java
806         (ensureCapacity_unsynchronized): Ensure we always get at least
807         `minimumCapacity' characters in new buffer.
808
809 2001-12-11  Tom Tromey  <tromey@redhat.com>
810
811         * java/lang/String.java (String): New constructor.
812         * gnu/gcj/runtime/natStringBuffer.cc: New file.
813         * gnu/gcj/runtime/StringBuffer.java: New file.
814         * Makefile.in: Rebuilt.
815         * Makefile.am (ordinary_java_source_files): Added
816         gnu/gcj/runtime/StringBuffer.java.
817         (nat_source_files): Added gnu/gcj/runtime/natStringBuffer.cc.
818
819 2001-12-10  Tom Tromey  <tromey@redhat.com>
820
821         For PR libgcj/1147:
822         * prims.cc (JvConvertArgv): Convert using current locale's
823         encoding.
824
825 2001-12-10  Tom Tromey  <tromey@redhat.com>
826
827         Fix for PR libgcj/5064.
828         * java/lang/natClassLoader.cc: Don't include stdio.h.
829         (_Jv_RegisterClassHookDefault): Don't use snprintf.
830
831 2001-12-09  Per Bothner  <per@bothner.com>
832
833         * gnu/gcj/xlib/XImage.java (toString):  Add missing initialization.
834
835 2001-12-09  Tom Tromey  <tromey@redhat.com>
836
837         * resolve.cc (_Jv_PrepareClass): Verify method here...
838         * defineclass.cc (handleMethodsEnd): ... not here.
839         * verify.cc (_Jv_BytecodeVerifier::initialize_stack): New method.
840         (_Jv_BytecodeVerifier::verify_instructions_0) [op_return]: Ensure
841         there are no uninitialized objects.
842         (_Jv_BytecodeVerifier::state::this_type): New field.
843         (_Jv_BytecodeVerifier::state::state): Initialize this_type.
844         (_Jv_BytecodeVerifier::state::copy): Copy this_type.
845         (_Jv_BytecodeVerifier::state::merge): Merge this_type.
846         (_Jv_BytecodeVerifier::state::check_no_uninitialized_objects):
847         Handle this_type.
848         (_Jv_BytecodeVerifier::state::check_this_initialized): New
849         method.
850         (_Jv_BytecodeVerifier::state::set_initialized): Handle this_type.
851         (_Jv_BytecodeVerifier::state::set_this_type): New method.
852         (_Jv_BytecodeVerifier::verify_instructions_0) [op_putfield]: Allow
853         assignment to fields of `this' before another initializer is run.
854
855         * Makefile.in: Rebuilt.
856         * Makefile.am (gnu/gcj/runtime/VMClassLoader.h): Use `::java'.
857
858 2001-12-08  Tom Tromey  <tromey@redhat.com>
859
860         * Makefile.in: Rebuilt.
861         * Makefile.am (java/lang/reflect/Method.h): ObjectInputStream now
862         a friend.
863         * java/lang/natClass.cc (getSignature): Only look at elements of
864         non-null parameters.
865         (getPrivateMethod): Removed old FIXME comment.
866         * java/io/natObjectInputStream.cc (allocateObject): Removed old
867         FIXME comment.
868         (callConstructor): Simply use `NULL' for value of parameters.
869         (ObjectClass): Removed.
870         (ClassClass): Likewise.
871         * java/io/ObjectInputStream.java (readObject): Fixed typo.
872
873         * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow):
874         Handle case of array whose component type is not prepared.
875
876 2001-12-07  Tom Tromey  <tromey@redhat.com>
877
878         * java/lang/ClassLoader.java (defineClass): Rethrow any
879         LinkageError.
880
881         * java/lang/ThreadGroup.java (uncaughtException): Print message to
882         System.err.  Required by spec.
883
884         * verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC
885         earlier, for error handling.
886         (_Jv_BytecodeVerifier::note_branch_target): Fixed branch target
887         check.
888
889 2001-12-06  Tom Tromey  <tromey@redhat.com>
890
891         * verify.cc (_Jv_BytecodeVerifier::FLAG_JSR_TARGET): Removed.
892         (_Jv_BytecodeVerifier::note_branch_target): Likewise.
893
894         * verify.cc (_Jv_BytecodeVerifier::type_val): Added
895         unused_by_subroutine_type.
896         (_Jv_BytecodeVerifier::type::merge): Handle
897         unused_by_subroutine_type.
898         (_Jv_BytecodeVerifier::state::state): Added `ret_semantics'
899         argument.
900         (_Jv_BytecodeVerifier::state::copy): Likewise.
901         (_Jv_BytecodeVerifier::push_jump_merge): Pass `ret_semantics' to
902         state constructor.
903         (_Jv_BytecodeVerifier::state::is_unmerged_ret_state): New method.
904         (_Jv_BytecodeVerifier::pop_jump): Don't accept a jump which is
905         from an unmerged ret.
906         (_Jv_BytecodeVerifier::verify_instructions_0): Don't let an
907         unmerged ret state skip verification in the fall-through case.
908         (debug_print): New function.
909         (_Jv_BytecodeVerifier::type::print): New method.
910         (_Jv_BytecodeVerifier::state::print): New method.
911         (_Jv_BytecodeVerifier::push_jump_merge): Print state.
912         (_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
913         (_Jv_BytecodeVerifier::get_variable): Don't call note_variable.
914         (_Jv_BytecodeVerifier::_Jv_BytecodeVerifier): Print debug
915         information.
916
917 2001-12-05  Tom Tromey  <tromey@redhat.com>
918
919         * defineclass.cc (character): Removed.
920         (prepare_character): Removed.
921         (is_identifier_start): Use Character, not character.
922         (is_identifier_part): Likewise.
923
924 2001-12-04  Tom Tromey  <tromey@redhat.com>
925
926         * verify.cc (_Jv_BytecodeVerifier::linked_utf8): New structure.
927         (_Jv_BytecodeVerifier::utf8_list): New field.
928         (_Jv_BytecodeVerifier::_Jv_BytecodeVerifier): Initialize it.
929         (_Jv_BytecodeVerifier::~_Jv_BytecodeVerifier): Free it.
930         (_Jv_BytecodeVerifier::make_utf8_const): New method.
931         (_Jv_BytecodeVerifier::get_one_type): Use it.
932         (_Jv_BytecodeVerifier::type::merge): When using local semantics,
933         if the destination type is already unsuitable then we didn't
934         change.
935
936         * defineclass.cc (read_one_method_attribute): `end_pc' for an
937         exception can be equal to code length.
938         * verify.cc (_Jv_BytecodeVerifier::verify_instructions_0): Removed
939         `start_PC' from error invocation where it didn't make sense, and
940         updated error message.  Use `copy' to copy a state.  Only try to
941         merge current state with saved state when we've fallen through
942         from the previous instruction.
943         (_Jv_BytecodeVerifier::pop_ref_or_return): New method.
944         (_Jv_BytecodeVerifier::verify_instructions_0) [op_astore_0]: Use
945         pop_ref_or_return.
946         (_Jv_BytecodeVerifier::verify_instructions_0) [op_astore]:
947         Likewise.
948         (_Jv_BytecodeVerifier::push_jump_merge): Pass max_locals, not
949         max_stack, to merge.
950         (_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
951         (_Jv_BytecodeVerifier::push_jump_merge): Merge from new state into
952         state at branch target, not vice versa.
953         (_Jv_BytecodeVerifier::branch_prepass): Allow end of exception to
954         be equal to code length.  Removed redundant test to see if
955         exception start is after exception end.
956         (_Jv_BytecodeVerifier::verify_instructions_0): Type of argument to
957         `finally' is Throwable.
958
959 2001-12-04  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
960
961         * Makefile.in: Rebuilt with automake-gcj.
962
963 2001-12-03  Tom Tromey  <tromey@redhat.com>
964
965         * defineclass.cc (handleMethodsEnd): Invoke verifier here...
966         (handleCodeAttribute): ... not here.
967         * verify.cc (_Jv_BytecodeVerifier::state::state): Use `copy', not
968         structure assignment.
969
970 2001-12-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
971
972         * Makefile.am (nat_files, x_nat_files): Make sure the dependencies
973         don't get deleted if compilation fails.
974         * Makefile.in: Rebuilt.
975
976 2001-11-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
977
978         * Makefile.am (nat_headers, x_nat_headers): Depend on .class files, not
979         libgcj.jar.
980         (nat_files, x_nat_files): Build native files in subdirectories using 
981         the same dependency options as the java files.
982         (gnu/gcj/runtime/FirstThread.h): Remove explicit rule and friend
983         declarations.
984         * configure.in: Put dependencies for .cc files in deps.mak.
985         * Makefile.in: Rebuilt.
986         * configure: Rebuilt.
987
988 2001-11-25  Tom Tromey  <tromey@redhat.com>
989
990         Fix for PR libgcj/2024, plus other class name cleanups:
991         * include/jvm.h (_Jv_VerifyFieldSignature,
992         _Jv_VerifyMethodSignature, _Jv_VerifyClassName,
993         _Jv_VerifyIdentifier, _Jv_ClassNameSamePackage): Moved from ...
994         * include/java-interp.h: ... here.
995         * defineclass.cc (UTF8_PEEK): No longer conditional on
996         interpreter.
997         (_Jv_VerifyOne): Likewise.
998         (_Jv_VerifyFieldSignature): Likewise.
999         (_Jv_VerifyMethodSignature): Likewise.
1000         (is_identifier_start): Likewise.
1001         (is_identifier_part): Likewise.
1002         (_Jv_VerifyIdentifier): Likewise.
1003         (_Jv_VerifyClassName): Likewise.
1004         (_Jv_VerifyClassName): Likewise.
1005         (_Jv_ClassNameSamePackage): Likewise.
1006         (_Jv_VerifyClassName): Fail if class name is too long.
1007         * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Disallow array
1008         of void.
1009         * java/lang/natClass.cc (forName): Check syntax of class name.
1010         Include IllegalArgumentException.h.
1011
1012 2001-11-22  Tom Tromey  <tromey@redhat.com>
1013
1014         * verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use
1015         java_opcode as type for switch.
1016         [op_wide]: Likewise.
1017         (_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
1018         [op_invokevirtual]: Likewise.
1019         * include/java-insns.h (java_opcode): Give enum a name.
1020
1021 2001-11-25  Tom Tromey  <tromey@redhat.com>
1022
1023         Fix for PR libgcj/4583:
1024         * java/math/BigDecimal.java (BigDecimal(double)): Rewrote.
1025         (BigDecimal(String)): Likewise.
1026
1027 2001-11-19  Tom Tromey  <tromey@redhat.com>
1028
1029         * verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_iinc]:
1030         Uses two operand bytes, not one.
1031         [op_arraylength]: Has no operands in bytecode.
1032         (_Jv_BytecodeVerifier::push_jump): Fixed call to
1033         check_no_uninitialized_objects.
1034         (_Jv_BytecodeVerifier::push_exception_jump): Likewise.
1035         (_Jv_BytecodeVerifier::handle_ret_insn): Likewise.
1036         (_Jv_BytecodeVerifier::handle_jsr_insn): Likewise.
1037
1038         * verify.cc (_Jv_BytecodeVerifier::require_array_type): Special
1039         case for boolean arrays.
1040
1041         * verify.cc (_Jv_BytecodeVerifier::compute_jump): Put PC into
1042         error message.
1043
1044         * verify.cc (_Jv_BytecodeVerifier::verify_instructions_0)
1045         [op_lshl, op_lshr, op_lushr]: Shift argument is an int, not a
1046         long.
1047
1048 2001-11-18  Tom Tromey  <tromey@redhat.com>
1049
1050         * verify.cc (type::to_array): New method.
1051         (_Jv_BytecodeVerifier::verify_instructions_0) [op_anewarray]:
1052         Construct new array type.
1053
1054         * verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
1055         Skip a short, not a byte.
1056         [op_newarray]: Skip a byte, not a short.
1057
1058         * verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature):
1059         Added `B' case.
1060
1061         * verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for
1062         temporary values.
1063         (_Jv_BytecodeVerifier::get_short): Likewise.
1064         (_Jv_BytecodeVerifier::get_int): Likewise.
1065         (_Jv_BytecodeVerifier::check_return_type): Reverse ordering of
1066         `compatible' call.
1067
1068         * verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
1069         message.
1070         (_Jv_BytecodeVerifier::pop64): Likewise.
1071         (_Jv_BytecodeVerifier::pop32): Likewise.
1072         (_Jv_BytecodeVerifier::pop_raw): Likewise.
1073         (_Jv_BytecodeVerifier::pop_type): Promote the match type.
1074         (type::set_initialized): Only modify uninitialized types.
1075         (type::set_uninitialized): Fix shadowing bug.  Simplify code.
1076
1077         * verify.cc: Include StringBuffer.h.
1078         (verify_fail): Added pc argument.  Use StringBuffer to construct
1079         exception message.
1080         (_Jv_BytecodeVerifier::verify_instructions_0): Put PC into error
1081         message.
1082         (_Jv_BytecodeVerifier::check_return_type): Likewise.
1083         (_Jv_BytecodeVerifier::handle_field_or_method): Likewise.
1084         (_Jv_BytecodeVerifier::check_constant): Likewise.
1085         (_Jv_BytecodeVerifier::check_class_constant): Likewise.
1086         (_Jv_BytecodeVerifier::check_pool_index): Likewise.
1087         (_Jv_BytecodeVerifier::get_variable): Likewise.
1088         (_Jv_BytecodeVerifier::branch_prepass): Likewise.  Also, correctly
1089         check exception handler endpoint.
1090         (_Jv_BytecodeVerifier::verify_instructions_0): Correctly handle
1091         wide arguments to current method.
1092         (_Jv_BytecodeVerifier::check_wide_constant): New method.
1093         (_Jv_BytecodeVerifier::verify_instructions_0) [op_ldc2_w]: Use
1094         it.
1095
1096 2001-11-17  Anthony Green  <green@redhat.com>
1097
1098         * jni.cc (unwrap): Fix test for wrapped objects.
1099
1100 2001-11-16  Tom Tromey  <tromey@redhat.com>
1101
1102         * verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
1103         case where field has primitive type.
1104
1105         * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
1106         method.
1107         (type::compatible): Use it.
1108         (type::merge): Likewise.
1109         (type::promote): Return a `type&'.
1110         (get_one_type): Promote return value.
1111
1112         Re-merge with Classpath, from Brian Jones:
1113         * java/lang/Integer.java (getInteger): Attempt to decode the value
1114         of the system property instead of the name of the system property.
1115         (parseInt): Throw NumberFormatException explicitly in the case of
1116         a null argument in keeping with JDK 1.3.
1117
1118 2001-11-16  Mark Wielaard  <mark@klomp.org>
1119
1120         * java/util/Timer.java (TaskQueue.isStopped): Remove method.
1121         (Scheduler.run): Try to re-schedule task and ignore exception if
1122         queue has been stopped.
1123
1124 2001-11-15  Tom Tromey  <tromey@redhat.com>
1125
1126         * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
1127         (type::merge): Likewise.
1128
1129 2001-11-14  Hans Boehm <Hans_Boehm@hp.com>
1130
1131         * java/lang/natString.cc: correct argument order for
1132         _Jv_AllocPtrFreeObj
1133
1134 2001-11-14  Tom Tromey  <tromey@redhat.com>
1135
1136         * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
1137         [op_dup_x2]: Likewise.
1138         [op_dup2_x1]: Likewise.
1139         [op_dup2_x2]: Likewise.
1140         (branch_prepass): Added `op_newarray' case.  Updated unrecognized
1141         instruction error.
1142         (verify_instructions_0): Updated unrecognized instruction error.
1143
1144         * java/lang/reflect/Constructor.java (toString): Use more
1145         efficient form of Modifier.toString().
1146
1147         Re-merges with Classpath, from various people:
1148         * java/lang/reflect/Modifier.java: Reindented.
1149         (toString): Only trim trailing space if text was added to
1150         StringBuffer.
1151         * java/lang/reflect/ReflectPermission: Reindented.
1152
1153         Re-merges with Classpath, from various people:
1154         * java/lang/Double.java (parseDouble): Fixed ordering of
1155         modifiers.
1156         * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
1157         * java/lang/reflect/Member.java: Reindented.
1158         * java/util/ConcurrentModificationException.java: Javadoc
1159         updates.
1160         * java/util/EmptyStackException.java: Likewise.
1161         * java/util/NoSuchElementException.java: Likewise.
1162
1163 2001-11-13  Tom Tromey  <tromey@redhat.com>
1164
1165         Fix for PR libgcj/4859:
1166         * java/util/Timer.java (TaskQueue.isStopped): New method.
1167         (Scheduler.run): Don't re-schedule task if queue has been
1168         stopped.
1169
1170 2001-11-07  Tom Tromey  <tromey@redhat.com>
1171
1172         * Makefile.in: Rebuilt.
1173         * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
1174         * jni.cc: Include JNIWeakRef.h.
1175         (unwrap): New function.
1176         (_Jv_JNI_DefineClass): Use it.
1177         (_Jv_JNI_GetSuperclass): Likewise.
1178         (_Jv_JNI_IsAssignableFrom): Likewise.
1179         (_Jv_JNI_Throw): Likewise.
1180         (_Jv_JNI_ThrowNew): Likewise.
1181         (_Jv_JNI_IsSameObject): Likewise.
1182         (_Jv_JNI_AllocObject): Likewise.
1183         (_Jv_JNI_GetObjectClass): Likewise.
1184         (_Jv_JNI_IsInstanceOf): Likewise.
1185         (_Jv_JNI_GetAnyMethodID): Likewise.
1186         (array_from_valist): Likewise.
1187         (_Jv_JNI_CallAnyMethodV): Likewise.
1188         (_Jv_JNI_CallAnyMethodA): Likewise.
1189         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
1190         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
1191         (_Jv_JNI_CallStaticMethodV): Likewise.
1192         (_Jv_JNI_CallStaticMethod): Likewise.
1193         (_Jv_JNI_CallStaticMethodA): Likewise.
1194         (_Jv_JNI_NewObjectV): Likewise.
1195         (_Jv_JNI_NewObject): Likewise.
1196         (_Jv_JNI_NewObjectA): Likewise.
1197         (_Jv_JNI_GetField): Likewise.
1198         (_Jv_JNI_SetField): Likewise.
1199         (_Jv_JNI_GetAnyFieldID): Likewise.
1200         (_Jv_JNI_SetStaticField): Likewise.
1201         (_Jv_JNI_GetStringLength): Likewise.
1202         (_Jv_JNI_GetStringChars): Likewise.
1203         (_Jv_JNI_ReleaseStringChars): Likewise.
1204         (_Jv_JNI_GetStringUTFLength): Likewise
1205         (_Jv_JNI_GetStringUTFChars): Likewise.
1206         (_Jv_JNI_GetStringRegion): Likewise.
1207         (_Jv_JNI_GetStringUTFRegion): Likewise.
1208         (_Jv_JNI_GetStringCritical): Likewise.
1209         (_Jv_JNI_GetArrayLength): Likewise.
1210         (_Jv_JNI_NewObjectArray): Likewise.
1211         (_Jv_JNI_GetObjectArrayElement): Likewise.
1212         (_Jv_JNI_SetObjectArrayElement): Likewise.
1213         (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1214         (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1215         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
1216         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1217         (_Jv_JNI_MonitorEnter): Likewise.
1218         (_Jv_JNI_MonitorExit): Likewise.
1219         (_Jv_JNI_ToReflectedField): Likewise.
1220         (_Jv_JNI_FromReflectedField): Likewise.
1221         (_Jv_JNI_ToReflectedMethod): Likewise.
1222         (_Jv_JNI_FromReflectedMethod): Likewise.
1223         (_Jv_JNI_NewGlobalRef): Likewise.
1224         (_Jv_JNI_DeleteGlobalRef): Likewise.
1225         (_Jv_JNI_DeleteLocalRef): Likewise.
1226         (_Jv_JNI_NewLocalRef): Likewise.
1227         (_Jv_JNI_NewWeakGlobalRef): New function.
1228         (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
1229         (_Jv_JNIFunctions): Updated for new methods.
1230         (NOT_IMPL): Removed.
1231         * gnu/gcj/runtime/JNIWeakRef.java: New file.
1232
1233 2001-11-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1234
1235         * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
1236
1237 2001-11-09  Jeff Sturm  <jsturm@one-point.com>
1238
1239         * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
1240
1241 2001-11-07  Tom Tromey  <tromey@redhat.com>
1242
1243         * verify.cc (skip_padding): Fail if padding byte is nonzero.
1244
1245 2001-11-06  Tom Tromey  <tromey@redhat.com>
1246
1247         * HACKING: Make people commit their own patches.
1248
1249 2001-11-05  Tom Tromey  <tromey@redhat.com>
1250
1251         * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
1252         * Makefile.in: Rebuilt.
1253         * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
1254         * verify.cc: New file.
1255         * include/java-interp.h (_Jv_count_arguments): Declare.
1256         (_Jv_VerifyMethod): Likewise.
1257         (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
1258         (class _Jv_InterpException): Likewise.
1259         * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
1260         No longer static.  Updated callers.
1261         * defineclass.cc (int_bits_to_float): Removed.
1262         (long_bits_to_double): Likewise.
1263         (prepare_pool_entry): Updated.
1264         (handleCodeAttribute): Verify method (commented out for now).
1265
1266 2001-11-05  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1267
1268         * java/util/ResourceBundle.java (class Security): Now static.
1269
1270 2001-11-04  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1271
1272         * java/util/ResourceBundle.java (getClassContext): Removed.
1273         (Security): New class, extends SecurityManger.
1274         (getBundle): Use Security.getCallingClassLoader instead of
1275         getClassContext.
1276         * java/util/natResourceBundle.cc: Removed.
1277
1278 2001-11-03  Tom Tromey  <tromey@redhat.com>
1279
1280         * defineclass.cc (handleClassBegin): Use Object::class$, not
1281         Class::class$, when initializing interface superclass.
1282
1283 2001-11-02  Hans Boehm <Hans_Boehm@hp.com>
1284
1285         * java/util/natResourceBundle.cc:getClassContext: return
1286         array of Class instead of array of ClassLoader.
1287
1288 2001-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
1289
1290         * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
1291         gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
1292         java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
1293         java/io/CharConversionException.java,
1294         java/io/PipedInputStream.java, java/io/PipedReader.java,
1295         java/io/PrintWriter.java, java/io/WriteAbortedException.java,
1296         java/io/natFileWin32.cc, java/lang/Class.h,
1297         java/lang/natClassLoader.cc, java/lang/natObject.cc,
1298         java/lang/Package.java, java/net/BindException.java,
1299         java/net/ConnectException.java, java/net/ProtocolException.java,
1300         java/net/SocketException.java,
1301         java/net/UnknownServiceException.java,
1302         java/security/cert/X509Certificate.java,
1303         java/security/interfaces/DSAKey.java,
1304         java/security/SecureRandom.java, java/security/SignedObject.java,
1305         java/sql/DatabaseMetaData.java,
1306         java/text/DecimalFormatSymbols.java,
1307         java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
1308         java/util/jar/JarInputStream.java,
1309         java/util/jar/JarOutputStream.java, java/util/Calendar.java,
1310         java/util/Collections.java, java/util/GregorianCalendar.java,
1311         java/util/HashMap.java, java/util/List.java,
1312         java/util/Properties.java, java/util/Timer.java,
1313         java/util/Vector.java, java/util/WeakHashMap.java,
1314         javax/naming/NamingException.java,
1315         testsuite/libjava.lang/Thread_Wait.java,
1316         org/xml/sax/helpers/DefaultHandler.java,
1317         org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
1318         ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
1319         spelling errors.
1320         * configure: Regenerate.
1321
1322 2001-10-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1323
1324         * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
1325         _Jv_JNI_Init.
1326
1327 2001-10-29  Tom Tromey  <tromey@redhat.com>
1328
1329         * java/util/zip/GZIPOutputStream.java (write(int)): New method.
1330         Fixes PR libgcj/4728.
1331
1332 2001-10-27  Tom Tromey  <tromey@redhat.com>
1333
1334         * include/jni.h (struct JNINativeInterface) [GetStringLength]:
1335         Returns jsize, not jint.
1336
1337 2001-10-26  Tom Tromey  <tromey@redhat.com>
1338
1339         * java/util/zip/Adler32.java: Use correct class name.  (Re-merge
1340         from Classpath.)
1341
1342 2001-10-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1343
1344         * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now 
1345         takes a jchar type-code argument, not a string. 
1346         * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
1347         New method. Just call _Jv_FindClassFromSignature.
1348         * java/lang/Boolean.java (TYPE): Initialize from 
1349         VMClassLoader.getPrimitiveClass using type-code.
1350         * java/lang/Character.java (TYPE): Likewise.
1351         * java/lang/Double.java (TYPE): Likewise.
1352         * java/lang/Float.java (TYPE): Likewise.
1353         * java/lang/Integer.java (TYPE): Likewise.
1354         * java/lang/Long.java (TYPE): Likewise.
1355         * java/lang/Short.java (TYPE): Likewise.
1356         * java/lang/Void.java (TYPE): Likewise.
1357
1358 2001-10-25  Hans Boehm <Hans_Boehm@hp.com>
1359
1360         * include/boehm-gc.h: Call thread local allocation functions
1361         if THREAD_LOCAL_ALLOC is defined.
1362
1363 2001-10-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1364
1365         * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
1366         snprintf, not asprintf.
1367
1368 2001-10-24  Loren J. Rittle  <ljrittle@acm.org>
1369
1370         * configure.in (case $THREADS): Add *-*-freebsd* configuration.
1371         (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
1372         configuration when gethostbyaddr_r exists yet no prototype
1373         exists in netdb.h.
1374         * configure: Rebuilt.
1375         * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
1376         with FREEBSD_THREADS.  However, comment different reason.
1377
1378 2001-10-24  Tom Tromey  <tromey@redhat.com>
1379             Warren Levy  <warrenl@redhat.com>
1380
1381         * Makefile.in: Rebuilt.
1382         * Makefile.am (javax_source_files): New macro.
1383         (ordinary_java_source_files): Added javax_source_files.
1384         (libgcj.jar): Search javax for class files.
1385         * javax/naming/LinkException.java (toString): Wrote.
1386         (toString(boolean)): Likewise.
1387         * javax/naming/ldap/InitialLdapContext.java: New file.
1388         * javax/naming/directory/InitialDirContext.java: Wrote.
1389         * javax/naming/spi/NamingManager.java (getPlusPath): Now has
1390         package-private protection.
1391         (getURLContext): Likewise.
1392         (NamingManager): Likewise.
1393         * javax/naming/spi/DirectoryManager.java: New file.
1394         * javax/naming/directory/BasicAttributes.java: New file.
1395         * javax/naming/directory/BasicAttribute.java: New file.
1396         * javax/naming/spi/ResolveResult.java
1397         (ResolveResult(Object,String)): Wrote.
1398         (appendRemainingName): Uncommented body.
1399         (appendRemainingComponent): Likewise.
1400         * javax/naming/ldap/ControlFactory.java: New file.
1401         * javax/naming/directory/AttributeModificationException.java
1402         (toString): Wrote.
1403         * javax/naming/spi/NamingManager.java (NamingManager): New
1404         constructor.
1405         (setInitialContextFactoryBuilder): Wrote.
1406         (getInitialContext): Look in system properties for class name as
1407         well.  Use Class.forName().
1408         (getURLContext): Wrote.
1409         (ofb): New field.
1410         (setObjectFactoryBuilder): Wrote.
1411         (getObjectInstance): Wrote.
1412         (getContinuationContext): Wrote.
1413         (getPlusPath): New private method.
1414         (getStateToBind): Wrote.
1415         * javax/naming/CannotProceedException.java: Added missing methods &
1416         fields.
1417         * javax/naming/LinkException.java: Added missing methods & fields.
1418         * javax/naming/ReferralException.java (ReferralException): Made
1419         constructor protected per spec.
1420         Added missing abstract methods.
1421         * javax/naming/directory/Attribute.java: Updated copyright.
1422         * javax/naming/directory/AttributeModificationException.java: Ditto.
1423         * javax/naming/directory/Attributes.java: Ditto.
1424         * javax/naming/directory/DirContext.java: Ditto.
1425         * javax/naming/spi/NamingManager.java: Ditto.
1426         * javax/naming/spi/ResolveResult.java: Added comment.
1427         * javax/naming/directory/Attribute.java: Added missing interface
1428         methods.
1429         * javax/naming/directory/AttributeModificationException.java:
1430         Added missing methods & fields.
1431         * javax/naming/directory/directory/Attributes.java: Added missing
1432         interface methods.
1433         * javax/naming/directory/SearchControls.java: Maded serialized fields
1434         private.
1435         * javax/naming/event/NamingEvent.java: Added comment.
1436         * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
1437         private.
1438         * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
1439         serialized field private.
1440         * javax/naming/spi/NamingManager.java: Added missing field and stubbed
1441         missing methods.
1442         * javax/naming/directory/DirContext.java: Added missing interface
1443         fields & methods.
1444         * javax/naming/directory/InitialDirContext.java: Stubbed missing
1445         methods.
1446         * javax/naming/directory/ModificationItem.java: New class.
1447         * javax/naming/directory/SearchResult.java: New class.
1448         * javax/naming/directory/SearchControls.java: New class.
1449         * javax/naming/event/EventContext.java: New class.
1450         * javax/naming/event/EventDirContext.java: New class.
1451         * javax/naming/event/NamespaceChangeListener.java: New class.
1452         * javax/naming/event/NamingEvent.java: New class.
1453         * javax/naming/event/NamingExceptionEvent.java: New class.
1454         * javax/naming/event/NamingListener.java: New class.
1455         * javax/naming/event/ObjectChangeListener.java: New class.
1456         * javax/naming/ldap/Control.java: New class.
1457         * javax/naming/ldap/ExtendedRequest.java: New class.
1458         * javax/naming/ldap/ExtendedResponse.java: New class.
1459         * javax/naming/ldap/HasControls.java: New class.
1460         * javax/naming/ldap/LdapContext.java: New class.
1461         * javax/naming/ldap/LdapReferralException.java: New class.
1462         * javax/naming/ldap/UnsolicitedNotification.java: New class.
1463         * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
1464         * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
1465         * javax/naming/spi/DirObjectFactory.java: New class.
1466         * javax/naming/spi/DirStateFactory.java: New class.
1467         * javax/naming/spi/ObjectFactoryBuilder.java: New class.
1468         * javax/naming/spi/ResolveResult.java: New class.
1469         * javax/naming/spi/Resolver.java: New class.
1470         * javax/naming/spi/StateFactory.java: New class.
1471         * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
1472         * java/rmi/RemoteException.java: New class.
1473         * javax/transaction/HeuristicCommitException.java: New class.
1474         * javax/transaction/HeuristicMixedException.java: New class.
1475         * javax/transaction/HeuristicRollbackException.java: New class.
1476         * javax/transaction/NotSupportedException.java: New class.
1477         * javax/transaction/RollbackException.java: New class.
1478         * javax/transaction/Status.java: New class.
1479         * javax/transaction/Synchronization.java: New class.
1480         * javax/transaction/SystemException.java: New class.
1481         * javax/transaction/Transaction.java: New class.
1482         * javax/transaction/TransactionManager.java: New class.
1483         * javax/transaction/UserTransaction.java: New class.
1484         * javax/transaction/xa/XAException.java: Added public static fields.
1485         * javax/transaction/xa/XAResource.java: New class.
1486         * javax/transaction/xa/Xid.java: New class.
1487         * javax/naming/CompoundName.java (CompoundName(String)): Reverse
1488         elements if required.  Handle case where quote is at end of
1489         string.
1490         * javax/naming/CompoundName.java (CompoundName(String)): Handle
1491         text left at end of parsing.
1492         (toString): Handle empty element at beginning.
1493         * javax/naming/CompositeName.java (toString): Handle empty element
1494         at beginning.
1495         (CompositeName(String)): Handle text left at end of parsing.
1496         Correctly compute boundary condition for quoting.
1497         * javax/naming/CompoundName.java: New file.
1498         * javax/naming/CompositeName.java: New file.
1499         * javax/naming/Binding.java: New file.
1500         * javax/naming/LinkRef.java: New file.
1501         * javax/naming/NameClassPair.java: New file.
1502         * javax/naming/Reference.java (addrs, classFactory,
1503         classFactoryLocation): New fields.
1504         (className): Now protected.
1505         (Reference): New constructors.
1506         (add): Now public.  Implemented.
1507         (get(String)): Likewise.
1508         (add(int,RefAddr)): New method.
1509         (clear): Likewise.
1510         (clone): Likewise.
1511         (equals): Likewise.
1512         (get(int)): Likewise.
1513         (getAll): Likewise.
1514         (getFactoryClassLocation): Likewise.
1515         (getFactoryClassName): Likewise.
1516         (hashCode): Likewise.
1517         (remove): Likewise.
1518         (size): Likewise.
1519         (toString): Likewise.
1520         * javax/transaction/xa/XAException.java: New file.
1521         * javax/transaction/TransactionRolledbackException.java: New file.
1522         * javax/transaction/TransactionRequiredException.java: New file.
1523         * javax/transaction/InvalidTransactionException.java: New file.
1524         * javax/naming/directory/SchemaViolationException.java: Use
1525         correct package.  Import NamingException.
1526         * javax/naming/directory/NoSuchAttributeException.java,
1527         javax/naming/directory/InvalidSearchFilterException.java,
1528         javax/naming/directory/InvalidSearchControlsException.java,
1529         javax/naming/directory/InvalidAttributesException.java,
1530         javax/naming/directory/InvalidAttributeValueException.java,
1531         javax/naming/directory/InvalidAttributeIdentifierException.java,
1532         javax/naming/directory/AttributeModificationException.java,
1533         javax/naming/directory/AttributeInUseException.java: Likewise.
1534         * javax/naming/directory/InitialDirContext.java (getAttributes):
1535         Stub implementation.
1536         * javax/naming/RefAddr.java (RefAddr): Reindented.
1537         (equals): Renamed and reindented.
1538         * javax/naming/BinaryRefAddr.java (equals): Renamed and
1539         reindented.
1540
1541 2001-10-24  Tom Tromey  <tromey@redhat.com>
1542
1543         * java/lang/reflect/Field.java: Made many methods private.
1544
1545         * java/sql/Types.java (Types): New constructor.
1546
1547 Tue Oct 23 23:52:18 2001  Anthony Green  <green@redhat.com>
1548
1549         * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
1550         HAVE_DLOPEN.
1551
1552 2001-10-23  Tom Tromey  <tromey@redhat.com>
1553
1554         * java/lang/reflect/Field.java (Field): New constructor.
1555         * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
1556         Throw ClassFormatError.
1557         
1558 2001-10-23  Tom Tromey  <tromey@redhat.com>
1559
1560         * java/util/PropertyResourceBundle.java (handleGetObject): Now
1561         public.
1562         * java/util/ListResourceBundle.java (handleGetObject): Now public
1563         and final, per spec.
1564
1565         * java/io/BufferedWriter.java (localFlush): Don't synchronize.
1566
1567 2001-10-23  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1568
1569         * prims.cc (_Jv_Abort): Always print error message using fprintf,
1570         don't try to allocate.
1571         (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
1572         * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
1573         * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
1574         duplicate class registration with JvFail if the runtime hasn't been
1575         initialized yet.
1576         
1577         * java/io/BufferedWriter (write (String, int, int)): Remove redundant 
1578         bounds checks.
1579         (write (char[], int, int)): Likewise.
1580
1581 2001-10-22  Tom Tromey  <tromey@redhat.com>
1582
1583         * java/util/GregorianCalendar.java (getGregorianChange): Removed
1584         `date' argument.
1585
1586 2001-10-22  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1587
1588         * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
1589         * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
1590         * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
1591         * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
1592         file.
1593
1594 2001-10-19  Mark Wielaard  <mark@klomp.org>
1595
1596         * java/lang/Double.java: More Classpath merging
1597         (isInfinite): Don't use doubleToLongBits
1598         (isNaN (Object)): return v != v
1599         (initIDs): make native
1600         * java/lang/Float.java: Ditto
1601         (isInfinite): Don't use floatToIntBits
1602         (isNaN (Object)): return v != v
1603         * java/lang/natDouble.cc: add empty initIDs()
1604
1605 2001-10-19  Mark Wielaard  <mark@klomp.org>
1606
1607         * javax/naming/BinaryRefAddr.java: New file
1608         * javax/naming/InitialContext.java: Compile fix
1609         * javax/naming/InvalidNameException.java: Add comments
1610         * javax/naming/Name.java: Ditto
1611         * javax/naming/NamingException.java: Implement
1612         * javax/naming/OperationNotSupportedException.java: Compile fix
1613         * javax/naming/RefAddr.java: Implement
1614         * javax/naming/StringRefAddr.java: Add comments and implement
1615         * javax/naming/directory/InitialDirContext.java: Compile fix
1616
1617 2001-10-18  Tom Tromey  <tromey@redhat.com>
1618
1619         * java/io/BufferedWriter.java (write(String,int,int)): Correctly
1620         check bounds.
1621
1622         * java/security/Security.java (loadProviders): Removed unused
1623         `pname' variable.  Don't create `File' object.  Don't update
1624         `providerCount'.
1625         (providerCount): Removed.
1626         (insertProviderAt): Don't use `providerCount'.
1627         (addProvider(Provider,int)): Likewise.
1628         (removeProvider): Likewise.
1629         (addProvider(Provider)): Rewrote.
1630         (getProviders): Rewrote.
1631         (getProvider): Don't use `providerCount'.
1632
1633 2001-10-17  Tom Tromey  <tromey@redhat.com>
1634
1635         * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
1636         Rewrote.
1637         * java/security/SecureRandom.java (setSeed(long)): Don't set seed
1638         if secureRandomSpi is not initialized.
1639
1640         * Makefile.in: Rebuilt.
1641         * Makefile.am (secdir): New macro.
1642         (install-data-local): Install new data files.
1643         * java/security/classpath.security: New file.
1644         * java/security/libgcj.security: New file.
1645
1646         * java/security/Security.java (loadProviders): Added `vendor'
1647         argument.
1648         Load both `classpath' and `java.vm.name' providers.
1649
1650 2001-10-17  Anthony Green  <green@redhat.com>
1651
1652         * java/security/Security.java (loadProviders): Fix bug in how
1653         providers are loaded.
1654
1655 2001-10-16  Tom Tromey  <tromey@redhat.com>
1656
1657         * gcj/javaprims.h: Updated class list.
1658         * java/util/Hashtable.java: Re-merged with Classpath.
1659
1660 2001-10-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1661
1662         * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
1663
1664         Eliminate use of C++ static constructors.               
1665         * interpret.cc: Remove static Utf8Consts. Use namespace gcj. 
1666         * jni.cc: Likewise.
1667         * resolve.cc: Likewise.
1668         * defineclass.cc: Likewise.
1669         (_Jv_ClassReader::handleClassBegin): Synchronize call to 
1670         _Jv_RegisterClass.
1671         * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
1672         Declare in namespace gcj.
1673         * java/lang/Class.h (Class): Remove initialization for primitive
1674         types.
1675         (friend void _Jv_InitPrimClass): This is in prims.cc.
1676         * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
1677         here instead.
1678         (void_signature, clinit_name, init_name, finit_name): Define in 
1679         namespace gcj.
1680         (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and 
1681         _Jv_InitializeSyncMutex from here. Initialize Utf8 constants. 
1682         Initialize primitive types.
1683         * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
1684         initialization routines. Don't synchronize.
1685         * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
1686         across dlopen call.
1687
1688 2001-10-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1689
1690         * java/util/HashMap.java (HashEntry.clone): Removed.
1691         (HashMap(Map)): Use putAllInternal.
1692         (clone): Likewise.
1693         (putAllInternal): New method. Efficient counterpart to putAll which 
1694         does not call put().    
1695         * java/util/LinkedHashMap.java (rethread): Removed.
1696         (putAllInternal): New method. Clear "head" and "tail".
1697         (addEntry): New argument "callRemove". Don't call removeEldestEntry()
1698         if callRemove == false. 
1699
1700         * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
1701         * Makefile.in: Rebuilt.
1702
1703 2001-10-15  Eric Blake  <ebb9@email.byu.edu>
1704
1705         * java/util/Collection.java: Updated javadoc.
1706         * java/util/Comparator.java: Updated javadoc.
1707         * java/util/Enumeration.java: Updated javadoc.
1708         * java/util/Iterator.java: Updated javadoc.
1709         * java/util/List.java: Updated javadoc.
1710         * java/util/ListIterator.java: Updated javadoc.
1711         * java/util/Map.java: Updated javadoc.
1712         * java/util/RandomAccess.java: New file.
1713         * java/util/Set.java: Updated javadoc.
1714         * java/util/SortedMap.java: Updated javadoc.
1715         * java/util/SortedSet.java: Updated javadoc.
1716
1717 2001-10-15  Tom Tromey  <tromey@redhat.com>
1718
1719         * java/lang/reflect/AccessibleObject.java (checkPermission):
1720         Implemented.
1721         Updated copyright information.
1722
1723 2001-10-15  Hans Boehm <Hans_Boehm@hp.com>
1724
1725         * java/lang/natObject.cc (heavy_lock): Moved fields
1726         old_client_data, old_finalization_proc near beginning.
1727         (heavy_lock_finalization_proc): Now inline; changed type of
1728         argument.
1729         (JV_SYNC_TABLE_SZ): Now 2048.
1730         (mp): New global.
1731         (spin): `mp' now global.
1732         (heavy_lock_obj_finalization_proc): Updated to correctly handle
1733         heavy lock finalization.
1734         (remove_all_heavy): New function.
1735         (maybe_remove_all_heavy): Likewise.
1736         (_Jv_MonitorEnter): Throw exception if object is NULL.
1737         (_Jv_MonitorExit): Likewise.  Also, clear long lists of unlocked
1738         heavy locks.
1739         * include/jvm.h (_Jv_AllocTraceTwo): Declare.
1740         * nogc.cc (_Jv_AllocTraceTwo): New function.
1741         * boehm.cc (trace_two_vtable): New global.
1742         (_Jv_AllocTraceTwo): New function.
1743
1744 2001-10-15  Tom Tromey  <tromey@redhat.com>
1745
1746         * Makefile.in: Rebuilt.
1747         * Makefile.am (awt_java_source_files): Added new file.
1748         * java/beans/AppletInitializer.java: New file.
1749
1750         * java/net/SocketPermission.java (hostport, actions): Now
1751         private.
1752
1753 2001-10-14  Mark Wielaard  <mark@klomp.org>
1754
1755         * java/lang/Double.java: Partial merge with Classpath
1756         (TYPE): initialized through VMClassLoader.getPrimitiveClass()
1757         (value): made final
1758         (static): new static block to load native libary (not used in libgcj)
1759         (Double (String)): call parseDouble()
1760         (byteValue): removed, already defined in superclass Number
1761         (shortValue): likewise
1762         (valueOf (String)): call new Double(String) directly
1763         (compare (double,double)): new 1.4 method
1764         (compareTo (Double)): call new compare(double,double) method
1765         (initIDs): new private method (not used in libgcj)
1766         * java/lang/Float.java: Partial merge with Classpath
1767         (TYPE): initialized through VMClassLoader.getPrimitiveClass()
1768         (value): made final
1769         (static): new static block to load native libary (not used in libgcj)
1770         (Float (String)): call parseFloat()
1771         (byteValue): removed, already defined in superclass Number
1772         (shortValue): likewise
1773         (valueOf (String)): call new Float(String) directly
1774         (compare (float,float)): new 1.4 method
1775         (compareTo (Float)): call new compare(double,double) method
1776
1777 2001-10-13  Tom Tromey  <tromey@redhat.com>
1778
1779         * java/lang/SecurityManager.java (SecurityManager): Now public.
1780
1781         * java/security/AccessController.java (checkPermission): Now
1782         throws AccessControlException.
1783         * java/security/AllPermission.java: Class now final.
1784         * java/security/Permission.java (getName): Now final.
1785         (name): Now private.
1786         (equals): New abstract method.
1787         * java/security/PermissionCollection.java (linesep): Now private.
1788         * java/security/Permissions.java: Class now final.
1789         * java/security/Security.java (Security): New private
1790         constructor.
1791         * java/security/UnresolvedPermission.java: Import
1792         java.security.cert.Certificate.  Class now final.
1793         * java/security/acl/Group.java: Now extends Principal.
1794         (isMember): Added Principal argument.
1795         * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
1796         final.
1797         * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
1798         final.
1799
1800 2001-10-12  Tom Tromey  <tromey@redhat.com>
1801
1802         * Makefile.in: Rebuilt.
1803         * Makefile.am (rmi_java_source_files): Added new files.
1804         * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
1805         new Compiler class.
1806         * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
1807         * gnu/java/rmi/rmic/Compile_gcj.java: New file.
1808         * gnu/java/rmi/rmic/CompilerProcess.java: New file.
1809         * gnu/java/rmi/rmic/Compiler.java: New file.
1810
1811 2001-10-11  Tom Tromey  <tromey@redhat.com>
1812
1813         * configure: Rebuilt.
1814         * configure.in: Recognize --disable-java-awt.
1815
1816 2001-10-10  Tom Tromey  <tromey@redhat.com>
1817
1818         * gnu/gcj/runtime/natFinalizerThread.cc: New file.
1819         * java/lang/natRuntime.cc: Include FinalizerThread.h.
1820         (runFinalization): Call finalizerReady.
1821         * nogc.cc (_Jv_GCInitializeFinalizers): New function.
1822         * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
1823         (_Jv_CreateJavaVM): Start the finalizer thread.
1824         * no-threads.cc: Include InternalError.h.
1825         (_Jv_ThreadStart): Throw InternalError.
1826         (_Jv_ThreadInitData): Don't throw error if this is not the first
1827         thread.
1828         * Makefile.in: Rebuilt.
1829         * Makefile.am (ordinary_java_source_files): Added
1830         FinalizerThread.java.
1831         (nat_source_files): Added natFinalizerThread.cc.
1832         * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
1833         * boehm.cc (_Jv_GCInitializeFinalizers): New function.
1834         * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
1835         * gnu/gcj/runtime/FinalizerThread.java: New file.
1836
1837 2001-10-09  Per Bothner  <per@bothner.com>
1838
1839         * strtod.c (_strtod_r):  Logic to check for missing digits
1840         after exponent had 'else' attached to wrong 'if'.
1841
1842 2001-10-09  Mark Wielaard  <mark@klomp.org>
1843
1844         * java/net/SocketImpl.java: Merge with Classpath
1845
1846 2001-10-08  Mark Wielaard  <mark@klomp.org>
1847
1848         * java/net/DatagramSocketImpl.java: Merge with Classpath
1849
1850 2001-10-07  Mark Wielaard  <mark@klomp.org>
1851
1852         * java/net/URLDecoder.java: Remerge with Classpath
1853         * java/net/URLEncoder.java: Merge with Classpath
1854
1855 2001-10-08  Tom Tromey  <tromey@redhat.com>
1856
1857         Fix for PR libgcj/4481:
1858         * java/io/File.java (getParent): Handle case where path is "/".
1859         (normalizePath): Use correct string for UNC leader.
1860
1861 2001-10-06  Mark Wielaard  <mark@klomp.org>
1862
1863         * java/io/BufferedInputStream.java: Merge with Classpath
1864
1865 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1866
1867         * defineclass.cc, java/awt/image/ColorModel.java,
1868         java/awt/image/SampleModel.java, java/lang/Package.java,
1869         java/security/cert/X509Extension.java: Fix spelling errors of
1870         "separate" as "seperate", and corresponding spelling errors of
1871         related words.
1872
1873 2001-10-05  Tom Tromey  <tromey@redhat.com>
1874
1875         * java/text/DecimalFormat.java (format): Use localized minus sign
1876         when generating exponent; never use `+'.  Use floor to compute
1877         exponent.
1878
1879 2001-10-05  Mark Wielaard  <mark@klomp.org>
1880
1881         * java/util/zip/Adler32.java: Merge with Classpath
1882         * java/util/zip/CRC32.java: Ditto
1883         * java/util/zip/Checksum.java: Ditto
1884         * java/util/zip/DataFormatException.java: Ditto
1885         * java/util/zip/ZipException.java: Ditto
1886
1887 2001-10-04  Martin Kahlert  <martin.kahlert@infineon.com>
1888
1889         * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
1890
1891 2001-10-04  Mark Wielaard  <mark@klomp.org>
1892
1893         * java/lang/reflect/Modifier.java: Merge with Classpath
1894
1895 2001-10-03  Mark Wielaard  <mark@klomp.org>
1896
1897         * java/io/SequenceInputStream.java: Merge with Classpath
1898         * java/io/StringBufferInputStream.java: Ditto
1899         * java/util/Collections.java: Remerge with Classpath
1900
1901 2001-10-03  Tom Tromey  <tromey@redhat.com>
1902
1903         * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
1904         setting *link.
1905
1906 2001-10-03  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1907
1908         * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
1909         * gij.cc (version): Use GCJVERSION.
1910
1911 2001-10-02  Mark Wielaard  <mark@klomp.org>
1912
1913         * Makefile.am (core_java_source_files): add InheritableThreadLocal
1914         * Makefile.in: regenerate
1915         * gcj/javaprims.h: ditto
1916         * java/lang/InheritableThreadLocal.java: new class from Classpath
1917         * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
1918         call InheritableThreadLocal.newChildThread()
1919
1920 2001-10-01  Mark Wielaard  <mark@klomp.org>
1921
1922         * Makefile.am: Add new classes
1923         (core_java_source_files): CharSequence
1924         (ordinary_java_source_files): Authenticator, PasswordAuthentication
1925         * Makefile.in: regenerate
1926         * gcj/javaprims.h: ditto
1927         * java/lang/CharSequence: new class from Classpath
1928         * java/lang/String.java: implements CharSequence
1929         (subSequence (int,int)): new method
1930         * java/lang/SubString.java: implements CharSequence
1931         (subSequence (int,int)): new method
1932         remerge comments with Classpath
1933         * java/net/Authenticator.java: new class from Classpath
1934         * java/net/PasswordAuthentication.java: ditto
1935
1936 2001-10-01  Tom Tromey  <tromey@redhat.com>
1937
1938         * gcj/javaprims.h: Rebuilt class list.
1939         * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
1940         (_Jv_GCCanReclaimSoftReference): New function.
1941         * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
1942         (_Jv_GCCanReclaimSoftReference): Declare.
1943         * java/lang/ref/Reference.java (referent): Now a RawData.
1944         (create): Renamed from `created'.  Added object argument.
1945         (Reference): Don't initialize `referent' here.
1946         * Makefile.in: Rebuilt.
1947         * Makefile.am (nat_source_files): Added new file.
1948         * java/lang/ref/natReference.cc: New file.
1949
1950         * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
1951         (_Jv_NewMultiArray): Use it.  Check each array dimension.
1952         (_Jv_NewMultiArray): Likewise.
1953         * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
1954         `char'.
1955         * java/lang/reflect/natArray.cc (newInstance): Throw
1956         IllegalArgumentException if there are no dimensions.
1957
1958 2001-10-01  Mark Wielaard  <mark@klomp.org>
1959
1960         * java/io/FileWriter.java: Merge with Classpath.
1961         * java/io/FilterInputStream.java: Ditto.
1962         (mark): no longer synchronized
1963         (reset): Likewise
1964         * java/io/FilterOutputStream.java: Merge with Classpath.
1965         * java/io/FilterReader.java: Ditto.
1966         (mark): no longer synchronized
1967         (reset): Likewise
1968         * java/io/FilterWriter.java: Merge with Classpath.
1969         * java/io/Writer.java: Ditto.
1970         * java/lang/Compiler.java: Ditto.
1971         * java/lang/Process.java: Ditto.
1972         * java/lang/Void.java: Ditto.
1973         * java/net/ContentHandler.java: Ditto.
1974         * java/net/DatagramPacket.java: Ditto.
1975         * java/net/MulticastSocket.java: Merge comments with Classpath.
1976
1977 2001-09-30  Mark Wielaard  <mark@klomp.org>
1978
1979         * java/io/DataInput.java:  Merge with Classpath.
1980         * java/io/DataOutput.java:  Idem.
1981         * java/io/FilenameFilter.java:  Idem.
1982         * java/io/Serializable.java:  Idem.
1983         * java/lang/Cloneable.java:  Idem.
1984         * java/lang/Comparable.java:  Idem.
1985         * java/lang/Runnable.java:  Idem.
1986         * java/lang/reflect/Member.java:  Idem.
1987         * java/net/ContentHandlerFactory.java:  Idem.
1988         * java/net/FileNameMap.java:  Idem.
1989         * java/net/SocketImplFactory.java:  Idem.
1990         * java/net/SocketOptions.java:  Idem.
1991         * java/net/URLStreamHandlerFactory.java:  Idem.
1992
1993 2001-09-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1994
1995         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
1996         an uninitialized target class.
1997         
1998         * gnu/gcj/protocol/file/Connection.java (connect): Throw 
1999         FileNotFoundException if appropriate.
2000         * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an 
2001         IOException if we got a file: url with a hostname. Comment out protocol
2002         switch to ftp for now.
2003         * java/net/URL.java (URL): Include protocol name in exception message
2004         when handler can't be found.
2005
2006 2001-09-28  Per Bothner  <per@bothner.com>
2007
2008         * gnu/gcj/runtime/SharedLibLoader.java:  New class.
2009         * gnu/gcj/runtime/natSharedLibLoader.cc:  Native methods.
2010         * Makefile.am:  Update accordingly.
2011         * configure.in:  Add AC_CHECK_LIB for dlopen.
2012         * include/config.h.in:  Add HAVE_DLOPEN.
2013
2014 2001-09-29  Jeff Sturm  <jsturm@one-point.com>
2015
2016         * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
2017         * Makefile.in: Rebuilt.
2018
2019 2001-09-27  Tom Tromey  <tromey@redhat.com>
2020
2021         * java/util/IdentityHashMap.java (containsKey): Use getHash.
2022         (get): Likewise.
2023         (put): Likewise.
2024         (remove): Likewise.
2025         (getHash): New method.
2026         (tombstone, emptyslot): Now static final.
2027         (put): Correctly determine when to rehash, and correctly rehash.
2028         (containsKey, remove): Test against table length with `>='.
2029
2030 2001-09-26  Tom Tromey  <tromey@redhat.com>
2031
2032         * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
2033         constant.
2034         * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
2035         Re-merged with Classpath.
2036
2037         * java/io/DataInputStream.java (readChar): Use readFully.
2038         (readInt): Likewise.
2039         (readLong): Likewise.
2040         (readShort): Likewise.
2041         (readUnsignedShort): Likewise.
2042
2043 2001-09-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2044
2045         * java/lang/PosixProcess.java (exitValue): Implement here. Throw 
2046         IllegalThreadStateException if process hasn't exited yet.
2047         * java/lang/natPosixProcess.cc (exitValue): Removed.
2048         (waitFor): Only check thread interrupted status if waitpid() returned
2049         an error. Use WIFEXITED and WEXITSTATUS to process process's exit
2050         value.
2051         
2052         * java/security/cert/X509Extension.java: Merge from classpath.
2053
2054 2001-09-22  Anthony Green  <green@redhat.com>
2055
2056         * java/security/DummyKeyPairGenerator.java (initialize): New
2057         method (with AlgorithmParameterSpec argument).
2058
2059 2001-09-22  Anthony Green  <green@redhat.com>
2060
2061         * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
2062
2063         * gnu/java/security/provider/SHA1PRNG.java: Extend from
2064         SecureRandomSpi.  
2065         (engineNextBytes): Fix order of memory copies.
2066         
2067 2001-09-21  Richard Henderson  <rth@redhat.com>
2068
2069         * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
2070         add get_method, set_method, vtable_elt_size, new_vtable.
2071         (_Jv_ArrayVTable): Derive from _Jv_VTable.
2072         * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
2073         * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
2074         * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
2075
2076 2001-09-21  Richard Henderson  <rth@redhat.com>
2077
2078         * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
2079         * java/lang/mprec.c (lo0bits): Fix paren typo.
2080
2081 2001-09-20  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2082
2083         * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of 
2084         blocking IO via pthread_kill().
2085         * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread 
2086         interrupted status flag only if ::write returned an error.
2087         (write (jbyteArray, jint, jint): Likewise.
2088         (read (jint)): Likewise.
2089         (read (jbyteArray, jint, jint): Likewise.
2090
2091 2001-09-19  Anthony Green  <green@redhat.com>
2092
2093         * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
2094         when host is null.
2095
2096 2001-09-17  Andreas Jaeger  <aj@suse.de>
2097
2098         * jni.cc (array_from_valist): Use promoted types for va_arg.
2099
2100 2001-09-16  Anthony Green  <green@redhat.com>
2101
2102         * gnu/java/locale/LocaleInformation.java: Extend
2103         LocaleInformation_en_US, not LocaleInformation_en.
2104
2105 2001-09-16  Anthony Green  <green@redhat.com>
2106
2107         * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
2108
2109 2001-09-14  Tom Tromey  <tromey@redhat.com>
2110
2111         * java/util/TimeZone.java: Updated list of timezones from
2112         Classpath.
2113
2114         * java/lang/CloneNotSupportedException.java: Re-merged with
2115         Classpath.
2116
2117 2001-09-14  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2118
2119         * java/io/File.java (normalizePath): Use equals() not '==' for string
2120         comparison.
2121
2122         * java/util/Hashtable.java (Enumerator): Ensure that if
2123         hasMoreElements() returns true, nextElement() will always return
2124         something even if the table has been modified.
2125
2126 2001-09-12  Tom Tromey  <tromey@redhat.com>
2127
2128         * Makefile.in: Rebuilt.
2129         * Makefile.am (class-check): New target.
2130
2131 2001-09-11  Tom Tromey  <tromey@redhat.com>
2132
2133         * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
2134
2135 2001-09-10  Tom Tromey  <tromey@redhat.com>
2136
2137         * java/util/Properties.java (load): Correctly read \u sequences.
2138         Report from Anthony Green.
2139
2140 2001-09-10  Manfred Hollstein  <manfredh@redhat.com>
2141
2142         * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
2143         and $(MULTIBUILDTOP).
2144         * configure: Re-generate.
2145
2146 2001-09-10  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2147
2148         * include/jvm.h (_Jv_AllocRawObj): New prototype.
2149         * boehm.cc (_Jv_AllocRawObj): Implement.
2150         * nogc.cc (_Jv_AllocRawObj): Likewise.
2151         * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
2152
2153 2001-09-06  Anthony Green  <green@redhat.com>
2154
2155         * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
2156         redundant method calls.
2157         (emptyLocale): New private member.
2158         (tryBundle): Use emptyLocale.  Remove duplicate code.  Only cache
2159         exact matches.
2160
2161 2001-09-06  Tom Tromey  <tromey@redhat.com>
2162
2163         * java/text/RuleBasedCollator.java (clone): Rewrote.
2164         (RuleBasedCollator(RuleBasedCollator)): Removed.
2165         * java/text/MessageFormat.java: Re-merged from Classpath.
2166         * java/text/DecimalFormat.java: Re-merged from Classpath.
2167
2168 2001-09-06  Anthony Green  <green@redhat.com>
2169
2170         * include/jvm.h: Declare _Jv_RegisterResource.
2171         * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
2172         gnu/gcj/protocol/core/Connection.java,
2173         gnu/gcj/protocol/core/Handler.java,
2174         gnu/gcj/protocol/core/CoreInputStream.java,
2175         gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
2176         * java/net/URL.java (setURLStreamHandler): Use
2177         gnu.gcj.protocol.core.Handler for the core protocol.
2178         * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
2179         end of java.class.path.
2180         * Makefile.am (ordinary_java_source_files): Add new java files.
2181         (nat_source_files): Add new native code files.
2182         * Makefile.in: Rebuilt.
2183
2184 2001-09-05  Tom Tromey  <tromey@redhat.com>
2185
2186         * java/util/Properties.java: Re-merged from Classpath.
2187
2188         From Eric Blake, via Classpath:
2189         * java/lang/String.java (CaseInsensitiveComparator): New class.
2190         (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
2191
2192         * java/util/Date.java: Re-merged with Classpath.
2193
2194         * java/text/DateFormatSymbols.java: Re-merged with Classpath.
2195
2196 2001-09-05  Corey Minyard  <minyard@acm.org>
2197             Tom Tromey  <tromey@redhat.com>
2198
2199         * java/lang/natClassLoader.cc: Include VirtualMachineError.h
2200         (_Jv_RegisterClassHookDefault): Throw error if a class is
2201         registered twice.
2202
2203 2001-09-05  Tom Tromey  <tromey@redhat.com>
2204
2205         * java/lang/natSystem.cc (init_properties): Default locale is
2206         en_US, not just en.
2207
2208 2001-09-05  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2209
2210         * java/text/MessageFormat.java (setLocale): Don't catch ParseException
2211         here, DecimalFormat.applyPattern() does not throw it.
2212
2213 2001-09-04  Tom Tromey  <tromey@redhat.com>
2214
2215         * java/util/AbstractMap.java: Re-merged with Classpath.
2216         * java/util/IdentityHashMap.java: Re-merged with Classpath.
2217
2218         * java/text/SimpleDateFormat.java: Re-merged with Classpath.
2219         * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
2220         gnu/gcj/text/LocaleData_en_US.java: Removed.
2221         * java/text/DateFormatSymbols.java (clone): Use Classpath
2222         implementation.
2223         (equals): Simplified.
2224         (DateFormatSymbols): Look in gnu.java.locale for information.
2225         (DateFormatSymbols(DateFormatSymbols)): Removed.
2226         (safeGetResource): Removed.
2227         (DateFormatSymbols): Throws MissingResourceException.
2228         (ampmsDefault, erasDefault, localPatternCharsDefault,
2229         monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
2230         weekdaysDefault, zoneStringsDefault): Removed.
2231         * java/text/Collator.java (getAvailableLocales): Use modified
2232         Classpath implementation.
2233         (getInstance): Look in gnu.java.locale for information.
2234         (clone): Rewrote.
2235         * java/text/MessageFormat.java: Reindented.
2236         (clone): Rewrote.
2237         * java/text/FieldPosition.java: Merged with Classpath.
2238         * java/text/ParsePosition.java: Merged with Classpath.
2239         * java/text/Format.java: Merged with Classpath.
2240         * java/text/StringCharacterIterator.java
2241         (StringCharacterIterator(StringCharacterIterator,int,int)): New
2242         constructor from Classpath.
2243         * java/text/Annotation.java,
2244         java/text/AttributedCharacterIterator.java,
2245         java/text/AttributedString.java,
2246         java/text/AttributedStringIterator.java: New from Classpath.
2247         * java/text/CharacterIterator.java: Copied from Classpath.
2248         * java/text/ChoiceFormat.java: Reindented.
2249         (clone): Removed.
2250         * gnu/java/text/BaseBreakIterator.java,
2251         gnu/java/text/CharacterBreakIterator.java,
2252         gnu/java/text/LineBreakIterator.java,
2253         gnu/java/text/LocaleData_en.java,
2254         gnu/java/text/LocaleData_en_US.java,
2255         gnu/java/text/SentenceBreakIterator.java,
2256         gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
2257         * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
2258         character.
2259         * java/text/BreakIterator.java (getAvailableLocales): Use
2260         Classpath implementation.
2261         (getInstance): Look in gnu.java.locale for information.
2262         (getCharacterInstance, getLineInstance, getSentenceInstance,
2263         getWordInstance): Look in gnu.java.text for implementations.
2264         * java/text/DecimalFormatSymbols.java: Reindented
2265         (clone): Use Classpath implementation.
2266         (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
2267         (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
2268         information.
2269         * java/text/DateFormat.java: Merged with Classpath.
2270         (getAvailableLocales): Use Classpath implementation.
2271         (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
2272         (computeInstance): Look in gnu.java.locale for information.
2273         * java/text/NumberFormat.java: Reindented.
2274         (computeInstance): Look in gnu.java.locale for information.
2275         (getAvailableLocales): Use implementation from Classpath.
2276         (setMaximumIntegerDigits): Likewise.
2277         (setMinimumIntegerDigits): Likewise.
2278         (setMaximumFractionDigits): Likewise.
2279         (clone): Removed.
2280         * java/text/DecimalFormat.java: Reindented.
2281         * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
2282         * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
2283         * Makefile.in: Rebuilt.
2284         * Makefile.am (ordinary_java_source_files): Added all new files.
2285         (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
2286         * java/security/spec/AlgorithmParameterSpec.java,
2287         java/security/spec/KeySpec.java: Re-merged with Classpath.
2288
2289         Fix for PR libgcj/4213:
2290         * Makefile.am (ordinary_java_source_files): Added new file.
2291         * gnu/gcj/text/LocaleData.java: New file.
2292
2293 2001-09-03  Tom Tromey  <tromey@redhat.com>
2294
2295         * java/lang/reflect/natField.cc (set): Allow for case when the
2296         value is null.  Fixes PR libgcj/4208.
2297
2298         * gcj/javaprims.h: Regenerated class list.
2299         * java/lang/IllegalThreadStateException.java,
2300         java/lang/InstantiationException.java: Minor comment tweaks to
2301         satisfy libgcj `classes.pl' script.
2302
2303 2001-09-01  Tom Tromey  <tromey@redhat.com>
2304
2305         * Makefile.in: Rebuilt.
2306         * Makefile.am (core_java_source_files): Added
2307         UnsupportedClassVersionError.
2308         * java/lang/UnsupportedClassVersionError.java: New file from
2309         Classpath.
2310
2311         * java/io/CharConversionException.java, java/io/EOFException.java,
2312         java/io/FileNotFoundException.java, java/io/IOException.java,
2313         java/io/InterruptedIOException.java,
2314         java/io/ObjectStreamException.java,
2315         java/io/OptionalDataException.java,
2316         java/io/StreamCorruptedException.java,
2317         java/io/SyncFailedException.java,
2318         java/io/UTFDataFormatException.java,
2319         java/io/UnsupportedEncodingException.java,
2320         java/lang/AbstractMethodError.java,
2321         java/lang/ArithmeticException.java,
2322         java/lang/ArrayIndexOutOfBoundsException.java,
2323         java/lang/ArrayStoreException.java,
2324         java/lang/ClassCastException.java,
2325         java/lang/ClassCircularityError.java,
2326         java/lang/ClassFormatError.java,
2327         java/lang/CloneNotSupportedException.java, java/lang/Error.java,
2328         java/lang/Exception.java,
2329         java/lang/ExceptionInInitializerError.java,
2330         java/lang/IllegalAccessError.java,
2331         java/lang/IllegalAccessException.java,
2332         java/lang/IllegalArgumentException.java,
2333         java/lang/IllegalMonitorStateException.java,
2334         java/lang/IllegalStateException.java,
2335         java/lang/IllegalThreadStateException.java,
2336         java/lang/IncompatibleClassChangeError.java,
2337         java/lang/IndexOutOfBoundsException.java,
2338         java/lang/InstantiationError.java,
2339         java/lang/InstantiationException.java,
2340         java/lang/InternalError.java, java/lang/InterruptedException.java,
2341         java/lang/LinkageError.java,
2342         java/lang/NegativeArraySizeException.java,
2343         java/lang/NoClassDefFoundError.java,
2344         java/lang/NoSuchFieldError.java,
2345         java/lang/NoSuchFieldException.java,
2346         java/lang/NoSuchMethodError.java,
2347         java/lang/NoSuchMethodException.java,
2348         java/lang/NullPointerException.java,
2349         java/lang/NumberFormatException.java,
2350         java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
2351         java/lang/SecurityException.java,
2352         java/lang/StackOverflowError.java,
2353         java/lang/StringIndexOutOfBoundsException.java,
2354         java/lang/ThreadDeath.java, java/lang/UnknownError.java,
2355         java/lang/UnsatisfiedLinkError.java,
2356         java/lang/UnsupportedOperationException.java,
2357         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
2358         java/lang/reflect/InvocationTargetException.java,
2359         java/net/BindException.java, java/net/ConnectException.java,
2360         java/net/MalformedURLException.java,
2361         java/net/NoRouteToHostException.java,
2362         java/net/ProtocolException.java, java/net/SocketException.java,
2363         java/net/UnknownHostException.java,
2364         java/net/UnknownServiceException.java,
2365         java/text/ParseException.java: Copied from Classpath, thanks to
2366         Mark Wielaard who did the merge.
2367
2368         * java/lang/System.java (getProperty): Use single argument form of
2369         SecurityManager.checkPropertyAccess.
2370         * Makefile.in: Rebuilt.
2371         * Makefile.am (core_java_source_files): Added VMSecurityManager.
2372         * java/lang/VMSecurityManager.java: New file.
2373         * java/lang/SecurityManager.java: Merged with Classpath.
2374
2375 2001-08-31  Per Bothner  <per@bothner.com>
2376
2377         * gcj/javaprims.h (_Jv_RegisterClassHook):  New extern declaration.
2378         (_Jv_RegisterClassHookDefault):  Likewise.
2379         * java/lang/Class.h (_Jv_RegisterClassHookDefault):  Declare as friend.
2380         * java/lang/natClassLoader.cc (_Jv_RegisterClassHook):  New variable.
2381         (_Jv_RegisterClassHookDefault):  New.function.
2382         (_Jv_RegisterClasses):  Call _Jv_RegisterClassHook.
2383
2384         * java/lang/ClassLoader.java (system):  Remove static field.
2385         (getSystemClassLoader):  Get gnu.gcj.runtime.VMClassLoader.instance
2386         directly instead of using it to set the system field.
2387         (loadClass):  Use VMClassLoader.instance instead of system field.
2388         (findSystemClass):   Similar.
2389         * prims.cc (_Jv_RunMain):  Clear VMClassLoader::instance rather
2390         than ClassLoader::system which no longer exists.
2391         * java/lang/natClassLoader.java (_Jv_FindClass):  Simplify.
2392
2393 2001-08-31  Tom Tromey  <tromey@redhat.com>
2394
2395         * java/io/BufferedReader.java, java/io/ObjectInput.java,
2396         java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
2397         Re-merged with Classpath.
2398
2399         Re-merge with Classpath:
2400         * java/util/Comparator (equals): Added.
2401         * java/io/PipedWriter.java (write): Changed argument to `int'.
2402
2403         * java/io/FileDescriptor.java (FileDescriptor()): New
2404         constructor.
2405         * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
2406
2407         * Makefile.in: Rebuilt.
2408         * Makefile.am (ordinary_java_source_files): Removed
2409         EnumerationChain, added DoubleEnumeration.
2410         (nat_source_files): Added natResourceBundle.cc.
2411         * java/util/natResourceBundle.cc: New file.
2412         * gnu/java/util/DoubleEnumeration.java: New file.
2413         * gnu/gcj/util/EnumerationChain.java: Removed.
2414         * java/beans/VetoableChangeSupport.java: Merged with Classpath.
2415         * java/util/ResourceBundle.java: Merged with Classpath.
2416         * java/util/StringTokenizer.java: Merged with Classpath.
2417         * java/util/Locale.java: Merged with Classpath.
2418         * java/util/Random.java: Merged with Classpath.
2419         * java/util/PropertyResourceBundle.java: Merged with Classpath.
2420         * java/util/ListResourceBundle.java: Merged with Classpath.
2421         * java/util/ConcurrentModificationException.java: Re-merged with
2422         Classpath.
2423         * java/util/EmptyStackException.java: Likewise.
2424         * java/util/MissingResourceException.java: Likewise.
2425         * java/util/NoSuchElementException.java: Likewise.
2426         * java/util/TooManyListenersException.java: Likewise.
2427
2428         * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
2429         * java/io/OptionalDataException.java: Merged with Classpath.
2430
2431 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
2432
2433         * exception.cc (PERSONALITY_FUNCTION): Simplify
2434         leb128 handling.
2435
2436 2001-08-31  Tom Tromey  <tromey@redhat.com>
2437
2438         * java/io/ByteArrayInputStream.java: Merged with Classpath.
2439
2440 2001-08-30  Tom Tromey  <tromey@redhat.com>
2441
2442         * java/io/BufferedReader.java: Re-merged with Classpath.
2443
2444 2001-08-28  Per Bothner  <per@bothner.com>
2445
2446         * java/math/BigInteger.java (init(int,Random)):  New method.
2447         Move body of constructor <init>(int,Random)) here.
2448         Re-write it to avoid constructing unneeded temporaries.
2449         (<init>(int,int,Random)):  Use new init method to avoid constructing
2450         extra temporary BigIntegers.
2451
2452 2001-08-27  Tom Tromey  <tromey@redhat.com>
2453
2454         * java/rmi/activation/Activatable.java,
2455         java/rmi/activation/ActivateFailedException.java,
2456         java/rmi/activation/ActivationDesc.java,
2457         java/rmi/activation/ActivationException.java,
2458         java/rmi/activation/ActivationGroup.java,
2459         java/rmi/activation/ActivationGroupDesc.java,
2460         java/rmi/activation/ActivationGroupID.java,
2461         java/rmi/activation/ActivationID.java,
2462         java/rmi/activation/ActivationInstantiator.java,
2463         java/rmi/activation/ActivationMonitor.java,
2464         java/rmi/activation/ActivationSystem.java,
2465         java/rmi/activation/Activator.java,
2466         java/rmi/activation/UnknownGroupException.java,
2467         java/rmi/activation/UnknownObjectException.java,
2468         java/rmi/AccessException.java,
2469         java/rmi/AlreadyBoundException.java,
2470         java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
2471         java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
2472         java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
2473         java/rmi/NotBoundException.java,
2474         java/rmi/RMISecurityException.java,
2475         java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
2476         java/rmi/RemoteException.java, java/rmi/ServerError.java,
2477         java/rmi/ServerException.java,
2478         java/rmi/ServerRuntimeException.java,
2479         java/rmi/StubNotFoundException.java,
2480         java/rmi/UnexpectedException.java,
2481         java/rmi/UnknownHostException.java,
2482         java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
2483         java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
2484         java/rmi/registry/LocateRegistry.java,
2485         java/rmi/registry/Registry.java,
2486         java/rmi/registry/RegistryHandler.java,
2487         java/rmi/server/ExportException.java,
2488         java/rmi/server/LoaderHandler.java,
2489         java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
2490         java/rmi/server/Operation.java,
2491         java/rmi/server/RMIClassLoader.java,
2492         java/rmi/server/RMIClientSocketFactory.java,
2493         java/rmi/server/RMIFailureHandler.java,
2494         java/rmi/server/RMIServerSocketFactory.java,
2495         java/rmi/server/RMISocketFactory.java,
2496         java/rmi/server/RemoteCall.java,
2497         java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
2498         java/rmi/server/RemoteServer.java,
2499         java/rmi/server/RemoteStub.java,
2500         java/rmi/server/ServerCloneException.java,
2501         java/rmi/server/ServerNotActiveException.java,
2502         java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
2503         java/rmi/server/SkeletonMismatchException.java,
2504         java/rmi/server/SkeletonNotFoundException.java,
2505         java/rmi/server/SocketSecurityException.java,
2506         java/rmi/server/UID.java,
2507         java/rmi/server/UnicastRemoteObject.java,
2508         java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
2509         gnu/java/rmi/dgc/DGCImpl_Skel.java,
2510         gnu/java/rmi/dgc/DGCImpl_Stub.java,
2511         gnu/java/rmi/registry/RegistryImpl.java,
2512         gnu/java/rmi/registry/RegistryImpl_Skel.java,
2513         gnu/java/rmi/registry/RegistryImpl_Stub.java,
2514         gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
2515         gnu/java/rmi/server/ProtocolConstants.java,
2516         gnu/java/rmi/server/RMIDefaultSocketFactory.java,
2517         gnu/java/rmi/server/RMIHashes.java,
2518         gnu/java/rmi/server/RMIObjectInputStream.java,
2519         gnu/java/rmi/server/RMIObjectOutputStream.java,
2520         gnu/java/rmi/server/UnicastConnection.java,
2521         gnu/java/rmi/server/UnicastConnectionManager.java,
2522         gnu/java/rmi/server/UnicastRef.java,
2523         gnu/java/rmi/server/UnicastRemoteCall.java,
2524         gnu/java/rmi/server/UnicastRemoteStub.java,
2525         gnu/java/rmi/server/UnicastServer.java,
2526         gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
2527         Kaffe.  Relabelled classes to fit into Classpath tree.
2528         * Makefile.in: Rebuilt.
2529         * Makefile.am (rmi_java_source_files): New macro.
2530         (ordinary_java_source_files): Reference it.
2531         (bin_PROGRAMS): Added rmic and rmiregistry.
2532         (rmic_SOURCES): New macro.
2533         (EXTRA_rmic_SOURCES): Likewise.
2534         (rmic_LDFLAGS): Likewise.
2535         (rmic_LINK): Likewise.
2536         (rmic_LDADD): Likewise.
2537         (rmic_DEPENDENCIES): Likewise.
2538         (rmiregistry_SOURCES): New macro.
2539         (EXTRA_rmiregistry_SOURCES): Likewise.
2540         (rmiregistry_LDFLAGS): Likewise.
2541         (rmiregistry_LINK): Likewise.
2542         (rmiregistry_LDADD): Likewise.
2543         (rmiregistry_DEPENDENCIES): Likewise.
2544
2545 2001-08-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2546
2547         * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
2548
2549         * Makefile.am: New friends for java/lang/Thread.h.
2550         * prims.cc (runFirst): Removed.
2551         (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
2552         (_Jv_RunMain): Now takes either a klass or class name parameter.
2553         Create a gnu.gcj.runtime.FirstThread and attach the native thread
2554         to that, then run it using _Jv_ThreadRun. Remove special handling of
2555         jar files, instead pass is_jar parameter through to FirstThread.
2556         * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
2557         of _Jv_AttachCurrentThread.
2558         * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
2559         (run): New method. Take care of looking up main class manifest
2560         attribute and calling forName if necessary. Then call call_main.
2561         (call_main): New native method.
2562         * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
2563         relocated from prims.cc. Look up and call main method.
2564         * java/lang/Thread.java (run_): Removed.
2565         * java/lang/natThread.cc (run_): Renamed to...
2566         (_Jv_ThreadRun): this. JVMPI notification code moved to ...
2567         (_Jv_NotifyThreadStart): here. New function.
2568         (countStackFrames, destroy, resume, suspend, stop): Throw
2569         UnsupportedOperationExceptions rather than JvFail'ing.
2570         (_Jv_AttachCurrentThread): New variant takes a Thread argument.
2571         Existing version wraps new variant.
2572
2573
2574 2001-08-23  Tom Tromey  <tromey@redhat.com>
2575
2576         * java/lang/reflect/Field.java (toString): Use
2577         Method.appendClassName.
2578         * java/lang/reflect/Constructor.java (toString): Use
2579         Method.appendClassName.
2580         * java/lang/reflect/Method.java: Reindented.
2581         (appendClassName): New method.
2582         (toString): Use it.
2583         * defineclass.cc (handleMethod ): Initialize `throws' field of
2584         method.
2585         (read_one_method_attribute): Handle Exceptions attribute.
2586         * java/lang/reflect/natMethod.cc (ClassClass): Removed.
2587         (ObjectClass): Removed.
2588         (getType): Compute `exception_types'.
2589         * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
2590
2591 2001-08-21  Anthony Green  <green@redhat.com>
2592
2593         * java/lang/natClassLoader.cc (findClass): Search for
2594         lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
2595
2596 2001-08-21  Jeff Sturm  <jsturm@one-point.com>
2597
2598         * java/util/IdentityHashMap.java (get): Fix off-by-one error.
2599         (put): Likewise.
2600
2601 2001-08-20  Tom Tromey  <tromey@redhat.com>
2602
2603         * java/awt/GridBagConstraints.java: Removed comment.
2604
2605         * jni.cc (nathash, nathash_count, nathash_size): New globals.
2606         (DELETED_ENTRY): New define.
2607         (hash): New function.
2608         (nathash_find_slot): Likewise.
2609         (natrehash): Likewise.
2610         (nathash_add): Likewise.
2611         (_Jv_JNI_RegisterNatives): No longer interpreter-specific.  Use
2612         nathash_add.
2613         (nathash_find): New function.
2614         (_Jv_LookupJNIMethod): Use it.  Synchronize body.
2615         (call): Synchronize around assignment.
2616
2617 2001-08-17  Jeff Sturm  <jsturm@one-point.com>
2618
2619         * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
2620         starting from zero offset.
2621
2622 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
2623
2624         * boehm.cc: Include gc_local_alloc.h if appropriate.
2625         (GC_GENERIC_MALLOC): Don't define.
2626         (MAYBE_MARK): Redefine for GC 6.0.
2627         (_Jv_MarkObj): Mark class differently.
2628         (_Jv_AllocArray): Use GC_generic_malloc.
2629
2630 2001-08-17  Mark J Roberts  <mjr@anarcast.net>
2631
2632         * java/math/BigInteger.java (randBytes): New method.
2633         (BigInteger(int,Random)): Use randBytes.
2634
2635 2001-08-17  Tom Tromey  <tromey@redhat.com>
2636
2637         * gnu/gcj/convert/IOConverter.java: Add `646' alias.
2638
2639 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
2640
2641         * BigInteger.java: fix right shifts by nonzero multiples of 32.
2642
2643 2001-08-15  Tom Tromey  <tromey@redhat.com>
2644
2645         * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
2646         (local_ref_table, global_ref_table): Now IdentityHashMap.
2647         (_Jv_JNI_Init): Updated for new types.
2648         (mark_for_gc): Likewise.
2649         (unmark_for_gc): Likewise.
2650         * gcj/javaprims.h: Rebuilt class list.
2651         * Makefile.in: Rebuilt.
2652         * Makefile.am (core_java_source_files): Added new file.
2653         * java/util/IdentityHashMap.java: New file.
2654
2655         * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
2656         correctly.
2657
2658 2001-08-09  Tom Tromey  <tromey@redhat.com>
2659
2660         * java/awt/image/SampleModel.java (getPixel): Set correct array
2661         element.  From Chris Meyer.
2662
2663 2001-08-10  Loren J. Rittle  <ljrittle@acm.org>
2664
2665         * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
2666         * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
2667
2668 2001-08-06  Tom Tromey  <tromey@redhat.com>
2669
2670         * java/io/InputStreamReader.java (refill): Only call refill on
2671         BufferedInputStream when appropriate constraints are met.
2672
2673 2001-08-05  Tom Tromey  <tromey@redhat.com>
2674
2675         * java/io/StringWriter.java: Merged with Classpath.
2676         * java/io/InputStream.java: Merged with Classpath.
2677         * java/io/OutputStream.java: Merged with Classpath.
2678         * java/io/PushbackInputStream.java: Merged with Classpath.
2679         * java/io/CharArrayReader.java: Merged with Classpath.
2680         * java/io/CharArrayWriter.java: Merged with Classpath.
2681
2682 2001-08-02  Tom Tromey  <tromey@redhat.com>
2683
2684         * prims.cc (JNI_OnLoad): Don't declare.
2685         (_JNI_OnLoad): Don't define.
2686         (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
2687
2688 2001-08-02  Tom Tromey  <tromey@redhat.com>
2689
2690         * java/io/RandomAccessFile.java (seek): Let seek go past end of
2691         file.
2692         (skipBytes): Don't fail if seeking past end of file.
2693         * java/io/FileInputStream.java (skip): Don't fail if seeking past
2694         end of file.
2695         * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
2696         argument.
2697         * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
2698         argument.
2699         * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
2700         argument.
2701         * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
2702
2703 2001-08-02  Martin Kahlert  <martin.kahlert@infineon.com>
2704
2705         * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
2706         to initialize global_ref_table/local_ref_table.
2707
2708 2001-08-02  Tom Tromey  <tromey@redhat.com>
2709
2710         * configure: Rebuilt.
2711         * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin.  From
2712         David Billinghurst.
2713
2714 2001-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2715
2716         * include/posix.h (_POSIX_PII_SOCKET): Define.
2717         * configure.in (HAVE_SOCKLEN_T): Define.
2718         * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
2719         definition up.
2720         (_JV_accept): New function, avoids Tru64 UNIX accept macro.
2721         (java::net::PlainSocketImpl::accept): Use it.
2722         Fixes PRs libgcj/3694, libgcj/3696.
2723
2724         * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
2725         * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
2726         * configure, include/config.h.in: Regenerate.
2727         * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
2728         (mcastGrp): Likewise.
2729         (java::net::PlainDatagramSocketImpl::setOption): Guard against
2730         missing IPV6_MULTICAST_IF.
2731         Fixes PR libgcj/3694.
2732
2733 2001-08-01  Jeff Sturm  <jsturm@one-point.com>
2734
2735         * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
2736
2737 2001-07-30  Christian Iseli  <chris@ludwig-alpha.unil.ch>
2738
2739         * Makefile.in: Rebuilt.
2740         * Makefile.am (GCJLINK): Added --tag=GCJ.
2741         (LIBLINK): Likewise.
2742
2743 2001-07-30  Tom Tromey  <tromey@redhat.com>
2744
2745         * java/util/Date.java: Re-merged with Classpath.
2746
2747 2001-07-30  Jeff Sturm  <jsturm@one-point.com>
2748
2749         * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
2750         (_Jv_bind): New static function.
2751         (bind): Use _Jv_bind.
2752         * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
2753         (_Jv_bind, _Jv_connect): New static functions.
2754         (bind): Use _Jv_bind.
2755         (connect): Use _Jv_connect.
2756
2757 2001-07-30  Tom Tromey  <tromey@redhat.com>
2758             Corey Minyard  <minyard@acm.org>
2759
2760         * gnu/gcj/convert/natIconv.cc (done): New methods.
2761         * gnu/gcj/convert/Output_iconv.java (done): New method.
2762         * gnu/gcj/convert/Input_iconv.java (done): New method.
2763         * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
2764         Removed.
2765         (getDefaultEncodingClass): Removed.
2766         (getDefaultEncoder): Use getEncoder.
2767         (done): New method.
2768         (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
2769         static fields.
2770         * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
2771         Removed.
2772         (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
2773         static fields.
2774         (getDefaultDecodingClass): Removed.
2775         (getDefaultDecoder): Use getDecoder.
2776         (getDecoder): Look up decoder in cache.
2777         (done): New method.
2778         * java/lang/natString.cc (init): Call `done' on converter.
2779         (getBytes): Likewise.
2780
2781 2001-07-30  Tom Tromey  <tromey@redhat.com>
2782
2783         * java/lang/Integer.java: Merged with Classpath.
2784
2785 2001-07-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2786
2787         * java/util/GregorianCalendar.java (GregorianCalendar): Call
2788         setTimeInMillis() to set the default/current time.
2789
2790 2001-07-29  Mark Wielaard <mark@klomp.org>
2791
2792         * HACKING: add description on updating namespace
2793
2794 2001-07-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2795
2796         * java/util/Calendar.java (set): Never recompute fields here. They
2797         will already be set if someone set time explicitly, and it can cause
2798         problems to do so. Don't invalidate AM_PM setting if HOUR is set.
2799         * java/util/GregorianCalendar.java (computeTime): Don't ignore an
2800         HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
2801         sane.
2802         * java/text/SimpleDateFormat.java (defaultCentury): New field.
2803         (readObject): Call set2DigitYearStart if appropriate so that
2804         defaultCentury is calculated.
2805         (SimpleDateFormat): Don't bother clearing calendar here. Call
2806         computeCenturyStart().
2807         (set2DigitYearStart): Calculate and set defaultCentury.
2808         (format): Don't clone the calendar. Use "calendar" not "theCalendar"
2809         everywhere.
2810         (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2811         2 numeric digits, use the 80-20 heuristic to parse the value into a
2812         default century based on defaultCenturyStart.
2813         (computeCenturyStart): Rewritten. Call set2DigitYearStart().
2814
2815 2001-07-25  Tom Tromey  <tromey@redhat.com>
2816
2817         * Makefile.in: Rebuilt.
2818         * Makefile.am (libgcj.jar): Correctly fail when bytecode
2819         compilation fails.
2820
2821 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2822
2823         * prims.cc (_JNI_OnLoad): New function.
2824         (JNI_OnLoad): Use it.
2825         (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
2826
2827 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2828
2829         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
2830         Makefile.in: Regenerate.
2831
2832 2001-07-24  Tom Tromey  <tromey@redhat.com>
2833
2834         * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
2835         type.
2836
2837 2001-07-23  Tom Tromey  <tromey@redhat.com>
2838
2839         * gcj/javaprims.h: Rebuilt class list.
2840         * Makefile.in: Rebuilt.
2841         * Makefile.am (core_java_source_files): Added VMClassLoader.
2842         * java/lang/VMClassLoader.java: New file.
2843         * java/lang/Boolean.java: Merged with Classpath.
2844         * java/lang/Byte.java: Merged with Classpath.
2845         * java/lang/Integer.java: Merged with Classpath.
2846         * java/lang/Long.java: Merged with Classpath.
2847         * java/lang/Number.java: Merged with Classpath.
2848         * java/lang/Short.java: Merged with Classpath.
2849
2850 2001-07-22  Jeff Sturm  <jsturm@one-point.com>
2851
2852         * configure.host: Enable hash synchronization for alpha*-*.
2853         * include/posix-threads.h (_Jv_ThreadSelf): Added inline
2854         function for alpha.
2855         * java/lang/natObject.cc (compare_and_swap, release_set,
2856         compare_and_swap_release): Added inline functions for alpha.
2857
2858 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2859
2860         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
2861         2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
2862         back to old RFC 2133 variants if missing.
2863
2864 2001-07-18  Tom Tromey  <tromey@redhat.com>
2865
2866         * java/io/natFileWin32.cc (_access): Renamed.
2867         (_stat): Likewise.
2868         * java/io/natFile.cc (_access): Renamed.
2869         (_stat): Likewise.
2870         * java/io/File.java (access, stat): Add leading `_' to name.
2871         Updated all callers.
2872
2873 2001-07-18  Tom Tromey  <tromey@redhat.com>
2874
2875         For PR java/2812:
2876         * libgcj.spec.in (*lib): Added LIBICONV.
2877         * configure: Rebuilt.
2878         * configure.in: Call AM_ICONV.  Don't check for iconv function.
2879         Add parameters to JV_HASH_SYNCHRONIZATION define.
2880         * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
2881
2882 2001-07-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2883
2884         * java/util/LinkedList.java (clone): Clear the copy list with clear(),
2885         not by setting its size field.
2886
2887 2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
2888
2889         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
2890         local `_ebp.'
2891
2892 2001-07-12  Tom Tromey  <tromey@redhat.com>
2893             David Brownell  <david-b@pacbell.net>
2894
2895         Fix for PR libgcj/3426:
2896         * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
2897         errno.h.
2898         (read): Throw exception if character conversion fails.
2899         * java/io/BufferedInputStream.java (refill): Now package-private.
2900         * java/io/InputStreamReader.java (ready): Simplified.
2901         (refill): New method.
2902         (read): Use it.
2903
2904 2001-07-12  Tom Tromey  <tromey@redhat.com>
2905
2906         Report from Henner Zeller:
2907         * java/io/FileOutputStream.java (FileOutputStream): Throw
2908         FileNotFoundException, not IOException.
2909
2910 2001-07-10  Anthony Green  <green@redhat.com>
2911
2912         * Makefile.in: Rebuilt.
2913         * Makefile.am: Add new files.
2914         * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
2915         org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
2916         org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
2917         org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
2918         org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
2919         org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
2920         org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
2921         org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
2922         org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
2923         org/w3c/dom/ranges/DocumentRange.java,
2924         org/w3c/dom/ranges/Range.java,
2925         org/w3c/dom/ranges/RangeException.java,
2926         org/w3c/dom/traversal/DocumentTraversal.java,
2927         org/w3c/dom/traversal/NodeFilter.java,
2928         org/w3c/dom/traversal/NodeIterator.java,
2929         org/w3c/dom/traversal/TreeWalker.java,
2930         org/xml/sax/ext/DeclHandler.java,
2931         org/xml/sax/ext/LexicalHandler.java,
2932         org/xml/sax/helpers/AttributeListImpl.java,
2933         org/xml/sax/helpers/AttributesImpl.java,
2934         org/xml/sax/helpers/DefaultHandler.java,
2935         org/xml/sax/helpers/LocatorImpl.java,
2936         org/xml/sax/helpers/NamespaceSupport.java,
2937         org/xml/sax/helpers/ParserAdapter.java,
2938         org/xml/sax/helpers/ParserFactory.java,
2939         org/xml/sax/helpers/XMLFilterImpl.java,
2940         org/xml/sax/helpers/XMLReaderAdapter.java,
2941         org/xml/sax/helpers/XMLReaderFactory.java,
2942         org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
2943         org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
2944         org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
2945         org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
2946         org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
2947         org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
2948         org/xml/sax/SAXNotRecognizedException.java,
2949         org/xml/sax/SAXNotSupportedException.java,
2950         org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
2951         org/xml/sax/XMLReader.java:  New files.
2952
2953 2001-07-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
2954
2955         * Makefile.am: Added `java/lang/ThreadLocal.java'.
2956         * Makefile.in: Regenerate.
2957         * java/lang/ThreadLocal.java: Initial import.
2958
2959 2001-07-07  Jeff Sturm  <jsturm@one-point.com>
2960
2961         * Makefile.am (libgcj.jar): Don't recursively make
2962         built_java_source_files.  Avoid long command lines.
2963         Don't change to $(srcdir) to invoke javac.
2964         (libgcj.la, libgcjx.la); Avoid long command lines.
2965         ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
2966         * Makefile.in: Rebuilt.
2967
2968 2001-07-06  Andrew Haley  <aph@cambridge.redhat.com>
2969
2970         * include/i386-signal.h: Don't do anything with unsigned divide
2971         overflow except throw an exception.
2972
2973 2001-07-05  Tom Tromey  <tromey@redhat.com>
2974
2975         For PR java/3562:
2976         * java/lang/Class.h (Class(void)): Now private.  Removed
2977         implementation.  From dmorsberger@sensysdl.com.
2978
2979 2001-07-02  Tom Tromey  <tromey@redhat.com>
2980
2981         Fix for PR bootstrap/3281:
2982         * aclocal.m4, configure: Rebuilt.
2983         * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
2984         Correctly compute libgcj_basedir.
2985         (mkinstalldirs): Define and subst.
2986
2987 2001-07-01  Jeremy Nimmer  <jwnimmer@alum.mit.edu>
2988
2989         For PR libgcj/3523:
2990         * java/io/LineNumberReader.java (reset): Pass correct arguments to
2991         countLines.
2992
2993 2001-06-27  Tom Tromey  <tromey@redhat.com>
2994
2995         * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
2996         lowercase.
2997
2998 2001-06-25  Tom Tromey  <tromey@redhat.com>
2999
3000         * scripts/encodings.pl: Generate lower-case names.  Updated URL
3001         for `character-sets' file.
3002         * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
3003         lower case.
3004         Rebuilt list of aliases.
3005
3006 2001-06-25  Tom Tromey  <tromey@redhat.com>
3007
3008         * java/io/natFileDescriptorPosix.cc (open): Change error message
3009         formatting.  From David Brownell.
3010
3011 2001-06-21  Tom Tromey  <tromey@redhat.com>
3012
3013         * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
3014         From Corey Minyard.
3015
3016 2001-06-19  Mark J. Roberts  <mjr@statesmean.com>
3017
3018         * java/math/BigInteger.java (byteArrayToIntArray): Don't include
3019         extraneous/malformed sign word.
3020
3021 2001-06-15  Tom Tromey  <tromey@redhat.com>
3022
3023         * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
3024
3025 2001-06-15  Tom Tromey  <tromey@redhat.com>
3026
3027         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
3028         NULL if no library on the list has the symbol.
3029         (init): Call add_library on the program itself.
3030         * prims.cc (JvRunMain): Initialize Runtime before searching for
3031         `main'.
3032         (_Jv_RunMain): Likewise.
3033
3034 2001-06-15  Tom Tromey  <tromey@redhat.com>
3035
3036         * jni.cc (ClassClass): Removed; updated all users.
3037         (ObjectClass): Likewise.
3038         (ThrowableClass): Likewise.
3039         (MethodClass): Likewise.
3040         (ThreadGroupClass): Likewise.
3041         (local_ref_table): Renamed from `ref_table'.
3042         (global_ref_table): New global.
3043         (_Jv_JNI_Init): Initialize both ref tables.
3044         (mark_for_gc): Added `ref_table' parameter.
3045         (unmark_for_gc): Likewise.  Also, fail if we unreferenced too many
3046         times.
3047         (_Jv_JNI_NewGlobalRef): Updated for new mark function.
3048         (_Jv_JNI_DeleteGlobalRef): Likewise.
3049         (_Jv_JNI_DeleteLocalRef): Likewise.
3050         (_Jv_JNI_NewLocalRef): Likewise.
3051         (_Jv_JNI_PopLocalFrame): Likewise.
3052         (_Jv_JNI_GetStringChars): Likewise.
3053         (_Jv_JNI_ReleaseStringChars): Likewise.
3054         (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
3055         (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
3056
3057 2001-06-14  Tom Tromey  <tromey@redhat.com>
3058
3059         Fix for PR libgcj/3144:
3060         * java/util/Date.java: Merged with Classpath.
3061
3062 2001-06-12  Tom Tromey  <tromey@redhat.com>
3063
3064         * aclocal.m4, configure: Rebuilt.
3065         * acinclude.m4: Find configure.host in srcdir.
3066
3067 2001-06-07  Tom Tromey  <tromey@redhat.com>
3068
3069         Fix for PR libgcj/3059:
3070         * java/lang/natSystem.cc (init_properties): Define `java.home'.
3071         * Makefile.in: Rebuilt.
3072         * Makefile.am (AM_CXXFLAGS): Define PREFIX.
3073
3074 2001-06-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
3075
3076         * exception.cc (cstdlib): Replaces stdlib.h.
3077         (_Jv_Throw): Use std::abort().
3078         (PERSONALITY_FUNCTION): Likewise.
3079
3080 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
3081
3082         * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
3083         nothing, as in autoconf 2.50.
3084         * aclocal.m4, configure: Rebuilt.
3085
3086 2001-06-08  Tom Tromey  <tromey@redhat.com>
3087
3088         * configure: Rebuilt.
3089         * configure.in: Compute new aux dir using `pwd'.
3090
3091 2001-06-07  Tom Tromey  <tromey@redhat.com>
3092
3093         For PR bootstrap/3075:
3094         * configure, aclocal.m4, Makefile.am: Rebuilt.
3095         * configure.in: Pass `--with-auxdir' to subdir configure.  Don't
3096         call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM.  Look for unwind.h
3097         relative to libgcj_basedir.
3098         * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
3099         AC_CANONICAL_SYSTEM here.
3100         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
3101         libgcj_basedir.
3102         ($(extra_headers)): New target.
3103
3104 2001-06-05  Martin Kahlert  <martin.kahlert@infineon.com>
3105             Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3106
3107         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
3108         table index is within allowed bounds. Ensure that we don't try to access
3109         class itable at a negative offset. Avoid an ancestor table lookup if
3110         source is a primitive type class.
3111         (isInstance): Remove redundant isPrimitive() check.
3112
3113 2001-06-04  Tom Tromey  <tromey@redhat.com>
3114
3115         * java/security/PublicKey.java: Extend Key.
3116         * java/security/PrivateKey.java: Extend Key.
3117
3118 2001-06-02  Anthony Green  <green@redhat.com>
3119
3120         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
3121         alternate when USE_LTDL not defined.
3122
3123 2001-06-02  Anthony Green  <green@redhat.com>
3124
3125         * configure: Rebuild.
3126         * configure.in: Remove data_start hack.
3127         * libgcj.spec.in: Ditto.
3128         * Makefile.in: Rebuild.
3129         * Makefile.am: Ditto.
3130         * libgcjdata.c: Remove.
3131
3132 2001-06-02  Anthony Green  <green@redhat.com>
3133
3134         * configure: Rebuild.
3135         * configure.in (LIBFFIINCS, LIBFFI): Introduce.  Add
3136         --without-libffi option.  Tweak --disable-java-net processing.
3137         * Makefile.in: Rebuild.
3138         * Makefile.am (LIBFFIINCS, LIBFFI): Use.
3139         * include/config.h.in: Rebuild.
3140         * acconfig.h (USE_LIBFFI): Define.
3141         * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
3142
3143 2001-06-02  Anthony Green  <green@redhat.com>
3144
3145         * configure: Rebuilt.
3146         * configure.in: Test for sigaction on native builds.
3147         * prims.cc: Check HAVE_SIGACTION.
3148         * include/config.h.in: Rebuilt.
3149
3150 2001-05-31  Jeff Sturm  <jsturm@one-point.com>
3151
3152         * natFile.cc (get_entry): Removed functions.
3153         (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
3154         Allocate enough storage for d_name if using readdir_r.
3155
3156 2001-05-31  Tom Tromey  <tromey@redhat.com>
3157
3158         * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
3159         correct size.
3160         (write): Loop until write completes.  From Corey Minyard.
3161
3162 2001-05-29  Laurent Guerby  <guerby@acm.org>
3163
3164         * java/awt/geom/Rectangle2D.java: fix doc typo.
3165
3166 2001-05-31  Tom Tromey  <tromey@redhat.com>
3167
3168         * java/sql/DriverManager.java (getDrivers): Handle case where
3169         driver's class loader is null.  From Corey Minyard.
3170
3171 2001-05-29  Tom Tromey  <tromey@redhat.com>
3172
3173         * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
3174
3175         * configure: Rebuilt.
3176         * configure.in: Only add multilib support code if we just rebuilt
3177         top-level Makefile.
3178
3179 2001-05-29  Andrew Haley  <aph@redhat.com>
3180
3181         * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
3182         pointer: the dwarf unwinder in libgcc will do everything that's
3183         needed.
3184         (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
3185         more than we absolutely need to.
3186         * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
3187         * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
3188         Alpha.
3189         (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
3190         "$libgcj_sjlj".
3191         * configure: Rebuilt.
3192         * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
3193         for Alpha.
3194         (SIGNAL_HANDLER): Use siginfo style handler.
3195         (INIT_SEGV): Likewise.
3196         (INIT_FPE): Likewise.
3197         * include/ppc-signal.h: Delete whole file.
3198
3199 2001-05-24  Tom Tromey  <tromey@redhat.com>
3200
3201         * java/lang/natString.cc (init): Throw
3202         ArrayIndexOutOfBoundsException.
3203         (getChars): Likewise.
3204         (getBytes): Likewise.
3205         (valueOf): Likewise.
3206
3207         * configure.in: Only allow hash synchronization when POSIX threads
3208         are enabled.
3209         * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
3210         of sync info object.
3211
3212 2001-05-23  Tom Tromey  <tromey@redhat.com>
3213
3214         * Makefile.in: Rebuilt.
3215         * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
3216
3217         Revert patch of 2001-05-21:
3218         * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
3219         (libgcj_la_LIBADD): Likewise.
3220         (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
3221         (libgcjx_la_LIBADD): Likewise.
3222
3223         * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
3224         * gcj/Makefile.in: Rebuilt.
3225         * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
3226         * gcj/javaprims.h: Include gcj/libgcj-config.h.
3227         * gcj/libgcj-config.h.in: New file.
3228         * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
3229         * configure: Rebuilt.
3230         * configure.in: Enable hash synchronization by default on some
3231         platforms.
3232         (HASH_SYNC_SPEC): New subst.
3233         (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
3234         Correctly use `test -z' instead of `test -n' in a couple places.
3235         (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
3236         LIBGCJ_CXXFLAGS.
3237         * configure.host (enable_java_net_default): Initialize.
3238         (enable_hash_synchronization_default): New variable.
3239
3240 2001-05-23  Hans Boehm <Hans_Boehm@hp.com>
3241
3242         * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
3243         synchronization in use.
3244         (_Jv_MarkArray): Likewise.
3245         (_Jv_AllocBytes): Don't check return result.
3246         (handle_out_of_memory): New function.
3247         (_Jv_InitGC): Set GC_oom_fn.
3248         (trace_one_vtable): New global.
3249         (_Jv_AllocTraceOne): New function.
3250         * configure.in: Added --enable-hash-synchronization.
3251         * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
3252         java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
3253         * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
3254         (_Jv_AllocArray): Likewise.
3255         (_Jv_AllocBytes): Likewise.
3256         (_Jv_AllocPtrFreeObject): New function.
3257         (_Jv_AllocTraceOne): Likewise.
3258         * posix-threads.cc (_Jv_ThreadRegister): Handle slow
3259         pthread_self().
3260         (self_cache): New global.
3261         (_Jv_ThreadSelf_out_of_line): New function.
3262         * prims.cc (_Jv_AllocBytesChecked): Removed.
3263         (_Jv_ThrowNoMemory): New function.
3264         (_Jv_AllocObject): Don't check for null return from allocator.
3265         (_Jv_NewObjectArray): Likewise.
3266         (_Jv_AllocPtrFreeObject): New function.
3267         (_Jv_NewPrimArray): Allocate pointer-free object if possible.
3268         * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
3269         (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
3270         * include/boehm-gc.h (_Jv_AllocObj): Define.
3271         (_Jv_AllocPtrFreeObj): Define.
3272         * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
3273         (_Jv_ThrowNoMemory): Declare.
3274         (_Jv_AllocTraceOne): Declare.
3275         (_Jv_AllocBytesChecked): Removed.
3276         * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
3277         _Jv_MutexUnlock): Handle LOCK_DEBUG.
3278         (_Jv_ThreadSelf): Handle case where system pthread_self() is
3279         slow.
3280         * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
3281         friend.
3282         * java/lang/Object.h (sync_info): Conditional upon presence of
3283         hash synchronization.
3284         * java/lang/natObject.cc: Much new code to handle thin locks and
3285         hash synchronization.
3286         * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
3287         object if possible.
3288
3289 2001-05-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3290
3291         * gij.cc (version): Update copyright year.
3292
3293 2001-05-22  Anthony Green  <green@redhat.com>
3294
3295         * configure.in: Tweak canadian cross test, and don't redefine GCJ
3296         for cross builds.
3297
3298 2001-05-21  Per Bothner  <per@bothner.com>
3299
3300         Implement invocation interface; don't create new thread for main.
3301         * java/lang/Thread.java (gen_name):  Make native.
3302         (<init>(Thread,THreadGroup,Runnable,String)):  New private
3303         constructor, used by other constructors, and _Jv_AttachCurrentThread.
3304         * java/lang/natThread.cc (gen_name):  New implementation.
3305         (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread):  New.
3306         * prims.cc (main_init):  Removed, replaced by _Jv_CreateJavaVM.
3307         (_Jv_CreateJavaVM):  New runtime initialization procedure.
3308         (runFirst):  New proecdure - mostly code from old FirstThread::run.
3309         (JvRunMain, _Jv_RunMain):  Re-write to use new invocation code.
3310         * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
3311         JvDetachCurrentThread):  New inline wrappers.
3312         * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
3313         _Jv_DetachCurrentThread):  New declarations.
3314         * gnu/gcj/runtime/FirstThread.java:  Gutted.  Now contains only ...
3315         (getMain): new static method.
3316         * gnu/gcj/runtime/natFirstThread.cc:  Removed;  run method replaced
3317         by runFirst in prims.cc.
3318         (java/lang/Thread.h):  Update for new invocation interface.
3319         * include/posix-threads.h (_Jv_ThreadRegister,
3320         _Jv_ThreadUnRegister):  New declarations.
3321         * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
3322         (really_start):  Use new _Jv_ThreadRegister.
3323         * include/no-threads.h (_Jv_ThreadInitData):  No longer inline.
3324         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New empty inlines.
3325         * no-threads.cc (_Jv_ThreadInitData):  Set _Jv_OnlyThread here.
3326         Complain of called when _Jv_OnlyThread already set.
3327         (_Jv_ThreadStart):  Always JvFail.
3328         * include/win32-threads.h  (_Jv_Thread_t):  New thread_obj field.
3329         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New declarations.
3330         * win32-threads.cc (struct starter):  Remove objet field -
3331         we use _Jv_Thread_t's new thread_obj field instead.
3332         (_Jv_ThreadInitData):  Set _Jv_Thread_t's thread_obj field.
3333         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
3334         (really_start):  Use new _Jv_ThreadRegister.
3335         * jni.cc (_Jv_JNI_AttachCurrentThread):  Use _Jv_AttachCurrentThread.
3336         (_Jv_JNI_DetachCurrentThread):  Use _Jv_DetachCurrentThread.
3337         * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
3338         Removed - no longer needed with new invocation interface.
3339         * Makefile.am:  Update for removed/added files.
3340
3341 2001-05-21  Per Bothner  <per@bothner.com>
3342
3343         * Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
3344         (libgcj_la_LIBADD):  Likewise.
3345         (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).
3346
3347 2001-05-21  Per Bothner  <per@bothner.com>
3348
3349         * gcj/javaprims.h (_Jv_FormatInt):  New declaration.
3350         * java/lang/natString.cc (_JvFormatInt):  New primitive, with logic
3351         taken from old Integer.toString code.
3352         (Integer::valueOf):  Use _Jv_FormatInt.
3353         * java/lang/Integer.java (toString):  Just use call String.valueOf.
3354         * java/lang/Long.java (toString):  Fix typo in comment.
3355         * java/lang/String.java (valueOf(int)):  Make native.
3356         * java/lang/StringBuffer.java (append(int)):  Make native.
3357         * java/lang/natStringBuffer.cc:  New file, for append(jint).
3358         * Makefile.am (nat_source_files):  Add java/lang/natStringBuffer.cc.
3359
3360 2001-05-21  Tom Tromey  <tromey@redhat.com>
3361
3362         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
3363
3364 2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>
3365
3366         * include/dwarf2-signal.h: New file.
3367         * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
3368         * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
3369         * configure: Rebuilt.
3370
3371 2001-05-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3372
3373         * configure.in: Update boehm-gc include dir for new GC version.
3374         * configure: Rebuilt.
3375         * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
3376         extern "C" wrapper.
3377         * boehm.cc: Update includes for new GC version. MAKE_PROC is now
3378         GC_MAKE_PROC. mark_proc is now GC_mark_proc.
3379         * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
3380         extern "C".
3381
3382 2001-05-18  Alexandre Petit-Bianco  <apbianco@redhat.com>
3383
3384         * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
3385         (_Jv_MutexInit): Likewise.
3386
3387 2001-05-18  Tom Tromey  <tromey@redhat.com>
3388
3389         * Makefile.in: Rebuilt.
3390         * Makefile.am (awt_java_source_files): Added Polygon.java.
3391
3392 2001-05-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3393
3394         * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
3395         * gcj/javaprims.h: ... here.
3396         * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
3397
3398 2001-05-17  Martin Kahlert  <martin.kahlert@infineon.com>
3399
3400         * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
3401         with length of ioffset table.
3402         (_Jv_IsAssignableFrom): Likewise.
3403
3404 2001-05-17  Per Bothner  <per@bothner.com>
3405
3406         * Makefile.am (ZIP):  The "fastjar" binary is now plain "jar".
3407
3408 2001-05-16  Tom Tromey  <tromey@redhat.com>
3409
3410         * java/text/SimpleDateFormat.java (parse): Handle non-dst time
3411         zones.
3412
3413 2001-05-15  Tom Tromey  <tromey@redhat.com>
3414
3415         * java/util/GregorianCalendar.java (computeTime): Only call
3416         getTimeZone() once.
3417
3418 2001-05-14  Tom Tromey  <tromey@redhat.com>
3419
3420         * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
3421         ZONE_OFFSET just before computing the time.
3422
3423 2001-05-12  Zack Weinberg  <zackw@stanford.edu>
3424
3425         * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
3426         * Makefile.in: Regenerate (by hand).
3427         * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
3428         * doc/cni.sgml: Document #pragma GCC java_exceptions.
3429
3430 2001-05-11  Richard Henderson  <rth@redhat.com>
3431
3432         * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
3433         * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
3434
3435 2001-05-11  Richard Henderson  <rth@redhat.com>
3436
3437         * exception.cc: Include unwind-pe.h.  Remove all pointer
3438         encoding logic.
3439
3440 2001-05-10  Tom Tromey  <tromey@redhat.com>
3441
3442         * Makefile.in: Rebuilt.
3443         * Makefile.am (awt_java_source_files): Added Polygon.java.
3444         * java/awt/Polygon.java: New file.
3445
3446         * java/awt/geom/AffineTransform.java
3447         (setToRotation(double,double,double)): New method.
3448         (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
3449         (setToShear): Likewise.
3450
3451 2001-05-10  Tom Tromey  <tromey@redhat.com>
3452
3453         * java/util/GregorianCalendar.java: Imported from Classpath.
3454         * gnu/java/locale/LocaleInformation_nl.java: New file from
3455         Classpath.
3456         * gnu/java/locale/LocaleInformation_en.java: Likewise.
3457         * gnu/java/locale/LocaleInformation_de.java: Likewise.
3458         * gnu/java/locale/LocaleInformation.java: Likewise.
3459         * natGregorianCalendar.cc: Removed.
3460         * Makefile.in: Rebuilt.
3461         * Makefile.am (nat_source_files): Removed
3462         natGregorianCalendar.cc.
3463
3464 2001-05-10  Tom Tromey  <tromey@redhat.com>
3465
3466         * java/text/SimpleDateFormat.java (computeCenturyStart): New
3467         method.
3468         (defaultCenturyStart): Use it.
3469         (readObject): Likewise.
3470         (SimpleDateFormat): Clear the calendar.  Set the grouping on the
3471         number format.
3472         (parse): Copy the calendar before modifying it.  Correctly handle
3473         the time zone.
3474
3475         * java/util/Calendar.java (clear): Set field value(s) to 0.
3476
3477 2001-05-10  Jeff Sturm  <jsturm@one-point.com>
3478
3479         * Calendar.java (get): Clear areFieldsSet if requested field
3480         is not set.
3481         (set): Unset fields that depend on new value.
3482
3483 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3484
3485         * java/lang/Class.h (_Jv_Self): New union type.
3486         (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
3487         Jeff Sturm and Fergus Henderson.
3488
3489 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3490
3491         * java/lang/ClassLoader.java: Remove dead code fragment.
3492
3493 2001-05-03  Martin Kahlert  <martin.kahlert@infineon.com>
3494
3495         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
3496         checking.
3497         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
3498
3499 2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>
3500
3501         * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
3502         * configure.host (EXCEPTIONSPEC): New.
3503         * configure.in (EXCEPTIONSPEC): New.
3504         * configure: Rebuilt.
3505
3506 2001-05-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3507
3508         * doc/*.texi: Remove generated documentation.
3509
3510 2001-04-30  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3511
3512         * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
3513         (performDelete): Fix #endif placement.
3514
3515 2001-04-27  Zack Weinberg  <zackw@stanford.edu>
3516
3517         * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
3518         * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
3519         (_Jv_ThreadDestroyData): Use _Jv_Free.
3520         * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
3521         Use _Jv_Malloc.
3522
3523 2001-04-27  Tom Tromey  <tromey@redhat.com>
3524
3525         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
3526         checking.
3527         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
3528
3529 2001-04-27  Martin Kahlert  <martin.kahlert@infineon.com>
3530
3531         * include/jni.h (struct JNINativeInterface): Fixed types in
3532         Get/Set*ArrayRegion declarations.
3533         (class _Jv_JNIEnv): Likewise.
3534
3535 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
3536
3537         * configure.in: Obtain THREADS with `gcc -v'.
3538         * configure: Rebuilt.
3539
3540 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3541
3542         Fix PR libgcj/2237:
3543         * java/io/ObjectStreamClass.java (setClass): Calculate
3544         serialVersionUID for local class and compare it against the UID
3545         from the Object Stream. Throw InvalidClassException upon mismatch.
3546         (setUID): Renamed to...
3547         (getClassUID): this. Return the calculated class UID rather than
3548         setting uid field directly.
3549         (getDefinedSUID): Removed.
3550         * java/io/ObjectInputStream.java (resolveClass): Use the
3551         three-argument Class.forName().
3552         * java/io/InvalidClassException (toString): Don't include classname in
3553         result if it is null.
3554
3555 2001-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3556
3557         * java/net/natInetAddress.cc (java::net::InetAddress::aton):
3558         Wrap use of inet_pton in HAVE_INET6.
3559
3560 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3561
3562         java.security merge and ClassLoader compliance fixes.
3563
3564         * java/lang/Class.h (Class): Include ProtectionDomain.h.
3565         New protectionDomain field.
3566         (forName): Add initialize parameter. Fixes declaration to comply with
3567         JDK spec.
3568         * java/lang/natClass.cc (forName): Correct declaration of the three-arg
3569         variant. Honour "initialize" flag.
3570         (getProtectionDomain0): New method.
3571         * java/lang/Class.java: Fix forName() declaration.
3572         (getPackage): New method based on Classpath implementation.
3573         (getProtectionDomain0): New native method decl.
3574         (getProtectionDomain): New method.
3575         * java/lang/ClassLoader.java (getParent): Now final.
3576         (definedPackages): New field.
3577         (getPackage): New.
3578         (defineClass): New variant with protectionDomain argument.
3579         (definePackage): New.
3580         (getPackages): New.
3581         (findSystemClass): Now final.
3582         (getSystemResourceAsStream): Remove redundant "final" modifier.
3583         (getSystemResource): Remove redundant "final" modifier.
3584         (getResources): Now final.
3585         (protectionDomainPermission): New static field.
3586         (unknownProtectionDomain): Ditto.
3587         (defaultProtectionDomain): Ditto.
3588         (getSystemClassLoader): Now non-native.
3589         * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
3590         arguments for Class.forName().
3591         * java/lang/Package.java: New file.
3592         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
3593         (instance): Static initialize singleton.
3594         (findClass): Override this, not findSystemClass.
3595         * java/lang/natClassLoader.cc (defineClass0): Set class's
3596         protectionDomain field as specified.
3597         (getSystemClassLoader): Removed.
3598         (findClass): Renamed from findSystemClass. Call the interpreter via
3599         URLClassLoader.findClass if loading class via dlopen fails.
3600
3601         * java/security/*.java: java.security import/merge with Classpath.
3602         * java/security/acl/*.java: Likewise.
3603         * java/security/interfaces/*.java: Likewise.
3604         * java/security/spec/*.java: Likewise.
3605         * java/net/NetPermission.java: Likewise.
3606         * java/net/SocketPermission.java: Likewise.
3607         * gnu/java/security/provider/DefaultPolicy.java: Likewise.
3608
3609         * Makefile.am: Add new classes.
3610         * Makefile.in: Rebuilt.
3611         * gcj/javaprims.h: CNI namespace rebuild.
3612
3613 2001-04-24  Alexandre Oliva  <aoliva@redhat.com>
3614
3615         * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
3616         for libtool tests.  Pre-create gnu/classpath/Configuration.java.
3617         * configure: Rebuilt.
3618
3619 2001-04-21  Tom Tromey  <tromey@redhat.com>
3620
3621         * Makefile.in: Rebuilt.
3622         * Makefile.am (awt_java_source_files): Added Line2D.java.
3623         * java/awt/geom/Line2D.java: Wrote.
3624
3625         * java/awt/Menu.java (addNotify): Wrote.
3626
3627         * java/awt/PopupMenu.java (addNotify): Implemented.
3628         (show): Likewise.
3629
3630         * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
3631         * java/awt/List.java (addNotify): Call super.addNotify.
3632         * java/awt/Label.java (addNotify): Call super.addNotify.
3633         * java/awt/FileDialog.java (addNotify): Call super.addNotify.
3634         * java/awt/Dialog.java (addNotify): Call super.addNotify.
3635         * java/awt/Choice.java (addNotify): Call super.addNotify.
3636         * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
3637         * java/awt/Checkbox.java (addNotify): Call super.addNotify.
3638
3639         * java/awt/List.java (replaceItem): Notify peer.
3640
3641         * java/awt/geom/Rectangle2D.java
3642         (Float.setRect(float,float,float,float)): New method.
3643
3644         * java/awt/event/ContainerEvent.java (getContainer): Now returns
3645         Container.
3646
3647         * java/awt/RenderingHints.java (Key): Class now public.
3648
3649         * java/awt/Rectangle.java (Rectangle): Now implements
3650         Serializable.
3651         (getPathIterator): Removed.
3652
3653         * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
3654         constructor.
3655
3656         * java/awt/FileDialog.java: Wrote.
3657
3658         * java/awt/EventQueue.java (isDispatchThread): Now public.
3659         (invokeLater): Likewise.
3660
3661         * java/awt/Component.java (setCursor): Update peer.
3662         (getFontMetrics): Use peer.
3663
3664         * java/awt/ComponentOrientation.java (ComponentOrientation): Class
3665         now final.
3666
3667 2001-04-20  Tom Tromey  <tromey@redhat.com>
3668
3669         * java/awt/List.java: Wrote.
3670         * java/awt/Dialog.java: Wrote.
3671
3672 2001-04-20  Warren Levy  <warrenl@redhat.com>
3673
3674         * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
3675         * java/text/SimpleDateFormat.java
3676         (indexInArray): Removed private method.
3677         (processYear): Removed private method.
3678         (parseLenient): Removed private method.
3679         (parseLeadingZeros): Removed private method.
3680         (parseStrict): Removed private method.
3681         (expect): Added new private method.
3682         (parse): Reverted to pre-Classpath merge version with minor fixes.
3683         * java/util/natGregorianCalendar.cc (computeTime): Handle strict
3684         calendars.
3685
3686 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
3687
3688         * java/io/File.java (normalizePath): New private method.
3689         (File (String)): Use normalizePath().
3690         (File (String, String)): Likewise.
3691
3692         * Makefile.am (libffi_files): Removed.
3693         (libgcj.la): Link libffi as a convenience library instead of
3694         refering to its object files directly.
3695         * Makefile.in: Rebuilt.
3696
3697 2001-04-08  Per Bothner  <per@bothner.com>
3698
3699         * java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
3700         Recalculate hash, since Utf8Const's hash is only 16 bits.
3701
3702         * java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
3703         bits of hash to calculate step for chaining.
3704
3705         * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
3706         when 2/3 full, rather than 3/4 full.
3707
3708 2001-04-06  Tom Tromey  <tromey@redhat.com>
3709
3710         * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
3711         (wrap_value<T*>): New specialization.
3712         (_Jv_JNI_PopLocalFrame): Update env->locals.
3713
3714 2001-04-05  Tom Tromey  <tromey@redhat.com>
3715
3716         * libtool-version: Updated current.
3717
3718 2001-04-04  Andreas Jaeger  <aj@suse.de>
3719
3720         * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
3721         * gcj/Makefile.in: Rebuilt.
3722         * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
3723         * Makefile.in: Rebuilt.
3724         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
3725         * testsuite/Makefile.in: Rebuild.
3726         * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
3727         * include/Makefile.in: Rebuild.
3728
3729 2001-04-02 Zack Weinberg <zackw@stanford.edu>
3730
3731         * testsuite/lib/libjava.exp: Correct typo: 'output from source
3732         compiled test', not 'execution from source compiled test'.
3733         Use UNTESTED, not XFAIL, for tests which are not run because
3734         they depend on a previous test which failed.
3735
3736 2001-04-02  Richard Henderson  <rth@redhat.com>
3737
3738         * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
3739         the same tree as gcc.
3740         * configure: Rebuilt.
3741
3742         * exception.cc (_Jv_Throw): Clarify commentary.
3743
3744 2001-04-02  Marcus G. Daniels  <mgd@swarm.org>
3745
3746         * jni.cc (wrap_value<jclass>): New specialization.
3747
3748 2001-04-02  Tom Tromey  <tromey@redhat.com>
3749
3750         * java/io/PrintStream.java (out): Removed field.  Fixes PR
3751         java/2449.
3752         (write): Call flush, not out.flush, per spec.
3753         (close): Flush output stream, per spec.  Handle
3754         InterruptedIOException.
3755         (checkError): Likewise.
3756         (flush, print, write): Handle InterruptedIOException per spec.
3757         (PrintStream): Don't create BufferedOutputStream.
3758         (work_bytes): New field.
3759         (writeChars): Use work_bytes.  Don't assume `out' is a
3760         BufferedOutputStream.
3761
3762 2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>
3763
3764         * java/text/MessageFormat.java (setLocale): Added missing `else'.
3765         For PR libgcj/2429.
3766
3767 2001-03-30  Tom Tromey  <tromey@redhat.com>
3768
3769         * jni.cc (add_char): Correctly encode non-ascii characters.
3770         (add_char): Define even when INTERPRETER not defined.
3771         (mangled_name): Likewise.
3772         (_Jv_GetJNIEnvNewFrame): Likewise.
3773         (_Jv_LookupJNIMethod): Likewise.
3774
3775 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
3776
3777         * configure.host: Enable interpreter for PPC.
3778
3779 2001-04-02  Bryce McKinlay  <bryce@albatross.co.nz>
3780
3781         * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
3782         to "file.separator", "path.separator", and "java.io.tmpdir" property
3783         initialization.
3784         * java/io/File.java: Likewise.
3785         * java/io/natFile.cc (init_native): Likewise.
3786         * java/io/natFileWin32.cc (init_native): Likewise.
3787
3788 2001-04-01  Per Bothner  <per@bothner.com>
3789
3790         * java/lang/natString.cc (intern):  If string's data does not point to
3791         this String, make a fresh String that does.
3792
3793         * java/lang/natString.cc (unintern):  Replace by static function.
3794         * java/lang/String.java (unintern):  Remove method.
3795
3796 2001-04-01  Per Bothner  <per@bothner.com>
3797
3798         * DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
3799         (finish):  def.deflate needs to be called in a loop.
3800         (inbuf, inbufLength):  New private fields.
3801         (write(int)): Use inbuf.
3802         (write(byte[],int,int):  Check if pending output in inbuf.
3803         * ZipOutputStream.java:  Don't use Deflater if stored.
3804         Use a Checksum object directly, not via a CheckedOutputStream.
3805         (uncompressed_size):  New field,
3806         (closeEntry):  Only write data_directory if needed.
3807         (write):  If STORED, write directly.
3808         Always update crc, and uncompressed_size.
3809         (write_entry):  Fix lots of protocol erors.
3810
3811 2001-04-01  Bryce McKinlay  <bryce@albatross.co.nz>
3812
3813         1.3-Compliant Implementation of java.io.File.
3814         * java/lang/natSystem.cc (init_properties): Get "file.separator",
3815         "path.separator", and "java.io.tmpdir" from the File class, instead
3816         of setting them explicitly.
3817         * java/io/File.java: Do not canonicalize paths for security manager
3818         checks. Call init_native() from static initializer. Do not pass path
3819         argument to native methods. New native method declarations. Some
3820         security manager checks moved to checkWrite().
3821         (equals): Check file system case sensitivity and act appropriatly.
3822         (hashCode): Likewise.
3823         (isHidden): New method implemented.
3824         (performList): Changed prototype. Now takes a class argument specifying
3825         the class of the returned array: Strings or File objects. Also added
3826         FileFilter argument.
3827         (listFiles): New variants with "File" return type implemented.
3828         (createTempFile): Use createNewFile(). Use maxPathLen.
3829         (setReadOnly): New method implemented.
3830         (listRoots): Likewise.
3831         (compareTo): Likewise.
3832         (setLastModified): Likewise.
3833         (checkWrite): New method.
3834         (setPath): Removed.
3835         * java/io/natFile.cc: Various functions no longer take canonical path
3836         argument.
3837         (stat): Handle ISHIDDEN query.
3838         (isAbsolute): Remove WIN32 cruft.
3839         (performList): New arguments. Handle returning either File[] or String[]
3840         arrays. Check with FileFilter or FilenameFilter arguments as
3841         appropriate. Use an ArrayList, not a Vector, for the temporary list.
3842         (performSetReadOnly): New method implemented.
3843         (performListRoots): Likewise.
3844         (performSetLastModified): Likewise.
3845         (performCreate): Likewise.
3846         (init_native): New initialization function.
3847         * java/io/natFileWin32.cc: Various functions no longer take canonical
3848         path argument.
3849         (stat): Add FIXME about ISHIDDEN query.
3850         (performList): New arguments. Handle returning either File[] or String[]
3851         arrays. Check with FileFilter or FilenameFilter arguments as
3852         appropriate. Use an ArrayList, not a Vector, for the temporary list.
3853         (performSetReadOnly): New. Stubbed.
3854         (performListRoots): Likewise.
3855         (performSetLastModified): Likewise.
3856         (performCreate): Likewise.
3857         (init_native) New initialization function.
3858         * configure.in: Check for utime() and chmod().
3859         * configure: Rebuilt.
3860         * include/config.h.in: Rebuilt.
3861
3862         Resolves PR libgcj/1759.
3863
3864 2001-03-28  Richard Henderson  <rth@redhat.com>
3865
3866         IA-64 ABI Exception Handling:
3867         * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
3868         (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
3869         Remove EXCEPTIONSPEC.
3870         * configure.host (libgcj_sjlj): Remove.
3871         * configure.in (EXCEPTIONSPEC): Remove.
3872         (enable-sjlj-exceptions): Detect if not specified.
3873         (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
3874         what header we're looking for.
3875         * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
3876         * Makefile.in, configure: Regenerate.
3877         * exception.cc: Don't declare libgcc2 stuff.
3878         (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
3879         (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
3880         (win32_get_restart_frame): Remove.
3881         (struct java_exception_header): New.
3882         (__gcj_exception_class): New.
3883         (get_exception_header_from_ue): New.
3884         (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
3885         (size_of_encoded_value, read_encoded_value): New.
3886         (read_uleb128, read_sleb128, parse_lsda_header): New.
3887         (get_ttype_entry, __gcj_personality_sj0): New.
3888         * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
3889
3890 2001-03-27  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
3891
3892         * javax/naming/InitialContext.java (init): Fix typo.
3893         (composeName): Remove unnecessary semicolon.
3894         (addToEnvironment): Remove unnecessary semicolon.
3895         (addToEnvironment): Use put() instead of add().
3896
3897         * javax/naming/InitialContext.java (InitialContext):
3898         Make public.
3899         (destroySubcontext): Method doesn't return a result.
3900         * javax/naming/Context.java: Import java.util.Hashtable.
3901         * javax/naming/Name.java: Import java.util.Enumeration.
3902
3903 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
3904
3905         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
3906         objects in subdirectories.
3907         * Makefile.in: Rebuilt.
3908
3909 2001-03-25  Richard Henderson  <rth@redhat.com>
3910
3911         * exception.cc (java_eh_info): Make value type jthrowable.
3912         (_Jv_type_matcher): Remove now unneeded cast.
3913         (_Jv_Throw): Make argument type jthrowable.  Munge name
3914         for SJLJ_EXCEPTIONS here ...
3915         * gcj/cni.h: ... not here.
3916         (JvThrow): Remove.
3917         * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
3918
3919         * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
3920         prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
3921         gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
3922         gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
3923         gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
3924         java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
3925         java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
3926         java/lang/natClass.cc, java/lang/natClassLoader.cc,
3927         java/lang/natDouble.cc, java/lang/natObject.cc,
3928         java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
3929         java/lang/natString.cc, java/lang/natSystem.cc,
3930         java/lang/natThread.cc, java/lang/reflect/natArray.cc,
3931         java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
3932         java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
3933         java/util/zip/natInflater.cc:
3934         Use throw, not JvThrow or _Jv_Throw.
3935
3936 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
3937
3938         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
3939         paramater, bump it to 1.
3940         * java/util/Hashtable.java (Hashtable): Likewise.
3941
3942 2001-03-23  Per Bothner  <per@bothner.com>
3943
3944         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
3945         check for errors, since we don't want to throw exception on
3946         overflow/underflow.  Instead, trim whitespace, and then check that
3947         _strtod_r uses up all the rest of the string.
3948
3949         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
3950         ancestors array is invalid for interfaces, so do that *after*
3951         check that the target type is not an interface.
3952
3953 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
3954
3955         * prims.cc (_Jv_FindClassFromSignature): Check return of
3956         recursive call.  Do not abort on invalid signature; return NULL
3957         instead.
3958
3959 2001-03-22  Tom Tromey  <tromey@redhat.com>
3960
3961         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
3962         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
3963         unconditionally.
3964         * include/jvm.h (_Jv_ResolveField): Declare.
3965         * include/java-interp.h (_Jv_ResolveField): Don't declare.
3966         * resolve.cc (_Jv_ResolveField): No longer conditional on
3967         INTERPRETER.
3968
3969 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
3970
3971         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
3972         for libtool hacking.
3973         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
3974         to a temporary file, then invoke libtool with the -objectlist
3975         paramater.
3976         (libgcjx.la): Likewise.
3977         * Makefile.in: Rebuilt.
3978
3979 2001-03-22  Joerg Brunsmann <joerg_brunsmann@yahoo.de>
3980
3981         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
3982
3983 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
3984
3985         * jni.cc (add_char): Handle `.' like `/'.
3986
3987 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
3988
3989         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
3990         initialize if exception_types is null.
3991         * java/lang/reflect/Constructor.java: Likewise.
3992         * java/lang/reflect/natConstructor.cc (getType): Initialize
3993         exception_types to an empty Object array.
3994
3995 2001-03-21  Tom Tromey  <tromey@redhat.com>
3996
3997         * configure: Rebuilt.
3998         * configure.in (GCJFLAGS): Subst.
3999         * Makefile.in: Rebuilt.
4000         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
4001         (gij_LDFLAGS): Likewise.
4002         (JC1FLAGS): Added GCJFLAGS and removed -g.
4003
4004         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
4005         read/write case.  Fixes PR libgcj/2338.
4006
4007 2001-03-20  Warren Levy  <warrenl@redhat.com>
4008
4009         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
4010         and corrected SimpleTimeZone's for the timezones hash table.
4011
4012 2001-03-19  Per Bothner  <per@bothner.com>
4013
4014         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
4015         "canonicalize" "../../xxx" to "/xxx".
4016
4017 2001-03-19  Mark Wielaard <mark@klomp.org>
4018
4019         * java/util/ArrayList.java: Remove RCS keywords from comments
4020         * java/util/BasicMapEntry.java: idem
4021         * java/util/Dictionary.java: idem
4022         * java/util/HashSet.java: idem
4023
4024         * java/util/EventObject.java: reindent
4025         * java/util/Properties.java: idem
4026         * java/util/SortedMap.java: idem
4027
4028         * java/util/Enumeration.java: Merge with Classpath
4029         * java/util/EventListener.java: idem
4030         * java/util/Observable.java: idem
4031         * java/util/Observer.java: idem
4032         * java/util/Stack.java: idem
4033
4034 2001-03-17  Tom Tromey  <tromey@redhat.com>
4035
4036         * java/lang/natString.cc (rehash): Don't bother with memset;
4037         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
4038         Use UNMASK_PTR.
4039         (UNMASK_PTR): New macro.
4040         (intern): Unmask pointer before returning it.  Register finalizer
4041         for the string.
4042         (unintern): Handle case where
4043         (MASK_PTR): New macro.
4044         (PTR_MAKSED): Likewise.
4045         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
4046
4047 2001-03-01  Andrew Haley  <aph@redhat.com>
4048
4049         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
4050         stackTrace buffer to a correctly aligned pointer array.
4051
4052 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
4053
4054         * java/lang/Runtime.java (_exit): Declare new package-private native.
4055         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
4056         without a security manager check.
4057         (exit): Call _exit after security check.
4058         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
4059         "naturally".
4060         * java/lang/System.java (setSecurityManager): If a security manager
4061         is already in place, call checkPermission.
4062         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
4063         throws an exception, try to deal with it gracefully.
4064         * java/lang/ExceptionInInitializerError.java (printStackTrace):
4065         Only try to print the subordinate stack trace if "exception" is set.
4066         Print our class name first.
4067
4068 2001-03-08  Tom Tromey  <tromey@redhat.com>
4069
4070         * java/io/ObjectStreamClass.java (setUID): Don't write interface
4071         info for array classes.
4072         Fixes PR libgcj/1971.
4073
4074 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
4075
4076         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
4077         Iterator.hasNext().
4078
4079 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
4080
4081         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
4082         instead of the new JDK1.2 API.  This is simpler and makes
4083         back-porting the classes to JDK1.1 trivial.
4084         (readObject): likewise.
4085
4086 2001-03-01  Per Bothner  <per@bothner.com>
4087
4088         Changes merged from Kawa's gnu.math.
4089         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
4090         (rshift(int[],int[],int,int):  Removed - not needed.
4091         (gcd):  Use rshift0 rather than rshift.
4092         * java/math/BigInteger.java (setShiftRight):  Likewise.
4093         (divide):  Simplify by using rshift0.
4094         (divide):  Zero-extend results if high-order bit set.
4095
4096 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
4097
4098         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
4099         linking.
4100
4101 2001-02-23  Per Bothner  <per@bothner.com>
4102
4103         Change to sometimes include class name in ClassFormatError message.
4104         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
4105         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
4106         boolean instead of throwing ClassFormatError on failure.
4107         (throw_class_format_error):  Change static function to method.
4108         (_Jv_ClassReader):  New inline methods verify_identifier,
4109         two overloads of verify_classname, verify_field_signature, and
4110         verify_method_signature
4111         * include/java-interp.h:  Update declarations to return bool.
4112         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
4113         ClassFormatError since _Jv_VerifyClassName now returns bool.
4114
4115 2001-02-23  Per Bothner  <per@bothner.com>
4116
4117         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
4118         c++filt to select java-style output.
4119
4120 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
4121
4122         Fix for PR java/2040:
4123         * java/util/HashMap.java (HashMap): Don't throw exception for
4124         loadFactor > 1. Add exception messages.
4125         * java/util/Hashtable.java (Hashtable): Likewise.
4126
4127 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
4128
4129         Disable libgcjx by default.
4130         * configure.in: Add support for --enable-java-awt configure option.
4131         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
4132         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
4133         * Makefile.in: Rebuilt.
4134         * configure: Rebuilt.
4135
4136 2001-02-20  Tom Tromey  <tromey@redhat.com>
4137
4138         * java/io/PipedWriter.java (flush): Throw exception if stream
4139         closed.
4140         * java/io/OutputStreamWriter.java (write): Throw exception if
4141         stream closed.
4142         (writeChars): Don't throw exception if stream closed.
4143         * java/io/CharArrayWriter.java (closed): New field.
4144         (close): Set it.
4145         (flush): Throw exception if stream closed.
4146         (reset): Synchronize on correct lock.  Allow stream to be
4147         reopened.
4148         (toCharArray, toString, writeTo): Synchronize.
4149         (write): Throwe exception if stream closed.
4150         * java/io/BufferedWriter.java (close): Clear `buffer'.
4151         (flush): Throw IOException if stream is closed.
4152         (write): Likewise.
4153
4154 2001-02-16  Tom Tromey  <tromey@cygnus.com>
4155
4156         * java/lang/ThreadGroup.java (activeCount): Only include threads
4157         which are alive.
4158         (enumerate): Likewise.
4159
4160 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
4161
4162         * java/lang/Integer.java (getInteger): Return default argument if
4163         property is not set. Don't call decode with null argument.
4164         * java/lang/Long.java (getLong): Likewise.
4165
4166         * java/io/CharArrayReader.java (CharArrayReader): Throw
4167         IllegalArgumentException if constructor arguments are illegal.
4168         (ready): Return false if no more characters can be read.
4169         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
4170
4171 2001-02-17  Mark Wielaard <mark@klomp.org>
4172
4173         * java/util/TimerTask.java: New version from Classpath.
4174
4175 2001-02-17  Mark Wielaard <mark@klomp.org>
4176
4177         Remerge with Classpath
4178         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
4179         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
4180         (readByte): Use convertToByte().
4181         (readChar): Use convertToChar().
4182         (readInt): Use convertToInt().
4183         (readLong): Use convertToLong().
4184         (readShort): Use convertToShort().
4185         (readUnsignedByte): Use convertToUnsignedByte().
4186         (readUnsignedShort): Use convertToUnsignedShort().
4187         (readUTF): Use convertToUTF().
4188
4189         (convertToBoolean): Resurrected.
4190         (convertToByte): Ditto.
4191         (convertToChar): Ditto.
4192         (convertToInt): Ditto.
4193         (convertToLong): Ditto.
4194         (convertToShort): Ditto.
4195         (convertToUnsignedByte): Ditto.
4196         (convertToUnsignedShort): Ditto.
4197         (convertToUTF): Ditto.
4198
4199 2001-02-17  Mark Wielaard <mark@klomp.org>
4200
4201         * HACKING: new file
4202
4203 2001-02-17  Mark Wielaard <mark@klomp.org>
4204
4205         * java/io/DataInputStream.java: update copyright notice
4206         * java/io/PrintWriter.java: idem
4207         * java/io/Reader.java: idem
4208         * java/io/StreamTokenizer.java: idem
4209         * java/io/StringReader.java: idem
4210         * java/lang/reflect/ReflectPermission.java: idem
4211
4212 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
4213
4214         * java/util/TreeSet.java (clone): Made subclass safe, use
4215         super.clone(), not new.
4216         * java/util/TreeMap.java (clone): Likewise.
4217
4218         * java/util/TreeMap.java (nil): Made non-final.
4219         (clone): Create new nil node for copy.
4220
4221         * java/util/HashSet.java (clone): Made subclass safe, use
4222         super.clone(), not new.
4223
4224 2001-02-14  Andrew Haley  <aph@redhat.com>
4225
4226         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
4227         set the handler.
4228
4229 2001-02-15  Anthony Green  <green@redhat.com>
4230
4231         * defineclass.cc: Don't include alloca.h.
4232         (prepare_pool_entry): Convert alloca to __builtin_alloca.
4233         * interpret.cc (run_normal): Ditto.
4234         (continue1): Ditto.
4235         * java/lang/natDouble.cc (parseDouble): Ditto.
4236
4237 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
4238
4239         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
4240         Object.clone().
4241         * java/util/Collections.java (ReverseComparator): New static class.
4242         (reverseOrder): Return static instance of ReverseComparator.
4243
4244         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
4245         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
4246         Rectangle.clone(), not Object.clone().
4247
4248         * java/util/HashSet.java (clone): Remove try/catch.
4249
4250         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
4251         * java/util/Collection.java: Likewise.
4252         * java/util/Comparator.java: Likewise.
4253         * java/util/Dictionary.java: Likewise.
4254         * java/util/Iterator.java: Likewise.
4255         * java/util/ListIterator.java: Likewise.
4256         * java/util/Map.java: Likewise.
4257         * java/util/Set.java: Likewise.
4258
4259 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
4260
4261         * java/util/TreeMap.java: New file.
4262         * java/util/TreeSet.java: New file.
4263         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
4264         * Makefile.in: Rebuilt.
4265         * java/util/HashSet.java (clone): Use constructor instead of calling
4266         clone on itself.
4267         * java/util/SortedSet.java: Sync with classpath.
4268         * java/util/HashMap.java (hash): Use if statement instead of ternary,
4269         for clarity.
4270
4271         * java/lang/natClass.cc (getSignature): Don't try to dereference
4272         param_types if it is null. Instead, take this to mean "no parameters".
4273         * java/lang/TreeMap.java (TreeIterator.next): Throw
4274         NoSuchElementException in preference to ConcurrentModificationException.
4275         (TreeIterator.remove): Throw IllegalStateException in preference to
4276         ConcurrentModificationException.
4277         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
4278         throw a NoSuchElementException.
4279         (SubMap.lastKey): Likewise.
4280
4281 2001-02-13  Tom Tromey  <tromey@redhat.com>
4282
4283         * java/io/PipedReader.java (ready): Throw IOException if pipe
4284         closed.
4285         * java/io/FilterReader.java (close): Don't clear `in'.
4286         * java/io/CharArrayReader.java (mark): Throw IOException if stream
4287         closed.
4288         (read, ready, reset, skip): Added exception message.
4289         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
4290         Perform checkStatus check inside synchronized block.
4291
4292 2001-02-13  Tom Tromey  <tromey@redhat.com>
4293
4294         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
4295
4296 2001-02-13  Tom Tromey  <tromey@redhat.com>
4297
4298         Fix for PR libgcj/1351:
4299         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
4300         interrupted.
4301         Include Thread.h and InterruptedIOException.h.
4302
4303 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
4304
4305         * java/io/BlockDataException.java: Removed.
4306         * java/io/ObjectInputStream.java (readObject): Throw
4307         StreamCorruptedException, not BlockDataException.
4308         * Makefile.am: Remove BlockDataException.
4309         * Makefile.in: Rebuild.
4310
4311 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
4312             Tom Tromey  <tromey@redhat.com>
4313
4314         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
4315         null pointer check.
4316
4317 2001-02-09  Tom Tromey  <tromey@redhat.com>
4318
4319         * java/util/Timer.java: New version from Classpath.
4320
4321 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
4322
4323         * java/lang/Double.java (doubleToRawLongBits): Now native.
4324         * java/lang/Float.java (floatToRawIntBits): Likewise.
4325         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
4326         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
4327
4328 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
4329
4330         * java/io/File.java (java.net): Imported.
4331         (getAbsoluteFile): Added.
4332         (getCanonicalPath): Likewise.
4333         (toURL): Likewise.
4334
4335 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
4336
4337         * java/lang/Byte.java: Remove redundant instanceof and null checks.
4338         * java/lang/Integer.java: Likewise.
4339         * java/lang/Long.java: Likewise.
4340         * java/lang/Short.java: Likewise.
4341         * java/lang/Double.java: Likewise.
4342         (doubleToRawLongBits): New method.
4343         * java/lang/Float.java: As above.
4344         (floatToRawIntBits): New method.
4345
4346         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
4347         IOException if stream closed.
4348
4349 2001-02-08  Tom Tromey  <tromey@redhat.com>
4350
4351         * java/lang/Float.java (parseFloat): New method.
4352
4353 2001-02-08  Tom Tromey  <tromey@redhat.com>
4354
4355         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
4356         * java/io/InputStreamReader.java (ready, read): Throw IOException
4357         if stream has been closed.
4358
4359 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4360
4361         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
4362         Change sources.redhat.com and sourceware.cygnus.com references to
4363         gcc.gnu.org.
4364
4365 2001-02-07  Tom Tromey  <tromey@redhat.com>
4366
4367         Fix for PR libgcj/1906:
4368         * java/text/MessageFormat.java (setLocale): Use named class
4369         literals.
4370         (forName): Removed.
4371         (format(Object,StringBuffer,FieldPosition)): Special case if
4372         argument is an Object[].
4373
4374 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
4375
4376         * java/util/Arrays.java: Removed "cmp" methods.
4377         (qsort): Don't use "cmp".
4378         (med3): Likewise.
4379
4380 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
4381
4382         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
4383         sort. Fix for PR java/1895.
4384
4385 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
4386
4387         * configure.host: Use sjlj-exceptions for Alpha.
4388
4389 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
4390
4391         * libgcj.spec.in: Don't force static libgcc into the executable.
4392         * configure.in (FORCELIBGCCSPEC): Removed.
4393         * configure: Rebuilt.
4394
4395 2001-01-31  Tom Tromey  <tromey@redhat.com>
4396
4397         * Makefile.in: Rebuilt.
4398         * Makefile.am (LTCXXCOMPILE): New macro.
4399
4400 2001-01-26  Andrew Haley  <aph@redhat.com>
4401
4402         (INIT_FPE): Use a direct system call to set the handler.
4403
4404 2001-01-27  Richard Henderson  <rth@redhat.com>
4405
4406         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
4407
4408 2001-01-27  Tom Tromey  <tromey@redhat.com>
4409
4410         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
4411         native interface structure.
4412
4413 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
4414
4415         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
4416         result unsigned.
4417         (read (byte[], int, int)): Only call readNextBlock() if the block
4418         buffer would actually be overrun. Increment blockDataPosition.
4419         (callReadMethod): Propagate exceptions from invocation target.
4420         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
4421         exceptions from invocation target.
4422
4423 2001-01-26  Tom Tromey  <tromey@redhat.com>
4424
4425         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
4426         to internal representation.
4427         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
4428         _Jv_FindClassFromSignature.
4429
4430 2001-01-26  Warren Levy  <warrenl@redhat.com>
4431
4432         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
4433         and timezone if they are available on the system.
4434
4435 2001-01-24  Tom Tromey  <tromey@redhat.com>
4436
4437         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
4438
4439 2001-01-24  Tom Tromey  <tromey@redhat.com>
4440
4441         * Makefile.in: Rebuilt.
4442         * Makefile.am (c_source_files): Added sf_fabs.c.
4443         * java/lang/sf_fabs.c: New file.
4444
4445 2001-01-19  Warren Levy  <warrenl@redhat.com>
4446
4447         * java/text/SimpleDateFormat.java (format): Compute hour for cases
4448         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
4449         correctly.  Adjust properly from 0-23 clock hour.
4450
4451 2001-01-17  Mark Wielaard  <mark@klomp.org>
4452
4453         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
4454
4455 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
4456
4457         * java/lang/Class.h (isInterface): Move implementation from
4458         natClass.cc. Declare inline.
4459         (Class): Add default constructor.
4460         * java/lang/Object.h: Update comments.
4461         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
4462         initialize superclass, saving a call if super is already initialized.
4463
4464 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4465
4466         * prims.cc (init_prim_class): Deleted.
4467         (DECLARE_PRIM_TYPE): Rewritten.
4468         * java/lang/Class.h (stdio.h): Include removed.
4469         (stddef.h): Included.
4470         (java/lang/reflect/Modifier.h): Likewise.
4471         (Class): Contructor now takes arguments, initializes fields.
4472         (initializePrim): Prototype deleted.
4473         * java/lang/natClass.cc (initializePrim): Deleted.
4474
4475 2001-01-16  Warren Levy  <warrenl@redhat.com>
4476
4477         * java/math/BigInteger.java: Update Copyright year.
4478
4479 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
4480
4481         * java/math/BigInteger.java (setShiftRight): Only do negative shift
4482         if count != 0.
4483
4484 2001-01-14  Mark Wielaard  <mark@klomp.org>
4485         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
4486         (decode): Merge comments with Classpath, don't throw Exception
4487
4488 2001-01-12  Tom Tromey  <tromey@redhat.com>
4489
4490         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
4491         Wrote.
4492         (setCursor): Wrote.
4493         Include Cursor.h.
4494         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
4495         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
4496         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
4497         * gnu/awt/gtk/GtkLabelPeer.java: New file.
4498         * gnu/awt/gtk/GtkButtonPeer.java: New file.
4499
4500         * java/lang/natSystem.cc: Include locale.h if it exists.
4501         * configure: Rebuilt.
4502         * configure.in: Check for locale.h.
4503
4504 2001-01-11  Tom Tromey  <tromey@redhat.com>
4505
4506         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
4507         (Cursor(int), getPredefinedCursor): Throw exception if argument
4508         invalid.
4509
4510 2001-01-03  Tom Tromey  <tromey@redhat.com>
4511
4512         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
4513         (getLocationOnScreen): Wrote.
4514
4515 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
4516
4517         * Makefile.am: Re-enable dependencies.
4518         * Makefile.in: Rebuilt.
4519
4520 2001-01-10  Warren Levy  <warrenl@redhat.com>
4521
4522         * java/math/BigDecimal.java (divide): Fixed comment.
4523
4524 2001-01-10  Warren Levy  <warrenl@redhat.com>
4525
4526         Fix for PR libgcj/1596:
4527         * java/math/BigDecimal.java (divide): Check newScale for validity.
4528         Ensure that BigInteger.pow() is called with a non-negative value.
4529         (setScale (int)): New public method.
4530         (setScale (int,int)): New public method.
4531
4532 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
4533
4534         Fix for PR libgcj/1338:
4535         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
4536         commentChar.  Fixed typos in comments.
4537
4538 2001-01-08  Warren Levy  <warrenl@redhat.com>
4539
4540         Fix for PR libgcj/1411:
4541         * Makefile.am: Removed java/util/natTimeZone.cc.
4542         * Makefile.in: Rebuilt.
4543         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
4544         missing localized timezone names.
4545         * java/lang/System.java (getDefaultTimeZoneId): New private method.
4546         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
4547         (init_properties): Set user.timezone property.
4548         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4549         default timezone names; removed non-standard ones.  Use standard
4550         ID names per JCL.
4551         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
4552         (UTC): Ditto.
4553         * java/util/TimeZone.java: Add standard ID names per JCL; removed
4554         non-standard ones.
4555         (getDefaultTimeZoneId): Removed.
4556         (zoneGMT): Removed.
4557         * java/util/natTimeZone.cc: Removed.
4558
4559 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
4560
4561         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
4562         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
4563         (_Jv_GetArrayClass): New inline function.
4564         (arrayclass): New field.
4565         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
4566         _Jv_GetArrayElementFromElementType.
4567         (_Jv_NewPrimArray): Ditto.
4568         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
4569         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
4570         Set Modifier::ABSTRACT.
4571         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
4572         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
4573         Now synchronized. Array classes are now referenced from
4574         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
4575         Set array classes' accessibility flags correctly. Optimize so that
4576         all array classes share the same IDT.
4577         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
4578         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
4579         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
4580         in superclasses from overwriting classes own fields.
4581         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
4582         Modifier::isAbstract().
4583         (null_idt): New static field.
4584         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
4585         no interfaces.
4586         (_Jv_IndexOf): Made inline.
4587         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
4588
4589 2001-01-08  Tom Tromey  <tromey@redhat.com>
4590
4591         Fix for PR java/1586:
4592         * Makefile.in: Rebuilt.
4593         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
4594
4595 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
4596
4597         * Makefile.am: Use the new "-M -MF" option for generating dependencies
4598         from the c++ compiler.
4599         * Makefile.in: Rebuilt.
4600
4601 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4602
4603         All files with updated copyright.
4604         * prims.cc (class _Jv_PrimClass): Removed.
4605         (init_prim_class): New function.
4606         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
4607         `_Jv_PrimClass' in primitive type declarations. Assign to the
4608         value returned by `init_prim_class.'
4609         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
4610         primitive type declarations.
4611         (JvPrimClass): Cast to `jclass' removed.
4612         * java/lang/Class.h (Class): New constructor.
4613         (Class): New copy constructor.
4614         (initializePrim): New prototype.
4615         (_Jv_PrimClass): Field removed.
4616         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
4617         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
4618         (class java::lang::Object): `finalize' moved up front.
4619         * java/lang/natClass.cc
4620         (isAssignableFrom): Turned outline.
4621         (isInstance): Likewise.
4622         (isInterface): Likewise, fixed indentation.
4623         (initializePrim): New function.
4624
4625 2001-01-07  Anthony Green  <green@redhat.com>
4626
4627         * Makefile.am (texinfo): Add texinfo target for generating texinfo
4628         documentation.
4629         * Makefile.in: Rebuilt.
4630
4631         * scripts/TexinfoDoclet.java: New file.
4632
4633         * doc/java-applet.texi, doc/java-lang-reflect.texi,
4634         doc/java-awt-color.texi, doc/java-lang.texi,
4635         doc/java-awt-datatransfer.texi, doc/java-math.texi,
4636         doc/java-awt-event.texi, doc/java-net.texi,
4637         doc/java-awt-geom.texi, doc/java-security-spec.texi,
4638         doc/java-awt-image.texi, doc/java-security.texi,
4639         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
4640         doc/java-text.texi, doc/java-beans-beancontext.texi,
4641         doc/java-util-jar.texi, doc/java-beans.texi,
4642         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
4643         doc/java-lang-ref.texi: New files.
4644
4645 2001-01-07  Anthony Green  <green@redhat.com>
4646
4647         * java/net/URLConnection.java (setDoOutput): URLConnection's may
4648         be used for both input and output, so don't clear doInput.
4649
4650         * java/lang/StringBuffer.java: Fix comments.
4651
4652 2001-01-06  Anthony Green  <green@redhat.com>
4653
4654         * java/beans/PropertyDescriptor.java: Fix comment.
4655         * java/io/PushbackReader.java: Fix comment.
4656         * java/io/ObjectStreamClass.java: Fix comment.
4657         * java/io/DataInputStream.java: Fix comment.
4658         * java/io/PipedInputStream.java: Fix comments.
4659         * java/io/PipedReader.java: Fix comments.
4660         * java/sql/DatabaseMetaData.java: Fix comments.
4661
4662 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
4663
4664         * java/io/PipedReader: Synchronize on "lock" instead of this.
4665
4666 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
4667
4668         * java/lang/Thread.java: Update comment.
4669
4670         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
4671         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
4672         * java/io/PipedReader: New implementation based on new
4673         PipedInputStream.
4674         * java/io/PipedWriter: Updated to match new PipedReader.
4675
4676 2001-01-03  Tom Tromey  <tromey@redhat.com>
4677
4678         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
4679         (getViewportSize): Insets include scrollbar size.
4680         (doLayout): Finished.
4681         (getScrollPosition): Wrote.
4682         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
4683
4684 2001-01-02  Tom Tromey  <tromey@redhat.com>
4685
4686         * java/awt/ScrollPane.java: Wrote.
4687         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
4688         method.
4689
4690         * java/awt/Panel.java (Panel()): Fixed.
4691
4692         * java/awt/Component.java (isShowing): Return false if no peer
4693         exists, and true if component is visible and no parent exists.
4694         (getLocationOnScreen): Wrote.
4695         (getPreferredSize): Removed FIXME comment.
4696         (getMinimumSize): Likewise.
4697         (getAlignmentX, getAlignmentY): Wrote.
4698         (list): Wrote.
4699         (requestFocus): Wrote.
4700         (transferFocus): Wrote.
4701         (findNextFocusComponent): New method.
4702         (hasFocus()): Wrote.
4703         (checkImage): Wrote.
4704         (enableEvents): Call setEventMask on the peer.
4705
4706         * java/awt/Container.java (list): Use super.list() to print self.
4707         (findNextFocusComponent): New method.
4708         (setLayout): Call invalidate.
4709         (findComponentAt): Wrote.
4710
4711 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
4712
4713         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
4714         the correct versions of various linuxthreads functions get linked.
4715         * Makefile.in: Rebuilt.
4716         * java/lang/natThread.cc (finalize_native): New static function. Call
4717         _Jv_ThreadDestroyData.
4718         (initialize_native): Register finalizer for "data".
4719         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
4720         (_Jv_ThreadDestroyData): New prototype.
4721         * include/win32-threads.h: Ditto.
4722         * include/no-threads.h: Ditto.
4723         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
4724         (_Jv_ThreadDestroyData): New function. Free native thread "data" and
4725         move mutex and condition variable destroy code from:
4726         (really_start): ...here.
4727         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
4728         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
4729         (_Jv_ThreadDestroyData): Implemented.
4730         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
4731         (_Jv_AllocArray): Ditto.
4732
4733 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
4734
4735         * java/sql/DriverManager.java (getConnection): Don't set user/password
4736         properties if null.
4737
4738 2000-12-27  Warren Levy  <warrenl@redhat.com>
4739
4740         Fix for PR libgcj/1358:
4741         * java/lang/System.java: Update Copyright date properly.
4742         * java/util/Calendar.java: Fix typo in comment.
4743         (set): Set 24-hour clock hour instead of 12-hour clock hour.
4744         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
4745         initialize times.  Spec says to set H:M:S values to zero only if
4746         a date is given.
4747         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
4748         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
4749         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
4750         timezones and GMT offsets, being careful to account for units of
4751         milliseconds vs. seconds.
4752
4753 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
4754
4755         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
4756         not be assigned to Object.
4757
4758         Fix for PR libgcj/1516:
4759         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
4760         Add boolean entry.
4761         (can_widen): Declared inline. Remove redundant checks for void
4762         arguments and char->short conversion. Add special case for boolean
4763         conversions.
4764         (ffi_type): Declared inline.
4765         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
4766
4767 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
4768
4769         * java/sql/SQLWarning.java: Fixed typo in comment.
4770
4771 2000-12-26  Tom Tromey  <tromey@redhat.com>
4772
4773         * java/awt/MenuItem.java (paramString): Now protected.
4774
4775         * java/awt/MenuShortcut.java: Implements Serializable.
4776
4777         * java/awt/MenuBar.java: Rewrote from scratch.
4778
4779         * java/awt/MenuComponent.java (removeNotify): Wrote.
4780         Implements Serializable.
4781
4782         * java/awt/GridBagConstraints.java (GridBagConstraints): New
4783         constructor.
4784
4785         * java/awt/CheckboxMenuItem.java: Wrote.
4786
4787 2000-12-25  Tom Tromey  <tromey@redhat.com>
4788
4789         * java/awt/MenuContainer.java: Fixed typo.
4790
4791         * Makefile.in: Rebuilt.
4792         * Makefile.am (awt_java_source_files): Added SystemColor.java.
4793         * java/awt/SystemColor.java: New file.
4794
4795         * java/awt/Color.java (rgba): Now package-private.
4796
4797         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
4798
4799         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
4800         getComponent.
4801
4802         * java/awt/MenuItem.java (addNotify): New method.
4803         (MenuItem(String,MenuShortcut)): New constructor.
4804         (setLabel): Notify peer of change.
4805         (setEnabled): Likewise.
4806
4807         * java/awt/GridLayout.java (toString): New method.
4808
4809         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
4810         (FlowLayout): Check for LEADING and TRAILING.
4811         (setAlignment): Likewise.
4812         (layoutContainer): Handle component orientation.
4813
4814         * java/awt/Component.java (orientatin): New field.
4815         (setComponentOrientation): Wrote.
4816         (getComponentOrientation): Wrote.
4817
4818         * java/awt/Event.java (Event): Implements Serializable.
4819         (consumed): New field for serialization.
4820         * java/awt/Dimension.java (Dimension): Implements Serializable.
4821         * java/awt/Cursor.java (Cursor): Implements Serializable.
4822         * java/awt/Container.java (Container): No longer abstract.
4823
4824         * java/awt/Choice.java: Wrote.
4825         * java/awt/Checkbox.java: Wrote.
4826         * java/awt/ItemSelectable.java: Documented.
4827         * java/awt/CheckboxGroup.java: Wrote.
4828
4829         * java/awt/CardLayout.java (layoutContainer): Directly use fields
4830         in other classes.
4831         (getSize): Likewise.
4832
4833 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
4834
4835         * java/io/FileDescriptor.java: Initialize fd to -1.
4836         Remove default constructor.
4837
4838 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4839
4840         * java/lang/mprec.h: Change C9X reference to refer to C99.
4841
4842 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
4843
4844         * java/lang/Throwable.java (trace_enabled): New static field.
4845         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
4846         trace_enabled not set.
4847         * prims.cc (main_init): Turn off trace_enabled while creating
4848         default exception objects.
4849
4850 2000-12-21  Tom Tromey  <tromey@redhat.com>
4851
4852         * java/beans/PropertyChangeListener.java: Extends EventListener.
4853         * java/beans/VetoableChangeListener.java: Extends EventListener.
4854
4855         * java/util/zip/Deflater.java (update, init): Now private.
4856
4857 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
4858
4859         * java/util/BasicMapEntry.java: Re-added.
4860         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
4861         (putAll): Test for BasicMapEntry.
4862         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
4863         (putAll): Test for BasicMapEntry.
4864         Change references from `HashMap.Entry' to `Entry' in various places.
4865         * Makefile.am: Add BasicMapEntry.java.
4866         * Makefile.in: Rebuilt.
4867
4868 2000-12-18  Warren Levy  <warrenl@redhat.com>
4869
4870         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
4871         need to set timezone to a valid non-null value.  Partial fix for
4872         PR 331.
4873
4874 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
4875
4876         * java/awt/Window.java (addNotify): Remove peer casting hack now that
4877         gcj/312 is fixed.
4878         * java/awt/Button.java (addNotify): Likewise.
4879         * java/awt/Label.java (addNotify): Likewise.
4880         * java/awt/Panel.java (addNotify): Likewise.
4881         * java/awt/Scrollbar.java (addNotify): Likewise.
4882         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
4883         Remove redundant null checks.
4884
4885 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4886
4887         * COPYING: Update to current
4888         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
4889         to 19yy as example year in copyright notice).
4890
4891 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
4892
4893         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
4894         end-of-stream if avail_in is 0.
4895
4896 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
4897
4898         * java/util/ArrayList.java (data): Declare transient.
4899         (serialPersistantFields): Removed.
4900         (readObject): Use defaultReadObject(), not readFields().
4901         (writeObject): Use defaultWriteObject(), not writeFields().
4902
4903 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
4904
4905         * java/util/Hashtable.java (put): Remove `last' variable.
4906         Link new entry to head of list.
4907         * java/util/HashMap.java (put): Ditto.
4908
4909 2000-12-15  Tom Tromey  <tromey@redhat.com>
4910
4911         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
4912         loader to Class.forName.
4913
4914 2000-12-14  Tom Tromey  <tromey@redhat.com>
4915
4916         * java/util/ResourceBundle.java
4917         (getBundle(String,Locale,ClassLoader)): New method.
4918         (trySomeGetBundle): Added `loader' argument.
4919         (partialGetBundle): Likewise.
4920
4921         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
4922         maximumFractionDigits, maximumIntegerDigits,
4923         minimumFractionDigits, minimumIntegerDigits): Now
4924         package-private.
4925
4926         * java/lang/Thread.java (checkAccess): Now final.
4927
4928         * java/lang/RuntimePermission.java: Class now final.
4929
4930         * java/io/StringWriter.java (StringWriter(int)): Now public.
4931
4932         * java/io/SerializablePermission.java (legal_names): Now private.
4933
4934         * java/lang/Character.java: Updated UnicodeBlock constants.
4935         * scripts/blocks.pl: Special case private use and surrogate
4936         areas.  Updated URL.
4937
4938 2000-12-12  Tom Tromey  <tromey@redhat.com>
4939
4940         * Makefile.in: Rebuilt.
4941         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
4942         option.
4943         (GCJCOMPILE): Use it.
4944         (JAVAC): Likewise.
4945
4946 2000-12-11  Tom Tromey  <tromey@redhat.com>
4947
4948         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
4949         New static final fields.
4950
4951         * scripts/classes.pl (scan): Skip lines with leading `*'.
4952         Fix for PR libgcj/378.
4953
4954 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
4955
4956         * configure.in: Remove check for -fuse-divide-subroutine.
4957         * configure: Rebuilt.
4958
4959         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
4960
4961         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
4962
4963 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
4964
4965         * Makefile.am: Add HashSet.java and java/lang/ref classes.
4966         Remove BasicMapEntry.java and Bucket.java.
4967         * Makefile.in: Rebuilt.
4968         * java/util/HashMap.java: Rewritten.
4969         * java/util/HashSet.java: Imported from classpath.
4970         * java/util/WeakHashMap.java: Imported from classpath.
4971         * java/util/Hashtable.java: Rewritten based on new HashMap code.
4972         * java/util/Bucket.java: Deleted.
4973         * java/util/BasicMapEntry.java: Deleted.
4974         * java/util/Collections.java (search): Use a for-loop, not iterator
4975         hasNext().
4976         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
4977         of elements in source.
4978         (max): Use a for-loop.
4979         (min): Ditto.
4980         (reverse): Keep track of positions instead of using Iterator's
4981         nextIndex() and previousIndex().
4982         (shuffle(List)): Initialize defaultRandom if required using
4983         double-check thread safety idiom. Call two-argument shuffle method
4984         using defaultRandom.
4985         (defaultRandom): New field.
4986         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
4987         using previousIndex() and nextIndex().
4988         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
4989         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
4990         * java/util/AbstractMap.java (toString): Use StringBuffer.
4991         * java/lang/ref/PhantomReference.java: Imported from classpath.
4992         * java/lang/ref/SoftReference.java: Ditto.
4993         * java/lang/ref/Reference.java: Ditto.
4994         * java/lang/ref/WeakReference.java: Ditto.
4995         * java/lang/ref/ReferenceQueue.java: Ditto.
4996
4997 2000-12-10  Richard Henderson <rth@redhat.com>
4998
4999         * configure.host: Recognize alpha*-*, not alphaev6-*.
5000
5001 2000-12-09  Anthony Green  <green@redhat.com>
5002
5003         * configure.host: Enable interpreter for Alpha.
5004
5005 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5006
5007         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
5008         (ZIP): Points at fastjar instead of zip.
5009         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
5010         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
5011         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
5012         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
5013         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
5014         ($(x_java_source_files:.java=.class):): Likewise.
5015         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
5016         fastar's flags.
5017         (CLEANFILES): libgcj.jar replaces libgcj.zip.
5018         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
5019         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
5020         java/lang/String.h:, java/lang/reflect/Constructor.h:,
5021         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
5022         gnu/gcj/runtime/VMClassLoader.h:,
5023         java/io/ObjectInputStream$$GetField.h:,
5024         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
5025         (Makefile.in): Rebuilt.
5026
5027 2000-12-08  Tom Tromey  <tromey@redhat.com>
5028
5029         From Phil Edwards:
5030         * configure: Rebuilt.
5031         * configure.in: Use echo, not `:', to create .d files.
5032
5033 2000-12-08  Warren Levy  <warrenl@redhat.com>
5034
5035         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
5036         NullPointerException so proper check of offset can be done.
5037
5038 2000-12-08  Warren Levy  <warrenl@redhat.com>
5039
5040         * java/io/FileInputStream.java (close): Check if the fd is valid.
5041         * java/io/RandomAccessFile.java (close): Ditto.
5042         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
5043         * java/net/PlainSocketImpl.java (close): Ditto.
5044
5045 2000-12-06  Tom Tromey  <tromey@redhat.com>
5046
5047         * java/awt/GridBagConstraints.java: Filled in values for static
5048         final fields.
5049
5050         * java/util/BitSet.java: Updated copyright notice.
5051
5052         * Makefile.in: Rebuilt.
5053         * Makefile.am (awt_java_source_files): Added new file.
5054         * java/awt/GridBagConstraints.java: New file.
5055
5056 2000-12-05  Tom Tromey  <tromey@redhat.com>
5057
5058         * java/text/Collator.java (decomposeCharacter, decmp, strength):
5059         Now package-private, not protected.
5060         * java/text/DateFormatSymbols.java (equals): Now private.
5061         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
5062         * java/util/BitSet.java: Class no longer final.
5063
5064 2000-12-04  Warren Levy  <warrenl@redhat.com>
5065
5066         * java/util/TimeZone.java (getAvailableIDs): Activated commented
5067         out code dependent on compiler and library changes.
5068
5069 2000-12-04  Warren Levy  <warrenl@redhat.com>
5070
5071         * java/io/FilePermission.java: Made class final per spec.
5072         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
5073         method name to match spec (fixed typo).
5074         * java/util/LinkedList.java: Implements List.
5075
5076 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
5077
5078         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
5079         Edgar Villanueva <edgarvil@home.com>.
5080
5081 2000-12-03  Tom Tromey  <tromey@redhat.com>
5082
5083         * java/awt/geom/Point2D.java: Added protected constructor.
5084         (equals): New method.
5085         (Float.setLocation(float,float)): New method.
5086         * java/awt/geom/Dimension2D.java: Added protected constructor.
5087         * java/awt/geom/AffineTransform.java: Made all constants public.
5088         (concatenate): Fixed typo in name.
5089         * java/awt/event/WindowAdapter.java: Class now abstract.
5090         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
5091         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
5092         AWTEvent.
5093
5094         * java/awt/AWTError.java: Extend Error, not
5095         IllegalStateException.
5096
5097         * Makefile.in: Rebuilt.
5098         * Makefile.am (awt_java_source_files): Added new file.
5099         * java/awt/geom/RoundRectangle2D.java: New file.
5100
5101         * Makefile.in: Rebuilt.
5102         * Makefile.am (awt_java_source_files): Added new file.
5103         * java/awt/FlowLayout.java: New file.
5104
5105         * Makefile.in: Rebuilt.
5106         * Makefile.am (awt_java_source_files): Added new file.
5107         * java/awt/GridLayout.java: New file.
5108
5109 2000-12-02  Tom Tromey  <tromey@redhat.com>
5110
5111         * Makefile.in: Rebuilt.
5112         * Makefile.am (awt_java_source_files): Added new files.
5113         * java/awt/CardLayout.java: New file.
5114         * java/awt/AWTPermission.java: New file.
5115
5116 2000-12-01  Tom Tromey  <tromey@redhat.com>
5117
5118         * java/util/Vector.java (insertElementAt): Unconditionally
5119         increment elementCount.
5120         (removeRange): Clear unused slots in vector.
5121
5122 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
5123
5124         * java/lang/natMath.cc: Declare fabsf() function.
5125         * java/lang/mprec.h: Don't include math.h.
5126         * java/lang/dtoa.c: Include string.h.
5127         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
5128         compiler warning.
5129
5130         From Adam Welc <welc@cs.purdue.edu>:
5131         * java/util/LinkedList.java (removeFirst): Update `first' field.
5132         Handle the last == first case.
5133         (removeLast): Update `last' field. Handle the last == first case.
5134
5135 2000-12-01  Warren Levy  <warrenl@cygnus.com>
5136
5137         * Makefile.am: Added entries for new java.sql modules.
5138         * Makefile.in: Rebuilt.
5139
5140 2000-12-01  Warren Levy  <warrenl@cygnus.com>
5141
5142         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
5143         that aren't quite 1.2 compatible yet.
5144
5145 2000-11-30  Warren Levy  <warrenl@cygnus.com>
5146
5147         * java/sql/Array.java: New file from classpath.
5148         * java/sql/BatchUpdateException.java: Ditto.
5149         * java/sql/Blob.java: Ditto.
5150         * java/sql/Clob.java: Ditto.
5151         * java/sql/Ref.java: Ditto.
5152         * java/sql/SQLData.java: Ditto.
5153         * java/sql/SQLInput.java: Ditto.
5154         * java/sql/SQLOutput.java: Ditto.
5155         * java/sql/Struct.java: Ditto.
5156         * java/sql/CallableStatement.java: Merged file from claspath.
5157         * java/sql/Connection.java: Ditto.
5158         * java/sql/DataTruncation.java: Ditto.
5159         * java/sql/DatabaseMetaData.java: Ditto.
5160         * java/sql/DriverManager.java: Ditto.
5161         * java/sql/PreparedStatement.java: Ditto.
5162         * java/sql/ResultSet.java: Ditto.
5163         * java/sql/ResultSetMetaData.java: Ditto.
5164         * java/sql/SQLException.java: Ditto.
5165         * java/sql/SQLWarning.java: Ditto.
5166         * java/sql/Statement.java: Ditto.
5167         * java/sql/Types.java: Ditto.
5168
5169 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
5170
5171         * java/lang/natSystem.cc (init_properties): Set user.language and
5172         user.region.
5173         * configure.in: Check for setlocale.
5174         * configure: Rebuilt.
5175         * include/config.h.in: Rebuilt.
5176
5177         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
5178         the infate() call didn't deliver any output. Throw a ZipException if
5179         the needsDictionary() call returns true.
5180         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
5181         * java/io/InputStreamReader: Use the default buffer size for the
5182         contained BufferedInputStream.
5183
5184 2000-11-28  Warren Levy  <warrenl@cygnus.com>
5185
5186         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
5187         more time zone entries.
5188         * java/text/SimpleDateFormat.java (format): Added case for
5189         TIMEZONE_FIELD.
5190
5191 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
5192
5193         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
5194         directly rather than read() in all cases. Make primitive read
5195         implementations more efficient, as defined in JDK online docs.
5196         (skipBytes): Behave like the JDK's implementation.
5197         * java/io/BufferedReader.java: Merge classpath docs. Check for a
5198         closed stream with checkStatus() whenever an IOException can be
5199         thrown.
5200         (checkStatus): New private method.
5201
5202 2000-11-27  Warren Levy  <warrenl@cygnus.com>
5203
5204         * Makefile.am: Added natTimeZone.cc.
5205         * Makefile.in: Rebuilt.
5206         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
5207         * java/text/DateFormatSymbols.java (ampms): Made package private.
5208         (eras): Made package private.
5209         (months): Made package private.
5210         (shortMonths): Made package private.
5211         (shortWeekdays): Made package private.
5212         (weekdays): Made package private.
5213         (formatPrefixes): New private field.
5214         (localPatternCharsDefault): Made private.
5215         (dateFormats): New package private field.
5216         (timeFormats): New package private field.
5217         (formatsForKey): New private method.
5218         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
5219         (DateFormatSymbols(DateFormatSymbols)): Ditto.
5220         * java/text/SimpleDateFormat.java: Merged with Classpath.
5221         * java/util/TimeZone.java: Merged with Classpath.
5222         * java/util/natTimeZone.cc: New file.
5223
5224 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
5225
5226         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
5227         (addElement): Don't increment elementCount twice. Doh.
5228         * java/util/ArrayList.java (add): Only call ensureCapacity if the
5229         array needs to be expanded.
5230         (addAll): Ditto.
5231         * java/util/Collections.java (UnmodifiableCollection): Implement
5232         toString().
5233         (UnmodifiableList): Throw UnsupportedOperationException from
5234         modification methods. Set `l' from the one-parameter constructor.
5235         (UnmodifiableMap): Implement toString().
5236         (SynchronizedCollection): Ditto.
5237         (SynchronizedList): Set `l' from the one-parameter constructor.
5238         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
5239         (SynchronizedMap): Implement toString().
5240
5241 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
5242
5243         * javax/naming/NameParser.java,
5244         javax/naming/directory/AttributeInUseException.java,
5245         javax/naming/directory/AttributeModificationException.java,
5246         javax/naming/directory/InvalidAttributeIdentifierException.java,
5247         javax/naming/directory/InvalidAttributesException.java,
5248         javax/naming/directory/InvalidAttributeValueException.java,
5249         javax/naming/directory/InvalidSearchControlsException.java,
5250         javax/naming/directory/InvalidSearchFilterException.java,
5251         javax/naming/directory/NoSuchAttributeException.java,
5252         javax/naming/directory/SchemaViolationException.java: New files.
5253
5254 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
5255
5256         * javax/naming/InitialContext.java (rebind): Implement.
5257         (unbind): Implement.
5258         (rename): Implement.
5259         (list): Implement.
5260         (listBindings): Implement.
5261         (destroySubcontext): Implement.
5262         (createSubcontext): Implement.
5263         (lookupLink): Implement.
5264         (getNameParser): Implement.
5265         (composeName): Implement.
5266         (addToEnvironment): Implement.
5267
5268 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
5269
5270         * javax/naming/AuthenticationException.java,
5271         javax/naming/AuthenticationNotSupportedException.java,
5272         javax/naming/CannotProceedException.java,
5273         javax/naming/CommunicationException.java,
5274         javax/naming/ConfigurationException.java,
5275         javax/naming/ContextNotEmptyException.java,
5276         javax/naming/InsufficientResourcesException.java,
5277         javax/naming/InterruptedNamingException.java,
5278         javax/naming/InvalidNameException.java,
5279         javax/naming/LimitExceededException.java,
5280         javax/naming/LinkException.java,
5281         javax/naming/LinkLoopException.java,
5282         javax/naming/MalformedLinkException.java,
5283         javax/naming/NameAlreadyBoundException.java,
5284         javax/naming/NameNotFoundException.java,
5285         javax/naming/NamingSecurityException.java,
5286         javax/naming/NoPermissionException.java,
5287         javax/naming/NotContextException.java,
5288         javax/naming/PartialResultException.java,
5289         javax/naming/ReferralException.java,
5290         javax/naming/ServiceUnavailableException.java,
5291         javax/naming/SizeLimitExceededException.java,
5292         javax/naming/TimeLimitExceededException.java: New files.
5293
5294         * javax/naming/Name.java (clone): New method.
5295         (compareTo): New method.
5296         (isEmpty): New method.
5297         (getAll): New method.
5298         (getPrefix): New method.
5299         (getSuffix): New method.
5300         (startsWith): New method.
5301         (endsWith): New method.
5302         (addAll): New method.
5303         (addAll): New method.
5304         (add): New method.
5305         (add): New method.
5306         (remove): New method.
5307
5308         * javax/naming/Context.java (lookup): New method.
5309         (rebind): New method.
5310         (unbind): New method.
5311         (rename): New method.
5312         (list): New method.
5313         (listBindings): New method.
5314         (destroySubcontext): New method.
5315         (createSubcontext): New method.
5316         (lookupLink): New method.
5317         (getNameParser): New method.
5318         (composeName): New method.
5319         (addToEnvironment): New method.
5320         (removeFromEnvironment): New method.
5321         (getEnvironment): New method.
5322         (close): New method.
5323         (getNameInNamespace): New method.
5324
5325         * javax/naming/InitialContext.java (lookup): New method.
5326         (rebind): New method.
5327         (unbind): New method.
5328         (rename): New method.
5329         (list): New method.
5330         (listBindings): New method.
5331         (destroySubcontext): New method.
5332         (createSubcontext): New method.
5333         (lookupLink): New method.
5334         (getNameParser): New method.
5335         (composeName): New method.
5336         (addToEnvironment): New method.
5337         (removeFromEnvironment): New method.
5338         (getEnvironment): New method.
5339         (close): New method.
5340         (getNameInNamespace): New method.
5341
5342 2000-11-26  Tom Tromey  <tromey@cygnus.com>
5343
5344         * Makefile.in: Rebuilt.
5345         * Makefile.am (core_java_source_files): Added
5346         RuntimePermission.java.
5347         * java/lang/RuntimePermission.java: Imported from Classpath.
5348         * java/lang/Thread.java (getContextClassLoader): Now
5349         synchronized.  Added security code.
5350         (setContextClassLoader): Likewise.
5351
5352         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
5353         length field of array.
5354         (_Jv_NewPrimArray): Likewise.
5355         * gcj/array.h (__JArray): `length' field now const.  Added
5356         constructor.
5357
5358 2000-11-26  Anthony Green  <green@redhat.com>
5359
5360         * javax/naming/spi/NamingManager.java,
5361         javax/naming/spi/ObjectFactory.java,
5362         javax/naming/spi/InitialContextFactory.java,
5363         javax/naming/spi/InitialContextFactoryBuilder.java,
5364         javax/naming/RefAddr.java, javax/naming/Reference.java,
5365         javax/naming/NamingException.java, javax/naming/Context.java,
5366         javax/naming/Referenceable.java,
5367         javax/naming/directory/InitialDirContext.java,
5368         javax/naming/directory/DirContext.java,
5369         javax/naming/directory/Attributes.java,
5370         javax/naming/directory/Attribute.java,
5371         javax/naming/StringRefAddr.java,
5372         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
5373         javax/naming/InitialContext.java,
5374         javax/naming/NoInitialContextException.java: New files.
5375
5376 2000-11-25  Anthony Green  <green@redhat.com>
5377
5378         * prims.cc (_Jv_NewObjectArray): Undo placement change.
5379         (_Jv_NewPrimArray): Likewise.
5380         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
5381         (class JArray): Removed constructor.
5382
5383         * java/lang/Thread.java (context_class_loader): New private data.
5384         (getContextClassLoader): New method.
5385         (setContextClassLoader): New method.
5386         (Thread): Initialize context_class_loader.
5387
5388         * java/net/URLClassLoader.java: Import java.util.Enumeration.
5389         (getResource): Rename to findResource.
5390         (findResource): New method.  Used to be getResource.
5391         (getResourceAsStream): Deleted.
5392         (jarFileize): Extracted logic from URLClassLoader constructor into
5393         this new private method.
5394         (addURL): New protected method.
5395         (URLClassLoader): Call jarFileize.  Use addElement instead of
5396         insertElementAt.
5397         (findResources): New method.
5398
5399         * java/lang/ClassLoader.java: Import java.util.Enumeration.
5400         (getResource): Implement correct logic.
5401         (findResource): New method.
5402         (getResources): New method.
5403         (findClass): Create a ClassNotFoundException with the name of the
5404         class rather than nothing at all.
5405         (defineClass) Only throw ClassFormatError.
5406
5407         * java/lang/Class.java (forName): New method.
5408         * java/lang/Class.h (forName): New method.
5409         * java/lang/natClass.cc (forName): New method.
5410
5411 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
5412
5413         * java/lang/System.java (setProperties): Only call init_properties()
5414         if properties is null.
5415         (getProperties): Ditto.
5416         (getProperty): Ditto.
5417         (setProperty): Call init_properties if properties are null.
5418         (prop_init): Remove field.
5419         * java/lang/natSystem.cc (init_properties): Synchronize the entire
5420         method. Check for null properties after synchronizing instead of
5421         prop_init flag. Set the properties field last for thread safety.
5422
5423         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
5424         test for gcj.dumpobjects property and enable object stream dumping
5425         if it is set.
5426         (dumpElement): No longer native.
5427         (dumpElementln): Ditto.
5428         (setDump): Do not define.
5429         * java/io/natObjectInputStream.cc (dumpElement): Removed.
5430         (dumpElementln): Removed.
5431         (setDump): Removed.
5432
5433 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
5434
5435         * configure: Rebuilt.
5436         * Makefile.in: Rebuilt.
5437         * Makefile.am (built_java_source_files): Add Configuration.java.
5438         * configure.in: Add Configuration.java to CONFIG_FILES. Set
5439         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
5440         Create `gnu' directory in the build tree.
5441         * gnu/classpath/Configuration.java.in: New file.
5442
5443 2000-11-24  Tom Tromey  <tromey@cygnus.com>
5444
5445         * prims.cc (_Jv_NewObjectArray): Use placement new to create
5446         array.
5447         (_Jv_NewPrimArray): Likewise.
5448         Include <new>.
5449         * gcj/array.h (__JArray): `length' field now const.  Added
5450         constructor.
5451         (class JArray): Added constructor.
5452
5453 2000-11-23  Mark Wielaard  <mark@klomp.org>
5454
5455         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
5456         lookup.
5457
5458 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
5459
5460         * java/util/Vector.java: Improve exception messages.
5461         (Vector): Check initialCapacity for IllegalArgumentException.
5462         (tromToSize): Don't check for elementCount == elementData.length
5463         case.
5464         (toArray): Don't try to set null marker if target array is the same
5465         length as the vector.
5466
5467 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
5468
5469         * Makefile.in: Rebuilt.
5470         * Makefile.am (core_java_source_files): Added Collections.java.
5471         * java/util/List.java: Merged from classpath.
5472         * java/util/Vector.java: Ditto.
5473         * java/util/Collections.java: From classpath.
5474         * java/util/ArrayList.java (addAll(Collection)): Call
5475         addAll(int,Collection) instead of duplicating code.
5476         (indexOf): Clean up int initialization.
5477         (clear): Set cleared array entries to null, to allow garbage
5478         collection.
5479         * java/util/List.java: Minor formatting fixes.
5480         * java/util/SimpleTimeZone.java: ditto.
5481
5482 2000-11-18  Tom Tromey  <tromey@cygnus.com>
5483
5484         * Makefile.in: Rebuilt.
5485         * Makefile.am (core_java_source_files): Added new files.
5486         * java/lang/reflect/ReflectPermission.java: New class.
5487         * java/io/FileFilter.java: From Classpath
5488         * java/io/FilePermission.java: From Classpath.
5489
5490 2000-11-17  Tom Tromey  <tromey@cygnus.com>
5491
5492         * java/lang/reflect/AccessibleObject.java (isAccessible,
5493         setAccessible): Now public.
5494
5495         * java/lang/natString.cc: Include Locale.h.
5496         (toUpperCase): Added `locale' argument.  Handle locale
5497         sensitivity.
5498         (toLowerCase): Added `locale' argument.  Handle locale
5499         sensitivity.
5500         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
5501         CAPITAL_I): New defines.
5502         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
5503         final.
5504         Import Locale.
5505         (toUpperCase, toLowerCase): New methods.  Variants which accept
5506         locale now native.
5507
5508         * java/lang/ExceptionInInitializerError.java (printStackTrace):
5509         New methods.
5510
5511         * java/util/PropertyPermission.java: Re-merged from Classpath.
5512
5513         * java/text/RuleBasedCollator.java (getCollationElementIterator):
5514         New method.
5515         * java/text/StringCharacterIterator.java: Reindented.
5516         (setText): New method.
5517
5518 2000-11-17  Mark Wielaard  <mark@klomp.org>
5519
5520         Merge with Classpath (changes by Bryce McKinlay)
5521         * java/util/jar/*.java: Reformat all to unofficial standard coding
5522         style. No changes of substance.
5523
5524 2000-11-17  Mark Wielaard  <mark@klomp.org>
5525
5526         * java/util/zip/*.java: Javadoc updates.
5527
5528 2000-11-17  Tom Tromey  <tromey@cygnus.com>
5529
5530         * java/text/CollationKey.java: Implement Comparable.
5531         (compareTo(Object)): New method.
5532         * java/text/Collator.java (compare(Object,Object)): New method.
5533         Implement Comparator.
5534
5535         * java/util/zip/InflaterInputStream.java (available): New method.
5536         (close): New method.
5537         (read, available, skip, fill): Throw exception if stream closed.
5538         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
5539         getNextEntry): Throw exception if closed.
5540
5541 2000-11-16  Tom Tromey  <tromey@cygnus.com>
5542
5543         * java/io/PushbackReader.java: Merged with Classpath.
5544         * java/util/Arrays.java: Updated from Classpath.
5545
5546         * scripts/blocks.pl: New file.
5547         * java/lang/Character.java (Subset): New class.
5548         (UnicodeBlock): New class.
5549
5550         * java/lang/Math.java (toDegrees, toRadians): New methods.
5551
5552         * java/lang/Float.java: Implement Comparable.
5553         (compareTo): New methods.
5554         * java/lang/Double.java: Implement Comparable.
5555         (compareTo): New methods.
5556
5557 2000-11-16  Warren Levy  <warrenl@cygnus.com>
5558
5559         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
5560         transient.
5561         (listeners): Made transient.
5562         (source): Renamed from 'bean'.
5563         (children): New field for serialization.
5564         (propertyChangeSupportSerializedDataVersion): Ditto.
5565         (serialVersionUID): Ditto.
5566         (writeObject): New serialization method.
5567         (readObject): New serialization method.
5568         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
5569         transient.
5570         (listeners): Made transient.
5571         (source): Renamed from 'bean'.
5572         (children): New field for serialization.
5573         (vetoableChangeSupportSerializedDataVersion): Ditto.
5574         (serialVersionUID): Ditto.
5575         (writeObject): New serialization method.
5576         (readObject): New serialization method.
5577         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
5578         to allow constructor to have a return type (i.e. the class that the
5579         constructor constructs).
5580
5581 2000-11-14  Tom Tromey  <tromey@cygnus.com>
5582
5583         * Makefile.in: Rebuilt.
5584         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
5585         and -k not given.
5586
5587 2000-11-02  Warren Levy  <warrenl@cygnus.com>
5588
5589         * java/io/ObjectInputStream.java (readObject): Added code to
5590         conditionally dump out the serialized data.
5591         Handle ENDBLOCKDATA case a bit more gracefully since the current
5592         behavior doesn't seem to work as expected.
5593         (readStreamHeader): Added code for serialized data dumper.
5594         (readNextBlock): Ditto.
5595         (readFields): Ditto.
5596         (dump): New private static field for turning on/off dumper.
5597         (setDump): New native method.
5598         (dumpElement): New native method.
5599         (dumpElementln): New native method.
5600         * java/io/natObjectInputStream.cc (setDump): New method.
5601         (dumpElement): New method.
5602         (dumpElementln): New method.
5603
5604 2000-11-02  Warren Levy  <warrenl@cygnus.com>
5605
5606         * java/net/InetAddress.java (addr): Renamed from 'address'.
5607         (address): New field to match Serialized Form doc.
5608         (hostName): Renamed from 'hostname' to match Serialized Form doc.
5609         (family): New serialization field.
5610         (serialVersionUID): New field.
5611         (readObject): New method.
5612         (writeObject): New method.
5613         (getFamily): New native method.
5614         (InetAddress): Set family.
5615         * java/net/natInetAddress.cc (getFamily): New method.
5616         (addr): Renamed from 'address'.
5617         (hostName): Renamed from 'hostname' to match Serialized Form doc.
5618         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
5619         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
5620
5621 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
5622
5623         * java/util/AbstractList.java (SubList): Make it a top-level private
5624         class.
5625         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
5626         (add): Ditto.
5627         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
5628         * Makefile.in: Rebuilt.
5629
5630 2000-11-02  Tom Tromey  <tromey@cygnus.com>
5631
5632         * Makefile.in: Rebuilt.
5633         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
5634         link.
5635
5636 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
5637
5638         * java/util/AbstractList.java (remove): Comment out modCount increment
5639         to work around compiler bug.
5640         (add): Ditto.
5641
5642 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
5643
5644         * java/util/AbstractList.java: Throw messages with
5645         IndexOutOfBoundsExceptions.
5646          (listIterator()): Call listIterator(0).
5647         (size): New field. Initialize to size().
5648         (hasNext): Test position against size, not size().
5649         (remove): Increment knownMod by one instead of resetting it from
5650         modCount.
5651         (add): Ditto.
5652         (SubList.upMod): Removed.
5653         (SubList.set): Don't call upMod() or update knownMod.
5654         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
5655         (SubList.remove): Ditto.
5656         (SubList.addAll): Don't call backingList.size(). Increment size from
5657         c.size().
5658         (SubList.iterator): New method. Call listIterator(0).
5659         (SubList.listIterator): New method. Restore code to return an anonymous
5660         listIterator implementation (with some changes).
5661         * java/util/AbstractSequentialList.java: Throw messages with
5662         IndexOutOfBoundsExceptions.
5663         (addAll): Add a specnote.
5664         * java/util/ArrayList.java (removeRange): Get the math right.
5665         (addAll): Increment modCount _before_ creating iterator.
5666         * java/util/LinkedList.java: Rewritten, mostly.
5667
5668 2000-11-01  Tom Tromey  <tromey@cygnus.com>
5669
5670         * scripts/encodings.pl: Added `ASCII' alias.
5671         * Makefile.in: Rebuilt.
5672         * Makefile.am (convert_source_files): Added new files.
5673         * gnu/gcj/convert/Input_ASCII.java: New file.
5674         * gnu/gcj/convert/Output_ASCII.java: New file.
5675         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
5676         out-of-range characters.
5677         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
5678         (read): Swap bytes if required.  Treat `count' as character count,
5679         not byte count.
5680         (write): Likewise.  Also, handle case where iconv fails on a given
5681         character.
5682         (init): Put encoding into exception.
5683         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
5684         (static): Call iconv_init.  Rebuilt alias list.
5685         (iconv_init): New private method.
5686
5687 2000-11-01  Tom Tromey  <tromey@cygnus.com>
5688
5689         * Makefile.in: Rebuilt.
5690         * Makefile.am (install-exec-hook): Only make a single symlink, and
5691         remove the destination before making the link.
5692         * configure: Rebuilt.
5693         * configure.in: Call AC_PROG_LN_S.
5694
5695 2000-10-31  Warren Levy  <warrenl@cygnus.com>
5696
5697         * jni.cc: Added include of java/lang/ThreadGroup.h.
5698         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
5699         per change of 2000-10-05.
5700
5701 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
5702
5703         * java/util/BitSet.java: Updated @specnote.
5704
5705         * java/io/Reader.java: Merge docs from classpath.
5706         (skip): Synchronize on `lock'.
5707         * java/io/FileReader.java: Import correct implementation from
5708         classpath.
5709         * java/io/StringReader.java: Merge docs from classpath.
5710         (ready): Throw IOException if stream is closed.
5711
5712 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
5713
5714         * java/util/AbstractCollection.java (addAll): Use size() instead of
5715         hasNext() in iterator loop.
5716         (clear): Ditto.
5717         (contains): Ditto. Simplify loop.
5718         (containsAll): Ditto.
5719         (remove): Ditto.
5720         (removeAll): Ditto.
5721         (retainAll): Ditto.
5722         (toArray): Ditto.
5723         (toString): Ditto. Use string concatenation operators, not
5724         StringBuffer.
5725         * java/util/AbstractList.java (addAll): Use size() instead of
5726         hasNext() in iterator loop.
5727         (equals): Ditto.
5728         (hashCode): Ditto.
5729         (indexOf): Ditto. Don't take null check outside of the loop.
5730         (iterator): Return an AbstractListItr instead of anonymous class.
5731         (lastIndexOf): Use a for loop bounded by size() instead of
5732         hasPrevious() in iterator loop.
5733         (listIterator): Return an AbstractListItr.
5734         (removeRange): Remove bounds checking code and docs.
5735         (AbstractListItr): New inner class. Code moved here from
5736         listIterator().
5737         (SubList.iterator): Removed. Use default implementation from
5738         AbstractList instead.
5739         (SubList.listIterator): As above.
5740         * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
5741         instead of hasNext() in iterator loop.
5742         (containsValue): Ditto.
5743         (equals): Ditto.
5744         (get): Ditto.
5745         (put): Ditto.
5746         (putAll): Ditto.
5747         (remove): Ditto.
5748         (toString): Ditto. Use string concatenation operators, not
5749         StringBuffer.
5750         * java/util/AbstractSequentialList.java (addAll): Use a for loop
5751         bounded by size() instead of hasNext() in iterator loop.
5752         * java/util/AbstractSet.java (hashCode): Don't catch exception as
5753         part of normal execution flow. Do an explicit null check instead.
5754         * java/util/ArrayList.java (_iSize): Rename to `size'.
5755         (_arData): Rename to `data'.
5756         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
5757         message.
5758         (remove): Ditto.
5759         (removeRange): Make protected. Don't check bounds.
5760         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
5761         message.
5762         (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
5763         check.
5764         (addAll (int, Collection)): Check lower bounds. Simplify exception
5765         string.
5766         (clone): Clone the data array too.
5767         (indexOf): Inline doesEqual().
5768         (lastIndexOf): Ditto.
5769         (clear): Don't set array data to null.
5770         (set): Check lower bounds. Simplify exception string.
5771         (toArray): Correct comment.
5772         (trimToSize): Don't update modCount, this is not a structural change.
5773         Add comment.
5774
5775         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
5776         implemented.
5777         (toString): Declare `bit' as long, not int.
5778         (data): Made package-private, not private.
5779
5780 2000-10-27  Warren Levy  <warrenl@cygnus.com>
5781
5782         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
5783         array elements to true.
5784
5785 2000-10-27  Warren Levy  <warrenl@cygnus.com>
5786
5787         * Makefile.am: Added locale files from Classpath.
5788         * Makefile.in: Rebuilt.
5789         * gnu/java/locale/Calendar.java: New file.
5790         * gnu/java/locale/Calendar_de.java: New file.
5791         * gnu/java/locale/Calendar_en.java: New file.
5792         * gnu/java/locale/Calendar_nl.java: New file.
5793         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
5794         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
5795         serialization compatibility.
5796         (scale): Made private.
5797         (serialVersionUID): New field.
5798         * java/math/BigInteger.java (ival): Made transient.
5799         (words): Made transient.
5800         (bitCount): New serialization field.
5801         (bitLength): Ditto.
5802         (firstNonzeroByteNum): Ditto.
5803         (lowestSetBit): Ditto.
5804         (magnitude): Ditto.
5805         (signum): Ditto.
5806         (serialVersionUID): New field.
5807         (readObject): New method.
5808         (writeObject): New method.
5809         * java/util/BitSet.java (serialVersionUID): New field.
5810         * java/util/Calendar.java: Replaced with Classpath file.
5811         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
5812         of getDefault() for TimeZone or Locale instead of passing nulls.
5813         * java/util/Locale.java (serialVersionUID): New field.
5814         (writeObject): New method.
5815         (readObject): New method.
5816         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
5817
5818 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
5819
5820         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
5821         (core_java_source_files): Put java.lang, java.io, and java.util here.
5822         (ordinary_java_source_files): Order so that core_java_source_files are
5823         built first.
5824         (java_source_files): Reorder so that special_java_source_files are
5825         built first.
5826         * configure.in: Don't pass -I flag to gcj.
5827         * Makefile.in: Rebuilt.
5828         * configure: Rebuilt.
5829
5830 2000-10-25  Tom Tromey  <tromey@cygnus.com>
5831
5832         * Makefile.in: Rebuilt.
5833         * Makefile.am (install-exec-hook): New target.
5834
5835 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
5836
5837         * java/util/EventObject.java: Merged from classpath.
5838
5839         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
5840         with stack dump.
5841
5842 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5843
5844         * java/util/AbstractSet.java (equals): Re-installed original code.
5845
5846 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
5847
5848         * Makefile.am: Added rules for libgcjx library.
5849         * Makefile.in: Rebuilt.
5850         * configure.in: Added check for X.
5851         * configure: Rebuilt.
5852         * gnu/awt/LightweightRedirector.java: New file.
5853         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
5854         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
5855         * gnu/awt/j2d/Graphics2DImpl.java: New file.
5856         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
5857         * gnu/awt/j2d/MappedRaster.java: New file.
5858         * gnu/awt/xlib/XCanvasPeer.java: New file.
5859         * gnu/awt/xlib/XEventLoop.java: New file.
5860         * gnu/awt/xlib/XEventQueue.java: New file.
5861         * gnu/awt/xlib/XFontMetrics.java: New file.
5862         * gnu/awt/xlib/XFramePeer.java: New file.
5863         * gnu/awt/xlib/XGraphics.java: New file.
5864         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
5865         * gnu/awt/xlib/XPanelPeer.java: New file.
5866         * gnu/awt/xlib/XToolkit.java: New file.
5867         * gnu/gcj/xlib/Clip.java: New file.
5868         * gnu/gcj/xlib/Colormap.java: New file.
5869         * gnu/gcj/xlib/Display.java: New file.
5870         * gnu/gcj/xlib/Drawable.java: New file.
5871         * gnu/gcj/xlib/Font.java: New file.
5872         * gnu/gcj/xlib/GC.java: New file.
5873         * gnu/gcj/xlib/Pixmap.java: New file.
5874         * gnu/gcj/xlib/Screen.java: New file.
5875         * gnu/gcj/xlib/Visual.java: New file.
5876         * gnu/gcj/xlib/WMSizeHints.java: New file.
5877         * gnu/gcj/xlib/Window.java: New file.
5878         * gnu/gcj/xlib/WindowAttributes.java: New file.
5879         * gnu/gcj/xlib/XAnyEvent.java: New file.
5880         * gnu/gcj/xlib/XButtonEvent.java: New file.
5881         * gnu/gcj/xlib/XColor.java: New file.
5882         * gnu/gcj/xlib/XConfigureEvent.java: New file.
5883         * gnu/gcj/xlib/XConnectException.java: New file.
5884         * gnu/gcj/xlib/XEvent.java: New file.
5885         * gnu/gcj/xlib/XException.java: New file.
5886         * gnu/gcj/xlib/XExposeEvent.java: New file.
5887         * gnu/gcj/xlib/XID.java: New file.
5888         * gnu/gcj/xlib/XImage.java: New file.
5889         * gnu/gcj/xlib/XUnmapEvent.java: New file.
5890         * gnu/gcj/xlib/natClip.cc: New file.
5891         * gnu/gcj/xlib/natColormap.cc: New file.
5892         * gnu/gcj/xlib/natDisplay.cc: New file.
5893         * gnu/gcj/xlib/natDrawable.cc: New file.
5894         * gnu/gcj/xlib/natFont.cc: New file.
5895         * gnu/gcj/xlib/natGC.cc: New file.
5896         * gnu/gcj/xlib/natPixmap.cc: New file.
5897         * gnu/gcj/xlib/natScreen.cc: New file.
5898         * gnu/gcj/xlib/natVisual.cc: New file.
5899         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
5900         * gnu/gcj/xlib/natWindow.cc: New file.
5901         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
5902         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
5903         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
5904         * gnu/gcj/xlib/natXColor.cc: New file.
5905         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
5906         * gnu/gcj/xlib/natXException.cc: New file.
5907         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
5908         * gnu/gcj/xlib/natXImage.cc: New file.
5909         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
5910         * java/awt/EventDispatchThread.java: Start thead on creation.
5911
5912 2000-10-20  Tom Tromey  <tromey@cygnus.com>
5913
5914         From Arno J. Klaassen:
5915         * interpret.cc: Include <stdlib.h> for alloca.
5916         * defineclass.cc: Include <stdlib.h> for alloca.
5917
5918         * Makefile.in: Rebuilt.
5919         * Makefile.am: Include deps.mk.
5920         (GCJCOMPILE): Added -MD, -MT, and -MF.
5921         ($(javao_files)): Don't depend on libgcj.zip.
5922         (all-recursive): New target.
5923         (%.lo:%.cc): Do dependency tracking.
5924         ($(nat_headers)): Don't depend on libgcj.zip.
5925         * configure: Rebuilt.
5926         * configure.in: Make .d files and deps.mk.
5927
5928 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
5929
5930         * exception.cc: Don't #include "exception".
5931         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
5932
5933         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
5934         * Makefile.in: Updated.
5935
5936 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
5937
5938         * java/awt/peer/ChoicePeer.java (addItem): Removed.
5939         * java/awt/peer/ComponentPeer.java (disable): Removed.
5940         (enable): Removed.
5941         (hide): Removed.
5942         (minimumSize): Removed.
5943         (preferredSize): Removed.
5944         (reshape): Removed.
5945         (show): Removed.
5946         * java/awt/peer/ListPeer.java (addItem): Removed.
5947         (clear): Removed.
5948         (minimumSize): Removed.
5949         (preferredSize): Removed.
5950         (setMultipleSelections): Removed.
5951         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
5952         (remove): Renamed from removeMenu.
5953         * java/awt/peer/MenuItemPeer.java (disable): Removed.
5954         (enable): Removed.
5955         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
5956         (remove): Renamed from removeItem.
5957         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
5958         (getMinimumSize): Removed.
5959         (getPreferredSize): Removed.
5960         (minimumSize): Removed.
5961         (preferredSize): Removed.
5962         (replaceText): Removed.
5963         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
5964         (preferredSize): Removed.
5965         (getMinimumSize): Removed.
5966         (getPreferredSize): Removed.
5967         (setEchoCharacter): Removed.
5968
5969 2000-10-10  Warren Levy  <warrenl@cygnus.com>
5970
5971         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
5972         * java/sql/Date.java (serialVersionUID): New field.
5973         * java/sql/Time.java (serialVersionUID): New field.
5974         * java/sql/Timestamp.java (serialVersionUID): New field.
5975         * java/text/ChoiceFormat.java (serialVersionUID): New field.
5976         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
5977         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
5978         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
5979         (readObject): New serialization method.
5980         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
5981         (serialVersionOnStream): New field.
5982         (readObject): New serialization method.
5983         (getMonetaryDecimalSeparator): New method.
5984         (setMonetaryDecimalSeparator): New method.
5985         * java/text/NumberFormat.java (maxFractionDigits): New field.
5986         (maxIntegerDigits): New field.
5987         (minFractionDigits): New field.
5988         (minIntegerDigits): New field.
5989         (serialVersionOnStream): New field.
5990         (serialVersionUID): New field.
5991         (readObject): New serialization method.
5992         (writeObject): New serialization method.
5993         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
5994         (serialVersionOnStream): New field.
5995         (serialVersionUID): New field.
5996         (readObject): New serialization method.
5997
5998 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
5999
6000         * configure.in (GCJ): Avoid bogus error message when looking for
6001         (and not finding) gcj in the build tree.
6002         * configure: Rebuilt.
6003
6004 2000-10-09  Tom Tromey  <tromey@cygnus.com>
6005
6006         * configure: Rebuilt.
6007         * configure.in: Include sys/types.h when checking for socklen_t.
6008         From Arno J. Klaassen.
6009
6010 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
6011
6012         * include/jvm.h: Enable __builtin_expect().
6013
6014         * name-finder.cc (lookup): Don't trust dladdr() if the address is from
6015         the main program. Fix for PR libgcj/341.
6016
6017 2000-10-07  Tom Tromey  <tromey@cygnus.com>
6018
6019         * java/util/Properties.java: Merged with Classpath version.
6020
6021 2000-10-05  Tom Tromey  <tromey@cygnus.com>
6022
6023         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
6024         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
6025         * java/lang/Class.h (Object): Added `class$' field.
6026         * java/lang/Object.h (Object): Added `class$' field.
6027         * defineclass.cc (ClassClass): Use `class$' form.
6028         (ClassObject): Likewise.
6029         * resolve.cc (ClassObject): Use `class$' form.
6030         (ObjectClass): Likewise.
6031         * interpret.cc (ClassError): Removed.
6032         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
6033         `class$' form.
6034         (IntegerClass): Likewise.
6035         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
6036         form.
6037         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
6038         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
6039         SerializableClass): Likewise.
6040         Include Serializable.h, Cloneable.h.
6041         * java/lang/natSystem.cc (SystemClass): Removed.
6042         (init_properties): Use `class$' form.
6043         * java/lang/natObject.cc (CloneableClass): Removed.
6044         (clone): Use `class$' form.
6045         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
6046         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
6047         ConstructorClass): Likewise.
6048         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
6049         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
6050         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
6051         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
6052         form.
6053         (ClassClass): Likewise.
6054         * include/jvm.h (StringClass): Use `class$' form.
6055         * prims.cc (ObjectClass): Removed.
6056         (_Jv_RunMain): Use `class$' form.
6057         (_Jv_AllocObject): Likewise.
6058         * jni.cc (ClassClass): Use `class$' form.
6059         (ThrowableClass): Likewise.
6060         (ObjectClass): Likewise.
6061         (MethodClass): Likewise.
6062         (ThreadGroupClass): Likewise.
6063         (NativeThreadClass): Likewise.
6064         * boehm.cc (ObjectClass): Removed.
6065         (ClassClass): Removed.
6066         (_Jv_MarkObj): Use `class$' form.
6067         * gcj/field.h (JvFieldIsRef): Use `class$' form.
6068         Include RawData.h.
6069
6070 2000-10-05  Warren Levy  <warrenl@cygnus.com>
6071
6072         * Makefile.am: Removed java/io/Replaceable.java and
6073         java/io/Resolvable.java.
6074         * Makefile.in: Rebuilt.
6075         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
6076         namespace.
6077         * java/io/ObjectInputStream.java (processResolution): Fixed typo
6078         in method name.
6079         (processResolution): Handle readResolve method via reflection with
6080         removal of Resolvable interface.
6081         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
6082         method via reflection with removal of Replaceable interface.
6083         * java/io/Replaceable.java: Removed.
6084         * java/io/Resolvable.java: Removed.
6085         * java/security/Key.java (serialVersionUID): New field.
6086         * java/security/Provider.java (serialVersionUID): New field.
6087         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
6088         New field.
6089         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
6090         New field.
6091         * java/sql/DataTruncation.java (serialVersionUID): New field.
6092         * java/sql/SQLException.java (serialVersionUID): New field.
6093         * java/sql/SQLWarning.java (serialVersionUID): New field.
6094         * java/util/Date.java (serialVersionUID): New field.
6095         (millis): Made transient.
6096         (readObject): New method.
6097         (writeObject): New method.
6098
6099 2000-10-05  Tom Tromey  <tromey@cygnus.com>
6100
6101         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
6102
6103 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
6104
6105         * prims.cc (_Jv_argv, _Jv_argc): New fields.
6106         (JvRunMain): Set _Jv_argv and _Jv_argc.
6107         * java/awt/Component.java: Minor fixes.
6108         * java/awt/Image.java (UndefinedProperty): Initialize final field.
6109         * java/awt/Toolkit.java (systemEventQueue): Removed.
6110         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
6111         * java/awt/Window.java (getToolkit): Don't call super.
6112         * java/awt/image/BufferedImage.java: Fix definite assignment errors.
6113         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
6114         * gnu/awt/gtk/GtkComponentPeer.java: New file.
6115         * gnu/awt/gtk/GtkContainerPeer.java: New file.
6116         * gnu/awt/gtk/GtkFramePeer.java: New file.
6117         * gnu/awt/gtk/GtkMainThread.java: New file.
6118         * gnu/awt/gtk/GtkToolkit.java: New file.
6119         * gnu/awt/gtk/GtkWindowPeer.java: New file.
6120         * gnu/awt/gtk/gtkcommon.cc: New file.
6121         * gnu/awt/gtk/gtkcommon.h: New file.
6122         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
6123         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
6124         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
6125         * gnu/awt/gtk/natGtkMainThread.cc: New file.
6126         * gnu/awt/gtk/natGtkToolkit.cc: New file.
6127         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
6128
6129 2000-09-30  Tom Tromey  <tromey@cygnus.com>
6130
6131         * posix-threads.cc (_Jv_CondWait): Check to see if we are
6132         interrupted before modifying the cv's wait set.
6133         From Corey Minyard.
6134
6135 2000-09-30  Hans Boehm  <boehm@acm.org>
6136             Bryce McKinlay  <bryce@albatross.co.nz>
6137
6138         Implement bitmap descriptor based marking for Boehm GC.
6139
6140         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
6141         * configure: Rebuilt.
6142         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
6143         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
6144         method get_finalizer().
6145         (struct _Jv_ArrayVTable): Ditto. Declare method array with
6146         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
6147         (_Jv_AllocObj): Add new jclass parameter.
6148         (_Jv_AllocArray): Ditto.
6149         (_Jv_BuildGCDescr): New prototype.
6150         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
6151         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
6152         get_finalizer() instead of direct finalizer vtable offset.
6153         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
6154         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
6155         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
6156         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
6157         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
6158         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
6159         (_Jv_DetermineVTableIndex): Ditto.
6160         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
6161         calculations to account for new gc_descr field.
6162         * boehm.cc: #include gc_gcj.h.
6163         (obj_kind_x, obj_free_list): `#if 0'-ed away.
6164         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
6165         New commentary from HB. Mark the classes vtable.
6166         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
6167         (GC_DEFAULT_DESCR): New #define.
6168         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
6169         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
6170         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
6171         scan conservativly if size is less than min_heap_addr. Set vtable
6172         pointer of new object before returning.
6173         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
6174         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
6175         allocation for obj_kind_x.
6176         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
6177         (_Jv_AllocObj): Set vtable on returned object.
6178         (_Jv_AllocArray): Ditto.
6179         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
6180         (_Jv_NewPrimArray): Ditto.
6181         (_Jv_AllocObj): Declare as a friend.
6182         (_Jv_AllocArray): Ditto.
6183         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
6184         from &ObjectClass into new array class. Remove offset-by-one
6185         adjustments from `method' size calculations to account for gc_descr
6186         field.
6187
6188 2000-09-26  Tom Tromey  <tromey@cygnus.com>
6189
6190         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
6191         `remove', not `add'.
6192
6193 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6194
6195         * java/lang/natSystem.cc (file_encoding): Added return statement.
6196
6197 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
6198
6199         * Makefile.am: Re-work shell commands that exceeded command-line
6200         length limits.
6201         * Makefile.in: Rebuilt.
6202
6203         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
6204
6205         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
6206         * java/lang/natDouble.cc: Likewise.
6207         * java/lang/reflect/natMethod.cc: Likewise.
6208         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
6209
6210 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
6211
6212         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
6213         libgcjdata.a.
6214         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
6215         * acinclude.m4: Arrange for automake to not bring in a new
6216         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
6217         * Makefile.am: Leave it up to automake to subst GCJ.
6218         * aclocal.m4, configure, Makefile.in: Rebuilt.
6219
6220 2000-09-13  Tom Tromey  <tromey@cygnus.com>
6221
6222         * java/lang/reflect/natArray.cc (BooleanClass): New define.
6223         (get): Ensure Boolean class is initialized.
6224         * java/lang/reflect/natField.cc (BooleanClass): New define.
6225         (get): Ensure Boolean class is initialized.
6226
6227 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
6228
6229         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
6230         Initialize with anonymous class.
6231         (compareToIgnoreCase): New method.
6232
6233         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
6234         (uncaughtException): Set had_uncaught_exception.
6235         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
6236         exit with error status if set.
6237         (_Jv_RunMain): Ditto.
6238
6239 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
6240
6241         * configure: Rebuilt with new ../libtool.m4.
6242
6243 2000-09-11  Tom Tromey  <tromey@cygnus.com>
6244
6245         * java/lang/reflect/Field.java (toString): Don't rely on
6246         Class.toString.
6247
6248 2000-09-08  Tom Tromey  <tromey@cygnus.com>
6249
6250         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
6251         default decoder use iconv.
6252         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
6253         Let default encoder use iconv.
6254         * configure: Rebuilt.
6255         * configure.in: Check for nl_langinfo and <langinfo.h>.
6256         * java/lang/natSystem.cc (file_encoding): New function.
6257         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
6258
6259 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
6260
6261         * acinclude.m4: Simplify the tests for CC and CXX.
6262         * aclocal.m4, configure: Rebuilt.
6263
6264         * acinclude.m4: Include libtool macros from the source tree.
6265         * aclocal.m4, configure: Rebuilt.
6266
6267 2000-09-08  Warren Levy  <warrenl@cygnus.com>
6268
6269         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
6270         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
6271         * java/io/File.java (writeObject): Added.
6272         (readObject): Added.
6273         (serialVersionUID): Added.
6274         * java/io/ObjectOutputStream.java (writeObject): Initialized
6275         fieldsAlreadyWritten before recursion rather than after.
6276         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
6277         * java/io/OptionalDataException.java (serialVersionUID): Added.
6278         (OptionalDataException): Made package private.
6279         * java/io/SyncFailedException.java (SyncFailedException): Removed
6280         default constructor to match spec.
6281         * java/lang/Boolean.java (serialVersionUID): Added.
6282         * java/lang/Byte.java (serialVersionUID): Added.
6283         * java/lang/Character.java (serialVersionUID): Added.
6284         * java/lang/Double.java (serialVersionUID): Added.
6285         * java/lang/Float.java (serialVersionUID): Added.
6286         * java/lang/Integer.java (serialVersionUID): Added.
6287         * java/lang/Long.java (serialVersionUID): Added.
6288         * java/lang/Number.java (serialVersionUID): Added.
6289         * java/lang/Short.java (serialVersionUID): Added.
6290         * java/lang/String.java (serialVersionUID): Added.
6291         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
6292         to match spec.
6293         * java/lang/reflect/InvocationTargetException.java
6294         (serialVersionUID): Added.
6295         * java/net/URL.java (handler): Made transient.
6296         (hashCode): Added field for serialization, per spec. and use
6297         cached value if available.
6298         (serialVersionUID): Added.
6299         (URL): Initialize hashCode.
6300         (set): Adjust hashCode.
6301         (readObject): New Method to initialize the protocol handler when
6302         deserializing.
6303         (writeObject): New method.
6304         * java/text/BreakIterator.java: Removed 'implements Serializable'.
6305         * java/text/Collator.java: Removed 'implements Serializable'.
6306         * java/util/GregorianCalendar.java (serialVersionUID): Added.
6307         * java/util/Properties.java (serialVersionUID): Added.
6308         * java/util/Random.java (serialVersionUID): Added.
6309         (seed): Made private.
6310         (nextNextGaussian): Made private.
6311         (haveNextNextGaussian): Made private.
6312         * java/util/Stack.java (serialVersionUID): Added.
6313         * java/util/TimeZone.java (serialVersionUID): Added.
6314         * java/util/Vector.java (serialVersionUID): Added.
6315
6316 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
6317
6318         * Makefile.am (Thread.h): Don't be friends with native threads
6319         functions.
6320         * Makefile.in: Rebuilt.
6321         * java/lang/Thread.java (interrupt_flag): Make package-private.
6322
6323 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
6324
6325         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
6326         to avoid long long division.
6327
6328 2000-09-06  Tom Tromey  <tromey@cygnus.com>
6329
6330         * java/lang/reflect/Constructor.java (toString): Use `getName' for
6331         parameter types.
6332         * java/lang/reflect/Method.java (toString): Use `getName' for
6333         return type.
6334
6335         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
6336         `args' if method takes no parameters.
6337
6338         Fix for PR java.lang/339:
6339         * java/lang/natPosixProcess.cc (fail): New function.
6340         (cleanup): New function.
6341         (startProcess): Use them.  Create pipe so child can communicate
6342         exec failure back to parent.
6343
6344 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
6345
6346         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
6347         calls to `throw'.
6348         (send): Undo last patch. Remove the label only.
6349         (mcastGrp): Ditto.
6350         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
6351         `throw'.
6352         * java/net/natInetAdress.cc: Ditto.
6353
6354         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
6355
6356 2000-09-05  Tom Tromey  <tromey@cygnus.com>
6357
6358         * doc/cni.sgml: Updated from master copy.
6359
6360 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
6361
6362         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
6363         (write): Ditto.
6364         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
6365         stack. Synchronize.
6366         * java/lang/fdlibm.h: #undef __P if previously defined.
6367         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
6368         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
6369         block.
6370         (mcastGrp): Ditto.
6371
6372 2000-09-04  Tom Tromey  <tromey@cygnus.com>
6373
6374         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
6375         DELETE mode.
6376
6377 2000-09-04  Anthony Green  <green@redhat.com>
6378
6379         Fix for PR java.io/203:
6380         * java/io/File.java (createTempFile): Obey directory argument.
6381         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
6382         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
6383         variable to set java.io.tmpdir on non-WIN32 systems.
6384
6385 2000-09-04  Anthony Green  <green@redhat.com>
6386
6387         * java/io/File.java (deleteOnExit): New method.
6388         * gnu/gcj/runtime/FileDeleter.java: New class.
6389         * java/lang/natRuntime.cc (exit): Call
6390         FileDeleter.deleteOnExitNow()
6391         * Makefile.am: Add FileDeleter.java.
6392         * Makefile.in: Rebuilt.
6393
6394 2000-09-02  Tom Tromey  <tromey@cygnus.com>
6395
6396         * Makefile.in: Rebuilt.
6397         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
6398         environment variable.
6399
6400 2000-09-01  Andrew Haley  <aph@redhat.com>
6401
6402         * java/io/StreamTokenizer.java: Don't throw a
6403         NumberFormatException if a field is numeric as far as the
6404         StreamTokenizer is concerned but not as far as Double.valueOf() is
6405         concerned: return a zero instead.
6406
6407 2000-08-30  Tom Tromey  <tromey@cygnus.com>
6408
6409         * Makefile.in: Rebuilt.
6410         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
6411
6412 2000-08-28  Tom Tromey  <tromey@cygnus.com>
6413
6414         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
6415         gnu/gcj/awt/ComponentDataBlitOp.java,
6416         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
6417         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
6418         java/awt/color/ICC_ColorSpace.java,
6419         java/awt/color/ICC_Profile.java,
6420         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
6421         java/awt/image/ComponentColorModel.java,
6422         java/awt/image/ComponentSampleModel.java,
6423         java/awt/image/DataBuffer.java,
6424         java/awt/image/DataBufferByte.java,
6425         java/awt/image/DataBufferInt.java,
6426         java/awt/image/DataBufferUShort.java,
6427         java/awt/image/DirectColorModel.java,
6428         java/awt/image/IndexColorModel.java,
6429         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
6430         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
6431         java/awt/image/SinglePixelPackedSampleModel.java,
6432         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
6433         Removed Latin-1 copyright symbols.
6434         * java/util/zip/ZipFile.java: Indentation fixes.
6435
6436 2000-08-27  Mark Wielaard  <mark@klomp.org>
6437
6438         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
6439         constructor, close can delete the file, finalize calls close.
6440         * java/util/jar/JarFile.java: Constructor that takes mode now
6441         calls super.
6442
6443 2000-08-27  Anthony Green  <green@redhat.com>
6444
6445         * java/util/ArrayList.java, java/util/Timer.java,
6446         java/util/LinkedList.java, java/util/TimerTask.java,
6447         java/util/HashMap.java, java/util/AbstractMap.java,
6448         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
6449         java/util/SortedSet.java: Imported from GNU Classpath.
6450         * Makefile.in: Rebuilt.
6451         * Makefile.am: Added new files.
6452
6453 2000-08-26  Anthony Green  <green@redhat.com>
6454
6455         * Makefile.in: Rebuilt.
6456         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
6457         friend.
6458
6459         * prims.cc: Include ClassLoader.h.
6460         (_Jv_RunMain): When executing jar files, classpath must be the jar
6461         file only.  Lose our reference to the system ClassLoader in order
6462         to get a new one with the correct classpath.
6463         * java/lang/natSystem.cc (init_properties): When executing a jar
6464         file, only use the jar file for java.class.path.
6465
6466         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
6467         for bytecode archives.
6468
6469         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
6470         exists, but not Main-Class.
6471
6472 2000-08-23  Mark Wielaard  <mark@klomp.org>
6473
6474         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
6475         return -1 when fill() has no more data for the Inflater.
6476
6477 2000-08-23  Mark Wielaard  <mark@klomp.org>
6478
6479         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
6480         write(String) already does.
6481
6482 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6483
6484         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
6485         to `alive_flag', call `init'.
6486         (init): New native method.
6487         * gnu/gcj/jni/natNativeThread.cc (init): New native method
6488         implementation.
6489
6490 2000-08-21  Mark Wielaard  <mark@klomp.org>
6491
6492         * Makefile.in: Rebuilt.
6493         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
6494         a `friend class'.
6495         (java/lang/reflect/Field.h): Likewise.
6496         (java/lang/reflect/Method.h): Likewise.
6497         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
6498         `friend class'.
6499
6500 2000-08-21  Tom Tromey  <tromey@cygnus.com>
6501
6502         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
6503         debugging prints.
6504
6505 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
6506
6507         * java/lang/natSystem.cc (init_properties): Change sourceware
6508         reference to sources.redhat.com.
6509
6510         * include/java-props.h: Add _Jv_Jar_Class_Path.
6511         * prims.cc: Ditto.  Set it from `gij -jar file' option.
6512
6513         * java/lang/natSystem.cc (init_properties): Set java.class.path
6514         from
6515         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
6516
6517         * java/util/PropertyPermission.java: Import from GNU Classpath.
6518         * Makefile.in: Rebuilt.
6519         * Makefile.am: Add java/util/PropertyPermission.java.
6520         * java/lang/System.java: Add setProperty method.
6521
6522         * gij.cc (main): Add -jar option to execute jar files.
6523         (help): Describe -jar option.
6524         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
6525         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
6526         * gnu/gcj/runtime/FirstThread.java (main): New method.
6527
6528         * java/util/jar/Attributes.java: Correct comment spelling.
6529
6530 2000-08-20  Mark Wielaard  <mark@klomp.org>
6531
6532         * java/util/zip/Adler32.java: Make private variables really private
6533         * java/util/zip/CRC32.java: Make private variables really private
6534         * java/util/zip/CheckedInputStream.java: skip() could skip to much
6535         bytes
6536         * java/util/zip/InflaterInputStream.java: skip() could skip to
6537         much bytes
6538         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
6539         * java/util/zip/ZipFile.java: size() new 1.2 method
6540         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
6541         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
6542         closed
6543
6544 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
6545
6546         * java/util/jar/JarFile.java: Don't call
6547         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
6548         <mark@klomp.org>.
6549
6550 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
6551
6552         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
6553         Read the entire contents of the class file, not just what is
6554         available().
6555
6556         * java/net/JarURLConnection.java: getEntry doesn't take any
6557         arguments.  Return null if element is null.
6558
6559         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
6560         size from the archive, not the inflated size.
6561
6562         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
6563         java.util.zip.ZipFile.getEntry.
6564
6565         * gij.cc (help): Change sourceware reference to
6566         sources.redhat.com.
6567
6568 2000-08-19  Tom Tromey  <tromey@cygnus.com>
6569
6570         * java/util/zip/ZipInputStream.java (createZipEntry):
6571         Implemented.
6572
6573 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
6574
6575         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
6576         java/util/jar/JarException.java, java/util/jar/JarFile.java,
6577         java/util/jar/JarInputStream.java,
6578         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
6579         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
6580         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
6581         java/security/cert/CRL.java, java/security/cert/CRLException.java,
6582         java/security/cert/Certificate.java,
6583         java/security/cert/CertificateEncodingException.java,
6584         java/security/cert/CertificateException.java,
6585         java/security/cert/CertificateExpiredException.java,
6586         java/security/cert/CertificateFactory.java,
6587         java/security/cert/CertificateFactorySpi.java,
6588         java/security/cert/CertificateNotYetValidException.java,
6589         java/security/cert/CertificateParsingException.java,
6590         java/security/cert/X509CRL.java,
6591         java/security/cert/X509CRLEntry.java,
6592         java/security/cert/X509Certificate.java,
6593         java/security/cert/X509Extension.java: Imported from Classpath.
6594         * java/util/Hashtable.java: Imported from Classpath.
6595
6596         * java/util/zip/ZipInputStream.java: Create stub for
6597         createZipEntry.
6598
6599         * gcj/javaprims.h: Updated class list.
6600
6601         * Makefile.in, gcj/Makefile.in: Rebuilt.
6602         * Makefile.am (ordinary_java_source_files): Add these new classes.
6603
6604 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
6605
6606         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
6607         * gnu/gcj/awt/GLightweightPeer.java: New file.
6608         * java/awt/BorderLayout.java: Implemented all methods.
6609         * java/awt/Button.java (actionListener, actionCommand): Renamed
6610         and modifier change.
6611         (addNotify): Call super.
6612         (dispatchEventImpl): New method.
6613         (getListeners): New method.
6614         (label): Made package-private, not private.
6615         * java/awt/Canvas.java: Implemented class body.
6616         * java/awt/Color.java (brighter): New method.
6617         (darker): New method.
6618         (hashCode): New method.
6619         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
6620         (getGraphicsConfiguration): Delegate to
6621         getGraphicsConfigurationImpl().
6622         (getGraphicsConfigurationImpl): New method.
6623         (getToolkit): Only return value from peer if not null.
6624         (isDisplayable): Check with parent.
6625         (isShowing): No parent implies not showing.
6626         (getForeground): Check parent property if local is null.
6627         (getBackground): Likewise.
6628         (getFont): Likewise.
6629         (setForeground): Inform peer.
6630         (setBackground): Likewise
6631         (setLocale): Invalidate component.
6632         (getColorModel): Implemented.
6633         (setLocation): Invalidate, or ignore if no change.
6634         (setSize): Invalidate, or ignore if no change.
6635         (setBounds): Invalidate, or ignore if no change.
6636         (isOpaque): By default, heavyweight implies opaque.
6637         (isLightweight): Implemented.
6638         (getMaximumSize): Implemented.
6639         (doLayout): Implemented, NOP.
6640         (validate): Implemented, NOP.
6641         (invalidate): Only propagate to parent if parent was valid.
6642         (getGraphics): Implemented.
6643         (getFontMetrics): Implemented.
6644         (update): Implemented.
6645         (paintAll): Implemented.
6646         (repaint): Implemented all repaint methods.
6647         (print): Implemented.
6648         (printAll): Implemented.
6649         (createImage): Implemented.
6650         (dispatchEvent): Give the peer a chance to handle the event.
6651         (dispatchEventImpl): Dispatch paint events.
6652         (enableEvents): Lightweights enable events on parent component.
6653         (coalesceEvents): Coalesce paint events, and select event type
6654         using a switch.
6655         (coalescePaintEvents): New method.
6656         (processEvent): Fix unfortunate ordering of statements, and call
6657         correct method for MOUSE_CLICKED.
6658         (processPaintEvent): New method.
6659         (addNotify): Allow container to notify children before event
6660         mask is set in peer.
6661         (addNotifyContainerChildren): New method.
6662         (removeNotify): Visibility should not change on removeNotify.
6663         (paramString): Implemented.
6664         (list): Implemented two of the list methods.
6665         * Container (myInsets): Removed, insets are managed by peer.
6666         (getInsets): Query peer.
6667         (addImpl): Fix reparenting, enable events for lightweights,
6668         initialize component array.
6669         (validate): Call doLayout in validateTree() instead.
6670         (validateTree): Do nothing if already valid. Call beginValidate(),
6671         endValidate() on peer. Call validateTree() instead of validate()
6672         for children that are containers. Mark valid after validation of
6673         children.
6674         (setFont): Partial implementation.
6675         (paint): Implemented.
6676         (visitChildren): New method.
6677         (visitChild): New method.
6678         (update): Implemented.
6679         (print): Implemented.
6680         (paintComponents): Implemented.
6681         (printComponents): Consider translation and clipping.
6682         (getComponentAt): Ignore invisible children. Return this if no
6683         child match.
6684         (addNotify): Call super.
6685         (addNotifyContainerChildren): New method.
6686         (paramString): Implemented.
6687         (list): Implemented.
6688         * java/awt/EventQueue (invokeAndWait): Get system event queue the
6689         right way.
6690         (invokeLater): Likewise.
6691         (isDispatchThread): Likewise.
6692         * java/awt/FontMetrics (getLeading): Formula change.
6693         (getDescent): Consider leading also.
6694         (getMaxAscent): Default to getAscent().
6695         (getMaxDescent): Default to getDescent.
6696         (getMaxAdvance): Return value signifying unknown.
6697         (charWidth): Both methods implemented.
6698         (charsWidth): Implemented.
6699         (bytesWidth): Implemented.
6700         (getWidths): Implemented.
6701         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
6702         state): New fields.
6703         (Frame): Rearragend constuctor chaining to disallow null being
6704         passed as a graphics configuration.
6705         (getTitle): Return empty string if null.
6706         (dispose): Removed.
6707         (getIconImage): New method.
6708         (setIconImage): New method.
6709         (finalize): New method.
6710         (setMenuBar): Notify peer.
6711         (isResizable): New method.
6712         (setResizable): New method.
6713         (getState): New method.
6714         (getFont): Removed.
6715         (remove): Implemented.
6716         (removeNotify): New method.
6717         (getFrames): New method.
6718         * java/awt/Graphics.java: Implemented body of class.
6719         * java/awt/Graphics2D.java: New file.
6720         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
6721         * java/awt/Image.java: Implemented body of class.
6722         * java/awt/Panel.java (Panel): Call correct super constructor.
6723         (addNotify): Implemented.
6724         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
6725         * java/awt/RenderingHints.java: New file.
6726         * java/awt/Toolkit.java (createComponent): Implemented.
6727         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
6728         * java/awt/Window.java (Window): Two new constructors. Reordered
6729         constructor chaining.
6730         (getGraphicsConfigurationImpl): New method.
6731         (finalize): Call super.
6732         (addNotify): Call super.
6733         (pack): Do layout stuff.
6734         (show): Ensure that peer exists and that component is valid.
6735         (dispose): Dispose owned children.
6736         (getOwner): Simplify code, casting null pointers is valid.
6737         (getGraphicsConfiguration): Ask peer if local value is null.
6738         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
6739         getcmd().
6740         * java/awt/image/BufferedImage.java: New file.
6741         * java/awt/image/RasterOp.java: New file.
6742         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
6743         More powerful replacement for getColorModel().
6744         (getColorModel) Removed.
6745         (setEventMask) New method.
6746         * Makefile.am: Added new files.
6747         * Makefile.in: Rebuilt.
6748
6749 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6750
6751         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
6752         (finit_leg_name): New global.
6753         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
6754         `$finit$'. This is a backward compatibility hack.
6755         (java::lang::Class::_getMethods): Likewise.
6756
6757 2000-08-15  Andrew Haley  <aph@cygnus.com>
6758
6759         * include/jvm.h (_Jv_HashCode): New hash code.
6760
6761 2000-08-15  Tom Tromey  <tromey@cygnus.com>
6762
6763         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
6764
6765 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
6766
6767         * THANKS: More thanks.
6768
6769 2000-08-10  Tom Tromey  <tromey@cygnus.com>
6770
6771         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
6772         when errno not set.
6773         (connect): Likewise.
6774         (accept): Likewise.
6775         (getOption): Likewise.
6776         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
6777         case when errno not set.
6778         (peek): Likewise.
6779         (send): Likewise.
6780         (receive): Likewise.
6781         (mcastGrp): Likewise.
6782         (setOption): Likewise.
6783         (getOption): Likewise.
6784
6785 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
6786             John Stracke <francis@ecal.com>
6787
6788         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
6789         (connect): Don't falsely claim HTTP/1.1 compliance. Call
6790         getHttpHeaders().
6791         (disconnect): Don't unset connected flag.
6792         (getHeaderField (String)): Call connect() if not connected.
6793         (getHeaderField (int)): Ditto.
6794         (getHeaderFieldKey): Ditto.
6795         (getHttpHeaders): Don't call connect().
6796         * java/net/HttpURLConnection.java (instanceFollowRedirects,
6797         gotResponseVals): New fields.
6798         (getResponseCode): Call getResponseVals() conditionally.
6799         (getResponseMessage): Ditto.
6800         (getResponseVals): Call connect(). Don't throw FileNotFoundException.
6801
6802 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
6803
6804         * Makefile.am: Move beans and applet classes to awt_java_source_files.
6805         * Makefile.in: Rebuilt.
6806         * java/awt/Color.java (getTransparency): New method.
6807         * java/awt/Component.java: Various updates.
6808         * java/awt/Container.java (removeNotify): Call super.removeNotify()
6809         after dealing with children.
6810         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
6811         * java/awt/Window.java: Various new methods and updates.
6812         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
6813         to int for switch.
6814         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
6815         * java/awt/event/WindowEvent.java (paramString): Ditto.
6816         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
6817         try/catch block.
6818         * java/awt/geom/Point2D.java (clone): Ditto.
6819         * java/awt/geom/RectangularShape.java (clone): Ditto.
6820         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
6821         isAlphaPremultiplied): Make package-private, not private.
6822
6823 2000-08-08  Tom Tromey  <tromey@cygnus.com>
6824
6825         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
6826         surrogate characters.
6827         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
6828         true.
6829         (write): Correct handling of surrogate characters.
6830
6831 2000-08-07  Tom Tromey  <tromey@cygnus.com>
6832
6833         * java/lang/reflect/Method.java (hashCode): Use getName().
6834         (toString): Likewise.
6835         * java/lang/reflect/natMethod.cc (getType): Initialize
6836         exception_types.
6837
6838         * java/lang/reflect/Method.java (toString): Use Class.getName, not
6839         Class.toString.
6840         * java/lang/reflect/Field.java (toString): Correct formatting.
6841         From Corey Minyard.
6842
6843         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
6844         rewrote.
6845         (receive): Streamlined.
6846
6847 2000-08-05  Tom Tromey  <tromey@cygnus.com>
6848
6849         * java/io/PrintWriter.java: Merged comments from Classpath.
6850         (printlnUnsynchronized): Removed.
6851         (println()): Print the separator.
6852         (println): Call println(), not printlnUnsynchronized.
6853         (out): Now protected, to match spec.
6854
6855 2000-08-04  Tom Tromey  <tromey@cygnus.com>
6856
6857         * java/io/StreamTokenizer.java (TT_NONE): Now private.
6858         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
6859         For PR java.io/301.
6860
6861 2000-08-03  Warren Levy  <warrenl@cygnus.com>
6862
6863         * java/io/ObjectInputStream.java (readFields): Turn off
6864         readDataFromBlock while reading via GetField.
6865         (GetField$1.get(String, Object)): Pass Class of default value to
6866         getField.
6867         (getField): Allow for null default values.
6868
6869         * java/io/ObjectOutputStream.java: Fixed typo in comment.
6870         (PutField$1.put): Fixed calls of checkType in most of the put
6871         methods to pass the correct parameter.
6872         (PutField$1.put(String, Object)): Allow for null value arg.
6873         (PutField$1.write): Turn off writeDataAsBlocks while writing via
6874         PutField.
6875
6876         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
6877         typo in spec'ed field name.
6878         (getSerialPersistentFields): Changed spelling of method to match
6879         the correct spelling of the spec'ed field name.
6880
6881 2000-08-03  Tom Tromey  <tromey@cygnus.com>
6882
6883         * Makefile.in: Rebuilt.
6884         * Makefile.am (awt_java_source_files): Added new files.
6885
6886 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
6887
6888         * Makefile.am: Add new AWT stubs.
6889         * java/awt/Canvas.java: New placeholder class.
6890         * java/awt/Checkbox.java: Ditto.
6891         * java/awt/CheckboxMenuItem.java: Ditto.
6892         * java/awt/Choice.java: Ditto.
6893         * java/awt/Dialog.java: Ditto.
6894         * java/awt/FileDialog.java: Ditto.
6895         * java/awt/List.java: Ditto.
6896         * java/awt/ScrollPane.java: Ditto.
6897         * java/awt/TextField.java: Ditto.
6898         * java/awt/datatransfer/Clipboard.java: Ditto.
6899         * java/awt/Component.java (treeLock): Now a static String. Add comment.
6900         * java/awt/MenuItem.java (MenuItem): Add default constructor.
6901         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
6902         Some commented out. Partially implemented.
6903         * java/awt/natToolkit.cc: Removed file.
6904
6905 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
6906
6907         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
6908         Fixes "make -j" builds.
6909         * Makefile.in: Rebuild.
6910
6911 2000-08-02  Tom Tromey  <tromey@cygnus.com>
6912
6913         * Makefile.in: Rebuilt.
6914         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
6915         * java/net/natPlainSocketImpl.cc: Include posix.h.
6916         (accept): Use _Jv_select.
6917         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
6918         (receive): Use _Jv_select.
6919         * java/io/natFileDescriptorPosix.cc: Include posix.h.
6920         (available): Use _Jv_select.
6921         * java/lang/natSystem.cc: Include posix.h.
6922         (currentTimeMillis): Use _Jv_gettimeofday.
6923         * include/posix.h: New file.
6924         * posix.cc: New file.
6925
6926         * scripts/encodings.pl: New file.
6927         * Makefile.in: Rebuilt.
6928         * Makefile.am (convert_source_files): Added IOConverter.java.
6929         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
6930         IOConverter.
6931         (getDefaultDecodingClass): Canonicalize default encoding name.
6932         (getEncoder): Likewise.
6933         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
6934         IOConverter.
6935         (getDefaultDecodingClass): Canonicalize default encoding name.
6936         (getDecoder): Likewise.
6937         * gnu/gcj/convert/IOConverter.java: New file.
6938
6939 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
6940
6941         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
6942         to match C declaration in ffi.h.
6943         * Makefile.am: Add java/awt/Button.java.
6944         * Makefile.in: Rebuilt.
6945
6946 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6947
6948         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
6949         cast of the second argument to `ffi_raw_call' changed to match
6950         prototype.
6951
6952 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6953
6954         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
6955         argument to `ffi_raw_call' changed to match prototype.
6956
6957 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
6958
6959         * java/awt/Component.java (toString): Implemented.
6960         * java/awt/Container.java (addImpl): Remove FIXME. Only call
6961         dispatchEvent() to dispatch the event.
6962         (removeImpl): Ditto.
6963
6964 2000-07-30  Anthony Green  <green@redhat.com>
6965
6966         * java/awt/Component.java: Add treeLock object.
6967         (getTreeLock): Implement.
6968         (isShowing): Implement.
6969
6970 2000-07-30  Tom Tromey  <tromey@cygnus.com>
6971
6972         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
6973
6974         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
6975
6976         * java/awt/Window.java (addNotify): Wrote.
6977         (addWindowListener): Wrote.
6978         (getLocale): Wrote.
6979         (getWarningString): Wrote.
6980         (processEvent): Wrote.
6981         (processWindowEvent): Wrote.
6982         (removeWindowListener): Wrote.
6983         (show): Call validate(), setVisible().
6984         (toBack): Wrote.
6985         (toFront): Wrote.
6986
6987         * java/awt/Toolkit.java (createWindow): Declare.
6988
6989         * java/awt/Frame.java (addNotify): Use getToolkit to find
6990         toolkit.
6991
6992         * java/awt/Component.java (invalidate): Wrote.
6993         (isValid): Wrote.
6994         (getToolkit): Wrote.
6995
6996         * java/awt/Container.java (addContainerListener): Removed
6997         unnecessary cast.
6998         (removeContainerListener): Likewise.
6999         (addImpl): Wrote.
7000         (add(Component)): Use it.
7001         (add(String,Component)): Likewise.
7002         (add(Component,int)): Likewise.
7003         (add(Component,Object)): Likewise.
7004         (add(Component,Object,int)): Likewise.
7005         (doLayout): Wrote.
7006         (getAlignmentX): Wrote.
7007         (getAlignmentY): Wrote.
7008         (getComponentAt): Wrote.
7009         (getMaximumSize): Wrote.
7010         (invalidate): Wrote.
7011         (list(PrintStream,int)): Wrote.
7012         (list(PrintWriter,int)): Wrote.
7013         (getMinimumSize): Wrote.
7014         (getPreferredSize): Wrote.
7015         (printComponents): Wrote.
7016         (processContainerEvent): Look at containerListener, not
7017         componentListener.
7018         (remove): Added event processing and peer destruction.
7019         (removeAll): Use remove.
7020         (removeNotify): Wrote.
7021         (validate): Wrote.
7022         (validateTree): Wrote.
7023
7024         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
7025         * java/awt/Label.java (addNotify): Do nothing if peer exists.
7026         * java/awt/Container.java (addNotify): Don't create Container
7027         peer.
7028         * java/awt/Button.java (addNotify): Do nothing if peer exists.
7029
7030 2000-07-30  Tom Tromey  <tromey@cygnus.com>
7031
7032         * java/awt/Container.java (remove(int)): Wrote.
7033         (remove(Component)): Wrote.
7034         (add(Component)): Wrote.
7035         (add(Component,int)): Wrote.
7036         (removeAll): Wrote.
7037         (addNotify): Set our own peer.
7038         * java/awt/Scrollbar.java (listeners): Changed type.
7039         (Scrollbar): Don't initialize listeners.
7040         (addNotify): Wrote.
7041         (setValue): Call setValues.
7042         (setMinimum): Likewise.
7043         (setMaxPriority): Likewise.
7044         (setVisibleAmount): Likewise.
7045         (setValues): Wrote.
7046         (setUnitIncrement): Forward to peer.
7047         (setLineIncrement): Call setUnitIncrement.
7048         (setPageIncrement): Call setBlockIncrement.
7049         (setBlockIncrement): Forward to peer.
7050         (addAdjustmentListener): Rewrote.
7051         (removeAdjustmentListener): Rewrote.
7052         (processAdjustmentEvent): Rewrote.
7053         (paramString): Wrote.
7054         * Makefile.in: Rebuilt.
7055         * Makefile.am (awt_java_source_files): Added Button.java.
7056         * java/awt/Button.java: New file.
7057         * java/awt/Toolkit.java (createLabel): Declare.
7058         (createButton): Likewise.
7059         (createScrollbar): Likewise.
7060         (createContainer): Likewise.
7061         * java/awt/Label.java (addNotify): Wrote.
7062         (setAlignment): Call setAlignment in the peer.
7063         (setText): Call setText in the peer.
7064
7065 2000-07-28  Warren Levy  <warrenl@cygnus.com>
7066
7067         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
7068         NotSerializableException with just the class name.
7069
7070 2000-07-26  Andrew Haley  <aph@cygnus.com>
7071
7072         * interpret.cc (continue1): Insert missing break into switch.
7073
7074 2000-07-28  Warren Levy  <warrenl@cygnus.com>
7075
7076         * java/io/ObjectStreamException.java: Made constructors protected.
7077
7078 2000-07-27  Tom Tromey  <tromey@cygnus.com>
7079
7080         * java/io/OutputStreamWriter.java (close): Only flush if not
7081         closed.
7082
7083 2000-07-27  Warren Levy  <warrenl@cygnus.com>
7084
7085         * mauve-libgcj: Activated serialization tests.
7086         * gcj/field.h (getModifiers): Mask off unknown flags.
7087         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
7088         spurious bits don't cause discrepancies.
7089         * java/io/ObjectOutputStream.java: Fixed typo in comment.
7090         * java/io/ObjectStreamClass.java: Fixed typos in comments.
7091         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
7092         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
7093         * java/lang/Throwable.java (serialVersionUID): New field.
7094         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
7095         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
7096         unknown flags.
7097         * java/lang/reflect/natMethod.cc: Ditto.
7098         * java/security/Key.java (serialVersionUID): Removed field for now.
7099         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
7100         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
7101
7102 2000-07-22  Tom Tromey  <tromey@cygnus.com>
7103
7104         * java/awt/geom/RectangularShape.java (getPathIterator):
7105         Wrote.
7106
7107 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
7108
7109         * libjava/java/awt/image/ColorModel.java: New file, replaces the
7110         stub libjava/java/awt/ColorModel.java which was located in the
7111         wrong package.
7112         * libjava/java/awt/image/ComponentColorModel.java: New file.
7113         * libjava/java/awt/image/ComponentSampleModel.java: New file.
7114         * libjava/java/awt/image/DataBuffer.java: New file.
7115         * libjava/java/awt/image/DataBufferByte.java: New file.
7116         * libjava/java/awt/image/DataBufferInt.java: New file.
7117         * libjava/java/awt/image/DataBufferUShort.java: New file.
7118         * libjava/java/awt/image/DirectColorModel.java: New file.
7119         * libjava/java/awt/image/PackedColorModel.java: New file.
7120         * libjava/java/awt/image/Raster.java: New file.
7121         * libjava/java/awt/image/SampleModel.java: New file.
7122         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
7123         file.
7124         * libjava/java/awt/image/IndexColorModel.java: New file.
7125         * libjava/java/awt/image/ImageConsumer.java: Removed import of
7126         java.awt.ColorModel stub.
7127
7128         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
7129         * gnu/gcj/util/Buffers.java: New file, utility class.
7130
7131         * libjava/Makefile.am: Updated to include new files.
7132         * libjava/Makefile.in: Rebuilt.
7133
7134 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
7135
7136         * java/io/StreamTokenizer.java: Merged with classpath.
7137
7138 2000-07-20  Tom Tromey  <tromey@cygnus.com>
7139
7140         * Makefile.in: Rebuilt.
7141         * Makefile.am (awt_java_source_files): Updated for new files.
7142         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
7143         * java/awt/Label.java: New file.
7144         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
7145         (createIntersection, createUnion, getBounds2D): New methods.
7146         * java/awt/Scrollbar.java: New file.
7147         * java/awt/Shape.java: Updated to 1.2.
7148         * java/awt/geom/AffineTransform.java: New file.
7149         * java/awt/geom/Ellipse2D.java: New file.
7150         * java/awt/geom/NoninvertibleTransformException.java: New file.
7151         * java/awt/geom/PathIterator.java: New file.
7152         * java/awt/geom/Rectangle2D.java: New file.
7153         * java/awt/geom/RectangularShape.java: New file.
7154         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
7155         * java/awt/geom/IllegalPathStateException.java: New file.
7156
7157         * scripts/showval.java: New file.
7158
7159         * scripts/classes.pl (scan): Print inner classes properly.
7160         * gcj/javaprims.h: Updated class list.
7161
7162         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
7163         initialize String fields for interpreted classes.  Fixes bug
7164         reported by Hans Boehm.
7165
7166         * java/io/File.java (getParentFile): New method, from Classpath
7167         via Oskar Liljeblad.
7168
7169         * java/util/Vector.java (remove(Object)): Implemented.
7170
7171 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
7172
7173         * java/lang/natThrowable.cc (fillInStackTrace): Check for
7174         zero return from backtrace().
7175
7176 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
7177
7178         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
7179         synchronized block.
7180         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
7181         before calling notifyAll().
7182
7183 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
7184
7185         Add missing files from last check-in:
7186         * java/awt/image/ImageConsumer.java: New file.
7187         * java/awt/image/ImageProducer.java: New file.
7188         * java/awt/image/ImageObserver.java: New file.
7189
7190 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
7191
7192         Merged implementation of java.applet from classpath:
7193         * java/applet/Applet.java: New file.
7194         * java/applet/AppletContext.java: New file.
7195         * java/applet/AppletStub.java: New file.
7196         * java/applet/AudioClip.java: New file.
7197
7198         * Makefile.am: Added new java.applet classes.
7199         * Makefile.in: Rebuilt.
7200
7201 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
7202
7203         AWT Stuff:
7204         * java/util/ResourceBundle.java (getLocale): stub.
7205         * Makefile.am: Added new AWT classes.
7206         * Makefile.in: Rebuilt.
7207         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
7208         constructors. Fix toString() and paramString().
7209         * java/awt/AWTEventMulticaster.java: New class. Implemented.
7210         * java/awt/CheckboxGroup.java: New class.
7211         * java/awt/ColorModel.java: New class.
7212         * java/awt/Component.java: Added stubs for most methods. Implemented
7213         event dispatch.
7214         * java/awt/Container.java: ditto.
7215         * java/awt/ComponentOrientation.java: New class. Partly implemented.
7216         * java/awt/Cursor.java: ditto.
7217         * java/awt/Event.java: Fix paramString().
7218         * java/awt/EventQueue.java: New class. Implemented.
7219         * java/awt/Font.java: Added additional stub methods. Implemented
7220         toString().
7221         * java/awt/FontMetrics.java: New class. Stubbed.
7222         * java/awt/GraphicsConfiguration.java: New class. Complete, except for
7223         Java2D parts.
7224         * java/awt/Insets.java: New class. Implemented.
7225         * java/awt/Menu.java: Add new methods. Partially implemented.
7226         * java/awt/MenuItem.java: Add new methods and fields. Partially
7227         implemented.
7228         * java/awt/MenuShortcut.java: New class. Implemented.
7229         * java/awt/Panel.java: New class. Placeholder.
7230         * java/awt/PopupMenu.java: New class. Stubbed.
7231         * java/awt/Rectangle.java: New class. Implemented.
7232         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
7233         * java/awt/event/ActionEvent.java: Implement paramString().
7234         * java/awt/event/AdjustmentEvent.java: Implement paramString().
7235         * java/awt/event/ComponentEvent.java: Implement paramString().
7236         * java/awt/event/ContainerEvent.java: Implement paramString().
7237         * java/awt/event/FocusEvent.java: Implement paramString().
7238         * java/awt/event/HierarchyBoundsAdapter.java: New class.
7239         * java/awt/event/HierarchyBoundsListener.java: New class.
7240         * java/awt/event/HierarchyEvent.java: New class.
7241         * java/awt/event/HierarchyListener.java: New class.
7242         * java/awt/event/InputMethodEvent.java: Implement paramString().
7243         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
7244         exception if !catchExceptions.
7245         * java/awt/event/ItemEvent.java: Implement paramString().
7246         * java/awt/event/KeyEvent.java: Implement paramString().
7247         * java/awt/event/MouseEvent.java: Implement paramString().
7248         * java/awt/event/PaintEvent.java: Implement paramString().
7249         * java/awt/event/TextEvent.java: Implement paramString().
7250         * java/awt/event/WindowEvent.java: Implement paramString().
7251
7252         AWT Peer interfaces:
7253         * java/awt/peer/ButtonPeer.java: New file.
7254         * java/awt/peer/ListPeer.java: New file.
7255         * java/awt/peer/CanvasPeer.java: New file.
7256         * java/awt/peer/MenuBarPeer.java: New file.
7257         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
7258         * java/awt/peer/MenuComponentPeer.java: New file.
7259         * java/awt/peer/CheckboxPeer.java: New file.
7260         * java/awt/peer/MenuItemPeer.java: New file.
7261         * java/awt/peer/ChoicePeer.java: New file.
7262         * java/awt/peer/MenuPeer.java: New file.
7263         * java/awt/peer/ComponentPeer.java: Implemented.
7264         * java/awt/peer/PanelPeer.java: New file.
7265         * java/awt/peer/ContainerPeer.java: Implemented.
7266         * java/awt/peer/PopupMenuPeer.java: New file.
7267         * java/awt/peer/DialogPeer.java: New file.
7268         * java/awt/peer/ScrollPanePeer.java: New file.
7269         * java/awt/peer/FileDialogPeer.java: New file.
7270         * java/awt/peer/ScrollbarPeer.java: New file.
7271         * java/awt/peer/FontPeer.java: New file.
7272         * java/awt/peer/TextAreaPeer.java: New file.
7273         * java/awt/peer/FramePeer.java: Implemented.
7274         * java/awt/peer/TextComponentPeer.java: New file.
7275         * java/awt/peer/LabelPeer.java: New file.
7276         * java/awt/peer/TextFieldPeer.java: New file.
7277         * java/awt/peer/LightweightPeer.java: New file.
7278         * java/awt/peer/WindowPeer.java: Implemented.
7279
7280 2000-07-06  Tom Tromey  <tromey@cygnus.com>
7281
7282         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
7283         Initialize static final String fields.
7284
7285 2000-07-03  Tom Tromey  <tromey@cygnus.com>
7286
7287         * java/io/PrintWriter.java (print): Call write(String), not
7288         print(String).  See PR libgcj/277.
7289         (print(String)): Use write, not out.write.
7290
7291 2000-06-30  Tom Tromey  <tromey@cygnus.com>
7292
7293         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
7294
7295 2000-06-27  Andrew Haley  <aph@cygnus.com>
7296
7297        * java/io/File.java (createTempFile): Close the FileDescriptor
7298        used to create a temp file.  Fixes some of PR 203.
7299        * java/io/natFileDescriptorPosix.cc (open): Call garbage
7300        collection if we run out of file handles.
7301
7302 2000-06-28  Warren Levy  <warrenl@cygnus.com>
7303
7304         * gnu/java/security/provider/Gnu.java: New file.
7305         * gnu/java/security/provider/SHA.java: New file.
7306         * gnu/java/security/provider/SHA1PRNG.java: New file.
7307         * Makefile.am: Added the above files.
7308         * Makefile.in: Rebuilt.
7309
7310         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
7311
7312 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
7313
7314         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
7315         (destroyed_flag): Removed.
7316         (isDestroyed, removeGroup, removeThread): Test for parent == null.
7317         (activeCount): Added spec note.
7318
7319 2000-06-27  Warren Levy  <warrenl@cygnus.com>
7320
7321         * java/security/Principal.java: New file.
7322         * Makefile.am: Added Principal.java.
7323         * Makefile.in: Rebuilt.
7324
7325 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
7326
7327         * java/awt/event/MouseEvent.java: Fixed coordinate space
7328         confusion.
7329
7330 2000-06-27  Tom Tromey  <tromey@cygnus.com>
7331
7332         * java/io/PushbackInputStream.java (read): If there are characters
7333         in the buffer, don't also call super.read().
7334         * java/io/PushbackReader.java (read): If there are characters in
7335         the buffer, don't also call super.read().
7336
7337         * java/lang/Double.java (valueOf): Call parseDouble().
7338
7339 2000-06-26  Warren Levy  <warrenl@cygnus.com>
7340
7341         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
7342         (newVal): Renamed to newValue.
7343         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
7344         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
7345         (revokeNow): Renamed to invalidateRefs.
7346         * java/io/OptionalDataException.java: Updated FIXME.
7347         (eof): New placeholder field.
7348         (length); Ditto.
7349         * java/io/WriteAbortedException.java (message): Made transient.
7350         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
7351         * java/lang/Throwable.java (stackTrace): Made transient.
7352         * java/net/InetAddress.java: Made Serializable.
7353         * java/security/KeyPair.java: Made Serializable.
7354         * java/security/Provider.java: Replaced with Classpath version that
7355         implements serialization and proper methods.
7356         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
7357         (limits): Renamed to choiceLimits.
7358
7359 2000-06-24  Tom Tromey  <tromey@cygnus.com>
7360
7361         * java/lang/natDouble.cc (parseDouble): Renamed from
7362         doubleValueOf.
7363         * java/lang/Double.java (parseDouble): Renamed from
7364         doubleValueOf.  Now public.
7365
7366 2000-06-23  Andrew Haley  <aph@cygnus.com>
7367
7368         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
7369         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
7370
7371 2000-06-23  Tom Tromey  <tromey@cygnus.com>
7372
7373         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
7374         * java/lang/natDouble.cc: Always include <alloca.h>.
7375         Fix for PR libgcj/267.
7376
7377 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
7378
7379         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
7380         comply with classpath VM spec.
7381         (add(Group)): Rename to addGroup().
7382         * java/lang/Thread.java (Thread): Use addThread().
7383         * java/lang/natThread.cc (finish_): Use removeThread().
7384
7385 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
7386
7387         * java/lang/ThreadGroup.java: Merged with classpath.
7388         * prims.cc (_Jv_RunMain): Don't use `main_group'.
7389         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
7390         argument.
7391         * java/lang/Thread.java (Thread): Bootstrap initial thread from
7392         ThreadGroup.root if Thread.currentThread is null. Honour the
7393         ThreadGroup's max priority setting.
7394
7395 2000-06-18  Tom Tromey  <tromey@cygnus.com>
7396
7397         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
7398         returned class.  For PR gcj/260.
7399
7400 2000-06-16  Tom Tromey  <tromey@cygnus.com>
7401
7402         Fix for PR libgcj/261:
7403         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
7404         argument.
7405         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
7406         argument.  (This is a patch from long ago that somehow went
7407         missing.)
7408
7409 2000-06-15  Tom Tromey  <tromey@cygnus.com>
7410
7411         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
7412         (read): Use it.
7413         (write): Likewise.
7414
7415 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
7416
7417         Fix for PR java.lang/258:
7418         * prims.cc (_Jv_PrimClass): Set state of primitive class to
7419         JV_STATE_DONE, to prevent accidental initialization.
7420         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
7421         _Jv_InterfaceAssignableFrom if target is an interface and source is an
7422         interface or an abstract class. Remove redundant initializeClass calls.
7423         Remove duplicate if_idt test.
7424         (_Jv_InterfaceAssignableFrom): New function.
7425         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
7426
7427 2000-05-31  Tom Tromey  <tromey@cygnus.com>
7428
7429         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
7430         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
7431         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
7432         (NUM_OBJECT_METHODS): New define.
7433         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
7434         `array_vtable' parameter.  Added assertion.
7435         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
7436         parameter.
7437
7438 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
7439
7440         * gcj/cni.h: Include <string.h>.
7441         * defineclass.cc: Include <alloca.h>.
7442         * interpret.cc: Ditto.
7443         * gij.cc: Include <stdlib.h>.
7444
7445 2000-05-30  Tom Tromey  <tromey@cygnus.com>
7446
7447         * include/name-finder.h: Include <sys/wait.h>.
7448         (_Jv_name_finder::pid): Now of type `pid_t'.
7449         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
7450         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
7451         `proc.waitFor()'.
7452
7453 2000-05-24  Warren Levy  <warrenl@cygnus.com>
7454
7455         * java/io/ObjectOutputStream.java (writeObject): Use component type
7456         when writing arrays.
7457         Fixed typo.
7458
7459 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
7460
7461         Fix for PR libgcj/226:
7462         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
7463         since this is an installed header.
7464
7465         Fix for PR libgcj/228:
7466         * java/util/zip/ZipFile (getInputStream): Create inflater with
7467         nowrapper option.
7468
7469         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
7470         with DataFormatException.
7471
7472 2000-05-20  Tom Tromey  <tromey@cygnus.com>
7473
7474         * Makefile.in: Rebuilt.
7475         * Makefile.am (hack1): Removed.
7476         (awto_files): Likewise.
7477         (libgcjawt_la_SOURCES): Likewise.
7478         (EXTRA_libgcjawt_la_SOURCES): Likewise.
7479         (libgcjawt_la_DEPENDENCIES): Likewise.
7480         (libgcjawt_la_LIBADD): Likewise.
7481         (libgcjawt_la_LDFLAGS): Likewise.
7482         (libgcjawt_la_LINK): Likewise.
7483         ($(awt_java_source_files:.java=.class)): Likewise.
7484         (libgcj.zip): Don't depend on AWT files.
7485         (MOSTLYCLEANFILES): Don't include AWT files.
7486         ($(awto_files)): Removed.
7487         (nat_headers): Removed AWT files.
7488         (cond_awt_java_source_files): Removed.
7489         (ordinary_java_source_files): Added awt_java_source_files.
7490         * libgcj.spec.in (*lib): Removed -lgcjawt.
7491         * configure: Rebuilt.
7492         * configure.in: Removed --enable-java-awt option.
7493
7494 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
7495
7496         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
7497         (ZipEntry): Copy the `name' field.
7498         (clone): Implement JDK1.2 method.
7499         (setCompressedSize): ditto.
7500         (hashCode): ditto.
7501
7502 2000-05-19  Tom Tromey  <tromey@cygnus.com>
7503
7504         * java/io/BufferedWriter.java: Merged with Classpath.
7505         * java/io/BufferedOutputStream.java: Merged with Classpath.
7506
7507 2000-05-16  Andrew Haley  <aph@cygnus.com>
7508
7509         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
7510         build_ia64_frame_state.
7511         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
7512         defintion in gcc.
7513
7514 2000-05-15  Warren Levy  <warrenl@cygnus.com>
7515
7516         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
7517         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
7518         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
7519         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
7520         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
7521         * gnu/gcj/beans/editors/FontEditor.java: Removed.
7522         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
7523         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
7524         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
7525         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
7526         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
7527         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
7528         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
7529         * gnu/gcj/beans/editors/StringEditor.java: Removed.
7530         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
7531         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
7532         * gnu/gcj/io/NullOutputStream.java: Removed.
7533         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
7534         * gnu/gcj/lang/ArrayHelper.java: Removed.
7535         * gnu/gcj/lang/ClassHelper.java: Removed.
7536         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
7537
7538         * gnu/java/beans/BeanInfoEmbryo.java: New file.
7539         * gnu/java/beans/EmptyBeanInfo.java: New file.
7540         * gnu/java/beans/ExplicitBeanInfo.java: New file.
7541         * gnu/java/beans/IntrospectionIncubator.java: New file.
7542         * gnu/java/beans/editors/ColorEditor.java: New file.
7543         * gnu/java/beans/editors/FontEditor.java: New file.
7544         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
7545         * gnu/java/beans/editors/NativeByteEditor.java: New file.
7546         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
7547         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
7548         * gnu/java/beans/editors/NativeIntEditor.java: New file.
7549         * gnu/java/beans/editors/NativeLongEditor.java: New file.
7550         * gnu/java/beans/editors/NativeShortEditor.java: New file.
7551         * gnu/java/beans/editors/StringEditor.java: New file.
7552         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
7553         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
7554         * gnu/java/io/NullOutputStream.java: New file.
7555         * gnu/java/io/ObjectIdentityWrapper.java: New file.
7556         * gnu/java/lang/ArrayHelper.java: New file.
7557         * gnu/java/lang/ClassHelper.java: New file.
7558         * gnu/java/lang/reflect/TypeSignature.java: New file.
7559
7560         * Makefile.am: Updated for moving Classpath files from gnu/gcj
7561         namespace back to the original Classpath gnu/java namespace.
7562         * Makefile.in: Rebuilt.
7563
7564         * java/beans/Beans.java: Namespace change.
7565         * java/beans/EventSetDescriptor.java: Namespace change.
7566         * java/beans/Introspector.java: Namespace change.
7567         * java/beans/PropertyEditorManager.java: Namespace change.
7568         * java/io/ObjectInputStream.java: Namespace change.
7569         * java/io/ObjectOutputStream.java: Namespace change.
7570         * java/io/ObjectStreamClass.java: Namespace change.
7571         * java/io/ObjectStreamField.java: Namespace change.
7572
7573 2000-04-21  Warren Levy  <warrenl@cygnus.com>
7574
7575         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
7576         now that compiler patch is available.
7577         Removed unneeded System.loadLibrary.
7578         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
7579         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
7580
7581 2000-04-19  Andrew Haley  <aph@cygnus.com>
7582
7583         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
7584         and target classes have been initialized.
7585
7586 2000-04-19  Andrew Haley  <aph@cygnus.com>
7587
7588         * java/lang/String.java: implement Serializable, Comparable.
7589         (compareTo (Object)): New method.
7590
7591 2000-04-19  Warren Levy  <warrenl@cygnus.com>
7592
7593         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
7594         instead of getField to retrieve non-public field.
7595         (getSerialPersistantFields): Ditto.
7596
7597 2000-04-18  Warren Levy  <warrenl@cygnus.com>
7598
7599         * mauve-libgcj: Turned off object serialization tests temporarily
7600         due to compiler error.
7601
7602 2000-04-17  Warren Levy  <warrenl@cygnus.com>
7603
7604         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
7605         to avoid build problem.
7606         (DEBUGln): Ditto.
7607         * mauve-libgcj: Turned on object serialization tests.
7608
7609 2000-04-17  Tom Tromey  <tromey@cygnus.com>
7610
7611         * libgcj.spec.in (*lib): Added -lgcjawt.
7612
7613 2000-04-17  Andrew Haley  <aph@cygnus.com>
7614
7615         * Makefile.am: Add new files:
7616         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
7617         gnu/gcj/io/shs.cc.
7618         * Makefile.in: Rebuilt.
7619
7620         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
7621         interface that has no implementations.
7622         Check for an attempt to assign an abstract class to an interface.
7623
7624         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
7625         if we fail to find MessageDigest.getInstance ("SHA").
7626
7627         * gnu/gcj/io/SimpleSHSStream.java: New file.
7628         * gnu/gcj/io/natSimpleSHSStream.java: New file.
7629         * gnu/gcj/io/shs.cc: New file.
7630         * gnu/gcj/io/shs.h: new file.
7631
7632         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
7633         serializable.
7634
7635         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
7636         punctuation from the classname of an array element.
7637
7638         * gcj/javaprims.h: Add SimpleDigestStream.
7639
7640 2000-04-17  Andrew Haley  <aph@cygnus.com>
7641
7642         * java/lang/natClass.cc (getPrivateField): Make recursive calls
7643         to getPrivateField for superclasses.
7644
7645 2000-04-14  Andrew Haley  <aph@cygnus.com>
7646
7647         * Makefile.am: Add new files:
7648         java/io/ObjectOutputStream$PutField.h,
7649         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
7650         java/io/natObjectOutputStream.cc
7651         * Makefile.in: Rebuilt.
7652         * gcj/Makefile.in: Rebuilt.
7653         * include/Makefile.in: Rebuilt.
7654         * java/lang/Class.h (getPrivateField): New method.
7655         (getPrivateMethod): Ditto.
7656         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
7657         and java::io::ObjectStreamClass our friends.
7658         * java/lang/natClass.cc (getPrivateField): New method.
7659         (getPrivateMethod): Ditto.
7660         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
7661         * gcj/javaprims.h: Add serialization classes.
7662         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
7663         (setByteField): Ditto.
7664         (setCharField): Ditto.
7665         (setDoubleField): Ditto.
7666         (setFloatField): Ditto.
7667         (setIntField): Ditto.
7668         (setLongField): Ditto.
7669         (setShortField): Ditto.
7670         (setObjectField): Ditto.
7671         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
7672         Java.
7673         (getByteField): Ditto.
7674         (getCharField): Ditto.
7675         (getDoubleField): Ditto.
7676         (getFloatField): Ditto.
7677         (getIntField): Ditto.
7678         (getLongField): Ditto.
7679         (getShortField): Ditto.
7680         (getObjectField): Ditto.
7681         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
7682         Java.
7683         (getSerialPersistantFields): Ditto.
7684         (getDefinedSUID): Ditto.
7685         * java/io/natObjectOutputStream.cc: New file.
7686         * java/io/natObjectInputStream.cc: New file.
7687
7688 2000-04-13  Warren Levy  <warrenl@cygnus.com>
7689
7690         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
7691         problems.  Revert to previous version to reproduce and when fixed.
7692
7693 2000-04-13  Warren Levy  <warrenl@cygnus.com>
7694
7695         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
7696         * gnu/gcj/io/NullOutputStream.java: New file.
7697         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
7698         * java/io/BlockDataException.java: New file.
7699         * java/io/Externalizable.java: New file.
7700         * java/io/InvalidClassException.java: New file.
7701         * java/io/InvalidObjectException.java: New file.
7702         * java/io/NotActiveException.java: New file.
7703         * java/io/NotSerializableException.java: New file.
7704         * java/io/ObjectInput.java: New file.
7705         * java/io/ObjectInputStream.java: New file.
7706         * java/io/ObjectInputValidation.java: New file.
7707         * java/io/ObjectOutput.java: New file.
7708         * java/io/ObjectOutputStream.java: New file.
7709         * java/io/ObjectStreamClass.java: New file.
7710         * java/io/ObjectStreamConstants.java: New file.
7711         * java/io/ObjectStreamField.java: New file.
7712         * java/io/Replaceable.java: New file.
7713         * java/io/Resolvable.java: New file.
7714         * java/io/SerializablePermission.java: New file.
7715         * java/io/WriteAbortedException.java: New file.
7716         * java/security/BasicPermission.java: New file.
7717         * java/security/DigestOutputStream.java: New file.
7718         * java/security/Guard.java: New file.
7719         * java/security/Permission.java: New file.
7720         * java/security/PermissionCollection.java: New file.
7721         * Makefile.am: Added above files.
7722         * Makefile.in: Rebuilt.
7723
7724         * java/beans/Beans.java (instantiate): Activated serialization code.
7725         * java/lang/SecurityManager.java (checkPermission): New method.
7726
7727 2000-04-12  Warren Levy  <warrenl@cygnus.com>
7728
7729         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
7730         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
7731         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
7732         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
7733         * gnu/gcj/beans/editors/ColorEditor.java: New file.
7734         * gnu/gcj/beans/editors/FontEditor.java: New file.
7735         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
7736         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
7737         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
7738         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
7739         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
7740         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
7741         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
7742         * gnu/gcj/beans/editors/StringEditor.java: New file.
7743         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
7744         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
7745         * gnu/gcj/lang/ArrayHelper.java: New file.
7746         * gnu/gcj/lang/ClassHelper.java: New file.
7747         * java/beans/BeanDescriptor.java: New file.
7748         * java/beans/BeanInfo.java: New file.
7749         * java/beans/Beans.java: New file.
7750         * java/beans/Customizer.java: New file.
7751         * java/beans/DesignMode.java: New file.
7752         * java/beans/EventSetDescriptor.java: New file.
7753         * java/beans/FeatureDescriptor.java: New file.
7754         * java/beans/IndexedPropertyDescriptor.java: New file.
7755         * java/beans/IntrospectionException.java: New file.
7756         * java/beans/Introspector.java: New file.
7757         * java/beans/MethodDescriptor.java: New file.
7758         * java/beans/ParameterDescriptor.java: New file.
7759         * java/beans/PropertyChangeEvent.java: New file.
7760         * java/beans/PropertyChangeListener.java: New file.
7761         * java/beans/PropertyChangeSupport.java: New file.
7762         * java/beans/PropertyDescriptor.java: New file.
7763         * java/beans/PropertyEditor.java: New file.
7764         * java/beans/PropertyEditorManager.java: New file.
7765         * java/beans/PropertyEditorSupport.java: New file.
7766         * java/beans/PropertyVetoException.java: New file.
7767         * java/beans/SimpleBeanInfo.java: New file.
7768         * java/beans/VetoableChangeListener.java: New file.
7769         * java/beans/VetoableChangeSupport.java: New file.
7770         * java/beans/Visibility.java: New file.
7771         * java/beans/beancontext/BeanContext.java: New file.
7772         * java/beans/beancontext/BeanContextChild.java: New file.
7773         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
7774         * java/beans/beancontext/BeanContextChildSupport.java: New file.
7775         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
7776         * java/beans/beancontext/BeanContextEvent.java: New file.
7777         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
7778         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
7779         * java/beans/beancontext/BeanContextProxy.java: New file.
7780         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
7781         New file.
7782         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
7783         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
7784         New file.
7785         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
7786         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
7787         New file.
7788         * java/beans/beancontext/BeanContextServices.java: New file.
7789         * java/beans/beancontext/BeanContextServicesListener.java: New file.
7790         * java/util/AbstractCollection.java: New file.
7791         * java/util/AbstractList.java: New file.
7792         * java/util/Arrays.java: New file.
7793         * Makefile.am: Added above files.
7794         * Makefile.in: Rebuilt.
7795
7796 2000-04-11  Warren Levy  <warrenl@cygnus.com>
7797
7798         * java/awt/AWTError.java: New file.
7799         * java/awt/AWTEvent.java: New file.
7800         * java/awt/AWTException.java: New file.
7801         * java/awt/ActiveEvent.java: New file.
7802         * java/awt/Adjustable.java: New file.
7803         * java/awt/BorderLayout.java: New file.
7804         * java/awt/Color.java: New file.
7805         * java/awt/Component.java: New file.
7806         * java/awt/Container.java: New file.
7807         * java/awt/Dimension.java: New file.
7808         * java/awt/Event.java: New file.
7809         * java/awt/Font.java: New file.
7810         * java/awt/Frame.java: New file.
7811         * java/awt/Graphics.java: New file.
7812         * java/awt/IllegalComponentStateException.java: New file.
7813         * java/awt/Image.java: New file.
7814         * java/awt/ItemSelectable.java: New file.
7815         * java/awt/LayoutManager.java: New file.
7816         * java/awt/LayoutManager2.java: New file.
7817         * java/awt/Menu.java: New file.
7818         * java/awt/MenuBar.java: New file.
7819         * java/awt/MenuComponent.java: New file.
7820         * java/awt/MenuContainer.java: New file.
7821         * java/awt/MenuItem.java: New file.
7822         * java/awt/Paint.java: New file.
7823         * java/awt/PaintContext.java: New file.
7824         * java/awt/Point.java: New file.
7825         * java/awt/Rectangle.java: New file.
7826         * java/awt/Shape.java: New file.
7827         * java/awt/TextArea.java: New file.
7828         * java/awt/TextComponent.java: New file.
7829         * java/awt/Toolkit.java: New file.
7830         * java/awt/Transparency.java: New file.
7831         * java/awt/Window.java: New file.
7832         * java/awt/natToolkit.cc: New file.
7833         * java/awt/event/AWTEventListener.java: New file.
7834         * java/awt/event/ActionEvent.java: New file.
7835         * java/awt/event/ActionListener.java: New file.
7836         * java/awt/event/AdjustmentEvent.java: New file.
7837         * java/awt/event/AdjustmentListener.java: New file.
7838         * java/awt/event/ComponentAdapter.java: New file.
7839         * java/awt/event/ComponentEvent.java: New file.
7840         * java/awt/event/ComponentListener.java: New file.
7841         * java/awt/event/ContainerAdapter.java: New file.
7842         * java/awt/event/ContainerEvent.java: New file.
7843         * java/awt/event/ContainerListener.java: New file.
7844         * java/awt/event/FocusAdapter.java: New file.
7845         * java/awt/event/FocusEvent.java: New file.
7846         * java/awt/event/FocusListener.java: New file.
7847         * java/awt/event/InputEvent.java: New file.
7848         * java/awt/event/InputMethodEvent.java: New file.
7849         * java/awt/event/InputMethodListener.java: New file.
7850         * java/awt/event/InvocationEvent.java: New file.
7851         * java/awt/event/ItemEvent.java: New file.
7852         * java/awt/event/ItemListener.java: New file.
7853         * java/awt/event/KeyAdapter.java: New file.
7854         * java/awt/event/KeyEvent.java: New file.
7855         * java/awt/event/KeyListener.java: New file.
7856         * java/awt/event/MouseAdapter.java: New file.
7857         * java/awt/event/MouseEvent.java: New file.
7858         * java/awt/event/MouseListener.java: New file.
7859         * java/awt/event/MouseMotionAdapter.java: New file.
7860         * java/awt/event/MouseMotionListener.java: New file.
7861         * java/awt/event/PaintEvent.java: New file.
7862         * java/awt/event/TextEvent.java: New file.
7863         * java/awt/event/TextListener.java: New file.
7864         * java/awt/event/WindowAdapter.java: New file.
7865         * java/awt/event/WindowEvent.java: New file.
7866         * java/awt/event/WindowListener.java: New file.
7867         * java/awt/geom/Dimension2D.java: New file.
7868         * java/awt/geom/Point2D.java: New file.
7869         * java/awt/peer/ComponentPeer.java: New file.
7870         * java/awt/peer/ContainerPeer.java: New file.
7871         * java/awt/peer/FramePeer.java: New file.
7872         * java/awt/peer/WindowPeer.java: New file.
7873         * java/util/Collection.java: New file.
7874         * java/util/Comparator.java: New file.
7875         * java/util/Iterator.java: New file.
7876         * java/util/List.java: New file.
7877         * java/util/ListIterator.java: New file.
7878         * Makefile.am: Added above files.
7879         * Makefile.in: Rebuilt.
7880
7881 2000-04-10  Warren Levy  <warrenl@cygnus.com>
7882
7883         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
7884         * java/lang/FirstThread.java: Ditto.
7885         * java/lang/StringBuffer.java: Ditto.
7886         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7887
7888         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
7889         Special case handled in java.math.BigInteger.
7890         * java/math/BigInteger.java (divide): Handle the special case when
7891         dividing by 1 and the high bit of the dividend is set.
7892         (setShiftRight): Handle case when count == 0.
7893
7894 2000-04-05  Andrew Haley  <aph@cygnus.com>
7895
7896         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
7897         special case.
7898
7899 2000-04-05  Andrew Haley  <aph@cygnus.com>
7900
7901         * sysdep/ia64.c (rse_address_add): Delete.
7902         (IS_NaT_COLLECTION_ADDR): Delete.
7903         (ia64_backtrace_helper): check for null unwind_info.
7904
7905         * sysdep/ia64-frame.h: add calc_caller_bsp.
7906
7907         * java/lang/natThrowable.cc (printRawStackTrace): Flush
7908         PrintWriter.
7909
7910         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
7911         (_Jv_remI): Likewise.
7912         (_Jv_divJ): Likewise.
7913         (_Jv_remJ): Likewise.
7914
7915         * interpret.cc (continue1): Use divide subroutines to guarantee
7916         correct Java standard behaviour.
7917         Floating-point division should not abort; make it so.
7918
7919 2000-03-29  Tom Tromey  <tromey@cygnus.com>
7920
7921         * configure: Rebuilt.
7922         * configure.in: Test against `libgcj_sjlj', not
7923         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
7924         to be set even when using sjlj.
7925
7926 2000-03-24  Andrew Haley  <aph@cygnus.com>
7927
7928         * Makefile.am: Add file addr2name.awk.
7929         * Makefile.in: Rebuilt.
7930         * addr2name.awk: New file.
7931         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
7932         lookups on ia64.
7933         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
7934         blank line.
7935
7936 2000-03-22  Andrew Haley  <aph@cygnus.com>
7937
7938         * configure.host: Add -funwind-tables for IA64.
7939         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
7940         * Makefile.in: Rebuilt.
7941         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
7942         * sysdep/ia64.c: New file.
7943         * sysdep/ia64-frame.h: New file.
7944         * configure.in: Add sysdep/ia64.c for ia64.
7945         * configure: Rebuilt.
7946
7947 2000-03-17  Andrew Haley  <aph@cygnus.com>
7948
7949         * java/lang/natString.cc: Remove `register' keyword.
7950         interpret.cc: ditto.
7951
7952 2000-03-16  Andrew Haley  <aph@cygnus.com>
7953
7954         * configure.host (ia64): Enable interpreter.
7955
7956 2000-03-14  Hans Boehm  <boehm@acm.org>
7957
7958         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
7959
7960 2000-03-14  Andrew Haley  <aph@cygnus.com>
7961
7962         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
7963         `_exception'.
7964
7965 2000-03-10  Andrew Haley  <aph@cygnus.com>
7966
7967         * java/lang/ieeefp.h: Import latest version from fdlibm.
7968
7969 2000-03-14  Andrew Haley  <aph@cygnus.com>
7970
7971         * prims.cc (_Jv_ThrowSignal): New function.
7972         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
7973         (catch_fpe): Ditto.
7974         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
7975         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
7976         * include/ppc-signal.h: New file.
7977
7978 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
7979
7980         * java/lang/Thread.java: Declare `data' as Object, not RawData.
7981         * java/lang/natThread.java (initialize_native): Cast `data' to
7982         jobject.
7983         * gnu/gcj/RawData.java: Clarify documentation.
7984
7985         From Gregory R. Warnes <warnes@biostat.washington.edu>:
7986         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
7987         `jarFile', not `jarFileURL'.
7988
7989 2000-05-15  Andrew Haley  <aph@cygnus.com>
7990
7991         * include/ppc-signal.h: New file.
7992
7993 2000-05-11  Tom Tromey  <tromey@cygnus.com>
7994
7995         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
7996         file headers, don't include `size' in the skip call.
7997
7998 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
7999
8000         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
8001         Avoid arrayCopy() call where possible. Update `count' _after_ calling
8002         arrayCopy().
8003         (replace): Reimplemented. Fix javadoc.
8004         (reverse): Call ensureCapacity_unsynchronized().
8005         (StringBuffer (String)): Use DEFAULT_CAPACITY.
8006
8007         (replace): Calculate length for arraycopy() correctly.
8008
8009 2000-05-09  Tom Tromey  <tromey@cygnus.com>
8010
8011         * java/lang/StringBuffer.java (toString): Don't mark buffer as
8012         shared.
8013         (insert(int,char[],int,int): New method.
8014         (delete): New method from Classpath.
8015         (deleteCharAt): Likewise.
8016         (substring): Likewise.
8017         (shared): No longer private.
8018         Added JavaDoc comments from Classpath.
8019         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
8020         shared.
8021
8022 2000-05-07  Tom Tromey  <tromey@cygnus.com>
8023
8024         * Makefile.in: Rebuilt.
8025         * Makefile.am (LIBLINK): New macro.
8026         (libgcj_la_LINK): Use it.
8027         (libgcjawt_la_LINK): Likewise.
8028
8029 2000-05-06  Tom Tromey  <tromey@cygnus.com>
8030
8031         * Makefile.in: Rebuilt.
8032         * Makefile.am (libgcj.zip): Don't pass -L to javac.
8033
8034 2000-05-05  Tom Tromey  <tromey@cygnus.com>
8035
8036         Fix for PR libgcj/220:
8037         * Makefile.in: Rebuilt.
8038         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
8039         (jv_convert_LDFLAGS): Likewise.
8040         (libgcj_la_LDFLAGS): Likewise.
8041         (GCJLINK): New macro.
8042         (jv_convert_LINK): Use it.
8043         (gij_LINK): Likewise.
8044         (libgcj_la_LINK): New macro.
8045         (libgcjawt_la_LINK): Likewise.
8046
8047 2000-05-04  Tom Tromey  <tromey@cygnus.com>
8048
8049         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
8050         field.
8051         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
8052         `0x0008'.
8053         Include Modifier.h.
8054
8055 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
8056
8057         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
8058         (_Jv_IsAssignableFrom): Ditto.
8059         (_Jv_IsInstanceOf): Ditto.
8060         (_Jv_CheckCast): Ditto.
8061         (_Jv_CheckArrayStore): Ditto.
8062         * java/lang/Class.h (_Jv_InitClass): Ditto.
8063         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
8064         not `0'.
8065         (notify): Ditto.
8066         (notifyAll): Ditto.
8067         (wait): Ditto.
8068         (_Jv_MonitorExit): Ditto.
8069         * boehm.cc (_Jv_MarkObj): Ditto.
8070         (_Jv_MarkObj): Ditto.
8071         (_Jv_MarkArray): Ditto.
8072         * prims.cc (_Jv_AllocObject): Ditto.
8073         (_Jv_NewObjectArray): Ditto.
8074         (_Jv_NewPrimArray): Ditto.
8075         (_Jv_Malloc): Ditto.
8076         (_Jv_Realloc): Ditto.
8077         (_Jv_MallocUnchecked): Ditto.
8078         (_Jv_divI): Ditto.
8079         (_Jv_remI): Ditto.
8080         (_Jv_divJ): Ditto.
8081         (_Jv_remJ): Ditto.
8082
8083 2000-05-04  Tom Tromey  <tromey@cygnus.com>
8084
8085         * java/util/Locale.java (Locale): Don't explicitly check for
8086         null.
8087         * java/util/Hashtable.java (containsKey): Don't explicitly check
8088         for null.
8089         (get): Likewise.
8090         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
8091         null.
8092         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
8093         for null.
8094         * java/text/StringCharacterIterator.java
8095         (StringCharacterIterator): Don't check for null.
8096         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
8097         for null pointer.
8098         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
8099         check for null pointer.
8100         (leaveGroup): Likewise.
8101         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
8102         comment.
8103         (setData): Likewise.
8104         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
8105         for `p==null'.
8106
8107 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
8108
8109         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
8110         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
8111         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
8112         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
8113         -rpath for in-gcc builds.
8114         * Makefile.in: Rebuilt.
8115
8116 2000-04-28  Tom Tromey  <tromey@cygnus.com>
8117
8118         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
8119         Fix for PR gcj/218.
8120
8121 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
8122
8123         * libjava/java/lang/String.java (toString): Remove `final' hack.
8124
8125 2000-04-05  Tom Tromey  <tromey@cygnus.com>
8126
8127         Runtime support for PR gcj/2:
8128         * prims.cc (_Jv_ThrowNullPointerException): New function.
8129         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
8130
8131 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
8132
8133         * prims.cc (_Jv_NewObjectArray): Fix typo.
8134
8135 2000-04-26  Tom Tromey  <tromey@cygnus.com>
8136
8137         * Makefile.in: Rebuilt.
8138         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
8139
8140 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
8141
8142         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
8143         calling main.
8144
8145 2000-04-22  Anthony Green  <green@cygnus.com>
8146
8147         * include/jvm.h (__builtin_expect): Define as unused for now.
8148         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
8149         (notify): Ditto.
8150         (notifyAll): Ditto.
8151         (wait): Ditto.
8152         (_Jv_MonitorExit): Ditto.
8153         * boehm.cc (_Jv_MarkObj): Ditto.
8154         (_Jv_MarkObj): Ditto.
8155         (_Jv_MarkArray): Ditto.
8156         (_Jv_AllocBytes): Ditto.
8157         * prims.cc (_Jv_AllocObject): Ditto.
8158         (_Jv_NewObjectArray): Ditto.
8159         (_Jv_NewPrimArray): Ditto.
8160         (_Jv_Malloc): Ditto.
8161         (_Jv_Realloc): Ditto.
8162         (_Jv_MallocUnchecked): Ditto.
8163         (_Jv_divI): Ditto.
8164         (_Jv_remI): Ditto.
8165         (_Jv_divJ): Ditto.
8166         (_Jv_remJ): Ditto.
8167
8168         * include/Makefile.in: Rebuilt.
8169         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
8170
8171 2000-04-21  Tom Tromey  <tromey@cygnus.com>
8172
8173         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
8174         Yet another new version from Classpath.
8175
8176         Fix for PR libgcj/15:
8177         * java/util/natGregorianCalendar.cc (_REENTRANT,
8178         _POSIX_PTHREAD_SEMANTICS): Don't define.
8179         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
8180         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
8181         Don't define.
8182         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
8183         define.
8184         * configure: Rebuilt.
8185         * configure.in: If using POSIX threads, define _REENTRANT if
8186         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
8187         GETHOSTBYNAME_R_NEEDS_REENTRANT.
8188
8189         * java/io/PipedInputStream.java, java/io/PipedReader.java,
8190         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
8191         version from Classpath.
8192
8193         Fix for PR libgcj/213:
8194         * Makefile.in: Rebuilt.
8195         * Makefile.am (gij_SOURCES): Added gij.cc.
8196         (EXTRA_gij_SOURCES): Removed.
8197         (gij_LDADD): Removed gij.lo.
8198         (gij_DEPENDENCIES): Likewise.
8199         ($(gij_OBJECTS)): Depend on nat_headers.
8200
8201         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
8202         `setURL', not `url.set'.
8203
8204 2000-04-20  Tom Tromey  <tromey@cygnus.com>
8205
8206         Fix for PR java.io/204:
8207         * java/io/PipedInputStream.java, java/io/PipedReader.java,
8208         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
8209         from Classpath.
8210
8211         Fix for PR libgcj/212:
8212         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
8213         * include/jvm.h (_Jv_word, _Jv_word2): Define.
8214         * java/lang/Class.h (_Jv_word): Declare.
8215
8216         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
8217
8218 2000-04-19  Tom Tromey  <tromey@cygnus.com>
8219
8220         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
8221         doesn't have a loader.
8222
8223 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
8224
8225         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
8226         MAYBE_MARK to ptr_t, for compatibility with new GC version.
8227
8228 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
8229
8230         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
8231         libgcj/202.
8232         (available): Initialize `where' to prevent bogus compiler warning.
8233
8234 2000-04-12  Tom Tromey  <tromey@cygnus.com>
8235
8236         * java/lang/natString.cc (intern): Temporarily disable finalizer
8237         registration.
8238
8239         * java/lang/natString.cc (unintern): Added `obj' argument.
8240         (intern): Register finalizer for string.
8241         * java/lang/String.java (unintern): Now static; added obj
8242         argument.
8243
8244 2000-04-11  Tom Tromey  <tromey@cygnus.com>
8245
8246         * java/util/Vector.java (VectorEnumeration): Now `final'.
8247         * java/util/Hashtable.java (HashtableEntry): Now `final'.
8248         (HashtableEnumeration): Likewise.
8249         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
8250         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
8251
8252 2000-04-10  Warren Levy  <warrenl@cygnus.com>
8253
8254         * java/io/ObjectStreamException.java: New file.
8255         * java/io/OptionalDataException.java: New file.
8256         * java/io/StreamCorruptedException.java: New file.
8257         * java/math/BigDecimal.java: New file.
8258         * java/sql/CallableStatement.java: New file.
8259         * java/sql/Connection.java: New file.
8260         * java/sql/DataTruncation.java: New file.
8261         * java/sql/DatabaseMetaData.java: New file.
8262         * java/sql/Date.java: New file.
8263         * java/sql/Driver.java: New file.
8264         * java/sql/DriverManager.java: New file.
8265         * java/sql/DriverPropertyInfo.java: New file.
8266         * java/sql/PreparedStatement.java: New file.
8267         * java/sql/ResultSet.java: New file.
8268         * java/sql/ResultSetMetaData.java: New file.
8269         * java/sql/SQLException.java: New file.
8270         * java/sql/SQLWarning.java: New file.
8271         * java/sql/Statement.java: New file.
8272         * java/sql/Time.java: New file.
8273         * java/sql/Timestamp.java: New file.
8274         * java/sql/Types.java: New file.
8275         * Makefile.am: Added above new files.
8276         * Makefile.in: Rebuilt.
8277
8278         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
8279         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
8280         DatagramSocket constructor instead of null.
8281
8282 2000-04-08  Anthony Green  <green@cygnus.com>
8283
8284         * include/posix-threads.h (_Jv_MutexUnlock): Replace
8285         _JV_NOT_OWNER.
8286
8287 2000-04-08  Anthony Green  <green@cygnus.com>
8288
8289         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
8290         (_Jv_MutexUnlock): Ditto.
8291         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
8292         (_Jv_MutexUnlock): Ditto.
8293
8294 2000-04-08  Anthony Green  <green@cygnus.com>
8295
8296         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
8297         (ensureCapacity_unsynchronized): New private method.
8298         (append): Use ensureCapacity_unsynchronized.
8299
8300 2000-04-08  Tom Tromey  <tromey@cygnus.com>
8301
8302         * Makefile.in: Rebuilt.
8303         * Makefile.am (awt_java_source_files): Added new files.
8304         * java/awt/IllegalComponentStateException.java: New file.
8305         * java/awt/ItemSelectable.java: New file.
8306         * java/awt/event/WindowEvent.java: Finished.
8307         * java/awt/event/TextEvent.java: Finished.
8308         * java/awt/event/ContainerEvent.java: New file.
8309         * java/awt/Component.java (getX, getY): New methods.
8310         * java/awt/event/PaintEvent.java: New file.
8311         * java/awt/event/MouseEvent.java: New file.
8312         * java/awt/ActiveEvent.java: New file.
8313         * java/awt/event/KeyEvent.java: Finished.
8314         * java/awt/event/ItemEvent.java: New file.
8315         * java/awt/Adjustable.java: New file.
8316         * java/awt/event/InputMethodEvent.java: New file.
8317         * java/awt/event/InputEvent.java: Finished.
8318         * java/awt/event/FocusEvent.java: New file.
8319         * java/awt/event/MouseMotionAdapter.java: New file.
8320         * java/awt/event/MouseAdapter.java: New file.
8321         * java/awt/event/KeyAdapter.java: New file.
8322         * java/awt/event/FocusAdapter.java: New file.
8323         * java/awt/event/ContainerAdapter.java: New file.
8324         * java/awt/event/ComponentEvent.java: Finished.
8325         * java/awt/event/AdjustmentEvent.java: New file.
8326         * java/awt/event/ComponentAdapter.java: New file.
8327         * java/awt/event/ActionEvent.java: Finished.
8328         * java/awt/event/MouseMotionListener.java: New file.
8329         * java/awt/event/MouseListener.java: New file.
8330         * java/awt/event/ItemListener.java: New file.
8331         * java/awt/event/InputMethodListener.java: New file.
8332         * java/awt/event/ContainerListener.java: New file.
8333         * java/awt/event/FocusListener.java: New file.
8334         * java/awt/event/ComponentListener.java: New file.
8335         * java/awt/event/AWTEventListener.java: New file.
8336         * java/awt/event/AdjustmentListener.java: New file.
8337
8338 2000-04-08  Anthony Green  <green@cygnus.com>
8339
8340         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
8341         check when we have to.
8342
8343         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
8344         x) as `inline'.
8345
8346         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
8347         one method call.
8348
8349         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
8350         inline hasMoreElements.
8351
8352 2000-04-05  Tom Tromey  <tromey@cygnus.com>
8353
8354         * configure: Rebuilt.
8355         * configure.in: Recognize --enable-java-awt.
8356         (AWT): New conditional.
8357         * Makefile.in: Rebuilt.
8358         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
8359         requested.
8360         (libgcjawt_la_SOURCES): New macro.
8361         (EXTRA_libgcjawt_la_SOURCES): Likewise.
8362         (libgcjawt_la_DEPENDENCIES): Likewise.
8363         (libgcjawt_la_LIBADD): Likewise.
8364         (libgcjawt_la_LDFLAGS): Likewise.
8365         (libgcj.zip): Depend on cond_java_awt_source_files
8366         (cond_awt_java_source_files): New macro.
8367         (MOSTLYCLEANFILES): Added awto_files.
8368         (awto_files): New macro.  Use where javao_files used.
8369         (nat_headers): Use cond_awt_java_source_files.
8370
8371 2000-04-04  Tom Tromey  <tromey@cygnus.com>
8372
8373         * Makefile.in: Rebuilt.
8374         * Makefile.am (awt_java_source_files): Added AWTException.java.
8375         * java/awt/AWTException.java: New file.
8376
8377 2000-04-03  Tom Tromey  <tromey@cygnus.com>
8378
8379         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
8380         commentary from Alex.
8381
8382         * Makefile.in: Rebuilt.
8383         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
8384         From H.J. Lu.
8385
8386 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
8387
8388         * configure: Rebuilt.
8389         * configure.in: Add --disable-jvmpi.
8390         * include/config.h.in: Rebuilt.
8391         * acconfig.h: Add ENABLE_JVMPI.
8392
8393         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
8394         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
8395         (_Jv_JVMPI_Notify_THREAD_END): New define.
8396         (_Jv_JVMPI_Notify_THREAD_END): New define.
8397         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
8398         (_Jv_JVMPI_Notify_THREAD_END): Declare.
8399         (_Jv_JVMPI_Notify_THREAD_END): Declare.
8400
8401         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
8402         events.
8403
8404         * java/lang/natThread.cc: Include JVMPI headers if necessary.
8405         (finish_): Generate JVMPI thread end events.
8406         (run_): Generate JVMPI thread start events.
8407         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
8408         preloaded JNI library.
8409         Include JVMPI headers if necessary.
8410         (run): Generate JVMPI thread start events.
8411
8412         * boehm.cc: Define GC_disable and GC_enable.
8413         (_Jv_DisableGC): New function.
8414         (_Jv_EnableGC): New function.
8415         (disable_gc_mutex): Declare.
8416         * nogc.cc (_Jv_DisableGC): New function.
8417         (_Jv_EnableGC): New function.
8418
8419         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
8420         (_Jv_JVMPI_Interface): Define.
8421         (jvmpiEnableEvent): New function.
8422         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
8423
8424         * include/jvmpi.h: New file.
8425
8426 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
8427
8428         * Makefile.in: New #defines and friends for Thread.h.
8429         * Makefile.am: Ditto.
8430         * posix-threads.cc: (struct starter): Remove `object'.
8431         (_Jv_CondWait): Use interruptable condition variables and new
8432         recursive mutexes. New return codes on interrupt or non-ownership
8433         of mutex.
8434         (_Jv_CondNotify): Ditto.
8435         (_Jv_CondNotifyAll): Ditto.
8436         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
8437         the target thread by signaling its wait condition.
8438         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
8439         not the starter struct. Initialize wait_mutex and wait_cond.
8440         (_Jv_MutexLock): New recursive mutex implementation. Moved from
8441         posix-threads.h.
8442         (_Jv_MutexUnlock): Ditto.
8443         (really_start): Set info->data->thread from pthread_self() to work
8444         around a race condition. Destroy wait_mutex and wait_cond when run()
8445         returns.
8446         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
8447         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
8448         set.
8449         startable_flag: New private field.
8450         (Thread): Initialize `startable_flag'.
8451         (toString): Check for null thread group.
8452         * java/lang/natThread.cc: (struct natThread): New fields
8453         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
8454         (class locker): Removed.
8455         (initialize_native): Initialize `join_cond' and `join_mutex'.
8456         (interrupt): Now just calls _Jv_ThreadInterrupt().
8457         (join): Simplified. Just wait on the target thread's join condition.
8458         (finish_): Remove join list code. Unset thread group. Signal
8459         potential joiners by notifying the dying threads join_cond.
8460         (start): Check for illegal restarts.
8461         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
8462         act appropriatly.
8463         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
8464         #defines and #ifdefs.
8465         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
8466         `wait_mutex', `next'.
8467         (struct _Jv_ConditionVariable_t): Define as a struct instead of
8468         directly mapping to pthread_cond_t.
8469         (struct _Jv_Mutex_t): New recursive implementation.
8470         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
8471         _Jv_HaveCondDestroy: Never define this for posix-threads.
8472         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
8473         (_Jv_CondNotifyAll): Ditto.
8474         (_Jv_MutexLock): Ditto.
8475         (_Jv_MutexUnlock): Ditto.
8476         (_Jv_MutexInit): Changed to reflect new mutex implementation.
8477         (_Jv_MutexDestroy): Ditto.
8478         (_Jv_CondDestroy): Removed.
8479         (_Jv_PthreadGetMutex): Removed.
8480         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
8481         error. Add a FIXME about this.
8482         (_Jv_CondNotifyAll): Ditto.
8483         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
8484         _JV_NOT_OWNER on other errors. Add FIXME.
8485
8486 2000-03-26  Tom Tromey  <tromey@cygnus.com>
8487
8488         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
8489         set, throw it.
8490         (call): Don't throw exception here.
8491
8492 2000-03-26  Tom Tromey  <tromey@cygnus.com>
8493
8494         * java/lang/mprec.h: Use SIZEOF_VOID_P.
8495         * interpret.cc: Use SIZEOF_VOID_P.
8496         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
8497         (_Jv_loadLong): Likewise.
8498         (_Jv_storeDouble): Likewise.
8499         * configure: Rebuilt.
8500         * configure.in: Check size of void*.
8501
8502         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
8503
8504 2000-03-26  Hans Boehm  <boehm@acm.org>
8505
8506         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
8507         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
8508         machine.
8509         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
8510         __IEEE_LITTLE_ENDIAN appropriately on IA64.
8511         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
8512         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
8513         case.
8514         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
8515         (FFI_RAW_SIZE): Likewise.
8516         (_Jv_InterpMethod::ncode): Use them.
8517         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
8518         STORED): Define differently on a 64 bit machine.
8519         (continue1): Use ffi_java_raw_call when appropriate.
8520
8521 2000-03-24  Warren Levy  <warrenl@cygnus.com>
8522
8523         * java/math/BigInteger.java(divide): Handle the special case when
8524         dividing by 1 and the high bit of the dividend is set.
8525         (setShiftRight): Handle case when count == 0.
8526
8527 2000-03-24  Warren Levy  <warrenl@cygnus.com>
8528
8529         * java/awt/Font.java(isBold): Fix syntax error.
8530         (isItalic): ditto.
8531         * java/awt/Frame.java(postEvent): ditto.
8532         * java/awt/Menu.java(postEvent): ditto.
8533         * java/awt/MenuBar.java(postEvent): ditto.
8534         * java/awt/Toolkit.java(init): Included a stub.
8535
8536 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
8537
8538         * java/awt/Event.java: Add all the event type constants.
8539         (Event): Implemented constructors.
8540         (controlDown): Implemented.
8541         (metaDown): Implemented.
8542         (paramString): Stubbed.
8543         (shiftDown): Implemented.
8544         (toString): Implemented.
8545         (translate): Implemented.
8546
8547 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
8548
8549         * java/lang/natClass.cc (isInstance): Initialize `this'.
8550         (isAssignableFrom): Initialize `this' and `klass'.
8551         (_Jv_IsAssignableFrom): If an interface has no idt, it is not
8552         implemented by any loaded class, so return false.
8553         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
8554         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
8555
8556 2000-03-19  Warren Levy  <warrenl@cygnus.com>
8557
8558         * java/awt/Color.java: Specified java.io for Serializable.
8559         * java/awt/Toolkit.java: Imported java.net.URL.
8560
8561 2000-03-19  Warren Levy  <warrenl@cygnus.com>
8562
8563         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
8564
8565 2000-03-16  Warren Levy  <warrenl@cygnus.com>
8566
8567         * java/awt/Color.java: New file.
8568         * java/awt/Graphics.java: New file.
8569         * java/awt/Image.java: New file.
8570         * java/awt/Paint.java: New file.
8571         * java/awt/PaintContext.java: New file.
8572         * java/awt/Transparency.java: New file.
8573         * java/util/Collection.java: New file.
8574         * java/util/Comparator.java: New file.
8575         * java/util/Iterator.java: New file.
8576         * java/util/List.java: New file.
8577         * java/util/ListIterator.java: New file.
8578         * Makefile.am: Added above new files.
8579         * Makefile.in: Rebuilt.
8580
8581         * java/awt/Font.java (PLAIN): New field.
8582         (BOLD): New field.
8583         (ITALIC): New field.
8584         (ROMAN_BASELINE): New field.
8585         (CENTER_BASELINE): New field.
8586         (HANGING_BASELINE): New field.
8587         (name): New field.
8588         (style): New field.
8589         (size): New field.
8590         (pointSize): New field.
8591         (Font): Implemented constructor.
8592         (isPlain): Implemented method.
8593         (isBold): Implemented method.
8594         (isItalic): Implemented method.
8595         (getName): Implemented method.
8596         (getStyle): Implemented method.
8597         (getSize): Implemented method.
8598         (getSize2D): Implemented method.
8599         (decode): Stubbed.
8600         * java/awt/Frame.java (getFont): Stubbed.
8601         (postEvent): Stubbed.
8602         (remove): Stubbed.
8603         * java/awt/Menu.java (postEvent): Stubbed.
8604         * java/awt/MenuBar.java (getFont): Stubbed.
8605         (postEvent): Stubbed.
8606         * java/awt/Toolkit.java (getImage): Added abstract method.
8607
8608 2000-03-15  Tom Tromey  <tromey@cygnus.com>
8609
8610         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
8611
8612         * prims.cc (win32_exception_handler): Reformatted.
8613
8614         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
8615         (_Jv_HaveMutexDestroy): Likewise.
8616
8617 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
8618
8619         * java/io/natFileDescriptorWin32.cc: New file.
8620         * java/io/natFileWin32.cc: New file.
8621         * java/net/natInetAddress.cc: Added conditional inclusion of
8622         Windows / Winsock headers.
8623         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
8624         inclusion of Windows / Winsock headers.
8625         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
8626         Windows / Winsock headers.
8627         * include/win32-signal.h: New file.
8628         * include/win32-threads.h: New file.
8629         * win32-threads.cc: New file.
8630         * exception.cc (win32_get_restart_frame): New function.
8631         * prims.cc (win32_exception_handler): New function.
8632         (main_init) Performs Winsock initialisation.
8633         (main_init) Installs exeception handler.
8634
8635 2000-03-14  Tom Tromey  <tromey@cygnus.com>
8636
8637         * jni.cc (mangled_name): Fixed assertion.
8638         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
8639         turned assert into actual failure.
8640
8641 2000-03-09  Warren Levy  <warrenl@cygnus.com>
8642
8643         * java/security/Key.java(serialVersionUID): Set to 0 for now.
8644         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
8645         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
8646
8647 2000-03-09  Warren Levy  <warrenl@cygnus.com>
8648
8649         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
8650         * java/security/DigestException.java: New file.
8651         * java/security/GeneralSecurityException.java: New file.
8652         * java/security/InvalidAlgorithmParameterException.java: New file.
8653         * java/security/InvalidKeyException.java: New file.
8654         * java/security/InvalidParameterException.java: New file.
8655         * java/security/Key.java: New file.
8656         * java/security/KeyException.java: New file.
8657         * java/security/KeyPair.java: New file.
8658         * java/security/KeyPairGenerator.java: New file.
8659         * java/security/KeyPairGeneratorSpi.java: New file.
8660         * java/security/NoSuchProviderException.java: New file.
8661         * java/security/PrivateKey.java: New file.
8662         * java/security/Provider.java: New file.
8663         * java/security/PublicKey.java: New file.
8664         * java/security/SecureRandom.java: New file.
8665         * java/security/Security.java: New file.
8666         * java/security/Signature.java: New file.
8667         * java/security/SignatureException.java: New file.
8668         * java/security/interfaces/DSAKey.java: New file.
8669         * java/security/interfaces/DSAParams.java: New file.
8670         * java/security/interfaces/DSAPrivateKey.java: New file.
8671         * java/security/interfaces/DSAPublicKey.java: New file.
8672         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
8673         * java/security/interfaces/RSAPrivateKey.java: New file.
8674         * java/security/interfaces/RSAPublicKey.java: New file.
8675         * java/security/spec/AlgorithmParameterSpec.java: New file.
8676         * java/security/spec/InvalidKeySpecException.java: New file.
8677         * java/security/spec/InvalidParameterSpecException.java: New file.
8678         * java/security/spec/KeySpec.java: New file.
8679         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
8680         * java/security/spec/RSAPrivateKeySpec.java: New file.
8681         * java/security/spec/RSAPublicKeySpec.java: New file.
8682         * Makefile.am: Added above java.security files.
8683         * Makefile.in: Rebuilt.
8684
8685         * java/security/MessageDigest.java: Rewritten.
8686         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
8687
8688 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
8689
8690         * README: Updated.
8691
8692 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
8693
8694         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
8695         _Jv_PrepareConstantTimeTables.
8696         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
8697         classes should have an IDT, so don't return if klass is an array
8698         class.
8699
8700 2000-03-08  Tom Tromey  <tromey@cygnus.com>
8701
8702         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
8703         of `void' to be created.
8704
8705 2000-03-08  Warren Levy  <warrenl@cygnus.com>
8706
8707         * java/math/BigInteger.java(signum): Handle zero properly.
8708
8709 2000-03-07  Tom Tromey  <tromey@cygnus.com>
8710
8711         * All files: Updated copyright information.
8712         * COPYING: New file.
8713         * COPYING.LIB: Removed.
8714         * LIBGCJ_LICENSE: We now use GPL + special exception.
8715
8716 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
8717
8718         * resolve.cc (_Jv_SearchMethodInClass): New function.
8719         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
8720         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
8721
8722 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
8723
8724         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
8725         (struct _Jv_ifaces): New declaration.
8726         JV_CLASS: New macro definition.
8727         (getComponentType): Relocate below isArray() for inlining.
8728         (getModifiers): Declare `inline'.
8729         (getSuperclass): Ditto.
8730         (isArray): Ditto.
8731         (isPrimitive): Ditto.
8732         (_Jv_IsAssignableFrom): New prototype.
8733         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
8734         linkage.
8735         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
8736         Check for JV_STATE_DONE before invoking initializeClass().
8737         (_Jv_PrepareConstantTimeTables): New prototype.
8738         (_Jv_GetInterfaces): Ditto.
8739         (_Jv_GenerateITable): Ditto.
8740         (_Jv_GetMethodString): Ditto.
8741         (_Jv_AppendPartialITable): Ditto.
8742         (_Jv_FindIIndex): Ditto.
8743         depth, ancestors, idt: New class fields.
8744
8745         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
8746         inline function `_Jv_IsAssignableFrom'. Use that function.
8747         (isInstance): Declare `inline'.
8748         (initializeClass): Get lock on class before checking `state'. Unlock
8749         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
8750         the lock held.
8751         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
8752         (_Jv_IsAssignableFrom): New inline function. Test assignability using
8753         class->depth and ancestor table.
8754         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
8755         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
8756         _Jv_IsAssignableFrom.
8757         (_Jv_CheckArrayStore): Ditto.
8758         (_Jv_LookupInterfaceMethodIdx): New function.
8759         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
8760         (_Jv_PrepareConstantTimeTables): New function.
8761         (_Jv_IndexOf): Ditto.
8762         (_Jv_GetInterfaces): Ditto.
8763         (_Jv_GenerateITable): Ditto.
8764         (_Jv_GetMethodString): Ditto.
8765         (_Jv_AppendPartialITable): Ditto.
8766         iindex_mutex, iindex_mutex_initialized: New static fields.
8767         (_Jv_FindIIndex): New function.
8768
8769         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
8770
8771         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
8772         (_Jv_CheckArrayStore): Ditto.
8773         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
8774         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
8775         Moved to gcj/array.h.
8776         (_Jv_Realloc): New function.
8777
8778         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
8779
8780         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
8781         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
8782         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
8783         JvNewDoubleArray): Implementations moved from prims.cc and
8784         declared `inline'.
8785
8786         * gcj/javaprims.h (_Jv_Realloc): Prototype.
8787
8788         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
8789
8790 2000-03-06  Tom Tromey  <tromey@cygnus.com>
8791
8792         * jni.cc (MARK_NONE): New define.
8793         (MARK_USER): Likewise.
8794         (MARK_SYSTEM): Likewise.
8795         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
8796         smaller.
8797         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
8798         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
8799         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
8800         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
8801         argument.
8802         (call): Use MARK_SYSTEM.
8803         (_Jv_GetJNIEnvNewFrame): New function.
8804         (_Jv_LookupJNIMethod): New function.
8805         (_Jv_JNI_PopSystemFrame): New function.
8806         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
8807
8808 2000-03-05  Tom Tromey  <tromey@cygnus.com>
8809
8810         Fix for PR libgcj/43:
8811         * include/Makefile.in: Rebuilt.
8812         * include/Makefile.am (include_HEADERS): New define.
8813
8814 2000-03-05  Anthony Green  <green@redhat.com>
8815
8816         * gcj/javaprims.h ("Java"): Remove FirstThread.
8817
8818         * configure.host: Fix __NO_MATH_INLNES botch.
8819
8820         * Makefile.in: Rebuilt.
8821         * Makefile.am (nat_source_files): Move natFirstThread.cc.
8822         (gnu/gcj/runtime/FirstThread.h): Moved.
8823         (ordinary_java_source_files): Move FirstThread.java.
8824         * prims.cc: Deal with FirstThread movement.
8825         (JvRunMain): Ditto.
8826         (_Jv_RunMain): Ditto.
8827
8828         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
8829         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
8830
8831 2000-03-05  Warren Levy  <warrenl@cygnus.com>
8832
8833         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
8834           Handle null addresses.
8835
8836 2000-03-04  Anthony Green  <green@redhat.com>
8837
8838         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
8839         See PR gcj/151.
8840
8841 2000-03-04  Anthony Green  <green@redhat.com>
8842
8843         * configure: Rebuilt.
8844         * configure.in (ZLIBTESTSPEC): New macro.
8845         (GCTESTSPEC): New macro.
8846         (LIBGCJTESTSPEC): New macro.
8847         * libgcj-test.spec.in: New file.
8848
8849 2000-03-02  Tom Tromey  <tromey@cygnus.com>
8850
8851         * include/java-interp.h: Don't include MethodInvocation.h.
8852         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
8853         * Makefile.in: Rebuilt.
8854         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
8855         (ordinary_java_source_files): Don't mention
8856         MethodInvocation.java.
8857         * gnu/gcj/runtime/MethodInvocation.java: Removed.
8858         * interpret.cc (MethodInvocation::continue1): Removed.
8859         (run): Handle exceptions here.
8860         * java/lang/ClassLoader.java (defineClass1, defineClass2):
8861         Removed.
8862         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
8863         here.
8864         (defineClass2): Removed.
8865
8866         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
8867         Removed.
8868         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
8869         exceptions here.
8870         (hack_call): Removed.
8871
8872         * java/lang/Class.h (Class): Removed hackRunInitializers,
8873         hackTrampoline.
8874         * java/lang/natClass.cc (hackRunInitializers): Removed.
8875         (initializeClass): Catch exceptions here.
8876         Include ExceptionInInitializerError.h.
8877         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
8878         Removed.
8879
8880         * java/lang/Object.h (Object): Don't mention hack12_6.
8881         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
8882         here.
8883         * java/lang/Object.java (hack12_6): Removed.
8884
8885         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
8886         (start): Use run_, not run__.
8887         * java/lang/Thread.java (run_): Renamed from run__; old run_
8888         removed.
8889
8890         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
8891         (_Jv_JNI_EnsureLocalCapacity): Likewise.
8892         (_Jv_JNI_DefineClass): Likewise.
8893         (_Jv_JNI_ThrowNew): Likewise.
8894         (_Jv_JNI_AllocObject): Likewise.
8895         (_Jv_JNI_GetAnyMethodID): Likewise.
8896         (_Jv_JNI_CallAnyMethodV): Likewise.
8897         (_Jv_JNI_CallAnyMethodA): Likewise.
8898         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
8899         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
8900         (_Jv_JNI_GetAnyFieldID): Likewise.
8901         (_Jv_JNI_NewString): Likewise.
8902         (_Jv_JNI_NewStringUTF): Likewise.
8903         (_Jv_JNI_GetStringUTFChars): Likewise.
8904         (_Jv_JNI_NewObjectArray): Likewise.
8905         (_Jv_JNI_NewPrimitiveArray): Likewise.
8906         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
8907         (_Jv_JNI_GetStringRegion): Likewise.
8908         (_Jv_JNI_GetStringUTFRegion): Likewise.
8909         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
8910         (_Jv_JNI_MonitorEnter): Likewise.
8911         (_Jv_JNI_MonitorExit): Likewise.
8912         (_Jv_JNI_ToReflectedField): Likewise.
8913         (_Jv_JNI_ToReflectedMethod): Likewise.
8914         (_Jv_JNI_RegisterNatives): Likewise.
8915         (_Jv_JNI_AttachCurrentThread): Likewise.
8916         (_Jv_JNI_DestroyJavaVM): Likewise.
8917
8918 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
8919
8920         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
8921         error caused by the incorrect casting of a long to an int.
8922
8923 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
8924
8925         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
8926         SIGSEV caused by use of the wrong instance variable.
8927
8928 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
8929
8930         * java/io/File.java (File(String, String)): For dirPath, treat an
8931         empty String the same as `null'.
8932
8933 2000-02-26  Anthony Green  <green@cygnus.com>
8934
8935         * gnu/gcj/io/MimeTypes.java: Test for null.
8936
8937         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
8938         (JNI_GetCreatedJavaVMs): Remove compiler warning.
8939
8940         * java/net/URLConnection.java: Update copyright notice.
8941
8942 2000-02-25  Tom Tromey  <tromey@cygnus.com>
8943
8944         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
8945         `INTERPRETER'.
8946
8947 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
8948
8949         * java/net/URLConnection.java (initializeDateFormats): New
8950         private method.
8951         (getHeaderFieldDate): Call initializeDateFormats if required.
8952         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
8953         these.
8954         Fix for PR libgcj/38.
8955
8956 2000-02-24  Warren Levy  <warrenl@cygnus.com>
8957
8958         * java/math/BigInteger.java(ival): Made private.
8959         (words): Ditto.
8960         (neg): Ditto.
8961
8962 2000-02-20  Anthony Green  <green@cygnus.com>
8963
8964         * Makefile.in: Rebuilt.
8965         * Makefile.am (ordinary_java_source_files): Add
8966         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
8967
8968         * scripts/MakeDefaultMimeTypes.java: New file.
8969         * scripts/mime.types: New file.
8970         * scripts/classes.pl: Moved from top level.
8971         * classes.pl: Moved to scripts directory.
8972
8973         * java/net/URLConnection.java: Implement guessContentTypeFromName.
8974
8975         * gnu/gcj/io/MimeTypes.java: New file.
8976         * gnu/gcj/io/DefaultMimeTypes.java: New file.
8977
8978 2000-02-20  Tom Tromey  <tromey@cygnus.com>
8979
8980         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
8981
8982 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
8983
8984         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
8985         (setSize): ditto.
8986
8987 2000-02-18  Tom Tromey  <tromey@cygnus.com>
8988
8989         * include/jvm.h (_Jv_GetJavaVM): Declare.
8990         * include/java-interp.h (_Jv_GetFirstMethod): New function.
8991         (_Jv_MethodBase::get_method): New method.
8992         (_Jv_JNIMethod::set_function): New method.
8993         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
8994         (_Jv_JNI_RegisterNatives): New function.
8995         (_Jv_JNIFunctions): Updated for new functions.
8996         (_Jv_GetJavaVM): New function.
8997         (_Jv_JNI_GetJavaVM): Use it.  Now static.
8998         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
8999         is already a Java thread but does not have a JNIEnv yet.
9000
9001         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
9002         function.
9003
9004 2000-02-17  Tom Tromey  <tromey@cygnus.com>
9005
9006         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
9007         Fixes PR gcj/152.
9008
9009 2000-02-16  Tom Tromey  <tromey@cygnus.com>
9010
9011         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
9012
9013         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
9014         (_Jv_JNI_NewObject): Likewise.
9015         (_Jv_JNI_NewObjectA): Likewise.
9016         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
9017         as "return" type to _Jv_CallAnyMethodA.
9018         (_Jv_JNI_CallAnyMethodA): Likewise.
9019         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
9020
9021         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
9022         findClass.
9023
9024 2000-02-15  Tom Tromey  <tromey@cygnus.com>
9025
9026         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
9027         jni_arg_types.
9028         (init_cif): Added `rtype_p' argument.
9029         * include/java-interp.h (class _Jv_MethodBase): Added
9030         args_raw_size.
9031         (class _Jv_InterpMethod): Removed args_raw_size.
9032         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
9033         * jni.cc (call): Pass JNIEnv and (for static methods only) the
9034         class pointer as well as the ordinary arguments.
9035
9036         * jni.cc (mangled_name): Skip leading `(' in signature.
9037
9038         * jni.cc (add_char): Added missing `else'.
9039
9040         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
9041         fails.
9042
9043 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
9044
9045         * NEWS: Updated.
9046
9047         * java/lang/natRuntime.cc (_load): Include library path with
9048         exception message.
9049
9050         * java/lang/natSystem.cc (init_properties): set java.lang.classpath
9051         property.
9052
9053         * java/lang/natThread.cc (dumpStack): Removed.
9054         * java/lang/Thread.java (dumpStack): Implemented.
9055
9056 2000-02-15  Tom Tromey  <tromey@cygnus.com>
9057
9058         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
9059         with `lib' for loadLibrary.  Fixes PR gcj/150.
9060
9061 2000-02-14  Warren Levy  <warrenl@cygnus.com>
9062
9063         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
9064
9065         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
9066           New constructor.
9067         (min): Implemented.
9068         (max): Implemented.
9069         (modPow): Rewritten to not use the naive, slow, brute force approach.
9070         (isProbablePrime): Implemented.
9071         (testBit): Implemented.
9072         (flipBit): Implemented.
9073         (getLowestSetBit): Implemented.
9074
9075 2000-02-16  Anthony Green  <green@redhat.com>
9076
9077         * configure.host: Use the same options for i386 and i486 as we do
9078         for i586 and i686.
9079
9080 2000-02-12  Tom Tromey  <tromey@cygnus.com>
9081
9082         * java/io/File.java (createTempFile): Use low bits from counter,
9083         not high bits.
9084
9085 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
9086
9087         * THANKS: More thanks.
9088
9089 2000-02-11  Tom Tromey  <tromey@cygnus.com>
9090
9091         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
9092         astore instruction.  From Hans Boehm.
9093
9094 2000-02-11  Warren Levy  <warrenl@cygnus.com>
9095
9096         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
9097         (BigInteger(String)): New constructor.
9098         (not): Rewritten using version from Kawa's BitOps class.
9099         (valueOf): New private methods from Kawa's BitOps class.
9100         (swappedOp): ditto.
9101         (bitOp): ditto.
9102         (setBitOp): ditto.
9103         (and): Implemented.
9104         (or): Implemented.
9105         (xor): Implemented.
9106         (andNot): Implemented.
9107         (clearBit): Implemented.
9108         (setBit): Implemented.
9109         (bitCount): Implemented.
9110         (toByteArray): Implemented.
9111
9112 2000-02-11  Tom Tromey  <tromey@cygnus.com>
9113
9114         * java/io/File.java (nextValue): Now synchronized.
9115
9116 2000-02-10  Tom Tromey  <tromey@cygnus.com>
9117
9118         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
9119         * java/io/FileDescriptor.java (EXCL): New static field.
9120         * java/io/File.java (tmpdir): New static field.
9121         (createTempFile): New method.
9122         (nextValue): New method.
9123         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
9124         property.
9125
9126         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
9127         (jboolean): Declare as an attributed int, not a bool.
9128         (_Jv_func): Declare differently for C.
9129
9130         * gnu/gcj/jni/natNativeThread.cc: New file.
9131         * gnu/gcj/jni/NativeThread.java: New file.
9132         * java/lang/Thread.java (data): Now a RawData.
9133         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
9134         Declare.
9135         * Makefile.in: Rebuilt.
9136         * Makefile.am (java/lang/Thread.h): New target.
9137         (ordinary_java_source_files): Added NativeThread.java.
9138         (nat_source_files): Added natNativeThread.cc.
9139         * java/lang/natThread.cc: Include <jni.h>
9140         (struct natThread): Added `jni_env' field.
9141         (_Jv_GetCurrentJNIEnv): New function.
9142         (_Jv_SetCurrentJNIEnv): Likewise.
9143         (initialize_native): Initialize jni_env.
9144         Include RawData.h.
9145         * jni.cc (ThreadGroupClass): New define.
9146         (_Jv_JNI_InvokeFunctions): New structure.
9147         (JNI_GetCreatedJavaVMs): New function.
9148         (the_vm): New global.
9149         (JNI_GetDefaultJavaVMInitArgs): New function.
9150         Include NativeThread.h.
9151         (NativeThreadClass): New define.
9152         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
9153         (_Jv_JNI_DestroyJavaVM): New function.
9154         (_Jv_JNI_AttachCurrentThread): New function.
9155         (_Jv_JNI_DetachCurrentThread): New function.
9156         (_Jv_JNI_GetEnv): New function.
9157         (JNI_CreateJavaVM): New function.
9158         (_Jv_JNI_GetJavaVM): New function.
9159         (_Jv_JNIFunctions): Added entry for GetJavaVM.
9160         * include/jni.h (JavaVMAttachArgs): New structure.
9161         (JNI_EDETACHED): New define.
9162         (JNI_EVERSION): Likewise.
9163         (JavaVM): Define properly.
9164         (struct JNIInvokeInterface): New structure.
9165         (class _Jv_JavaVM): New class.
9166         (JNI_OnLoad, JNI_OnUnload): Declare.
9167         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
9168         JNI_GetCreatedJavaVMs): Declare.
9169         (JavaVMInitArgs): New typedef.
9170         (JavaVMOption): Likewise.
9171         (JNI_ERR): New define.
9172         (JNI_OK): Likewise.
9173
9174 2000-02-10  Andrew Haley  <aph@cygnus.com>
9175
9176         * interpret.cc: Don't include fdlibm.h.
9177         Replace #if with #ifdef throughout.
9178         Declare extern __ieee754_fmod.
9179         (continue1): Remove op_getfield, op_getstatic, op_putfield,
9180         op_putstatic insns.
9181         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
9182         Search class hierarchy for superclass vtable.
9183
9184         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
9185         off the end of a pointer list.
9186
9187         * java/lang/natThread.cc (stop): Don't abort, throw an exception
9188         instead.
9189         (suspend): Ditto.
9190
9191 2000-02-09  Tom Tromey  <tromey@cygnus.com>
9192
9193         * java/lang/natRuntime.cc (_load): Call add_library.
9194         (loadLibraryInternal): Likewise.
9195
9196         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
9197         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
9198         (Output_iconv::finalize): Likewise.
9199
9200 2000-02-08  Tom Tromey  <tromey@cygnus.com>
9201
9202         * java/util/Properties.java (setProperty): New method.
9203         (store): New method.
9204
9205 2000-02-07  Tom Tromey  <tromey@cygnus.com>
9206
9207         * java/lang/Runtime.java (_load): Declare.
9208         (load, loadLibrary): Wrote in terms of _load.
9209         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
9210         library.
9211         (loadLibrary): Likewise.
9212         Include <jni.h>.
9213         (_load): New method.
9214         (loadLibrary, load): Removed.
9215
9216         * jni.cc (ThrowableClass): New define.
9217         (_Jv_JNI_Throw): Check argument.
9218         (_Jv_JNI_ThrowNew): Likewise.
9219         (wrap_value): Don't wrap object if it is NULL.
9220         (_Jv_JNI_DefineClass): Use wrap_value.
9221         (_Jv_JNI_FindClass): Likewise.
9222         (_Jv_JNI_GetSuperclass): Likewise.
9223         (_Jv_JNI_ExceptionOccurred): Likewise.
9224         (_Jv_JNI_AllocObject): Likewise.
9225         (_Jv_JNI_GetObjectClass): Likewise.
9226         (_Jv_JNI_NewString): Likewise.
9227         (_Jv_JNI_NewStringUTF): Likewise.
9228         (_Jv_JNI_NewObjectArray): Likewise.
9229         (_Jv_JNI_GetObjectArrayElement): Likewise.
9230         (_Jv_JNI_NewPrimitiveArray): Likewise.
9231         (_Jv_JNI_ToReflectedField): Likewise.
9232         (_Jv_JNI_ToReflectedMethod): Likewise.
9233         (_Jv_JNI_AllocObject): Check argument.
9234         (_Jv_JNI_NewObjectV): Likewise.
9235         (_Jv_JNI_NewObject): Likewise.
9236         (_Jv_JNI_NewObjectA): Likewise.
9237         (_Jv_JNI_GetObjectClass): Likewise.
9238         (_Jv_JNI_GetField): Likewise.
9239         (_Jv_JNI_SetField): Likewise.
9240
9241         * interpret.cc (PUSHL): Don't use expression statement.
9242         (PUSHD): Likewise.
9243         (LOADL): Likewise.
9244         (STOREL): Likewise.
9245
9246         * jni.cc (add_char): Conditional on INTERPRETER.
9247         (mangled_name): Likewise.
9248         (call): Likewise.
9249         * include/java-interp.h (class _Jv_MethodBase): Conditional on
9250         INTERPRETER.
9251         (class _Jv_JNIMethod): Likewise.
9252
9253 2000-02-04  Warren Levy  <warrenl@cygnus.com>
9254
9255         * Makefile.am: Added MPN.java and BigInteger.java.
9256         * Makefile.in: Rebuilt.
9257         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
9258         <per@bothner.com>.
9259         * java/math/BigInteger.java: New file.  Based primarily on
9260         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
9261
9262 2000-02-04  Tom Tromey  <tromey@cygnus.com>
9263
9264         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
9265         pointers.
9266         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
9267         if the method is native.
9268         * resolve.cc (ncode): Don't handle native methods.
9269         (_Jv_JNIMethod::ncode): New method.
9270         (_Jv_PrepareClass): Handle native methods.
9271         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
9272         Include AbstractMethodError.h.
9273         (add_char): New function.
9274         (mangled_name): Likewise.
9275         * include/java-interp.h (class _Jv_JNIMethod): New class.
9276         (class _Jv_MethodBase): New class.
9277         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
9278         (_Jv_InterpClass): Changed `interpreted_methods' field to type
9279         `_Jv_MethodBase'.
9280
9281         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
9282         * java/lang/natRuntime.cc (libraries_size, libraries_count,
9283         libraries): New globals.
9284         (add_library): New function.
9285         (_Jv_FindSymbolInExecutable): New function.
9286
9287         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
9288         Now static.
9289
9290 2000-02-04  Andrew Haley  <aph@cygnus.com>
9291
9292         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
9293         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
9294         * java/lang/natThrowable.cc (printRawStackTrace): Rename
9295         printStackTrace to printRawStackTrace.
9296
9297 2000-02-03  Tom Tromey  <tromey@cygnus.com>
9298
9299         * java/util/Calendar.java (toString): New method.
9300         * java/util/SimpleTimeZone.java (clone): New method.
9301         (toString): New method.
9302         * java/util/TimeZone.java (clone): New method.
9303         * java/text/SimpleDateFormat.java (clone): New method.
9304         * java/text/NumberFormat.java (clone): New method.
9305         (equals): New method.
9306         * java/text/Format.java (clone): New method.
9307         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
9308         constructor.
9309         (clone): New method.
9310         * java/text/DateFormat.java (clone): New method.
9311         * java/text/Collator.java (clone): New method.
9312
9313 2000-02-03  Tom Tromey  <tromey@cygnus.com>
9314
9315         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
9316         method.
9317
9318 2000-02-01  Tom Tromey  <tromey@cygnus.com>
9319
9320         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
9321         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
9322         constructing the closure if the function is native.
9323         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
9324         a template function, #if'd out, or static.
9325         Include <java-interp.h>.
9326
9327         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
9328
9329         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
9330
9331         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
9332         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
9333         `locals == NULL'.
9334         (wrap_value): New function.
9335         (_Jv_JNI_CallAnyMethodV): Use it.
9336         (_Jv_JNI_CallAnyMethodA): Likewise.
9337         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
9338         (_Jv_JNI_GetStaticField): Likewise.
9339
9340         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
9341         (_Jv_JNI_GetStaticField): Likewise.
9342
9343 2000-01-31  Tom Tromey  <tromey@cygnus.com>
9344
9345         * prims.cc (_Jv_MallocUnchecked): New function.
9346         (main_init): Call _Jv_JNI_Init.
9347         * include/jvm.h (_Jv_MallocUnchecked): Declare.
9348         (_Jv_JNI_Init): Declare.
9349         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
9350         <string.h>.
9351         (_Jv_JNI_NewGlobalRef): New function.
9352         (_Jv_JNI_DeleteGlobalRef): New function.
9353         (_Jv_JNI_DeleteLocalRef): New function.
9354         (_Jv_JNI_conversion_call): Initialize and clear local reference
9355         frame.
9356         (_Jv_JNI_NewLocalRef): New function.
9357         (struct _Jv_JNI_LocalFrame): New structure.
9358         (_Jv_JNI_PushLocalFrame): New function.
9359         (_Jv_JNI_EnsureLocalCapacity): New function.
9360         (FRAME_SIZE): New define.
9361         (_Jv_JNI_GetStringChars): Mark string, not characters.
9362         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
9363         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
9364         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
9365         elements.
9366         (_Jv_JNI_DefineClass): Make return value a local ref.
9367         (_Jv_JNI_FindClass): Likewise.
9368         (_Jv_JNI_GetSuperclass): Likewise.
9369         (_Jv_JNI_ExceptionOccurred): Likewise.
9370         (_Jv_JNI_AllocObject): Likewise.
9371         (_Jv_JNI_GetObjectClass): Likewise.
9372         (_Jv_JNI_CallAnyMethodV): Likewise.
9373         (_Jv_JNI_NewString): Likewise.
9374         (_Jv_JNI_NewStringUTF): Likewise.
9375         (_Jv_JNI_NewObjectArray): Likewise.
9376         (_Jv_JNI_GetObjectArrayElement): Likewise.
9377         (_Jv_JNI_ToReflectedField): Likewise.
9378         (_Jv_JNI_ToReflectedMethod): Likewise.
9379         (_Jv_JNIFunctions): Updated table for new functions.
9380         (_Jv_JNI_Init): New function.
9381         (mark_for_gc): Wrote.
9382         (unmark_for_gc): Wrote.
9383         * include/jni.h (struct JNINativeInterface): Removed name from
9384         PopLocalFrame parameter.
9385         (class _Jv_JNIEnv): Added `locals' field.
9386
9387 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
9388
9389         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
9390         (write): Ditto.
9391
9392 2000-01-30  Tom Tromey  <tromey@cygnus.com>
9393
9394         * include/config.h.in: Rebuilt.
9395         * acconfig.h (HAVE_ICONV): Define.
9396         * configure: Rebuilt.
9397         * configure.in: Check for `iconv' function.
9398         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
9399         no specific encoder exists.
9400         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
9401         no specific encoder exists.
9402         * Makefile.in: Rebuilt.
9403         * Makefile.am (convert_source_files): Mention Input_iconv.java and
9404         Output_iconv.java.
9405         (nat_source_files): Added natIconv.cc.
9406         * gnu/gcj/convert/natIconv.cc: New file.
9407         * gnu/gcj/convert/Input_iconv.java: New file.
9408         * gnu/gcj/convert/Output_iconv.java: New file.
9409
9410 2000-01-28  Tom Tromey  <tromey@cygnus.com>
9411
9412         * Makefile.in: Rebuilt.
9413         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
9414
9415 2000-01-26  Tom Tromey  <tromey@cygnus.com>
9416
9417         * gcj/method.h (JvNumMethods): Moved from Class.h.
9418         (JvGetFirstMethod): Likewise.
9419         * java/lang/Class.h (Object): Updated decl of
9420         _Jv_JNI_ToReflectedField.
9421         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
9422         * Makefile.in: Rebuilt.
9423         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
9424         argument of _Jv_JNI_ToReflectedField.
9425         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
9426         as a friend.
9427         (java/lang/reflect/Method.h): Likewise.
9428         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
9429         __GCJ_JNI_IMPL__.
9430         (jweak): New typedef.
9431         (struct JNINativeInterface): Correctly declare remaining entries.
9432         * jni.cc: Include Class.h, ClassLoader.h.
9433         (_Jv_JNI_FindClass): New function.
9434         (_Jv_JNI_DefineClass): New function.
9435         (_Jv_JNI_conversion_call): New function.
9436         (_Jv_JNI_FindClass): Use current class loader to find class.
9437         (_Jv_JNI_ExceptionCheck): New function.
9438         (_Jv_JNI_FromReflectedField): Now static.
9439         (MethodClass): New define.
9440         (_Jv_JNI_FromReflectedMethod): New function.
9441         (_Jv_JNI_ToReflectedMethod): Likewise.
9442         Include Method.h.
9443         (_Jv_JNI_IsAssignableFrom): Renamed.
9444         (_Jv_JNI_GetStringRegion): New function.
9445         Include StringIndexOutOfBoundsException.h.
9446         (_Jv_JNI_GetStringUTFRegion): New function.
9447         (_Jv_JNIFunctions): Updated for new functions.
9448         (_Jv_JNI_GetPrimitiveArrayCritical): New function
9449         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
9450         (_Jv_JNI_GetStringCritical): New function.
9451         (_Jv_JNI_ReleaseStringCritical): Likewise.
9452         (get_throwable): Removed.
9453         (GCJ_JV_JNIENV_FRIEND): Removed.
9454         (__GCJ_JNI_IMPL__): Define.
9455         Include method.h.
9456
9457         * resolve.cc (get_ffi_type_from_signature): Handle case where
9458         boolean is an int.
9459
9460 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
9461
9462         * interpret.cc (run): Don't call println.
9463         Don't include PrintStream.h.
9464
9465         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
9466         nameIndex.  Use "jint" as type for boffset.
9467         * java/lang/Class.h (struct _Jv_Method): Made accflags a
9468         _Jv_ushort.
9469         (Class): Likewise.  Also changed type of method_count,
9470         vtable_method_count, size_in_bytes, field_count,
9471         static_field_count, interface_count.
9472         * gcj/array.h (__JArray): Made `length' a const jsize, not an
9473         int.
9474
9475 2000-01-21  Tom Tromey  <tromey@cygnus.com>
9476
9477         * java/lang/reflect/natConstructor.cc (newInstance): Use
9478         _Jv_CallAnyMethodA.
9479         * include/jvm.h: Declare _Jv_CallAnyMethodA.
9480         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
9481         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
9482         Include <jni.h>.
9483         (COPY): Removed.
9484         (invoke): Use _Jv_CallAnyMethodA.
9485         (VAL): Redefined.
9486         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
9487         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
9488         functions.
9489         (struct _Jv_Method): Added getNextMethod method.
9490         (JvNumMethods): New function.
9491         (JvGetFirstMethod): Likewise.
9492         * gcj/field.h (JvGetFirstStaticField): New function.
9493         (JvNumStaticFields): Likewise.
9494         (getNextField): Renamed from getNextInstanceField.
9495         (struct _Jv_Field): New method getClass.
9496         * jni.cc: Wrote many new functions.
9497         * include/jni.h (JNI_TRUE): Define.
9498         (JNI_FALSE): Likewise.
9499         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
9500         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
9501         jcharArray, jfloatArray, jdoubleArray): New typedefs.
9502         (jfieldID, jmethodID): Likewise.
9503         (JNI_COMMIT, JNI_ABORT): New defines.
9504         (JNINativeMethod): New struct.
9505         (struct JNINativeInterface): Correctly declared more entries.
9506         (class _Jv_JNIEnv): Added `ex' member.
9507         (JNI_VERSION_1_1): New define.
9508         (JNI_VERSION_1_2): Likewise.
9509
9510         * boehm.cc (_Jv_MarkObj): Use getNextField, not
9511         getNextInstanceField.
9512
9513 2000-01-20  Tom Tromey  <tromey@cygnus.com>
9514
9515         * resolve.cc (StringClass): Removed.
9516         * defineclass.cc (StringClass): Removed.
9517
9518 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
9519
9520         * NEWS: updated.
9521
9522 2000-01-19  Tom Tromey  <tromey@cygnus.com>
9523
9524         * interpret.cc (PC_REGISTER_ASM): Removed.
9525
9526         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
9527         From Bryce McKinlay.
9528
9529         * All files: Updated copyright to reflect Cygnus purchase.
9530
9531 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
9532
9533         * configure: Rebuilt.
9534         * configure.in: Recognize --disable-interpreter.
9535
9536 2000-01-18  Andrew Haley  <aph@cygnus.com>
9537
9538         * name-finder.cc (lookup): Check for dladdr function.
9539         acconfig.h (HAVE_DLADDR): Add.
9540         configure.in: Check for HAVE_DLADDR
9541         configure: Rebuilt.
9542         include/config.h.in:  Rebuilt.
9543
9544 2000-01-17  Andrew Haley  <aph@cygnus.com>
9545
9546         * prims.cc (_Jv_RunMain): Set the name of this executable.
9547
9548 2000-01-17  Tom Tromey  <tromey@cygnus.com>
9549
9550         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
9551         when backtrace can't be computed.
9552
9553         * configure: Rebuilt.
9554         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
9555
9556         * java/lang/Runtime.java (loadLibraryInternal): Declare.
9557         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
9558         (_Jv_FindClassInCache): Likewise.
9559         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
9560         (findSystemClass): Try to load class from compiled module.
9561         Include Runtime.h.
9562         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
9563         (loadLibrary): Likewise.
9564         (lt_preloaded_symbols): Define.
9565         (loadLibraryInternal): New method.
9566         * include/config.h.in: Rebuilt.
9567         * acconfig.h (USE_LTDL): Added.
9568         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
9569         (INCLUDES): Added $(INCLTDL).
9570         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
9571         (libgcj_la_LIBADD): Likewise.
9572         * aclocal.m4, configure: Rebuilt.
9573         * configure.in: Added libltdl support.
9574
9575 2000-01-15  Tom Tromey  <tromey@cygnus.com>
9576
9577         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
9578
9579 2000-01-14  Andrew Haley  <aph@cygnus.com>
9580
9581         * java/lang/natThrowable.cc: New file.
9582
9583         * java/lang/Throwable.java (fillInStackTrace): Make native.
9584         (printStackTrace): Call native method to do this.
9585         (Throwable): Call fillInStackTrace.
9586         (stackTrace): New variable.
9587
9588         * include/jvm.h: Add _Jv_ThisExecutable functions.
9589
9590         * prims.cc: (_Jv_execName): New variable.
9591         (catch_segv): Call fillInStackTrace.
9592         (catch_fpe): Ditto.
9593         (_Jv_ThisExecutable): New functions.
9594         (JvRunMain): Set the name of this executable.
9595
9596         * Makefile.am: Add java/lang/natThrowable.cc.
9597         Add name-finder.cc.
9598         * Makefile.in: Rebuilt.
9599
9600         * acconfig.h: Add HAVE_PROC_SELF_EXE.
9601
9602         * configure.in: Force link with __frame_state_for in
9603         FORCELIBGCCSPEC.  Add new checks for backtrace.
9604         * include/config.h.in: Rebuilt.
9605
9606         * name-finder.cc: New file.
9607         * include/name-finder.h: New file.
9608
9609 2000-01-16  Anthony Green  <green@cygnus.com>
9610
9611         * java/lang/StringBuffer.java (StringBuffer): Don't special case
9612         null argument.
9613
9614 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
9615
9616         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
9617
9618 2000-01-13  Tom Tromey  <tromey@cygnus.com>
9619
9620         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
9621         not system loader, as initiating loader.
9622
9623 2000-01-11  Tom Tromey  <tromey@cygnus.com>
9624
9625         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
9626         HP/UX.  From David Scott Urban.
9627
9628 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
9629
9630         * java/lang/natMath.cc (pow): Cast args to `double', not
9631         `jdouble'.
9632         (atan2): Likewise.
9633         (IEEEremainder): Likewise.
9634         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
9635         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
9636
9637 2000-01-09  Anthony Green  <green@cygnus.com>
9638
9639         * java/lang/natString.cc (init): Test for overflow condition
9640         during out of bounds check.
9641         (getChars): Throw StringIndexOutOfBoundsException, not
9642         ArrayIndexOutOfBoundsException.
9643         (getBytes): Ditto.
9644         (regionMatches): Obey case option during string comparison.
9645
9646         * configure.host (ligcj_interpreter): New variable.  Enable
9647         interpreter by default on IA-32.
9648         * configure.in:  Examine libgcj_interpreter.
9649         * configure: Rebuilt.
9650
9651 2000-01-07  Tom Tromey  <tromey@cygnus.com>
9652
9653         * mauve-libgcj: Don't disable ClassTest.
9654
9655         * java/lang/natClass.cc (getClasses): Wrote.
9656
9657 2000-01-06  Tom Tromey  <tromey@cygnus.com>
9658
9659         * java/lang/natClass.cc (_getConstructors): Correctly check
9660         whether method name is the init name.
9661         (getMethod): Look at accflags on method in `klass', not `this'.
9662
9663 2000-01-05  Tom Tromey  <tromey@cygnus.com>
9664
9665         * java/lang/natClass.cc (getMethod): Compute offset relative to
9666         `klass's methods table, not `this's table.
9667
9668         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
9669         In unwrapping/widening case, check whether `k' is null, not
9670         whether it is primitive.  Initialize `num' from `argelts', not
9671         `paramelts'.  Correct create and pass arguments to ffi_call.
9672         Don't let presence of `this' argument affect index used to look in
9673         argument arrays.
9674         (COPY): Set appropriate element in `values' vector.
9675
9676         * java/lang/natClass.cc: Include <gcj/method.h>.
9677
9678         * java/lang/Class.h (_getMethods): Correctly declare as private,
9679         not public.
9680
9681         * java/lang/Class.h (_getMethods): Declare.
9682         * java/lang/Class.java (_getMethods): Declare.
9683         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
9684         (getDeclaredClasses): Always return empty array.
9685         (_getMethods): New method.
9686         (getMethods): Wrote.
9687         (getDeclaredMethod): Return `rmethod'.
9688         (finit_name): New global.
9689         (getDeclaredMethods): Check for finit_name.
9690         (_getMethods): Likewise.
9691         (getMethod): Only return public methods.
9692
9693         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
9694         jboolean and select correct ffi type on that basis.
9695         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
9696         Constructor call always has `void' return type.
9697
9698 2000-01-04  Tom Tromey  <tromey@cygnus.com>
9699
9700         * java/lang/Class.h (getSignature): Updated.
9701         * java/lang/Class.java (getSignature): Updated.
9702         * java/lang/natClass.cc (getSignature): Added `is_constructor'
9703         argument.
9704         (getConstructor): Ensure constructor is public.
9705         (_getConstructors): Check for public-ness of constructor when
9706         `declared' is false, not when it is true.
9707
9708 2000-01-04  Warren Levy  <warrenl@cygnus.com>
9709
9710         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
9711         comment.
9712         (receive): Set the sender's address in the DatagramPacket.
9713
9714 2000-01-04  Tom Tromey  <tromey@cygnus.com>
9715
9716         * java/lang/reflect/natConstructor.cc (newInstance): Pass
9717         declaring class as return_type argument to
9718         _Jv_CallNonvirtualMethodA.
9719         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
9720         constructor case, create object and use it as `this' argument.
9721         * java/lang/Class.h (_getConstructors): Declare.
9722         (_getFields): Declare.
9723         * java/lang/Class.java (getConstructors): Wrote.
9724         (_getConstructors): New native method.
9725         (getDeclaredConstructors): Wrote.
9726         (_getFields): Declare new native method.
9727         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
9728         incorrect comment.
9729         (getMethod): Work correctly when class is primitive.
9730         (getDeclaredMethods): Likewise.  Compute offset using `method',
9731         not `mptr'.
9732         (getDeclaredMethod): Likewise.
9733         (getConstructor): Wrote.
9734         (ConstructorClass): New define.
9735         (getDeclaredConstructor): Wrote.
9736         (_getConstructors): New method.
9737         (_getFields): New method.
9738         (getFields): Wrote.
9739
9740         * Makefile.in: Rebuilt.
9741         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
9742
9743         * prims.cc: Remove `#pragma implementation'.
9744         * gcj/array.h: Remove `#pragma interface'.
9745
9746         * prims.cc (_Jv_equaln): New function.
9747         * java/lang/Class.java (getSignature): Declare.
9748         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
9749         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
9750         resolve.cc.
9751         (getSignature): New method.
9752         (getDeclaredMethod): Wrote.
9753         (getMethod): Wrote.
9754         Include StringBuffer.h.
9755         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
9756         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
9757         a friend.
9758         (getSignature): Declare.
9759         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
9760         (_Jv_equaln): Declare.
9761         (_Jv_CallNonvirtualMethodA): Declare.
9762         * Makefile.in: Rebuilt.
9763         * Makefile.am (nat_source_files): Added natConstructor.cc.
9764         (java/lang/reflect/Constructor.h): New target.
9765         * java/lang/reflect/natConstructor.cc: New file.
9766         * java/lang/reflect/Constructor.java (newInstance): Now native.
9767         (declaringClass): Renamed from decl_class.
9768         (offset): Renamed from index.
9769         (getType): New native method.
9770         (getModifiers): Now native.
9771         (getParameterTypes): Call getType if required.
9772         (hashCode): Include hash code from declaring class.
9773         (modifiers): Removed.
9774         (toString): Call getType if required.
9775         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
9776         * java/lang/reflect/natMethod.cc (hack_call): New method.
9777         Removed `#if 0' around FFI code.
9778         Include <gnu/gcj/RawData.h>.
9779         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
9780         IllegalArgumentException when argument object and class disagree.
9781         (_Jv_GetTypesFromSignature): New function.
9782         (getType): Use it.
9783         (ObjectClass): New define.
9784         (_Jv_CallNonvirtualMethodA): New function.
9785         * java/lang/reflect/Method.java (hack_trampoline): New method.
9786         (hack_call): New native method.