]>
Commit | Line | Data |
---|---|---|
cab1f90a AH |
1 | 2001-01-26 Andrew Haley <aph@redhat.com> |
2 | ||
3 | (INIT_FPE): Use a direct system call to set the handler. | |
4 | ||
0be25992 RH |
5 | 2001-01-27 Richard Henderson <rth@redhat.com> |
6 | ||
7 | * configure.host (alpha*-*) [libgcj_flags]: Add -mieee. | |
8 | ||
65422ec5 TT |
9 | 2001-01-27 Tom Tromey <tromey@redhat.com> |
10 | ||
11 | * jni.cc (_Jv_JNIFunctions): Added comment for each entry in | |
12 | native interface structure. | |
13 | ||
60b7365f BM |
14 | 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz> |
15 | ||
16 | * java/io/ObjectInputStream.java (read): AND byte with 0xff to make | |
17 | result unsigned. | |
18 | (read (byte[], int, int)): Only call readNextBlock() if the block | |
19 | buffer would actually be overrun. Increment blockDataPosition. | |
20 | (callReadMethod): Propagate exceptions from invocation target. | |
21 | * java/io/ObjectOutputStream.java (callWriteMethod): Propagate | |
22 | exceptions from invocation target. | |
23 | ||
f86f42a8 TT |
24 | 2001-01-26 Tom Tromey <tromey@redhat.com> |
25 | ||
26 | * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external | |
27 | to internal representation. | |
28 | (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use | |
29 | _Jv_FindClassFromSignature. | |
30 | ||
5bb1db00 WL |
31 | 2001-01-26 Warren Levy <warrenl@redhat.com> |
32 | ||
33 | * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff | |
34 | and timezone if they are available on the system. | |
35 | ||
f07f5284 TT |
36 | 2001-01-24 Tom Tromey <tromey@redhat.com> |
37 | ||
38 | * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t. | |
39 | ||
295504e3 TT |
40 | 2001-01-24 Tom Tromey <tromey@redhat.com> |
41 | ||
42 | * Makefile.in: Rebuilt. | |
43 | * Makefile.am (c_source_files): Added sf_fabs.c. | |
44 | * java/lang/sf_fabs.c: New file. | |
45 | ||
1aa605c8 WL |
46 | 2001-01-19 Warren Levy <warrenl@redhat.com> |
47 | ||
48 | * java/text/SimpleDateFormat.java (format): Compute hour for cases | |
49 | HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11) | |
50 | correctly. Adjust properly from 0-23 clock hour. | |
51 | ||
d150822e MW |
52 | 2001-01-17 Mark Wielaard <mark@klomp.org> |
53 | ||
54 | * java/bean/Beans.java (instantiate): enable Applet code from Classpath | |
55 | ||
607adf67 BM |
56 | 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz> |
57 | ||
58 | * java/lang/Class.h (isInterface): Move implementation from | |
59 | natClass.cc. Declare inline. | |
60 | (Class): Add default constructor. | |
61 | * java/lang/Object.h: Update comments. | |
62 | * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to | |
63 | initialize superclass, saving a call if super is already initialized. | |
64 | ||
ed8cc5fd APB |
65 | 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com> |
66 | ||
67 | * prims.cc (init_prim_class): Deleted. | |
68 | (DECLARE_PRIM_TYPE): Rewritten. | |
69 | * java/lang/Class.h (stdio.h): Include removed. | |
70 | (stddef.h): Included. | |
71 | (java/lang/reflect/Modifier.h): Likewise. | |
72 | (Class): Contructor now takes arguments, initializes fields. | |
73 | (initializePrim): Prototype deleted. | |
74 | * java/lang/natClass.cc (initializePrim): Deleted. | |
75 | ||
19c97639 WL |
76 | 2001-01-16 Warren Levy <warrenl@redhat.com> |
77 | ||
78 | * java/math/BigInteger.java: Update Copyright year. | |
79 | ||
c7fb0b92 HB |
80 | 2001-01-16 Hans Boehm <hans_boehm@hp.com> |
81 | ||
82 | * java/math/BigInteger.java (setShiftRight): Only do negative shift | |
83 | if count != 0. | |
84 | ||
b9333bff MW |
85 | 2001-01-14 Mark Wielaard <mark@klomp.org> |
86 | * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com) | |
87 | (decode): Merge comments with Classpath, don't throw Exception | |
88 | ||
b755792e TT |
89 | 2001-01-12 Tom Tromey <tromey@redhat.com> |
90 | ||
fafc249b TT |
91 | * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen): |
92 | Wrote. | |
93 | (setCursor): Wrote. | |
94 | Include Cursor.h. | |
95 | * gnu/awt/gtk/natGtkLabelPeer.cc: New file. | |
96 | * gnu/awt/gtk/natGtkButtonPeer.cc: New file. | |
97 | * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class. | |
98 | * gnu/awt/gtk/GtkLabelPeer.java: New file. | |
99 | * gnu/awt/gtk/GtkButtonPeer.java: New file. | |
100 | ||
b755792e TT |
101 | * java/lang/natSystem.cc: Include locale.h if it exists. |
102 | * configure: Rebuilt. | |
103 | * configure.in: Check for locale.h. | |
104 | ||
c1ef0662 TT |
105 | 2001-01-11 Tom Tromey <tromey@redhat.com> |
106 | ||
107 | * java/awt/Cursor.java (Cursor(String)): Set type to custom. | |
108 | (Cursor(int), getPredefinedCursor): Throw exception if argument | |
109 | invalid. | |
110 | ||
111 | 2001-01-03 Tom Tromey <tromey@redhat.com> | |
112 | ||
113 | * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote. | |
114 | (getLocationOnScreen): Wrote. | |
115 | ||
f6d1c49e BM |
116 | 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz> |
117 | ||
118 | * Makefile.am: Re-enable dependencies. | |
119 | * Makefile.in: Rebuilt. | |
120 | ||
737c87df WL |
121 | 2001-01-10 Warren Levy <warrenl@redhat.com> |
122 | ||
123 | * java/math/BigDecimal.java (divide): Fixed comment. | |
124 | ||
69848904 WL |
125 | 2001-01-10 Warren Levy <warrenl@redhat.com> |
126 | ||
127 | Fix for PR libgcj/1596: | |
128 | * java/math/BigDecimal.java (divide): Check newScale for validity. | |
129 | Ensure that BigInteger.pow() is called with a non-negative value. | |
130 | (setScale (int)): New public method. | |
131 | (setScale (int,int)): New public method. | |
132 | ||
10a855c7 OL |
133 | 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se> |
134 | ||
135 | Fix for PR libgcj/1338: | |
136 | * java/io/StreamTokenizer.java (nextToken): Handle // and /* before | |
137 | commentChar. Fixed typos in comments. | |
138 | ||
3824a486 WL |
139 | 2001-01-08 Warren Levy <warrenl@redhat.com> |
140 | ||
141 | Fix for PR libgcj/1411: | |
142 | * Makefile.am: Removed java/util/natTimeZone.cc. | |
143 | * Makefile.in: Rebuilt. | |
144 | * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added | |
145 | missing localized timezone names. | |
146 | * java/lang/System.java (getDefaultTimeZoneId): New private method. | |
147 | * java/lang/natSystem.cc (getSystemTimeZone): New private method. | |
148 | (init_properties): Set user.timezone property. | |
149 | * java/text/DateFormatSymbols.java (zoneStringsDefault): Added | |
150 | default timezone names; removed non-standard ones. Use standard | |
151 | ID names per JCL. | |
152 | * java/util/Date.java (toGMTString): Removed zoneGMT variable. | |
153 | (UTC): Ditto. | |
154 | * java/util/TimeZone.java: Add standard ID names per JCL; removed | |
155 | non-standard ones. | |
156 | (getDefaultTimeZoneId): Removed. | |
157 | (zoneGMT): Removed. | |
3824a486 WL |
158 | * java/util/natTimeZone.cc: Removed. |
159 | ||
5bb11b2e BM |
160 | 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz> |
161 | ||
162 | * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect. | |
163 | (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. | |
164 | (_Jv_GetArrayClass): New inline function. | |
165 | (arrayclass): New field. | |
166 | * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use | |
167 | _Jv_GetArrayElementFromElementType. | |
168 | (_Jv_NewPrimArray): Ditto. | |
169 | (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and | |
170 | "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass. | |
171 | Set Modifier::ABSTRACT. | |
172 | * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass". | |
173 | (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. | |
174 | Now synchronized. Array classes are now referenced from | |
175 | elementClass->arrayclass. Don't use _Jv_FindClassInCache. | |
176 | Set array classes' accessibility flags correctly. Optimize so that | |
177 | all array classes share the same IDT. | |
178 | * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass. | |
179 | * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto. | |
180 | * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields | |
181 | in superclasses from overwriting classes own fields. | |
182 | (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling | |
183 | Modifier::isAbstract(). | |
184 | (null_idt): New static field. | |
185 | (_Jv_PrepareConstantTimeTables): Optimize case where class implements | |
186 | no interfaces. | |
187 | (_Jv_IndexOf): Made inline. | |
188 | * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field. | |
189 | ||
5bab9296 TT |
190 | 2001-01-08 Tom Tromey <tromey@redhat.com> |
191 | ||
192 | Fix for PR java/1586: | |
193 | * Makefile.in: Rebuilt. | |
194 | * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies. | |
195 | ||
0a8f3dbb BM |
196 | 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz> |
197 | ||
198 | * Makefile.am: Use the new "-M -MF" option for generating dependencies | |
199 | from the c++ compiler. | |
200 | * Makefile.in: Rebuilt. | |
201 | ||
2feccc20 APB |
202 | 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com> |
203 | ||
204 | All files with updated copyright. | |
205 | * prims.cc (class _Jv_PrimClass): Removed. | |
206 | (init_prim_class): New function. | |
207 | (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces | |
208 | `_Jv_PrimClass' in primitive type declarations. Assign to the | |
209 | value returned by `init_prim_class.' | |
210 | * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in | |
211 | primitive type declarations. | |
212 | (JvPrimClass): Cast to `jclass' removed. | |
213 | * java/lang/Class.h (Class): New constructor. | |
214 | (Class): New copy constructor. | |
215 | (initializePrim): New prototype. | |
216 | (_Jv_PrimClass): Field removed. | |
217 | * java/lang/Object.h (struct _JvObjectPrefix): New virtuals | |
218 | nacd_1 and nacd_2 (for compatibility with the new C++ ABI.) | |
219 | (class java::lang::Object): `finalize' moved up front. | |
220 | * java/lang/natClass.cc | |
221 | (isAssignableFrom): Turned outline. | |
222 | (isInstance): Likewise. | |
223 | (isInterface): Likewise, fixed indentation. | |
224 | (initializePrim): New function. | |
225 | ||
6a9d31a7 AG |
226 | 2001-01-07 Anthony Green <green@redhat.com> |
227 | ||
228 | * Makefile.am (texinfo): Add texinfo target for generating texinfo | |
229 | documentation. | |
230 | * Makefile.in: Rebuilt. | |
231 | ||
232 | * scripts/TexinfoDoclet.java: New file. | |
233 | ||
234 | * doc/java-applet.texi, doc/java-lang-reflect.texi, | |
235 | doc/java-awt-color.texi, doc/java-lang.texi, | |
236 | doc/java-awt-datatransfer.texi, doc/java-math.texi, | |
237 | doc/java-awt-event.texi, doc/java-net.texi, | |
238 | doc/java-awt-geom.texi, doc/java-security-spec.texi, | |
239 | doc/java-awt-image.texi, doc/java-security.texi, | |
240 | doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi, | |
241 | doc/java-text.texi, doc/java-beans-beancontext.texi, | |
242 | doc/java-util-jar.texi, doc/java-beans.texi, | |
243 | doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi, | |
244 | doc/java-lang-ref.texi: New files. | |
245 | ||
bc6d273e AG |
246 | 2001-01-07 Anthony Green <green@redhat.com> |
247 | ||
248 | * java/net/URLConnection.java (setDoOutput): URLConnection's may | |
249 | be used for both input and output, so don't clear doInput. | |
250 | ||
251 | * java/lang/StringBuffer.java: Fix comments. | |
252 | ||
0e2e89fd AG |
253 | 2001-01-06 Anthony Green <green@redhat.com> |
254 | ||
255 | * java/beans/PropertyDescriptor.java: Fix comment. | |
256 | * java/io/PushbackReader.java: Fix comment. | |
257 | * java/io/ObjectStreamClass.java: Fix comment. | |
258 | * java/io/DataInputStream.java: Fix comment. | |
259 | * java/io/PipedInputStream.java: Fix comments. | |
260 | * java/io/PipedReader.java: Fix comments. | |
261 | * java/sql/DatabaseMetaData.java: Fix comments. | |
262 | ||
a7fabf19 BM |
263 | 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz> |
264 | ||
265 | * java/io/PipedReader: Synchronize on "lock" instead of this. | |
266 | ||
7ae30a91 BM |
267 | 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz> |
268 | ||
269 | * java/lang/Thread.java: Update comment. | |
270 | ||
865b4ea7 BM |
271 | * java/io/PipedInputStream: Rewrote to be simpler and more correct. |
272 | * java/io/PipedOutputStream: Updated to match new PipedInputStream. | |
273 | * java/io/PipedReader: New implementation based on new | |
274 | PipedInputStream. | |
a7fabf19 | 275 | * java/io/PipedWriter: Updated to match new PipedReader. |
865b4ea7 | 276 | |
234fb86c TT |
277 | 2001-01-03 Tom Tromey <tromey@redhat.com> |
278 | ||
279 | * java/awt/ScrollPane.java (setBlockIncrement): Throw error. | |
280 | (getViewportSize): Insets include scrollbar size. | |
281 | (doLayout): Finished. | |
282 | (getScrollPosition): Wrote. | |
283 | * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed. | |
284 | ||
f5826791 TT |
285 | 2001-01-02 Tom Tromey <tromey@redhat.com> |
286 | ||
287 | * java/awt/ScrollPane.java: Wrote. | |
288 | * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New | |
289 | method. | |
290 | ||
291 | * java/awt/Panel.java (Panel()): Fixed. | |
292 | ||
293 | * java/awt/Component.java (isShowing): Return false if no peer | |
294 | exists, and true if component is visible and no parent exists. | |
295 | (getLocationOnScreen): Wrote. | |
296 | (getPreferredSize): Removed FIXME comment. | |
297 | (getMinimumSize): Likewise. | |
298 | (getAlignmentX, getAlignmentY): Wrote. | |
299 | (list): Wrote. | |
300 | (requestFocus): Wrote. | |
301 | (transferFocus): Wrote. | |
302 | (findNextFocusComponent): New method. | |
303 | (hasFocus()): Wrote. | |
304 | (checkImage): Wrote. | |
305 | (enableEvents): Call setEventMask on the peer. | |
306 | ||
307 | * java/awt/Container.java (list): Use super.list() to print self. | |
308 | (findNextFocusComponent): New method. | |
309 | (setLayout): Call invalidate. | |
310 | (findComponentAt): Wrote. | |
311 | ||
e301621d BM |
312 | 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz> |
313 | ||
314 | * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that | |
315 | the correct versions of various linuxthreads functions get linked. | |
316 | * Makefile.in: Rebuilt. | |
317 | * java/lang/natThread.cc (finalize_native): New static function. Call | |
318 | _Jv_ThreadDestroyData. | |
319 | (initialize_native): Register finalizer for "data". | |
320 | * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype. | |
321 | (_Jv_ThreadDestroyData): New prototype. | |
322 | * include/win32-threads.h: Ditto. | |
323 | * include/no-threads.h: Ditto. | |
324 | * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype. | |
325 | (_Jv_ThreadDestroyData): New function. Free native thread "data" and | |
326 | move mutex and condition variable destroy code from: | |
327 | (really_start): ...here. | |
328 | (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED. | |
329 | * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype. | |
330 | (_Jv_ThreadDestroyData): Implemented. | |
331 | * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t". | |
332 | (_Jv_AllocArray): Ditto. | |
333 | ||
4c58589f JS |
334 | 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com> |
335 | ||
336 | * java/sql/DriverManager.java (getConnection): Don't set user/password | |
337 | properties if null. | |
338 | ||
ed55bdc4 WL |
339 | 2000-12-27 Warren Levy <warrenl@redhat.com> |
340 | ||
341 | Fix for PR libgcj/1358: | |
342 | * java/lang/System.java: Update Copyright date properly. | |
343 | * java/util/Calendar.java: Fix typo in comment. | |
344 | (set): Set 24-hour clock hour instead of 12-hour clock hour. | |
345 | * java/util/GregorianCalendar.java (GregorianCalendar): Properly | |
346 | initialize times. Spec says to set H:M:S values to zero only if | |
347 | a date is given. | |
348 | * java/util/TimeZone.java (getDefaultDisplayName): Casts to char | |
349 | needed for evaluating numbers '0' to '9' in printouts of GMT offsets. | |
350 | * java/util/natGregorianCalendar.cc (computeTime): Properly handle | |
351 | timezones and GMT offsets, being careful to account for units of | |
352 | milliseconds vs. seconds. | |
353 | ||
6147e9d0 BM |
354 | 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz> |
355 | ||
356 | * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can | |
357 | not be assigned to Object. | |
358 | ||
359 | Fix for PR libgcj/1516: | |
360 | * java/lang/reflect/natMethod.cc (primitives): Remove void entry. | |
361 | Add boolean entry. | |
362 | (can_widen): Declared inline. Remove redundant checks for void | |
363 | arguments and char->short conversion. Add special case for boolean | |
364 | conversions. | |
365 | (ffi_type): Declared inline. | |
366 | (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block. | |
367 | ||
c4f58426 PR |
368 | 2000-12-26 Petter Reinholdtsen <pere@hungry.com> |
369 | ||
370 | * java/sql/SQLWarning.java: Fixed typo in comment. | |
371 | ||
b3b90f82 TT |
372 | 2000-12-26 Tom Tromey <tromey@redhat.com> |
373 | ||
374 | * java/awt/MenuItem.java (paramString): Now protected. | |
375 | ||
376 | * java/awt/MenuShortcut.java: Implements Serializable. | |
377 | ||
378 | * java/awt/MenuBar.java: Rewrote from scratch. | |
379 | ||
380 | * java/awt/MenuComponent.java (removeNotify): Wrote. | |
381 | Implements Serializable. | |
382 | ||
383 | * java/awt/GridBagConstraints.java (GridBagConstraints): New | |
384 | constructor. | |
385 | ||
386 | * java/awt/CheckboxMenuItem.java: Wrote. | |
387 | ||
5472d195 TT |
388 | 2000-12-25 Tom Tromey <tromey@redhat.com> |
389 | ||
390 | * java/awt/MenuContainer.java: Fixed typo. | |
391 | ||
392 | * Makefile.in: Rebuilt. | |
393 | * Makefile.am (awt_java_source_files): Added SystemColor.java. | |
394 | * java/awt/SystemColor.java: New file. | |
395 | ||
396 | * java/awt/Color.java (rgba): Now package-private. | |
397 | ||
398 | * java/awt/event/InputEvent.java (isAltGraphDown): New method. | |
399 | ||
400 | * java/awt/event/ContainerEvent.java (getContainer): Renamed from | |
401 | getComponent. | |
402 | ||
403 | * java/awt/MenuItem.java (addNotify): New method. | |
404 | (MenuItem(String,MenuShortcut)): New constructor. | |
405 | (setLabel): Notify peer of change. | |
406 | (setEnabled): Likewise. | |
407 | ||
408 | * java/awt/GridLayout.java (toString): New method. | |
409 | ||
410 | * java/awt/FlowLayout.java (LEADING, TRAILING): New constants. | |
411 | (FlowLayout): Check for LEADING and TRAILING. | |
412 | (setAlignment): Likewise. | |
413 | (layoutContainer): Handle component orientation. | |
414 | ||
415 | * java/awt/Component.java (orientatin): New field. | |
416 | (setComponentOrientation): Wrote. | |
417 | (getComponentOrientation): Wrote. | |
418 | ||
419 | * java/awt/Event.java (Event): Implements Serializable. | |
420 | (consumed): New field for serialization. | |
421 | * java/awt/Dimension.java (Dimension): Implements Serializable. | |
422 | * java/awt/Cursor.java (Cursor): Implements Serializable. | |
423 | * java/awt/Container.java (Container): No longer abstract. | |
424 | ||
425 | * java/awt/Choice.java: Wrote. | |
426 | * java/awt/Checkbox.java: Wrote. | |
427 | * java/awt/ItemSelectable.java: Documented. | |
428 | * java/awt/CheckboxGroup.java: Wrote. | |
429 | ||
430 | * java/awt/CardLayout.java (layoutContainer): Directly use fields | |
431 | in other classes. | |
432 | (getSize): Likewise. | |
433 | ||
83050e0d JS |
434 | 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com> |
435 | ||
436 | * java/io/FileDescriptor.java: Initialize fd to -1. | |
437 | Remove default constructor. | |
438 | ||
93b0dee7 JM |
439 | 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk> |
440 | ||
441 | * java/lang/mprec.h: Change C9X reference to refer to C99. | |
442 | ||
86a42a5f BM |
443 | 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz> |
444 | ||
445 | * java/lang/Throwable.java (trace_enabled): New static field. | |
446 | * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if | |
447 | trace_enabled not set. | |
448 | * prims.cc (main_init): Turn off trace_enabled while creating | |
449 | default exception objects. | |
450 | ||
465c091c TT |
451 | 2000-12-21 Tom Tromey <tromey@redhat.com> |
452 | ||
5ebee7d4 TT |
453 | * java/beans/PropertyChangeListener.java: Extends EventListener. |
454 | * java/beans/VetoableChangeListener.java: Extends EventListener. | |
455 | ||
465c091c TT |
456 | * java/util/zip/Deflater.java (update, init): Now private. |
457 | ||
f387d862 BM |
458 | 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz> |
459 | ||
460 | * java/util/BasicMapEntry.java: Re-added. | |
461 | * java/util/HashMap.java (Entry): Extend BasicMapEntry. | |
462 | (putAll): Test for BasicMapEntry. | |
463 | * java/util/Hashtable.java (Entry): Extend BasicMapEntry. | |
464 | (putAll): Test for BasicMapEntry. | |
465 | Change references from `HashMap.Entry' to `Entry' in various places. | |
466 | * Makefile.am: Add BasicMapEntry.java. | |
467 | * Makefile.in: Rebuilt. | |
468 | ||
1889cf4a WL |
469 | 2000-12-18 Warren Levy <warrenl@redhat.com> |
470 | ||
471 | * java/util/GregorianCalendar.java (GregorianCalendar): Constructors | |
472 | need to set timezone to a valid non-null value. Partial fix for | |
473 | PR 331. | |
474 | ||
da68e693 BM |
475 | 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz> |
476 | ||
477 | * java/awt/Window.java (addNotify): Remove peer casting hack now that | |
478 | gcj/312 is fixed. | |
be36b6d0 BM |
479 | * java/awt/Button.java (addNotify): Likewise. |
480 | * java/awt/Label.java (addNotify): Likewise. | |
481 | * java/awt/Panel.java (addNotify): Likewise. | |
482 | * java/awt/Scrollbar.java (addNotify): Likewise. | |
483 | * java/awt/Component.java (processPaintEvent): Use peer not getPeer. | |
484 | Remove redundant null checks. | |
da68e693 | 485 | |
161e6a42 JM |
486 | 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk> |
487 | ||
488 | * COPYING: Update to current | |
489 | ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references | |
490 | to 19yy as example year in copyright notice). | |
491 | ||
dbb04e88 BM |
492 | 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz> |
493 | ||
494 | * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as | |
495 | end-of-stream if avail_in is 0. | |
496 | ||
8e0fe03e BM |
497 | 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz> |
498 | ||
499 | * java/util/ArrayList.java (data): Declare transient. | |
500 | (serialPersistantFields): Removed. | |
501 | (readObject): Use defaultReadObject(), not readFields(). | |
502 | (writeObject): Use defaultWriteObject(), not writeFields(). | |
503 | ||
4984a8d3 JS |
504 | 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com> |
505 | ||
506 | * java/util/Hashtable.java (put): Remove `last' variable. | |
507 | Link new entry to head of list. | |
508 | * java/util/HashMap.java (put): Ditto. | |
509 | ||
1e185c02 TT |
510 | 2000-12-15 Tom Tromey <tromey@redhat.com> |
511 | ||
512 | * java/util/ResourceBundle.java (trySomeGetBundle): Pass class | |
513 | loader to Class.forName. | |
514 | ||
9acffced TT |
515 | 2000-12-14 Tom Tromey <tromey@redhat.com> |
516 | ||
cd848423 TT |
517 | * java/util/ResourceBundle.java |
518 | (getBundle(String,Locale,ClassLoader)): New method. | |
519 | (trySomeGetBundle): Added `loader' argument. | |
520 | (partialGetBundle): Likewise. | |
521 | ||
13b7bc8a TT |
522 | * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly, |
523 | maximumFractionDigits, maximumIntegerDigits, | |
524 | minimumFractionDigits, minimumIntegerDigits): Now | |
525 | package-private. | |
526 | ||
8eb1306f TT |
527 | * java/lang/Thread.java (checkAccess): Now final. |
528 | ||
4ca70ccd TT |
529 | * java/lang/RuntimePermission.java: Class now final. |
530 | ||
49c24f00 TT |
531 | * java/io/StringWriter.java (StringWriter(int)): Now public. |
532 | ||
f2edab0e TT |
533 | * java/io/SerializablePermission.java (legal_names): Now private. |
534 | ||
9acffced TT |
535 | * java/lang/Character.java: Updated UnicodeBlock constants. |
536 | * scripts/blocks.pl: Special case private use and surrogate | |
537 | areas. Updated URL. | |
538 | ||
ee84a135 TT |
539 | 2000-12-12 Tom Tromey <tromey@redhat.com> |
540 | ||
541 | * Makefile.in: Rebuilt. | |
542 | * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding | |
543 | option. | |
544 | (GCJCOMPILE): Use it. | |
545 | (JAVAC): Likewise. | |
546 | ||
7896f1e4 TT |
547 | 2000-12-11 Tom Tromey <tromey@redhat.com> |
548 | ||
d65b78c9 TT |
549 | * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar): |
550 | New static final fields. | |
551 | ||
7896f1e4 TT |
552 | * scripts/classes.pl (scan): Skip lines with leading `*'. |
553 | Fix for PR libgcj/378. | |
554 | ||
0aa9764b BM |
555 | 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz> |
556 | ||
557 | * configure.in: Remove check for -fuse-divide-subroutine. | |
558 | * configure: Rebuilt. | |
c5afc192 BM |
559 | |
560 | * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'. | |
0aa9764b | 561 | |
34a2a47f BM |
562 | * gcj/javaprims.h: Rebuilt CNI namespace declarations. |
563 | ||
488d42af BM |
564 | 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz> |
565 | ||
566 | * Makefile.am: Add HashSet.java and java/lang/ref classes. | |
567 | Remove BasicMapEntry.java and Bucket.java. | |
568 | * Makefile.in: Rebuilt. | |
569 | * java/util/HashMap.java: Rewritten. | |
570 | * java/util/HashSet.java: Imported from classpath. | |
571 | * java/util/WeakHashMap.java: Imported from classpath. | |
572 | * java/util/Hashtable.java: Rewritten based on new HashMap code. | |
573 | * java/util/Bucket.java: Deleted. | |
574 | * java/util/BasicMapEntry.java: Deleted. | |
575 | * java/util/Collections.java (search): Use a for-loop, not iterator | |
576 | hasNext(). | |
577 | (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out | |
578 | of elements in source. | |
579 | (max): Use a for-loop. | |
580 | (min): Ditto. | |
581 | (reverse): Keep track of positions instead of using Iterator's | |
582 | nextIndex() and previousIndex(). | |
583 | (shuffle(List)): Initialize defaultRandom if required using | |
584 | double-check thread safety idiom. Call two-argument shuffle method | |
585 | using defaultRandom. | |
586 | (defaultRandom): New field. | |
587 | (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of | |
588 | using previousIndex() and nextIndex(). | |
589 | (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry. | |
590 | * java/util/AbstractCollection.java (toString): Use a StringBuffer. | |
591 | * java/util/AbstractMap.java (toString): Use StringBuffer. | |
592 | * java/lang/ref/PhantomReference.java: Imported from classpath. | |
593 | * java/lang/ref/SoftReference.java: Ditto. | |
594 | * java/lang/ref/Reference.java: Ditto. | |
595 | * java/lang/ref/WeakReference.java: Ditto. | |
596 | * java/lang/ref/ReferenceQueue.java: Ditto. | |
597 | ||
48a9aced RH |
598 | 2000-12-10 Richard Henderson <rth@redhat.com> |
599 | ||
600 | * configure.host: Recognize alpha*-*, not alphaev6-*. | |
601 | ||
bc38c787 AG |
602 | 2000-12-09 Anthony Green <green@redhat.com> |
603 | ||
604 | * configure.host: Enable interpreter for Alpha. | |
605 | ||
f34ff6d6 APB |
606 | 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com> |
607 | ||
608 | * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip. | |
609 | (ZIP): Points at fastjar instead of zip. | |
610 | (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip. | |
611 | (libgcj_la_LDFLAGS): Correctly point at libsupc++. | |
612 | (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip. | |
613 | (libgcjx_la_LDFLAGS): Correctly point at libsupc++. | |
614 | ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip. | |
615 | ($(x_java_source_files:.java=.class):): Likewise. | |
616 | (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses | |
617 | fastar's flags. | |
618 | (CLEANFILES): libgcj.jar replaces libgcj.zip. | |
619 | (java/lang/ClassLoader.h:): Depends on libgcj.jar. | |
620 | (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:, | |
621 | java/lang/String.h:, java/lang/reflect/Constructor.h:, | |
622 | java/lang/reflect/Field.h:, java/lang/reflect/Method.h:, | |
623 | gnu/gcj/runtime/VMClassLoader.h:, | |
624 | java/io/ObjectInputStream$$GetField.h:, | |
625 | java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise. | |
626 | (Makefile.in): Rebuilt. | |
627 | ||
583e347f TT |
628 | 2000-12-08 Tom Tromey <tromey@redhat.com> |
629 | ||
630 | From Phil Edwards: | |
631 | * configure: Rebuilt. | |
632 | * configure.in: Use echo, not `:', to create .d files. | |
633 | ||
d5323b99 WL |
634 | 2000-12-08 Warren Levy <warrenl@redhat.com> |
635 | ||
636 | * java/lang/StringBuffer.java (insert(int,char[])): Avoid | |
637 | NullPointerException so proper check of offset can be done. | |
638 | ||
be17b0fc WL |
639 | 2000-12-08 Warren Levy <warrenl@redhat.com> |
640 | ||
641 | * java/io/FileInputStream.java (close): Check if the fd is valid. | |
642 | * java/io/RandomAccessFile.java (close): Ditto. | |
643 | * java/net/PlainDatagramSocketImpl.java (close): Ditto. | |
644 | * java/net/PlainSocketImpl.java (close): Ditto. | |
645 | ||
ef9508c0 TT |
646 | 2000-12-06 Tom Tromey <tromey@redhat.com> |
647 | ||
b2d98afe TT |
648 | * java/awt/GridBagConstraints.java: Filled in values for static |
649 | final fields. | |
650 | ||
308d7d2b TT |
651 | * java/util/BitSet.java: Updated copyright notice. |
652 | ||
ef9508c0 TT |
653 | * Makefile.in: Rebuilt. |
654 | * Makefile.am (awt_java_source_files): Added new file. | |
655 | * java/awt/GridBagConstraints.java: New file. | |
656 | ||
456ffe4c TT |
657 | 2000-12-05 Tom Tromey <tromey@redhat.com> |
658 | ||
659 | * java/text/Collator.java (decomposeCharacter, decmp, strength): | |
660 | Now package-private, not protected. | |
661 | * java/text/DateFormatSymbols.java (equals): Now private. | |
662 | * java/text/DecimalFormatSymbols.java (safeGetChar): Now private. | |
663 | * java/util/BitSet.java: Class no longer final. | |
456ffe4c | 664 | |
9de488f6 WL |
665 | 2000-12-04 Warren Levy <warrenl@redhat.com> |
666 | ||
667 | * java/util/TimeZone.java (getAvailableIDs): Activated commented | |
668 | out code dependent on compiler and library changes. | |
669 | ||
21a16007 WL |
670 | 2000-12-04 Warren Levy <warrenl@redhat.com> |
671 | ||
672 | * java/io/FilePermission.java: Made class final per spec. | |
673 | * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed | |
674 | method name to match spec (fixed typo). | |
675 | * java/util/LinkedList.java: Implements List. | |
676 | ||
64fc0133 BM |
677 | 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz> |
678 | ||
679 | * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From | |
680 | Edgar Villanueva <edgarvil@home.com>. | |
681 | ||
8538fd01 TT |
682 | 2000-12-03 Tom Tromey <tromey@redhat.com> |
683 | ||
2936419d TT |
684 | * java/awt/geom/Point2D.java: Added protected constructor. |
685 | (equals): New method. | |
686 | (Float.setLocation(float,float)): New method. | |
687 | * java/awt/geom/Dimension2D.java: Added protected constructor. | |
688 | * java/awt/geom/AffineTransform.java: Made all constants public. | |
689 | (concatenate): Fixed typo in name. | |
690 | * java/awt/event/WindowAdapter.java: Class now abstract. | |
691 | * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final. | |
692 | * java/awt/event/FocusEvent.java: Extend ComponentEvent, not | |
693 | AWTEvent. | |
694 | ||
c06093a0 TT |
695 | * java/awt/AWTError.java: Extend Error, not |
696 | IllegalStateException. | |
697 | ||
f933fd92 TT |
698 | * Makefile.in: Rebuilt. |
699 | * Makefile.am (awt_java_source_files): Added new file. | |
700 | * java/awt/geom/RoundRectangle2D.java: New file. | |
701 | ||
a048c5b5 TT |
702 | * Makefile.in: Rebuilt. |
703 | * Makefile.am (awt_java_source_files): Added new file. | |
704 | * java/awt/FlowLayout.java: New file. | |
705 | ||
8538fd01 TT |
706 | * Makefile.in: Rebuilt. |
707 | * Makefile.am (awt_java_source_files): Added new file. | |
708 | * java/awt/GridLayout.java: New file. | |
709 | ||
673953d6 TT |
710 | 2000-12-02 Tom Tromey <tromey@redhat.com> |
711 | ||
712 | * Makefile.in: Rebuilt. | |
713 | * Makefile.am (awt_java_source_files): Added new files. | |
714 | * java/awt/CardLayout.java: New file. | |
715 | * java/awt/AWTPermission.java: New file. | |
716 | ||
0fa80ee2 TT |
717 | 2000-12-01 Tom Tromey <tromey@redhat.com> |
718 | ||
719 | * java/util/Vector.java (insertElementAt): Unconditionally | |
720 | increment elementCount. | |
721 | (removeRange): Clear unused slots in vector. | |
722 | ||
db5e4903 BM |
723 | 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz> |
724 | ||
725 | * java/lang/natMath.cc: Declare fabsf() function. | |
726 | * java/lang/mprec.h: Don't include math.h. | |
727 | * java/lang/dtoa.c: Include string.h. | |
728 | * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent | |
729 | compiler warning. | |
aaa4cecd BM |
730 | |
731 | From Adam Welc <welc@cs.purdue.edu>: | |
732 | * java/util/LinkedList.java (removeFirst): Update `first' field. | |
733 | Handle the last == first case. | |
734 | (removeLast): Update `last' field. Handle the last == first case. | |
db5e4903 | 735 | |
21ac293b WL |
736 | 2000-12-01 Warren Levy <warrenl@cygnus.com> |
737 | ||
738 | * Makefile.am: Added entries for new java.sql modules. | |
739 | * Makefile.in: Rebuilt. | |
740 | ||
89f99caa WL |
741 | 2000-12-01 Warren Levy <warrenl@cygnus.com> |
742 | ||
743 | * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes | |
744 | that aren't quite 1.2 compatible yet. | |
745 | ||
6934615b WL |
746 | 2000-11-30 Warren Levy <warrenl@cygnus.com> |
747 | ||
2f467109 WL |
748 | * java/sql/Array.java: New file from classpath. |
749 | * java/sql/BatchUpdateException.java: Ditto. | |
750 | * java/sql/Blob.java: Ditto. | |
751 | * java/sql/Clob.java: Ditto. | |
752 | * java/sql/Ref.java: Ditto. | |
753 | * java/sql/SQLData.java: Ditto. | |
754 | * java/sql/SQLInput.java: Ditto. | |
755 | * java/sql/SQLOutput.java: Ditto. | |
756 | * java/sql/Struct.java: Ditto. | |
757 | * java/sql/CallableStatement.java: Merged file from claspath. | |
758 | * java/sql/Connection.java: Ditto. | |
759 | * java/sql/DataTruncation.java: Ditto. | |
760 | * java/sql/DatabaseMetaData.java: Ditto. | |
761 | * java/sql/DriverManager.java: Ditto. | |
762 | * java/sql/PreparedStatement.java: Ditto. | |
763 | * java/sql/ResultSet.java: Ditto. | |
764 | * java/sql/ResultSetMetaData.java: Ditto. | |
765 | * java/sql/SQLException.java: Ditto. | |
766 | * java/sql/SQLWarning.java: Ditto. | |
767 | * java/sql/Statement.java: Ditto. | |
768 | * java/sql/Types.java: Ditto. | |
6934615b | 769 | |
5662d533 BM |
770 | 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz> |
771 | ||
772 | * java/lang/natSystem.cc (init_properties): Set user.language and | |
773 | user.region. | |
774 | * configure.in: Check for setlocale. | |
775 | * configure: Rebuilt. | |
776 | * include/config.h.in: Rebuilt. | |
d02bc1fb BM |
777 | |
778 | * java/util/zip/InflaterInputStream (read): Don't return -1 unless | |
779 | the infate() call didn't deliver any output. Throw a ZipException if | |
780 | the needsDictionary() call returns true. | |
781 | * java/io/ByteArrayInputStream (read): Remove redundant bounds checks. | |
782 | * java/io/InputStreamReader: Use the default buffer size for the | |
783 | contained BufferedInputStream. | |
5662d533 | 784 | |
1326d0c4 WL |
785 | 2000-11-28 Warren Levy <warrenl@cygnus.com> |
786 | ||
787 | * java/text/DateFormatSymbols.java (zoneStringsDefault): Added | |
788 | more time zone entries. | |
789 | * java/text/SimpleDateFormat.java (format): Added case for | |
790 | TIMEZONE_FIELD. | |
791 | ||
5662d533 | 792 | 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz> |
53a4b789 BM |
793 | |
794 | * java/io/DataInputStream.java: Merge classpath docs. Call in.read() | |
795 | directly rather than read() in all cases. Make primitive read | |
796 | implementations more efficient, as defined in JDK online docs. | |
797 | (skipBytes): Behave like the JDK's implementation. | |
798 | * java/io/BufferedReader.java: Merge classpath docs. Check for a | |
799 | closed stream with checkStatus() whenever an IOException can be | |
800 | thrown. | |
801 | (checkStatus): New private method. | |
802 | ||
a22add72 WL |
803 | 2000-11-27 Warren Levy <warrenl@cygnus.com> |
804 | ||
805 | * Makefile.am: Added natTimeZone.cc. | |
806 | * Makefile.in: Rebuilt. | |
807 | * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries. | |
808 | * java/text/DateFormatSymbols.java (ampms): Made package private. | |
809 | (eras): Made package private. | |
810 | (months): Made package private. | |
811 | (shortMonths): Made package private. | |
812 | (shortWeekdays): Made package private. | |
813 | (weekdays): Made package private. | |
814 | (formatPrefixes): New private field. | |
815 | (localPatternCharsDefault): Made private. | |
816 | (dateFormats): New package private field. | |
817 | (timeFormats): New package private field. | |
818 | (formatsForKey): New private method. | |
819 | (DateFormatSymbols(Locale)): Set dateFormats and timeFormats. | |
820 | (DateFormatSymbols(DateFormatSymbols)): Ditto. | |
821 | * java/text/SimpleDateFormat.java: Merged with Classpath. | |
822 | * java/util/TimeZone.java: Merged with Classpath. | |
823 | * java/util/natTimeZone.cc: New file. | |
824 | ||
f24dbacf BM |
825 | 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz> |
826 | ||
827 | * java/util/Vector.java (ensureCapacity): Don't increment modCount. | |
828 | (addElement): Don't increment elementCount twice. Doh. | |
829 | * java/util/ArrayList.java (add): Only call ensureCapacity if the | |
830 | array needs to be expanded. | |
831 | (addAll): Ditto. | |
832 | * java/util/Collections.java (UnmodifiableCollection): Implement | |
833 | toString(). | |
834 | (UnmodifiableList): Throw UnsupportedOperationException from | |
835 | modification methods. Set `l' from the one-parameter constructor. | |
836 | (UnmodifiableMap): Implement toString(). | |
837 | (SynchronizedCollection): Ditto. | |
838 | (SynchronizedList): Set `l' from the one-parameter constructor. | |
839 | (SynchronizedSortedSet): Set `ss' from the one-parameter constructor. | |
840 | (SynchronizedMap): Implement toString(). | |
841 | ||
70b642b4 AG |
842 | Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com> |
843 | ||
844 | * javax/naming/NameParser.java, | |
845 | javax/naming/directory/AttributeInUseException.java, | |
846 | javax/naming/directory/AttributeModificationException.java, | |
847 | javax/naming/directory/InvalidAttributeIdentifierException.java, | |
848 | javax/naming/directory/InvalidAttributesException.java, | |
849 | javax/naming/directory/InvalidAttributeValueException.java, | |
850 | javax/naming/directory/InvalidSearchControlsException.java, | |
851 | javax/naming/directory/InvalidSearchFilterException.java, | |
852 | javax/naming/directory/NoSuchAttributeException.java, | |
853 | javax/naming/directory/SchemaViolationException.java: New files. | |
854 | ||
ea813605 AG |
855 | Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com> |
856 | ||
857 | * javax/naming/InitialContext.java (rebind): Implement. | |
858 | (unbind): Implement. | |
859 | (rename): Implement. | |
860 | (list): Implement. | |
861 | (listBindings): Implement. | |
862 | (destroySubcontext): Implement. | |
863 | (createSubcontext): Implement. | |
864 | (lookupLink): Implement. | |
865 | (getNameParser): Implement. | |
866 | (composeName): Implement. | |
867 | (addToEnvironment): Implement. | |
868 | ||
e36b9711 AG |
869 | Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> |
870 | ||
871 | * javax/naming/AuthenticationException.java, | |
872 | javax/naming/AuthenticationNotSupportedException.java, | |
873 | javax/naming/CannotProceedException.java, | |
874 | javax/naming/CommunicationException.java, | |
875 | javax/naming/ConfigurationException.java, | |
876 | javax/naming/ContextNotEmptyException.java, | |
877 | javax/naming/InsufficientResourcesException.java, | |
878 | javax/naming/InterruptedNamingException.java, | |
879 | javax/naming/InvalidNameException.java, | |
880 | javax/naming/LimitExceededException.java, | |
881 | javax/naming/LinkException.java, | |
882 | javax/naming/LinkLoopException.java, | |
883 | javax/naming/MalformedLinkException.java, | |
884 | javax/naming/NameAlreadyBoundException.java, | |
885 | javax/naming/NameNotFoundException.java, | |
886 | javax/naming/NamingSecurityException.java, | |
887 | javax/naming/NoPermissionException.java, | |
888 | javax/naming/NotContextException.java, | |
889 | javax/naming/PartialResultException.java, | |
890 | javax/naming/ReferralException.java, | |
891 | javax/naming/ServiceUnavailableException.java, | |
892 | javax/naming/SizeLimitExceededException.java, | |
893 | javax/naming/TimeLimitExceededException.java: New files. | |
894 | ||
895 | * javax/naming/Name.java (clone): New method. | |
896 | (compareTo): New method. | |
897 | (isEmpty): New method. | |
898 | (getAll): New method. | |
899 | (getPrefix): New method. | |
900 | (getSuffix): New method. | |
901 | (startsWith): New method. | |
902 | (endsWith): New method. | |
903 | (addAll): New method. | |
904 | (addAll): New method. | |
905 | (add): New method. | |
906 | (add): New method. | |
907 | (remove): New method. | |
908 | ||
909 | * javax/naming/Context.java (lookup): New method. | |
910 | (rebind): New method. | |
911 | (unbind): New method. | |
912 | (rename): New method. | |
913 | (list): New method. | |
914 | (listBindings): New method. | |
915 | (destroySubcontext): New method. | |
916 | (createSubcontext): New method. | |
917 | (lookupLink): New method. | |
918 | (getNameParser): New method. | |
919 | (composeName): New method. | |
920 | (addToEnvironment): New method. | |
921 | (removeFromEnvironment): New method. | |
922 | (getEnvironment): New method. | |
923 | (close): New method. | |
924 | (getNameInNamespace): New method. | |
925 | ||
926 | * javax/naming/InitialContext.java (lookup): New method. | |
927 | (rebind): New method. | |
928 | (unbind): New method. | |
929 | (rename): New method. | |
930 | (list): New method. | |
931 | (listBindings): New method. | |
932 | (destroySubcontext): New method. | |
933 | (createSubcontext): New method. | |
934 | (lookupLink): New method. | |
935 | (getNameParser): New method. | |
936 | (composeName): New method. | |
937 | (addToEnvironment): New method. | |
938 | (removeFromEnvironment): New method. | |
939 | (getEnvironment): New method. | |
940 | (close): New method. | |
941 | (getNameInNamespace): New method. | |
942 | ||
2721806e TT |
943 | 2000-11-26 Tom Tromey <tromey@cygnus.com> |
944 | ||
0cf17a80 TT |
945 | * Makefile.in: Rebuilt. |
946 | * Makefile.am (core_java_source_files): Added | |
947 | RuntimePermission.java. | |
948 | * java/lang/RuntimePermission.java: Imported from Classpath. | |
949 | * java/lang/Thread.java (getContextClassLoader): Now | |
950 | synchronized. Added security code. | |
951 | (setContextClassLoader): Likewise. | |
952 | ||
2721806e TT |
953 | * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize |
954 | length field of array. | |
955 | (_Jv_NewPrimArray): Likewise. | |
956 | * gcj/array.h (__JArray): `length' field now const. Added | |
957 | constructor. | |
958 | ||
18205ca3 AG |
959 | 2000-11-26 Anthony Green <green@redhat.com> |
960 | ||
961 | * javax/naming/spi/NamingManager.java, | |
962 | javax/naming/spi/ObjectFactory.java, | |
963 | javax/naming/spi/InitialContextFactory.java, | |
964 | javax/naming/spi/InitialContextFactoryBuilder.java, | |
965 | javax/naming/RefAddr.java, javax/naming/Reference.java, | |
966 | javax/naming/NamingException.java, javax/naming/Context.java, | |
967 | javax/naming/Referenceable.java, | |
968 | javax/naming/directory/InitialDirContext.java, | |
969 | javax/naming/directory/DirContext.java, | |
970 | javax/naming/directory/Attributes.java, | |
971 | javax/naming/directory/Attribute.java, | |
972 | javax/naming/StringRefAddr.java, | |
973 | javax/naming/NamingEnumeration.java, javax/naming/Name.java, | |
974 | javax/naming/InitialContext.java, | |
975 | javax/naming/NoInitialContextException.java: New files. | |
976 | ||
33c9e2c2 AG |
977 | 2000-11-25 Anthony Green <green@redhat.com> |
978 | ||
979 | * prims.cc (_Jv_NewObjectArray): Undo placement change. | |
980 | (_Jv_NewPrimArray): Likewise. | |
981 | * gcj/array.h (__JArray): Undo const change. Removed constructor. | |
982 | (class JArray): Removed constructor. | |
983 | ||
984 | * java/lang/Thread.java (context_class_loader): New private data. | |
985 | (getContextClassLoader): New method. | |
986 | (setContextClassLoader): New method. | |
987 | (Thread): Initialize context_class_loader. | |
988 | ||
989 | * java/net/URLClassLoader.java: Import java.util.Enumeration. | |
990 | (getResource): Rename to findResource. | |
991 | (findResource): New method. Used to be getResource. | |
992 | (getResourceAsStream): Deleted. | |
993 | (jarFileize): Extracted logic from URLClassLoader constructor into | |
994 | this new private method. | |
995 | (addURL): New protected method. | |
996 | (URLClassLoader): Call jarFileize. Use addElement instead of | |
997 | insertElementAt. | |
998 | (findResources): New method. | |
999 | ||
1000 | * java/lang/ClassLoader.java: Import java.util.Enumeration. | |
1001 | (getResource): Implement correct logic. | |
1002 | (findResource): New method. | |
1003 | (getResources): New method. | |
1004 | (findClass): Create a ClassNotFoundException with the name of the | |
1005 | class rather than nothing at all. | |
1006 | (defineClass) Only throw ClassFormatError. | |
1007 | ||
1008 | * java/lang/Class.java (forName): New method. | |
1009 | * java/lang/Class.h (forName): New method. | |
1010 | * java/lang/natClass.cc (forName): New method. | |
1011 | ||
68d8c9e3 BM |
1012 | 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> |
1013 | ||
1014 | * java/lang/System.java (setProperties): Only call init_properties() | |
1015 | if properties is null. | |
1016 | (getProperties): Ditto. | |
1017 | (getProperty): Ditto. | |
1018 | (setProperty): Call init_properties if properties are null. | |
1019 | (prop_init): Remove field. | |
1020 | * java/lang/natSystem.cc (init_properties): Synchronize the entire | |
1021 | method. Check for null properties after synchronizing instead of | |
1022 | prop_init flag. Set the properties field last for thread safety. | |
1023 | ||
1024 | * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set, | |
1025 | test for gcj.dumpobjects property and enable object stream dumping | |
1026 | if it is set. | |
1027 | (dumpElement): No longer native. | |
1028 | (dumpElementln): Ditto. | |
1029 | (setDump): Do not define. | |
1030 | * java/io/natObjectInputStream.cc (dumpElement): Removed. | |
1031 | (dumpElementln): Removed. | |
1032 | (setDump): Removed. | |
1033 | ||
1034 | 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> | |
1035 | ||
1036 | * configure: Rebuilt. | |
1037 | * Makefile.in: Rebuilt. | |
1038 | * Makefile.am (built_java_source_files): Add Configuration.java. | |
1039 | * configure.in: Add Configuration.java to CONFIG_FILES. Set | |
1040 | LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. | |
1041 | Create `gnu' directory in the build tree. | |
1042 | * gnu/classpath/Configuration.java.in: New file. | |
1043 | ||
ad86a903 TT |
1044 | 2000-11-24 Tom Tromey <tromey@cygnus.com> |
1045 | ||
33c9e2c2 | 1046 | * prims.cc (_Jv_NewObjectArray): Use placement new to create |
ad86a903 TT |
1047 | array. |
1048 | (_Jv_NewPrimArray): Likewise. | |
1049 | Include <new>. | |
1050 | * gcj/array.h (__JArray): `length' field now const. Added | |
1051 | constructor. | |
1052 | (class JArray): Added constructor. | |
1053 | ||
abb32cf5 MW |
1054 | 2000-11-23 Mark Wielaard <mark@klomp.org> |
1055 | ||
1056 | * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting | |
1057 | lookup. | |
1058 | ||
ebb66eb5 BM |
1059 | 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz> |
1060 | ||
1061 | * java/util/Vector.java: Improve exception messages. | |
1062 | (Vector): Check initialCapacity for IllegalArgumentException. | |
1063 | (tromToSize): Don't check for elementCount == elementData.length | |
1064 | case. | |
1065 | (toArray): Don't try to set null marker if target array is the same | |
1066 | length as the vector. | |
1067 | ||
79af883c BM |
1068 | 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz> |
1069 | ||
1070 | * Makefile.in: Rebuilt. | |
1071 | * Makefile.am (core_java_source_files): Added Collections.java. | |
1072 | * java/util/List.java: Merged from classpath. | |
1073 | * java/util/Vector.java: Ditto. | |
1074 | * java/util/Collections.java: From classpath. | |
1075 | * java/util/ArrayList.java (addAll(Collection)): Call | |
1076 | addAll(int,Collection) instead of duplicating code. | |
1077 | (indexOf): Clean up int initialization. | |
1078 | (clear): Set cleared array entries to null, to allow garbage | |
1079 | collection. | |
1080 | * java/util/List.java: Minor formatting fixes. | |
1081 | * java/util/SimpleTimeZone.java: ditto. | |
1082 | ||
4de5a4d9 TT |
1083 | 2000-11-18 Tom Tromey <tromey@cygnus.com> |
1084 | ||
1085 | * Makefile.in: Rebuilt. | |
1086 | * Makefile.am (core_java_source_files): Added new files. | |
1087 | * java/lang/reflect/ReflectPermission.java: New class. | |
1088 | * java/io/FileFilter.java: From Classpath | |
1089 | * java/io/FilePermission.java: From Classpath. | |
1090 | ||
98394990 TT |
1091 | 2000-11-17 Tom Tromey <tromey@cygnus.com> |
1092 | ||
f967de33 TT |
1093 | * java/lang/reflect/AccessibleObject.java (isAccessible, |
1094 | setAccessible): Now public. | |
1095 | ||
98394990 TT |
1096 | * java/lang/natString.cc: Include Locale.h. |
1097 | (toUpperCase): Added `locale' argument. Handle locale | |
1098 | sensitivity. | |
1099 | (toLowerCase): Added `locale' argument. Handle locale | |
1100 | sensitivity. | |
1101 | (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I, | |
1102 | CAPITAL_I): New defines. | |
1103 | * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and | |
1104 | final. | |
1105 | Import Locale. | |
1106 | (toUpperCase, toLowerCase): New methods. Variants which accept | |
1107 | locale now native. | |
1108 | ||
1109 | * java/lang/ExceptionInInitializerError.java (printStackTrace): | |
1110 | New methods. | |
1111 | ||
1112 | * java/util/PropertyPermission.java: Re-merged from Classpath. | |
1113 | ||
1114 | * java/text/RuleBasedCollator.java (getCollationElementIterator): | |
1115 | New method. | |
1116 | * java/text/StringCharacterIterator.java: Reindented. | |
1117 | (setText): New method. | |
1118 | ||
abb32cf5 | 1119 | 2000-11-17 Mark Wielaard <mark@klomp.org> |
c5f651bf MW |
1120 | |
1121 | Merge with Classpath (changes by Bryce McKinlay) | |
1122 | * java/util/jar/*.java: Reformat all to unofficial standard coding | |
1123 | style. No changes of substance. | |
1124 | ||
4f21aedb MW |
1125 | 2000-11-17 Mark Wielaard <mark@klomp.org> |
1126 | ||
1127 | * java/util/zip/*.java: Javadoc updates. | |
1128 | ||
4cdfd292 TT |
1129 | 2000-11-17 Tom Tromey <tromey@cygnus.com> |
1130 | ||
1131 | * java/text/CollationKey.java: Implement Comparable. | |
1132 | (compareTo(Object)): New method. | |
1133 | * java/text/Collator.java (compare(Object,Object)): New method. | |
1134 | Implement Comparator. | |
1135 | ||
1136 | * java/util/zip/InflaterInputStream.java (available): New method. | |
1137 | (close): New method. | |
1138 | (read, available, skip, fill): Throw exception if stream closed. | |
1139 | * java/util/zip/ZipInputStream.java (read, skip, readFully, fill, | |
1140 | getNextEntry): Throw exception if closed. | |
1141 | ||
1142 | 2000-11-16 Tom Tromey <tromey@cygnus.com> | |
1143 | ||
1144 | * java/io/PushbackReader.java: Merged with Classpath. | |
1145 | * java/util/Arrays.java: Updated from Classpath. | |
1146 | ||
1147 | * scripts/blocks.pl: New file. | |
1148 | * java/lang/Character.java (Subset): New class. | |
1149 | (UnicodeBlock): New class. | |
1150 | ||
1151 | * java/lang/Math.java (toDegrees, toRadians): New methods. | |
1152 | ||
1153 | * java/lang/Float.java: Implement Comparable. | |
1154 | (compareTo): New methods. | |
1155 | * java/lang/Double.java: Implement Comparable. | |
1156 | (compareTo): New methods. | |
1157 | ||
3cd22508 WL |
1158 | 2000-11-16 Warren Levy <warrenl@cygnus.com> |
1159 | ||
1160 | * java/beans/PropertyChangeSupport.java (propertyListeners): Made | |
1161 | transient. | |
1162 | (listeners): Made transient. | |
1163 | (source): Renamed from 'bean'. | |
1164 | (children): New field for serialization. | |
1165 | (propertyChangeSupportSerializedDataVersion): Ditto. | |
1166 | (serialVersionUID): Ditto. | |
1167 | (writeObject): New serialization method. | |
1168 | (readObject): New serialization method. | |
1169 | * java/beans/VetoableChangeSupport.java (propertyListeners): Made | |
1170 | transient. | |
1171 | (listeners): Made transient. | |
1172 | (source): Renamed from 'bean'. | |
1173 | (children): New field for serialization. | |
1174 | (vetoableChangeSupportSerializedDataVersion): Ditto. | |
1175 | (serialVersionUID): Ditto. | |
1176 | (writeObject): New serialization method. | |
1177 | (readObject): New serialization method. | |
1178 | * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert | |
1179 | to allow constructor to have a return type (i.e. the class that the | |
1180 | constructor constructs). | |
1181 | ||
09ad4749 TT |
1182 | 2000-11-14 Tom Tromey <tromey@cygnus.com> |
1183 | ||
1184 | * Makefile.in: Rebuilt. | |
1185 | * Makefile.am (libgcj.zip): Fail immediately if compilation fails | |
1186 | and -k not given. | |
1187 | ||
a53785f9 WL |
1188 | 2000-11-02 Warren Levy <warrenl@cygnus.com> |
1189 | ||
1190 | * java/io/ObjectInputStream.java (readObject): Added code to | |
1191 | conditionally dump out the serialized data. | |
1192 | Handle ENDBLOCKDATA case a bit more gracefully since the current | |
1193 | behavior doesn't seem to work as expected. | |
1194 | (readStreamHeader): Added code for serialized data dumper. | |
1195 | (readNextBlock): Ditto. | |
1196 | (readFields): Ditto. | |
1197 | (dump): New private static field for turning on/off dumper. | |
1198 | (setDump): New native method. | |
1199 | (dumpElement): New native method. | |
1200 | (dumpElementln): New native method. | |
1201 | * java/io/natObjectInputStream.cc (setDump): New method. | |
1202 | (dumpElement): New method. | |
1203 | (dumpElementln): New method. | |
1204 | ||
6678181b WL |
1205 | 2000-11-02 Warren Levy <warrenl@cygnus.com> |
1206 | ||
1207 | * java/net/InetAddress.java (addr): Renamed from 'address'. | |
1208 | (address): New field to match Serialized Form doc. | |
1209 | (hostName): Renamed from 'hostname' to match Serialized Form doc. | |
1210 | (family): New serialization field. | |
1211 | (serialVersionUID): New field. | |
1212 | (readObject): New method. | |
1213 | (writeObject): New method. | |
1214 | (getFamily): New native method. | |
1215 | (InetAddress): Set family. | |
1216 | * java/net/natInetAddress.cc (getFamily): New method. | |
1217 | (addr): Renamed from 'address'. | |
1218 | (hostName): Renamed from 'hostname' to match Serialized Form doc. | |
1219 | * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'. | |
1220 | * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'. | |
1221 | ||
8d218b67 BM |
1222 | 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz> |
1223 | ||
1224 | * java/util/AbstractList.java (SubList): Make it a top-level private | |
1225 | class. | |
1226 | * java/util/LinkedList.java (remove): Do update modCount and knownMod. | |
1227 | (add): Ditto. | |
1228 | * Makefile.am (ordinary_java_source_files): Add LinkedList.java. | |
1229 | * Makefile.in: Rebuilt. | |
1230 | ||
aca46e2a TT |
1231 | 2000-11-02 Tom Tromey <tromey@cygnus.com> |
1232 | ||
1233 | * Makefile.in: Rebuilt. | |
1234 | * Makefile.am (install-exec-hook): Make `.la' link, not `.so' | |
1235 | link. | |
1236 | ||
0ad35392 BM |
1237 | 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> |
1238 | ||
1239 | * java/util/AbstractList.java (remove): Comment out modCount increment | |
1240 | to work around compiler bug. | |
1241 | (add): Ditto. | |
1242 | ||
7177dab5 BM |
1243 | 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> |
1244 | ||
1245 | * java/util/AbstractList.java: Throw messages with | |
1246 | IndexOutOfBoundsExceptions. | |
1247 | (listIterator()): Call listIterator(0). | |
1248 | (size): New field. Initialize to size(). | |
1249 | (hasNext): Test position against size, not size(). | |
1250 | (remove): Increment knownMod by one instead of resetting it from | |
1251 | modCount. | |
1252 | (add): Ditto. | |
1253 | (SubList.upMod): Removed. | |
1254 | (SubList.set): Don't call upMod() or update knownMod. | |
1255 | (SubList.add(int,Object)): Increment modCount instead of caling upMod(). | |
1256 | (SubList.remove): Ditto. | |
1257 | (SubList.addAll): Don't call backingList.size(). Increment size from | |
1258 | c.size(). | |
1259 | (SubList.iterator): New method. Call listIterator(0). | |
1260 | (SubList.listIterator): New method. Restore code to return an anonymous | |
1261 | listIterator implementation (with some changes). | |
1262 | * java/util/AbstractSequentialList.java: Throw messages with | |
1263 | IndexOutOfBoundsExceptions. | |
1264 | (addAll): Add a specnote. | |
1265 | * java/util/ArrayList.java (removeRange): Get the math right. | |
1266 | (addAll): Increment modCount _before_ creating iterator. | |
1267 | * java/util/LinkedList.java: Rewritten, mostly. | |
1268 | ||
f92351d7 TT |
1269 | 2000-11-01 Tom Tromey <tromey@cygnus.com> |
1270 | ||
1271 | * scripts/encodings.pl: Added `ASCII' alias. | |
1272 | * Makefile.in: Rebuilt. | |
1273 | * Makefile.am (convert_source_files): Added new files. | |
1274 | * gnu/gcj/convert/Input_ASCII.java: New file. | |
1275 | * gnu/gcj/convert/Output_ASCII.java: New file. | |
1276 | * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent | |
1277 | out-of-range characters. | |
1278 | * gnu/gcj/convert/natIconv.cc (iconv_init): New method. | |
1279 | (read): Swap bytes if required. Treat `count' as character count, | |
1280 | not byte count. | |
1281 | (write): Likewise. Also, handle case where iconv fails on a given | |
1282 | character. | |
1283 | (init): Put encoding into exception. | |
1284 | * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global. | |
1285 | (static): Call iconv_init. Rebuilt alias list. | |
1286 | (iconv_init): New private method. | |
1287 | ||
347b9364 TT |
1288 | 2000-11-01 Tom Tromey <tromey@cygnus.com> |
1289 | ||
1290 | * Makefile.in: Rebuilt. | |
1291 | * Makefile.am (install-exec-hook): Only make a single symlink, and | |
1292 | remove the destination before making the link. | |
1293 | * configure: Rebuilt. | |
1294 | * configure.in: Call AC_PROG_LN_S. | |
1295 | ||
4547105f WL |
1296 | 2000-10-31 Warren Levy <warrenl@cygnus.com> |
1297 | ||
1298 | * jni.cc: Added include of java/lang/ThreadGroup.h. | |
1299 | * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace | |
1300 | per change of 2000-10-05. | |
1301 | ||
661a98d1 BM |
1302 | 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz> |
1303 | ||
1304 | * java/util/BitSet.java: Updated @specnote. | |
1305 | ||
67f279df BM |
1306 | * java/io/Reader.java: Merge docs from classpath. |
1307 | (skip): Synchronize on `lock'. | |
1308 | * java/io/FileReader.java: Import correct implementation from | |
1309 | classpath. | |
1310 | * java/io/StringReader.java: Merge docs from classpath. | |
1311 | (ready): Throw IOException if stream is closed. | |
1312 | ||
3a737578 BM |
1313 | 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz> |
1314 | ||
1315 | * java/util/AbstractCollection.java (addAll): Use size() instead of | |
1316 | hasNext() in iterator loop. | |
1317 | (clear): Ditto. | |
1318 | (contains): Ditto. Simplify loop. | |
1319 | (containsAll): Ditto. | |
1320 | (remove): Ditto. | |
1321 | (removeAll): Ditto. | |
1322 | (retainAll): Ditto. | |
1323 | (toArray): Ditto. | |
1324 | (toString): Ditto. Use string concatenation operators, not | |
1325 | StringBuffer. | |
1326 | * java/util/AbstractList.java (addAll): Use size() instead of | |
1327 | hasNext() in iterator loop. | |
1328 | (equals): Ditto. | |
1329 | (hashCode): Ditto. | |
1330 | (indexOf): Ditto. Don't take null check outside of the loop. | |
1331 | (iterator): Return an AbstractListItr instead of anonymous class. | |
1332 | (lastIndexOf): Use a for loop bounded by size() instead of | |
1333 | hasPrevious() in iterator loop. | |
1334 | (listIterator): Return an AbstractListItr. | |
1335 | (removeRange): Remove bounds checking code and docs. | |
1336 | (AbstractListItr): New inner class. Code moved here from | |
1337 | listIterator(). | |
1338 | (SubList.iterator): Removed. Use default implementation from | |
1339 | AbstractList instead. | |
1340 | (SubList.listIterator): As above. | |
1341 | * java/util/AbstractMap.java (clear): Use a for loop bounded by size() | |
1342 | instead of hasNext() in iterator loop. | |
1343 | (containsValue): Ditto. | |
1344 | (equals): Ditto. | |
1345 | (get): Ditto. | |
1346 | (put): Ditto. | |
1347 | (putAll): Ditto. | |
1348 | (remove): Ditto. | |
1349 | (toString): Ditto. Use string concatenation operators, not | |
1350 | StringBuffer. | |
1351 | * java/util/AbstractSequentialList.java (addAll): Use a for loop | |
1352 | bounded by size() instead of hasNext() in iterator loop. | |
1353 | * java/util/AbstractSet.java (hashCode): Don't catch exception as | |
1354 | part of normal execution flow. Do an explicit null check instead. | |
1355 | * java/util/ArrayList.java (_iSize): Rename to `size'. | |
1356 | (_arData): Rename to `data'. | |
1357 | (get): Check lower bounds also. Simplify IndexOutOfBoundsException | |
1358 | message. | |
1359 | (remove): Ditto. | |
1360 | (removeRange): Make protected. Don't check bounds. | |
1361 | (add): Check lower bounds also. Simplify IndexOutOfBoundsException | |
1362 | message. | |
1363 | (addAll (Collection)): Use a size-bounded for loop instead of hasNext() | |
1364 | check. | |
1365 | (addAll (int, Collection)): Check lower bounds. Simplify exception | |
1366 | string. | |
1367 | (clone): Clone the data array too. | |
1368 | (indexOf): Inline doesEqual(). | |
1369 | (lastIndexOf): Ditto. | |
1370 | (clear): Don't set array data to null. | |
1371 | (set): Check lower bounds. Simplify exception string. | |
1372 | (toArray): Correct comment. | |
1373 | (trimToSize): Don't update modCount, this is not a structural change. | |
1374 | Add comment. | |
1375 | ||
1376 | * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods | |
1377 | implemented. | |
1378 | (toString): Declare `bit' as long, not int. | |
1379 | (data): Made package-private, not private. | |
1380 | ||
128e977c WL |
1381 | 2000-10-27 Warren Levy <warrenl@cygnus.com> |
1382 | ||
1383 | * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__ | |
1384 | array elements to true. | |
1385 | ||
df98a50b WL |
1386 | 2000-10-27 Warren Levy <warrenl@cygnus.com> |
1387 | ||
1388 | * Makefile.am: Added locale files from Classpath. | |
1389 | * Makefile.in: Rebuilt. | |
1390 | * gnu/java/locale/Calendar.java: New file. | |
1391 | * gnu/java/locale/Calendar_de.java: New file. | |
1392 | * gnu/java/locale/Calendar_en.java: New file. | |
1393 | * gnu/java/locale/Calendar_nl.java: New file. | |
1394 | * java/lang/ClassNotFoundException.java: Replaced with Classpath file. | |
1395 | * java/math/BigDecimal.java (intVal): Renamed from 'num' for | |
1396 | serialization compatibility. | |
1397 | (scale): Made private. | |
1398 | (serialVersionUID): New field. | |
1399 | * java/math/BigInteger.java (ival): Made transient. | |
1400 | (words): Made transient. | |
1401 | (bitCount): New serialization field. | |
1402 | (bitLength): Ditto. | |
1403 | (firstNonzeroByteNum): Ditto. | |
1404 | (lowestSetBit): Ditto. | |
1405 | (magnitude): Ditto. | |
1406 | (signum): Ditto. | |
1407 | (serialVersionUID): New field. | |
1408 | (readObject): New method. | |
1409 | (writeObject): New method. | |
1410 | * java/util/BitSet.java (serialVersionUID): New field. | |
1411 | * java/util/Calendar.java: Replaced with Classpath file. | |
1412 | * java/util/GregorianCalendar.java (GregorianCalendar): Pass result | |
1413 | of getDefault() for TimeZone or Locale instead of passing nulls. | |
1414 | * java/util/Locale.java (serialVersionUID): New field. | |
1415 | (writeObject): New method. | |
1416 | (readObject): New method. | |
1417 | * java/util/SimpleTimeZone.java: Replaced with Classpath file. | |
1418 | ||
47a53f53 BM |
1419 | 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz> |
1420 | ||
1421 | * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool. | |
1422 | (core_java_source_files): Put java.lang, java.io, and java.util here. | |
1423 | (ordinary_java_source_files): Order so that core_java_source_files are | |
1424 | built first. | |
1425 | (java_source_files): Reorder so that special_java_source_files are | |
1426 | built first. | |
1427 | * configure.in: Don't pass -I flag to gcj. | |
1428 | * Makefile.in: Rebuilt. | |
1429 | * configure: Rebuilt. | |
1430 | ||
a697c5f7 TT |
1431 | 2000-10-25 Tom Tromey <tromey@cygnus.com> |
1432 | ||
1433 | * Makefile.in: Rebuilt. | |
1434 | * Makefile.am (install-exec-hook): New target. | |
1435 | ||
85d0c8b4 BM |
1436 | 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz> |
1437 | ||
1438 | * java/util/EventObject.java: Merged from classpath. | |
ce2ab205 BM |
1439 | |
1440 | * java/lang/ThreadGroup.java (uncaughtException): Print thread name | |
1441 | with stack dump. | |
85d0c8b4 | 1442 | |
eade41de APB |
1443 | 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com> |
1444 | ||
1445 | * java/util/AbstractSet.java (equals): Re-installed original code. | |
1446 | ||
2622c79d RR |
1447 | 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no> |
1448 | ||
1449 | * Makefile.am: Added rules for libgcjx library. | |
1450 | * Makefile.in: Rebuilt. | |
1451 | * configure.in: Added check for X. | |
1452 | * configure: Rebuilt. | |
1453 | * gnu/awt/LightweightRedirector.java: New file. | |
1454 | * gnu/awt/j2d/AbstractGraphicsState.java: New file. | |
1455 | * gnu/awt/j2d/DirectRasterGraphics.java: New file. | |
1456 | * gnu/awt/j2d/Graphics2DImpl.java: New file. | |
1457 | * gnu/awt/j2d/IntegerGraphicsState.java: New file. | |
1458 | * gnu/awt/j2d/MappedRaster.java: New file. | |
1459 | * gnu/awt/xlib/XCanvasPeer.java: New file. | |
1460 | * gnu/awt/xlib/XEventLoop.java: New file. | |
1461 | * gnu/awt/xlib/XEventQueue.java: New file. | |
1462 | * gnu/awt/xlib/XFontMetrics.java: New file. | |
1463 | * gnu/awt/xlib/XFramePeer.java: New file. | |
1464 | * gnu/awt/xlib/XGraphics.java: New file. | |
1465 | * gnu/awt/xlib/XGraphicsConfiguration.java: New file. | |
1466 | * gnu/awt/xlib/XPanelPeer.java: New file. | |
1467 | * gnu/awt/xlib/XToolkit.java: New file. | |
1468 | * gnu/gcj/xlib/Clip.java: New file. | |
1469 | * gnu/gcj/xlib/Colormap.java: New file. | |
1470 | * gnu/gcj/xlib/Display.java: New file. | |
1471 | * gnu/gcj/xlib/Drawable.java: New file. | |
1472 | * gnu/gcj/xlib/Font.java: New file. | |
1473 | * gnu/gcj/xlib/GC.java: New file. | |
1474 | * gnu/gcj/xlib/Pixmap.java: New file. | |
1475 | * gnu/gcj/xlib/Screen.java: New file. | |
1476 | * gnu/gcj/xlib/Visual.java: New file. | |
1477 | * gnu/gcj/xlib/WMSizeHints.java: New file. | |
1478 | * gnu/gcj/xlib/Window.java: New file. | |
1479 | * gnu/gcj/xlib/WindowAttributes.java: New file. | |
1480 | * gnu/gcj/xlib/XAnyEvent.java: New file. | |
1481 | * gnu/gcj/xlib/XButtonEvent.java: New file. | |
1482 | * gnu/gcj/xlib/XColor.java: New file. | |
1483 | * gnu/gcj/xlib/XConfigureEvent.java: New file. | |
1484 | * gnu/gcj/xlib/XConnectException.java: New file. | |
1485 | * gnu/gcj/xlib/XEvent.java: New file. | |
1486 | * gnu/gcj/xlib/XException.java: New file. | |
1487 | * gnu/gcj/xlib/XExposeEvent.java: New file. | |
1488 | * gnu/gcj/xlib/XID.java: New file. | |
1489 | * gnu/gcj/xlib/XImage.java: New file. | |
1490 | * gnu/gcj/xlib/XUnmapEvent.java: New file. | |
1491 | * gnu/gcj/xlib/natClip.cc: New file. | |
1492 | * gnu/gcj/xlib/natColormap.cc: New file. | |
1493 | * gnu/gcj/xlib/natDisplay.cc: New file. | |
1494 | * gnu/gcj/xlib/natDrawable.cc: New file. | |
1495 | * gnu/gcj/xlib/natFont.cc: New file. | |
1496 | * gnu/gcj/xlib/natGC.cc: New file. | |
1497 | * gnu/gcj/xlib/natPixmap.cc: New file. | |
1498 | * gnu/gcj/xlib/natScreen.cc: New file. | |
1499 | * gnu/gcj/xlib/natVisual.cc: New file. | |
1500 | * gnu/gcj/xlib/natWMSizeHints.cc: New file. | |
1501 | * gnu/gcj/xlib/natWindow.cc: New file. | |
1502 | * gnu/gcj/xlib/natWindowAttributes.cc: New file. | |
1503 | * gnu/gcj/xlib/natXAnyEvent.cc: New file. | |
1504 | * gnu/gcj/xlib/natXButtonEvent.cc: New file. | |
1505 | * gnu/gcj/xlib/natXColor.cc: New file. | |
1506 | * gnu/gcj/xlib/natXConfigureEvent.cc: New file. | |
1507 | * gnu/gcj/xlib/natXException.cc: New file. | |
1508 | * gnu/gcj/xlib/natXExposeEvent.cc: New file. | |
1509 | * gnu/gcj/xlib/natXImage.cc: New file. | |
1510 | * gnu/gcj/xlib/natXUnmapEvent.cc: New file. | |
1511 | * java/awt/EventDispatchThread.java: Start thead on creation. | |
1512 | ||
480222b5 TT |
1513 | 2000-10-20 Tom Tromey <tromey@cygnus.com> |
1514 | ||
a9770f9a TT |
1515 | From Arno J. Klaassen: |
1516 | * interpret.cc: Include <stdlib.h> for alloca. | |
1517 | * defineclass.cc: Include <stdlib.h> for alloca. | |
1518 | ||
480222b5 TT |
1519 | * Makefile.in: Rebuilt. |
1520 | * Makefile.am: Include deps.mk. | |
1521 | (GCJCOMPILE): Added -MD, -MT, and -MF. | |
1522 | ($(javao_files)): Don't depend on libgcj.zip. | |
1523 | (all-recursive): New target. | |
1524 | (%.lo:%.cc): Do dependency tracking. | |
1525 | ($(nat_headers)): Don't depend on libgcj.zip. | |
1526 | * configure: Rebuilt. | |
1527 | * configure.in: Make .d files and deps.mk. | |
1528 | ||
c26f7a31 BM |
1529 | 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz> |
1530 | ||
1531 | * exception.cc: Don't #include "exception". | |
1532 | (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails. | |
1533 | ||
1534 | * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++. | |
1535 | * Makefile.in: Updated. | |
1536 | ||
18a61d1c BM |
1537 | 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz> |
1538 | ||
1539 | * java/awt/peer/ChoicePeer.java (addItem): Removed. | |
1540 | * java/awt/peer/ComponentPeer.java (disable): Removed. | |
1541 | (enable): Removed. | |
1542 | (hide): Removed. | |
1543 | (minimumSize): Removed. | |
1544 | (preferredSize): Removed. | |
1545 | (reshape): Removed. | |
1546 | (show): Removed. | |
1547 | * java/awt/peer/ListPeer.java (addItem): Removed. | |
1548 | (clear): Removed. | |
1549 | (minimumSize): Removed. | |
1550 | (preferredSize): Removed. | |
1551 | (setMultipleSelections): Removed. | |
1552 | * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu. | |
1553 | (remove): Renamed from removeMenu. | |
1554 | * java/awt/peer/MenuItemPeer.java (disable): Removed. | |
1555 | (enable): Removed. | |
1556 | * java/awt/peer/MenuPeer.java (add): Renamed from addItem. | |
1557 | (remove): Renamed from removeItem. | |
1558 | * java/awt/peer/TextAreaPeer.java (insertText): Removed. | |
1559 | (getMinimumSize): Removed. | |
1560 | (getPreferredSize): Removed. | |
1561 | (minimumSize): Removed. | |
1562 | (preferredSize): Removed. | |
1563 | (replaceText): Removed. | |
1564 | * java/awt/peer/TextFieldPeer.java (minimumSize): Removed. | |
1565 | (preferredSize): Removed. | |
1566 | (getMinimumSize): Removed. | |
1567 | (getPreferredSize): Removed. | |
1568 | (setEchoCharacter): Removed. | |
1569 | ||
01ce962b WL |
1570 | 2000-10-10 Warren Levy <warrenl@cygnus.com> |
1571 | ||
1572 | * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added. | |
1573 | * java/sql/Date.java (serialVersionUID): New field. | |
1574 | * java/sql/Time.java (serialVersionUID): New field. | |
1575 | * java/sql/Timestamp.java (serialVersionUID): New field. | |
1576 | * java/text/ChoiceFormat.java (serialVersionUID): New field. | |
1577 | * java/text/DateFormat.java (getDateTimeInstance (int)): Removed. | |
1578 | * java/text/DateFormatSymbols.java (serialVersionUID): New field. | |
1579 | * java/text/DecimalFormat.java (serialVersionOnStream): New field. | |
1580 | (readObject): New serialization method. | |
1581 | * java/text/DecimalFormatSymbols.java (monetarySeparator): New field. | |
1582 | (serialVersionOnStream): New field. | |
1583 | (readObject): New serialization method. | |
1584 | (getMonetaryDecimalSeparator): New method. | |
1585 | (setMonetaryDecimalSeparator): New method. | |
1586 | * java/text/NumberFormat.java (maxFractionDigits): New field. | |
1587 | (maxIntegerDigits): New field. | |
1588 | (minFractionDigits): New field. | |
1589 | (minIntegerDigits): New field. | |
1590 | (serialVersionOnStream): New field. | |
1591 | (serialVersionUID): New field. | |
1592 | (readObject): New serialization method. | |
1593 | (writeObject): New serialization method. | |
1594 | * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized. | |
1595 | (serialVersionOnStream): New field. | |
1596 | (serialVersionUID): New field. | |
1597 | (readObject): New serialization method. | |
1598 | ||
9121d9b1 TT |
1599 | 2000-10-09 Alexandre Oliva <aoliva@redhat.com> |
1600 | ||
1601 | * configure.in (GCJ): Avoid bogus error message when looking for | |
1602 | (and not finding) gcj in the build tree. | |
1603 | * configure: Rebuilt. | |
1604 | ||
1605 | 2000-10-09 Tom Tromey <tromey@cygnus.com> | |
1606 | ||
1607 | * configure: Rebuilt. | |
1608 | * configure.in: Include sys/types.h when checking for socklen_t. | |
1609 | From Arno J. Klaassen. | |
1610 | ||
6a3bad7d BM |
1611 | 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz> |
1612 | ||
1613 | * include/jvm.h: Enable __builtin_expect(). | |
f01c1eb3 BM |
1614 | |
1615 | * name-finder.cc (lookup): Don't trust dladdr() if the address is from | |
1616 | the main program. Fix for PR libgcj/341. | |
6a3bad7d | 1617 | |
43f8e390 TT |
1618 | 2000-10-07 Tom Tromey <tromey@cygnus.com> |
1619 | ||
1620 | * java/util/Properties.java: Merged with Classpath version. | |
1621 | ||
1d336a09 TT |
1622 | 2000-10-05 Tom Tromey <tromey@cygnus.com> |
1623 | ||
1624 | * java/lang/reflect/natField.cc (BooleanClass): Don't define. | |
1625 | * java/lang/reflect/natArray.cc (BooleanClass): Don't define. | |
1626 | * java/lang/Class.h (Object): Added `class$' field. | |
1627 | * java/lang/Object.h (Object): Added `class$' field. | |
1628 | * defineclass.cc (ClassClass): Use `class$' form. | |
1629 | (ClassObject): Likewise. | |
1630 | * resolve.cc (ClassObject): Use `class$' form. | |
1631 | (ObjectClass): Likewise. | |
1632 | * interpret.cc (ClassError): Removed. | |
1633 | * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use | |
1634 | `class$' form. | |
1635 | (IntegerClass): Likewise. | |
1636 | * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$' | |
1637 | form. | |
1638 | * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form. | |
1639 | (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass, | |
1640 | SerializableClass): Likewise. | |
1641 | Include Serializable.h, Cloneable.h. | |
1642 | * java/lang/natSystem.cc (SystemClass): Removed. | |
1643 | (init_properties): Use `class$' form. | |
1644 | * java/lang/natObject.cc (CloneableClass): Removed. | |
1645 | (clone): Use `class$' form. | |
1646 | * java/lang/natClass.cc (CloneableClass): Use `class$' form. | |
1647 | (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass, | |
1648 | ConstructorClass): Likewise. | |
1649 | * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form. | |
1650 | (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass, | |
1651 | IntegerClass, LongClass, FloatClass, DoubleClass): Likewise. | |
1652 | * java/io/natObjectInputStream.cc (ObjectClass): Use `class$' | |
1653 | form. | |
1654 | (ClassClass): Likewise. | |
1655 | * include/jvm.h (StringClass): Use `class$' form. | |
1656 | * prims.cc (ObjectClass): Removed. | |
1657 | (_Jv_RunMain): Use `class$' form. | |
1658 | (_Jv_AllocObject): Likewise. | |
1659 | * jni.cc (ClassClass): Use `class$' form. | |
1660 | (ThrowableClass): Likewise. | |
1661 | (ObjectClass): Likewise. | |
1662 | (MethodClass): Likewise. | |
1663 | (ThreadGroupClass): Likewise. | |
1664 | (NativeThreadClass): Likewise. | |
1665 | * boehm.cc (ObjectClass): Removed. | |
1666 | (ClassClass): Removed. | |
1667 | (_Jv_MarkObj): Use `class$' form. | |
1668 | * gcj/field.h (JvFieldIsRef): Use `class$' form. | |
1669 | Include RawData.h. | |
1670 | ||
bf347805 WL |
1671 | 2000-10-05 Warren Levy <warrenl@cygnus.com> |
1672 | ||
1673 | * Makefile.am: Removed java/io/Replaceable.java and | |
1674 | java/io/Resolvable.java. | |
1675 | * Makefile.in: Rebuilt. | |
1676 | * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io | |
1677 | namespace. | |
1678 | * java/io/ObjectInputStream.java (processResolution): Fixed typo | |
1679 | in method name. | |
1680 | (processResolution): Handle readResolve method via reflection with | |
1681 | removal of Resolvable interface. | |
1682 | * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace | |
1683 | method via reflection with removal of Replaceable interface. | |
1684 | * java/io/Replaceable.java: Removed. | |
1685 | * java/io/Resolvable.java: Removed. | |
1686 | * java/security/Key.java (serialVersionUID): New field. | |
1687 | * java/security/Provider.java (serialVersionUID): New field. | |
1688 | * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): | |
1689 | New field. | |
1690 | * java/security/interfaces/DSAPublicKey.java (serialVersionUID): | |
1691 | New field. | |
1692 | * java/sql/DataTruncation.java (serialVersionUID): New field. | |
1693 | * java/sql/SQLException.java (serialVersionUID): New field. | |
1694 | * java/sql/SQLWarning.java (serialVersionUID): New field. | |
1695 | * java/util/Date.java (serialVersionUID): New field. | |
1696 | (millis): Made transient. | |
1697 | (readObject): New method. | |
1698 | (writeObject): New method. | |
1699 | ||
cfa82f4d TT |
1700 | 2000-10-05 Tom Tromey <tromey@cygnus.com> |
1701 | ||
1702 | * gnu/gcj/convert/natIconv.cc (init): Terminate buffer. | |
1703 | ||
88ce64ac BM |
1704 | 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz> |
1705 | ||
1706 | * prims.cc (_Jv_argv, _Jv_argc): New fields. | |
1707 | (JvRunMain): Set _Jv_argv and _Jv_argc. | |
1708 | * java/awt/Component.java: Minor fixes. | |
1709 | * java/awt/Image.java (UndefinedProperty): Initialize final field. | |
1710 | * java/awt/Toolkit.java (systemEventQueue): Removed. | |
1711 | (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit". | |
1712 | * java/awt/Window.java (getToolkit): Don't call super. | |
1713 | * java/awt/image/BufferedImage.java: Fix definate assignment errors. | |
1714 | * java/awt/peer/ContainerPeer.java (insets): Remove unused method. | |
1715 | * gnu/awt/gtk/GtkComponentPeer.java: New file. | |
1716 | * gnu/awt/gtk/GtkContainerPeer.java: New file. | |
1717 | * gnu/awt/gtk/GtkFramePeer.java: New file. | |
1718 | * gnu/awt/gtk/GtkMainThread.java: New file. | |
1719 | * gnu/awt/gtk/GtkToolkit.java: New file. | |
1720 | * gnu/awt/gtk/GtkWindowPeer.java: New file. | |
1721 | * gnu/awt/gtk/gtkcommon.cc: New file. | |
1722 | * gnu/awt/gtk/gtkcommon.h: New file. | |
1723 | * gnu/awt/gtk/natGtkComponentPeer.cc: New file. | |
1724 | * gnu/awt/gtk/natGtkContainerPeer.cc: New file. | |
1725 | * gnu/awt/gtk/natGtkFramePeer.cc: New file. | |
1726 | * gnu/awt/gtk/natGtkMainThread.cc: New file. | |
1727 | * gnu/awt/gtk/natGtkToolkit.cc: New file. | |
1728 | * gnu/awt/gtk/natGtkWindowPeer.cc: New file. | |
1729 | ||
304daac5 TT |
1730 | 2000-09-30 Tom Tromey <tromey@cygnus.com> |
1731 | ||
11908bbe TT |
1732 | * posix-threads.cc (_Jv_CondWait): Check to see if we are |
1733 | interrupted before modifying the cv's wait set. | |
1734 | From Corey Minyard. | |
1735 | ||
bf3b8e42 HB |
1736 | 2000-09-30 Hans Boehm <boehm@acm.org> |
1737 | Bryce McKinlay <bryce@albatross.co.nz> | |
1738 | ||
1739 | Implement bitmap descriptor based marking for Boehm GC. | |
1740 | ||
1741 | * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used. | |
1742 | * configure: Rebuilt. | |
1743 | * libgcj.spec.in: Pass JC1GCSPEC to jc1. | |
1744 | * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline | |
1745 | method get_finalizer(). | |
1746 | (struct _Jv_ArrayVTable): Ditto. Declare method array with | |
1747 | NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1. | |
1748 | (_Jv_AllocObj): Add new jclass parameter. | |
1749 | (_Jv_AllocArray): Ditto. | |
1750 | (_Jv_BuildGCDescr): New prototype. | |
1751 | * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass | |
1752 | `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use | |
1753 | get_finalizer() instead of direct finalizer vtable offset. | |
1754 | (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass | |
1755 | `klass' to _Jv_AllocArray. Don't set the new array's vtable. | |
1756 | (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass | |
1757 | `klass' to _Jv_AllocObj. Don't set the new array's vtable. | |
1758 | * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines. | |
1759 | (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE. | |
1760 | (_Jv_DetermineVTableIndex): Ditto. | |
1761 | (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable | |
1762 | calculations to account for new gc_descr field. | |
1763 | * boehm.cc: #include gc_gcj.h. | |
1764 | (obj_kind_x, obj_free_list): `#if 0'-ed away. | |
1765 | (_Jv_MarkObj): Check that vtable doesn't point to a cleared object. | |
1766 | New commentary from HB. Mark the classes vtable. | |
1767 | (_Jv_MarkArray): Check that vtable doesn't point to a cleared object. | |
1768 | (GC_DEFAULT_DESCR): New #define. | |
1769 | (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now. | |
1770 | (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC (). | |
1771 | (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and | |
1772 | scan conservativly if size is less than min_heap_addr. Set vtable | |
1773 | pointer of new object before returning. | |
1774 | (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC. | |
1775 | (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and | |
1776 | allocation for obj_kind_x. | |
1777 | * nogc.cc (_Jv_BuildGCDescr): New function. Return 0. | |
1778 | (_Jv_AllocObj): Set vtable on returned object. | |
1779 | (_Jv_AllocArray): Ditto. | |
1780 | * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend. | |
1781 | (_Jv_NewPrimArray): Ditto. | |
1782 | (_Jv_AllocObj): Declare as a friend. | |
1783 | (_Jv_AllocArray): Ditto. | |
1784 | * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr | |
1785 | from &ObjectClass into new array class. Remove offset-by-one | |
1786 | adjustments from `method' size calculations to account for gc_descr | |
1787 | field. | |
1788 | ||
a3f7444b TT |
1789 | 2000-09-26 Tom Tromey <tromey@cygnus.com> |
1790 | ||
1791 | * java/awt/Scrollbar.java (removeAdjustmentListener): Use | |
1792 | `remove', not `add'. | |
1793 | ||
aca8c6e8 APB |
1794 | 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com> |
1795 | ||
1796 | * java/lang/natSystem.cc (file_encoding): Added return statement. | |
1797 | ||
e7e18a21 AO |
1798 | 2000-09-14 Alexandre Oliva <aoliva@redhat.com> |
1799 | ||
3c71084a AO |
1800 | * Makefile.am: Re-work shell commands that exceeded command-line |
1801 | length limits. | |
1802 | * Makefile.in: Rebuilt. | |
1803 | ||
064a791c AO |
1804 | * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'. |
1805 | ||
e7e18a21 AO |
1806 | * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H. |
1807 | * java/lang/natDouble.cc: Likewise. | |
1808 | * java/lang/reflect/natMethod.cc: Likewise. | |
1809 | * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word. | |
1810 | ||
58d2986d AO |
1811 | 2000-09-13 Alexandre Oliva <aoliva@redhat.com> |
1812 | ||
1813 | * configure.in (LIBDATASTARTSPEC): Use `%s' to search for | |
1814 | libgcjdata.a. | |
1815 | (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir. | |
1816 | * acinclude.m4: Arrange for automake to not bring in a new | |
1817 | libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ. | |
1818 | * Makefile.am: Leave it up to automake to subst GCJ. | |
1819 | * aclocal.m4, configure, Makefile.in: Rebuilt. | |
1820 | ||
96fa18eb TT |
1821 | 2000-09-13 Tom Tromey <tromey@cygnus.com> |
1822 | ||
1823 | * java/lang/reflect/natArray.cc (BooleanClass): New define. | |
1824 | (get): Ensure Boolean class is initialized. | |
1825 | * java/lang/reflect/natField.cc (BooleanClass): New define. | |
1826 | (get): Ensure Boolean class is initialized. | |
1827 | ||
0f94c029 BM |
1828 | 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz> |
1829 | ||
1830 | * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field. | |
1831 | Initialize with anonymous class. | |
1832 | (compareToIgnoreCase): New method. | |
1833 | ||
1834 | * java/lang/ThreadGroup.java (had_uncaught_exception): New field. | |
1835 | (uncaughtException): Set had_uncaught_exception. | |
1836 | * prims.cc (JvRunMain): Check value of had_uncaught_exception and | |
1837 | exit with error status if set. | |
1838 | (_Jv_RunMain): Ditto. | |
1839 | ||
b4f3dc58 AO |
1840 | 2000-09-12 Alexandre Oliva <aoliva@redhat.com> |
1841 | ||
1842 | * configure: Rebuilt with new ../libtool.m4. | |
1843 | ||
14203c9c TT |
1844 | 2000-09-11 Tom Tromey <tromey@cygnus.com> |
1845 | ||
1846 | * java/lang/reflect/Field.java (toString): Don't rely on | |
1847 | Class.toString. | |
1848 | ||
fe5e3b97 TT |
1849 | 2000-09-08 Tom Tromey <tromey@cygnus.com> |
1850 | ||
1851 | * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let | |
1852 | default decoder use iconv. | |
1853 | * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder): | |
1854 | Let default encoder use iconv. | |
1855 | * configure: Rebuilt. | |
1856 | * configure.in: Check for nl_langinfo and <langinfo.h>. | |
1857 | * java/lang/natSystem.cc (file_encoding): New function. | |
1858 | (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible. | |
1859 | ||
6d0860ee AO |
1860 | 2000-09-10 Alexandre Oliva <aoliva@redhat.com> |
1861 | ||
158a8e6b AO |
1862 | * acinclude.m4: Simplify the tests for CC and CXX. |
1863 | * aclocal.m4, configure: Rebuilt. | |
1864 | ||
6d0860ee AO |
1865 | * acinclude.m4: Include libtool macros from the source tree. |
1866 | * aclocal.m4, configure: Rebuilt. | |
1867 | ||
bc6ccd33 WL |
1868 | 2000-09-08 Warren Levy <warrenl@cygnus.com> |
1869 | ||
1870 | * java/beans/PropertyChangeEvent.java (serialVersionUID): Added. | |
1871 | * java/beans/PropertyVetoException.java (serialVersionUID): Added. | |
1872 | * java/io/File.java (writeObject): Added. | |
1873 | (readObject): Added. | |
1874 | (serialVersionUID): Added. | |
1875 | * java/io/ObjectOutputStream.java (writeObject): Initialized | |
1876 | fieldsAlreadyWritten before recursion rather than after. | |
1877 | * java/io/ObjectStreamClass.java (serialVersionUID): Added. | |
1878 | * java/io/OptionalDataException.java (serialVersionUID): Added. | |
1879 | (OptionalDataException): Made package private. | |
1880 | * java/io/SyncFailedException.java (SyncFailedException): Removed | |
1881 | default constructor to match spec. | |
1882 | * java/lang/Boolean.java (serialVersionUID): Added. | |
1883 | * java/lang/Byte.java (serialVersionUID): Added. | |
1884 | * java/lang/Character.java (serialVersionUID): Added. | |
1885 | * java/lang/Double.java (serialVersionUID): Added. | |
1886 | * java/lang/Float.java (serialVersionUID): Added. | |
1887 | * java/lang/Integer.java (serialVersionUID): Added. | |
1888 | * java/lang/Long.java (serialVersionUID): Added. | |
1889 | * java/lang/Number.java (serialVersionUID): Added. | |
1890 | * java/lang/Short.java (serialVersionUID): Added. | |
1891 | * java/lang/String.java (serialVersionUID): Added. | |
1892 | * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor | |
1893 | to match spec. | |
1894 | * java/lang/reflect/InvocationTargetException.java | |
1895 | (serialVersionUID): Added. | |
1896 | * java/net/URL.java (handler): Made transient. | |
1897 | (hashCode): Added field for serialization, per spec. and use | |
1898 | cached value if available. | |
1899 | (serialVersionUID): Added. | |
1900 | (URL): Initialize hashCode. | |
1901 | (set): Adjust hashCode. | |
1902 | (readObject): New Method to initialize the protocol handler when | |
1903 | deserializing. | |
1904 | (writeObject): New method. | |
1905 | * java/text/BreakIterator.java: Removed 'implements Serializable'. | |
1906 | * java/text/Collator.java: Removed 'implements Serializable'. | |
1907 | * java/util/GregorianCalendar.java (serialVersionUID): Added. | |
1908 | * java/util/Properties.java (serialVersionUID): Added. | |
1909 | * java/util/Random.java (serialVersionUID): Added. | |
1910 | (seed): Made private. | |
1911 | (nextNextGaussian): Made private. | |
1912 | (haveNextNextGaussian): Made private. | |
1913 | * java/util/Stack.java (serialVersionUID): Added. | |
1914 | * java/util/TimeZone.java (serialVersionUID): Added. | |
1915 | * java/util/Vector.java (serialVersionUID): Added. | |
1916 | ||
f52c7239 BM |
1917 | 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz> |
1918 | ||
1919 | * Makefile.am (Thread.h): Don't be friends with native threads | |
1920 | functions. | |
1921 | * Makefile.in: Rebuilt. | |
1922 | * java/lang/Thread.java (interrupt_flag): Make package-private. | |
1923 | ||
26aa75be JS |
1924 | 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com> |
1925 | ||
1926 | * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long' | |
1927 | to avoid long long division. | |
1928 | ||
8ee4db6f TT |
1929 | 2000-09-06 Tom Tromey <tromey@cygnus.com> |
1930 | ||
9579ea7e TT |
1931 | * java/lang/reflect/Constructor.java (toString): Use `getName' for |
1932 | parameter types. | |
1933 | * java/lang/reflect/Method.java (toString): Use `getName' for | |
1934 | return type. | |
1935 | ||
bcf98e48 TT |
1936 | * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null |
1937 | `args' if method takes no parameters. | |
1938 | ||
8ee4db6f TT |
1939 | Fix for PR java.lang/339: |
1940 | * java/lang/natPosixProcess.cc (fail): New function. | |
1941 | (cleanup): New function. | |
1942 | (startProcess): Use them. Create pipe so child can communicate | |
1943 | exec failure back to parent. | |
1944 | ||
a3bcdaf9 BM |
1945 | 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> |
1946 | ||
1947 | * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow' | |
1948 | calls to `throw'. | |
56042127 | 1949 | (send): Undo last patch. Remove the label only. |
a3bcdaf9 BM |
1950 | (mcastGrp): Ditto. |
1951 | * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to | |
1952 | `throw'. | |
1953 | * java/net/natInetAdress.cc: Ditto. | |
8ee4db6f | 1954 | |
56042127 | 1955 | * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo. |
a3bcdaf9 | 1956 | |
0bb06853 TT |
1957 | 2000-09-05 Tom Tromey <tromey@cygnus.com> |
1958 | ||
1959 | * doc/cni.sgml: Updated from master copy. | |
1960 | ||
82011285 BM |
1961 | 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> |
1962 | ||
1963 | * gnu/gcj/convert/natIconv.cc (read): Remove unused local. | |
1964 | (write): Ditto. | |
1965 | * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null | |
1966 | stack. Synchronize. | |
1967 | * java/lang/fdlibm.h: #undef __P if previously defined. | |
1968 | * java/lang/natSystem.cc (currentTimeMillis): Remove unused local. | |
1969 | * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable | |
1970 | block. | |
1971 | (mcastGrp): Ditto. | |
1972 | ||
23e95411 TT |
1973 | 2000-09-04 Tom Tromey <tromey@cygnus.com> |
1974 | ||
1975 | * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in | |
1976 | DELETE mode. | |
1977 | ||
a1fa0b27 AG |
1978 | 2000-09-04 Anthony Green <green@redhat.com> |
1979 | ||
1980 | Fix for PR java.io/203: | |
1981 | * java/io/File.java (createTempFile): Obey directory argument. | |
1982 | Use java.io.tmpdir if needed. Don't leave FileDescripators open. | |
1983 | * java/lang/natSystem.cc (init_properties): Use TMPDIR environment | |
1984 | variable to set java.io.tmpdir on non-WIN32 systems. | |
1985 | ||
40255aaf AG |
1986 | 2000-09-04 Anthony Green <green@redhat.com> |
1987 | ||
1988 | * java/io/File.java (deleteOnExit): New method. | |
1989 | * gnu/gcj/runtime/FileDeleter.java: New class. | |
1990 | * java/lang/natRuntime.cc (exit): Call | |
1991 | FileDeleter.deleteOnExitNow() | |
1992 | * Makefile.am: Add FileDeleter.java. | |
1993 | * Makefile.in: Rebuilt. | |
1994 | ||
aec19650 TT |
1995 | 2000-09-02 Tom Tromey <tromey@cygnus.com> |
1996 | ||
1997 | * Makefile.in: Rebuilt. | |
1998 | * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH | |
1999 | environment variable. | |
2000 | ||
ad17a40d AH |
2001 | 2000-09-01 Andrew Haley <aph@redhat.com> |
2002 | ||
2003 | * java/io/StreamTokenizer.java: Don't throw a | |
2004 | NumberFormatException if a field is numeric as far as the | |
2005 | StreamTokenizer is concerned but not as far as Double.valueOf() is | |
2006 | concerned: return a zero instead. | |
2007 | ||
cdd3612a TT |
2008 | 2000-08-30 Tom Tromey <tromey@cygnus.com> |
2009 | ||
2010 | * Makefile.in: Rebuilt. | |
2011 | * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers. | |
2012 | ||
2ed885df TT |
2013 | 2000-08-28 Tom Tromey <tromey@cygnus.com> |
2014 | ||
2015 | * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java, | |
2016 | gnu/gcj/awt/ComponentDataBlitOp.java, | |
2017 | gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java, | |
2018 | java/awt/RenderingHints.java, java/awt/color/ColorSpace.java, | |
2019 | java/awt/color/ICC_ColorSpace.java, | |
2020 | java/awt/color/ICC_Profile.java, | |
2021 | java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java, | |
2022 | java/awt/image/ComponentColorModel.java, | |
2023 | java/awt/image/ComponentSampleModel.java, | |
2024 | java/awt/image/DataBuffer.java, | |
2025 | java/awt/image/DataBufferByte.java, | |
2026 | java/awt/image/DataBufferInt.java, | |
2027 | java/awt/image/DataBufferUShort.java, | |
2028 | java/awt/image/DirectColorModel.java, | |
2029 | java/awt/image/IndexColorModel.java, | |
2030 | java/awt/image/PackedColorModel.java, java/awt/image/Raster.java, | |
2031 | java/awt/image/RasterOp.java, java/awt/image/SampleModel.java, | |
2032 | java/awt/image/SinglePixelPackedSampleModel.java, | |
2033 | java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java: | |
2034 | Removed Latin-1 copyright symbols. | |
2035 | * java/util/zip/ZipFile.java: Indentation fixes. | |
2036 | ||
9ac96ca1 MW |
2037 | 2000-08-27 Mark Wielaard <mark@klomp.org> |
2038 | ||
2ed885df TT |
2039 | * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new |
2040 | constructor, close can delete the file, finalize calls close. | |
2041 | * java/util/jar/JarFile.java: Constructor that takes mode now | |
2042 | calls super. | |
9ac96ca1 | 2043 | |
6f09c307 AG |
2044 | 2000-08-27 Anthony Green <green@redhat.com> |
2045 | ||
2046 | * java/util/ArrayList.java, java/util/Timer.java, | |
2047 | java/util/LinkedList.java, java/util/TimerTask.java, | |
2048 | java/util/HashMap.java, java/util/AbstractMap.java, | |
2049 | java/util/SortedMap.java, java/util/AbstractSequentialList.java, | |
2050 | java/util/SortedSet.java: Imported from GNU Classpath. | |
2051 | * Makefile.in: Rebuilt. | |
2052 | * Makefile.am: Added new files. | |
2053 | ||
6aaeb975 AG |
2054 | 2000-08-26 Anthony Green <green@redhat.com> |
2055 | ||
2056 | * Makefile.in: Rebuilt. | |
2057 | * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a | |
2058 | friend. | |
2059 | ||
2060 | * prims.cc: Include ClassLoader.h. | |
2061 | (_Jv_RunMain): When executing jar files, classpath must be the jar | |
2062 | file only. Lose our reference to the system ClassLoader in order | |
2063 | to get a new one with the correct classpath. | |
2064 | * java/lang/natSystem.cc (init_properties): When executing a jar | |
2065 | file, only use the jar file for java.class.path. | |
2066 | ||
2067 | * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name | |
2068 | for bytecode archives. | |
2069 | ||
2070 | * gnu/gcj/runtime/FirstThread.java: Handle case where manifest | |
2071 | exists, but not Main-Class. | |
2072 | ||
309bf296 MW |
2073 | 2000-08-23 Mark Wielaard <mark@klomp.org> |
2074 | ||
2075 | * java/util/zip/InflaterInputStream.java (read(byte[],int,int)): | |
2076 | return -1 when fill() has no more data for the Inflater. | |
2077 | ||
fb034e94 MW |
2078 | 2000-08-23 Mark Wielaard <mark@klomp.org> |
2079 | ||
2080 | * java/io/PrintWriter.java (print(String)): Don't catch IOException, | |
2081 | write(String) already does. | |
2082 | ||
6d958acf APB |
2083 | 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com> |
2084 | ||
2085 | * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment | |
2086 | to `alive_flag', call `init'. | |
2087 | (init): New native method. | |
2088 | * gnu/gcj/jni/natNativeThread.cc (init): New native method | |
2089 | implementation. | |
2090 | ||
9adfd959 MW |
2091 | 2000-08-21 Mark Wielaard <mark@klomp.org> |
2092 | ||
2093 | * Makefile.in: Rebuilt. | |
2094 | * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as | |
2095 | a `friend class'. | |
2096 | (java/lang/reflect/Field.h): Likewise. | |
2097 | (java/lang/reflect/Method.h): Likewise. | |
2098 | (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a | |
2099 | `friend class'. | |
2100 | ||
6c531b05 TT |
2101 | 2000-08-21 Tom Tromey <tromey@cygnus.com> |
2102 | ||
2103 | * java/util/ResourceBundle.java (trySomeGetBundle): Removed | |
2104 | debugging prints. | |
2105 | ||
1a558147 AG |
2106 | Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com> |
2107 | ||
2108 | * java/lang/natSystem.cc (init_properties): Change sourceware | |
2109 | reference to sources.redhat.com. | |
2110 | ||
2111 | * include/java-props.h: Add _Jv_Jar_Class_Path. | |
2112 | * prims.cc: Ditto. Set it from `gij -jar file' option. | |
2113 | ||
2114 | * java/lang/natSystem.cc (init_properties): Set java.class.path | |
2115 | from | |
2116 | {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .} | |
2117 | ||
2118 | * java/util/PropertyPermission.java: Import from GNU Classpath. | |
2119 | * Makefile.in: Rebuilt. | |
2120 | * Makefile.am: Add java/util/PropertyPermission.java. | |
2121 | * java/lang/System.java: Add setProperty method. | |
2122 | ||
2123 | * gij.cc (main): Add -jar option to execute jar files. | |
2124 | (help): Describe -jar option. | |
2125 | * prims.cc (_Jv_RunMain): Add support for jar execution mode. | |
1a558147 AG |
2126 | * include/jvm.h: Add is_jar argument to _Jv_RunMain. |
2127 | * gnu/gcj/runtime/FirstThread.java (main): New method. | |
2128 | ||
2129 | * java/util/jar/Attributes.java: Correct comment spelling. | |
2130 | ||
8559f9bb MW |
2131 | 2000-08-20 Mark Wielaard <mark@klomp.org> |
2132 | ||
2133 | * java/util/zip/Adler32.java: Make private variables really private | |
2134 | * java/util/zip/CRC32.java: Make private variables really private | |
1a558147 AG |
2135 | * java/util/zip/CheckedInputStream.java: skip() could skip to much |
2136 | bytes | |
2137 | * java/util/zip/InflaterInputStream.java: skip() could skip to | |
2138 | much bytes | |
8559f9bb MW |
2139 | * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input |
2140 | * java/util/zip/ZipFile.java: size() new 1.2 method | |
1a558147 AG |
2141 | * java/util/zip/ZipInputStream.java: Use createZipEntry not new |
2142 | ZipEntry. since 1.2 available() always returns just 1 or 0 when | |
2143 | closed | |
8559f9bb | 2144 | |
53e687fa AG |
2145 | Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com> |
2146 | ||
2147 | * java/util/jar/JarFile.java: Don't call | |
2148 | java.util.zip.ZipFile.getEntry twice. From Mark Wielaard | |
2149 | <mark@klomp.org>. | |
2150 | ||
f2e541ce AG |
2151 | Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com> |
2152 | ||
2153 | * java/net/URLClassLoader.java: Find the JarEntry via the JarFile. | |
48da46cc AG |
2154 | Read the entire contents of the class file, not just what is |
2155 | available(). | |
f2e541ce AG |
2156 | |
2157 | * java/net/JarURLConnection.java: getEntry doesn't take any | |
2158 | arguments. Return null if element is null. | |
2159 | ||
2160 | * java/util/zip/ZipFile.java (getInputStream): Read the compressed | |
2161 | size from the archive, not the inflated size. | |
2162 | ||
2163 | * java/util/jar/JarFile.java (getEntry): Don't recurse. Call | |
2164 | java.util.zip.ZipFile.getEntry. | |
2165 | ||
2166 | * gij.cc (help): Change sourceware reference to | |
2167 | sources.redhat.com. | |
2168 | ||
ea709009 TT |
2169 | 2000-08-19 Tom Tromey <tromey@cygnus.com> |
2170 | ||
2171 | * java/util/zip/ZipInputStream.java (createZipEntry): | |
2172 | Implemented. | |
2173 | ||
a729a4e9 AG |
2174 | Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com> |
2175 | ||
2176 | * java/util/jar/Attributes.java, java/util/jar/JarEntry.java, | |
2177 | java/util/jar/JarException.java, java/util/jar/JarFile.java, | |
2178 | java/util/jar/JarInputStream.java, | |
2179 | java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java, | |
2180 | java/util/Set.java, java/util/Map.java, java/util/Bucket.java, | |
2181 | java/util/AbstractSet.java, java/util/BasicMapEntry.java, | |
2182 | java/security/cert/CRL.java, java/security/cert/CRLException.java, | |
2183 | java/security/cert/Certificate.java, | |
2184 | java/security/cert/CertificateEncodingException.java, | |
2185 | java/security/cert/CertificateException.java, | |
2186 | java/security/cert/CertificateExpiredException.java, | |
2187 | java/security/cert/CertificateFactory.java, | |
2188 | java/security/cert/CertificateFactorySpi.java, | |
2189 | java/security/cert/CertificateNotYetValidException.java, | |
2190 | java/security/cert/CertificateParsingException.java, | |
2191 | java/security/cert/X509CRL.java, | |
2192 | java/security/cert/X509CRLEntry.java, | |
2193 | java/security/cert/X509Certificate.java, | |
2194 | java/security/cert/X509Extension.java: Imported from Classpath. | |
2195 | * java/util/Hashtable.java: Imported from Classpath. | |
2196 | ||
2197 | * java/util/zip/ZipInputStream.java: Create stub for | |
2198 | createZipEntry. | |
2199 | ||
2200 | * gcj/javaprims.h: Updated class list. | |
2201 | ||
2202 | * Makefile.in, gcj/Makefile.in: Rebuilt. | |
2203 | * Makefile.am (ordinary_java_source_files): Add these new classes. | |
2204 | ||
777e6d79 RR |
2205 | 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no> |
2206 | ||
2207 | * gnu/gcj/awt/ComponentDataBlitOp.java: New file. | |
2208 | * gnu/gcj/awt/GLightweightPeer.java: New file. | |
2209 | * java/awt/BorderLayout.java: Implemented all methods. | |
2210 | * java/awt/Button.java (actionListener, actionCommand): Renamed | |
2211 | and modifier change. | |
2212 | (addNotify): Call super. | |
2213 | (dispatchEventImpl): New method. | |
2214 | (getListeners): New method. | |
2215 | (label): Made package-private, not private. | |
2216 | * java/awt/Canvas.java: Implemented class body. | |
2217 | * java/awt/Color.java (brighter): New method. | |
2218 | (darker): New method. | |
2219 | (hashCode): New method. | |
2220 | * java/awt/Component.java (visible, enabled, eventMask): Set defaults. | |
2221 | (getGraphicsConfiguration): Delegate to | |
2222 | getGraphicsConfigurationImpl(). | |
2223 | (getGraphicsConfigurationImpl): New method. | |
2224 | (getToolkit): Only return value from peer if not null. | |
2225 | (isDisplayable): Check with parent. | |
2226 | (isShowing): No parent implies not showing. | |
2227 | (getForeground): Check parent property if local is null. | |
2228 | (getBackground): Likewise. | |
2229 | (getFont): Likewise. | |
2230 | (setForeground): Inform peer. | |
2231 | (setBackground): Likewise | |
2232 | (setLocale): Invalidate component. | |
2233 | (getColorModel): Implemented. | |
2234 | (setLocation): Invalidate, or ignore if no change. | |
2235 | (setSize): Invalidate, or ignore if no change. | |
2236 | (setBounds): Invalidate, or ignore if no change. | |
2237 | (isOpaque): By default, heavyweight implies opaque. | |
2238 | (isLightweight): Implemented. | |
2239 | (getMaximumSize): Implemented. | |
2240 | (doLayout): Implemented, NOP. | |
2241 | (validate): Implemented, NOP. | |
2242 | (invalidate): Only propagate to parent if parent was valid. | |
2243 | (getGraphics): Implemented. | |
2244 | (getFontMetrics): Implemented. | |
2245 | (update): Implemented. | |
2246 | (paintAll): Implemented. | |
2247 | (repaint): Implemented all repaint methods. | |
2248 | (print): Implemented. | |
2249 | (printAll): Implemented. | |
2250 | (createImage): Implemented. | |
2251 | (dispatchEvent): Give the peer a chance to handle the event. | |
2252 | (dispatchEventImpl): Dispatch paint events. | |
2253 | (enableEvents): Lightweights enable events on parent component. | |
2254 | (coalesceEvents): Coalesce paint events, and select event type | |
2255 | using a switch. | |
2256 | (coalescePaintEvents): New method. | |
2257 | (processEvent): Fix unfortunate ordering of statements, and call | |
2258 | correct method for MOUSE_CLICKED. | |
2259 | (processPaintEvent): New method. | |
2260 | (addNotify): Allow container to notify children before event | |
2261 | mask is set in peer. | |
2262 | (addNotifyContainerChildren): New method. | |
2263 | (removeNotify): Visibility should not change on removeNotify. | |
2264 | (paramString): Implemented. | |
2265 | (list): Implemented two of the list methods. | |
2266 | * Container (myInsets): Removed, insets are managed by peer. | |
2267 | (getInsets): Query peer. | |
2268 | (addImpl): Fix reparenting, enable events for lightweights, | |
2269 | initialize component array. | |
2270 | (validate): Call doLayout in validateTree() instead. | |
2271 | (validateTree): Do nothing if already valid. Call beginValidate(), | |
2272 | endValidate() on peer. Call validateTree() instead of validate() | |
2273 | for children that are containers. Mark valid after validation of | |
2274 | children. | |
2275 | (setFont): Partial implementation. | |
2276 | (paint): Implemented. | |
2277 | (visitChildren): New method. | |
2278 | (visitChild): New method. | |
2279 | (update): Implemented. | |
2280 | (print): Implemented. | |
2281 | (paintComponents): Implemented. | |
2282 | (printComponents): Consider translation and clipping. | |
2283 | (getComponentAt): Ignore invisible children. Return this if no | |
2284 | child match. | |
2285 | (addNotify): Call super. | |
2286 | (addNotifyContainerChildren): New method. | |
2287 | (paramString): Implemented. | |
2288 | (list): Implemented. | |
2289 | * java/awt/EventQueue (invokeAndWait): Get system event queue the | |
2290 | right way. | |
2291 | (invokeLater): Likewise. | |
2292 | (isDispatchThread): Likewise. | |
2293 | * java/awt/FontMetrics (getLeading): Formula change. | |
2294 | (getDescent): Consider leading also. | |
2295 | (getMaxAscent): Default to getAscent(). | |
2296 | (getMaxDescent): Default to getDescent. | |
2297 | (getMaxAdvance): Return value signifying unknown. | |
2298 | (charWidth): Both methods implemented. | |
2299 | (charsWidth): Implemented. | |
2300 | (bytesWidth): Implemented. | |
2301 | (getWidths): Implemented. | |
2302 | * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable, | |
2303 | state): New fields. | |
2304 | (Frame): Rearragend constuctor chaining to disallow null being | |
2305 | passed as a graphics configuration. | |
2306 | (getTitle): Return empty string if null. | |
2307 | (dispose): Removed. | |
2308 | (getIconImage): New method. | |
2309 | (setIconImage): New method. | |
2310 | (finalize): New method. | |
2311 | (setMenuBar): Notify peer. | |
2312 | (isResizable): New method. | |
2313 | (setResizable): New method. | |
2314 | (getState): New method. | |
2315 | (getFont): Removed. | |
2316 | (remove): Implemented. | |
2317 | (removeNotify): New method. | |
2318 | (getFrames): New method. | |
2319 | * java/awt/Graphics.java: Implemented body of class. | |
2320 | * java/awt/Graphics2D.java: New file. | |
2321 | * java/awt/GraphicsConfiguration.java: Enabled part of the API. | |
2322 | * java/awt/Image.java: Implemented body of class. | |
2323 | * java/awt/Panel.java (Panel): Call correct super constructor. | |
2324 | (addNotify): Implemented. | |
2325 | * java/awt/Rectangle.java (isEmpty): Fixed reversed logic. | |
2326 | * java/awt/RenderingHints.java: New file. | |
2327 | * java/awt/Toolkit.java (createComponent): Implemented. | |
2328 | (getSystemEventQueue): Delegate to getSystemEventQueueImpl(). | |
2329 | * java/awt/Window.java (Window): Two new constructors. Reordered | |
2330 | constructor chaining. | |
2331 | (getGraphicsConfigurationImpl): New method. | |
2332 | (finalize): Call super. | |
2333 | (addNotify): Call super. | |
2334 | (pack): Do layout stuff. | |
2335 | (show): Ensure that peer exists and that component is valid. | |
2336 | (dispose): Dispose owned children. | |
2337 | (getOwner): Simplify code, casting null pointers is valid. | |
2338 | (getGraphicsConfiguration): Ask peer if local value is null. | |
2339 | * java/awt/event/ActionEvent.java (getActionCommand): Renamed from | |
2340 | getcmd(). | |
2341 | * java/awt/image/BufferedImage.java: New file. | |
2342 | * java/awt/image/RasterOp.java: New file. | |
2343 | * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration): | |
2344 | More powerfull replacement for getColorModel(). | |
2345 | (getColorModel) Removed. | |
2346 | (setEventMask) New method. | |
2347 | * Makefile.am: Added new files. | |
2348 | * Makefile.in: Rebuilt. | |
2349 | ||
0fcbfa82 APB |
2350 | 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com> |
2351 | ||
2352 | * java/lang/natClass.cc (finit_name): Initialized with `finit$'. | |
2353 | (finit_leg_name): New global. | |
2354 | (java::lang::Class::getDeclaredMethods): Test for `finit$' or | |
2355 | `$finit$'. This is a backward compatibility hack. | |
2356 | (java::lang::Class::_getMethods): Likewise. | |
2357 | ||
3a593d5f AH |
2358 | 2000-08-15 Andrew Haley <aph@cygnus.com> |
2359 | ||
2360 | * include/jvm.h (_Jv_HashCode): New hash code. | |
2361 | ||
fec1ce0a TT |
2362 | 2000-08-15 Tom Tromey <tromey@cygnus.com> |
2363 | ||
2364 | * java/io/ByteArrayOutputStream.java: Merged with Classpath. | |
2365 | ||
c0d63866 AG |
2366 | Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> |
2367 | ||
2368 | * THANKS: More thanks. | |
2369 | ||
366a0fd8 TT |
2370 | 2000-08-10 Tom Tromey <tromey@cygnus.com> |
2371 | ||
2372 | * java/net/natPlainSocketImpl.cc (bind): Don't go to error case | |
2373 | when errno not set. | |
2374 | (connect): Likewise. | |
2375 | (accept): Likewise. | |
2376 | (getOption): Likewise. | |
2377 | * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error | |
2378 | case when errno not set. | |
2379 | (peek): Likewise. | |
2380 | (send): Likewise. | |
2381 | (receive): Likewise. | |
2382 | (mcastGrp): Likewise. | |
2383 | (setOption): Likewise. | |
2384 | (getOption): Likewise. | |
2385 | ||
af657395 BM |
2386 | 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz> |
2387 | John Stracke <francis@ecal.com> | |
2388 | ||
2389 | * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed. | |
2390 | (connect): Don't falsely claim HTTP/1.1 compliance. Call | |
2391 | getHttpHeaders(). | |
2392 | (disconnect): Don't unset connected flag. | |
2393 | (getHeaderField (String)): Call connect() if not connected. | |
2394 | (getHeaderField (int)): Ditto. | |
2395 | (getHeaderFieldKey): Ditto. | |
2396 | (getHttpHeaders): Don't call connect(). | |
2397 | * java/net/HttpURLConnection.java (instanceFollowRedirects, | |
2398 | gotResponseVals): New fields. | |
2399 | (getResponseCode): Call getResponseVals() conditionally. | |
2400 | (getResponseMessage): Ditto. | |
2401 | (getResponseVals): Call connect(). Don't throw FileNotFoundException. | |
2402 | ||
e8244abe BM |
2403 | 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz> |
2404 | ||
2405 | * Makefile.am: Move beans and applet classes to awt_java_source_files. | |
2406 | * Makefile.in: Rebuilt. | |
2407 | * java/awt/Color.java (getTransparency): New method. | |
2408 | * java/awt/Component.java: Various updates. | |
2409 | * java/awt/Container.java (removeNotify): Call super.removeNotify() | |
2410 | after dealing with children. | |
2411 | * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport. | |
2412 | * java/awt/Window.java: Various new methods and updates. | |
2413 | * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID | |
2414 | to int for switch. | |
2415 | * java/awt/event/KeyEvent.java (paramString): Initialize `r'. | |
2416 | * java/awt/event/WindowEvent.java (paramString): Ditto. | |
2417 | * java/awt/geom/Dimension2D.java (clone): Wrap super call with | |
2418 | try/catch block. | |
2419 | * java/awt/geom/Point2D.java (clone): Ditto. | |
2420 | * java/awt/geom/RectangularShape.java (clone): Ditto. | |
2421 | * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha, | |
2422 | isAlphaPremultiplied): Make package-private, not private. | |
2423 | ||
6dd1b068 TT |
2424 | 2000-08-08 Tom Tromey <tromey@cygnus.com> |
2425 | ||
2426 | * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of | |
2427 | surrogate characters. | |
2428 | * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to | |
2429 | true. | |
2430 | (write): Correct handling of surrogate characters. | |
2431 | ||
8ac80386 TT |
2432 | 2000-08-07 Tom Tromey <tromey@cygnus.com> |
2433 | ||
d7ec12ae TT |
2434 | * java/lang/reflect/Method.java (hashCode): Use getName(). |
2435 | (toString): Likewise. | |
2436 | * java/lang/reflect/natMethod.cc (getType): Initialize | |
2437 | exception_types. | |
2438 | ||
273cea54 TT |
2439 | * java/lang/reflect/Method.java (toString): Use Class.getName, not |
2440 | Class.toString. | |
2441 | * java/lang/reflect/Field.java (toString): Correct formatting. | |
2442 | From Corey Minyard. | |
2443 | ||
8ac80386 TT |
2444 | * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly |
2445 | rewrote. | |
2446 | (receive): Streamlined. | |
2447 | ||
26dfad44 TT |
2448 | 2000-08-05 Tom Tromey <tromey@cygnus.com> |
2449 | ||
2450 | * java/io/PrintWriter.java: Merged comments from Classpath. | |
2451 | (printlnUnsynchronized): Removed. | |
2452 | (println()): Print the separator. | |
2453 | (println): Call println(), not printlnUnsynchronized. | |
2454 | (out): Now protected, to match spec. | |
2455 | ||
1ed67a71 TT |
2456 | 2000-08-04 Tom Tromey <tromey@cygnus.com> |
2457 | ||
2458 | * java/io/StreamTokenizer.java (TT_NONE): Now private. | |
2459 | (nextToken): Handle backslashed newline. From Oskar Liljeblad. | |
2460 | For PR java.io/301. | |
2461 | ||
9b4773cb WL |
2462 | 2000-08-03 Warren Levy <warrenl@cygnus.com> |
2463 | ||
2464 | * java/io/ObjectInputStream.java (readFields): Turn off | |
2465 | readDataFromBlock while reading via GetField. | |
2466 | (GetField$1.get(String, Object)): Pass Class of default value to | |
2467 | getField. | |
2468 | (getField): Allow for null default values. | |
2469 | ||
2470 | * java/io/ObjectOutputStream.java: Fixed typo in comment. | |
2471 | (PutField$1.put): Fixed calls of checkType in most of the put | |
2472 | methods to pass the correct parameter. | |
2473 | (PutField$1.put(String, Object)): Allow for null value arg. | |
2474 | (PutField$1.write): Turn off writeDataAsBlocks while writing via | |
2475 | PutField. | |
2476 | ||
2477 | * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed | |
2478 | typo in spec'ed field name. | |
2479 | (getSerialPersistentFields): Changed spelling of method to match | |
2480 | the correct spelling of the spec'ed field name. | |
2481 | ||
57b59acb TT |
2482 | 2000-08-03 Tom Tromey <tromey@cygnus.com> |
2483 | ||
2484 | * Makefile.in: Rebuilt. | |
2485 | * Makefile.am (awt_java_source_files): Added new files. | |
2486 | ||
d31772ca BM |
2487 | 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz> |
2488 | ||
2489 | * Makefile.am: Add new AWT stubs. | |
2490 | * java/awt/Canvas.java: New placeholder class. | |
2491 | * java/awt/Checkbox.java: Ditto. | |
2492 | * java/awt/CheckboxMenuItem.java: Ditto. | |
2493 | * java/awt/Choice.java: Ditto. | |
2494 | * java/awt/Dialog.java: Ditto. | |
2495 | * java/awt/FileDialog.java: Ditto. | |
2496 | * java/awt/List.java: Ditto. | |
2497 | * java/awt/ScrollPane.java: Ditto. | |
2498 | * java/awt/TextField.java: Ditto. | |
2499 | * java/awt/datatransfer/Clipboard.java: Ditto. | |
2500 | * java/awt/Component.java (treeLock): Now a static String. Add comment. | |
2501 | * java/awt/MenuItem.java (MenuItem): Add default constructor. | |
2502 | * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. | |
2503 | Some commented out. Partially implemented. | |
2504 | * java/awt/natToolkit.cc: Removed file. | |
2505 | ||
af6ca671 BM |
2506 | 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz> |
2507 | ||
2508 | * Makefile.am: Make inner class CNI headers depend on libgcj.zip only. | |
2509 | Fixes "make -j" builds. | |
2510 | * Makefile.in: Rebuild. | |
2511 | ||
f9427d17 TT |
2512 | 2000-08-02 Tom Tromey <tromey@cygnus.com> |
2513 | ||
f536cd95 TT |
2514 | * Makefile.in: Rebuilt. |
2515 | * Makefile.am (libgcj_la_SOURCES): Added posix.cc. | |
2516 | * java/net/natPlainSocketImpl.cc: Include posix.h. | |
2517 | (accept): Use _Jv_select. | |
2518 | * java/net/natPlainDatagramSocketImpl.cc: Include posix.h. | |
2519 | (receive): Use _Jv_select. | |
2520 | * java/io/natFileDescriptorPosix.cc: Include posix.h. | |
2521 | (available): Use _Jv_select. | |
2522 | * java/lang/natSystem.cc: Include posix.h. | |
2523 | (currentTimeMillis): Use _Jv_gettimeofday. | |
2524 | * include/posix.h: New file. | |
2525 | * posix.cc: New file. | |
2526 | ||
f9427d17 TT |
2527 | * scripts/encodings.pl: New file. |
2528 | * Makefile.in: Rebuilt. | |
2529 | * Makefile.am (convert_source_files): Added IOConverter.java. | |
2530 | * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend | |
2531 | IOConverter. | |
2532 | (getDefaultDecodingClass): Canonicalize default encoding name. | |
2533 | (getEncoder): Likewise. | |
2534 | * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend | |
2535 | IOConverter. | |
2536 | (getDefaultDecodingClass): Canonicalize default encoding name. | |
2537 | (getDecoder): Likewise. | |
2538 | * gnu/gcj/convert/IOConverter.java: New file. | |
2539 | ||
79c2c6da BM |
2540 | 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz> |
2541 | ||
2542 | * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed | |
2543 | to match C declaration in ffi.h. | |
2544 | * Makefile.am: Add java/awt/Button.java. | |
2545 | * Makefile.in: Rebuilt. | |
2546 | ||
2547 | 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com> | |
2548 | ||
2549 | * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the | |
2550 | cast of the second argument to `ffi_raw_call' changed to match | |
2551 | prototype. | |
2552 | ||
2553 | 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com> | |
2554 | ||
2555 | * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second | |
2556 | argument to `ffi_raw_call' changed to match prototype. | |
2557 | ||
aa18e0c1 BM |
2558 | 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz> |
2559 | ||
2560 | * java/awt/Component.java (toString): Implemented. | |
2561 | * java/awt/Container.java (addImpl): Remove FIXME. Only call | |
2562 | dispatchEvent() to dispatch the event. | |
2563 | (removeImpl): Ditto. | |
2564 | ||
b708c42c AG |
2565 | 2000-07-30 Anthony Green <green@redhat.com> |
2566 | ||
2567 | * java/awt/Component.java: Add treeLock object. | |
2568 | (getTreeLock): Implement. | |
2569 | (isShowing): Implement. | |
2570 | ||
e0a339f7 TT |
2571 | 2000-07-30 Tom Tromey <tromey@cygnus.com> |
2572 | ||
2573 | * java/awt/BorderLayout.java (BorderLayout()): New constructor. | |
2574 | ||
2575 | * java/awt/Frame.java (Frame): Pass `null' to Window constructor. | |
2576 | ||
2577 | * java/awt/Window.java (addNotify): Wrote. | |
2578 | (addWindowListener): Wrote. | |
2579 | (getLocale): Wrote. | |
2580 | (getWarningString): Wrote. | |
2581 | (processEvent): Wrote. | |
2582 | (processWindowEvent): Wrote. | |
2583 | (removeWindowListener): Wrote. | |
2584 | (show): Call validate(), setVisible(). | |
2585 | (toBack): Wrote. | |
2586 | (toFront): Wrote. | |
2587 | ||
2588 | * java/awt/Toolkit.java (createWindow): Declare. | |
2589 | ||
2590 | * java/awt/Frame.java (addNotify): Use getToolkit to find | |
2591 | toolkit. | |
2592 | ||
2593 | * java/awt/Component.java (invalidate): Wrote. | |
2594 | (isValid): Wrote. | |
2595 | (getToolkit): Wrote. | |
2596 | ||
2597 | * java/awt/Container.java (addContainerListener): Removed | |
2598 | unnecessary cast. | |
2599 | (removeContainerListener): Likewise. | |
2600 | (addImpl): Wrote. | |
2601 | (add(Component)): Use it. | |
2602 | (add(String,Component)): Likewise. | |
2603 | (add(Component,int)): Likewise. | |
2604 | (add(Component,Object)): Likewise. | |
2605 | (add(Component,Object,int)): Likewise. | |
2606 | (doLayout): Wrote. | |
2607 | (getAlignmentX): Wrote. | |
2608 | (getAlignmentY): Wrote. | |
2609 | (getComponentAt): Wrote. | |
2610 | (getMaximumSize): Wrote. | |
2611 | (invalidate): Wrote. | |
2612 | (list(PrintStream,int)): Wrote. | |
2613 | (list(PrintWriter,int)): Wrote. | |
2614 | (getMinimumSize): Wrote. | |
2615 | (getPreferredSize): Wrote. | |
2616 | (printComponents): Wrote. | |
2617 | (processContainerEvent): Look at containerListener, not | |
2618 | componentListener. | |
2619 | (remove): Added event processing and peer destruction. | |
2620 | (removeAll): Use remove. | |
2621 | (removeNotify): Wrote. | |
2622 | (validate): Wrote. | |
2623 | (validateTree): Wrote. | |
2624 | ||
2625 | * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists. | |
2626 | * java/awt/Label.java (addNotify): Do nothing if peer exists. | |
2627 | * java/awt/Container.java (addNotify): Don't create Container | |
2628 | peer. | |
2629 | * java/awt/Button.java (addNotify): Do nothing if peer exists. | |
2630 | ||
4e07a9ea TT |
2631 | 2000-07-30 Tom Tromey <tromey@cygnus.com> |
2632 | ||
2633 | * java/awt/Container.java (remove(int)): Wrote. | |
2634 | (remove(Component)): Wrote. | |
2635 | (add(Component)): Wrote. | |
2636 | (add(Component,int)): Wrote. | |
2637 | (removeAll): Wrote. | |
2638 | (addNotify): Set our own peer. | |
2639 | * java/awt/Scrollbar.java (listeners): Changed type. | |
2640 | (Scrollbar): Don't initialize listeners. | |
2641 | (addNotify): Wrote. | |
2642 | (setValue): Call setValues. | |
2643 | (setMinimum): Likewise. | |
2644 | (setMaxPriority): Likewise. | |
2645 | (setVisibleAmount): Likewise. | |
2646 | (setValues): Wrote. | |
2647 | (setUnitIncrement): Forward to peer. | |
2648 | (setLineIncrement): Call setUnitIncrement. | |
2649 | (setPageIncrement): Call setBlockIncrement. | |
2650 | (setBlockIncrement): Forward to peer. | |
2651 | (addAdjustmentListener): Rewrote. | |
2652 | (removeAdjustmentListener): Rewrote. | |
2653 | (processAdjustmentEvent): Rewrote. | |
2654 | (paramString): Wrote. | |
2655 | * Makefile.in: Rebuilt. | |
2656 | * Makefile.am (awt_java_source_files): Added Button.java. | |
2657 | * java/awt/Button.java: New file. | |
2658 | * java/awt/Toolkit.java (createLabel): Declare. | |
2659 | (createButton): Likewise. | |
2660 | (createScrollbar): Likewise. | |
2661 | (createContainer): Likewise. | |
2662 | * java/awt/Label.java (addNotify): Wrote. | |
2663 | (setAlignment): Call setAlignment in the peer. | |
2664 | (setText): Call setText in the peer. | |
2665 | ||
2dacb3e9 WL |
2666 | 2000-07-28 Warren Levy <warrenl@cygnus.com> |
2667 | ||
2668 | * java/io/ObjectOutputStream.java (writeObject): Per spec, call | |
2669 | NotSerializableException with just the class name. | |
2670 | ||
99f7658d AH |
2671 | 2000-07-26 Andrew Haley <aph@cygnus.com> |
2672 | ||
2673 | * interpret.cc (continue1): Insert missing break into switch. | |
2674 | ||
614ee790 WL |
2675 | 2000-07-28 Warren Levy <warrenl@cygnus.com> |
2676 | ||
2677 | * java/io/ObjectStreamException.java: Made constructors protected. | |
2678 | ||
8fec62b1 TT |
2679 | 2000-07-27 Tom Tromey <tromey@cygnus.com> |
2680 | ||
2681 | * java/io/OutputStreamWriter.java (close): Only flush if not | |
2682 | closed. | |
2683 | ||
7db51521 WL |
2684 | 2000-07-27 Warren Levy <warrenl@cygnus.com> |
2685 | ||
2686 | * mauve-libgcj: Activated serialization tests. | |
2687 | * gcj/field.h (getModifiers): Mask off unknown flags. | |
2688 | * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so | |
2689 | spurious bits don't cause discrepancies. | |
2690 | * java/io/ObjectOutputStream.java: Fixed typo in comment. | |
2691 | * java/io/ObjectStreamClass.java: Fixed typos in comments. | |
2692 | (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize. | |
2693 | (hasClassInitializer): Call getDeclaredMethod instead of getMethod. | |
2694 | * java/lang/Throwable.java (serialVersionUID): New field. | |
2695 | * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used. | |
2696 | * java/lang/reflect/natConstructor.cc (getModifiers): Mask off | |
2697 | unknown flags. | |
2698 | * java/lang/reflect/natMethod.cc: Ditto. | |
2699 | * java/security/Key.java (serialVersionUID): Removed field for now. | |
2700 | * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto. | |
2701 | * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto. | |
2702 | ||
2d97a719 TT |
2703 | 2000-07-22 Tom Tromey <tromey@cygnus.com> |
2704 | ||
2705 | * java/awt/geom/RectangularShape.java (getPathIterator): | |
2706 | Wrote. | |
2707 | ||
69b1b291 RR |
2708 | 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no> |
2709 | ||
2710 | * libjava/java/awt/image/ColorModel.java: New file, replaces the | |
2711 | stub libjava/java/awt/ColorModel.java which was located in the | |
2712 | wrong package. | |
2713 | * libjava/java/awt/image/ComponentColorModel.java: New file. | |
2714 | * libjava/java/awt/image/ComponentSampleModel.java: New file. | |
2715 | * libjava/java/awt/image/DataBuffer.java: New file. | |
2716 | * libjava/java/awt/image/DataBufferByte.java: New file. | |
2717 | * libjava/java/awt/image/DataBufferInt.java: New file. | |
2718 | * libjava/java/awt/image/DataBufferUShort.java: New file. | |
2719 | * libjava/java/awt/image/DirectColorModel.java: New file. | |
2720 | * libjava/java/awt/image/PackedColorModel.java: New file. | |
2721 | * libjava/java/awt/image/Raster.java: New file. | |
2722 | * libjava/java/awt/image/SampleModel.java: New file. | |
2723 | * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New | |
2724 | file. | |
2725 | * libjava/java/awt/image/IndexColorModel.java: New file. | |
2726 | * libjava/java/awt/image/ImageConsumer.java: Removed import of | |
2727 | java.awt.ColorModel stub. | |
2728 | ||
2729 | * gnu/gcj/util/BitMaskExtent.java: New file, utility class. | |
2730 | * gnu/gcj/util/Buffers.java: New file, utility class. | |
2731 | ||
2732 | * libjava/Makefile.am: Updated to include new files. | |
2733 | * libjava/Makefile.in: Rebuilt. | |
2734 | ||
05ae1c31 OL |
2735 | 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se> |
2736 | ||
2737 | * java/io/StreamTokenizer.java: Merged with classpath. | |
2738 | ||
75723df4 TT |
2739 | 2000-07-20 Tom Tromey <tromey@cygnus.com> |
2740 | ||
8039a4ea TT |
2741 | * Makefile.in: Rebuilt. |
2742 | * Makefile.am (awt_java_source_files): Updated for new files. | |
2743 | * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values. | |
2744 | * java/awt/Label.java: New file. | |
2745 | * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D. | |
2746 | (createIntersection, createUnion, getBounds2D): New methods. | |
2747 | * java/awt/Scrollbar.java: New file. | |
2748 | * java/awt/Shape.java: Updated to 1.2. | |
2749 | * java/awt/geom/AffineTransform.java: New file. | |
2750 | * java/awt/geom/Ellipse2D.java: New file. | |
2751 | * java/awt/geom/NoninvertibleTransformException.java: New file. | |
2752 | * java/awt/geom/PathIterator.java: New file. | |
2753 | * java/awt/geom/Rectangle2D.java: New file. | |
2754 | * java/awt/geom/RectangularShape.java: New file. | |
2755 | * java/awt/geom/Point2D.java (Double, Float): New inner classes. | |
2756 | * java/awt/geom/IllegalPathStateException.java: New file. | |
2757 | ||
266a4420 TT |
2758 | * scripts/showval.java: New file. |
2759 | ||
7f8a07db TT |
2760 | * scripts/classes.pl (scan): Print inner classes properly. |
2761 | * gcj/javaprims.h: Updated class list. | |
2762 | ||
5e5c1371 TT |
2763 | * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only |
2764 | initialize String fields for interpreted classes. Fixes bug | |
2765 | reported by Hans Boehm. | |
2766 | ||
373d3b18 TT |
2767 | * java/io/File.java (getParentFile): New method, from Classpath |
2768 | via Oskar Liljeblad. | |
2769 | ||
75723df4 TT |
2770 | * java/util/Vector.java (remove(Object)): Implemented. |
2771 | ||
5cc80caa JS |
2772 | 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com> |
2773 | ||
2774 | * java/lang/natThrowable.cc (fillInStackTrace): Check for | |
2775 | zero return from backtrace(). | |
2776 | ||
c180a82d BM |
2777 | 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz> |
2778 | ||
2779 | * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within | |
2780 | synchronized block. | |
2781 | * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier | |
2782 | before calling notifyAll(). | |
2783 | ||
826b4807 BM |
2784 | 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz> |
2785 | ||
2786 | Add missing files from last check-in: | |
2787 | * java/awt/image/ImageConsumer.java: New file. | |
2788 | * java/awt/image/ImageProducer.java: New file. | |
2789 | * java/awt/image/ImageObserver.java: New file. | |
2790 | ||
e98da3dc BM |
2791 | 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz> |
2792 | ||
2793 | Merged implementation of java.applet from classpath: | |
2794 | * java/applet/Applet.java: New file. | |
2795 | * java/applet/AppletContext.java: New file. | |
2796 | * java/applet/AppletStub.java: New file. | |
2797 | * java/applet/AudioClip.java: New file. | |
2798 | ||
2799 | * Makefile.am: Added new java.applet classes. | |
2800 | * Makefile.in: Rebuilt. | |
2801 | ||
c7a136d3 BM |
2802 | 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz> |
2803 | ||
2804 | AWT Stuff: | |
2805 | * java/util/ResourceBundle.java (getLocale): stub. | |
2806 | * Makefile.am: Added new AWT classes. | |
2807 | * Makefile.in: Rebuilt. | |
2808 | * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, | |
2809 | constructors. Fix toString() and paramString(). | |
2810 | * java/awt/AWTEventMulticaster.java: New class. Implemented. | |
2811 | * java/awt/CheckboxGroup.java: New class. | |
2812 | * java/awt/ColorModel.java: New class. | |
2813 | * java/awt/Component.java: Added stubs for most methods. Implemented | |
2814 | event dispatch. | |
2815 | * java/awt/Container.java: ditto. | |
2816 | * java/awt/ComponentOrientation.java: New class. Partly implemented. | |
2817 | * java/awt/Cursor.java: ditto. | |
2818 | * java/awt/Event.java: Fix paramString(). | |
2819 | * java/awt/EventQueue.java: New class. Implemented. | |
2820 | * java/awt/Font.java: Added additional stub methods. Implemented | |
2821 | toString(). | |
2822 | * java/awt/FontMetrics.java: New class. Stubbed. | |
2823 | * java/awt/GraphicsConfiguration.java: New class. Complete, except for | |
2824 | Java2D parts. | |
2825 | * java/awt/Insets.java: New class. Implemented. | |
2826 | * java/awt/Menu.java: Add new methods. Partially implemented. | |
2827 | * java/awt/MenuItem.java: Add new methods and fields. Partially | |
2828 | implemented. | |
2829 | * java/awt/MenuShortcut.java: New class. Implemented. | |
2830 | * java/awt/Panel.java: New class. Placeholder. | |
2831 | * java/awt/PopupMenu.java: New class. Stubbed. | |
2832 | * java/awt/Rectangle.java: New class. Implemented. | |
2833 | * java/awt/Toolkit.java: Added getSystemEventQueue() stub. | |
2834 | * java/awt/event/ActionEvent.java: Implement paramString(). | |
2835 | * java/awt/event/AdjustmentEvent.java: Implement paramString(). | |
2836 | * java/awt/event/ComponentEvent.java: Implement paramString(). | |
2837 | * java/awt/event/ContainerEvent.java: Implement paramString(). | |
2838 | * java/awt/event/FocusEvent.java: Implement paramString(). | |
2839 | * java/awt/event/HierarchyBoundsAdapter.java: New class. | |
2840 | * java/awt/event/HierarchyBoundsListener.java: New class. | |
2841 | * java/awt/event/HierarchyEvent.java: New class. | |
2842 | * java/awt/event/HierarchyListener.java: New class. | |
2843 | * java/awt/event/InputMethodEvent.java: Implement paramString(). | |
2844 | * java/awt/event/InvocationEvent.java: Implement paramString(). Throw | |
2845 | exception if !catchExceptions. | |
2846 | * java/awt/event/ItemEvent.java: Implement paramString(). | |
2847 | * java/awt/event/KeyEvent.java: Implement paramString(). | |
2848 | * java/awt/event/MouseEvent.java: Implement paramString(). | |
2849 | * java/awt/event/PaintEvent.java: Implement paramString(). | |
2850 | * java/awt/event/TextEvent.java: Implement paramString(). | |
2851 | * java/awt/event/WindowEvent.java: Implement paramString(). | |
2852 | ||
2853 | AWT Peer interfaces: | |
2854 | * java/awt/peer/ButtonPeer.java: New file. | |
2855 | * java/awt/peer/ListPeer.java: New file. | |
2856 | * java/awt/peer/CanvasPeer.java: New file. | |
2857 | * java/awt/peer/MenuBarPeer.java: New file. | |
2858 | * java/awt/peer/CheckboxMenuItemPeer.java: New file. | |
2859 | * java/awt/peer/MenuComponentPeer.java: New file. | |
2860 | * java/awt/peer/CheckboxPeer.java: New file. | |
2861 | * java/awt/peer/MenuItemPeer.java: New file. | |
2862 | * java/awt/peer/ChoicePeer.java: New file. | |
2863 | * java/awt/peer/MenuPeer.java: New file. | |
2864 | * java/awt/peer/ComponentPeer.java: Implemented. | |
2865 | * java/awt/peer/PanelPeer.java: New file. | |
2866 | * java/awt/peer/ContainerPeer.java: Implemented. | |
2867 | * java/awt/peer/PopupMenuPeer.java: New file. | |
2868 | * java/awt/peer/DialogPeer.java: New file. | |
2869 | * java/awt/peer/ScrollPanePeer.java: New file. | |
2870 | * java/awt/peer/FileDialogPeer.java: New file. | |
2871 | * java/awt/peer/ScrollbarPeer.java: New file. | |
2872 | * java/awt/peer/FontPeer.java: New file. | |
2873 | * java/awt/peer/TextAreaPeer.java: New file. | |
2874 | * java/awt/peer/FramePeer.java: Implemented. | |
2875 | * java/awt/peer/TextComponentPeer.java: New file. | |
2876 | * java/awt/peer/LabelPeer.java: New file. | |
2877 | * java/awt/peer/TextFieldPeer.java: New file. | |
2878 | * java/awt/peer/LightweightPeer.java: New file. | |
2879 | * java/awt/peer/WindowPeer.java: Implemented. | |
2880 | ||
4ea9cbf1 TT |
2881 | 2000-07-06 Tom Tromey <tromey@cygnus.com> |
2882 | ||
2883 | * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): | |
2884 | Initialize static final String fields. | |
2885 | ||
fa948ac3 TT |
2886 | 2000-07-03 Tom Tromey <tromey@cygnus.com> |
2887 | ||
2888 | * java/io/PrintWriter.java (print): Call write(String), not | |
2889 | print(String). See PR libgcj/277. | |
2890 | (print(String)): Use write, not out.write. | |
2891 | ||
e5858cc9 TT |
2892 | 2000-06-30 Tom Tromey <tromey@cygnus.com> |
2893 | ||
2894 | * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270. | |
2895 | ||
52fa9d82 AH |
2896 | 2000-06-27 Andrew Haley <aph@cygnus.com> |
2897 | ||
2898 | * java/io/File.java (createTempFile): Close the FileDescriptor | |
2899 | used to create a temp file. Fixes some of PR 203. | |
2900 | * java/io/natFileDescriptorPosix.cc (open): Call garbage | |
2901 | collection if we run out of file handles. | |
2902 | ||
2017da52 WL |
2903 | 2000-06-28 Warren Levy <warrenl@cygnus.com> |
2904 | ||
2905 | * gnu/java/security/provider/Gnu.java: New file. | |
2906 | * gnu/java/security/provider/SHA.java: New file. | |
2907 | * gnu/java/security/provider/SHA1PRNG.java: New file. | |
2908 | * Makefile.am: Added the above files. | |
2909 | * Makefile.in: Rebuilt. | |
2910 | ||
2911 | * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS. | |
2912 | ||
06772c7d BM |
2913 | 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz> |
2914 | ||
c7a136d3 | 2915 | * java/lang/ThreadGroup.java: Added synchronized flag to many methods. |
06772c7d BM |
2916 | (destroyed_flag): Removed. |
2917 | (isDestroyed, removeGroup, removeThread): Test for parent == null. | |
2918 | (activeCount): Added spec note. | |
2919 | ||
d9984f96 WL |
2920 | 2000-06-27 Warren Levy <warrenl@cygnus.com> |
2921 | ||
2922 | * java/security/Principal.java: New file. | |
2923 | * Makefile.am: Added Principal.java. | |
2924 | * Makefile.in: Rebuilt. | |
2925 | ||
b32dabe5 RR |
2926 | 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no> |
2927 | ||
2928 | * java/awt/event/MouseEvent.java: Fixed coordinate space | |
2929 | confusion. | |
2930 | ||
260e1a2b TT |
2931 | 2000-06-27 Tom Tromey <tromey@cygnus.com> |
2932 | ||
56067b00 TT |
2933 | * java/io/PushbackInputStream.java (read): If there are characters |
2934 | in the buffer, don't also call super.read(). | |
2935 | * java/io/PushbackReader.java (read): If there are characters in | |
2936 | the buffer, don't also call super.read(). | |
2937 | ||
260e1a2b TT |
2938 | * java/lang/Double.java (valueOf): Call parseDouble(). |
2939 | ||
7b245d24 WL |
2940 | 2000-06-26 Warren Levy <warrenl@cygnus.com> |
2941 | ||
2942 | * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue. | |
2943 | (newVal): Renamed to newValue. | |
2944 | * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt. | |
2945 | * java/beans/beancontext/BeanContextServiceRevokedEvent.java | |
2946 | (revokeNow): Renamed to invalidateRefs. | |
2947 | * java/io/OptionalDataException.java: Updated FIXME. | |
2948 | (eof): New placeholder field. | |
2949 | (length); Ditto. | |
2950 | * java/io/WriteAbortedException.java (message): Made transient. | |
2951 | * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2. | |
2952 | * java/lang/Throwable.java (stackTrace): Made transient. | |
2953 | * java/net/InetAddress.java: Made Serializable. | |
2954 | * java/security/KeyPair.java: Made Serializable. | |
2955 | * java/security/Provider.java: Replaced with Classpath version that | |
2956 | implements serialization and proper methods. | |
2957 | * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats. | |
2958 | (limits): Renamed to choiceLimits. | |
2959 | ||
cf036e71 TT |
2960 | 2000-06-24 Tom Tromey <tromey@cygnus.com> |
2961 | ||
2962 | * java/lang/natDouble.cc (parseDouble): Renamed from | |
2963 | doubleValueOf. | |
2964 | * java/lang/Double.java (parseDouble): Renamed from | |
2965 | doubleValueOf. Now public. | |
2966 | ||
56e3dd2c AH |
2967 | 2000-06-23 Andrew Haley <aph@cygnus.com> |
2968 | ||
2969 | * java/lang/ieeefp.h: Handle ia64, fr30, mcore. | |
2970 | * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace. | |
2971 | ||
782c59d6 TT |
2972 | 2000-06-23 Tom Tromey <tromey@cygnus.com> |
2973 | ||
2974 | * java/lang/reflect/natMethod.cc: Include <alloca.h>. | |
2975 | * java/lang/natDouble.cc: Always include <alloca.h>. | |
2976 | Fix for PR libgcj/267. | |
2977 | ||
0ee935e1 BM |
2978 | 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz> |
2979 | ||
2980 | * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to | |
2981 | comply with classpath VM spec. | |
2982 | (add(Group)): Rename to addGroup(). | |
2983 | * java/lang/Thread.java (Thread): Use addThread(). | |
2984 | * java/lang/natThread.cc (finish_): Use removeThread(). | |
2985 | ||
6dfd8a77 BM |
2986 | 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz> |
2987 | ||
2988 | * java/lang/ThreadGroup.java: Merged with classpath. | |
2989 | * prims.cc (_Jv_RunMain): Don't use `main_group'. | |
2990 | * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor | |
2991 | argument. | |
2992 | * java/lang/Thread.java (Thread): Bootstrap initial thread from | |
2993 | ThreadGroup.root if Thread.currentThread is null. Honour the | |
2994 | ThreadGroup's max priority setting. | |
2995 | ||
d4d17e95 TT |
2996 | 2000-06-18 Tom Tromey <tromey@cygnus.com> |
2997 | ||
2998 | * java/lang/natClass.cc (forName): Removed dead code. Initialize | |
2999 | returned class. For PR gcj/260. | |
3000 | ||
3fff8475 TT |
3001 | 2000-06-16 Tom Tromey <tromey@cygnus.com> |
3002 | ||
3003 | Fix for PR libgcj/261: | |
3004 | * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception' | |
3005 | argument. | |
3006 | * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception' | |
3007 | argument. (This is a patch from long ago that somehow went | |
3008 | missing.) | |
3009 | ||
ff1c0096 TT |
3010 | 2000-06-15 Tom Tromey <tromey@cygnus.com> |
3011 | ||
3012 | * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function. | |
3013 | (read): Use it. | |
3014 | (write): Likewise. | |
3015 | ||
d655f87d BM |
3016 | 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz> |
3017 | ||
3018 | Fix for PR java.lang/258: | |
3019 | * prims.cc (_Jv_PrimClass): Set state of primitive class to | |
3020 | JV_STATE_DONE, to prevent accidental initialization. | |
3021 | * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call | |
3022 | _Jv_InterfaceAssignableFrom if target is an interface and source is an | |
3023 | interface or an abstract class. Remove redundant initializeClass calls. | |
1bf89727 BM |
3024 | Remove duplicate if_idt test. |
3025 | (_Jv_InterfaceAssignableFrom): New function. | |
3026 | * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype. | |
d655f87d | 3027 | |
c74e2214 TT |
3028 | 2000-05-31 Tom Tromey <tromey@cygnus.com> |
3029 | ||
3030 | * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well. | |
3031 | (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass. | |
3032 | * include/jvm.h (struct _Jv_ArrayVTable): Declare. | |
3033 | (NUM_OBJECT_METHODS): New define. | |
3034 | * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added | |
3035 | `array_vtable' parameter. Added assertion. | |
3036 | * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable' | |
3037 | parameter. | |
3038 | ||
f1aa7a52 BM |
3039 | 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz> |
3040 | ||
3041 | * gcj/cni.h: Include <string.h>. | |
3042 | * defineclass.cc: Include <alloca.h>. | |
3043 | * interpret.cc: Ditto. | |
3044 | * gij.cc: Include <stdlib.h>. | |
3045 | ||
efc70584 TT |
3046 | 2000-05-30 Tom Tromey <tromey@cygnus.com> |
3047 | ||
3048 | * include/name-finder.h: Include <sys/wait.h>. | |
3049 | (_Jv_name_finder::pid): Now of type `pid_t'. | |
3050 | (_Jv_name_finder::~_Jv_name_finder): Call waitpid(). | |
3051 | * java/lang/Throwable.java (CPlusPlusDemangler.close): Call | |
3052 | `proc.waitFor()'. | |
3053 | ||
0d0cd441 WL |
3054 | 2000-05-24 Warren Levy <warrenl@cygnus.com> |
3055 | ||
3056 | * java/io/ObjectOutputStream.java (writeObject): Use component type | |
3057 | when writing arrays. | |
3058 | Fixed typo. | |
3059 | ||
1c02a3d9 BM |
3060 | 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz> |
3061 | ||
3062 | Fix for PR libgcj/226: | |
3063 | * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect, | |
3064 | since this is an installed header. | |
3065 | ||
3066 | Fix for PR libgcj/228: | |
3067 | * java/util/zip/ZipFile (getInputStream): Create inflater with | |
3068 | nowrapper option. | |
3069 | ||
3070 | * java/util/zip/natInflater.cc (inflate): Throw zlib's error message | |
3071 | with DataFormatException. | |
3072 | ||
fa5b690a TT |
3073 | 2000-05-20 Tom Tromey <tromey@cygnus.com> |
3074 | ||
3075 | * Makefile.in: Rebuilt. | |
3076 | * Makefile.am (hack1): Removed. | |
3077 | (awto_files): Likewise. | |
3078 | (libgcjawt_la_SOURCES): Likewise. | |
3079 | (EXTRA_libgcjawt_la_SOURCES): Likewise. | |
3080 | (libgcjawt_la_DEPENDENCIES): Likewise. | |
3081 | (libgcjawt_la_LIBADD): Likewise. | |
3082 | (libgcjawt_la_LDFLAGS): Likewise. | |
3083 | (libgcjawt_la_LINK): Likewise. | |
3084 | ($(awt_java_source_files:.java=.class)): Likewise. | |
3085 | (libgcj.zip): Don't depend on AWT files. | |
3086 | (MOSTLYCLEANFILES): Don't include AWT files. | |
3087 | ($(awto_files)): Removed. | |
3088 | (nat_headers): Removed AWT files. | |
3089 | (cond_awt_java_source_files): Removed. | |
3090 | (ordinary_java_source_files): Added awt_java_source_files. | |
3091 | * libgcj.spec.in (*lib): Removed -lgcjawt. | |
3092 | * configure: Rebuilt. | |
3093 | * configure.in: Removed --enable-java-awt option. | |
3094 | ||
ee2f99a5 BM |
3095 | 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz> |
3096 | ||
3097 | * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs. | |
3098 | (ZipEntry): Copy the `name' field. | |
3099 | (clone): Implement JDK1.2 method. | |
3100 | (setCompressedSize): ditto. | |
3101 | (hashCode): ditto. | |
3102 | ||
1dcc0536 TT |
3103 | 2000-05-19 Tom Tromey <tromey@cygnus.com> |
3104 | ||
3105 | * java/io/BufferedWriter.java: Merged with Classpath. | |
3106 | * java/io/BufferedOutputStream.java: Merged with Classpath. | |
3107 | ||
6c80c45e TT |
3108 | 2000-05-16 Andrew Haley <aph@cygnus.com> |
3109 | ||
3110 | * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to | |
3111 | build_ia64_frame_state. | |
3112 | * sysdep/ia64-frame.h (build_ia64_frame_state): Match with | |
3113 | defintion in gcc. | |
3114 | ||
3115 | 2000-05-15 Warren Levy <warrenl@cygnus.com> | |
3116 | ||
3117 | * gnu/gcj/beans/BeanInfoEmbryo.java: Removed. | |
3118 | * gnu/gcj/beans/EmptyBeanInfo.java: Removed. | |
3119 | * gnu/gcj/beans/ExplicitBeanInfo.java: Removed. | |
3120 | * gnu/gcj/beans/IntrospectionIncubator.java: Removed. | |
3121 | * gnu/gcj/beans/editors/ColorEditor.java: Removed. | |
3122 | * gnu/gcj/beans/editors/FontEditor.java: Removed. | |
3123 | * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed. | |
3124 | * gnu/gcj/beans/editors/NativeByteEditor.java: Removed. | |
3125 | * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed. | |
3126 | * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed. | |
3127 | * gnu/gcj/beans/editors/NativeIntEditor.java: Removed. | |
3128 | * gnu/gcj/beans/editors/NativeLongEditor.java: Removed. | |
3129 | * gnu/gcj/beans/editors/NativeShortEditor.java: Removed. | |
3130 | * gnu/gcj/beans/editors/StringEditor.java: Removed. | |
3131 | * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed. | |
3132 | * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed. | |
3133 | * gnu/gcj/io/NullOutputStream.java: Removed. | |
3134 | * gnu/gcj/io/ObjectIdentityWrapper.java: Removed. | |
3135 | * gnu/gcj/lang/ArrayHelper.java: Removed. | |
3136 | * gnu/gcj/lang/ClassHelper.java: Removed. | |
3137 | * gnu/gcj/lang/reflect/TypeSignature.java: Removed. | |
3138 | ||
3139 | * gnu/java/beans/BeanInfoEmbryo.java: New file. | |
3140 | * gnu/java/beans/EmptyBeanInfo.java: New file. | |
3141 | * gnu/java/beans/ExplicitBeanInfo.java: New file. | |
3142 | * gnu/java/beans/IntrospectionIncubator.java: New file. | |
3143 | * gnu/java/beans/editors/ColorEditor.java: New file. | |
3144 | * gnu/java/beans/editors/FontEditor.java: New file. | |
3145 | * gnu/java/beans/editors/NativeBooleanEditor.java: New file. | |
3146 | * gnu/java/beans/editors/NativeByteEditor.java: New file. | |
3147 | * gnu/java/beans/editors/NativeDoubleEditor.java: New file. | |
3148 | * gnu/java/beans/editors/NativeFloatEditor.java: New file. | |
3149 | * gnu/java/beans/editors/NativeIntEditor.java: New file. | |
3150 | * gnu/java/beans/editors/NativeLongEditor.java: New file. | |
3151 | * gnu/java/beans/editors/NativeShortEditor.java: New file. | |
3152 | * gnu/java/beans/editors/StringEditor.java: New file. | |
3153 | * gnu/java/beans/info/ComponentBeanInfo.java: New file. | |
3154 | * gnu/java/io/ClassLoaderObjectInputStream.java: New file. | |
3155 | * gnu/java/io/NullOutputStream.java: New file. | |
3156 | * gnu/java/io/ObjectIdentityWrapper.java: New file. | |
3157 | * gnu/java/lang/ArrayHelper.java: New file. | |
3158 | * gnu/java/lang/ClassHelper.java: New file. | |
3159 | * gnu/java/lang/reflect/TypeSignature.java: New file. | |
3160 | ||
3161 | * Makefile.am: Updated for moving Classpath files from gnu/gcj | |
3162 | namespace back to the original Classpath gnu/java namespace. | |
3163 | * Makefile.in: Rebuilt. | |
3164 | ||
3165 | * java/beans/Beans.java: Namespace change. | |
3166 | * java/beans/EventSetDescriptor.java: Namespace change. | |
3167 | * java/beans/Introspector.java: Namespace change. | |
3168 | * java/beans/PropertyEditorManager.java: Namespace change. | |
3169 | * java/io/ObjectInputStream.java: Namespace change. | |
3170 | * java/io/ObjectOutputStream.java: Namespace change. | |
3171 | * java/io/ObjectStreamClass.java: Namespace change. | |
3172 | * java/io/ObjectStreamField.java: Namespace change. | |
3173 | ||
3174 | 2000-04-21 Warren Levy <warrenl@cygnus.com> | |
3175 | ||
3176 | * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13 | |
3177 | now that compiler patch is available. | |
3178 | Removed unneeded System.loadLibrary. | |
3179 | * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary. | |
3180 | * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary. | |
3181 | ||
3182 | 2000-04-19 Andrew Haley <aph@cygnus.com> | |
3183 | ||
3184 | * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source | |
3185 | and target classes have been initialized. | |
3186 | ||
3187 | 2000-04-19 Andrew Haley <aph@cygnus.com> | |
3188 | ||
3189 | * java/lang/String.java: implement Serializable, Comparable. | |
3190 | (compareTo (Object)): New method. | |
3191 | ||
3192 | 2000-04-19 Warren Levy <warrenl@cygnus.com> | |
3193 | ||
3194 | * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField | |
3195 | instead of getField to retrieve non-public field. | |
3196 | (getSerialPersistantFields): Ditto. | |
3197 | ||
3198 | 2000-04-18 Warren Levy <warrenl@cygnus.com> | |
3199 | ||
3200 | * mauve-libgcj: Turned off object serialization tests temporarily | |
3201 | due to compiler error. | |
3202 | ||
3203 | 2000-04-17 Warren Levy <warrenl@cygnus.com> | |
3204 | ||
3205 | * java/io/ObjectInputStream.java (DEBUG): Disabled unused method | |
3206 | to avoid build problem. | |
3207 | (DEBUGln): Ditto. | |
3208 | * mauve-libgcj: Turned on object serialization tests. | |
3209 | ||
3210 | 2000-04-17 Tom Tromey <tromey@cygnus.com> | |
3211 | ||
3212 | * libgcj.spec.in (*lib): Added -lgcjawt. | |
3213 | ||
3214 | 2000-04-17 Andrew Haley <aph@cygnus.com> | |
3215 | ||
3216 | * Makefile.am: Add new files: | |
3217 | gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc, | |
3218 | gnu/gcj/io/shs.cc. | |
3219 | * Makefile.in: Rebuilt. | |
3220 | ||
3221 | * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an | |
3222 | interface that has no implementations. | |
3223 | Check for an attempt to assign an abstract class to an interface. | |
3224 | ||
3225 | * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream | |
3226 | if we fail to find MessageDigest.getInstance ("SHA"). | |
3227 | ||
3228 | * gnu/gcj/io/SimpleSHSStream.java: New file. | |
3229 | * gnu/gcj/io/natSimpleSHSStream.java: New file. | |
3230 | * gnu/gcj/io/shs.cc: New file. | |
3231 | * gnu/gcj/io/shs.h: new file. | |
3232 | ||
3233 | * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays | |
3234 | serializable. | |
3235 | ||
3236 | * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove | |
3237 | punctuation from the classname of an array element. | |
3238 | ||
3239 | * gcj/javaprims.h: Add SimpleDigestStream. | |
3240 | ||
3241 | 2000-04-17 Andrew Haley <aph@cygnus.com> | |
3242 | ||
3243 | * java/lang/natClass.cc (getPrivateField): Make recursive calls | |
3244 | to getPrivateField for superclasses. | |
3245 | ||
3246 | 2000-04-14 Andrew Haley <aph@cygnus.com> | |
3247 | ||
3248 | * Makefile.am: Add new files: | |
3249 | java/io/ObjectOutputStream$PutField.h, | |
3250 | java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc, | |
3251 | java/io/natObjectOutputStream.cc | |
3252 | * Makefile.in: Rebuilt. | |
3253 | * gcj/Makefile.in: Rebuilt. | |
3254 | * include/Makefile.in: Rebuilt. | |
3255 | * java/lang/Class.h (getPrivateField): New method. | |
3256 | (getPrivateMethod): Ditto. | |
3257 | Make java::io::ObjectOutputStream, java::io::ObjectInputStream, | |
3258 | and java::io::ObjectStreamClass our friends. | |
3259 | * java/lang/natClass.cc (getPrivateField): New method. | |
3260 | (getPrivateMethod): Ditto. | |
3261 | (_Jv_IsAssignableFrom): Return false for Interface with no IDT. | |
3262 | * gcj/javaprims.h: Add serialization classes. | |
3263 | * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java. | |
3264 | (setByteField): Ditto. | |
3265 | (setCharField): Ditto. | |
3266 | (setDoubleField): Ditto. | |
3267 | (setFloatField): Ditto. | |
3268 | (setIntField): Ditto. | |
3269 | (setLongField): Ditto. | |
3270 | (setShortField): Ditto. | |
3271 | (setObjectField): Ditto. | |
3272 | * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in | |
3273 | Java. | |
3274 | (getByteField): Ditto. | |
3275 | (getCharField): Ditto. | |
3276 | (getDoubleField): Ditto. | |
3277 | (getFloatField): Ditto. | |
3278 | (getIntField): Ditto. | |
3279 | (getLongField): Ditto. | |
3280 | (getShortField): Ditto. | |
3281 | (getObjectField): Ditto. | |
3282 | * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in | |
3283 | Java. | |
3284 | (getSerialPersistantFields): Ditto. | |
3285 | (getDefinedSUID): Ditto. | |
3286 | * java/io/natObjectOutputStream.cc: New file. | |
3287 | * java/io/natObjectInputStream.cc: New file. | |
3288 | ||
3289 | 2000-04-13 Warren Levy <warrenl@cygnus.com> | |
3290 | ||
3291 | * java/io/ObjectInputStream.java: Temporary workarounds for compiler | |
3292 | problems. Revert to previous version to reproduce and when fixed. | |
3293 | ||
3294 | 2000-04-13 Warren Levy <warrenl@cygnus.com> | |
3295 | ||
3296 | * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file. | |
3297 | * gnu/gcj/io/NullOutputStream.java: New file. | |
3298 | * gnu/gcj/lang/reflect/TypeSignature.java: New file. | |
3299 | * java/io/BlockDataException.java: New file. | |
3300 | * java/io/Externalizable.java: New file. | |
3301 | * java/io/InvalidClassException.java: New file. | |
3302 | * java/io/InvalidObjectException.java: New file. | |
3303 | * java/io/NotActiveException.java: New file. | |
3304 | * java/io/NotSerializableException.java: New file. | |
3305 | * java/io/ObjectInput.java: New file. | |
3306 | * java/io/ObjectInputStream.java: New file. | |
3307 | * java/io/ObjectInputValidation.java: New file. | |
3308 | * java/io/ObjectOutput.java: New file. | |
3309 | * java/io/ObjectOutputStream.java: New file. | |
3310 | * java/io/ObjectStreamClass.java: New file. | |
3311 | * java/io/ObjectStreamConstants.java: New file. | |
3312 | * java/io/ObjectStreamField.java: New file. | |
3313 | * java/io/Replaceable.java: New file. | |
3314 | * java/io/Resolvable.java: New file. | |
3315 | * java/io/SerializablePermission.java: New file. | |
3316 | * java/io/WriteAbortedException.java: New file. | |
3317 | * java/security/BasicPermission.java: New file. | |
3318 | * java/security/DigestOutputStream.java: New file. | |
3319 | * java/security/Guard.java: New file. | |
3320 | * java/security/Permission.java: New file. | |
3321 | * java/security/PermissionCollection.java: New file. | |
3322 | * Makefile.am: Added above files. | |
3323 | * Makefile.in: Rebuilt. | |
3324 | ||
3325 | * java/beans/Beans.java (instantiate): Activated serialization code. | |
3326 | * java/lang/SecurityManager.java (checkPermission): New method. | |
3327 | ||
3328 | 2000-04-12 Warren Levy <warrenl@cygnus.com> | |
3329 | ||
3330 | * gnu/gcj/beans/BeanInfoEmbryo.java: New file. | |
3331 | * gnu/gcj/beans/EmptyBeanInfo.java: New file. | |
3332 | * gnu/gcj/beans/ExplicitBeanInfo.java: New file. | |
3333 | * gnu/gcj/beans/IntrospectionIncubator.java: New file. | |
3334 | * gnu/gcj/beans/editors/ColorEditor.java: New file. | |
3335 | * gnu/gcj/beans/editors/FontEditor.java: New file. | |
3336 | * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file. | |
3337 | * gnu/gcj/beans/editors/NativeByteEditor.java: New file. | |
3338 | * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file. | |
3339 | * gnu/gcj/beans/editors/NativeFloatEditor.java: New file. | |
3340 | * gnu/gcj/beans/editors/NativeIntEditor.java: New file. | |
3341 | * gnu/gcj/beans/editors/NativeLongEditor.java: New file. | |
3342 | * gnu/gcj/beans/editors/NativeShortEditor.java: New file. | |
3343 | * gnu/gcj/beans/editors/StringEditor.java: New file. | |
3344 | * gnu/gcj/beans/info/ComponentBeanInfo.java: New file. | |
3345 | * gnu/gcj/io/ObjectIdentityWrapper.java: New file. | |
3346 | * gnu/gcj/lang/ArrayHelper.java: New file. | |
3347 | * gnu/gcj/lang/ClassHelper.java: New file. | |
3348 | * java/beans/BeanDescriptor.java: New file. | |
3349 | * java/beans/BeanInfo.java: New file. | |
3350 | * java/beans/Beans.java: New file. | |
3351 | * java/beans/Customizer.java: New file. | |
3352 | * java/beans/DesignMode.java: New file. | |
3353 | * java/beans/EventSetDescriptor.java: New file. | |
3354 | * java/beans/FeatureDescriptor.java: New file. | |
3355 | * java/beans/IndexedPropertyDescriptor.java: New file. | |
3356 | * java/beans/IntrospectionException.java: New file. | |
3357 | * java/beans/Introspector.java: New file. | |
3358 | * java/beans/MethodDescriptor.java: New file. | |
3359 | * java/beans/ParameterDescriptor.java: New file. | |
3360 | * java/beans/PropertyChangeEvent.java: New file. | |
3361 | * java/beans/PropertyChangeListener.java: New file. | |
3362 | * java/beans/PropertyChangeSupport.java: New file. | |
3363 | * java/beans/PropertyDescriptor.java: New file. | |
3364 | * java/beans/PropertyEditor.java: New file. | |
3365 | * java/beans/PropertyEditorManager.java: New file. | |
3366 | * java/beans/PropertyEditorSupport.java: New file. | |
3367 | * java/beans/PropertyVetoException.java: New file. | |
3368 | * java/beans/SimpleBeanInfo.java: New file. | |
3369 | * java/beans/VetoableChangeListener.java: New file. | |
3370 | * java/beans/VetoableChangeSupport.java: New file. | |
3371 | * java/beans/Visibility.java: New file. | |
3372 | * java/beans/beancontext/BeanContext.java: New file. | |
3373 | * java/beans/beancontext/BeanContextChild.java: New file. | |
3374 | * java/beans/beancontext/BeanContextChildComponentProxy.java: New file. | |
3375 | * java/beans/beancontext/BeanContextChildSupport.java: New file. | |
3376 | * java/beans/beancontext/BeanContextContainerProxy.java: New file. | |
3377 | * java/beans/beancontext/BeanContextEvent.java: New file. | |
3378 | * java/beans/beancontext/BeanContextMembershipEvent.java: New file. | |
3379 | * java/beans/beancontext/BeanContextMembershipListener.java: New file. | |
3380 | * java/beans/beancontext/BeanContextProxy.java: New file. | |
3381 | * java/beans/beancontext/BeanContextServiceAvailableEvent.java: | |
3382 | New file. | |
3383 | * java/beans/beancontext/BeanContextServiceProvider.java: New file. | |
3384 | * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java: | |
3385 | New file. | |
3386 | * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file. | |
3387 | * java/beans/beancontext/BeanContextServiceRevokedListener.java: | |
3388 | New file. | |
3389 | * java/beans/beancontext/BeanContextServices.java: New file. | |
3390 | * java/beans/beancontext/BeanContextServicesListener.java: New file. | |
3391 | * java/util/AbstractCollection.java: New file. | |
3392 | * java/util/AbstractList.java: New file. | |
3393 | * java/util/Arrays.java: New file. | |
3394 | * Makefile.am: Added above files. | |
3395 | * Makefile.in: Rebuilt. | |
3396 | ||
3397 | 2000-04-11 Warren Levy <warrenl@cygnus.com> | |
3398 | ||
3399 | * java/awt/AWTError.java: New file. | |
3400 | * java/awt/AWTEvent.java: New file. | |
3401 | * java/awt/AWTException.java: New file. | |
3402 | * java/awt/ActiveEvent.java: New file. | |
3403 | * java/awt/Adjustable.java: New file. | |
3404 | * java/awt/BorderLayout.java: New file. | |
3405 | * java/awt/Color.java: New file. | |
3406 | * java/awt/Component.java: New file. | |
3407 | * java/awt/Container.java: New file. | |
3408 | * java/awt/Dimension.java: New file. | |
3409 | * java/awt/Event.java: New file. | |
3410 | * java/awt/Font.java: New file. | |
3411 | * java/awt/Frame.java: New file. | |
3412 | * java/awt/Graphics.java: New file. | |
3413 | * java/awt/IllegalComponentStateException.java: New file. | |
3414 | * java/awt/Image.java: New file. | |
3415 | * java/awt/ItemSelectable.java: New file. | |
3416 | * java/awt/LayoutManager.java: New file. | |
3417 | * java/awt/LayoutManager2.java: New file. | |
3418 | * java/awt/Menu.java: New file. | |
3419 | * java/awt/MenuBar.java: New file. | |
3420 | * java/awt/MenuComponent.java: New file. | |
3421 | * java/awt/MenuContainer.java: New file. | |
3422 | * java/awt/MenuItem.java: New file. | |
3423 | * java/awt/Paint.java: New file. | |
3424 | * java/awt/PaintContext.java: New file. | |
3425 | * java/awt/Point.java: New file. | |
3426 | * java/awt/Rectangle.java: New file. | |
3427 | * java/awt/Shape.java: New file. | |
3428 | * java/awt/TextArea.java: New file. | |
3429 | * java/awt/TextComponent.java: New file. | |
3430 | * java/awt/Toolkit.java: New file. | |
3431 | * java/awt/Transparency.java: New file. | |
3432 | * java/awt/Window.java: New file. | |
3433 | * java/awt/natToolkit.cc: New file. | |
3434 | * java/awt/event/AWTEventListener.java: New file. | |
3435 | * java/awt/event/ActionEvent.java: New file. | |
3436 | * java/awt/event/ActionListener.java: New file. | |
3437 | * java/awt/event/AdjustmentEvent.java: New file. | |
3438 | * java/awt/event/AdjustmentListener.java: New file. | |
3439 | * java/awt/event/ComponentAdapter.java: New file. | |
3440 | * java/awt/event/ComponentEvent.java: New file. | |
3441 | * java/awt/event/ComponentListener.java: New file. | |
3442 | * java/awt/event/ContainerAdapter.java: New file. | |
3443 | * java/awt/event/ContainerEvent.java: New file. | |
3444 | * java/awt/event/ContainerListener.java: New file. | |
3445 | * java/awt/event/FocusAdapter.java: New file. | |
3446 | * java/awt/event/FocusEvent.java: New file. | |
3447 | * java/awt/event/FocusListener.java: New file. | |
3448 | * java/awt/event/InputEvent.java: New file. | |
3449 | * java/awt/event/InputMethodEvent.java: New file. | |
3450 | * java/awt/event/InputMethodListener.java: New file. | |
3451 | * java/awt/event/InvocationEvent.java: New file. | |
3452 | * java/awt/event/ItemEvent.java: New file. | |
3453 | * java/awt/event/ItemListener.java: New file. | |
3454 | * java/awt/event/KeyAdapter.java: New file. | |
3455 | * java/awt/event/KeyEvent.java: New file. | |
3456 | * java/awt/event/KeyListener.java: New file. | |
3457 | * java/awt/event/MouseAdapter.java: New file. | |
3458 | * java/awt/event/MouseEvent.java: New file. | |
3459 | * java/awt/event/MouseListener.java: New file. | |
3460 | * java/awt/event/MouseMotionAdapter.java: New file. | |
3461 | * java/awt/event/MouseMotionListener.java: New file. | |
3462 | * java/awt/event/PaintEvent.java: New file. | |
3463 | * java/awt/event/TextEvent.java: New file. | |
3464 | * java/awt/event/TextListener.java: New file. | |
3465 | * java/awt/event/WindowAdapter.java: New file. | |
3466 | * java/awt/event/WindowEvent.java: New file. | |
3467 | * java/awt/event/WindowListener.java: New file. | |
3468 | * java/awt/geom/Dimension2D.java: New file. | |
3469 | * java/awt/geom/Point2D.java: New file. | |
3470 | * java/awt/peer/ComponentPeer.java: New file. | |
3471 | * java/awt/peer/ContainerPeer.java: New file. | |
3472 | * java/awt/peer/FramePeer.java: New file. | |
3473 | * java/awt/peer/WindowPeer.java: New file. | |
3474 | * java/util/Collection.java: New file. | |
3475 | * java/util/Comparator.java: New file. | |
3476 | * java/util/Iterator.java: New file. | |
3477 | * java/util/List.java: New file. | |
3478 | * java/util/ListIterator.java: New file. | |
3479 | * Makefile.am: Added above files. | |
3480 | * Makefile.in: Rebuilt. | |
3481 | ||
3482 | 2000-04-10 Warren Levy <warrenl@cygnus.com> | |
3483 | ||
3484 | * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright. | |
3485 | * java/lang/FirstThread.java: Ditto. | |
3486 | * java/lang/StringBuffer.java: Ditto. | |
3487 | * mauve-libgcj: Turned on java.math, java.sql and java.security tests. | |
3488 | ||
3489 | * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14. | |
3490 | Special case handled in java.math.BigInteger. | |
3491 | * java/math/BigInteger.java (divide): Handle the special case when | |
3492 | dividing by 1 and the high bit of the dividend is set. | |
3493 | (setShiftRight): Handle case when count == 0. | |
3494 | ||
3495 | 2000-04-05 Andrew Haley <aph@cygnus.com> | |
3496 | ||
3497 | * java/net/URL.java (setURLStreamHandler): Make "file" protocol a | |
3498 | special case. | |
3499 | ||
3500 | 2000-04-05 Andrew Haley <aph@cygnus.com> | |
3501 | ||
3502 | * sysdep/ia64.c (rse_address_add): Delete. | |
3503 | (IS_NaT_COLLECTION_ADDR): Delete. | |
3504 | (ia64_backtrace_helper): check for null unwind_info. | |
3505 | ||
3506 | * sysdep/ia64-frame.h: add calc_caller_bsp. | |
3507 | ||
3508 | * java/lang/natThrowable.cc (printRawStackTrace): Flush | |
3509 | PrintWriter. | |
3510 | ||
3511 | * prims.cc (_Jv_divI): Use _Jv_ThrowSignal. | |
3512 | (_Jv_remI): Likewise. | |
3513 | (_Jv_divJ): Likewise. | |
3514 | (_Jv_remJ): Likewise. | |
3515 | ||
3516 | * interpret.cc (continue1): Use divide subroutines to guarantee | |
3517 | correct Java standard behaviour. | |
3518 | Floating-point division should not abort; make it so. | |
3519 | ||
3520 | 2000-03-29 Tom Tromey <tromey@cygnus.com> | |
3521 | ||
3522 | * configure: Rebuilt. | |
3523 | * configure.in: Test against `libgcj_sjlj', not | |
3524 | `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES | |
3525 | to be set even when using sjlj. | |
3526 | ||
3527 | 2000-03-24 Andrew Haley <aph@cygnus.com> | |
3528 | ||
3529 | * Makefile.am: Add file addr2name.awk. | |
3530 | * Makefile.in: Rebuilt. | |
3531 | * addr2name.awk: New file. | |
3532 | * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name | |
3533 | lookups on ia64. | |
3534 | * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a | |
3535 | blank line. | |
3536 | ||
3537 | 2000-03-22 Andrew Haley <aph@cygnus.com> | |
3538 | ||
3539 | * configure.host: Add -funwind-tables for IA64. | |
3540 | * Makefile.am (c_source_files): Add SYSDEP_SORCES. | |
3541 | * Makefile.in: Rebuilt. | |
3542 | * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case. | |
3543 | * sysdep/ia64.c: New file. | |
3544 | * sysdep/ia64-frame.h: New file. | |
3545 | * configure.in: Add sysdep/ia64.c for ia64. | |
3546 | * configure: Rebuilt. | |
3547 | ||
3548 | 2000-03-17 Andrew Haley <aph@cygnus.com> | |
3549 | ||
3550 | * java/lang/natString.cc: Remove `register' keyword. | |
3551 | interpret.cc: ditto. | |
3552 | ||
3553 | 2000-03-16 Andrew Haley <aph@cygnus.com> | |
3554 | ||
3555 | * configure.host (ia64): Enable interpreter. | |
3556 | ||
3557 | 2000-03-14 Hans Boehm <boehm@acm.org> | |
3558 | ||
3559 | * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially. | |
3560 | ||
6c80c45e TT |
3561 | 2000-03-14 Andrew Haley <aph@cygnus.com> |
3562 | ||
3563 | * include/default-signal.h (MAKE_THROW_FRAME): Add arg | |
3564 | `_exception'. | |
3565 | ||
3566 | 2000-03-10 Andrew Haley <aph@cygnus.com> | |
3567 | ||
3568 | * java/lang/ieeefp.h: Import latest version from fdlibm. | |
3569 | ||
3570 | 2000-03-14 Andrew Haley <aph@cygnus.com> | |
3571 | ||
3572 | * prims.cc (_Jv_ThrowSignal): New function. | |
3573 | (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME. | |
3574 | (catch_fpe): Ditto. | |
3575 | * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto | |
3576 | * include/i386-signal.h (MAKE_THROW_FRAME): Ditto. | |
3577 | * include/ppc-signal.h: New file. | |
3578 | ||
fc5b2138 BM |
3579 | 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz> |
3580 | ||
3581 | * java/lang/Thread.java: Declare `data' as Object, not RawData. | |
3582 | * java/lang/natThread.java (initialize_native): Cast `data' to | |
3583 | jobject. | |
3584 | * gnu/gcj/RawData.java: Clarify documentation. | |
3585 | ||
c1f76317 BM |
3586 | From Gregory R. Warnes <warnes@biostat.washington.edu>: |
3587 | * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null | |
3588 | `jarFile', not `jarFileURL'. | |
3589 | ||
3951562d AH |
3590 | 2000-05-15 Andrew Haley <aph@cygnus.com> |
3591 | ||
3592 | * include/ppc-signal.h: New file. | |
3593 | ||
839ba6c8 TT |
3594 | 2000-05-11 Tom Tromey <tromey@cygnus.com> |
3595 | ||
3596 | * java/util/zip/ZipInputStream.java (getNextEntry): When reading | |
3597 | file headers, don't include `size' in the skip call. | |
3598 | ||
fe517fb2 BM |
3599 | 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz> |
3600 | ||
3601 | * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly. | |
3602 | Avoid arrayCopy() call where possible. Update `count' _after_ calling | |
3603 | arrayCopy(). | |
3604 | (replace): Reimplemented. Fix javadoc. | |
3605 | (reverse): Call ensureCapacity_unsynchronized(). | |
3606 | (StringBuffer (String)): Use DEFAULT_CAPACITY. | |
ac83e16b BM |
3607 | |
3608 | (replace): Calculate length for arraycopy() correctly. | |
fe517fb2 | 3609 | |
2238de65 TT |
3610 | 2000-05-09 Tom Tromey <tromey@cygnus.com> |
3611 | ||
3612 | * java/lang/StringBuffer.java (toString): Don't mark buffer as | |
3613 | shared. | |
3614 | (insert(int,char[],int,int): New method. | |
3615 | (delete): New method from Classpath. | |
3616 | (deleteCharAt): Likewise. | |
3617 | (substring): Likewise. | |
3618 | (shared): No longer private. | |
3619 | Added JavaDoc comments from Classpath. | |
3620 | * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is | |
3621 | shared. | |
3622 | ||
89b6698a TT |
3623 | 2000-05-07 Tom Tromey <tromey@cygnus.com> |
3624 | ||
3625 | * Makefile.in: Rebuilt. | |
3626 | * Makefile.am (LIBLINK): New macro. | |
3627 | (libgcj_la_LINK): Use it. | |
3628 | (libgcjawt_la_LINK): Likewise. | |
3629 | ||
fad163ed TT |
3630 | 2000-05-06 Tom Tromey <tromey@cygnus.com> |
3631 | ||
3632 | * Makefile.in: Rebuilt. | |
3633 | * Makefile.am (libgcj.zip): Don't pass -L to javac. | |
3634 | ||
327f2480 TT |
3635 | 2000-05-05 Tom Tromey <tromey@cygnus.com> |
3636 | ||
3637 | Fix for PR libgcj/220: | |
3638 | * Makefile.in: Rebuilt. | |
3639 | * Makefile.am (gij_LDFLAGS): Don't use libstdc++. | |
3640 | (jv_convert_LDFLAGS): Likewise. | |
3641 | (libgcj_la_LDFLAGS): Likewise. | |
3642 | (GCJLINK): New macro. | |
3643 | (jv_convert_LINK): Use it. | |
3644 | (gij_LINK): Likewise. | |
3645 | (libgcj_la_LINK): New macro. | |
3646 | (libgcjawt_la_LINK): Likewise. | |
3647 | ||
a52dee2f TT |
3648 | 2000-05-04 Tom Tromey <tromey@cygnus.com> |
3649 | ||
3650 | * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData | |
3651 | field. | |
3652 | * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not | |
3653 | `0x0008'. | |
3654 | Include Modifier.h. | |
3655 | ||
9d4c2148 BM |
3656 | 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz> |
3657 | ||
3658 | * java/lang/natClass.cc (isInstance): Use __builtin_expect. | |
3659 | (_Jv_IsAssignableFrom): Ditto. | |
3660 | (_Jv_IsInstanceOf): Ditto. | |
3661 | (_Jv_CheckCast): Ditto. | |
3662 | (_Jv_CheckArrayStore): Ditto. | |
3663 | * java/lang/Class.h (_Jv_InitClass): Ditto. | |
3664 | * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false', | |
3665 | not `0'. | |
3666 | (notify): Ditto. | |
3667 | (notifyAll): Ditto. | |
3668 | (wait): Ditto. | |
3669 | (_Jv_MonitorExit): Ditto. | |
3670 | * boehm.cc (_Jv_MarkObj): Ditto. | |
3671 | (_Jv_MarkObj): Ditto. | |
3672 | (_Jv_MarkArray): Ditto. | |
3673 | * prims.cc (_Jv_AllocObject): Ditto. | |
3674 | (_Jv_NewObjectArray): Ditto. | |
3675 | (_Jv_NewPrimArray): Ditto. | |
3676 | (_Jv_Malloc): Ditto. | |
3677 | (_Jv_Realloc): Ditto. | |
3678 | (_Jv_MallocUnchecked): Ditto. | |
3679 | (_Jv_divI): Ditto. | |
3680 | (_Jv_remI): Ditto. | |
3681 | (_Jv_divJ): Ditto. | |
3682 | (_Jv_remJ): Ditto. | |
3683 | ||
f70b7142 TT |
3684 | 2000-05-04 Tom Tromey <tromey@cygnus.com> |
3685 | ||
3686 | * java/util/Locale.java (Locale): Don't explicitly check for | |
3687 | null. | |
3688 | * java/util/Hashtable.java (containsKey): Don't explicitly check | |
3689 | for null. | |
3690 | (get): Likewise. | |
3691 | * java/util/BitSet.java (and, or, xor): Don't explicitly check for | |
3692 | null. | |
3693 | * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check | |
3694 | for null. | |
3695 | * java/text/StringCharacterIterator.java | |
3696 | (StringCharacterIterator): Don't check for null. | |
3697 | * java/text/ChoiceFormat.java (setChoices): Don't explicitly check | |
3698 | for null pointer. | |
3699 | * java/net/MulticastSocket.java (joinGroup): Don't explicitly | |
3700 | check for null pointer. | |
3701 | (leaveGroup): Likewise. | |
3702 | * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous | |
3703 | comment. | |
3704 | (setData): Likewise. | |
3705 | * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check | |
3706 | for `p==null'. | |
3707 | ||
1f577886 JJ |
3708 | 2000-04-28 Jakub Jelinek <jakub@redhat.com> |
3709 | ||
3710 | * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK, | |
3711 | gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS. | |
3712 | (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds. | |
3713 | (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to | |
3714 | -rpath for in-gcc builds. | |
3715 | * Makefile.in: Rebuilt. | |
3716 | ||
f9f70f2d TT |
3717 | 2000-04-28 Tom Tromey <tromey@cygnus.com> |
3718 | ||
3719 | * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions. | |
3720 | Fix for PR gcj/218. | |
3721 | ||
065ccab3 BM |
3722 | 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz> |
3723 | ||
3724 | * libjava/java/lang/String.java (toString): Remove `final' hack. | |
3725 | ||
40f4ae32 TT |
3726 | 2000-04-05 Tom Tromey <tromey@cygnus.com> |
3727 | ||
3728 | Runtime support for PR gcj/2: | |
3729 | * prims.cc (_Jv_ThrowNullPointerException): New function. | |
3730 | * include/jvm.h (_Jv_ThrowNullPointerException): Declare. | |
3731 | ||
af4464eb BM |
3732 | 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz> |
3733 | ||
3734 | * prims.cc (_Jv_NewObjectArray): Fix typo. | |
3735 | ||
09acb3e1 TT |
3736 | 2000-04-26 Tom Tromey <tromey@cygnus.com> |
3737 | ||
3738 | * Makefile.in: Rebuilt. | |
3739 | * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions. | |
3740 | ||
448415dc JS |
3741 | 2000-04-24 Jeff Sturm <jsturm@sigma6.com> |
3742 | ||
3743 | * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before | |
3744 | calling main. | |
3745 | ||
1143c0a0 AG |
3746 | 2000-04-22 Anthony Green <green@cygnus.com> |
3747 | ||
3748 | * include/jvm.h (__builtin_expect): Define as unused for now. | |
3749 | * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect. | |
3750 | (notify): Ditto. | |
3751 | (notifyAll): Ditto. | |
3752 | (wait): Ditto. | |
3753 | (_Jv_MonitorExit): Ditto. | |
3754 | * boehm.cc (_Jv_MarkObj): Ditto. | |
3755 | (_Jv_MarkObj): Ditto. | |
3756 | (_Jv_MarkArray): Ditto. | |
3757 | (_Jv_AllocBytes): Ditto. | |
3758 | * prims.cc (_Jv_AllocObject): Ditto. | |
3759 | (_Jv_NewObjectArray): Ditto. | |
3760 | (_Jv_NewPrimArray): Ditto. | |
3761 | (_Jv_Malloc): Ditto. | |
3762 | (_Jv_Realloc): Ditto. | |
3763 | (_Jv_MallocUnchecked): Ditto. | |
3764 | (_Jv_divI): Ditto. | |
3765 | (_Jv_remI): Ditto. | |
3766 | (_Jv_divJ): Ditto. | |
3767 | (_Jv_remJ): Ditto. | |
3768 | ||
3769 | * include/Makefile.in: Rebuilt. | |
3770 | * include/Makefile.am (include_HEADERS): Add jvmpi.h. | |
3771 | ||
ab8d774e TT |
3772 | 2000-04-21 Tom Tromey <tromey@cygnus.com> |
3773 | ||
6cd167e1 TT |
3774 | * java/io/PipedInputStream.java, java/io/PipedOutputStream.java: |
3775 | Yet another new version from Classpath. | |
3776 | ||
7234f9bc TT |
3777 | Fix for PR libgcj/15: |
3778 | * java/util/natGregorianCalendar.cc (_REENTRANT, | |
3779 | _POSIX_PTHREAD_SEMANTICS): Don't define. | |
3780 | * java/net/natInetAddress.cc (_REENTRANT): Don't define. | |
3781 | * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): | |
3782 | Don't define. | |
3783 | * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't | |
3784 | define. | |
3785 | * configure: Rebuilt. | |
3786 | * configure.in: If using POSIX threads, define _REENTRANT if | |
3787 | needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define | |
3788 | GETHOSTBYNAME_R_NEEDS_REENTRANT. | |
3789 | ||
051d082b TT |
3790 | * java/io/PipedInputStream.java, java/io/PipedReader.java, |
3791 | java/io/PipedOutputStream.java, java/io/PipedWriter.java: New | |
3792 | version from Classpath. | |
3793 | ||
93bc735f TT |
3794 | Fix for PR libgcj/213: |
3795 | * Makefile.in: Rebuilt. | |
3796 | * Makefile.am (gij_SOURCES): Added gij.cc. | |
3797 | (EXTRA_gij_SOURCES): Removed. | |
3798 | (gij_LDADD): Removed gij.lo. | |
3799 | (gij_DEPENDENCIES): Likewise. | |
3800 | ($(gij_OBJECTS)): Depend on nat_headers. | |
3801 | ||
ab8d774e TT |
3802 | * gnu/gcj/protocol/file/Handler.java (openConnection): Use |
3803 | `setURL', not `url.set'. | |
3804 | ||
6e84eab8 TT |
3805 | 2000-04-20 Tom Tromey <tromey@cygnus.com> |
3806 | ||
d3474943 TT |
3807 | Fix for PR java.io/204: |
3808 | * java/io/PipedInputStream.java, java/io/PipedReader.java, | |
3809 | java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported | |
3810 | from Classpath. | |
3811 | ||
18fcc496 TT |
3812 | Fix for PR libgcj/212: |
3813 | * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions. | |
3814 | * include/jvm.h (_Jv_word, _Jv_word2): Define. | |
3815 | * java/lang/Class.h (_Jv_word): Declare. | |
3816 | ||
6e84eab8 TT |
3817 | * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'. |
3818 | ||
af98124e TT |
3819 | 2000-04-19 Tom Tromey <tromey@cygnus.com> |
3820 | ||
3821 | * jni.cc (_Jv_JNI_FindClass): Use system class loader if class | |
3822 | doesn't have a loader. | |
3823 | ||
4824d1bb BM |
3824 | 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz> |
3825 | ||
3826 | * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for | |
3827 | MAYBE_MARK to ptr_t, for compatibility with new GC version. | |
3828 | ||
8bfecb84 BM |
3829 | 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz> |
3830 | ||
3831 | * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR | |
3832 | libgcj/202. | |
3833 | (available): Initialize `where' to prevent bogus compiler warning. | |
3834 | ||
50b99cc8 TT |
3835 | 2000-04-12 Tom Tromey <tromey@cygnus.com> |
3836 | ||
cc309dd5 TT |
3837 | * java/lang/natString.cc (intern): Temporarily disable finalizer |
3838 | registration. | |
3839 | ||
50b99cc8 TT |
3840 | * java/lang/natString.cc (unintern): Added `obj' argument. |
3841 | (intern): Register finalizer for string. | |
3842 | * java/lang/String.java (unintern): Now static; added obj | |
3843 | argument. | |
3844 | ||
c23c855f TT |
3845 | 2000-04-11 Tom Tromey <tromey@cygnus.com> |
3846 | ||
3847 | * java/util/Vector.java (VectorEnumeration): Now `final'. | |
3848 | * java/util/Hashtable.java (HashtableEntry): Now `final'. | |
3849 | (HashtableEnumeration): Likewise. | |
3850 | * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'. | |
3851 | * java/text/RuleBasedCollator.java (RBCElement): Now `final'. | |
3852 | ||
d0123c54 WL |
3853 | 2000-04-10 Warren Levy <warrenl@cygnus.com> |
3854 | ||
3855 | * java/io/ObjectStreamException.java: New file. | |
3856 | * java/io/OptionalDataException.java: New file. | |
3857 | * java/io/StreamCorruptedException.java: New file. | |
3858 | * java/math/BigDecimal.java: New file. | |
3859 | * java/sql/CallableStatement.java: New file. | |
3860 | * java/sql/Connection.java: New file. | |
3861 | * java/sql/DataTruncation.java: New file. | |
3862 | * java/sql/DatabaseMetaData.java: New file. | |
3863 | * java/sql/Date.java: New file. | |
3864 | * java/sql/Driver.java: New file. | |
3865 | * java/sql/DriverManager.java: New file. | |
3866 | * java/sql/DriverPropertyInfo.java: New file. | |
3867 | * java/sql/PreparedStatement.java: New file. | |
3868 | * java/sql/ResultSet.java: New file. | |
3869 | * java/sql/ResultSetMetaData.java: New file. | |
3870 | * java/sql/SQLException.java: New file. | |
3871 | * java/sql/SQLWarning.java: New file. | |
3872 | * java/sql/Statement.java: New file. | |
3873 | * java/sql/Time.java: New file. | |
3874 | * java/sql/Timestamp.java: New file. | |
3875 | * java/sql/Types.java: New file. | |
3876 | * Makefile.am: Added above new files. | |
3877 | * Makefile.in: Rebuilt. | |
3878 | ||
3879 | * mauve-libgcj: Turned on java.math, java.sql and java.security tests. | |
3880 | * java/net/MulticastSocket.java (MulticastSocket): Pass values a la | |
3881 | DatagramSocket constructor instead of null. | |
3882 | ||
e472b4f9 AG |
3883 | 2000-04-08 Anthony Green <green@cygnus.com> |
3884 | ||
3885 | * include/posix-threads.h (_Jv_MutexUnlock): Replace | |
3886 | _JV_NOT_OWNER. | |
3887 | ||
568fe067 AG |
3888 | 2000-04-08 Anthony Green <green@cygnus.com> |
3889 | ||
3890 | * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h. | |
3891 | (_Jv_MutexUnlock): Ditto. | |
3892 | * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc. | |
3893 | (_Jv_MutexUnlock): Ditto. | |
3894 | ||
bdf2ced9 AG |
3895 | 2000-04-08 Anthony Green <green@cygnus.com> |
3896 | ||
3897 | * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max. | |
3898 | (ensureCapacity_unsynchronized): New private method. | |
3899 | (append): Use ensureCapacity_unsynchronized. | |
3900 | ||
4eaf5996 TT |
3901 | 2000-04-08 Tom Tromey <tromey@cygnus.com> |
3902 | ||
3903 | * Makefile.in: Rebuilt. | |
3904 | * Makefile.am (awt_java_source_files): Added new files. | |
3905 | * java/awt/IllegalComponentStateException.java: New file. | |
3906 | * java/awt/ItemSelectable.java: New file. | |
3907 | * java/awt/event/WindowEvent.java: Finished. | |
3908 | * java/awt/event/TextEvent.java: Finished. | |
3909 | * java/awt/event/ContainerEvent.java: New file. | |
3910 | * java/awt/Component.java (getX, getY): New methods. | |
3911 | * java/awt/event/PaintEvent.java: New file. | |
3912 | * java/awt/event/MouseEvent.java: New file. | |
3913 | * java/awt/ActiveEvent.java: New file. | |
3914 | * java/awt/event/KeyEvent.java: Finished. | |
3915 | * java/awt/event/ItemEvent.java: New file. | |
3916 | * java/awt/Adjustable.java: New file. | |
3917 | * java/awt/event/InputMethodEvent.java: New file. | |
3918 | * java/awt/event/InputEvent.java: Finished. | |
3919 | * java/awt/event/FocusEvent.java: New file. | |
3920 | * java/awt/event/MouseMotionAdapter.java: New file. | |
3921 | * java/awt/event/MouseAdapter.java: New file. | |
3922 | * java/awt/event/KeyAdapter.java: New file. | |
3923 | * java/awt/event/FocusAdapter.java: New file. | |
3924 | * java/awt/event/ContainerAdapter.java: New file. | |
3925 | * java/awt/event/ComponentEvent.java: Finished. | |
3926 | * java/awt/event/AdjustmentEvent.java: New file. | |
3927 | * java/awt/event/ComponentAdapter.java: New file. | |
3928 | * java/awt/event/ActionEvent.java: Finished. | |
3929 | * java/awt/event/MouseMotionListener.java: New file. | |
3930 | * java/awt/event/MouseListener.java: New file. | |
3931 | * java/awt/event/ItemListener.java: New file. | |
3932 | * java/awt/event/InputMethodListener.java: New file. | |
3933 | * java/awt/event/ContainerListener.java: New file. | |
3934 | * java/awt/event/FocusListener.java: New file. | |
3935 | * java/awt/event/ComponentListener.java: New file. | |
3936 | * java/awt/event/AWTEventListener.java: New file. | |
3937 | * java/awt/event/AdjustmentListener.java: New file. | |
3938 | ||
3bd835f7 AG |
3939 | 2000-04-08 Anthony Green <green@cygnus.com> |
3940 | ||
3941 | * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null | |
3942 | check when we have to. | |
3943 | ||
3944 | * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>* | |
3945 | x) as `inline'. | |
3946 | ||
3947 | * java/util/StringTokenizer.java: Minor optimization. Eliminates | |
3948 | one method call. | |
3949 | ||
3950 | * java/util/Vector.java (VectorEnumeration.nextElement): Manually | |
3951 | inline hasMoreElements. | |
3952 | ||
24969f07 TT |
3953 | 2000-04-05 Tom Tromey <tromey@cygnus.com> |
3954 | ||
3955 | * configure: Rebuilt. | |
3956 | * configure.in: Recognize --enable-java-awt. | |
3957 | (AWT): New conditional. | |
3958 | * Makefile.in: Rebuilt. | |
3959 | * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if | |
3960 | requested. | |
3961 | (libgcjawt_la_SOURCES): New macro. | |
3962 | (EXTRA_libgcjawt_la_SOURCES): Likewise. | |
3963 | (libgcjawt_la_DEPENDENCIES): Likewise. | |
3964 | (libgcjawt_la_LIBADD): Likewise. | |
3965 | (libgcjawt_la_LDFLAGS): Likewise. | |
3966 | (libgcj.zip): Depend on cond_java_awt_source_files | |
3967 | (cond_awt_java_source_files): New macro. | |
3968 | (MOSTLYCLEANFILES): Added awto_files. | |
3969 | (awto_files): New macro. Use where javao_files used. | |
3970 | (nat_headers): Use cond_awt_java_source_files. | |
3971 | ||
69c0caa1 TT |
3972 | 2000-04-04 Tom Tromey <tromey@cygnus.com> |
3973 | ||
3974 | * Makefile.in: Rebuilt. | |
3975 | * Makefile.am (awt_java_source_files): Added AWTException.java. | |
3976 | * java/awt/AWTException.java: New file. | |
3977 | ||
0c2534d9 TT |
3978 | 2000-04-03 Tom Tromey <tromey@cygnus.com> |
3979 | ||
6719cc92 TT |
3980 | * include/jvm.h (_Jv_GetArrayElementFromElementType): More |
3981 | commentary from Alex. | |
3982 | ||
0c2534d9 TT |
3983 | * Makefile.in: Rebuilt. |
3984 | * Makefile.am ($(javao_files)): Depend on libgcj.zip. | |
3985 | From H.J. Lu. | |
3986 | ||
54c2f04b AG |
3987 | Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> |
3988 | ||
3989 | * configure: Rebuilt. | |
3990 | * configure.in: Add --disable-jvmpi. | |
3991 | * include/config.h.in: Rebuilt. | |
3992 | * acconfig.h: Add ENABLE_JVMPI. | |
3993 | ||
3994 | * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC. | |
3995 | (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define. | |
3996 | (_Jv_JVMPI_Notify_THREAD_END): New define. | |
3997 | (_Jv_JVMPI_Notify_THREAD_END): New define. | |
3998 | * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare. | |
3999 | (_Jv_JVMPI_Notify_THREAD_END): Declare. | |
4000 | (_Jv_JVMPI_Notify_THREAD_END): Declare. | |
4001 | ||
4002 | * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation | |
4003 | events. | |
4004 | ||
4005 | * java/lang/natThread.cc: Include JVMPI headers if necessary. | |
4006 | (finish_): Generate JVMPI thread end events. | |
4007 | (run_): Generate JVMPI thread start events. | |
4008 | * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any | |
4009 | preloaded JNI library. | |
4010 | Include JVMPI headers if necessary. | |
4011 | (run): Generate JVMPI thread start events. | |
4012 | ||
4013 | * boehm.cc: Define GC_disable and GC_enable. | |
4014 | (_Jv_DisableGC): New function. | |
4015 | (_Jv_EnableGC): New function. | |
4016 | (disable_gc_mutex): Declare. | |
4017 | * nogc.cc (_Jv_DisableGC): New function. | |
4018 | (_Jv_EnableGC): New function. | |
4019 | ||
4020 | * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests. | |
4021 | (_Jv_JVMPI_Interface): Define. | |
4022 | (jvmpiEnableEvent): New function. | |
4023 | (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface. | |
4024 | ||
4025 | * include/jvmpi.h: New file. | |
4026 | ||
b834f1fa BM |
4027 | 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz> |
4028 | ||
4029 | * Makefile.in: New #defines and friends for Thread.h. | |
8e4b9c97 | 4030 | * Makefile.am: Ditto. |
b834f1fa BM |
4031 | * posix-threads.cc: (struct starter): Remove `object'. |
4032 | (_Jv_CondWait): Use interruptable condition variables and new | |
4033 | recursive mutexes. New return codes on interrupt or non-ownership | |
4034 | of mutex. | |
4035 | (_Jv_CondNotify): Ditto. | |
4036 | (_Jv_CondNotifyAll): Ditto. | |
4037 | (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt | |
4038 | the target thread by signaling its wait condition. | |
4039 | (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct, | |
4040 | not the starter struct. Initialize wait_mutex and wait_cond. | |
4041 | (_Jv_MutexLock): New recursive mutex implementation. Moved from | |
4042 | posix-threads.h. | |
4043 | (_Jv_MutexUnlock): Ditto. | |
4044 | (really_start): Set info->data->thread from pthread_self() to work | |
4045 | around a race condition. Destroy wait_mutex and wait_cond when run() | |
4046 | returns. | |
4047 | * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded | |
4048 | `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is | |
4049 | set. | |
4050 | startable_flag: New private field. | |
4051 | (Thread): Initialize `startable_flag'. | |
4052 | (toString): Check for null thread group. | |
4053 | * java/lang/natThread.cc: (struct natThread): New fields | |
4054 | `join_mutex', `join_cond'. Removed fields `joiner', `next'. | |
4055 | (class locker): Removed. | |
4056 | (initialize_native): Initialize `join_cond' and `join_mutex'. | |
4057 | (interrupt): Now just calls _Jv_ThreadInterrupt(). | |
4058 | (join): Simplified. Just wait on the target thread's join condition. | |
4059 | (finish_): Remove join list code. Unset thread group. Signal | |
4060 | potential joiners by notifying the dying threads join_cond. | |
4061 | (start): Check for illegal restarts. | |
4062 | * java/lang/natObject.cc: Check for return value of _Jv_CondWait and | |
4063 | act appropriatly. | |
4064 | * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related | |
4065 | #defines and #ifdefs. | |
4066 | (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond', | |
4067 | `wait_mutex', `next'. | |
4068 | (struct _Jv_ConditionVariable_t): Define as a struct instead of | |
4069 | directly mapping to pthread_cond_t. | |
4070 | (struct _Jv_Mutex_t): New recursive implementation. | |
4071 | (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check. | |
4072 | _Jv_HaveCondDestroy: Never define this for posix-threads. | |
4073 | (_Jv_CondNotify): Remove inline implementation(s), prototype instead. | |
4074 | (_Jv_CondNotifyAll): Ditto. | |
4075 | (_Jv_MutexLock): Ditto. | |
4076 | (_Jv_MutexUnlock): Ditto. | |
4077 | (_Jv_MutexInit): Changed to reflect new mutex implementation. | |
4078 | (_Jv_MutexDestroy): Ditto. | |
4079 | (_Jv_CondDestroy): Removed. | |
4080 | (_Jv_PthreadGetMutex): Removed. | |
4081 | * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an | |
4082 | error. Add a FIXME about this. | |
4083 | (_Jv_CondNotifyAll): Ditto. | |
4084 | * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess | |
4085 | _JV_NOT_OWNER on other errors. Add FIXME. | |
4086 | ||
4e2d1dbd TT |
4087 | 2000-03-26 Tom Tromey <tromey@cygnus.com> |
4088 | ||
4089 | * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception | |
4090 | set, throw it. | |
4091 | (call): Don't throw exception here. | |
4092 | ||
99444711 TT |
4093 | 2000-03-26 Tom Tromey <tromey@cygnus.com> |
4094 | ||
4095 | * java/lang/mprec.h: Use SIZEOF_VOID_P. | |
4096 | * interpret.cc: Use SIZEOF_VOID_P. | |
4097 | * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P. | |
4098 | (_Jv_loadLong): Likewise. | |
4099 | (_Jv_storeDouble): Likewise. | |
4100 | * configure: Rebuilt. | |
4101 | * configure.in: Check size of void*. | |
4102 | ||
4103 | * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE. | |
4104 | ||
4105 | 2000-03-26 Hans Boehm <boehm@acm.org> | |
4106 | ||
4107 | * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong, | |
4108 | _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit | |
4109 | machine. | |
4110 | * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or | |
4111 | __IEEE_LITTLE_ENDIAN appropriately on IA64. | |
4112 | * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine. | |
4113 | * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit | |
4114 | case. | |
4115 | * resolve.cc (FFI_PREP_RAW_CLOSURE): New define. | |
4116 | (FFI_RAW_SIZE): Likewise. | |
4117 | (_Jv_InterpMethod::ncode): Use them. | |
4118 | * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL, | |
4119 | STORED): Define differently on a 64 bit machine. | |
4120 | (continue1): Use ffi_java_raw_call when appropriate. | |
4121 | ||
552cc5b5 WL |
4122 | 2000-03-24 Warren Levy <warrenl@cygnus.com> |
4123 | ||
4124 | * java/math/BigInteger.java(divide): Handle the special case when | |
4125 | dividing by 1 and the high bit of the dividend is set. | |
4126 | (setShiftRight): Handle case when count == 0. | |
4127 | ||
111393df WL |
4128 | 2000-03-24 Warren Levy <warrenl@cygnus.com> |
4129 | ||
4130 | * java/awt/Font.java(isBold): Fix syntax error. | |
4131 | (isItalic): ditto. | |
4132 | * java/awt/Frame.java(postEvent): ditto. | |
4133 | * java/awt/Menu.java(postEvent): ditto. | |
4134 | * java/awt/MenuBar.java(postEvent): ditto. | |
4135 | * java/awt/Toolkit.java(init): Included a stub. | |
4136 | ||
604de2bd BM |
4137 | 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz> |
4138 | ||
4139 | * java/awt/Event.java: Add all the event type constants. | |
4140 | (Event): Implemented constructors. | |
4141 | (controlDown): Implemented. | |
4142 | (metaDown): Implemented. | |
4143 | (paramString): Stubbed. | |
4144 | (shiftDown): Implemented. | |
4145 | (toString): Implemented. | |
4146 | (translate): Implemented. | |
4147 | ||
a162f9d8 BM |
4148 | 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz> |
4149 | ||
4150 | * java/lang/natClass.cc (isInstance): Initialize `this'. | |
4151 | (isAssignableFrom): Initialize `this' and `klass'. | |
4152 | (_Jv_IsAssignableFrom): If an interface has no idt, it is not | |
4153 | implemented by any loaded class, so return false. | |
afccdd1d | 4154 | * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), |
a09f6118 | 4155 | not Class.isAssignableFrom(). Use JV_CLASS, not getClass(). |
a162f9d8 | 4156 | |
54b43a68 WL |
4157 | 2000-03-19 Warren Levy <warrenl@cygnus.com> |
4158 | ||
4159 | * java/awt/Color.java: Specified java.io for Serializable. | |
4160 | * java/awt/Toolkit.java: Imported java.net.URL. | |
4161 | ||
b6166b4d WL |
4162 | 2000-03-19 Warren Levy <warrenl@cygnus.com> |
4163 | ||
4164 | * java/awt/Color.java: Rewrote to be more memory efficient (& compile). | |
4165 | ||
d05165c3 WL |
4166 | 2000-03-16 Warren Levy <warrenl@cygnus.com> |
4167 | ||
4168 | * java/awt/Color.java: New file. | |
4169 | * java/awt/Graphics.java: New file. | |
4170 | * java/awt/Image.java: New file. | |
4171 | * java/awt/Paint.java: New file. | |
4172 | * java/awt/PaintContext.java: New file. | |
4173 | * java/awt/Transparency.java: New file. | |
4174 | * java/util/Collection.java: New file. | |
4175 | * java/util/Comparator.java: New file. | |
4176 | * java/util/Iterator.java: New file. | |
4177 | * java/util/List.java: New file. | |
4178 | * java/util/ListIterator.java: New file. | |
4179 | * Makefile.am: Added above new files. | |
4180 | * Makefile.in: Rebuilt. | |
4181 | ||
4182 | * java/awt/Font.java (PLAIN): New field. | |
4183 | (BOLD): New field. | |
4184 | (ITALIC): New field. | |
4185 | (ROMAN_BASELINE): New field. | |
4186 | (CENTER_BASELINE): New field. | |
4187 | (HANGING_BASELINE): New field. | |
4188 | (name): New field. | |
4189 | (style): New field. | |
4190 | (size): New field. | |
4191 | (pointSize): New field. | |
4192 | (Font): Implemented constructor. | |
4193 | (isPlain): Implemented method. | |
4194 | (isBold): Implemented method. | |
4195 | (isItalic): Implemented method. | |
4196 | (getName): Implemented method. | |
4197 | (getStyle): Implemented method. | |
4198 | (getSize): Implemented method. | |
4199 | (getSize2D): Implemented method. | |
4200 | (decode): Stubbed. | |
4201 | * java/awt/Frame.java (getFont): Stubbed. | |
4202 | (postEvent): Stubbed. | |
4203 | (remove): Stubbed. | |
4204 | * java/awt/Menu.java (postEvent): Stubbed. | |
4205 | * java/awt/MenuBar.java (getFont): Stubbed. | |
4206 | (postEvent): Stubbed. | |
4207 | * java/awt/Toolkit.java (getImage): Added abstract method. | |
4208 | ||
878885b4 TT |
4209 | 2000-03-15 Tom Tromey <tromey@cygnus.com> |
4210 | ||
4211 | * java/io/natFileDescriptorWin32.cc (winerr): Now static. | |
4212 | ||
4213 | * prims.cc (win32_exception_handler): Reformatted. | |
4214 | ||
4215 | * include/win32-threads.h (_Jv_HaveCondDestroy): New define. | |
4216 | (_Jv_HaveMutexDestroy): Likewise. | |
4217 | ||
4218 | 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk> | |
4219 | ||
4220 | * java/io/natFileDescriptorWin32.cc: New file. | |
4221 | * java/io/natFileWin32.cc: New file. | |
4222 | * java/net/natInetAddress.cc: Added conditional inclusion of | |
4223 | Windows / Winsock headers. | |
4224 | * java/net/natPlainDatagramSocketImpl.cc: Added conditional | |
4225 | inclusion of Windows / Winsock headers. | |
4226 | * java/net/natPlainSocketImpl.cc: Added conditional inclusion of | |
4227 | Windows / Winsock headers. | |
4228 | * include/win32-signal.h: New file. | |
4229 | * include/win32-threads.h: New file. | |
4230 | * win32-threads.cc: New file. | |
4231 | * exception.cc (win32_get_restart_frame): New function. | |
4232 | * prims.cc (win32_exception_handler): New function. | |
4233 | (main_init) Performs Winsock initialisation. | |
4234 | (main_init) Installs exeception handler. | |
4235 | ||
90a883ae TT |
4236 | 2000-03-14 Tom Tromey <tromey@cygnus.com> |
4237 | ||
4238 | * jni.cc (mangled_name): Fixed assertion. | |
4239 | (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument; | |
4240 | turned assert into actual failure. | |
4241 | ||
ea7f51a4 WL |
4242 | 2000-03-09 Warren Levy <warrenl@cygnus.com> |
4243 | ||
4244 | * java/security/Key.java(serialVersionUID): Set to 0 for now. | |
4245 | * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto. | |
4246 | * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto. | |
4247 | ||
8560e497 WL |
4248 | 2000-03-09 Warren Levy <warrenl@cygnus.com> |
4249 | ||
4250 | * java/security/AlgorithmParameterGeneratorSpi.java: New file. | |
4251 | * java/security/DigestException.java: New file. | |
4252 | * java/security/GeneralSecurityException.java: New file. | |
4253 | * java/security/InvalidAlgorithmParameterException.java: New file. | |
4254 | * java/security/InvalidKeyException.java: New file. | |
4255 | * java/security/InvalidParameterException.java: New file. | |
4256 | * java/security/Key.java: New file. | |
4257 | * java/security/KeyException.java: New file. | |
4258 | * java/security/KeyPair.java: New file. | |
4259 | * java/security/KeyPairGenerator.java: New file. | |
4260 | * java/security/KeyPairGeneratorSpi.java: New file. | |
4261 | * java/security/NoSuchProviderException.java: New file. | |
4262 | * java/security/PrivateKey.java: New file. | |
4263 | * java/security/Provider.java: New file. | |
4264 | * java/security/PublicKey.java: New file. | |
4265 | * java/security/SecureRandom.java: New file. | |
4266 | * java/security/Security.java: New file. | |
4267 | * java/security/Signature.java: New file. | |
4268 | * java/security/SignatureException.java: New file. | |
4269 | * java/security/interfaces/DSAKey.java: New file. | |
4270 | * java/security/interfaces/DSAParams.java: New file. | |
4271 | * java/security/interfaces/DSAPrivateKey.java: New file. | |
4272 | * java/security/interfaces/DSAPublicKey.java: New file. | |
4273 | * java/security/interfaces/RSAPrivateCrtKey.java: New file. | |
4274 | * java/security/interfaces/RSAPrivateKey.java: New file. | |
4275 | * java/security/interfaces/RSAPublicKey.java: New file. | |
4276 | * java/security/spec/AlgorithmParameterSpec.java: New file. | |
4277 | * java/security/spec/InvalidKeySpecException.java: New file. | |
4278 | * java/security/spec/InvalidParameterSpecException.java: New file. | |
4279 | * java/security/spec/KeySpec.java: New file. | |
4280 | * java/security/spec/RSAPrivateCrtKeySpec.java: New file. | |
4281 | * java/security/spec/RSAPrivateKeySpec.java: New file. | |
4282 | * java/security/spec/RSAPublicKeySpec.java: New file. | |
4283 | * Makefile.am: Added above java.security files. | |
4284 | * Makefile.in: Rebuilt. | |
4285 | ||
4286 | * java/security/MessageDigest.java: Rewritten. | |
4287 | * java/security/SecureClassLoader.java: Added JDK1.2 comment. | |
4288 | ||
d585552a BM |
4289 | 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz> |
4290 | ||
4291 | * README: Updated. | |
4292 | ||
fb863f62 BM |
4293 | 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz> |
4294 | ||
4295 | * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call | |
4296 | _Jv_PrepareConstantTimeTables. | |
4297 | * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array | |
4298 | classes should have an IDT, so don't return if klass is an array | |
4299 | class. | |
4300 | ||
c500e5ec TT |
4301 | 2000-03-08 Tom Tromey <tromey@cygnus.com> |
4302 | ||
4303 | * java/lang/reflect/natArray.cc (newInstance): Don't allow array | |
4304 | of `void' to be created. | |
4305 | ||
d98729aa WL |
4306 | 2000-03-08 Warren Levy <warrenl@cygnus.com> |
4307 | ||
4308 | * java/math/BigInteger.java(signum): Handle zero properly. | |
4309 | ||
2ba5f774 TT |
4310 | 2000-03-07 Tom Tromey <tromey@cygnus.com> |
4311 | ||
4312 | * All files: Updated copyright information. | |
4313 | * COPYING: New file. | |
4314 | * COPYING.LIB: Removed. | |
4315 | * LIBGCJ_LICENSE: We now use GPL + special exception. | |
4316 | ||
ddf0fc6c BM |
4317 | 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> |
4318 | ||
4319 | * resolve.cc (_Jv_SearchMethodInClass): New function. | |
4320 | (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods. | |
4321 | * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype. | |
4322 | ||
4323 | 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> | |
4324 | ||
4325 | * java/lang/Class.h (union _Jv_IDispatchTable): New declaration. | |
4326 | (struct _Jv_ifaces): New declaration. | |
4327 | JV_CLASS: New macro definition. | |
4328 | (getComponentType): Relocate below isArray() for inlining. | |
4329 | (getModifiers): Declare `inline'. | |
4330 | (getSuperclass): Ditto. | |
4331 | (isArray): Ditto. | |
4332 | (isPrimitive): Ditto. | |
4333 | (_Jv_IsAssignableFrom): New prototype. | |
4334 | (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C" | |
4335 | linkage. | |
4336 | (_Jv_InitClass): Move from natClass.cc. Declare `inline'. | |
4337 | Check for JV_STATE_DONE before invoking initializeClass(). | |
4338 | (_Jv_PrepareConstantTimeTables): New prototype. | |
4339 | (_Jv_GetInterfaces): Ditto. | |
4340 | (_Jv_GenerateITable): Ditto. | |
4341 | (_Jv_GetMethodString): Ditto. | |
4342 | (_Jv_AppendPartialITable): Ditto. | |
4343 | (_Jv_FindIIndex): Ditto. | |
4344 | depth, ancestors, idt: New class fields. | |
4345 | ||
4346 | * java/lang/natClass.cc (isAssignableFrom): Move functionality to | |
4347 | inline function `_Jv_IsAssignableFrom'. Use that function. | |
4348 | (isInstance): Declare `inline'. | |
4349 | (initializeClass): Get lock on class before checking `state'. Unlock | |
4350 | before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with | |
4351 | the lock held. | |
4352 | (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString. | |
4353 | (_Jv_IsAssignableFrom): New inline function. Test assignability using | |
4354 | class->depth and ancestor table. | |
4355 | (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom. | |
4356 | (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and | |
4357 | _Jv_IsAssignableFrom. | |
4358 | (_Jv_CheckArrayStore): Ditto. | |
4359 | (_Jv_LookupInterfaceMethodIdx): New function. | |
4360 | INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines. | |
4361 | (_Jv_PrepareConstantTimeTables): New function. | |
4362 | (_Jv_IndexOf): Ditto. | |
4363 | (_Jv_GetInterfaces): Ditto. | |
4364 | (_Jv_GenerateITable): Ditto. | |
4365 | (_Jv_GetMethodString): Ditto. | |
4366 | (_Jv_AppendPartialITable): Ditto. | |
4367 | iindex_mutex, iindex_mutex_initialized: New static fields. | |
4368 | (_Jv_FindIIndex): New function. | |
4369 | ||
4370 | * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields. | |
4371 | ||
4372 | * prims.cc (_Jv_CheckCast): Moved to natClass.cc. | |
4373 | (_Jv_CheckArrayStore): Ditto. | |
4374 | (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray, | |
4375 | JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray): | |
4376 | Moved to gcj/array.h. | |
4377 | (_Jv_Realloc): New function. | |
4378 | ||
4379 | * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h. | |
4380 | ||
4381 | * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h. | |
4382 | (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, | |
4383 | JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray, | |
4384 | JvNewDoubleArray): Implementations moved from prims.cc and | |
4385 | declared `inline'. | |
4386 | ||
4387 | * gcj/javaprims.h (_Jv_Realloc): Prototype. | |
4388 | ||
4389 | * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype. | |
4390 | ||
8d00f617 TT |
4391 | 2000-03-06 Tom Tromey <tromey@cygnus.com> |
4392 | ||
4393 | * jni.cc (MARK_NONE): New define. | |
4394 | (MARK_USER): Likewise. | |
4395 | (MARK_SYSTEM): Likewise. | |
4396 | (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size' | |
4397 | smaller. | |
4398 | (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert. | |
4399 | (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE. | |
4400 | (_Jv_JNI_PushLocalFrame): Use MARK_USER. | |
4401 | (_Jv_JNI_PopLocalFrame): New version with additional `stop' | |
4402 | argument. | |
4403 | (call): Use MARK_SYSTEM. | |
4404 | (_Jv_GetJNIEnvNewFrame): New function. | |
4405 | (_Jv_LookupJNIMethod): New function. | |
4406 | (_Jv_JNI_PopSystemFrame): New function. | |
4407 | (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod. | |
4408 | ||
4d54cfec TT |
4409 | 2000-03-05 Tom Tromey <tromey@cygnus.com> |
4410 | ||
4411 | Fix for PR libgcj/43: | |
4412 | * include/Makefile.in: Rebuilt. | |
4413 | * include/Makefile.am (include_HEADERS): New define. | |
4414 | ||
4415 | 2000-03-05 Anthony Green <green@redhat.com> | |
008b7307 AG |
4416 | |
4417 | * gcj/javaprims.h ("Java"): Remove FirstThread. | |
4418 | ||
4419 | * configure.host: Fix __NO_MATH_INLNES botch. | |
4420 | ||
4421 | * Makefile.in: Rebuilt. | |
4422 | * Makefile.am (nat_source_files): Move natFirstThread.cc. | |
4423 | (gnu/gcj/runtime/FirstThread.h): Moved. | |
4424 | (ordinary_java_source_files): Move FirstThread.java. | |
4425 | * prims.cc: Deal with FirstThread movement. | |
4426 | (JvRunMain): Ditto. | |
4427 | (_Jv_RunMain): Ditto. | |
4428 | ||
4429 | * gnu/gcj/runtime/FirstThread.java: Moved from java/lang. | |
4430 | * gnu/gcj/runtime/natFirstThread.cc: Ditto. | |
4431 | ||
c261e080 WL |
4432 | 2000-03-05 Warren Levy <warrenl@cygnus.com> |
4433 | ||
4434 | * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)): | |
4435 | Handle null addresses. | |
4436 | ||
aa1e467f AG |
4437 | 2000-03-04 Anthony Green <green@redhat.com> |
4438 | ||
4439 | * configure.host (libgcj_flags): Define __NO_MATH_INLINES. | |
4440 | See PR gcj/151. | |
4441 | ||
0f9c645e AG |
4442 | 2000-03-04 Anthony Green <green@redhat.com> |
4443 | ||
4444 | * configure: Rebuilt. | |
4445 | * configure.in (ZLIBTESTSPEC): New macro. | |
4446 | (GCTESTSPEC): New macro. | |
4447 | (LIBGCJTESTSPEC): New macro. | |
4448 | * libgcj-test.spec.in: New file. | |
4449 | ||
b099f07d TT |
4450 | 2000-03-02 Tom Tromey <tromey@cygnus.com> |
4451 | ||
4452 | * include/java-interp.h: Don't include MethodInvocation.h. | |
4453 | (class _Jv_InterpMethod): Don't make MethodInvocation a friend. | |
4454 | * Makefile.in: Rebuilt. | |
4455 | * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed. | |
4456 | (ordinary_java_source_files): Don't mention | |
4457 | MethodInvocation.java. | |
4458 | * gnu/gcj/runtime/MethodInvocation.java: Removed. | |
4459 | * interpret.cc (MethodInvocation::continue1): Removed. | |
4460 | (run): Handle exceptions here. | |
4461 | * java/lang/ClassLoader.java (defineClass1, defineClass2): | |
4462 | Removed. | |
4463 | * java/lang/natClassLoader.cc (defineClass0): Catch exceptions | |
4464 | here. | |
4465 | (defineClass2): Removed. | |
4466 | ||
4467 | * java/lang/reflect/Method.java (hack_trampoline, hack_call): | |
4468 | Removed. | |
4469 | * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch | |
4470 | exceptions here. | |
4471 | (hack_call): Removed. | |
4472 | ||
4473 | * java/lang/Class.h (Class): Removed hackRunInitializers, | |
4474 | hackTrampoline. | |
4475 | * java/lang/natClass.cc (hackRunInitializers): Removed. | |
4476 | (initializeClass): Catch exceptions here. | |
4477 | Include ExceptionInInitializerError.h. | |
4478 | * java/lang/Class.java (hackTrampoline, hackRunInitializers): | |
4479 | Removed. | |
4480 | ||
4481 | * java/lang/Object.h (Object): Don't mention hack12_6. | |
4482 | * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions | |
4483 | here. | |
4484 | * java/lang/Object.java (hack12_6): Removed. | |
4485 | ||
4486 | * java/lang/natThread.cc (run_): Renamed. Catch exceptions here. | |
4487 | (start): Use run_, not run__. | |
4488 | * java/lang/Thread.java (run_): Renamed from run__; old run_ | |
4489 | removed. | |
4490 | ||
4491 | * jni.cc (_Jv_JNI_FindClass): Handle exceptions. | |
4492 | (_Jv_JNI_EnsureLocalCapacity): Likewise. | |
4493 | (_Jv_JNI_DefineClass): Likewise. | |
4494 | (_Jv_JNI_ThrowNew): Likewise. | |
4495 | (_Jv_JNI_AllocObject): Likewise. | |
4496 | (_Jv_JNI_GetAnyMethodID): Likewise. | |
4497 | (_Jv_JNI_CallAnyMethodV): Likewise. | |
4498 | (_Jv_JNI_CallAnyMethodA): Likewise. | |
4499 | (_Jv_JNI_CallAnyVoidMethodV): Likewise. | |
4500 | (_Jv_JNI_CallAnyVoidMethodA): Likewise. | |
4501 | (_Jv_JNI_GetAnyFieldID): Likewise. | |
4502 | (_Jv_JNI_NewString): Likewise. | |
4503 | (_Jv_JNI_NewStringUTF): Likewise. | |
4504 | (_Jv_JNI_GetStringUTFChars): Likewise. | |
4505 | (_Jv_JNI_NewObjectArray): Likewise. | |
4506 | (_Jv_JNI_NewPrimitiveArray): Likewise. | |
4507 | (_Jv_JNI_GetPrimitiveArrayRegion): Likewise. | |
4508 | (_Jv_JNI_GetStringRegion): Likewise. | |
4509 | (_Jv_JNI_GetStringUTFRegion): Likewise. | |
4510 | (_Jv_JNI_SetPrimitiveArrayRegion): Likewise. | |
4511 | (_Jv_JNI_MonitorEnter): Likewise. | |
4512 | (_Jv_JNI_MonitorExit): Likewise. | |
4513 | (_Jv_JNI_ToReflectedField): Likewise. | |
4514 | (_Jv_JNI_ToReflectedMethod): Likewise. | |
4515 | (_Jv_JNI_RegisterNatives): Likewise. | |
4516 | (_Jv_JNI_AttachCurrentThread): Likewise. | |
4517 | (_Jv_JNI_DestroyJavaVM): Likewise. | |
4518 | ||
fee2681f MD |
4519 | 2000-02-28 Mo DeJong <mdejong@cygnus.com> |
4520 | ||
4521 | * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed | |
4522 | error caused by the incorrect casting of a long to an int. | |
4523 | ||
f8b7a5d2 MD |
4524 | 2000-02-28 Mo DeJong <mdejong@cygnus.com> |
4525 | ||
4526 | * java/util/zip/ZipOutputStream.java(write_entry) : Fixed | |
4527 | SIGSEV caused by use of the wrong instance variable. | |
4528 | ||
91da35db BM |
4529 | 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz> |
4530 | ||
4531 | * java/io/File.java (File(String, String)): For dirPath, treat an | |
4532 | empty String the same as `null'. | |
4533 | ||
e1b15113 AG |
4534 | 2000-02-26 Anthony Green <green@cygnus.com> |
4535 | ||
4536 | * gnu/gcj/io/MimeTypes.java: Test for null. | |
4537 | ||
4538 | * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup. | |
4539 | (JNI_GetCreatedJavaVMs): Remove compiler warning. | |
4540 | ||
4541 | * java/net/URLConnection.java: Update copyright notice. | |
4542 | ||
ac52f669 TT |
4543 | 2000-02-25 Tom Tromey <tromey@cygnus.com> |
4544 | ||
4545 | * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on | |
4546 | `INTERPRETER'. | |
4547 | ||
4ae4a3c9 BM |
4548 | 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz> |
4549 | ||
4550 | * java/net/URLConnection.java (initializeDateFormats): New | |
4551 | private method. | |
4552 | (getHeaderFieldDate): Call initializeDateFormats if required. | |
4553 | locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize | |
4554 | these. | |
4555 | Fix for PR libgcj/38. | |
4556 | ||
12b595c7 WL |
4557 | 2000-02-24 Warren Levy <warrenl@cygnus.com> |
4558 | ||
4559 | * java/math/BigInteger.java(ival): Made private. | |
4560 | (words): Ditto. | |
4561 | (neg): Ditto. | |
4562 | ||
9b90451b AG |
4563 | 2000-02-20 Anthony Green <green@cygnus.com> |
4564 | ||
4565 | * Makefile.in: Rebuilt. | |
4566 | * Makefile.am (ordinary_java_source_files): Add | |
4567 | gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java | |
4568 | ||
4569 | * scripts/MakeDefaultMimeTypes.java: New file. | |
4570 | * scripts/mime.types: New file. | |
4571 | * scripts/classes.pl: Moved from top level. | |
4572 | * classes.pl: Moved to scripts directory. | |
4573 | ||
4574 | * java/net/URLConnection.java: Implement guessContentTypeFromName. | |
4575 | ||
4576 | * gnu/gcj/io/MimeTypes.java: New file. | |
4577 | * gnu/gcj/io/DefaultMimeTypes.java: New file. | |
4578 | ||
38b3a2c0 TT |
4579 | 2000-02-20 Tom Tromey <tromey@cygnus.com> |
4580 | ||
4581 | * boehm.cc (_Jv_AllocBytes): Clear returned memory. | |
4582 | ||
a0e34aaa BM |
4583 | 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz> |
4584 | ||
4585 | * java/util/zip/ZipEntry.java (setCrc): Fix overflow. | |
4586 | (setSize): ditto. | |
4587 | ||
8ade4771 TT |
4588 | 2000-02-18 Tom Tromey <tromey@cygnus.com> |
4589 | ||
4590 | * include/jvm.h (_Jv_GetJavaVM): Declare. | |
4591 | * include/java-interp.h (_Jv_GetFirstMethod): New function. | |
4592 | (_Jv_MethodBase::get_method): New method. | |
4593 | (_Jv_JNIMethod::set_function): New method. | |
4594 | * jni.cc (_Jv_JNI_UnregisterNatives): New function. | |
4595 | (_Jv_JNI_RegisterNatives): New function. | |
4596 | (_Jv_JNIFunctions): Updated for new functions. | |
4597 | (_Jv_GetJavaVM): New function. | |
4598 | (_Jv_JNI_GetJavaVM): Use it. Now static. | |
4599 | (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread | |
4600 | is already a Java thread but does not have a JNIEnv yet. | |
4601 | ||
4602 | * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload | |
4603 | function. | |
4604 | ||
de3cb4e4 TT |
4605 | 2000-02-17 Tom Tromey <tromey@cygnus.com> |
4606 | ||
4607 | * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert. | |
4608 | Fixes PR gcj/152. | |
4609 | ||
d77a1640 TT |
4610 | 2000-02-16 Tom Tromey <tromey@cygnus.com> |
4611 | ||
5ef57049 TT |
4612 | * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions. |
4613 | ||
1adbc4d8 TT |
4614 | * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion. |
4615 | (_Jv_JNI_NewObject): Likewise. | |
4616 | (_Jv_JNI_NewObjectA): Likewise. | |
4617 | (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value | |
4618 | as "return" type to _Jv_CallAnyMethodA. | |
4619 | (_Jv_JNI_CallAnyMethodA): Likewise. | |
4620 | (_Jv_JNI_CallAnyVoidMethodV): Likewise. | |
4621 | ||
d77a1640 TT |
4622 | * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not |
4623 | findClass. | |
4624 | ||
2d759f71 TT |
4625 | 2000-02-15 Tom Tromey <tromey@cygnus.com> |
4626 | ||
d348bda4 TT |
4627 | * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and |
4628 | jni_arg_types. | |
4629 | (init_cif): Added `rtype_p' argument. | |
4630 | * include/java-interp.h (class _Jv_MethodBase): Added | |
4631 | args_raw_size. | |
4632 | (class _Jv_InterpMethod): Removed args_raw_size. | |
4633 | (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields. | |
4634 | * jni.cc (call): Pass JNIEnv and (for static methods only) the | |
4635 | class pointer as well as the ordinary arguments. | |
4636 | ||
cdd59e7b TT |
4637 | * jni.cc (mangled_name): Skip leading `(' in signature. |
4638 | ||
abfb7844 TT |
4639 | * jni.cc (add_char): Added missing `else'. |
4640 | ||
2d759f71 TT |
4641 | * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc |
4642 | fails. | |
4643 | ||
2e5aca83 BM |
4644 | 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz> |
4645 | ||
4646 | * NEWS: Updated. | |
4647 | ||
4648 | * java/lang/natRuntime.cc (_load): Include library path with | |
4649 | exception message. | |
4650 | ||
4651 | * java/lang/natSystem.cc (init_properties): set java.lang.classpath | |
4652 | property. | |
4653 | ||
4654 | * java/lang/natThread.cc (dumpStack): Removed. | |
4655 | * java/lang/Thread.java (dumpStack): Implemented. | |
4656 | ||
26c3229c TT |
4657 | 2000-02-15 Tom Tromey <tromey@cygnus.com> |
4658 | ||
4659 | * java/lang/natRuntime.cc (_load): On Unix, prefix library name | |
4660 | with `lib' for loadLibrary. Fixes PR gcj/150. | |
4661 | ||
34540fe3 WL |
4662 | 2000-02-14 Warren Levy <warrenl@cygnus.com> |
4663 | ||
4664 | * gnu/gcj/math/MPN.java(findLowestBit): Made methods public. | |
4665 | ||
4666 | * java/math/BigInteger.java(BigInteger(int,int,java.util.Random): | |
4667 | New constructor. | |
4668 | (min): Implemented. | |
4669 | (max): Implemented. | |
4670 | (modPow): Rewritten to not use the naive, slow, brute force approach. | |
4671 | (isProbablePrime): Implemented. | |
4672 | (testBit): Implemented. | |
4673 | (flipBit): Implemented. | |
4674 | (getLowestSetBit): Implemented. | |
4675 | ||
97ce4a51 AG |
4676 | 2000-02-16 Anthony Green <green@redhat.com> |
4677 | ||
4678 | * configure.host: Use the same options for i386 and i486 as we do | |
4679 | for i586 and i686. | |
4680 | ||
dd168666 TT |
4681 | 2000-02-12 Tom Tromey <tromey@cygnus.com> |
4682 | ||
4683 | * java/io/File.java (createTempFile): Use low bits from counter, | |
4684 | not high bits. | |
4685 | ||
95311793 AG |
4686 | Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com> |
4687 | ||
4688 | * THANKS: More thanks. | |
4689 | ||
28ec5077 TT |
4690 | 2000-02-11 Tom Tromey <tromey@cygnus.com> |
4691 | ||
4692 | * interpret.cc (continue1): Use STOREA, not STOREI, to implement | |
4693 | astore instruction. From Hans Boehm. | |
4694 | ||
34540fe3 | 4695 | 2000-02-11 Warren Levy <warrenl@cygnus.com> |
136b5d77 WL |
4696 | |
4697 | * java/math/BigInteger.java(BigInteger(String, int)): New constructor. | |
4698 | (BigInteger(String)): New constructor. | |
4699 | (not): Rewritten using version from Kawa's BitOps class. | |
4700 | (valueOf): New private methods from Kawa's BitOps class. | |
4701 | (swappedOp): ditto. | |
4702 | (bitOp): ditto. | |
4703 | (setBitOp): ditto. | |
4704 | (and): Implemented. | |
4705 | (or): Implemented. | |
4706 | (xor): Implemented. | |
4707 | (andNot): Implemented. | |
4708 | (clearBit): Implemented. | |
4709 | (setBit): Implemented. | |
4710 | (bitCount): Implemented. | |
4711 | (toByteArray): Implemented. | |
4712 | ||
9d381124 TT |
4713 | 2000-02-11 Tom Tromey <tromey@cygnus.com> |
4714 | ||
4715 | * java/io/File.java (nextValue): Now synchronized. | |
4716 | ||
aaf0766e TT |
4717 | 2000-02-10 Tom Tromey <tromey@cygnus.com> |
4718 | ||
304ccb10 TT |
4719 | * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag. |
4720 | * java/io/FileDescriptor.java (EXCL): New static field. | |
4721 | * java/io/File.java (tmpdir): New static field. | |
4722 | (createTempFile): New method. | |
4723 | (nextValue): New method. | |
4724 | * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir | |
4725 | property. | |
4726 | ||
26439cc5 TT |
4727 | * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops. |
4728 | (jboolean): Declare as an attributed int, not a bool. | |
4729 | (_Jv_func): Declare differently for C. | |
4730 | ||
aaf0766e TT |
4731 | * gnu/gcj/jni/natNativeThread.cc: New file. |
4732 | * gnu/gcj/jni/NativeThread.java: New file. | |
4733 | * java/lang/Thread.java (data): Now a RawData. | |
4734 | * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv): | |
4735 | Declare. | |
4736 | * Makefile.in: Rebuilt. | |
4737 | * Makefile.am (java/lang/Thread.h): New target. | |
4738 | (ordinary_java_source_files): Added NativeThread.java. | |
4739 | (nat_source_files): Added natNativeThread.cc. | |
4740 | * java/lang/natThread.cc: Include <jni.h> | |
4741 | (struct natThread): Added `jni_env' field. | |
4742 | (_Jv_GetCurrentJNIEnv): New function. | |
4743 | (_Jv_SetCurrentJNIEnv): Likewise. | |
4744 | (initialize_native): Initialize jni_env. | |
4745 | Include RawData.h. | |
4746 | * jni.cc (ThreadGroupClass): New define. | |
4747 | (_Jv_JNI_InvokeFunctions): New structure. | |
4748 | (JNI_GetCreatedJavaVMs): New function. | |
4749 | (the_vm): New global. | |
4750 | (JNI_GetDefaultJavaVMInitArgs): New function. | |
4751 | Include NativeThread.h. | |
4752 | (NativeThreadClass): New define. | |
4753 | (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1. | |
4754 | (_Jv_JNI_DestroyJavaVM): New function. | |
4755 | (_Jv_JNI_AttachCurrentThread): New function. | |
4756 | (_Jv_JNI_DetachCurrentThread): New function. | |
4757 | (_Jv_JNI_GetEnv): New function. | |
4758 | (JNI_CreateJavaVM): New function. | |
4759 | (_Jv_JNI_GetJavaVM): New function. | |
4760 | (_Jv_JNIFunctions): Added entry for GetJavaVM. | |
4761 | * include/jni.h (JavaVMAttachArgs): New structure. | |
4762 | (JNI_EDETACHED): New define. | |
4763 | (JNI_EVERSION): Likewise. | |
4764 | (JavaVM): Define properly. | |
4765 | (struct JNIInvokeInterface): New structure. | |
4766 | (class _Jv_JavaVM): New class. | |
4767 | (JNI_OnLoad, JNI_OnUnload): Declare. | |
4768 | (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM, | |
4769 | JNI_GetCreatedJavaVMs): Declare. | |
4770 | (JavaVMInitArgs): New typedef. | |
4771 | (JavaVMOption): Likewise. | |
4772 | (JNI_ERR): New define. | |
4773 | (JNI_OK): Likewise. | |
4774 | ||
715bdd81 AH |
4775 | 2000-02-10 Andrew Haley <aph@cygnus.com> |
4776 | ||
4777 | * interpret.cc: Don't include fdlibm.h. | |
4778 | Replace #if with #ifdef throughout. | |
4779 | Declare extern __ieee754_fmod. | |
4780 | (continue1): Remove op_getfield, op_getstatic, op_putfield, | |
4781 | op_putstatic insns. | |
4782 | * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer. | |
4783 | Search class hierarchy for superclass vtable. | |
4784 | ||
4785 | * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall | |
4786 | off the end of a pointer list. | |
4787 | ||
4788 | * java/lang/natThread.cc (stop): Don't abort, throw an exception | |
4789 | instead. | |
4790 | (suspend): Ditto. | |
4791 | ||
c56c8c43 TT |
4792 | 2000-02-09 Tom Tromey <tromey@cygnus.com> |
4793 | ||
7e3b6e31 TT |
4794 | * java/lang/natRuntime.cc (_load): Call add_library. |
4795 | (loadLibraryInternal): Likewise. | |
4796 | ||
c56c8c43 TT |
4797 | * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call |
4798 | iconv_close when handle is not NULL. Thanks to Andrew Haley. | |
4799 | (Output_iconv::finalize): Likewise. | |
4800 | ||
bad196d7 TT |
4801 | 2000-02-08 Tom Tromey <tromey@cygnus.com> |
4802 | ||
4803 | * java/util/Properties.java (setProperty): New method. | |
4804 | (store): New method. | |
4805 | ||
f39b788a TT |
4806 | 2000-02-07 Tom Tromey <tromey@cygnus.com> |
4807 | ||
3fd64b5a TT |
4808 | * java/lang/Runtime.java (_load): Declare. |
4809 | (load, loadLibrary): Wrote in terms of _load. | |
4810 | * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in | |
4811 | library. | |
4812 | (loadLibrary): Likewise. | |
4813 | Include <jni.h>. | |
4814 | (_load): New method. | |
4815 | (loadLibrary, load): Removed. | |
4816 | ||
278abd28 TT |
4817 | * jni.cc (ThrowableClass): New define. |
4818 | (_Jv_JNI_Throw): Check argument. | |
4819 | (_Jv_JNI_ThrowNew): Likewise. | |
4820 | (wrap_value): Don't wrap object if it is NULL. | |
4821 | (_Jv_JNI_DefineClass): Use wrap_value. | |
4822 | (_Jv_JNI_FindClass): Likewise. | |
4823 | (_Jv_JNI_GetSuperclass): Likewise. | |
4824 | (_Jv_JNI_ExceptionOccurred): Likewise. | |
4825 | (_Jv_JNI_AllocObject): Likewise. | |
4826 | (_Jv_JNI_GetObjectClass): Likewise. | |
4827 | (_Jv_JNI_NewString): Likewise. | |
4828 | (_Jv_JNI_NewStringUTF): Likewise. | |
4829 | (_Jv_JNI_NewObjectArray): Likewise. | |
4830 | (_Jv_JNI_GetObjectArrayElement): Likewise. | |
4831 | (_Jv_JNI_NewPrimitiveArray): Likewise. | |
4832 | (_Jv_JNI_ToReflectedField): Likewise. | |
4833 | (_Jv_JNI_ToReflectedMethod): Likewise. | |
4834 | (_Jv_JNI_AllocObject): Check argument. | |
4835 | (_Jv_JNI_NewObjectV): Likewise. | |
4836 | (_Jv_JNI_NewObject): Likewise. | |
4837 | (_Jv_JNI_NewObjectA): Likewise. | |
4838 | (_Jv_JNI_GetObjectClass): Likewise. | |
4839 | (_Jv_JNI_GetField): Likewise. | |
4840 | (_Jv_JNI_SetField): Likewise. | |
4841 | ||
7c51d9fb TT |
4842 | * interpret.cc (PUSHL): Don't use expression statement. |
4843 | (PUSHD): Likewise. | |
4844 | (LOADL): Likewise. | |
4845 | (STOREL): Likewise. | |
4846 | ||
f39b788a TT |
4847 | * jni.cc (add_char): Conditional on INTERPRETER. |
4848 | (mangled_name): Likewise. | |
4849 | (call): Likewise. | |
4850 | * include/java-interp.h (class _Jv_MethodBase): Conditional on | |
4851 | INTERPRETER. | |
4852 | (class _Jv_JNIMethod): Likewise. | |
4853 | ||
25c449be WL |
4854 | 2000-02-04 Warren Levy <warrenl@cygnus.com> |
4855 | ||
4856 | * Makefile.am: Added MPN.java and BigInteger.java. | |
4857 | * Makefile.in: Rebuilt. | |
4f884169 WL |
4858 | * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner |
4859 | <per@bothner.com>. | |
4860 | * java/math/BigInteger.java: New file. Based primarily on | |
4861 | Kawa's IntNum.java by Per Bothner <per@bothner.com>. | |
25c449be | 4862 | |
facc279f TT |
4863 | 2000-02-04 Tom Tromey <tromey@cygnus.com> |
4864 | ||
4865 | * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase | |
4866 | pointers. | |
4867 | (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod | |
4868 | if the method is native. | |
4869 | * resolve.cc (ncode): Don't handle native methods. | |
4870 | (_Jv_JNIMethod::ncode): New method. | |
4871 | (_Jv_PrepareClass): Handle native methods. | |
4872 | * jni.cc (call): Renamed from _Jv_JNI_conversion_call. | |
4873 | Include AbstractMethodError.h. | |
4874 | (add_char): New function. | |
4875 | (mangled_name): Likewise. | |
4876 | * include/java-interp.h (class _Jv_JNIMethod): New class. | |
4877 | (class _Jv_MethodBase): New class. | |
4878 | (class _Jv_InterpMethod): Derive from _Jv_MethodBase. | |
4879 | (_Jv_InterpClass): Changed `interpreted_methods' field to type | |
4880 | `_Jv_MethodBase'. | |
4881 | ||
4882 | * include/jvm.h (_Jv_FindSymbolInExecutable): Declare. | |
4883 | * java/lang/natRuntime.cc (libraries_size, libraries_count, | |
4884 | libraries): New globals. | |
4885 | (add_library): New function. | |
4886 | (_Jv_FindSymbolInExecutable): New function. | |
4887 | ||
4888 | * java/lang/natClassLoader.cc (initiated_classes, loaded_classes): | |
4889 | Now static. | |
4890 | ||
43c5c8a6 AH |
4891 | 2000-02-04 Andrew Haley <aph@cygnus.com> |
4892 | ||
4893 | * java/lang/Throwable.java (CPlusPlusDemangler): New class. | |
4894 | (printStackTrace): Use a CPlusPlusDemangler to demangle names. | |
4895 | * java/lang/natThrowable.cc (printRawStackTrace): Rename | |
4896 | printStackTrace to printRawStackTrace. | |
4897 | ||
14447d96 TT |
4898 | 2000-02-03 Tom Tromey <tromey@cygnus.com> |
4899 | ||
4900 | * java/util/Calendar.java (toString): New method. | |
4901 | * java/util/SimpleTimeZone.java (clone): New method. | |
4902 | (toString): New method. | |
4903 | * java/util/TimeZone.java (clone): New method. | |
4904 | * java/text/SimpleDateFormat.java (clone): New method. | |
4905 | * java/text/NumberFormat.java (clone): New method. | |
4906 | (equals): New method. | |
4907 | * java/text/Format.java (clone): New method. | |
4908 | * java/text/DateFormatSymbols.java (DateFormatSymbols): New | |
4909 | constructor. | |
4910 | (clone): New method. | |
4911 | * java/text/DateFormat.java (clone): New method. | |
4912 | * java/text/Collator.java (clone): New method. | |
4913 | ||
7d3151e1 TT |
4914 | 2000-02-03 Tom Tromey <tromey@cygnus.com> |
4915 | ||
4916 | * java/io/PipedOutputStream.java (write(byte[], int, int)): New | |
4917 | method. | |
4918 | ||
5dc489c1 TT |
4919 | 2000-02-01 Tom Tromey <tromey@cygnus.com> |
4920 | ||
ee6713e7 TT |
4921 | * include/java-interp.h (_Jv_JNI_conversion_call): Declare. |
4922 | * resolve.cc (ncode): Use _Jv_JNI_conversion_call when | |
4923 | constructing the closure if the function is native. | |
4924 | * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer | |
4925 | a template function, #if'd out, or static. | |
4926 | Include <java-interp.h>. | |
4927 | ||
89281911 TT |
4928 | * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'. |
4929 | ||
7d34aa4c TT |
4930 | * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods. |
4931 | ||
ee7f72e4 TT |
4932 | * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'. |
4933 | (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave | |
4934 | `locals == NULL'. | |
4935 | (wrap_value): New function. | |
4936 | (_Jv_JNI_CallAnyMethodV): Use it. | |
4937 | (_Jv_JNI_CallAnyMethodA): Likewise. | |
4938 | (_Jv_JNI_GetField): Use wrap_value; removed specialized version. | |
4939 | (_Jv_JNI_GetStaticField): Likewise. | |
4940 | ||
5dc489c1 TT |
4941 | * jni.cc (_Jv_JNI_GetField): Specialize for jobject. |
4942 | (_Jv_JNI_GetStaticField): Likewise. | |
4943 | ||
7e648cf9 TT |
4944 | 2000-01-31 Tom Tromey <tromey@cygnus.com> |
4945 | ||
4946 | * prims.cc (_Jv_MallocUnchecked): New function. | |
4947 | (main_init): Call _Jv_JNI_Init. | |
4948 | * include/jvm.h (_Jv_MallocUnchecked): Declare. | |
4949 | (_Jv_JNI_Init): Declare. | |
4950 | * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h, | |
4951 | <string.h>. | |
4952 | (_Jv_JNI_NewGlobalRef): New function. | |
4953 | (_Jv_JNI_DeleteGlobalRef): New function. | |
4954 | (_Jv_JNI_DeleteLocalRef): New function. | |
4955 | (_Jv_JNI_conversion_call): Initialize and clear local reference | |
4956 | frame. | |
4957 | (_Jv_JNI_NewLocalRef): New function. | |
4958 | (struct _Jv_JNI_LocalFrame): New structure. | |
4959 | (_Jv_JNI_PushLocalFrame): New function. | |
4960 | (_Jv_JNI_EnsureLocalCapacity): New function. | |
4961 | (FRAME_SIZE): New define. | |
4962 | (_Jv_JNI_GetStringChars): Mark string, not characters. | |
4963 | (_Jv_JNI_ReleaseStringChars): Unmark string, not characters. | |
4964 | (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements. | |
4965 | (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not | |
4966 | elements. | |
4967 | (_Jv_JNI_DefineClass): Make return value a local ref. | |
4968 | (_Jv_JNI_FindClass): Likewise. | |
4969 | (_Jv_JNI_GetSuperclass): Likewise. | |
4970 | (_Jv_JNI_ExceptionOccurred): Likewise. | |
4971 | (_Jv_JNI_AllocObject): Likewise. | |
4972 | (_Jv_JNI_GetObjectClass): Likewise. | |
4973 | (_Jv_JNI_CallAnyMethodV): Likewise. | |
4974 | (_Jv_JNI_NewString): Likewise. | |
4975 | (_Jv_JNI_NewStringUTF): Likewise. | |
4976 | (_Jv_JNI_NewObjectArray): Likewise. | |
4977 | (_Jv_JNI_GetObjectArrayElement): Likewise. | |
4978 | (_Jv_JNI_ToReflectedField): Likewise. | |
4979 | (_Jv_JNI_ToReflectedMethod): Likewise. | |
4980 | (_Jv_JNIFunctions): Updated table for new functions. | |
4981 | (_Jv_JNI_Init): New function. | |
4982 | (mark_for_gc): Wrote. | |
4983 | (unmark_for_gc): Wrote. | |
4984 | * include/jni.h (struct JNINativeInterface): Removed name from | |
4985 | PopLocalFrame parameter. | |
4986 | (class _Jv_JNIEnv): Added `locals' field. | |
4987 | ||
ab5cffc5 AG |
4988 | Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com> |
4989 | ||
4990 | * gnu/gcj/convert/natIconv.cc (read): Minor fixes. | |
4991 | (write): Ditto. | |
4992 | ||
946efde1 TT |
4993 | 2000-01-30 Tom Tromey <tromey@cygnus.com> |
4994 | ||
4995 | * include/config.h.in: Rebuilt. | |
4996 | * acconfig.h (HAVE_ICONV): Define. | |
4997 | * configure: Rebuilt. | |
4998 | * configure.in: Check for `iconv' function. | |
4999 | * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if | |
5000 | no specific encoder exists. | |
5001 | * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if | |
5002 | no specific encoder exists. | |
5003 | * Makefile.in: Rebuilt. | |
5004 | * Makefile.am (convert_source_files): Mention Input_iconv.java and | |
5005 | Output_iconv.java. | |
5006 | (nat_source_files): Added natIconv.cc. | |
5007 | * gnu/gcj/convert/natIconv.cc: New file. | |
5008 | * gnu/gcj/convert/Input_iconv.java: New file. | |
5009 | * gnu/gcj/convert/Output_iconv.java: New file. | |
5010 | ||
d0a844f8 TT |
5011 | 2000-01-28 Tom Tromey <tromey@cygnus.com> |
5012 | ||
5013 | * Makefile.in: Rebuilt. | |
5014 | * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP. | |
5015 | ||
673fdf6d TT |
5016 | 2000-01-26 Tom Tromey <tromey@cygnus.com> |
5017 | ||
355dff4c TT |
5018 | * gcj/method.h (JvNumMethods): Moved from Class.h. |
5019 | (JvGetFirstMethod): Likewise. | |
5020 | * java/lang/Class.h (Object): Updated decl of | |
5021 | _Jv_JNI_ToReflectedField. | |
5022 | (Object): Added _Jv_JNI_ToReflectedMethod as a friend. | |
5023 | * Makefile.in: Rebuilt. | |
5024 | * Makefile.am (java/lang/reflect/Field.h): Added `jboolean' | |
5025 | argument of _Jv_JNI_ToReflectedField. | |
5026 | (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod | |
5027 | as a friend. | |
5028 | (java/lang/reflect/Method.h): Likewise. | |
5029 | * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use | |
5030 | __GCJ_JNI_IMPL__. | |
5031 | (jweak): New typedef. | |
5032 | (struct JNINativeInterface): Correctly declare remaining entries. | |
5033 | * jni.cc: Include Class.h, ClassLoader.h. | |
5034 | (_Jv_JNI_FindClass): New function. | |
5035 | (_Jv_JNI_DefineClass): New function. | |
5036 | (_Jv_JNI_conversion_call): New function. | |
5037 | (_Jv_JNI_FindClass): Use current class loader to find class. | |
5038 | (_Jv_JNI_ExceptionCheck): New function. | |
5039 | (_Jv_JNI_FromReflectedField): Now static. | |
5040 | (MethodClass): New define. | |
5041 | (_Jv_JNI_FromReflectedMethod): New function. | |
5042 | (_Jv_JNI_ToReflectedMethod): Likewise. | |
5043 | Include Method.h. | |
5044 | (_Jv_JNI_IsAssignableFrom): Renamed. | |
5045 | (_Jv_JNI_GetStringRegion): New function. | |
5046 | Include StringIndexOutOfBoundsException.h. | |
5047 | (_Jv_JNI_GetStringUTFRegion): New function. | |
5048 | (_Jv_JNIFunctions): Updated for new functions. | |
5049 | (_Jv_JNI_GetPrimitiveArrayCritical): New function | |
5050 | (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise. | |
5051 | (_Jv_JNI_GetStringCritical): New function. | |
5052 | (_Jv_JNI_ReleaseStringCritical): Likewise. | |
5053 | (get_throwable): Removed. | |
5054 | (GCJ_JV_JNIENV_FRIEND): Removed. | |
5055 | (__GCJ_JNI_IMPL__): Define. | |
5056 | Include method.h. | |
5057 | ||
673fdf6d TT |
5058 | * resolve.cc (get_ffi_type_from_signature): Handle case where |
5059 | boolean is an int. | |
5060 | ||
8de7c9a0 TT |
5061 | Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com> |
5062 | ||
5063 | * interpret.cc (run): Don't call println. | |
5064 | Don't include PrintStream.h. | |
5065 | ||
5066 | * gcj/field.h (struct _Jv_Field): Use "jshort" as type for | |
5067 | nameIndex. Use "jint" as type for boffset. | |
5068 | * java/lang/Class.h (struct _Jv_Method): Made accflags a | |
5069 | _Jv_ushort. | |
5070 | (Class): Likewise. Also changed type of method_count, | |
5071 | vtable_method_count, size_in_bytes, field_count, | |
5072 | static_field_count, interface_count. | |
5073 | * gcj/array.h (__JArray): Made `length' a const jsize, not an | |
5074 | int. | |
5075 | ||
8a922095 TT |
5076 | 2000-01-21 Tom Tromey <tromey@cygnus.com> |
5077 | ||
5078 | * java/lang/reflect/natConstructor.cc (newInstance): Use | |
5079 | _Jv_CallAnyMethodA. | |
5080 | * include/jvm.h: Declare _Jv_CallAnyMethodA. | |
5081 | * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed | |
5082 | from _Jv_CallNonvirtualMethodA. Changed interface; overloaded. | |
5083 | Include <jni.h>. | |
5084 | (COPY): Removed. | |
5085 | (invoke): Use _Jv_CallAnyMethodA. | |
5086 | (VAL): Redefined. | |
5087 | * java/lang/Class.h (Class): Declare JvGetFirstStaticField, | |
5088 | JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend | |
5089 | functions. | |
5090 | (struct _Jv_Method): Added getNextMethod method. | |
5091 | (JvNumMethods): New function. | |
5092 | (JvGetFirstMethod): Likewise. | |
5093 | * gcj/field.h (JvGetFirstStaticField): New function. | |
5094 | (JvNumStaticFields): Likewise. | |
5095 | (getNextField): Renamed from getNextInstanceField. | |
5096 | (struct _Jv_Field): New method getClass. | |
5097 | * jni.cc: Wrote many new functions. | |
5098 | * include/jni.h (JNI_TRUE): Define. | |
5099 | (JNI_FALSE): Likewise. | |
5100 | (jobject, jclass, jstring, jarray, jthrowable, jobjectArray, | |
5101 | jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray, | |
5102 | jcharArray, jfloatArray, jdoubleArray): New typedefs. | |
5103 | (jfieldID, jmethodID): Likewise. | |
5104 | (JNI_COMMIT, JNI_ABORT): New defines. | |
5105 | (JNINativeMethod): New struct. | |
5106 | (struct JNINativeInterface): Correctly declared more entries. | |
5107 | (class _Jv_JNIEnv): Added `ex' member. | |
5108 | (JNI_VERSION_1_1): New define. | |
5109 | (JNI_VERSION_1_2): Likewise. | |
5110 | ||
5111 | * boehm.cc (_Jv_MarkObj): Use getNextField, not | |
5112 | getNextInstanceField. | |
5113 | ||
0b9309b6 TT |
5114 | 2000-01-20 Tom Tromey <tromey@cygnus.com> |
5115 | ||
5116 | * resolve.cc (StringClass): Removed. | |
5117 | * defineclass.cc (StringClass): Removed. | |
5118 | ||
dda482c1 BM |
5119 | 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz> |
5120 | ||
5121 | * NEWS: updated. | |
5122 | ||
7c734b17 TT |
5123 | 2000-01-19 Tom Tromey <tromey@cygnus.com> |
5124 | ||
74436afa TT |
5125 | * interpret.cc (PC_REGISTER_ASM): Removed. |
5126 | ||
db70b4bd TT |
5127 | * java/lang/natThrowable.cc: Don't use `#pragma implementation'. |
5128 | From Bryce McKinlay. | |
5129 | ||
7c734b17 TT |
5130 | * All files: Updated copyright to reflect Cygnus purchase. |
5131 | ||
f7ccaa38 BM |
5132 | 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz> |
5133 | ||
5134 | * configure: Rebuilt. | |
5135 | * configure.in: Recognize --disable-interpreter. | |
5136 | ||
b9f243c2 AH |
5137 | 2000-01-18 Andrew Haley <aph@cygnus.com> |
5138 | ||
5139 | * name-finder.cc (lookup): Check for dladdr function. | |
5140 | acconfig.h (HAVE_DLADDR): Add. | |
5141 | configure.in: Check for HAVE_DLADDR | |
5142 | configure: Rebuilt. | |
5143 | include/config.h.in: Rebuilt. | |
5144 | ||
04476544 AH |
5145 | 2000-01-17 Andrew Haley <aph@cygnus.com> |
5146 | ||
5147 | * prims.cc (_Jv_RunMain): Set the name of this executable. | |
5148 | ||
7af85558 TT |
5149 | 2000-01-17 Tom Tromey <tromey@cygnus.com> |
5150 | ||
d269d25c TT |
5151 | * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even |
5152 | when backtrace can't be computed. | |
5153 | ||
4f5a5d5c TT |
5154 | * configure: Rebuilt. |
5155 | * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call. | |
5156 | ||
7af85558 TT |
5157 | * java/lang/Runtime.java (loadLibraryInternal): Declare. |
5158 | * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy. | |
5159 | (_Jv_FindClassInCache): Likewise. | |
5160 | (_Jv_FindClass): Don't conditionalize body on INTERPRETER. | |
5161 | (findSystemClass): Try to load class from compiled module. | |
5162 | Include Runtime.h. | |
5163 | * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename. | |
5164 | (loadLibrary): Likewise. | |
5165 | (lt_preloaded_symbols): Define. | |
5166 | (loadLibraryInternal): New method. | |
5167 | * include/config.h.in: Rebuilt. | |
5168 | * acconfig.h (USE_LTDL): Added. | |
5169 | * Makefile.am (SUBDIRS): Added $(DIRLTDL). | |
4f5a5d5c | 5170 | (INCLUDES): Added $(INCLTDL). |
7af85558 TT |
5171 | (libgcj_la_DEPENDENCIES): Added $(LIBLTDL). |
5172 | (libgcj_la_LIBADD): Likewise. | |
5173 | * aclocal.m4, configure: Rebuilt. | |
5174 | * configure.in: Added libltdl support. | |
5175 | ||
451f21ef TT |
5176 | 2000-01-15 Tom Tromey <tromey@cygnus.com> |
5177 | ||
5178 | * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'. | |
5179 | ||
283a159f AH |
5180 | 2000-01-14 Andrew Haley <aph@cygnus.com> |
5181 | ||
5182 | * java/lang/natThrowable.cc: New file. | |
5183 | ||
5184 | * java/lang/Throwable.java (fillInStackTrace): Make native. | |
5185 | (printStackTrace): Call native method to do this. | |
5186 | (Throwable): Call fillInStackTrace. | |
5187 | (stackTrace): New variable. | |
5188 | ||
5189 | * include/jvm.h: Add _Jv_ThisExecutable functions. | |
5190 | ||
5191 | * prims.cc: (_Jv_execName): New variable. | |
5192 | (catch_segv): Call fillInStackTrace. | |
5193 | (catch_fpe): Ditto. | |
5194 | (_Jv_ThisExecutable): New functions. | |
5195 | (JvRunMain): Set the name of this executable. | |
5196 | ||
5197 | * Makefile.am: Add java/lang/natThrowable.cc. | |
5198 | Add name-finder.cc. | |
5199 | * Makefile.in: Rebuilt. | |
5200 | ||
5201 | * acconfig.h: Add HAVE_PROC_SELF_EXE. | |
5202 | ||
5203 | * configure.in: Force link with __frame_state_for in | |
5204 | FORCELIBGCCSPEC. Add new checks for backtrace. | |
5205 | * include/config.h.in: Rebuilt. | |
5206 | ||
5207 | * name-finder.cc: New file. | |
5208 | * include/name-finder.h: New file. | |
451f21ef | 5209 | |
2a198bc4 AG |
5210 | 2000-01-16 Anthony Green <green@cygnus.com> |
5211 | ||
5212 | * java/lang/StringBuffer.java (StringBuffer): Don't special case | |
5213 | null argument. | |
5214 | ||
2ce7461b JS |
5215 | 2000-01-16 Jeff Sturm <jsturm@sigma6.com> |
5216 | ||
5217 | * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF). | |
5218 | ||
357100a3 TT |
5219 | 2000-01-13 Tom Tromey <tromey@cygnus.com> |
5220 | ||
5221 | * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader', | |
5222 | not system loader, as initiating loader. | |
5223 | ||
6baee4c5 TT |
5224 | 2000-01-11 Tom Tromey <tromey@cygnus.com> |
5225 | ||
5226 | * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for | |
5227 | HP/UX. From David Scott Urban. | |
5228 | ||
0cf69aff JS |
5229 | 2000-01-10 Jeff Sturm <jsturm@sigma6.com> |
5230 | ||
5231 | * java/lang/natMath.cc (pow): Cast args to `double', not | |
5232 | `jdouble'. | |
5233 | (atan2): Likewise. | |
5234 | (IEEEremainder): Likewise. | |
5235 | * java/lang/mprec.h: Don't wrap includes in `extern "C"'. | |
5236 | * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'. | |
5237 | ||
b11f6430 AG |
5238 | 2000-01-09 Anthony Green <green@cygnus.com> |
5239 | ||
5240 | * java/lang/natString.cc (init): Test for overflow condition | |
5241 | during out of bounds check. | |
5242 | (getChars): Throw StringIndexOutOfBoundsException, not | |
5243 | ArrayIndexOutOfBoundsException. | |
5244 | (getBytes): Ditto. | |
5245 | (regionMatches): Obey case option during string comparison. | |
5246 | ||
5247 | * configure.host (ligcj_interpreter): New variable. Enable | |
5248 | interpreter by default on IA-32. | |
5249 | * configure.in: Examine libgcj_interpreter. | |
5250 | * configure: Rebuilt. | |
5251 | ||
bd3a924b TT |
5252 | 2000-01-07 Tom Tromey <tromey@cygnus.com> |
5253 | ||
be63d11f TT |
5254 | * mauve-libgcj: Don't disable ClassTest. |
5255 | ||
bd3a924b TT |
5256 | * java/lang/natClass.cc (getClasses): Wrote. |
5257 | ||
55ff3de7 TT |
5258 | 2000-01-06 Tom Tromey <tromey@cygnus.com> |
5259 | ||
5260 | * java/lang/natClass.cc (_getConstructors): Correctly check | |
5261 | whether method name is the init name. | |
5262 | (getMethod): Look at accflags on method in `klass', not `this'. | |
5263 | ||
5dab1948 TT |
5264 | 2000-01-05 Tom Tromey <tromey@cygnus.com> |
5265 | ||
41ecf930 TT |
5266 | * java/lang/natClass.cc (getMethod): Compute offset relative to |
5267 | `klass's methods table, not `this's table. | |
5268 | ||
5269 | * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): | |
5270 | In unwrapping/widening case, check whether `k' is null, not | |
5271 | whether it is primitive. Initialize `num' from `argelts', not | |
5272 | `paramelts'. Correct create and pass arguments to ffi_call. | |
5273 | Don't let presence of `this' argument affect index used to look in | |
5274 | argument arrays. | |
5275 | (COPY): Set appropriate element in `values' vector. | |
5276 | ||
d6ab24c5 TT |
5277 | * java/lang/natClass.cc: Include <gcj/method.h>. |
5278 | ||
1258cada TT |
5279 | * java/lang/Class.h (_getMethods): Correctly declare as private, |
5280 | not public. | |
5281 | ||
6f2b93eb TT |
5282 | * java/lang/Class.h (_getMethods): Declare. |
5283 | * java/lang/Class.java (_getMethods): Declare. | |
5284 | * java/lang/natClass.cc (getDeclaringClass): Always return NULL. | |
5285 | (getDeclaredClasses): Always return empty array. | |
5286 | (_getMethods): New method. | |
5287 | (getMethods): Wrote. | |
5288 | (getDeclaredMethod): Return `rmethod'. | |
5289 | (finit_name): New global. | |
5290 | (getDeclaredMethods): Check for finit_name. | |
5291 | (_getMethods): Likewise. | |
5292 | (getMethod): Only return public methods. | |
5293 | ||
5dab1948 TT |
5294 | * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of |
5295 | jboolean and select correct ffi type on that basis. | |
5296 | (_Jv_CallNonvirtualMethodA): Handle `void' return type. | |
5297 | Constructor call always has `void' return type. | |
5298 | ||
95c6cc0a TT |
5299 | 2000-01-04 Tom Tromey <tromey@cygnus.com> |
5300 | ||
5301 | * java/lang/Class.h (getSignature): Updated. | |
5302 | * java/lang/Class.java (getSignature): Updated. | |
5303 | * java/lang/natClass.cc (getSignature): Added `is_constructor' | |
5304 | argument. | |
5305 | (getConstructor): Ensure constructor is public. | |
5306 | (_getConstructors): Check for public-ness of constructor when | |
5307 | `declared' is false, not when it is true. | |
5308 | ||
730ecdd3 WL |
5309 | 2000-01-04 Warren Levy <warrenl@cygnus.com> |
5310 | ||
5311 | * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary | |
5312 | comment. | |
5313 | (receive): Set the sender's address in the DatagramPacket. | |
5314 | ||
0f918fea TT |
5315 | 2000-01-04 Tom Tromey <tromey@cygnus.com> |
5316 | ||
5317 | * java/lang/reflect/natConstructor.cc (newInstance): Pass | |
5318 | declaring class as return_type argument to | |
5319 | _Jv_CallNonvirtualMethodA. | |
5320 | * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In | |
5321 | constructor case, create object and use it as `this' argument. | |
5322 | * java/lang/Class.h (_getConstructors): Declare. | |
5323 | (_getFields): Declare. | |
5324 | * java/lang/Class.java (getConstructors): Wrote. | |
5325 | (_getConstructors): New native method. | |
5326 | (getDeclaredConstructors): Wrote. | |
5327 | (_getFields): Declare new native method. | |
5328 | * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed | |
5329 | incorrect comment. | |
5330 | (getMethod): Work correctly when class is primitive. | |
5331 | (getDeclaredMethods): Likewise. Compute offset using `method', | |
5332 | not `mptr'. | |
5333 | (getDeclaredMethod): Likewise. | |
5334 | (getConstructor): Wrote. | |
5335 | (ConstructorClass): New define. | |
5336 | (getDeclaredConstructor): Wrote. | |
5337 | (_getConstructors): New method. | |
5338 | (_getFields): New method. | |
5339 | (getFields): Wrote. | |
5340 | ||
5341 | * Makefile.in: Rebuilt. | |
5342 | * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE. | |
5343 | ||
5344 | * prims.cc: Remove `#pragma implementation'. | |
5345 | * gcj/array.h: Remove `#pragma interface'. | |
5346 | ||
5347 | * prims.cc (_Jv_equaln): New function. | |
5348 | * java/lang/Class.java (getSignature): Declare. | |
5349 | * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc. | |
5350 | * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from | |
5351 | resolve.cc. | |
5352 | (getSignature): New method. | |
5353 | (getDeclaredMethod): Wrote. | |
5354 | (getMethod): Wrote. | |
5355 | Include StringBuffer.h. | |
5356 | * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor | |
5357 | as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as | |
5358 | a friend. | |
5359 | (getSignature): Declare. | |
5360 | * include/jvm.h (_Jv_GetTypesFromSignature): Declare. | |
5361 | (_Jv_equaln): Declare. | |
5362 | (_Jv_CallNonvirtualMethodA): Declare. | |
5363 | * Makefile.in: Rebuilt. | |
5364 | * Makefile.am (nat_source_files): Added natConstructor.cc. | |
5365 | (java/lang/reflect/Constructor.h): New target. | |
5366 | * java/lang/reflect/natConstructor.cc: New file. | |
5367 | * java/lang/reflect/Constructor.java (newInstance): Now native. | |
5368 | (declaringClass): Renamed from decl_class. | |
5369 | (offset): Renamed from index. | |
5370 | (getType): New native method. | |
5371 | (getModifiers): Now native. | |
5372 | (getParameterTypes): Call getType if required. | |
5373 | (hashCode): Include hash code from declaring class. | |
5374 | (modifiers): Removed. | |
5375 | (toString): Call getType if required. | |
5376 | * gcj/method.h (_Jv_FromReflectedConstructor): New function. | |
5377 | * java/lang/reflect/natMethod.cc (hack_call): New method. | |
5378 | Removed `#if 0' around FFI code. | |
5379 | Include <gnu/gcj/RawData.h>. | |
5380 | (invoke): Use _Jv_CallNonvirtualMethodA. Throw | |
5381 | IllegalArgumentException when argument object and class disagree. | |
5382 | (_Jv_GetTypesFromSignature): New function. | |
5383 | (getType): Use it. | |
5384 | (ObjectClass): New define. | |
5385 | (_Jv_CallNonvirtualMethodA): New function. | |
5386 | * java/lang/reflect/Method.java (hack_trampoline): New method. | |
5387 | (hack_call): New native method. |