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