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