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