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