OSDN Git Service

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