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