OSDN Git Service

* Makefile.am: Re-work shell commands that exceeded command-line
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2
3         * Makefile.am: Re-work shell commands that exceeded command-line
4         length limits.
5         * Makefile.in: Rebuilt.
6
7         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
8
9         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
10         * java/lang/natDouble.cc: Likewise.
11         * java/lang/reflect/natMethod.cc: Likewise.
12         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
13
14 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
15
16         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
17         libgcjdata.a.
18         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
19         * acinclude.m4: Arrange for automake to not bring in a new
20         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
21         * Makefile.am: Leave it up to automake to subst GCJ.
22         * aclocal.m4, configure, Makefile.in: Rebuilt.
23
24 2000-09-13  Tom Tromey  <tromey@cygnus.com>
25
26         * java/lang/reflect/natArray.cc (BooleanClass): New define.
27         (get): Ensure Boolean class is initialized.
28         * java/lang/reflect/natField.cc (BooleanClass): New define.
29         (get): Ensure Boolean class is initialized.
30
31 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
32
33         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
34         Initialize with anonymous class.
35         (compareToIgnoreCase): New method.
36         
37         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
38         (uncaughtException): Set had_uncaught_exception.
39         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
40         exit with error status if set.
41         (_Jv_RunMain): Ditto.
42
43 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
44
45         * configure: Rebuilt with new ../libtool.m4.
46
47 2000-09-11  Tom Tromey  <tromey@cygnus.com>
48
49         * java/lang/reflect/Field.java (toString): Don't rely on
50         Class.toString.
51
52 2000-09-08  Tom Tromey  <tromey@cygnus.com>
53
54         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
55         default decoder use iconv.
56         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
57         Let default encoder use iconv.
58         * configure: Rebuilt.
59         * configure.in: Check for nl_langinfo and <langinfo.h>.
60         * java/lang/natSystem.cc (file_encoding): New function.
61         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
62
63 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
64
65         * acinclude.m4: Simplify the tests for CC and CXX.
66         * aclocal.m4, configure: Rebuilt.
67
68         * acinclude.m4: Include libtool macros from the source tree.
69         * aclocal.m4, configure: Rebuilt.
70
71 2000-09-08  Warren Levy  <warrenl@cygnus.com>
72
73         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
74         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
75         * java/io/File.java (writeObject): Added.
76         (readObject): Added.
77         (serialVersionUID): Added.
78         * java/io/ObjectOutputStream.java (writeObject): Initialized
79         fieldsAlreadyWritten before recursion rather than after.
80         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
81         * java/io/OptionalDataException.java (serialVersionUID): Added.
82         (OptionalDataException): Made package private.
83         * java/io/SyncFailedException.java (SyncFailedException): Removed
84         default constructor to match spec.
85         * java/lang/Boolean.java (serialVersionUID): Added.
86         * java/lang/Byte.java (serialVersionUID): Added.
87         * java/lang/Character.java (serialVersionUID): Added.
88         * java/lang/Double.java (serialVersionUID): Added.
89         * java/lang/Float.java (serialVersionUID): Added.
90         * java/lang/Integer.java (serialVersionUID): Added.
91         * java/lang/Long.java (serialVersionUID): Added.
92         * java/lang/Number.java (serialVersionUID): Added.
93         * java/lang/Short.java (serialVersionUID): Added.
94         * java/lang/String.java (serialVersionUID): Added.
95         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
96         to match spec.
97         * java/lang/reflect/InvocationTargetException.java
98         (serialVersionUID): Added.
99         * java/net/URL.java (handler): Made transient.
100         (hashCode): Added field for serialization, per spec. and use
101         cached value if available.
102         (serialVersionUID): Added.
103         (URL): Initialize hashCode.
104         (set): Adjust hashCode.
105         (readObject): New Method to initialize the protocol handler when
106         deserializing.
107         (writeObject): New method.
108         * java/text/BreakIterator.java: Removed 'implements Serializable'.
109         * java/text/Collator.java: Removed 'implements Serializable'.
110         * java/util/GregorianCalendar.java (serialVersionUID): Added.
111         * java/util/Properties.java (serialVersionUID): Added.
112         * java/util/Random.java (serialVersionUID): Added.
113         (seed): Made private.
114         (nextNextGaussian): Made private.
115         (haveNextNextGaussian): Made private.
116         * java/util/Stack.java (serialVersionUID): Added.
117         * java/util/TimeZone.java (serialVersionUID): Added.
118         * java/util/Vector.java (serialVersionUID): Added.
119
120 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
121
122         * Makefile.am (Thread.h): Don't be friends with native threads 
123         functions.
124         * Makefile.in: Rebuilt.
125         * java/lang/Thread.java (interrupt_flag): Make package-private.
126
127 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
128
129         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
130         to avoid long long division.
131
132 2000-09-06  Tom Tromey  <tromey@cygnus.com>
133
134         * java/lang/reflect/Constructor.java (toString): Use `getName' for
135         parameter types.
136         * java/lang/reflect/Method.java (toString): Use `getName' for
137         return type.
138
139         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
140         `args' if method takes no parameters.
141
142         Fix for PR java.lang/339:
143         * java/lang/natPosixProcess.cc (fail): New function.
144         (cleanup): New function.
145         (startProcess): Use them.  Create pipe so child can communicate
146         exec failure back to parent.
147
148 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
149
150         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
151         calls to `throw'.
152         (send): Undo last patch. Remove the label only.
153         (mcastGrp): Ditto.
154         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
155         `throw'.
156         * java/net/natInetAdress.cc: Ditto.
157
158         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
159
160 2000-09-05  Tom Tromey  <tromey@cygnus.com>
161
162         * doc/cni.sgml: Updated from master copy.
163
164 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
165
166         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
167         (write): Ditto.
168         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
169         stack. Synchronize.
170         * java/lang/fdlibm.h: #undef __P if previously defined.
171         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
172         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
173         block.
174         (mcastGrp): Ditto.
175
176 2000-09-04  Tom Tromey  <tromey@cygnus.com>
177
178         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
179         DELETE mode.
180
181 2000-09-04  Anthony Green  <green@redhat.com>
182
183         Fix for PR java.io/203:
184         * java/io/File.java (createTempFile): Obey directory argument.
185         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
186         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
187         variable to set java.io.tmpdir on non-WIN32 systems.
188
189 2000-09-04  Anthony Green  <green@redhat.com>
190
191         * java/io/File.java (deleteOnExit): New method.
192         * gnu/gcj/runtime/FileDeleter.java: New class.
193         * java/lang/natRuntime.cc (exit): Call
194         FileDeleter.deleteOnExitNow()
195         * Makefile.am: Add FileDeleter.java.
196         * Makefile.in: Rebuilt.
197
198 2000-09-02  Tom Tromey  <tromey@cygnus.com>
199
200         * Makefile.in: Rebuilt.
201         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
202         environment variable.
203
204 2000-09-01  Andrew Haley  <aph@redhat.com>
205
206         * java/io/StreamTokenizer.java: Don't throw a
207         NumberFormatException if a field is numeric as far as the
208         StreamTokenizer is concerned but not as far as Double.valueOf() is
209         concerned: return a zero instead.       
210
211 2000-08-30  Tom Tromey  <tromey@cygnus.com>
212
213         * Makefile.in: Rebuilt.
214         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
215
216 2000-08-28  Tom Tromey  <tromey@cygnus.com>
217
218         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
219         gnu/gcj/awt/ComponentDataBlitOp.java,
220         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
221         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
222         java/awt/color/ICC_ColorSpace.java,
223         java/awt/color/ICC_Profile.java,
224         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
225         java/awt/image/ComponentColorModel.java,
226         java/awt/image/ComponentSampleModel.java,
227         java/awt/image/DataBuffer.java,
228         java/awt/image/DataBufferByte.java,
229         java/awt/image/DataBufferInt.java,
230         java/awt/image/DataBufferUShort.java,
231         java/awt/image/DirectColorModel.java,
232         java/awt/image/IndexColorModel.java,
233         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
234         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
235         java/awt/image/SinglePixelPackedSampleModel.java,
236         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
237         Removed Latin-1 copyright symbols.
238         * java/util/zip/ZipFile.java: Indentation fixes.
239
240 2000-08-27  Mark Wielaard  <mark@klomp.org>
241
242         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
243         constructor, close can delete the file, finalize calls close.
244         * java/util/jar/JarFile.java: Constructor that takes mode now
245         calls super.
246
247 2000-08-27  Anthony Green  <green@redhat.com>
248
249         * java/util/ArrayList.java, java/util/Timer.java,
250         java/util/LinkedList.java, java/util/TimerTask.java,
251         java/util/HashMap.java, java/util/AbstractMap.java,
252         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
253         java/util/SortedSet.java: Imported from GNU Classpath.
254         * Makefile.in: Rebuilt.
255         * Makefile.am: Added new files.
256         
257 2000-08-26  Anthony Green  <green@redhat.com>
258
259         * Makefile.in: Rebuilt.
260         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
261         friend.
262
263         * prims.cc: Include ClassLoader.h.
264         (_Jv_RunMain): When executing jar files, classpath must be the jar
265         file only.  Lose our reference to the system ClassLoader in order
266         to get a new one with the correct classpath.
267         * java/lang/natSystem.cc (init_properties): When executing a jar
268         file, only use the jar file for java.class.path.
269
270         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
271         for bytecode archives.
272
273         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
274         exists, but not Main-Class.
275
276 2000-08-23  Mark Wielaard  <mark@klomp.org>
277
278         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
279         return -1 when fill() has no more data for the Inflater.
280
281 2000-08-23  Mark Wielaard  <mark@klomp.org>
282
283         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
284         write(String) already does.
285
286 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
287
288         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
289         to `alive_flag', call `init'.
290         (init): New native method.
291         * gnu/gcj/jni/natNativeThread.cc (init): New native method
292         implementation.
293
294 2000-08-21  Mark Wielaard  <mark@klomp.org>
295
296         * Makefile.in: Rebuilt.
297         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
298         a `friend class'.
299         (java/lang/reflect/Field.h): Likewise.
300         (java/lang/reflect/Method.h): Likewise.
301         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
302         `friend class'.
303
304 2000-08-21  Tom Tromey  <tromey@cygnus.com>
305
306         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
307         debugging prints.
308
309 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
310
311         * java/lang/natSystem.cc (init_properties): Change sourceware
312         reference to sources.redhat.com.
313
314         * include/java-props.h: Add _Jv_Jar_Class_Path.
315         * prims.cc: Ditto.  Set it from `gij -jar file' option.
316
317         * java/lang/natSystem.cc (init_properties): Set java.class.path
318         from
319         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
320
321         * java/util/PropertyPermission.java: Import from GNU Classpath.
322         * Makefile.in: Rebuilt.
323         * Makefile.am: Add java/util/PropertyPermission.java.
324         * java/lang/System.java: Add setProperty method.
325
326         * gij.cc (main): Add -jar option to execute jar files.
327         (help): Describe -jar option.
328         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
329         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
330         * gnu/gcj/runtime/FirstThread.java (main): New method.
331
332         * java/util/jar/Attributes.java: Correct comment spelling.
333
334 2000-08-20  Mark Wielaard  <mark@klomp.org>
335
336         * java/util/zip/Adler32.java: Make private variables really private
337         * java/util/zip/CRC32.java: Make private variables really private
338         * java/util/zip/CheckedInputStream.java: skip() could skip to much
339         bytes
340         * java/util/zip/InflaterInputStream.java: skip() could skip to
341         much bytes
342         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
343         * java/util/zip/ZipFile.java: size() new 1.2 method
344         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
345         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
346         closed
347
348 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
349
350         * java/util/jar/JarFile.java: Don't call
351         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
352         <mark@klomp.org>.
353         
354 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
355
356         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
357         Read the entire contents of the class file, not just what is
358         available().
359
360         * java/net/JarURLConnection.java: getEntry doesn't take any
361         arguments.  Return null if element is null.
362
363         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
364         size from the archive, not the inflated size.
365
366         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
367         java.util.zip.ZipFile.getEntry.
368
369         * gij.cc (help): Change sourceware reference to
370         sources.redhat.com.
371
372 2000-08-19  Tom Tromey  <tromey@cygnus.com>
373
374         * java/util/zip/ZipInputStream.java (createZipEntry):
375         Implemented.
376
377 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
378
379         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
380         java/util/jar/JarException.java, java/util/jar/JarFile.java,
381         java/util/jar/JarInputStream.java,
382         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
383         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
384         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
385         java/security/cert/CRL.java, java/security/cert/CRLException.java,
386         java/security/cert/Certificate.java,
387         java/security/cert/CertificateEncodingException.java,
388         java/security/cert/CertificateException.java,
389         java/security/cert/CertificateExpiredException.java,
390         java/security/cert/CertificateFactory.java,
391         java/security/cert/CertificateFactorySpi.java,
392         java/security/cert/CertificateNotYetValidException.java,
393         java/security/cert/CertificateParsingException.java,
394         java/security/cert/X509CRL.java,
395         java/security/cert/X509CRLEntry.java,
396         java/security/cert/X509Certificate.java,
397         java/security/cert/X509Extension.java: Imported from Classpath.
398         * java/util/Hashtable.java: Imported from Classpath.
399
400         * java/util/zip/ZipInputStream.java: Create stub for
401         createZipEntry.
402
403         * gcj/javaprims.h: Updated class list.
404
405         * Makefile.in, gcj/Makefile.in: Rebuilt.
406         * Makefile.am (ordinary_java_source_files): Add these new classes.
407         
408 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
409
410         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
411         * gnu/gcj/awt/GLightweightPeer.java: New file.
412         * java/awt/BorderLayout.java: Implemented all methods.
413         * java/awt/Button.java (actionListener, actionCommand): Renamed
414         and modifier change.
415         (addNotify): Call super.
416         (dispatchEventImpl): New method.
417         (getListeners): New method.
418         (label): Made package-private, not private.
419         * java/awt/Canvas.java: Implemented class body.
420         * java/awt/Color.java (brighter): New method.
421         (darker): New method.
422         (hashCode): New method.
423         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
424         (getGraphicsConfiguration): Delegate to
425         getGraphicsConfigurationImpl().
426         (getGraphicsConfigurationImpl): New method.
427         (getToolkit): Only return value from peer if not null.
428         (isDisplayable): Check with parent.
429         (isShowing): No parent implies not showing.
430         (getForeground): Check parent property if local is null.
431         (getBackground): Likewise.
432         (getFont): Likewise.
433         (setForeground): Inform peer.
434         (setBackground): Likewise
435         (setLocale): Invalidate component.
436         (getColorModel): Implemented.
437         (setLocation): Invalidate, or ignore if no change.
438         (setSize): Invalidate, or ignore if no change.
439         (setBounds): Invalidate, or ignore if no change.
440         (isOpaque): By default, heavyweight implies opaque.
441         (isLightweight): Implemented.
442         (getMaximumSize): Implemented.
443         (doLayout): Implemented, NOP.
444         (validate): Implemented, NOP.
445         (invalidate): Only propagate to parent if parent was valid.
446         (getGraphics): Implemented.
447         (getFontMetrics): Implemented.
448         (update): Implemented.
449         (paintAll): Implemented.
450         (repaint): Implemented all repaint methods.
451         (print): Implemented.
452         (printAll): Implemented.
453         (createImage): Implemented.
454         (dispatchEvent): Give the peer a chance to handle the event.
455         (dispatchEventImpl): Dispatch paint events.
456         (enableEvents): Lightweights enable events on parent component.
457         (coalesceEvents): Coalesce paint events, and select event type
458         using a switch.
459         (coalescePaintEvents): New method.
460         (processEvent): Fix unfortunate ordering of statements, and call
461         correct method for MOUSE_CLICKED.
462         (processPaintEvent): New method.
463         (addNotify): Allow container to notify children before event
464         mask is set in peer.
465         (addNotifyContainerChildren): New method.
466         (removeNotify): Visibility should not change on removeNotify.
467         (paramString): Implemented.
468         (list): Implemented two of the list methods.
469         * Container (myInsets): Removed, insets are managed by peer.
470         (getInsets): Query peer.
471         (addImpl): Fix reparenting, enable events for lightweights,
472         initialize component array.
473         (validate): Call doLayout in validateTree() instead.
474         (validateTree): Do nothing if already valid. Call beginValidate(),
475         endValidate() on peer. Call validateTree() instead of validate()
476         for children that are containers. Mark valid after validation of
477         children.
478         (setFont): Partial implementation.
479         (paint): Implemented.
480         (visitChildren): New method.
481         (visitChild): New method.
482         (update): Implemented.
483         (print): Implemented.
484         (paintComponents): Implemented.
485         (printComponents): Consider translation and clipping.
486         (getComponentAt): Ignore invisible children. Return this if no
487         child match.
488         (addNotify): Call super.
489         (addNotifyContainerChildren): New method.
490         (paramString): Implemented.
491         (list): Implemented.
492         * java/awt/EventQueue (invokeAndWait): Get system event queue the
493         right way.
494         (invokeLater): Likewise.
495         (isDispatchThread): Likewise.
496         * java/awt/FontMetrics (getLeading): Formula change.
497         (getDescent): Consider leading also.
498         (getMaxAscent): Default to getAscent().
499         (getMaxDescent): Default to getDescent.
500         (getMaxAdvance): Return value signifying unknown.
501         (charWidth): Both methods implemented.
502         (charsWidth): Implemented.
503         (bytesWidth): Implemented.
504         (getWidths): Implemented.
505         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
506         state): New fields.
507         (Frame): Rearragend constuctor chaining to disallow null being
508         passed as a graphics configuration.
509         (getTitle): Return empty string if null.
510         (dispose): Removed.
511         (getIconImage): New method.
512         (setIconImage): New method.
513         (finalize): New method.
514         (setMenuBar): Notify peer.
515         (isResizable): New method.
516         (setResizable): New method.
517         (getState): New method.
518         (getFont): Removed.
519         (remove): Implemented.
520         (removeNotify): New method.
521         (getFrames): New method.
522         * java/awt/Graphics.java: Implemented body of class.
523         * java/awt/Graphics2D.java: New file.
524         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
525         * java/awt/Image.java: Implemented body of class.
526         * java/awt/Panel.java (Panel): Call correct super constructor.
527         (addNotify): Implemented.
528         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
529         * java/awt/RenderingHints.java: New file.
530         * java/awt/Toolkit.java (createComponent): Implemented.
531         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
532         * java/awt/Window.java (Window): Two new constructors. Reordered
533         constructor chaining.
534         (getGraphicsConfigurationImpl): New method.
535         (finalize): Call super.
536         (addNotify): Call super.
537         (pack): Do layout stuff.
538         (show): Ensure that peer exists and that component is valid.
539         (dispose): Dispose owned children.
540         (getOwner): Simplify code, casting null pointers is valid.
541         (getGraphicsConfiguration): Ask peer if local value is null.
542         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
543         getcmd().
544         * java/awt/image/BufferedImage.java: New file.
545         * java/awt/image/RasterOp.java: New file.
546         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
547         More powerfull replacement for getColorModel().
548         (getColorModel) Removed.
549         (setEventMask) New method.
550         * Makefile.am: Added new files.
551         * Makefile.in: Rebuilt.
552
553 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
554
555         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
556         (finit_leg_name): New global.
557         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
558         `$finit$'. This is a backward compatibility hack.
559         (java::lang::Class::_getMethods): Likewise.
560
561 2000-08-15  Andrew Haley  <aph@cygnus.com>
562
563         * include/jvm.h (_Jv_HashCode): New hash code.
564
565 2000-08-15  Tom Tromey  <tromey@cygnus.com>
566
567         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
568
569 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
570
571         * THANKS: More thanks.
572
573 2000-08-10  Tom Tromey  <tromey@cygnus.com>
574
575         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
576         when errno not set.
577         (connect): Likewise.
578         (accept): Likewise.
579         (getOption): Likewise.
580         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
581         case when errno not set.
582         (peek): Likewise.
583         (send): Likewise.
584         (receive): Likewise.
585         (mcastGrp): Likewise.
586         (setOption): Likewise.
587         (getOption): Likewise.
588
589 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
590             John Stracke <francis@ecal.com>
591
592         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
593         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
594         getHttpHeaders().
595         (disconnect): Don't unset connected flag.
596         (getHeaderField (String)): Call connect() if not connected.
597         (getHeaderField (int)): Ditto.
598         (getHeaderFieldKey): Ditto.
599         (getHttpHeaders): Don't call connect(). 
600         * java/net/HttpURLConnection.java (instanceFollowRedirects,
601         gotResponseVals): New fields.
602         (getResponseCode): Call getResponseVals() conditionally.
603         (getResponseMessage): Ditto.
604         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
605
606 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
607
608         * Makefile.am: Move beans and applet classes to awt_java_source_files.
609         * Makefile.in: Rebuilt.
610         * java/awt/Color.java (getTransparency): New method.
611         * java/awt/Component.java: Various updates.
612         * java/awt/Container.java (removeNotify): Call super.removeNotify()
613         after dealing with children.
614         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
615         * java/awt/Window.java: Various new methods and updates.
616         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
617         to int for switch.
618         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
619         * java/awt/event/WindowEvent.java (paramString): Ditto.
620         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
621         try/catch block.
622         * java/awt/geom/Point2D.java (clone): Ditto.
623         * java/awt/geom/RectangularShape.java (clone): Ditto.
624         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
625         isAlphaPremultiplied): Make package-private, not private.       
626         
627 2000-08-08  Tom Tromey  <tromey@cygnus.com>
628
629         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
630         surrogate characters.
631         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
632         true.
633         (write): Correct handling of surrogate characters.
634
635 2000-08-07  Tom Tromey  <tromey@cygnus.com>
636
637         * java/lang/reflect/Method.java (hashCode): Use getName().
638         (toString): Likewise.
639         * java/lang/reflect/natMethod.cc (getType): Initialize
640         exception_types.
641
642         * java/lang/reflect/Method.java (toString): Use Class.getName, not
643         Class.toString.
644         * java/lang/reflect/Field.java (toString): Correct formatting.
645         From Corey Minyard.
646
647         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
648         rewrote.
649         (receive): Streamlined.
650
651 2000-08-05  Tom Tromey  <tromey@cygnus.com>
652
653         * java/io/PrintWriter.java: Merged comments from Classpath.
654         (printlnUnsynchronized): Removed.
655         (println()): Print the separator.
656         (println): Call println(), not printlnUnsynchronized.
657         (out): Now protected, to match spec.
658
659 2000-08-04  Tom Tromey  <tromey@cygnus.com>
660
661         * java/io/StreamTokenizer.java (TT_NONE): Now private.
662         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
663         For PR java.io/301.
664
665 2000-08-03  Warren Levy  <warrenl@cygnus.com>
666
667         * java/io/ObjectInputStream.java (readFields): Turn off
668         readDataFromBlock while reading via GetField.
669         (GetField$1.get(String, Object)): Pass Class of default value to
670         getField.
671         (getField): Allow for null default values.
672
673         * java/io/ObjectOutputStream.java: Fixed typo in comment.
674         (PutField$1.put): Fixed calls of checkType in most of the put
675         methods to pass the correct parameter.
676         (PutField$1.put(String, Object)): Allow for null value arg.
677         (PutField$1.write): Turn off writeDataAsBlocks while writing via
678         PutField.
679
680         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
681         typo in spec'ed field name.
682         (getSerialPersistentFields): Changed spelling of method to match
683         the correct spelling of the spec'ed field name.
684
685 2000-08-03  Tom Tromey  <tromey@cygnus.com>
686
687         * Makefile.in: Rebuilt.
688         * Makefile.am (awt_java_source_files): Added new files.
689
690 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
691
692         * Makefile.am: Add new AWT stubs.
693         * java/awt/Canvas.java: New placeholder class.
694         * java/awt/Checkbox.java: Ditto.
695         * java/awt/CheckboxMenuItem.java: Ditto.
696         * java/awt/Choice.java: Ditto.
697         * java/awt/Dialog.java: Ditto.
698         * java/awt/FileDialog.java: Ditto.
699         * java/awt/List.java: Ditto.
700         * java/awt/ScrollPane.java: Ditto.
701         * java/awt/TextField.java: Ditto.
702         * java/awt/datatransfer/Clipboard.java: Ditto.
703         * java/awt/Component.java (treeLock): Now a static String. Add comment.
704         * java/awt/MenuItem.java (MenuItem): Add default constructor.
705         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
706         Some commented out. Partially implemented.
707         * java/awt/natToolkit.cc: Removed file.
708
709 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
710
711         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
712         Fixes "make -j" builds.
713         * Makefile.in: Rebuild.
714
715 2000-08-02  Tom Tromey  <tromey@cygnus.com>
716
717         * Makefile.in: Rebuilt.
718         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
719         * java/net/natPlainSocketImpl.cc: Include posix.h.
720         (accept): Use _Jv_select.
721         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
722         (receive): Use _Jv_select.
723         * java/io/natFileDescriptorPosix.cc: Include posix.h.
724         (available): Use _Jv_select.
725         * java/lang/natSystem.cc: Include posix.h.
726         (currentTimeMillis): Use _Jv_gettimeofday.
727         * include/posix.h: New file.
728         * posix.cc: New file.
729
730         * scripts/encodings.pl: New file.
731         * Makefile.in: Rebuilt.
732         * Makefile.am (convert_source_files): Added IOConverter.java.
733         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
734         IOConverter.
735         (getDefaultDecodingClass): Canonicalize default encoding name.
736         (getEncoder): Likewise.
737         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
738         IOConverter.
739         (getDefaultDecodingClass): Canonicalize default encoding name.
740         (getDecoder): Likewise.
741         * gnu/gcj/convert/IOConverter.java: New file.
742
743 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
744
745         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
746         to match C declaration in ffi.h.
747         * Makefile.am: Add java/awt/Button.java.
748         * Makefile.in: Rebuilt.
749
750 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
751
752         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
753         cast of the second argument to `ffi_raw_call' changed to match
754         prototype.
755
756 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
757
758         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
759         argument to `ffi_raw_call' changed to match prototype.
760
761 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
762
763         * java/awt/Component.java (toString): Implemented.
764         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
765         dispatchEvent() to dispatch the event.
766         (removeImpl): Ditto.
767
768 2000-07-30  Anthony Green  <green@redhat.com>
769
770         * java/awt/Component.java: Add treeLock object.
771         (getTreeLock): Implement.
772         (isShowing): Implement.
773
774 2000-07-30  Tom Tromey  <tromey@cygnus.com>
775
776         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
777
778         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
779
780         * java/awt/Window.java (addNotify): Wrote.
781         (addWindowListener): Wrote.
782         (getLocale): Wrote.
783         (getWarningString): Wrote.
784         (processEvent): Wrote.
785         (processWindowEvent): Wrote.
786         (removeWindowListener): Wrote.
787         (show): Call validate(), setVisible().
788         (toBack): Wrote.
789         (toFront): Wrote.
790
791         * java/awt/Toolkit.java (createWindow): Declare.
792
793         * java/awt/Frame.java (addNotify): Use getToolkit to find
794         toolkit.
795
796         * java/awt/Component.java (invalidate): Wrote.
797         (isValid): Wrote.
798         (getToolkit): Wrote.
799
800         * java/awt/Container.java (addContainerListener): Removed
801         unnecessary cast.
802         (removeContainerListener): Likewise.
803         (addImpl): Wrote.
804         (add(Component)): Use it.
805         (add(String,Component)): Likewise.
806         (add(Component,int)): Likewise.
807         (add(Component,Object)): Likewise.
808         (add(Component,Object,int)): Likewise.
809         (doLayout): Wrote.
810         (getAlignmentX): Wrote.
811         (getAlignmentY): Wrote.
812         (getComponentAt): Wrote.
813         (getMaximumSize): Wrote.
814         (invalidate): Wrote.
815         (list(PrintStream,int)): Wrote.
816         (list(PrintWriter,int)): Wrote.
817         (getMinimumSize): Wrote.
818         (getPreferredSize): Wrote.
819         (printComponents): Wrote.
820         (processContainerEvent): Look at containerListener, not
821         componentListener.
822         (remove): Added event processing and peer destruction.
823         (removeAll): Use remove.
824         (removeNotify): Wrote.
825         (validate): Wrote.
826         (validateTree): Wrote.
827
828         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
829         * java/awt/Label.java (addNotify): Do nothing if peer exists.
830         * java/awt/Container.java (addNotify): Don't create Container
831         peer.
832         * java/awt/Button.java (addNotify): Do nothing if peer exists.
833
834 2000-07-30  Tom Tromey  <tromey@cygnus.com>
835
836         * java/awt/Container.java (remove(int)): Wrote.
837         (remove(Component)): Wrote.
838         (add(Component)): Wrote.
839         (add(Component,int)): Wrote.
840         (removeAll): Wrote.
841         (addNotify): Set our own peer.
842         * java/awt/Scrollbar.java (listeners): Changed type.
843         (Scrollbar): Don't initialize listeners.
844         (addNotify): Wrote.
845         (setValue): Call setValues.
846         (setMinimum): Likewise.
847         (setMaxPriority): Likewise.
848         (setVisibleAmount): Likewise.
849         (setValues): Wrote.
850         (setUnitIncrement): Forward to peer.
851         (setLineIncrement): Call setUnitIncrement.
852         (setPageIncrement): Call setBlockIncrement.
853         (setBlockIncrement): Forward to peer.
854         (addAdjustmentListener): Rewrote.
855         (removeAdjustmentListener): Rewrote.
856         (processAdjustmentEvent): Rewrote.
857         (paramString): Wrote.
858         * Makefile.in: Rebuilt.
859         * Makefile.am (awt_java_source_files): Added Button.java.
860         * java/awt/Button.java: New file.
861         * java/awt/Toolkit.java (createLabel): Declare.
862         (createButton): Likewise.
863         (createScrollbar): Likewise.
864         (createContainer): Likewise.
865         * java/awt/Label.java (addNotify): Wrote.
866         (setAlignment): Call setAlignment in the peer.
867         (setText): Call setText in the peer.
868
869 2000-07-28  Warren Levy  <warrenl@cygnus.com>
870
871         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
872         NotSerializableException with just the class name.
873
874 2000-07-26  Andrew Haley  <aph@cygnus.com>
875
876         * interpret.cc (continue1): Insert missing break into switch.
877
878 2000-07-28  Warren Levy  <warrenl@cygnus.com>
879
880         * java/io/ObjectStreamException.java: Made constructors protected.
881
882 2000-07-27  Tom Tromey  <tromey@cygnus.com>
883
884         * java/io/OutputStreamWriter.java (close): Only flush if not
885         closed.
886
887 2000-07-27  Warren Levy  <warrenl@cygnus.com>
888
889         * mauve-libgcj: Activated serialization tests.
890         * gcj/field.h (getModifiers): Mask off unknown flags.
891         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
892         spurious bits don't cause discrepancies.
893         * java/io/ObjectOutputStream.java: Fixed typo in comment.
894         * java/io/ObjectStreamClass.java: Fixed typos in comments.
895         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
896         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
897         * java/lang/Throwable.java (serialVersionUID): New field.
898         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
899         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
900         unknown flags.
901         * java/lang/reflect/natMethod.cc: Ditto.
902         * java/security/Key.java (serialVersionUID): Removed field for now.
903         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
904         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
905
906 2000-07-22  Tom Tromey  <tromey@cygnus.com>
907
908         * java/awt/geom/RectangularShape.java (getPathIterator):
909         Wrote.
910
911 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
912
913         * libjava/java/awt/image/ColorModel.java: New file, replaces the
914         stub libjava/java/awt/ColorModel.java which was located in the
915         wrong package.
916         * libjava/java/awt/image/ComponentColorModel.java: New file.
917         * libjava/java/awt/image/ComponentSampleModel.java: New file.
918         * libjava/java/awt/image/DataBuffer.java: New file.
919         * libjava/java/awt/image/DataBufferByte.java: New file.
920         * libjava/java/awt/image/DataBufferInt.java: New file.
921         * libjava/java/awt/image/DataBufferUShort.java: New file.
922         * libjava/java/awt/image/DirectColorModel.java: New file.
923         * libjava/java/awt/image/PackedColorModel.java: New file.
924         * libjava/java/awt/image/Raster.java: New file.
925         * libjava/java/awt/image/SampleModel.java: New file.
926         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
927         file.
928         * libjava/java/awt/image/IndexColorModel.java: New file.
929         * libjava/java/awt/image/ImageConsumer.java: Removed import of
930         java.awt.ColorModel stub.
931
932         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
933         * gnu/gcj/util/Buffers.java: New file, utility class.
934
935         * libjava/Makefile.am: Updated to include new files.
936         * libjava/Makefile.in: Rebuilt.
937
938 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
939
940         * java/io/StreamTokenizer.java: Merged with classpath.
941
942 2000-07-20  Tom Tromey  <tromey@cygnus.com>
943
944         * Makefile.in: Rebuilt.
945         * Makefile.am (awt_java_source_files): Updated for new files.
946         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
947         * java/awt/Label.java: New file.
948         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
949         (createIntersection, createUnion, getBounds2D): New methods.
950         * java/awt/Scrollbar.java: New file.
951         * java/awt/Shape.java: Updated to 1.2.
952         * java/awt/geom/AffineTransform.java: New file.
953         * java/awt/geom/Ellipse2D.java: New file.
954         * java/awt/geom/NoninvertibleTransformException.java: New file.
955         * java/awt/geom/PathIterator.java: New file.
956         * java/awt/geom/Rectangle2D.java: New file.
957         * java/awt/geom/RectangularShape.java: New file.
958         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
959         * java/awt/geom/IllegalPathStateException.java: New file.
960         
961         * scripts/showval.java: New file.
962
963         * scripts/classes.pl (scan): Print inner classes properly.
964         * gcj/javaprims.h: Updated class list.
965
966         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
967         initialize String fields for interpreted classes.  Fixes bug
968         reported by Hans Boehm.
969
970         * java/io/File.java (getParentFile): New method, from Classpath
971         via Oskar Liljeblad.
972
973         * java/util/Vector.java (remove(Object)): Implemented.
974
975 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
976
977         * java/lang/natThrowable.cc (fillInStackTrace): Check for
978         zero return from backtrace().
979
980 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
981
982         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
983         synchronized block.
984         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
985         before calling notifyAll().
986
987 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
988
989         Add missing files from last check-in:
990         * java/awt/image/ImageConsumer.java: New file.
991         * java/awt/image/ImageProducer.java: New file.
992         * java/awt/image/ImageObserver.java: New file.
993
994 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
995
996         Merged implementation of java.applet from classpath:
997         * java/applet/Applet.java: New file.
998         * java/applet/AppletContext.java: New file.
999         * java/applet/AppletStub.java: New file.
1000         * java/applet/AudioClip.java: New file.
1001
1002         * Makefile.am: Added new java.applet classes.
1003         * Makefile.in: Rebuilt.
1004
1005 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
1006
1007         AWT Stuff:
1008         * java/util/ResourceBundle.java (getLocale): stub.
1009         * Makefile.am: Added new AWT classes.
1010         * Makefile.in: Rebuilt.
1011         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
1012         constructors. Fix toString() and paramString().
1013         * java/awt/AWTEventMulticaster.java: New class. Implemented.
1014         * java/awt/CheckboxGroup.java: New class.
1015         * java/awt/ColorModel.java: New class.
1016         * java/awt/Component.java: Added stubs for most methods. Implemented 
1017         event dispatch.
1018         * java/awt/Container.java: ditto.
1019         * java/awt/ComponentOrientation.java: New class. Partly implemented.
1020         * java/awt/Cursor.java: ditto.
1021         * java/awt/Event.java: Fix paramString().
1022         * java/awt/EventQueue.java: New class. Implemented.
1023         * java/awt/Font.java: Added additional stub methods. Implemented 
1024         toString().
1025         * java/awt/FontMetrics.java: New class. Stubbed.
1026         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
1027         Java2D parts.
1028         * java/awt/Insets.java: New class. Implemented.
1029         * java/awt/Menu.java: Add new methods. Partially implemented.
1030         * java/awt/MenuItem.java: Add new methods and fields. Partially 
1031         implemented.
1032         * java/awt/MenuShortcut.java: New class. Implemented.
1033         * java/awt/Panel.java: New class. Placeholder.
1034         * java/awt/PopupMenu.java: New class. Stubbed.
1035         * java/awt/Rectangle.java: New class. Implemented.
1036         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
1037         * java/awt/event/ActionEvent.java: Implement paramString().
1038         * java/awt/event/AdjustmentEvent.java: Implement paramString().
1039         * java/awt/event/ComponentEvent.java: Implement paramString().
1040         * java/awt/event/ContainerEvent.java: Implement paramString().
1041         * java/awt/event/FocusEvent.java: Implement paramString().
1042         * java/awt/event/HierarchyBoundsAdapter.java: New class.
1043         * java/awt/event/HierarchyBoundsListener.java: New class.
1044         * java/awt/event/HierarchyEvent.java: New class.
1045         * java/awt/event/HierarchyListener.java: New class.
1046         * java/awt/event/InputMethodEvent.java: Implement paramString().
1047         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
1048         exception if !catchExceptions.
1049         * java/awt/event/ItemEvent.java: Implement paramString().
1050         * java/awt/event/KeyEvent.java: Implement paramString().
1051         * java/awt/event/MouseEvent.java: Implement paramString().
1052         * java/awt/event/PaintEvent.java: Implement paramString().
1053         * java/awt/event/TextEvent.java: Implement paramString().
1054         * java/awt/event/WindowEvent.java: Implement paramString().
1055         
1056         AWT Peer interfaces:
1057         * java/awt/peer/ButtonPeer.java: New file.
1058         * java/awt/peer/ListPeer.java: New file.
1059         * java/awt/peer/CanvasPeer.java: New file.
1060         * java/awt/peer/MenuBarPeer.java: New file.
1061         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
1062         * java/awt/peer/MenuComponentPeer.java: New file.
1063         * java/awt/peer/CheckboxPeer.java: New file.
1064         * java/awt/peer/MenuItemPeer.java: New file.
1065         * java/awt/peer/ChoicePeer.java: New file.
1066         * java/awt/peer/MenuPeer.java: New file.
1067         * java/awt/peer/ComponentPeer.java: Implemented.
1068         * java/awt/peer/PanelPeer.java: New file.
1069         * java/awt/peer/ContainerPeer.java: Implemented.
1070         * java/awt/peer/PopupMenuPeer.java: New file.
1071         * java/awt/peer/DialogPeer.java: New file.
1072         * java/awt/peer/ScrollPanePeer.java: New file.
1073         * java/awt/peer/FileDialogPeer.java: New file.
1074         * java/awt/peer/ScrollbarPeer.java: New file.
1075         * java/awt/peer/FontPeer.java: New file.
1076         * java/awt/peer/TextAreaPeer.java: New file.
1077         * java/awt/peer/FramePeer.java: Implemented.
1078         * java/awt/peer/TextComponentPeer.java: New file.
1079         * java/awt/peer/LabelPeer.java: New file.
1080         * java/awt/peer/TextFieldPeer.java: New file.
1081         * java/awt/peer/LightweightPeer.java: New file.
1082         * java/awt/peer/WindowPeer.java: Implemented.
1083
1084 2000-07-06  Tom Tromey  <tromey@cygnus.com>
1085
1086         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
1087         Initialize static final String fields.
1088
1089 2000-07-03  Tom Tromey  <tromey@cygnus.com>
1090
1091         * java/io/PrintWriter.java (print): Call write(String), not
1092         print(String).  See PR libgcj/277.
1093         (print(String)): Use write, not out.write.
1094
1095 2000-06-30  Tom Tromey  <tromey@cygnus.com>
1096
1097         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
1098
1099 2000-06-27  Andrew Haley  <aph@cygnus.com>
1100
1101        * java/io/File.java (createTempFile): Close the FileDescriptor
1102        used to create a temp file.  Fixes some of PR 203.
1103        * java/io/natFileDescriptorPosix.cc (open): Call garbage
1104        collection if we run out of file handles.
1105
1106 2000-06-28  Warren Levy  <warrenl@cygnus.com>
1107
1108         * gnu/java/security/provider/Gnu.java: New file.
1109         * gnu/java/security/provider/SHA.java: New file.
1110         * gnu/java/security/provider/SHA1PRNG.java: New file.
1111         * Makefile.am: Added the above files.
1112         * Makefile.in: Rebuilt.
1113
1114         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
1115
1116 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
1117
1118         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
1119         (destroyed_flag): Removed.
1120         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
1121         (activeCount): Added spec note.
1122
1123 2000-06-27  Warren Levy  <warrenl@cygnus.com>
1124
1125         * java/security/Principal.java: New file.
1126         * Makefile.am: Added Principal.java.
1127         * Makefile.in: Rebuilt.
1128
1129 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1130
1131         * java/awt/event/MouseEvent.java: Fixed coordinate space
1132         confusion.
1133
1134 2000-06-27  Tom Tromey  <tromey@cygnus.com>
1135
1136         * java/io/PushbackInputStream.java (read): If there are characters
1137         in the buffer, don't also call super.read().
1138         * java/io/PushbackReader.java (read): If there are characters in
1139         the buffer, don't also call super.read().
1140
1141         * java/lang/Double.java (valueOf): Call parseDouble().
1142
1143 2000-06-26  Warren Levy  <warrenl@cygnus.com>
1144
1145         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
1146         (newVal): Renamed to newValue.
1147         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
1148         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
1149         (revokeNow): Renamed to invalidateRefs.
1150         * java/io/OptionalDataException.java: Updated FIXME.
1151         (eof): New placeholder field.
1152         (length); Ditto.
1153         * java/io/WriteAbortedException.java (message): Made transient.
1154         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
1155         * java/lang/Throwable.java (stackTrace): Made transient.
1156         * java/net/InetAddress.java: Made Serializable.
1157         * java/security/KeyPair.java: Made Serializable.
1158         * java/security/Provider.java: Replaced with Classpath version that
1159         implements serialization and proper methods.
1160         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
1161         (limits): Renamed to choiceLimits.
1162
1163 2000-06-24  Tom Tromey  <tromey@cygnus.com>
1164
1165         * java/lang/natDouble.cc (parseDouble): Renamed from
1166         doubleValueOf.
1167         * java/lang/Double.java (parseDouble): Renamed from
1168         doubleValueOf.  Now public.
1169
1170 2000-06-23  Andrew Haley  <aph@cygnus.com>
1171
1172         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
1173         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
1174
1175 2000-06-23  Tom Tromey  <tromey@cygnus.com>
1176
1177         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
1178         * java/lang/natDouble.cc: Always include <alloca.h>.
1179         Fix for PR libgcj/267.
1180
1181 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
1182
1183         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
1184         comply with classpath VM spec.
1185         (add(Group)): Rename to addGroup().
1186         * java/lang/Thread.java (Thread): Use addThread().
1187         * java/lang/natThread.cc (finish_): Use removeThread().
1188
1189 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
1190
1191         * java/lang/ThreadGroup.java: Merged with classpath.
1192         * prims.cc (_Jv_RunMain): Don't use `main_group'.
1193         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
1194         argument.
1195         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
1196         ThreadGroup.root if Thread.currentThread is null. Honour the 
1197         ThreadGroup's max priority setting.
1198
1199 2000-06-18  Tom Tromey  <tromey@cygnus.com>
1200
1201         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
1202         returned class.  For PR gcj/260.
1203
1204 2000-06-16  Tom Tromey  <tromey@cygnus.com>
1205
1206         Fix for PR libgcj/261:
1207         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
1208         argument.
1209         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
1210         argument.  (This is a patch from long ago that somehow went
1211         missing.)
1212
1213 2000-06-15  Tom Tromey  <tromey@cygnus.com>
1214
1215         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
1216         (read): Use it.
1217         (write): Likewise.
1218
1219 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1220
1221         Fix for PR java.lang/258:
1222         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
1223         JV_STATE_DONE, to prevent accidental initialization.
1224         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
1225         _Jv_InterfaceAssignableFrom if target is an interface and source is an
1226         interface or an abstract class. Remove redundant initializeClass calls. 
1227         Remove duplicate if_idt test.
1228         (_Jv_InterfaceAssignableFrom): New function.
1229         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
1230
1231 2000-05-31  Tom Tromey  <tromey@cygnus.com>
1232
1233         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
1234         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
1235         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
1236         (NUM_OBJECT_METHODS): New define.
1237         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1238         `array_vtable' parameter.  Added assertion.
1239         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
1240         parameter.
1241
1242 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
1243
1244         * gcj/cni.h: Include <string.h>.
1245         * defineclass.cc: Include <alloca.h>.
1246         * interpret.cc: Ditto.
1247         * gij.cc: Include <stdlib.h>.
1248
1249 2000-05-30  Tom Tromey  <tromey@cygnus.com>
1250
1251         * include/name-finder.h: Include <sys/wait.h>.
1252         (_Jv_name_finder::pid): Now of type `pid_t'.
1253         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
1254         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
1255         `proc.waitFor()'.
1256
1257 2000-05-24  Warren Levy  <warrenl@cygnus.com>
1258
1259         * java/io/ObjectOutputStream.java (writeObject): Use component type
1260         when writing arrays.
1261         Fixed typo.
1262
1263 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
1264
1265         Fix for PR libgcj/226:
1266         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
1267         since this is an installed header.
1268         
1269         Fix for PR libgcj/228:
1270         * java/util/zip/ZipFile (getInputStream): Create inflater with 
1271         nowrapper option.
1272         
1273         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
1274         with DataFormatException.       
1275
1276 2000-05-20  Tom Tromey  <tromey@cygnus.com>
1277
1278         * Makefile.in: Rebuilt.
1279         * Makefile.am (hack1): Removed.
1280         (awto_files): Likewise.
1281         (libgcjawt_la_SOURCES): Likewise.
1282         (EXTRA_libgcjawt_la_SOURCES): Likewise.
1283         (libgcjawt_la_DEPENDENCIES): Likewise.
1284         (libgcjawt_la_LIBADD): Likewise.
1285         (libgcjawt_la_LDFLAGS): Likewise.
1286         (libgcjawt_la_LINK): Likewise.
1287         ($(awt_java_source_files:.java=.class)): Likewise.
1288         (libgcj.zip): Don't depend on AWT files.
1289         (MOSTLYCLEANFILES): Don't include AWT files.
1290         ($(awto_files)): Removed.
1291         (nat_headers): Removed AWT files.
1292         (cond_awt_java_source_files): Removed.
1293         (ordinary_java_source_files): Added awt_java_source_files.
1294         * libgcj.spec.in (*lib): Removed -lgcjawt.
1295         * configure: Rebuilt.
1296         * configure.in: Removed --enable-java-awt option.
1297
1298 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
1299
1300         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
1301         (ZipEntry): Copy the `name' field.
1302         (clone): Implement JDK1.2 method.
1303         (setCompressedSize): ditto.
1304         (hashCode): ditto.
1305
1306 2000-05-19  Tom Tromey  <tromey@cygnus.com>
1307
1308         * java/io/BufferedWriter.java: Merged with Classpath.
1309         * java/io/BufferedOutputStream.java: Merged with Classpath.
1310
1311 2000-05-16  Andrew Haley  <aph@cygnus.com>
1312
1313         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
1314         build_ia64_frame_state.
1315         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
1316         defintion in gcc.
1317
1318 2000-05-15  Warren Levy  <warrenl@cygnus.com>
1319
1320         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
1321         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
1322         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
1323         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
1324         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
1325         * gnu/gcj/beans/editors/FontEditor.java: Removed.
1326         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
1327         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
1328         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
1329         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
1330         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
1331         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
1332         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
1333         * gnu/gcj/beans/editors/StringEditor.java: Removed.
1334         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
1335         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
1336         * gnu/gcj/io/NullOutputStream.java: Removed.
1337         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
1338         * gnu/gcj/lang/ArrayHelper.java: Removed.
1339         * gnu/gcj/lang/ClassHelper.java: Removed.
1340         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
1341
1342         * gnu/java/beans/BeanInfoEmbryo.java: New file.
1343         * gnu/java/beans/EmptyBeanInfo.java: New file.
1344         * gnu/java/beans/ExplicitBeanInfo.java: New file.
1345         * gnu/java/beans/IntrospectionIncubator.java: New file.
1346         * gnu/java/beans/editors/ColorEditor.java: New file.
1347         * gnu/java/beans/editors/FontEditor.java: New file.
1348         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
1349         * gnu/java/beans/editors/NativeByteEditor.java: New file.
1350         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
1351         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
1352         * gnu/java/beans/editors/NativeIntEditor.java: New file.
1353         * gnu/java/beans/editors/NativeLongEditor.java: New file.
1354         * gnu/java/beans/editors/NativeShortEditor.java: New file.
1355         * gnu/java/beans/editors/StringEditor.java: New file.
1356         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
1357         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
1358         * gnu/java/io/NullOutputStream.java: New file.
1359         * gnu/java/io/ObjectIdentityWrapper.java: New file.
1360         * gnu/java/lang/ArrayHelper.java: New file.
1361         * gnu/java/lang/ClassHelper.java: New file.
1362         * gnu/java/lang/reflect/TypeSignature.java: New file.
1363
1364         * Makefile.am: Updated for moving Classpath files from gnu/gcj
1365         namespace back to the original Classpath gnu/java namespace.
1366         * Makefile.in: Rebuilt.
1367
1368         * java/beans/Beans.java: Namespace change.
1369         * java/beans/EventSetDescriptor.java: Namespace change.
1370         * java/beans/Introspector.java: Namespace change.
1371         * java/beans/PropertyEditorManager.java: Namespace change.
1372         * java/io/ObjectInputStream.java: Namespace change.
1373         * java/io/ObjectOutputStream.java: Namespace change.
1374         * java/io/ObjectStreamClass.java: Namespace change.
1375         * java/io/ObjectStreamField.java: Namespace change.
1376
1377 2000-04-21  Warren Levy  <warrenl@cygnus.com>
1378
1379         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
1380         now that compiler patch is available.
1381         Removed unneeded System.loadLibrary.
1382         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
1383         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
1384
1385 2000-04-19  Andrew Haley  <aph@cygnus.com>
1386
1387         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
1388         and target classes have been initialized.
1389
1390 2000-04-19  Andrew Haley  <aph@cygnus.com>
1391
1392         * java/lang/String.java: implement Serializable, Comparable.
1393         (compareTo (Object)): New method.
1394
1395 2000-04-19  Warren Levy  <warrenl@cygnus.com>
1396
1397         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
1398         instead of getField to retrieve non-public field.
1399         (getSerialPersistantFields): Ditto.
1400
1401 2000-04-18  Warren Levy  <warrenl@cygnus.com>
1402
1403         * mauve-libgcj: Turned off object serialization tests temporarily
1404         due to compiler error.
1405
1406 2000-04-17  Warren Levy  <warrenl@cygnus.com>
1407
1408         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
1409         to avoid build problem.
1410         (DEBUGln): Ditto.
1411         * mauve-libgcj: Turned on object serialization tests.
1412
1413 2000-04-17  Tom Tromey  <tromey@cygnus.com>
1414
1415         * libgcj.spec.in (*lib): Added -lgcjawt.
1416
1417 2000-04-17  Andrew Haley  <aph@cygnus.com>
1418
1419         * Makefile.am: Add new files: 
1420         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
1421         gnu/gcj/io/shs.cc.
1422         * Makefile.in: Rebuilt.
1423
1424         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
1425         interface that has no implementations.
1426         Check for an attempt to assign an abstract class to an interface.
1427
1428         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
1429         if we fail to find MessageDigest.getInstance ("SHA").
1430
1431         * gnu/gcj/io/SimpleSHSStream.java: New file.
1432         * gnu/gcj/io/natSimpleSHSStream.java: New file.
1433         * gnu/gcj/io/shs.cc: New file.
1434         * gnu/gcj/io/shs.h: new file.
1435
1436         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
1437         serializable.
1438
1439         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
1440         punctuation from the classname of an array element.
1441
1442         * gcj/javaprims.h: Add SimpleDigestStream.
1443         
1444 2000-04-17  Andrew Haley  <aph@cygnus.com>
1445
1446         * java/lang/natClass.cc (getPrivateField): Make recursive calls
1447         to getPrivateField for superclasses.
1448  
1449 2000-04-14  Andrew Haley  <aph@cygnus.com>
1450
1451         * Makefile.am: Add new files:
1452         java/io/ObjectOutputStream$PutField.h,
1453         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
1454         java/io/natObjectOutputStream.cc
1455         * Makefile.in: Rebuilt.
1456         * gcj/Makefile.in: Rebuilt.
1457         * include/Makefile.in: Rebuilt.
1458         * java/lang/Class.h (getPrivateField): New method.
1459         (getPrivateMethod): Ditto.
1460         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
1461         and java::io::ObjectStreamClass our friends.
1462         * java/lang/natClass.cc (getPrivateField): New method.
1463         (getPrivateMethod): Ditto.
1464         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
1465         * gcj/javaprims.h: Add serialization classes.   
1466         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
1467         (setByteField): Ditto.
1468         (setCharField): Ditto.
1469         (setDoubleField): Ditto.
1470         (setFloatField): Ditto.
1471         (setIntField): Ditto.
1472         (setLongField): Ditto.
1473         (setShortField): Ditto.
1474         (setObjectField): Ditto.
1475         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
1476         Java.
1477         (getByteField): Ditto.
1478         (getCharField): Ditto.
1479         (getDoubleField): Ditto.
1480         (getFloatField): Ditto.
1481         (getIntField): Ditto.
1482         (getLongField): Ditto.
1483         (getShortField): Ditto.
1484         (getObjectField): Ditto.
1485         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
1486         Java.
1487         (getSerialPersistantFields): Ditto.
1488         (getDefinedSUID): Ditto.
1489         * java/io/natObjectOutputStream.cc: New file.
1490         * java/io/natObjectInputStream.cc: New file.
1491         
1492 2000-04-13  Warren Levy  <warrenl@cygnus.com>
1493
1494         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
1495         problems.  Revert to previous version to reproduce and when fixed.
1496
1497 2000-04-13  Warren Levy  <warrenl@cygnus.com>
1498
1499         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
1500         * gnu/gcj/io/NullOutputStream.java: New file.
1501         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
1502         * java/io/BlockDataException.java: New file.
1503         * java/io/Externalizable.java: New file.
1504         * java/io/InvalidClassException.java: New file.
1505         * java/io/InvalidObjectException.java: New file.
1506         * java/io/NotActiveException.java: New file.
1507         * java/io/NotSerializableException.java: New file.
1508         * java/io/ObjectInput.java: New file.
1509         * java/io/ObjectInputStream.java: New file.
1510         * java/io/ObjectInputValidation.java: New file.
1511         * java/io/ObjectOutput.java: New file.
1512         * java/io/ObjectOutputStream.java: New file.
1513         * java/io/ObjectStreamClass.java: New file.
1514         * java/io/ObjectStreamConstants.java: New file.
1515         * java/io/ObjectStreamField.java: New file.
1516         * java/io/Replaceable.java: New file.
1517         * java/io/Resolvable.java: New file.
1518         * java/io/SerializablePermission.java: New file.
1519         * java/io/WriteAbortedException.java: New file.
1520         * java/security/BasicPermission.java: New file.
1521         * java/security/DigestOutputStream.java: New file.
1522         * java/security/Guard.java: New file.
1523         * java/security/Permission.java: New file.
1524         * java/security/PermissionCollection.java: New file.
1525         * Makefile.am: Added above files.
1526         * Makefile.in: Rebuilt.
1527
1528         * java/beans/Beans.java (instantiate): Activated serialization code.
1529         * java/lang/SecurityManager.java (checkPermission): New method.
1530
1531 2000-04-12  Warren Levy  <warrenl@cygnus.com>
1532
1533         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
1534         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
1535         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
1536         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
1537         * gnu/gcj/beans/editors/ColorEditor.java: New file.
1538         * gnu/gcj/beans/editors/FontEditor.java: New file.
1539         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
1540         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
1541         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
1542         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
1543         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
1544         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
1545         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
1546         * gnu/gcj/beans/editors/StringEditor.java: New file.
1547         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
1548         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
1549         * gnu/gcj/lang/ArrayHelper.java: New file.
1550         * gnu/gcj/lang/ClassHelper.java: New file.
1551         * java/beans/BeanDescriptor.java: New file.
1552         * java/beans/BeanInfo.java: New file.
1553         * java/beans/Beans.java: New file.
1554         * java/beans/Customizer.java: New file.
1555         * java/beans/DesignMode.java: New file.
1556         * java/beans/EventSetDescriptor.java: New file.
1557         * java/beans/FeatureDescriptor.java: New file.
1558         * java/beans/IndexedPropertyDescriptor.java: New file.
1559         * java/beans/IntrospectionException.java: New file.
1560         * java/beans/Introspector.java: New file.
1561         * java/beans/MethodDescriptor.java: New file.
1562         * java/beans/ParameterDescriptor.java: New file.
1563         * java/beans/PropertyChangeEvent.java: New file.
1564         * java/beans/PropertyChangeListener.java: New file.
1565         * java/beans/PropertyChangeSupport.java: New file.
1566         * java/beans/PropertyDescriptor.java: New file.
1567         * java/beans/PropertyEditor.java: New file.
1568         * java/beans/PropertyEditorManager.java: New file.
1569         * java/beans/PropertyEditorSupport.java: New file.
1570         * java/beans/PropertyVetoException.java: New file.
1571         * java/beans/SimpleBeanInfo.java: New file.
1572         * java/beans/VetoableChangeListener.java: New file.
1573         * java/beans/VetoableChangeSupport.java: New file.
1574         * java/beans/Visibility.java: New file.
1575         * java/beans/beancontext/BeanContext.java: New file.
1576         * java/beans/beancontext/BeanContextChild.java: New file.
1577         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
1578         * java/beans/beancontext/BeanContextChildSupport.java: New file.
1579         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
1580         * java/beans/beancontext/BeanContextEvent.java: New file.
1581         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
1582         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
1583         * java/beans/beancontext/BeanContextProxy.java: New file.
1584         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
1585         New file.
1586         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
1587         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
1588         New file.
1589         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
1590         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
1591         New file.
1592         * java/beans/beancontext/BeanContextServices.java: New file.
1593         * java/beans/beancontext/BeanContextServicesListener.java: New file.
1594         * java/util/AbstractCollection.java: New file.
1595         * java/util/AbstractList.java: New file.
1596         * java/util/Arrays.java: New file.
1597         * Makefile.am: Added above files.
1598         * Makefile.in: Rebuilt.
1599
1600 2000-04-11  Warren Levy  <warrenl@cygnus.com>
1601
1602         * java/awt/AWTError.java: New file.
1603         * java/awt/AWTEvent.java: New file.
1604         * java/awt/AWTException.java: New file.
1605         * java/awt/ActiveEvent.java: New file.
1606         * java/awt/Adjustable.java: New file.
1607         * java/awt/BorderLayout.java: New file.
1608         * java/awt/Color.java: New file.
1609         * java/awt/Component.java: New file.
1610         * java/awt/Container.java: New file.
1611         * java/awt/Dimension.java: New file.
1612         * java/awt/Event.java: New file.
1613         * java/awt/Font.java: New file.
1614         * java/awt/Frame.java: New file.
1615         * java/awt/Graphics.java: New file.
1616         * java/awt/IllegalComponentStateException.java: New file.
1617         * java/awt/Image.java: New file.
1618         * java/awt/ItemSelectable.java: New file.
1619         * java/awt/LayoutManager.java: New file.
1620         * java/awt/LayoutManager2.java: New file.
1621         * java/awt/Menu.java: New file.
1622         * java/awt/MenuBar.java: New file.
1623         * java/awt/MenuComponent.java: New file.
1624         * java/awt/MenuContainer.java: New file.
1625         * java/awt/MenuItem.java: New file.
1626         * java/awt/Paint.java: New file.
1627         * java/awt/PaintContext.java: New file.
1628         * java/awt/Point.java: New file.
1629         * java/awt/Rectangle.java: New file.
1630         * java/awt/Shape.java: New file.
1631         * java/awt/TextArea.java: New file.
1632         * java/awt/TextComponent.java: New file.
1633         * java/awt/Toolkit.java: New file.
1634         * java/awt/Transparency.java: New file.
1635         * java/awt/Window.java: New file.
1636         * java/awt/natToolkit.cc: New file.
1637         * java/awt/event/AWTEventListener.java: New file.
1638         * java/awt/event/ActionEvent.java: New file.
1639         * java/awt/event/ActionListener.java: New file.
1640         * java/awt/event/AdjustmentEvent.java: New file.
1641         * java/awt/event/AdjustmentListener.java: New file.
1642         * java/awt/event/ComponentAdapter.java: New file.
1643         * java/awt/event/ComponentEvent.java: New file.
1644         * java/awt/event/ComponentListener.java: New file.
1645         * java/awt/event/ContainerAdapter.java: New file.
1646         * java/awt/event/ContainerEvent.java: New file.
1647         * java/awt/event/ContainerListener.java: New file.
1648         * java/awt/event/FocusAdapter.java: New file.
1649         * java/awt/event/FocusEvent.java: New file.
1650         * java/awt/event/FocusListener.java: New file.
1651         * java/awt/event/InputEvent.java: New file.
1652         * java/awt/event/InputMethodEvent.java: New file.
1653         * java/awt/event/InputMethodListener.java: New file.
1654         * java/awt/event/InvocationEvent.java: New file.
1655         * java/awt/event/ItemEvent.java: New file.
1656         * java/awt/event/ItemListener.java: New file.
1657         * java/awt/event/KeyAdapter.java: New file.
1658         * java/awt/event/KeyEvent.java: New file.
1659         * java/awt/event/KeyListener.java: New file.
1660         * java/awt/event/MouseAdapter.java: New file.
1661         * java/awt/event/MouseEvent.java: New file.
1662         * java/awt/event/MouseListener.java: New file.
1663         * java/awt/event/MouseMotionAdapter.java: New file.
1664         * java/awt/event/MouseMotionListener.java: New file.
1665         * java/awt/event/PaintEvent.java: New file.
1666         * java/awt/event/TextEvent.java: New file.
1667         * java/awt/event/TextListener.java: New file.
1668         * java/awt/event/WindowAdapter.java: New file.
1669         * java/awt/event/WindowEvent.java: New file.
1670         * java/awt/event/WindowListener.java: New file.
1671         * java/awt/geom/Dimension2D.java: New file.
1672         * java/awt/geom/Point2D.java: New file.
1673         * java/awt/peer/ComponentPeer.java: New file.
1674         * java/awt/peer/ContainerPeer.java: New file.
1675         * java/awt/peer/FramePeer.java: New file.
1676         * java/awt/peer/WindowPeer.java: New file.
1677         * java/util/Collection.java: New file.
1678         * java/util/Comparator.java: New file.
1679         * java/util/Iterator.java: New file.
1680         * java/util/List.java: New file.
1681         * java/util/ListIterator.java: New file.
1682         * Makefile.am: Added above files.
1683         * Makefile.in: Rebuilt.
1684
1685 2000-04-10  Warren Levy  <warrenl@cygnus.com>
1686
1687         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
1688         * java/lang/FirstThread.java: Ditto.
1689         * java/lang/StringBuffer.java: Ditto.
1690         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
1691
1692         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
1693         Special case handled in java.math.BigInteger.
1694         * java/math/BigInteger.java (divide): Handle the special case when
1695         dividing by 1 and the high bit of the dividend is set.
1696         (setShiftRight): Handle case when count == 0.
1697
1698 2000-04-05  Andrew Haley  <aph@cygnus.com>
1699
1700         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
1701         special case.
1702
1703 2000-04-05  Andrew Haley  <aph@cygnus.com>
1704
1705         * sysdep/ia64.c (rse_address_add): Delete.
1706         (IS_NaT_COLLECTION_ADDR): Delete.
1707         (ia64_backtrace_helper): check for null unwind_info.
1708         
1709         * sysdep/ia64-frame.h: add calc_caller_bsp.
1710
1711         * java/lang/natThrowable.cc (printRawStackTrace): Flush
1712         PrintWriter.
1713
1714         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
1715         (_Jv_remI): Likewise.
1716         (_Jv_divJ): Likewise.
1717         (_Jv_remJ): Likewise.
1718         
1719         * interpret.cc (continue1): Use divide subroutines to guarantee
1720         correct Java standard behaviour.
1721         Floating-point division should not abort; make it so.
1722
1723 2000-03-29  Tom Tromey  <tromey@cygnus.com>
1724
1725         * configure: Rebuilt.
1726         * configure.in: Test against `libgcj_sjlj', not
1727         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
1728         to be set even when using sjlj.
1729
1730 2000-03-24  Andrew Haley  <aph@cygnus.com>
1731
1732         * Makefile.am: Add file addr2name.awk.
1733         * Makefile.in: Rebuilt.
1734         * addr2name.awk: New file.
1735         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
1736         lookups on ia64.
1737         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
1738         blank line.
1739         
1740 2000-03-22  Andrew Haley  <aph@cygnus.com>
1741
1742         * configure.host: Add -funwind-tables for IA64.
1743         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
1744         * Makefile.in: Rebuilt.
1745         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
1746         * sysdep/ia64.c: New file.
1747         * sysdep/ia64-frame.h: New file.
1748         * configure.in: Add sysdep/ia64.c for ia64.
1749         * configure: Rebuilt.
1750         
1751 2000-03-17  Andrew Haley  <aph@cygnus.com>
1752
1753         * java/lang/natString.cc: Remove `register' keyword.
1754         interpret.cc: ditto.
1755
1756 2000-03-16  Andrew Haley  <aph@cygnus.com>
1757
1758         * configure.host (ia64): Enable interpreter.
1759
1760 2000-03-14  Hans Boehm  <boehm@acm.org>
1761
1762         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
1763
1764 2000-03-14  Andrew Haley  <aph@cygnus.com>
1765
1766         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
1767         `_exception'.
1768
1769 2000-03-10  Andrew Haley  <aph@cygnus.com>
1770
1771         * java/lang/ieeefp.h: Import latest version from fdlibm.
1772
1773 2000-03-14  Andrew Haley  <aph@cygnus.com>
1774
1775         * prims.cc (_Jv_ThrowSignal): New function.
1776         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
1777         (catch_fpe): Ditto.
1778         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
1779         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
1780         * include/ppc-signal.h: New file.
1781
1782 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
1783
1784         * java/lang/Thread.java: Declare `data' as Object, not RawData.
1785         * java/lang/natThread.java (initialize_native): Cast `data' to
1786         jobject.
1787         * gnu/gcj/RawData.java: Clarify documentation.
1788
1789         From Gregory R. Warnes <warnes@biostat.washington.edu>:
1790         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
1791         `jarFile', not `jarFileURL'.
1792
1793 2000-05-15  Andrew Haley  <aph@cygnus.com>
1794
1795         * include/ppc-signal.h: New file.
1796
1797 2000-05-11  Tom Tromey  <tromey@cygnus.com>
1798
1799         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
1800         file headers, don't include `size' in the skip call.
1801
1802 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
1803
1804         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
1805         Avoid arrayCopy() call where possible. Update `count' _after_ calling
1806         arrayCopy().
1807         (replace): Reimplemented. Fix javadoc.
1808         (reverse): Call ensureCapacity_unsynchronized().
1809         (StringBuffer (String)): Use DEFAULT_CAPACITY.
1810
1811         (replace): Calculate length for arraycopy() correctly.
1812         
1813 2000-05-09  Tom Tromey  <tromey@cygnus.com>
1814
1815         * java/lang/StringBuffer.java (toString): Don't mark buffer as
1816         shared.
1817         (insert(int,char[],int,int): New method.
1818         (delete): New method from Classpath.
1819         (deleteCharAt): Likewise.
1820         (substring): Likewise.
1821         (shared): No longer private.
1822         Added JavaDoc comments from Classpath.
1823         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
1824         shared.
1825
1826 2000-05-07  Tom Tromey  <tromey@cygnus.com>
1827
1828         * Makefile.in: Rebuilt.
1829         * Makefile.am (LIBLINK): New macro.
1830         (libgcj_la_LINK): Use it.
1831         (libgcjawt_la_LINK): Likewise.
1832
1833 2000-05-06  Tom Tromey  <tromey@cygnus.com>
1834
1835         * Makefile.in: Rebuilt.
1836         * Makefile.am (libgcj.zip): Don't pass -L to javac.
1837
1838 2000-05-05  Tom Tromey  <tromey@cygnus.com>
1839
1840         Fix for PR libgcj/220:
1841         * Makefile.in: Rebuilt.
1842         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
1843         (jv_convert_LDFLAGS): Likewise.
1844         (libgcj_la_LDFLAGS): Likewise.
1845         (GCJLINK): New macro.
1846         (jv_convert_LINK): Use it.
1847         (gij_LINK): Likewise.
1848         (libgcj_la_LINK): New macro.
1849         (libgcjawt_la_LINK): Likewise.
1850
1851 2000-05-04  Tom Tromey  <tromey@cygnus.com>
1852
1853         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
1854         field.
1855         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
1856         `0x0008'.
1857         Include Modifier.h.
1858
1859 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
1860
1861         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
1862         (_Jv_IsAssignableFrom): Ditto.
1863         (_Jv_IsInstanceOf): Ditto.
1864         (_Jv_CheckCast): Ditto.
1865         (_Jv_CheckArrayStore): Ditto.
1866         * java/lang/Class.h (_Jv_InitClass): Ditto.     
1867         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
1868         not `0'.
1869         (notify): Ditto.
1870         (notifyAll): Ditto.
1871         (wait): Ditto.
1872         (_Jv_MonitorExit): Ditto.
1873         * boehm.cc (_Jv_MarkObj): Ditto.
1874         (_Jv_MarkObj): Ditto.
1875         (_Jv_MarkArray): Ditto.
1876         * prims.cc (_Jv_AllocObject): Ditto.
1877         (_Jv_NewObjectArray): Ditto.
1878         (_Jv_NewPrimArray): Ditto.
1879         (_Jv_Malloc): Ditto.
1880         (_Jv_Realloc): Ditto.
1881         (_Jv_MallocUnchecked): Ditto.
1882         (_Jv_divI): Ditto.
1883         (_Jv_remI): Ditto.
1884         (_Jv_divJ): Ditto.
1885         (_Jv_remJ): Ditto.
1886
1887 2000-05-04  Tom Tromey  <tromey@cygnus.com>
1888
1889         * java/util/Locale.java (Locale): Don't explicitly check for
1890         null.
1891         * java/util/Hashtable.java (containsKey): Don't explicitly check
1892         for null.
1893         (get): Likewise.
1894         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
1895         null.
1896         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
1897         for null.
1898         * java/text/StringCharacterIterator.java
1899         (StringCharacterIterator): Don't check for null.
1900         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
1901         for null pointer.
1902         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
1903         check for null pointer.
1904         (leaveGroup): Likewise.
1905         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
1906         comment.
1907         (setData): Likewise.
1908         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
1909         for `p==null'.
1910
1911 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
1912
1913         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
1914         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
1915         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
1916         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
1917         -rpath for in-gcc builds.
1918         * Makefile.in: Rebuilt.
1919
1920 2000-04-28  Tom Tromey  <tromey@cygnus.com>
1921
1922         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
1923         Fix for PR gcj/218.
1924
1925 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
1926
1927         * libjava/java/lang/String.java (toString): Remove `final' hack.
1928
1929 2000-04-05  Tom Tromey  <tromey@cygnus.com>
1930
1931         Runtime support for PR gcj/2:
1932         * prims.cc (_Jv_ThrowNullPointerException): New function.
1933         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
1934
1935 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
1936
1937         * prims.cc (_Jv_NewObjectArray): Fix typo.
1938
1939 2000-04-26  Tom Tromey  <tromey@cygnus.com>
1940
1941         * Makefile.in: Rebuilt.
1942         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
1943
1944 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
1945
1946         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
1947         calling main.
1948
1949 2000-04-22  Anthony Green  <green@cygnus.com>
1950
1951         * include/jvm.h (__builtin_expect): Define as unused for now.
1952         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
1953         (notify): Ditto.
1954         (notifyAll): Ditto.
1955         (wait): Ditto.
1956         (_Jv_MonitorExit): Ditto.
1957         * boehm.cc (_Jv_MarkObj): Ditto.
1958         (_Jv_MarkObj): Ditto.
1959         (_Jv_MarkArray): Ditto.
1960         (_Jv_AllocBytes): Ditto.
1961         * prims.cc (_Jv_AllocObject): Ditto.
1962         (_Jv_NewObjectArray): Ditto.
1963         (_Jv_NewPrimArray): Ditto.
1964         (_Jv_Malloc): Ditto.
1965         (_Jv_Realloc): Ditto.
1966         (_Jv_MallocUnchecked): Ditto.
1967         (_Jv_divI): Ditto.
1968         (_Jv_remI): Ditto.
1969         (_Jv_divJ): Ditto.
1970         (_Jv_remJ): Ditto.
1971
1972         * include/Makefile.in: Rebuilt.
1973         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
1974
1975 2000-04-21  Tom Tromey  <tromey@cygnus.com>
1976
1977         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
1978         Yet another new version from Classpath.
1979
1980         Fix for PR libgcj/15:
1981         * java/util/natGregorianCalendar.cc (_REENTRANT,
1982         _POSIX_PTHREAD_SEMANTICS): Don't define.
1983         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
1984         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
1985         Don't define.
1986         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
1987         define.
1988         * configure: Rebuilt.
1989         * configure.in: If using POSIX threads, define _REENTRANT if
1990         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
1991         GETHOSTBYNAME_R_NEEDS_REENTRANT.
1992
1993         * java/io/PipedInputStream.java, java/io/PipedReader.java,
1994         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
1995         version from Classpath.
1996
1997         Fix for PR libgcj/213:
1998         * Makefile.in: Rebuilt.
1999         * Makefile.am (gij_SOURCES): Added gij.cc.
2000         (EXTRA_gij_SOURCES): Removed.
2001         (gij_LDADD): Removed gij.lo.
2002         (gij_DEPENDENCIES): Likewise.
2003         ($(gij_OBJECTS)): Depend on nat_headers.
2004
2005         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
2006         `setURL', not `url.set'.
2007
2008 2000-04-20  Tom Tromey  <tromey@cygnus.com>
2009
2010         Fix for PR java.io/204:
2011         * java/io/PipedInputStream.java, java/io/PipedReader.java,
2012         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
2013         from Classpath.
2014
2015         Fix for PR libgcj/212:
2016         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
2017         * include/jvm.h (_Jv_word, _Jv_word2): Define.
2018         * java/lang/Class.h (_Jv_word): Declare.
2019
2020         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
2021
2022 2000-04-19  Tom Tromey  <tromey@cygnus.com>
2023
2024         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
2025         doesn't have a loader.
2026
2027 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
2028
2029         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
2030         MAYBE_MARK to ptr_t, for compatibility with new GC version.
2031
2032 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
2033
2034         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
2035         libgcj/202.
2036         (available): Initialize `where' to prevent bogus compiler warning.
2037
2038 2000-04-12  Tom Tromey  <tromey@cygnus.com>
2039
2040         * java/lang/natString.cc (intern): Temporarily disable finalizer
2041         registration.
2042
2043         * java/lang/natString.cc (unintern): Added `obj' argument.
2044         (intern): Register finalizer for string.
2045         * java/lang/String.java (unintern): Now static; added obj
2046         argument.
2047
2048 2000-04-11  Tom Tromey  <tromey@cygnus.com>
2049
2050         * java/util/Vector.java (VectorEnumeration): Now `final'.
2051         * java/util/Hashtable.java (HashtableEntry): Now `final'.
2052         (HashtableEnumeration): Likewise.
2053         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
2054         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
2055
2056 2000-04-10  Warren Levy  <warrenl@cygnus.com>
2057
2058         * java/io/ObjectStreamException.java: New file.
2059         * java/io/OptionalDataException.java: New file.
2060         * java/io/StreamCorruptedException.java: New file.
2061         * java/math/BigDecimal.java: New file.
2062         * java/sql/CallableStatement.java: New file.
2063         * java/sql/Connection.java: New file.
2064         * java/sql/DataTruncation.java: New file.
2065         * java/sql/DatabaseMetaData.java: New file.
2066         * java/sql/Date.java: New file.
2067         * java/sql/Driver.java: New file.
2068         * java/sql/DriverManager.java: New file.
2069         * java/sql/DriverPropertyInfo.java: New file.
2070         * java/sql/PreparedStatement.java: New file.
2071         * java/sql/ResultSet.java: New file.
2072         * java/sql/ResultSetMetaData.java: New file.
2073         * java/sql/SQLException.java: New file.
2074         * java/sql/SQLWarning.java: New file.
2075         * java/sql/Statement.java: New file.
2076         * java/sql/Time.java: New file.
2077         * java/sql/Timestamp.java: New file.
2078         * java/sql/Types.java: New file.
2079         * Makefile.am: Added above new files.
2080         * Makefile.in: Rebuilt.
2081
2082         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2083         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
2084         DatagramSocket constructor instead of null.
2085
2086 2000-04-08  Anthony Green  <green@cygnus.com>
2087
2088         * include/posix-threads.h (_Jv_MutexUnlock): Replace
2089         _JV_NOT_OWNER.
2090         
2091 2000-04-08  Anthony Green  <green@cygnus.com>
2092
2093         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
2094         (_Jv_MutexUnlock): Ditto.
2095         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
2096         (_Jv_MutexUnlock): Ditto.
2097
2098 2000-04-08  Anthony Green  <green@cygnus.com>
2099
2100         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
2101         (ensureCapacity_unsynchronized): New private method.
2102         (append): Use ensureCapacity_unsynchronized.
2103
2104 2000-04-08  Tom Tromey  <tromey@cygnus.com>
2105
2106         * Makefile.in: Rebuilt.
2107         * Makefile.am (awt_java_source_files): Added new files.
2108         * java/awt/IllegalComponentStateException.java: New file.
2109         * java/awt/ItemSelectable.java: New file.
2110         * java/awt/event/WindowEvent.java: Finished.
2111         * java/awt/event/TextEvent.java: Finished.
2112         * java/awt/event/ContainerEvent.java: New file.
2113         * java/awt/Component.java (getX, getY): New methods.
2114         * java/awt/event/PaintEvent.java: New file.
2115         * java/awt/event/MouseEvent.java: New file.
2116         * java/awt/ActiveEvent.java: New file.
2117         * java/awt/event/KeyEvent.java: Finished.
2118         * java/awt/event/ItemEvent.java: New file.
2119         * java/awt/Adjustable.java: New file.
2120         * java/awt/event/InputMethodEvent.java: New file.
2121         * java/awt/event/InputEvent.java: Finished.
2122         * java/awt/event/FocusEvent.java: New file.
2123         * java/awt/event/MouseMotionAdapter.java: New file.
2124         * java/awt/event/MouseAdapter.java: New file.
2125         * java/awt/event/KeyAdapter.java: New file.
2126         * java/awt/event/FocusAdapter.java: New file.
2127         * java/awt/event/ContainerAdapter.java: New file.
2128         * java/awt/event/ComponentEvent.java: Finished.
2129         * java/awt/event/AdjustmentEvent.java: New file.
2130         * java/awt/event/ComponentAdapter.java: New file.
2131         * java/awt/event/ActionEvent.java: Finished.
2132         * java/awt/event/MouseMotionListener.java: New file.
2133         * java/awt/event/MouseListener.java: New file.
2134         * java/awt/event/ItemListener.java: New file.
2135         * java/awt/event/InputMethodListener.java: New file.
2136         * java/awt/event/ContainerListener.java: New file.
2137         * java/awt/event/FocusListener.java: New file.
2138         * java/awt/event/ComponentListener.java: New file.
2139         * java/awt/event/AWTEventListener.java: New file.
2140         * java/awt/event/AdjustmentListener.java: New file.
2141
2142 2000-04-08  Anthony Green  <green@cygnus.com>
2143
2144         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
2145         check when we have to.
2146
2147         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
2148         x) as `inline'.
2149
2150         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
2151         one method call.
2152
2153         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
2154         inline hasMoreElements.
2155
2156 2000-04-05  Tom Tromey  <tromey@cygnus.com>
2157
2158         * configure: Rebuilt.
2159         * configure.in: Recognize --enable-java-awt.
2160         (AWT): New conditional.
2161         * Makefile.in: Rebuilt.
2162         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
2163         requested.
2164         (libgcjawt_la_SOURCES): New macro.
2165         (EXTRA_libgcjawt_la_SOURCES): Likewise.
2166         (libgcjawt_la_DEPENDENCIES): Likewise.
2167         (libgcjawt_la_LIBADD): Likewise.
2168         (libgcjawt_la_LDFLAGS): Likewise.
2169         (libgcj.zip): Depend on cond_java_awt_source_files
2170         (cond_awt_java_source_files): New macro.
2171         (MOSTLYCLEANFILES): Added awto_files.
2172         (awto_files): New macro.  Use where javao_files used.
2173         (nat_headers): Use cond_awt_java_source_files.
2174
2175 2000-04-04  Tom Tromey  <tromey@cygnus.com>
2176
2177         * Makefile.in: Rebuilt.
2178         * Makefile.am (awt_java_source_files): Added AWTException.java.
2179         * java/awt/AWTException.java: New file.
2180
2181 2000-04-03  Tom Tromey  <tromey@cygnus.com>
2182
2183         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
2184         commentary from Alex.
2185
2186         * Makefile.in: Rebuilt.
2187         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
2188         From H.J. Lu.
2189
2190 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
2191
2192         * configure: Rebuilt.
2193         * configure.in: Add --disable-jvmpi.
2194         * include/config.h.in: Rebuilt.
2195         * acconfig.h: Add ENABLE_JVMPI.
2196          
2197         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
2198         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
2199         (_Jv_JVMPI_Notify_THREAD_END): New define.
2200         (_Jv_JVMPI_Notify_THREAD_END): New define.
2201         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
2202         (_Jv_JVMPI_Notify_THREAD_END): Declare.
2203         (_Jv_JVMPI_Notify_THREAD_END): Declare.
2204
2205         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
2206         events.
2207
2208         * java/lang/natThread.cc: Include JVMPI headers if necessary.
2209         (finish_): Generate JVMPI thread end events.
2210         (run_): Generate JVMPI thread start events.
2211         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
2212         preloaded JNI library.
2213         Include JVMPI headers if necessary.
2214         (run): Generate JVMPI thread start events.
2215
2216         * boehm.cc: Define GC_disable and GC_enable.
2217         (_Jv_DisableGC): New function.
2218         (_Jv_EnableGC): New function.
2219         (disable_gc_mutex): Declare.
2220         * nogc.cc (_Jv_DisableGC): New function.
2221         (_Jv_EnableGC): New function.
2222           
2223         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
2224         (_Jv_JVMPI_Interface): Define.
2225         (jvmpiEnableEvent): New function.
2226         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
2227           
2228         * include/jvmpi.h: New file.
2229
2230 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
2231
2232         * Makefile.in: New #defines and friends for Thread.h.
2233         * Makefile.am: Ditto.
2234         * posix-threads.cc: (struct starter): Remove `object'.
2235         (_Jv_CondWait): Use interruptable condition variables and new
2236         recursive mutexes. New return codes on interrupt or non-ownership
2237         of mutex.
2238         (_Jv_CondNotify): Ditto.
2239         (_Jv_CondNotifyAll): Ditto.
2240         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
2241         the target thread by signaling its wait condition.
2242         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
2243         not the starter struct. Initialize wait_mutex and wait_cond.
2244         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
2245         posix-threads.h.
2246         (_Jv_MutexUnlock): Ditto.
2247         (really_start): Set info->data->thread from pthread_self() to work 
2248         around a race condition. Destroy wait_mutex and wait_cond when run()
2249         returns.
2250         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
2251         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
2252         set.
2253         startable_flag: New private field.
2254         (Thread): Initialize `startable_flag'.
2255         (toString): Check for null thread group.
2256         * java/lang/natThread.cc: (struct natThread): New fields 
2257         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
2258         (class locker): Removed.
2259         (initialize_native): Initialize `join_cond' and `join_mutex'.
2260         (interrupt): Now just calls _Jv_ThreadInterrupt().
2261         (join): Simplified. Just wait on the target thread's join condition.
2262         (finish_): Remove join list code. Unset thread group. Signal
2263         potential joiners by notifying the dying threads join_cond.
2264         (start): Check for illegal restarts.
2265         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
2266         act appropriatly.
2267         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
2268         #defines and #ifdefs.
2269         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
2270         `wait_mutex', `next'.
2271         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
2272         directly mapping to pthread_cond_t.
2273         (struct _Jv_Mutex_t): New recursive implementation.
2274         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
2275         _Jv_HaveCondDestroy: Never define this for posix-threads.
2276         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
2277         (_Jv_CondNotifyAll): Ditto.
2278         (_Jv_MutexLock): Ditto.
2279         (_Jv_MutexUnlock): Ditto.
2280         (_Jv_MutexInit): Changed to reflect new mutex implementation.
2281         (_Jv_MutexDestroy): Ditto.
2282         (_Jv_CondDestroy): Removed.
2283         (_Jv_PthreadGetMutex): Removed.
2284         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
2285         error. Add a FIXME about this.
2286         (_Jv_CondNotifyAll): Ditto.
2287         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
2288         _JV_NOT_OWNER on other errors. Add FIXME.
2289
2290 2000-03-26  Tom Tromey  <tromey@cygnus.com>
2291
2292         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
2293         set, throw it.
2294         (call): Don't throw exception here.
2295
2296 2000-03-26  Tom Tromey  <tromey@cygnus.com>
2297
2298         * java/lang/mprec.h: Use SIZEOF_VOID_P.
2299         * interpret.cc: Use SIZEOF_VOID_P.
2300         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
2301         (_Jv_loadLong): Likewise.
2302         (_Jv_storeDouble): Likewise.
2303         * configure: Rebuilt.
2304         * configure.in: Check size of void*.
2305
2306         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
2307
2308 2000-03-26  Hans Boehm  <boehm@acm.org>
2309
2310         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
2311         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
2312         machine.
2313         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
2314         __IEEE_LITTLE_ENDIAN appropriately on IA64.
2315         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
2316         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
2317         case.
2318         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
2319         (FFI_RAW_SIZE): Likewise.
2320         (_Jv_InterpMethod::ncode): Use them.
2321         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
2322         STORED): Define differently on a 64 bit machine.
2323         (continue1): Use ffi_java_raw_call when appropriate.
2324  
2325 2000-03-24  Warren Levy  <warrenl@cygnus.com>
2326
2327         * java/math/BigInteger.java(divide): Handle the special case when
2328         dividing by 1 and the high bit of the dividend is set.
2329         (setShiftRight): Handle case when count == 0.
2330
2331 2000-03-24  Warren Levy  <warrenl@cygnus.com>
2332
2333         * java/awt/Font.java(isBold): Fix syntax error.
2334         (isItalic): ditto.
2335         * java/awt/Frame.java(postEvent): ditto.
2336         * java/awt/Menu.java(postEvent): ditto.
2337         * java/awt/MenuBar.java(postEvent): ditto.
2338         * java/awt/Toolkit.java(init): Included a stub.
2339
2340 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
2341
2342         * java/awt/Event.java: Add all the event type constants.
2343         (Event): Implemented constructors.
2344         (controlDown): Implemented.
2345         (metaDown): Implemented.
2346         (paramString): Stubbed.
2347         (shiftDown): Implemented.
2348         (toString): Implemented.
2349         (translate): Implemented.
2350
2351 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
2352
2353         * java/lang/natClass.cc (isInstance): Initialize `this'.
2354         (isAssignableFrom): Initialize `this' and `klass'.
2355         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
2356         implemented by any loaded class, so return false.
2357         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
2358         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
2359
2360 2000-03-19  Warren Levy  <warrenl@cygnus.com>
2361
2362         * java/awt/Color.java: Specified java.io for Serializable.
2363         * java/awt/Toolkit.java: Imported java.net.URL.
2364
2365 2000-03-19  Warren Levy  <warrenl@cygnus.com>
2366
2367         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
2368
2369 2000-03-16  Warren Levy  <warrenl@cygnus.com>
2370
2371         * java/awt/Color.java: New file.
2372         * java/awt/Graphics.java: New file.
2373         * java/awt/Image.java: New file.
2374         * java/awt/Paint.java: New file.
2375         * java/awt/PaintContext.java: New file.
2376         * java/awt/Transparency.java: New file.
2377         * java/util/Collection.java: New file.
2378         * java/util/Comparator.java: New file.
2379         * java/util/Iterator.java: New file.
2380         * java/util/List.java: New file.
2381         * java/util/ListIterator.java: New file.
2382         * Makefile.am: Added above new files.
2383         * Makefile.in: Rebuilt.
2384
2385         * java/awt/Font.java (PLAIN): New field.
2386         (BOLD): New field.
2387         (ITALIC): New field.
2388         (ROMAN_BASELINE): New field.
2389         (CENTER_BASELINE): New field.
2390         (HANGING_BASELINE): New field.
2391         (name): New field.
2392         (style): New field.
2393         (size): New field.
2394         (pointSize): New field.
2395         (Font): Implemented constructor.
2396         (isPlain): Implemented method.
2397         (isBold): Implemented method.
2398         (isItalic): Implemented method.
2399         (getName): Implemented method.
2400         (getStyle): Implemented method.
2401         (getSize): Implemented method.
2402         (getSize2D): Implemented method.
2403         (decode): Stubbed.
2404         * java/awt/Frame.java (getFont): Stubbed.
2405         (postEvent): Stubbed.
2406         (remove): Stubbed.
2407         * java/awt/Menu.java (postEvent): Stubbed.
2408         * java/awt/MenuBar.java (getFont): Stubbed.
2409         (postEvent): Stubbed.
2410         * java/awt/Toolkit.java (getImage): Added abstract method.
2411
2412 2000-03-15  Tom Tromey  <tromey@cygnus.com>
2413
2414         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
2415
2416         * prims.cc (win32_exception_handler): Reformatted.
2417
2418         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
2419         (_Jv_HaveMutexDestroy): Likewise.
2420
2421 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
2422
2423         * java/io/natFileDescriptorWin32.cc: New file.
2424         * java/io/natFileWin32.cc: New file.
2425         * java/net/natInetAddress.cc: Added conditional inclusion of
2426         Windows / Winsock headers.
2427         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
2428         inclusion of Windows / Winsock headers.
2429         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
2430         Windows / Winsock headers.
2431         * include/win32-signal.h: New file.
2432         * include/win32-threads.h: New file.
2433         * win32-threads.cc: New file.
2434         * exception.cc (win32_get_restart_frame): New function.
2435         * prims.cc (win32_exception_handler): New function.
2436         (main_init) Performs Winsock initialisation.
2437         (main_init) Installs exeception handler.
2438
2439 2000-03-14  Tom Tromey  <tromey@cygnus.com>
2440
2441         * jni.cc (mangled_name): Fixed assertion.
2442         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
2443         turned assert into actual failure.
2444
2445 2000-03-09  Warren Levy  <warrenl@cygnus.com>
2446
2447         * java/security/Key.java(serialVersionUID): Set to 0 for now.
2448         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
2449         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
2450
2451 2000-03-09  Warren Levy  <warrenl@cygnus.com>
2452
2453         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
2454         * java/security/DigestException.java: New file.
2455         * java/security/GeneralSecurityException.java: New file.
2456         * java/security/InvalidAlgorithmParameterException.java: New file.
2457         * java/security/InvalidKeyException.java: New file.
2458         * java/security/InvalidParameterException.java: New file.
2459         * java/security/Key.java: New file.
2460         * java/security/KeyException.java: New file.
2461         * java/security/KeyPair.java: New file.
2462         * java/security/KeyPairGenerator.java: New file.
2463         * java/security/KeyPairGeneratorSpi.java: New file.
2464         * java/security/NoSuchProviderException.java: New file.
2465         * java/security/PrivateKey.java: New file.
2466         * java/security/Provider.java: New file.
2467         * java/security/PublicKey.java: New file.
2468         * java/security/SecureRandom.java: New file.
2469         * java/security/Security.java: New file.
2470         * java/security/Signature.java: New file.
2471         * java/security/SignatureException.java: New file.
2472         * java/security/interfaces/DSAKey.java: New file.
2473         * java/security/interfaces/DSAParams.java: New file.
2474         * java/security/interfaces/DSAPrivateKey.java: New file.
2475         * java/security/interfaces/DSAPublicKey.java: New file.
2476         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
2477         * java/security/interfaces/RSAPrivateKey.java: New file.
2478         * java/security/interfaces/RSAPublicKey.java: New file.
2479         * java/security/spec/AlgorithmParameterSpec.java: New file.
2480         * java/security/spec/InvalidKeySpecException.java: New file.
2481         * java/security/spec/InvalidParameterSpecException.java: New file.
2482         * java/security/spec/KeySpec.java: New file.
2483         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
2484         * java/security/spec/RSAPrivateKeySpec.java: New file.
2485         * java/security/spec/RSAPublicKeySpec.java: New file.
2486         * Makefile.am: Added above java.security files.
2487         * Makefile.in: Rebuilt.
2488
2489         * java/security/MessageDigest.java: Rewritten.
2490         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
2491
2492 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
2493
2494         * README: Updated.
2495
2496 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
2497
2498         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
2499         _Jv_PrepareConstantTimeTables.
2500         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
2501         classes should have an IDT, so don't return if klass is an array
2502         class.
2503
2504 2000-03-08  Tom Tromey  <tromey@cygnus.com>
2505
2506         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
2507         of `void' to be created.
2508
2509 2000-03-08  Warren Levy  <warrenl@cygnus.com>
2510
2511         * java/math/BigInteger.java(signum): Handle zero properly.
2512
2513 2000-03-07  Tom Tromey  <tromey@cygnus.com>
2514
2515         * All files: Updated copyright information.
2516         * COPYING: New file.
2517         * COPYING.LIB: Removed.
2518         * LIBGCJ_LICENSE: We now use GPL + special exception.
2519
2520 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
2521
2522         * resolve.cc (_Jv_SearchMethodInClass): New function.
2523         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
2524         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
2525
2526 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
2527
2528         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
2529         (struct _Jv_ifaces): New declaration.
2530         JV_CLASS: New macro definition.
2531         (getComponentType): Relocate below isArray() for inlining.
2532         (getModifiers): Declare `inline'.
2533         (getSuperclass): Ditto.
2534         (isArray): Ditto.
2535         (isPrimitive): Ditto.
2536         (_Jv_IsAssignableFrom): New prototype.
2537         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
2538         linkage.
2539         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
2540         Check for JV_STATE_DONE before invoking initializeClass().
2541         (_Jv_PrepareConstantTimeTables): New prototype.
2542         (_Jv_GetInterfaces): Ditto.
2543         (_Jv_GenerateITable): Ditto.
2544         (_Jv_GetMethodString): Ditto.
2545         (_Jv_AppendPartialITable): Ditto.
2546         (_Jv_FindIIndex): Ditto.
2547         depth, ancestors, idt: New class fields.
2548
2549         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
2550         inline function `_Jv_IsAssignableFrom'. Use that function.
2551         (isInstance): Declare `inline'.
2552         (initializeClass): Get lock on class before checking `state'. Unlock 
2553         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
2554         the lock held.
2555         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
2556         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
2557         class->depth and ancestor table.
2558         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
2559         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
2560         _Jv_IsAssignableFrom.
2561         (_Jv_CheckArrayStore): Ditto.
2562         (_Jv_LookupInterfaceMethodIdx): New function. 
2563         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
2564         (_Jv_PrepareConstantTimeTables): New function.
2565         (_Jv_IndexOf): Ditto.
2566         (_Jv_GetInterfaces): Ditto.
2567         (_Jv_GenerateITable): Ditto.
2568         (_Jv_GetMethodString): Ditto.
2569         (_Jv_AppendPartialITable): Ditto.
2570         iindex_mutex, iindex_mutex_initialized: New static fields.
2571         (_Jv_FindIIndex): New function.
2572
2573         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
2574
2575         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
2576         (_Jv_CheckArrayStore): Ditto.
2577         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
2578         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
2579         Moved to gcj/array.h.
2580         (_Jv_Realloc): New function.
2581
2582         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
2583
2584         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
2585         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
2586         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
2587         JvNewDoubleArray): Implementations moved from prims.cc and
2588         declared `inline'.
2589
2590         * gcj/javaprims.h (_Jv_Realloc): Prototype.
2591
2592         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
2593
2594 2000-03-06  Tom Tromey  <tromey@cygnus.com>
2595
2596         * jni.cc (MARK_NONE): New define.
2597         (MARK_USER): Likewise.
2598         (MARK_SYSTEM): Likewise.
2599         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
2600         smaller.
2601         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
2602         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
2603         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
2604         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
2605         argument.
2606         (call): Use MARK_SYSTEM.
2607         (_Jv_GetJNIEnvNewFrame): New function.
2608         (_Jv_LookupJNIMethod): New function.
2609         (_Jv_JNI_PopSystemFrame): New function.
2610         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
2611
2612 2000-03-05  Tom Tromey  <tromey@cygnus.com>
2613
2614         Fix for PR libgcj/43:
2615         * include/Makefile.in: Rebuilt.
2616         * include/Makefile.am (include_HEADERS): New define.
2617
2618 2000-03-05  Anthony Green  <green@redhat.com>
2619
2620         * gcj/javaprims.h ("Java"): Remove FirstThread.
2621
2622         * configure.host: Fix __NO_MATH_INLNES botch.
2623
2624         * Makefile.in: Rebuilt.
2625         * Makefile.am (nat_source_files): Move natFirstThread.cc.
2626         (gnu/gcj/runtime/FirstThread.h): Moved.
2627         (ordinary_java_source_files): Move FirstThread.java.
2628         * prims.cc: Deal with FirstThread movement.
2629         (JvRunMain): Ditto.
2630         (_Jv_RunMain): Ditto.
2631
2632         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
2633         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
2634
2635 2000-03-05  Warren Levy  <warrenl@cygnus.com>
2636
2637         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
2638           Handle null addresses.
2639
2640 2000-03-04  Anthony Green  <green@redhat.com>
2641
2642         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
2643         See PR gcj/151.
2644
2645 2000-03-04  Anthony Green  <green@redhat.com>
2646
2647         * configure: Rebuilt.
2648         * configure.in (ZLIBTESTSPEC): New macro.
2649         (GCTESTSPEC): New macro.
2650         (LIBGCJTESTSPEC): New macro.
2651         * libgcj-test.spec.in: New file.
2652
2653 2000-03-02  Tom Tromey  <tromey@cygnus.com>
2654
2655         * include/java-interp.h: Don't include MethodInvocation.h.
2656         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
2657         * Makefile.in: Rebuilt.
2658         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
2659         (ordinary_java_source_files): Don't mention
2660         MethodInvocation.java.
2661         * gnu/gcj/runtime/MethodInvocation.java: Removed.
2662         * interpret.cc (MethodInvocation::continue1): Removed.
2663         (run): Handle exceptions here.
2664         * java/lang/ClassLoader.java (defineClass1, defineClass2):
2665         Removed.
2666         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
2667         here.
2668         (defineClass2): Removed.
2669
2670         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
2671         Removed.
2672         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
2673         exceptions here.
2674         (hack_call): Removed.
2675
2676         * java/lang/Class.h (Class): Removed hackRunInitializers,
2677         hackTrampoline.
2678         * java/lang/natClass.cc (hackRunInitializers): Removed.
2679         (initializeClass): Catch exceptions here.
2680         Include ExceptionInInitializerError.h.
2681         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
2682         Removed.
2683
2684         * java/lang/Object.h (Object): Don't mention hack12_6.
2685         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
2686         here.
2687         * java/lang/Object.java (hack12_6): Removed.
2688
2689         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
2690         (start): Use run_, not run__.
2691         * java/lang/Thread.java (run_): Renamed from run__; old run_
2692         removed.
2693
2694         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
2695         (_Jv_JNI_EnsureLocalCapacity): Likewise.
2696         (_Jv_JNI_DefineClass): Likewise.
2697         (_Jv_JNI_ThrowNew): Likewise.
2698         (_Jv_JNI_AllocObject): Likewise.
2699         (_Jv_JNI_GetAnyMethodID): Likewise.
2700         (_Jv_JNI_CallAnyMethodV): Likewise.
2701         (_Jv_JNI_CallAnyMethodA): Likewise.
2702         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
2703         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
2704         (_Jv_JNI_GetAnyFieldID): Likewise.
2705         (_Jv_JNI_NewString): Likewise.
2706         (_Jv_JNI_NewStringUTF): Likewise.
2707         (_Jv_JNI_GetStringUTFChars): Likewise.
2708         (_Jv_JNI_NewObjectArray): Likewise.
2709         (_Jv_JNI_NewPrimitiveArray): Likewise.
2710         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
2711         (_Jv_JNI_GetStringRegion): Likewise.
2712         (_Jv_JNI_GetStringUTFRegion): Likewise.
2713         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2714         (_Jv_JNI_MonitorEnter): Likewise.
2715         (_Jv_JNI_MonitorExit): Likewise.
2716         (_Jv_JNI_ToReflectedField): Likewise.
2717         (_Jv_JNI_ToReflectedMethod): Likewise.
2718         (_Jv_JNI_RegisterNatives): Likewise.
2719         (_Jv_JNI_AttachCurrentThread): Likewise.
2720         (_Jv_JNI_DestroyJavaVM): Likewise.
2721
2722 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
2723
2724         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
2725         error caused by the incorrect casting of a long to an int.
2726
2727 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
2728
2729         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
2730         SIGSEV caused by use of the wrong instance variable.
2731
2732 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
2733
2734         * java/io/File.java (File(String, String)): For dirPath, treat an
2735         empty String the same as `null'.
2736
2737 2000-02-26  Anthony Green  <green@cygnus.com>
2738
2739         * gnu/gcj/io/MimeTypes.java: Test for null.
2740
2741         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
2742         (JNI_GetCreatedJavaVMs): Remove compiler warning.
2743
2744         * java/net/URLConnection.java: Update copyright notice.
2745
2746 2000-02-25  Tom Tromey  <tromey@cygnus.com>
2747
2748         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
2749         `INTERPRETER'.
2750
2751 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
2752
2753         * java/net/URLConnection.java (initializeDateFormats): New
2754         private method.
2755         (getHeaderFieldDate): Call initializeDateFormats if required.
2756         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
2757         these.
2758         Fix for PR libgcj/38.
2759
2760 2000-02-24  Warren Levy  <warrenl@cygnus.com>
2761
2762         * java/math/BigInteger.java(ival): Made private.
2763         (words): Ditto.
2764         (neg): Ditto.
2765
2766 2000-02-20  Anthony Green  <green@cygnus.com>
2767
2768         * Makefile.in: Rebuilt.
2769         * Makefile.am (ordinary_java_source_files): Add
2770         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
2771
2772         * scripts/MakeDefaultMimeTypes.java: New file.
2773         * scripts/mime.types: New file.
2774         * scripts/classes.pl: Moved from top level.
2775         * classes.pl: Moved to scripts directory.
2776
2777         * java/net/URLConnection.java: Implement guessContentTypeFromName.
2778
2779         * gnu/gcj/io/MimeTypes.java: New file.
2780         * gnu/gcj/io/DefaultMimeTypes.java: New file.
2781
2782 2000-02-20  Tom Tromey  <tromey@cygnus.com>
2783
2784         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
2785
2786 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
2787
2788         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
2789         (setSize): ditto.
2790
2791 2000-02-18  Tom Tromey  <tromey@cygnus.com>
2792
2793         * include/jvm.h (_Jv_GetJavaVM): Declare.
2794         * include/java-interp.h (_Jv_GetFirstMethod): New function.
2795         (_Jv_MethodBase::get_method): New method.
2796         (_Jv_JNIMethod::set_function): New method.
2797         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
2798         (_Jv_JNI_RegisterNatives): New function.
2799         (_Jv_JNIFunctions): Updated for new functions.
2800         (_Jv_GetJavaVM): New function.
2801         (_Jv_JNI_GetJavaVM): Use it.  Now static.
2802         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
2803         is already a Java thread but does not have a JNIEnv yet.
2804
2805         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
2806         function.
2807
2808 2000-02-17  Tom Tromey  <tromey@cygnus.com>
2809
2810         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
2811         Fixes PR gcj/152.
2812
2813 2000-02-16  Tom Tromey  <tromey@cygnus.com>
2814
2815         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
2816
2817         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
2818         (_Jv_JNI_NewObject): Likewise.
2819         (_Jv_JNI_NewObjectA): Likewise.
2820         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
2821         as "return" type to _Jv_CallAnyMethodA.
2822         (_Jv_JNI_CallAnyMethodA): Likewise.
2823         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
2824
2825         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
2826         findClass.
2827
2828 2000-02-15  Tom Tromey  <tromey@cygnus.com>
2829
2830         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
2831         jni_arg_types.
2832         (init_cif): Added `rtype_p' argument.
2833         * include/java-interp.h (class _Jv_MethodBase): Added
2834         args_raw_size.
2835         (class _Jv_InterpMethod): Removed args_raw_size.
2836         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
2837         * jni.cc (call): Pass JNIEnv and (for static methods only) the
2838         class pointer as well as the ordinary arguments.
2839
2840         * jni.cc (mangled_name): Skip leading `(' in signature.
2841
2842         * jni.cc (add_char): Added missing `else'.
2843
2844         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
2845         fails.
2846
2847 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
2848
2849         * NEWS: Updated.
2850
2851         * java/lang/natRuntime.cc (_load): Include library path with
2852         exception message.
2853
2854         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
2855         property.
2856
2857         * java/lang/natThread.cc (dumpStack): Removed.
2858         * java/lang/Thread.java (dumpStack): Implemented.
2859
2860 2000-02-15  Tom Tromey  <tromey@cygnus.com>
2861
2862         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
2863         with `lib' for loadLibrary.  Fixes PR gcj/150.
2864
2865 2000-02-14  Warren Levy  <warrenl@cygnus.com>
2866
2867         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
2868
2869         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
2870           New constructor.
2871         (min): Implemented.
2872         (max): Implemented.
2873         (modPow): Rewritten to not use the naive, slow, brute force approach.
2874         (isProbablePrime): Implemented.
2875         (testBit): Implemented.
2876         (flipBit): Implemented.
2877         (getLowestSetBit): Implemented.
2878
2879 2000-02-16  Anthony Green  <green@redhat.com>
2880
2881         * configure.host: Use the same options for i386 and i486 as we do
2882         for i586 and i686.
2883
2884 2000-02-12  Tom Tromey  <tromey@cygnus.com>
2885
2886         * java/io/File.java (createTempFile): Use low bits from counter,
2887         not high bits.
2888
2889 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
2890
2891         * THANKS: More thanks.
2892
2893 2000-02-11  Tom Tromey  <tromey@cygnus.com>
2894
2895         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
2896         astore instruction.  From Hans Boehm.
2897
2898 2000-02-11  Warren Levy  <warrenl@cygnus.com>
2899
2900         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
2901         (BigInteger(String)): New constructor.
2902         (not): Rewritten using version from Kawa's BitOps class.
2903         (valueOf): New private methods from Kawa's BitOps class.
2904         (swappedOp): ditto.
2905         (bitOp): ditto.
2906         (setBitOp): ditto.
2907         (and): Implemented.
2908         (or): Implemented.
2909         (xor): Implemented.
2910         (andNot): Implemented.
2911         (clearBit): Implemented.
2912         (setBit): Implemented.
2913         (bitCount): Implemented.
2914         (toByteArray): Implemented.
2915
2916 2000-02-11  Tom Tromey  <tromey@cygnus.com>
2917
2918         * java/io/File.java (nextValue): Now synchronized.
2919
2920 2000-02-10  Tom Tromey  <tromey@cygnus.com>
2921
2922         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
2923         * java/io/FileDescriptor.java (EXCL): New static field.
2924         * java/io/File.java (tmpdir): New static field.
2925         (createTempFile): New method.
2926         (nextValue): New method.
2927         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
2928         property.
2929
2930         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
2931         (jboolean): Declare as an attributed int, not a bool.
2932         (_Jv_func): Declare differently for C.
2933
2934         * gnu/gcj/jni/natNativeThread.cc: New file.
2935         * gnu/gcj/jni/NativeThread.java: New file.
2936         * java/lang/Thread.java (data): Now a RawData.
2937         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
2938         Declare.
2939         * Makefile.in: Rebuilt.
2940         * Makefile.am (java/lang/Thread.h): New target.
2941         (ordinary_java_source_files): Added NativeThread.java.
2942         (nat_source_files): Added natNativeThread.cc.
2943         * java/lang/natThread.cc: Include <jni.h>
2944         (struct natThread): Added `jni_env' field.
2945         (_Jv_GetCurrentJNIEnv): New function.
2946         (_Jv_SetCurrentJNIEnv): Likewise.
2947         (initialize_native): Initialize jni_env.
2948         Include RawData.h.
2949         * jni.cc (ThreadGroupClass): New define.
2950         (_Jv_JNI_InvokeFunctions): New structure.
2951         (JNI_GetCreatedJavaVMs): New function.
2952         (the_vm): New global.
2953         (JNI_GetDefaultJavaVMInitArgs): New function.
2954         Include NativeThread.h.
2955         (NativeThreadClass): New define.
2956         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
2957         (_Jv_JNI_DestroyJavaVM): New function.
2958         (_Jv_JNI_AttachCurrentThread): New function.
2959         (_Jv_JNI_DetachCurrentThread): New function.
2960         (_Jv_JNI_GetEnv): New function.
2961         (JNI_CreateJavaVM): New function.
2962         (_Jv_JNI_GetJavaVM): New function.
2963         (_Jv_JNIFunctions): Added entry for GetJavaVM.
2964         * include/jni.h (JavaVMAttachArgs): New structure.
2965         (JNI_EDETACHED): New define.
2966         (JNI_EVERSION): Likewise.
2967         (JavaVM): Define properly.
2968         (struct JNIInvokeInterface): New structure.
2969         (class _Jv_JavaVM): New class.
2970         (JNI_OnLoad, JNI_OnUnload): Declare.
2971         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
2972         JNI_GetCreatedJavaVMs): Declare.
2973         (JavaVMInitArgs): New typedef.
2974         (JavaVMOption): Likewise.
2975         (JNI_ERR): New define.
2976         (JNI_OK): Likewise.
2977
2978 2000-02-10  Andrew Haley  <aph@cygnus.com>
2979
2980         * interpret.cc: Don't include fdlibm.h.
2981         Replace #if with #ifdef throughout.
2982         Declare extern __ieee754_fmod.
2983         (continue1): Remove op_getfield, op_getstatic, op_putfield,
2984         op_putstatic insns.
2985         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
2986         Search class hierarchy for superclass vtable.
2987
2988         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
2989         off the end of a pointer list.
2990
2991         * java/lang/natThread.cc (stop): Don't abort, throw an exception
2992         instead.
2993         (suspend): Ditto.
2994         
2995 2000-02-09  Tom Tromey  <tromey@cygnus.com>
2996
2997         * java/lang/natRuntime.cc (_load): Call add_library.
2998         (loadLibraryInternal): Likewise.
2999
3000         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
3001         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
3002         (Output_iconv::finalize): Likewise.
3003
3004 2000-02-08  Tom Tromey  <tromey@cygnus.com>
3005
3006         * java/util/Properties.java (setProperty): New method.
3007         (store): New method.
3008
3009 2000-02-07  Tom Tromey  <tromey@cygnus.com>
3010
3011         * java/lang/Runtime.java (_load): Declare.
3012         (load, loadLibrary): Wrote in terms of _load.
3013         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
3014         library.
3015         (loadLibrary): Likewise.
3016         Include <jni.h>.
3017         (_load): New method.
3018         (loadLibrary, load): Removed.
3019
3020         * jni.cc (ThrowableClass): New define.
3021         (_Jv_JNI_Throw): Check argument.
3022         (_Jv_JNI_ThrowNew): Likewise.
3023         (wrap_value): Don't wrap object if it is NULL.
3024         (_Jv_JNI_DefineClass): Use wrap_value.
3025         (_Jv_JNI_FindClass): Likewise.
3026         (_Jv_JNI_GetSuperclass): Likewise.
3027         (_Jv_JNI_ExceptionOccurred): Likewise.
3028         (_Jv_JNI_AllocObject): Likewise.
3029         (_Jv_JNI_GetObjectClass): Likewise.
3030         (_Jv_JNI_NewString): Likewise.
3031         (_Jv_JNI_NewStringUTF): Likewise.
3032         (_Jv_JNI_NewObjectArray): Likewise.
3033         (_Jv_JNI_GetObjectArrayElement): Likewise.
3034         (_Jv_JNI_NewPrimitiveArray): Likewise.
3035         (_Jv_JNI_ToReflectedField): Likewise.
3036         (_Jv_JNI_ToReflectedMethod): Likewise.
3037         (_Jv_JNI_AllocObject): Check argument.
3038         (_Jv_JNI_NewObjectV): Likewise.
3039         (_Jv_JNI_NewObject): Likewise.
3040         (_Jv_JNI_NewObjectA): Likewise.
3041         (_Jv_JNI_GetObjectClass): Likewise.
3042         (_Jv_JNI_GetField): Likewise.
3043         (_Jv_JNI_SetField): Likewise.
3044
3045         * interpret.cc (PUSHL): Don't use expression statement.
3046         (PUSHD): Likewise.
3047         (LOADL): Likewise.
3048         (STOREL): Likewise.
3049
3050         * jni.cc (add_char): Conditional on INTERPRETER.
3051         (mangled_name): Likewise.
3052         (call): Likewise.
3053         * include/java-interp.h (class _Jv_MethodBase): Conditional on
3054         INTERPRETER.
3055         (class _Jv_JNIMethod): Likewise.
3056
3057 2000-02-04  Warren Levy  <warrenl@cygnus.com>
3058
3059         * Makefile.am: Added MPN.java and BigInteger.java.
3060         * Makefile.in: Rebuilt.
3061         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
3062         <per@bothner.com>.
3063         * java/math/BigInteger.java: New file.  Based primarily on
3064         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
3065
3066 2000-02-04  Tom Tromey  <tromey@cygnus.com>
3067
3068         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
3069         pointers.
3070         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
3071         if the method is native.
3072         * resolve.cc (ncode): Don't handle native methods.
3073         (_Jv_JNIMethod::ncode): New method.
3074         (_Jv_PrepareClass): Handle native methods.
3075         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
3076         Include AbstractMethodError.h.
3077         (add_char): New function.
3078         (mangled_name): Likewise.
3079         * include/java-interp.h (class _Jv_JNIMethod): New class.
3080         (class _Jv_MethodBase): New class.
3081         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
3082         (_Jv_InterpClass): Changed `interpreted_methods' field to type
3083         `_Jv_MethodBase'.
3084
3085         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
3086         * java/lang/natRuntime.cc (libraries_size, libraries_count,
3087         libraries): New globals.
3088         (add_library): New function.
3089         (_Jv_FindSymbolInExecutable): New function.
3090
3091         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
3092         Now static.
3093
3094 2000-02-04  Andrew Haley  <aph@cygnus.com>
3095
3096         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
3097         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
3098         * java/lang/natThrowable.cc (printRawStackTrace): Rename
3099         printStackTrace to printRawStackTrace.
3100
3101 2000-02-03  Tom Tromey  <tromey@cygnus.com>
3102
3103         * java/util/Calendar.java (toString): New method.
3104         * java/util/SimpleTimeZone.java (clone): New method.
3105         (toString): New method.
3106         * java/util/TimeZone.java (clone): New method.
3107         * java/text/SimpleDateFormat.java (clone): New method.
3108         * java/text/NumberFormat.java (clone): New method.
3109         (equals): New method.
3110         * java/text/Format.java (clone): New method.
3111         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
3112         constructor.
3113         (clone): New method.
3114         * java/text/DateFormat.java (clone): New method.
3115         * java/text/Collator.java (clone): New method.
3116
3117 2000-02-03  Tom Tromey  <tromey@cygnus.com>
3118
3119         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
3120         method.
3121
3122 2000-02-01  Tom Tromey  <tromey@cygnus.com>
3123
3124         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
3125         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
3126         constructing the closure if the function is native.
3127         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
3128         a template function, #if'd out, or static.
3129         Include <java-interp.h>.
3130
3131         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
3132
3133         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
3134
3135         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
3136         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
3137         `locals == NULL'.
3138         (wrap_value): New function.
3139         (_Jv_JNI_CallAnyMethodV): Use it.
3140         (_Jv_JNI_CallAnyMethodA): Likewise.
3141         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
3142         (_Jv_JNI_GetStaticField): Likewise.
3143
3144         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
3145         (_Jv_JNI_GetStaticField): Likewise.
3146
3147 2000-01-31  Tom Tromey  <tromey@cygnus.com>
3148
3149         * prims.cc (_Jv_MallocUnchecked): New function.
3150         (main_init): Call _Jv_JNI_Init.
3151         * include/jvm.h (_Jv_MallocUnchecked): Declare.
3152         (_Jv_JNI_Init): Declare.
3153         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
3154         <string.h>.
3155         (_Jv_JNI_NewGlobalRef): New function.
3156         (_Jv_JNI_DeleteGlobalRef): New function.
3157         (_Jv_JNI_DeleteLocalRef): New function.
3158         (_Jv_JNI_conversion_call): Initialize and clear local reference
3159         frame.
3160         (_Jv_JNI_NewLocalRef): New function.
3161         (struct _Jv_JNI_LocalFrame): New structure.
3162         (_Jv_JNI_PushLocalFrame): New function.
3163         (_Jv_JNI_EnsureLocalCapacity): New function.
3164         (FRAME_SIZE): New define.
3165         (_Jv_JNI_GetStringChars): Mark string, not characters.
3166         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
3167         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
3168         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
3169         elements.
3170         (_Jv_JNI_DefineClass): Make return value a local ref.
3171         (_Jv_JNI_FindClass): Likewise.
3172         (_Jv_JNI_GetSuperclass): Likewise.
3173         (_Jv_JNI_ExceptionOccurred): Likewise.
3174         (_Jv_JNI_AllocObject): Likewise.
3175         (_Jv_JNI_GetObjectClass): Likewise.
3176         (_Jv_JNI_CallAnyMethodV): Likewise.
3177         (_Jv_JNI_NewString): Likewise.
3178         (_Jv_JNI_NewStringUTF): Likewise.
3179         (_Jv_JNI_NewObjectArray): Likewise.
3180         (_Jv_JNI_GetObjectArrayElement): Likewise.
3181         (_Jv_JNI_ToReflectedField): Likewise.
3182         (_Jv_JNI_ToReflectedMethod): Likewise.
3183         (_Jv_JNIFunctions): Updated table for new functions.
3184         (_Jv_JNI_Init): New function.
3185         (mark_for_gc): Wrote.
3186         (unmark_for_gc): Wrote.
3187         * include/jni.h (struct JNINativeInterface): Removed name from
3188         PopLocalFrame parameter.
3189         (class _Jv_JNIEnv): Added `locals' field.
3190
3191 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
3192
3193         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
3194         (write): Ditto.
3195
3196 2000-01-30  Tom Tromey  <tromey@cygnus.com>
3197
3198         * include/config.h.in: Rebuilt.
3199         * acconfig.h (HAVE_ICONV): Define.
3200         * configure: Rebuilt.
3201         * configure.in: Check for `iconv' function.
3202         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
3203         no specific encoder exists.
3204         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
3205         no specific encoder exists.
3206         * Makefile.in: Rebuilt.
3207         * Makefile.am (convert_source_files): Mention Input_iconv.java and
3208         Output_iconv.java.
3209         (nat_source_files): Added natIconv.cc.
3210         * gnu/gcj/convert/natIconv.cc: New file.
3211         * gnu/gcj/convert/Input_iconv.java: New file.
3212         * gnu/gcj/convert/Output_iconv.java: New file.
3213
3214 2000-01-28  Tom Tromey  <tromey@cygnus.com>
3215
3216         * Makefile.in: Rebuilt.
3217         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
3218
3219 2000-01-26  Tom Tromey  <tromey@cygnus.com>
3220
3221         * gcj/method.h (JvNumMethods): Moved from Class.h.
3222         (JvGetFirstMethod): Likewise.
3223         * java/lang/Class.h (Object): Updated decl of
3224         _Jv_JNI_ToReflectedField.
3225         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
3226         * Makefile.in: Rebuilt.
3227         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
3228         argument of _Jv_JNI_ToReflectedField.
3229         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
3230         as a friend.
3231         (java/lang/reflect/Method.h): Likewise.
3232         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
3233         __GCJ_JNI_IMPL__.
3234         (jweak): New typedef.
3235         (struct JNINativeInterface): Correctly declare remaining entries.
3236         * jni.cc: Include Class.h, ClassLoader.h.
3237         (_Jv_JNI_FindClass): New function.
3238         (_Jv_JNI_DefineClass): New function.
3239         (_Jv_JNI_conversion_call): New function.
3240         (_Jv_JNI_FindClass): Use current class loader to find class.
3241         (_Jv_JNI_ExceptionCheck): New function.
3242         (_Jv_JNI_FromReflectedField): Now static.
3243         (MethodClass): New define.
3244         (_Jv_JNI_FromReflectedMethod): New function.
3245         (_Jv_JNI_ToReflectedMethod): Likewise.
3246         Include Method.h.
3247         (_Jv_JNI_IsAssignableFrom): Renamed.
3248         (_Jv_JNI_GetStringRegion): New function.
3249         Include StringIndexOutOfBoundsException.h.
3250         (_Jv_JNI_GetStringUTFRegion): New function.
3251         (_Jv_JNIFunctions): Updated for new functions.
3252         (_Jv_JNI_GetPrimitiveArrayCritical): New function
3253         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
3254         (_Jv_JNI_GetStringCritical): New function.
3255         (_Jv_JNI_ReleaseStringCritical): Likewise.
3256         (get_throwable): Removed.
3257         (GCJ_JV_JNIENV_FRIEND): Removed.
3258         (__GCJ_JNI_IMPL__): Define.
3259         Include method.h.
3260
3261         * resolve.cc (get_ffi_type_from_signature): Handle case where
3262         boolean is an int.
3263
3264 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
3265
3266         * interpret.cc (run): Don't call println.
3267         Don't include PrintStream.h.
3268
3269         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
3270         nameIndex.  Use "jint" as type for boffset.
3271         * java/lang/Class.h (struct _Jv_Method): Made accflags a
3272         _Jv_ushort.
3273         (Class): Likewise.  Also changed type of method_count,
3274         vtable_method_count, size_in_bytes, field_count,
3275         static_field_count, interface_count.
3276         * gcj/array.h (__JArray): Made `length' a const jsize, not an
3277         int.
3278
3279 2000-01-21  Tom Tromey  <tromey@cygnus.com>
3280
3281         * java/lang/reflect/natConstructor.cc (newInstance): Use
3282         _Jv_CallAnyMethodA.
3283         * include/jvm.h: Declare _Jv_CallAnyMethodA.
3284         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
3285         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
3286         Include <jni.h>.
3287         (COPY): Removed.
3288         (invoke): Use _Jv_CallAnyMethodA.
3289         (VAL): Redefined.
3290         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
3291         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
3292         functions.
3293         (struct _Jv_Method): Added getNextMethod method.
3294         (JvNumMethods): New function.
3295         (JvGetFirstMethod): Likewise.
3296         * gcj/field.h (JvGetFirstStaticField): New function.
3297         (JvNumStaticFields): Likewise.
3298         (getNextField): Renamed from getNextInstanceField.
3299         (struct _Jv_Field): New method getClass.
3300         * jni.cc: Wrote many new functions.
3301         * include/jni.h (JNI_TRUE): Define.
3302         (JNI_FALSE): Likewise.
3303         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
3304         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
3305         jcharArray, jfloatArray, jdoubleArray): New typedefs.
3306         (jfieldID, jmethodID): Likewise.
3307         (JNI_COMMIT, JNI_ABORT): New defines.
3308         (JNINativeMethod): New struct.
3309         (struct JNINativeInterface): Correctly declared more entries.
3310         (class _Jv_JNIEnv): Added `ex' member.
3311         (JNI_VERSION_1_1): New define.
3312         (JNI_VERSION_1_2): Likewise.
3313
3314         * boehm.cc (_Jv_MarkObj): Use getNextField, not
3315         getNextInstanceField.
3316
3317 2000-01-20  Tom Tromey  <tromey@cygnus.com>
3318
3319         * resolve.cc (StringClass): Removed.
3320         * defineclass.cc (StringClass): Removed.
3321
3322 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
3323
3324         * NEWS: updated.
3325
3326 2000-01-19  Tom Tromey  <tromey@cygnus.com>
3327
3328         * interpret.cc (PC_REGISTER_ASM): Removed.
3329
3330         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
3331         From Bryce McKinlay.
3332
3333         * All files: Updated copyright to reflect Cygnus purchase.
3334
3335 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
3336
3337         * configure: Rebuilt.
3338         * configure.in: Recognize --disable-interpreter.
3339
3340 2000-01-18  Andrew Haley  <aph@cygnus.com>
3341
3342         * name-finder.cc (lookup): Check for dladdr function.
3343         acconfig.h (HAVE_DLADDR): Add.
3344         configure.in: Check for HAVE_DLADDR
3345         configure: Rebuilt.
3346         include/config.h.in:  Rebuilt.
3347
3348 2000-01-17  Andrew Haley  <aph@cygnus.com>
3349
3350         * prims.cc (_Jv_RunMain): Set the name of this executable.
3351
3352 2000-01-17  Tom Tromey  <tromey@cygnus.com>
3353
3354         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
3355         when backtrace can't be computed.
3356
3357         * configure: Rebuilt.
3358         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
3359
3360         * java/lang/Runtime.java (loadLibraryInternal): Declare.
3361         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
3362         (_Jv_FindClassInCache): Likewise.
3363         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
3364         (findSystemClass): Try to load class from compiled module.
3365         Include Runtime.h.
3366         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
3367         (loadLibrary): Likewise.
3368         (lt_preloaded_symbols): Define.
3369         (loadLibraryInternal): New method.
3370         * include/config.h.in: Rebuilt.
3371         * acconfig.h (USE_LTDL): Added.
3372         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
3373         (INCLUDES): Added $(INCLTDL).
3374         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
3375         (libgcj_la_LIBADD): Likewise.
3376         * aclocal.m4, configure: Rebuilt.
3377         * configure.in: Added libltdl support.
3378
3379 2000-01-15  Tom Tromey  <tromey@cygnus.com>
3380
3381         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
3382
3383 2000-01-14  Andrew Haley  <aph@cygnus.com>
3384
3385         * java/lang/natThrowable.cc: New file.
3386
3387         * java/lang/Throwable.java (fillInStackTrace): Make native.
3388         (printStackTrace): Call native method to do this.
3389         (Throwable): Call fillInStackTrace.
3390         (stackTrace): New variable.
3391         
3392         * include/jvm.h: Add _Jv_ThisExecutable functions.
3393         
3394         * prims.cc: (_Jv_execName): New variable.
3395         (catch_segv): Call fillInStackTrace.
3396         (catch_fpe): Ditto.
3397         (_Jv_ThisExecutable): New functions.
3398         (JvRunMain): Set the name of this executable.
3399
3400         * Makefile.am: Add java/lang/natThrowable.cc.
3401         Add name-finder.cc.
3402         * Makefile.in: Rebuilt.
3403
3404         * acconfig.h: Add HAVE_PROC_SELF_EXE.
3405
3406         * configure.in: Force link with __frame_state_for in
3407         FORCELIBGCCSPEC.  Add new checks for backtrace.
3408         * include/config.h.in: Rebuilt.
3409
3410         * name-finder.cc: New file.
3411         * include/name-finder.h: New file.
3412
3413 2000-01-16  Anthony Green  <green@cygnus.com>
3414
3415         * java/lang/StringBuffer.java (StringBuffer): Don't special case
3416         null argument.
3417
3418 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
3419
3420         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
3421
3422 2000-01-13  Tom Tromey  <tromey@cygnus.com>
3423
3424         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
3425         not system loader, as initiating loader.
3426
3427 2000-01-11  Tom Tromey  <tromey@cygnus.com>
3428
3429         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
3430         HP/UX.  From David Scott Urban.
3431
3432 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
3433
3434         * java/lang/natMath.cc (pow): Cast args to `double', not
3435         `jdouble'.
3436         (atan2): Likewise.
3437         (IEEEremainder): Likewise.
3438         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
3439         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
3440
3441 2000-01-09  Anthony Green  <green@cygnus.com>
3442
3443         * java/lang/natString.cc (init): Test for overflow condition
3444         during out of bounds check.
3445         (getChars): Throw StringIndexOutOfBoundsException, not
3446         ArrayIndexOutOfBoundsException.
3447         (getBytes): Ditto.
3448         (regionMatches): Obey case option during string comparison.
3449
3450         * configure.host (ligcj_interpreter): New variable.  Enable
3451         interpreter by default on IA-32.
3452         * configure.in:  Examine libgcj_interpreter.
3453         * configure: Rebuilt.
3454
3455 2000-01-07  Tom Tromey  <tromey@cygnus.com>
3456
3457         * mauve-libgcj: Don't disable ClassTest.
3458
3459         * java/lang/natClass.cc (getClasses): Wrote.
3460
3461 2000-01-06  Tom Tromey  <tromey@cygnus.com>
3462
3463         * java/lang/natClass.cc (_getConstructors): Correctly check
3464         whether method name is the init name.
3465         (getMethod): Look at accflags on method in `klass', not `this'.
3466
3467 2000-01-05  Tom Tromey  <tromey@cygnus.com>
3468
3469         * java/lang/natClass.cc (getMethod): Compute offset relative to
3470         `klass's methods table, not `this's table.
3471
3472         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
3473         In unwrapping/widening case, check whether `k' is null, not
3474         whether it is primitive.  Initialize `num' from `argelts', not
3475         `paramelts'.  Correct create and pass arguments to ffi_call.
3476         Don't let presence of `this' argument affect index used to look in
3477         argument arrays.
3478         (COPY): Set appropriate element in `values' vector.
3479
3480         * java/lang/natClass.cc: Include <gcj/method.h>.
3481
3482         * java/lang/Class.h (_getMethods): Correctly declare as private,
3483         not public.
3484
3485         * java/lang/Class.h (_getMethods): Declare.
3486         * java/lang/Class.java (_getMethods): Declare.
3487         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
3488         (getDeclaredClasses): Always return empty array.
3489         (_getMethods): New method.
3490         (getMethods): Wrote.
3491         (getDeclaredMethod): Return `rmethod'.
3492         (finit_name): New global.
3493         (getDeclaredMethods): Check for finit_name.
3494         (_getMethods): Likewise.
3495         (getMethod): Only return public methods.
3496
3497         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
3498         jboolean and select correct ffi type on that basis.
3499         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
3500         Constructor call always has `void' return type.
3501
3502 2000-01-04  Tom Tromey  <tromey@cygnus.com>
3503
3504         * java/lang/Class.h (getSignature): Updated.
3505         * java/lang/Class.java (getSignature): Updated.
3506         * java/lang/natClass.cc (getSignature): Added `is_constructor'
3507         argument.
3508         (getConstructor): Ensure constructor is public.
3509         (_getConstructors): Check for public-ness of constructor when
3510         `declared' is false, not when it is true.
3511
3512 2000-01-04  Warren Levy  <warrenl@cygnus.com>
3513
3514         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
3515         comment.
3516         (receive): Set the sender's address in the DatagramPacket.
3517
3518 2000-01-04  Tom Tromey  <tromey@cygnus.com>
3519
3520         * java/lang/reflect/natConstructor.cc (newInstance): Pass
3521         declaring class as return_type argument to
3522         _Jv_CallNonvirtualMethodA.
3523         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
3524         constructor case, create object and use it as `this' argument.
3525         * java/lang/Class.h (_getConstructors): Declare.
3526         (_getFields): Declare.
3527         * java/lang/Class.java (getConstructors): Wrote.
3528         (_getConstructors): New native method.
3529         (getDeclaredConstructors): Wrote.
3530         (_getFields): Declare new native method.
3531         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
3532         incorrect comment.
3533         (getMethod): Work correctly when class is primitive.
3534         (getDeclaredMethods): Likewise.  Compute offset using `method',
3535         not `mptr'.
3536         (getDeclaredMethod): Likewise.
3537         (getConstructor): Wrote.
3538         (ConstructorClass): New define.
3539         (getDeclaredConstructor): Wrote.
3540         (_getConstructors): New method.
3541         (_getFields): New method.
3542         (getFields): Wrote.
3543
3544         * Makefile.in: Rebuilt.
3545         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
3546
3547         * prims.cc: Remove `#pragma implementation'.
3548         * gcj/array.h: Remove `#pragma interface'.
3549
3550         * prims.cc (_Jv_equaln): New function.
3551         * java/lang/Class.java (getSignature): Declare.
3552         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
3553         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
3554         resolve.cc.
3555         (getSignature): New method.
3556         (getDeclaredMethod): Wrote.
3557         (getMethod): Wrote.
3558         Include StringBuffer.h.
3559         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
3560         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
3561         a friend.
3562         (getSignature): Declare.
3563         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
3564         (_Jv_equaln): Declare.
3565         (_Jv_CallNonvirtualMethodA): Declare.
3566         * Makefile.in: Rebuilt.
3567         * Makefile.am (nat_source_files): Added natConstructor.cc.
3568         (java/lang/reflect/Constructor.h): New target.
3569         * java/lang/reflect/natConstructor.cc: New file.
3570         * java/lang/reflect/Constructor.java (newInstance): Now native.
3571         (declaringClass): Renamed from decl_class.
3572         (offset): Renamed from index.
3573         (getType): New native method.
3574         (getModifiers): Now native.
3575         (getParameterTypes): Call getType if required.
3576         (hashCode): Include hash code from declaring class.
3577         (modifiers): Removed.
3578         (toString): Call getType if required.
3579         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
3580         * java/lang/reflect/natMethod.cc (hack_call): New method.
3581         Removed `#if 0' around FFI code.
3582         Include <gnu/gcj/RawData.h>.
3583         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
3584         IllegalArgumentException when argument object and class disagree.
3585         (_Jv_GetTypesFromSignature): New function.
3586         (getType): Use it.
3587         (ObjectClass): New define.
3588         (_Jv_CallNonvirtualMethodA): New function.
3589         * java/lang/reflect/Method.java (hack_trampoline): New method.
3590         (hack_call): New native method.