1 2001-09-03 Tom Tromey <tromey@redhat.com>
3 * java/lang/reflect/natField.cc (set): Allow for case when the
4 value is null. Fixes PR libgcj/4208.
6 * gcj/javaprims.h: Regenerated class list.
7 * java/lang/IllegalThreadStateException.java,
8 java/lang/InstantiationException.java: Minor comment tweaks to
9 satisfy libgcj `classes.pl' script.
11 2001-09-01 Tom Tromey <tromey@redhat.com>
13 * Makefile.in: Rebuilt.
14 * Makefile.am (core_java_source_files): Added
15 UnsupportedClassVersionError.
16 * java/lang/UnsupportedClassVersionError.java: New file from
19 * java/io/CharConversionException.java, java/io/EOFException.java,
20 java/io/FileNotFoundException.java, java/io/IOException.java,
21 java/io/InterruptedIOException.java,
22 java/io/ObjectStreamException.java,
23 java/io/OptionalDataException.java,
24 java/io/StreamCorruptedException.java,
25 java/io/SyncFailedException.java,
26 java/io/UTFDataFormatException.java,
27 java/io/UnsupportedEncodingException.java,
28 java/lang/AbstractMethodError.java,
29 java/lang/ArithmeticException.java,
30 java/lang/ArrayIndexOutOfBoundsException.java,
31 java/lang/ArrayStoreException.java,
32 java/lang/ClassCastException.java,
33 java/lang/ClassCircularityError.java,
34 java/lang/ClassFormatError.java,
35 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
36 java/lang/Exception.java,
37 java/lang/ExceptionInInitializerError.java,
38 java/lang/IllegalAccessError.java,
39 java/lang/IllegalAccessException.java,
40 java/lang/IllegalArgumentException.java,
41 java/lang/IllegalMonitorStateException.java,
42 java/lang/IllegalStateException.java,
43 java/lang/IllegalThreadStateException.java,
44 java/lang/IncompatibleClassChangeError.java,
45 java/lang/IndexOutOfBoundsException.java,
46 java/lang/InstantiationError.java,
47 java/lang/InstantiationException.java,
48 java/lang/InternalError.java, java/lang/InterruptedException.java,
49 java/lang/LinkageError.java,
50 java/lang/NegativeArraySizeException.java,
51 java/lang/NoClassDefFoundError.java,
52 java/lang/NoSuchFieldError.java,
53 java/lang/NoSuchFieldException.java,
54 java/lang/NoSuchMethodError.java,
55 java/lang/NoSuchMethodException.java,
56 java/lang/NullPointerException.java,
57 java/lang/NumberFormatException.java,
58 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
59 java/lang/SecurityException.java,
60 java/lang/StackOverflowError.java,
61 java/lang/StringIndexOutOfBoundsException.java,
62 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
63 java/lang/UnsatisfiedLinkError.java,
64 java/lang/UnsupportedOperationException.java,
65 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
66 java/lang/reflect/InvocationTargetException.java,
67 java/net/BindException.java, java/net/ConnectException.java,
68 java/net/MalformedURLException.java,
69 java/net/NoRouteToHostException.java,
70 java/net/ProtocolException.java, java/net/SocketException.java,
71 java/net/UnknownHostException.java,
72 java/net/UnknownServiceException.java,
73 java/text/ParseException.java: Copied from Classpath, thanks to
74 Mark Wielaard who did the merge.
76 * java/lang/System.java (getProperty): Use single argument form of
77 SecurityManager.checkPropertyAccess.
78 * Makefile.in: Rebuilt.
79 * Makefile.am (core_java_source_files): Added VMSecurityManager.
80 * java/lang/VMSecurityManager.java: New file.
81 * java/lang/SecurityManager.java: Merged with Classpath.
83 2001-08-31 Per Bothner <per@bothner.com>
85 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
86 (_Jv_RegisterClassHookDefault): Likewise.
87 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
88 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
89 (_Jv_RegisterClassHookDefault): New.function.
90 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
92 * java/lang/ClassLoader.java (system): Remove static field.
93 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
94 directly instead of using it to set the system field.
95 (loadClass): Use VMClassLoader.instance instead of system field.
96 (findSystemClass): Similar.
97 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
98 than ClassLoader::system which no longer exists.
99 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
101 2001-08-31 Tom Tromey <tromey@redhat.com>
103 * java/io/BufferedReader.java, java/io/ObjectInput.java,
104 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
105 Re-merged with Classpath.
107 Re-merge with Classpath:
108 * java/util/Comparator (equals): Added.
109 * java/io/PipedWriter.java (write): Changed argument to `int'.
111 * java/io/FileDescriptor.java (FileDescriptor()): New
113 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
115 * Makefile.in: Rebuilt.
116 * Makefile.am (ordinary_java_source_files): Removed
117 EnumerationChain, added DoubleEnumeration.
118 (nat_source_files): Added natResourceBundle.cc.
119 * java/util/natResourceBundle.cc: New file.
120 * gnu/java/util/DoubleEnumeration.java: New file.
121 * gnu/gcj/util/EnumerationChain.java: Removed.
122 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
123 * java/util/ResourceBundle.java: Merged with Classpath.
124 * java/util/StringTokenizer.java: Merged with Classpath.
125 * java/util/Locale.java: Merged with Classpath.
126 * java/util/Random.java: Merged with Classpath.
127 * java/util/PropertyResourceBundle.java: Merged with Classpath.
128 * java/util/ListResourceBundle.java: Merged with Classpath.
129 * java/util/ConcurrentModificationException.java: Re-merged with
131 * java/util/EmptyStackException.java: Likewise.
132 * java/util/MissingResourceException.java: Likewise.
133 * java/util/NoSuchElementException.java: Likewise.
134 * java/util/TooManyListenersException.java: Likewise.
136 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
137 * java/io/OptionalDataException.java: Merged with Classpath.
139 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
141 * exception.cc (PERSONALITY_FUNCTION): Simplify
144 2001-08-31 Tom Tromey <tromey@redhat.com>
146 * java/io/ByteArrayInputStream.java: Merged with Classpath.
148 2001-08-30 Tom Tromey <tromey@redhat.com>
150 * java/io/BufferedReader.java: Re-merged with Classpath.
152 2001-08-28 Per Bothner <per@bothner.com>
154 * java/math/BigInteger.java (init(int,Random)): New method.
155 Move body of constructor <init>(int,Random)) here.
156 Re-write it to avoid constructing unneeded temporaries.
157 (<init>(int,int,Random)): Use new init method to avoid constructing
158 extra temporary BigIntegers.
160 2001-08-27 Tom Tromey <tromey@redhat.com>
162 * java/rmi/activation/Activatable.java,
163 java/rmi/activation/ActivateFailedException.java,
164 java/rmi/activation/ActivationDesc.java,
165 java/rmi/activation/ActivationException.java,
166 java/rmi/activation/ActivationGroup.java,
167 java/rmi/activation/ActivationGroupDesc.java,
168 java/rmi/activation/ActivationGroupID.java,
169 java/rmi/activation/ActivationID.java,
170 java/rmi/activation/ActivationInstantiator.java,
171 java/rmi/activation/ActivationMonitor.java,
172 java/rmi/activation/ActivationSystem.java,
173 java/rmi/activation/Activator.java,
174 java/rmi/activation/UnknownGroupException.java,
175 java/rmi/activation/UnknownObjectException.java,
176 java/rmi/AccessException.java,
177 java/rmi/AlreadyBoundException.java,
178 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
179 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
180 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
181 java/rmi/NotBoundException.java,
182 java/rmi/RMISecurityException.java,
183 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
184 java/rmi/RemoteException.java, java/rmi/ServerError.java,
185 java/rmi/ServerException.java,
186 java/rmi/ServerRuntimeException.java,
187 java/rmi/StubNotFoundException.java,
188 java/rmi/UnexpectedException.java,
189 java/rmi/UnknownHostException.java,
190 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
191 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
192 java/rmi/registry/LocateRegistry.java,
193 java/rmi/registry/Registry.java,
194 java/rmi/registry/RegistryHandler.java,
195 java/rmi/server/ExportException.java,
196 java/rmi/server/LoaderHandler.java,
197 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
198 java/rmi/server/Operation.java,
199 java/rmi/server/RMIClassLoader.java,
200 java/rmi/server/RMIClientSocketFactory.java,
201 java/rmi/server/RMIFailureHandler.java,
202 java/rmi/server/RMIServerSocketFactory.java,
203 java/rmi/server/RMISocketFactory.java,
204 java/rmi/server/RemoteCall.java,
205 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
206 java/rmi/server/RemoteServer.java,
207 java/rmi/server/RemoteStub.java,
208 java/rmi/server/ServerCloneException.java,
209 java/rmi/server/ServerNotActiveException.java,
210 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
211 java/rmi/server/SkeletonMismatchException.java,
212 java/rmi/server/SkeletonNotFoundException.java,
213 java/rmi/server/SocketSecurityException.java,
214 java/rmi/server/UID.java,
215 java/rmi/server/UnicastRemoteObject.java,
216 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
217 gnu/java/rmi/dgc/DGCImpl_Skel.java,
218 gnu/java/rmi/dgc/DGCImpl_Stub.java,
219 gnu/java/rmi/registry/RegistryImpl.java,
220 gnu/java/rmi/registry/RegistryImpl_Skel.java,
221 gnu/java/rmi/registry/RegistryImpl_Stub.java,
222 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
223 gnu/java/rmi/server/ProtocolConstants.java,
224 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
225 gnu/java/rmi/server/RMIHashes.java,
226 gnu/java/rmi/server/RMIObjectInputStream.java,
227 gnu/java/rmi/server/RMIObjectOutputStream.java,
228 gnu/java/rmi/server/UnicastConnection.java,
229 gnu/java/rmi/server/UnicastConnectionManager.java,
230 gnu/java/rmi/server/UnicastRef.java,
231 gnu/java/rmi/server/UnicastRemoteCall.java,
232 gnu/java/rmi/server/UnicastRemoteStub.java,
233 gnu/java/rmi/server/UnicastServer.java,
234 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
235 Kaffe. Relabelled classes to fit into Classpath tree.
236 * Makefile.in: Rebuilt.
237 * Makefile.am (rmi_java_source_files): New macro.
238 (ordinary_java_source_files): Reference it.
239 (bin_PROGRAMS): Added rmic and rmiregistry.
240 (rmic_SOURCES): New macro.
241 (EXTRA_rmic_SOURCES): Likewise.
242 (rmic_LDFLAGS): Likewise.
243 (rmic_LINK): Likewise.
244 (rmic_LDADD): Likewise.
245 (rmic_DEPENDENCIES): Likewise.
246 (rmiregistry_SOURCES): New macro.
247 (EXTRA_rmiregistry_SOURCES): Likewise.
248 (rmiregistry_LDFLAGS): Likewise.
249 (rmiregistry_LINK): Likewise.
250 (rmiregistry_LDADD): Likewise.
251 (rmiregistry_DEPENDENCIES): Likewise.
253 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
255 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
257 * Makefile.am: New friends for java/lang/Thread.h.
258 * prims.cc (runFirst): Removed.
259 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
260 (_Jv_RunMain): Now takes either a klass or class name parameter.
261 Create a gnu.gcj.runtime.FirstThread and attach the native thread
262 to that, then run it using _Jv_ThreadRun. Remove special handling of
263 jar files, instead pass is_jar parameter through to FirstThread.
264 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
265 of _Jv_AttachCurrentThread.
266 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
267 (run): New method. Take care of looking up main class manifest
268 attribute and calling forName if neccessary. Then call call_main.
269 (call_main): New native method.
270 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
271 relocated from prims.cc. Look up and call main method.
272 * java/lang/Thread.java (run_): Removed.
273 * java/lang/natThread.cc (run_): Renamed to...
274 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
275 (_Jv_NotifyThreadStart): here. New function.
276 (countStackFrames, destroy, resume, suspend, stop): Throw
277 UnsupportedOperationExceptions rather than JvFail'ing.
278 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
279 Existing version wraps new variant.
282 2001-08-23 Tom Tromey <tromey@redhat.com>
284 * java/lang/reflect/Field.java (toString): Use
285 Method.appendClassName.
286 * java/lang/reflect/Constructor.java (toString): Use
287 Method.appendClassName.
288 * java/lang/reflect/Method.java: Reindented.
289 (appendClassName): New method.
291 * defineclass.cc (handleMethod ): Initialize `throws' field of
293 (read_one_method_attribute): Handle Exceptions attribute.
294 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
295 (ObjectClass): Removed.
296 (getType): Compute `exception_types'.
297 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
299 2001-08-21 Anthony Green <green@redhat.com>
301 * java/lang/natClassLoader.cc (findClass): Search for
302 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
304 2001-08-21 Jeff Sturm <jsturm@one-point.com>
306 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
309 2001-08-20 Tom Tromey <tromey@redhat.com>
311 * java/awt/GridBagConstraints.java: Removed comment.
313 * jni.cc (nathash, nathash_count, nathash_size): New globals.
314 (DELETED_ENTRY): New define.
315 (hash): New function.
316 (nathash_find_slot): Likewise.
317 (natrehash): Likewise.
318 (nathash_add): Likewise.
319 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
321 (nathash_find): New function.
322 (_Jv_LookupJNIMethod): Use it. Synchronize body.
323 (call): Synchronize around assignment.
325 2001-08-17 Jeff Sturm <jsturm@one-point.com>
327 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
328 starting from zero offset.
330 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
332 * boehm.cc: Include gc_local_alloc.h if appropriate.
333 (GC_GENERIC_MALLOC): Don't define.
334 (MAYBE_MARK): Redefine for GC 6.0.
335 (_Jv_MarkObj): Mark class differently.
336 (_Jv_AllocArray): Use GC_generic_malloc.
338 2001-08-17 Mark J Roberts <mjr@anarcast.net>
340 * java/math/BigInteger.java (randBytes): New method.
341 (BigInteger(int,Random)): Use randBytes.
343 2001-08-17 Tom Tromey <tromey@redhat.com>
345 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
347 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
349 * BigInteger.java: fix right shifts by nonzero multiples of 32.
351 2001-08-15 Tom Tromey <tromey@redhat.com>
353 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
354 (local_ref_table, global_ref_table): Now IdentityHashMap.
355 (_Jv_JNI_Init): Updated for new types.
356 (mark_for_gc): Likewise.
357 (unmark_for_gc): Likewise.
358 * gcj/javaprims.h: Rebuilt class list.
359 * Makefile.in: Rebuilt.
360 * Makefile.am (core_java_source_files): Added new file.
361 * java/util/IdentityHashMap.java: New file.
363 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
366 2001-08-09 Tom Tromey <tromey@redhat.com>
368 * java/awt/image/SampleModel.java (getPixel): Set correct array
369 element. From Chris Meyer.
371 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
373 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
374 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
376 2001-08-06 Tom Tromey <tromey@redhat.com>
378 * java/io/InputStreamReader.java (refill): Only call refill on
379 BufferedInputStream when appropriate constraints are met.
381 2001-08-05 Tom Tromey <tromey@redhat.com>
383 * java/io/StringWriter.java: Merged with Classpath.
384 * java/io/InputStream.java: Merged with Classpath.
385 * java/io/OutputStream.java: Merged with Classpath.
386 * java/io/PushbackInputStream.java: Merged with Classpath.
387 * java/io/CharArrayReader.java: Merged with Classpath.
388 * java/io/CharArrayWriter.java: Merged with Classpath.
390 2001-08-02 Tom Tromey <tromey@redhat.com>
392 * prims.cc (JNI_OnLoad): Don't declare.
393 (_JNI_OnLoad): Don't define.
394 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
396 2001-08-02 Tom Tromey <tromey@redhat.com>
398 * java/io/RandomAccessFile.java (seek): Let seek go past end of
400 (skipBytes): Don't fail if seeking past end of file.
401 * java/io/FileInputStream.java (skip): Don't fail if seeking past
403 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
405 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
407 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
409 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
411 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
413 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
414 to initialize global_ref_table/local_ref_table.
416 2001-08-02 Tom Tromey <tromey@redhat.com>
418 * configure: Rebuilt.
419 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
422 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
424 * include/posix.h (_POSIX_PII_SOCKET): Define.
425 * configure.in (HAVE_SOCKLEN_T): Define.
426 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
428 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
429 (java::net::PlainSocketImpl::accept): Use it.
430 Fixes PRs libgcj/3694, libgcj/3696.
432 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
433 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
434 * configure, include/config.h.in: Regenerate.
435 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
436 (mcastGrp): Likewise.
437 (java::net::PlainDatagramSocketImpl::setOption): Guard against
438 missing IPV6_MULTICAST_IF.
439 Fixes PR libgcj/3694.
441 2001-08-01 Jeff Sturm <jsturm@one-point.com>
443 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
445 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
447 * Makefile.in: Rebuilt.
448 * Makefile.am (GCJLINK): Added --tag=GCJ.
451 2001-07-30 Tom Tromey <tromey@redhat.com>
453 * java/util/Date.java: Re-merged with Classpath.
455 2001-07-30 Jeff Sturm <jsturm@one-point.com>
457 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
458 (_Jv_bind): New static function.
459 (bind): Use _Jv_bind.
460 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
461 (_Jv_bind, _Jv_connect): New static functions.
462 (bind): Use _Jv_bind.
463 (connect): Use _Jv_connect.
465 2001-07-30 Tom Tromey <tromey@redhat.com>
466 Corey Minyard <minyard@acm.org>
468 * gnu/gcj/convert/natIconv.cc (done): New methods.
469 * gnu/gcj/convert/Output_iconv.java (done): New method.
470 * gnu/gcj/convert/Input_iconv.java (done): New method.
471 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
473 (getDefaultEncodingClass): Removed.
474 (getDefaultEncoder): Use getEncoder.
476 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
478 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
480 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
482 (getDefaultDecodingClass): Removed.
483 (getDefaultDecoder): Use getDecoder.
484 (getDecoder): Look up decoder in cache.
486 * java/lang/natString.cc (init): Call `done' on converter.
487 (getBytes): Likewise.
489 2001-07-30 Tom Tromey <tromey@redhat.com>
491 * java/lang/Integer.java: Merged with Classpath.
493 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
495 * java/util/GregorianCalendar.java (GregorianCalendar): Call
496 setTimeInMillis() to set the default/current time.
498 2001-07-29 Mark Wielaard <mark@klomp.org>
500 * HACKING: add description on updating namespace
502 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
504 * java/util/Calendar.java (set): Never recompute fields here. They
505 will already be set if someone set time explicitly, and it can cause
506 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
507 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
508 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
510 * java/text/SimpleDateFormat.java (defaultCentury): New field.
511 (readObject): Call set2DigitYearStart if appropriate so that
512 defaultCentury is calculated.
513 (SimpleDateFormat): Don't bother clearing calendar here. Call
514 computeCenturyStart().
515 (set2DigitYearStart): Calculate and set defaultCentury.
516 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
518 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
519 2 numeric digits, use the 80-20 heuristic to parse the value into a
520 default century based on defaultCenturyStart.
521 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
523 2001-07-25 Tom Tromey <tromey@redhat.com>
525 * Makefile.in: Rebuilt.
526 * Makefile.am (libgcj.jar): Correctly fail when bytecode
529 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
531 * prims.cc (_JNI_OnLoad): New function.
532 (JNI_OnLoad): Use it.
533 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
535 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
537 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
538 Makefile.in: Regenerate.
540 2001-07-24 Tom Tromey <tromey@redhat.com>
542 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
545 2001-07-23 Tom Tromey <tromey@redhat.com>
547 * gcj/javaprims.h: Rebuilt class list.
548 * Makefile.in: Rebuilt.
549 * Makefile.am (core_java_source_files): Added VMClassLoader.
550 * java/lang/VMClassLoader.java: New file.
551 * java/lang/Boolean.java: Merged with Classpath.
552 * java/lang/Byte.java: Merged with Classpath.
553 * java/lang/Integer.java: Merged with Classpath.
554 * java/lang/Long.java: Merged with Classpath.
555 * java/lang/Number.java: Merged with Classpath.
556 * java/lang/Short.java: Merged with Classpath.
558 2001-07-22 Jeff Sturm <jsturm@one-point.com>
560 * configure.host: Enable hash synchronization for alpha*-*.
561 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
563 * java/lang/natObject.cc (compare_and_swap, release_set,
564 compare_and_swap_release): Added inline functions for alpha.
566 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
568 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
569 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
570 back to old RFC 2133 variants if missing.
572 2001-07-18 Tom Tromey <tromey@redhat.com>
574 * java/io/natFileWin32.cc (_access): Renamed.
576 * java/io/natFile.cc (_access): Renamed.
578 * java/io/File.java (access, stat): Add leading `_' to name.
581 2001-07-18 Tom Tromey <tromey@redhat.com>
584 * libgcj.spec.in (*lib): Added LIBICONV.
585 * configure: Rebuilt.
586 * configure.in: Call AM_ICONV. Don't check for iconv function.
587 Add parameters to JV_HASH_SYNCHRONIZATION define.
588 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
590 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
592 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
593 not by setting its size field.
595 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
597 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
600 2001-07-12 Tom Tromey <tromey@redhat.com>
601 David Brownell <david-b@pacbell.net>
603 Fix for PR libgcj/3426:
604 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
606 (read): Throw exception if character conversion fails.
607 * java/io/BufferedInputStream.java (refill): Now package-private.
608 * java/io/InputStreamReader.java (ready): Simplified.
609 (refill): New method.
612 2001-07-12 Tom Tromey <tromey@redhat.com>
614 Report from Henner Zeller:
615 * java/io/FileOutputStream.java (FileOutputStream): Throw
616 FileNotFoundException, not IOException.
618 2001-07-10 Anthony Green <green@redhat.com>
620 * Makefile.in: Rebuilt.
621 * Makefile.am: Add new files.
622 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
623 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
624 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
625 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
626 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
627 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
628 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
629 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
630 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
631 org/w3c/dom/ranges/DocumentRange.java,
632 org/w3c/dom/ranges/Range.java,
633 org/w3c/dom/ranges/RangeException.java,
634 org/w3c/dom/traversal/DocumentTraversal.java,
635 org/w3c/dom/traversal/NodeFilter.java,
636 org/w3c/dom/traversal/NodeIterator.java,
637 org/w3c/dom/traversal/TreeWalker.java,
638 org/xml/sax/ext/DeclHandler.java,
639 org/xml/sax/ext/LexicalHandler.java,
640 org/xml/sax/helpers/AttributeListImpl.java,
641 org/xml/sax/helpers/AttributesImpl.java,
642 org/xml/sax/helpers/DefaultHandler.java,
643 org/xml/sax/helpers/LocatorImpl.java,
644 org/xml/sax/helpers/NamespaceSupport.java,
645 org/xml/sax/helpers/ParserAdapter.java,
646 org/xml/sax/helpers/ParserFactory.java,
647 org/xml/sax/helpers/XMLFilterImpl.java,
648 org/xml/sax/helpers/XMLReaderAdapter.java,
649 org/xml/sax/helpers/XMLReaderFactory.java,
650 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
651 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
652 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
653 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
654 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
655 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
656 org/xml/sax/SAXNotRecognizedException.java,
657 org/xml/sax/SAXNotSupportedException.java,
658 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
659 org/xml/sax/XMLReader.java: New files.
661 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
663 * Makefile.am: Added `java/lang/ThreadLocal.java'.
664 * Makefile.in: Regenerate.
665 * java/lang/ThreadLocal.java: Initial import.
667 2001-07-07 Jeff Sturm <jsturm@one-point.com>
669 * Makefile.am (libgcj.jar): Don't recursively make
670 built_java_source_files. Avoid long command lines.
671 Don't change to $(srcdir) to invoke javac.
672 (libgcj.la, libgcjx.la); Avoid long command lines.
673 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
674 * Makefile.in: Rebuilt.
676 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
678 * include/i386-signal.h: Don't do anything with unsigned divide
679 overflow except throw an exception.
681 2001-07-05 Tom Tromey <tromey@redhat.com>
684 * java/lang/Class.h (Class(void)): Now private. Removed
685 implementation. From dmorsberger@sensysdl.com.
687 2001-07-02 Tom Tromey <tromey@redhat.com>
689 Fix for PR bootstrap/3281:
690 * aclocal.m4, configure: Rebuilt.
691 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
692 Correctly compute libgcj_basedir.
693 (mkinstalldirs): Define and subst.
695 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
698 * java/io/LineNumberReader.java (reset): Pass correct arguments to
701 2001-06-27 Tom Tromey <tromey@redhat.com>
703 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
706 2001-06-25 Tom Tromey <tromey@redhat.com>
708 * scripts/encodings.pl: Generate lower-case names. Updated URL
709 for `character-sets' file.
710 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
712 Rebuilt list of aliases.
714 2001-06-25 Tom Tromey <tromey@redhat.com>
716 * java/io/natFileDescriptorPosix.cc (open): Change error message
717 formatting. From David Brownell.
719 2001-06-21 Tom Tromey <tromey@redhat.com>
721 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
724 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
726 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
727 extraneous/malformed sign word.
729 2001-06-15 Tom Tromey <tromey@redhat.com>
731 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
733 2001-06-15 Tom Tromey <tromey@redhat.com>
735 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
736 NULL if no library on the list has the symbol.
737 (init): Call add_library on the program itself.
738 * prims.cc (JvRunMain): Initialize Runtime before searching for
740 (_Jv_RunMain): Likewise.
742 2001-06-15 Tom Tromey <tromey@redhat.com>
744 * jni.cc (ClassClass): Removed; updated all users.
745 (ObjectClass): Likewise.
746 (ThrowableClass): Likewise.
747 (MethodClass): Likewise.
748 (ThreadGroupClass): Likewise.
749 (local_ref_table): Renamed from `ref_table'.
750 (global_ref_table): New global.
751 (_Jv_JNI_Init): Initialize both ref tables.
752 (mark_for_gc): Added `ref_table' parameter.
753 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
755 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
756 (_Jv_JNI_DeleteGlobalRef): Likewise.
757 (_Jv_JNI_DeleteLocalRef): Likewise.
758 (_Jv_JNI_NewLocalRef): Likewise.
759 (_Jv_JNI_PopLocalFrame): Likewise.
760 (_Jv_JNI_GetStringChars): Likewise.
761 (_Jv_JNI_ReleaseStringChars): Likewise.
762 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
763 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
765 2001-06-14 Tom Tromey <tromey@redhat.com>
767 Fix for PR libgcj/3144:
768 * java/util/Date.java: Merged with Classpath.
770 2001-06-12 Tom Tromey <tromey@redhat.com>
772 * aclocal.m4, configure: Rebuilt.
773 * acinclude.m4: Find configure.host in srcdir.
775 2001-06-07 Tom Tromey <tromey@redhat.com>
777 Fix for PR libgcj/3059:
778 * java/lang/natSystem.cc (init_properties): Define `java.home'.
779 * Makefile.in: Rebuilt.
780 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
782 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
784 * exception.cc (cstdlib): Replaces stdlib.h.
785 (_Jv_Throw): Use std::abort().
786 (PERSONALITY_FUNCTION): Likewise.
788 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
790 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
791 nothing, as in autoconf 2.50.
792 * aclocal.m4, configure: Rebuilt.
794 2001-06-08 Tom Tromey <tromey@redhat.com>
796 * configure: Rebuilt.
797 * configure.in: Compute new aux dir using `pwd'.
799 2001-06-07 Tom Tromey <tromey@redhat.com>
801 For PR bootstrap/3075:
802 * configure, aclocal.m4, Makefile.am: Rebuilt.
803 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
804 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
805 relative to libgcj_basedir.
806 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
807 AC_CANONICAL_SYSTEM here.
808 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
810 ($(extra_headers)): New target.
812 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
813 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
815 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
816 table index is within allowed bounds. Ensure that we dont try to access
817 class itable at a negative offset. Avoid an ancestor table lookup if
818 source is a primitive type class.
819 (isInstance): Remove redundant isPrimitive() check.
821 2001-06-04 Tom Tromey <tromey@redhat.com>
823 * java/security/PublicKey.java: Extend Key.
824 * java/security/PrivateKey.java: Extend Key.
826 2001-06-02 Anthony Green <green@redhat.com>
828 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
829 alternate when USE_LTDL not defined.
831 2001-06-02 Anthony Green <green@redhat.com>
833 * configure: Rebuild.
834 * configure.in: Remove data_start hack.
835 * libgcj.spec.in: Ditto.
836 * Makefile.in: Rebuild.
837 * Makefile.am: Ditto.
838 * libgcjdata.c: Remove.
840 2001-06-02 Anthony Green <green@redhat.com>
842 * configure: Rebuild.
843 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
844 --without-libffi option. Tweak --disable-java-net processing.
845 * Makefile.in: Rebuild.
846 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
847 * include/config.h.in: Rebuild.
848 * acconfig.h (USE_LIBFFI): Define.
849 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
851 2001-06-02 Anthony Green <green@redhat.com>
853 * configure: Rebuilt.
854 * configure.in: Test for sigaction on native builds.
855 * prims.cc: Check HAVE_SIGACTION.
856 * include/config.h.in: Rebuilt.
858 2001-05-31 Jeff Sturm <jsturm@one-point.com>
860 * natFile.cc (get_entry): Removed functions.
861 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
862 Allocate enough storage for d_name if using readdir_r.
864 2001-05-31 Tom Tromey <tromey@redhat.com>
866 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
868 (write): Loop until write completes. From Corey Minyard.
870 2001-05-29 Laurent Guerby <guerby@acm.org>
872 * java/awt/geom/Rectangle2D.java: fix doc typo.
874 2001-05-31 Tom Tromey <tromey@redhat.com>
876 * java/sql/DriverManager.java (getDrivers): Handle case where
877 driver's class loader is null. From Corey Minyard.
879 2001-05-29 Tom Tromey <tromey@redhat.com>
881 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
883 * configure: Rebuilt.
884 * configure.in: Only add multilib support code if we just rebuilt
887 2001-05-29 Andrew Haley <aph@redhat.com>
889 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
890 pointer: the dwarf unwinder in libgcc will do everything that's
892 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
893 more than we absolutely need to.
894 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
895 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
897 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
899 * configure: Rebuilt.
900 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
902 (SIGNAL_HANDLER): Use siginfo style handler.
903 (INIT_SEGV): Likewise.
904 (INIT_FPE): Likewise.
905 * include/ppc-signal.h: Delete whole file.
907 2001-05-24 Tom Tromey <tromey@redhat.com>
909 * java/lang/natString.cc (init): Throw
910 ArrayIndexOutOfBoundsException.
911 (getChars): Likewise.
912 (getBytes): Likewise.
915 * configure.in: Only allow hash synchronization when POSIX threads
917 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
920 2001-05-23 Tom Tromey <tromey@redhat.com>
922 * Makefile.in: Rebuilt.
923 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
925 Revert patch of 2001-05-21:
926 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
927 (libgcj_la_LIBADD): Likewise.
928 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
929 (libgcjx_la_LIBADD): Likewise.
931 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
932 * gcj/Makefile.in: Rebuilt.
933 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
934 * gcj/javaprims.h: Include gcj/libgcj-config.h.
935 * gcj/libgcj-config.h.in: New file.
936 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
937 * configure: Rebuilt.
938 * configure.in: Enable hash synchronization by default on some
940 (HASH_SYNC_SPEC): New subst.
941 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
942 Correctly use `test -z' instead of `test -n' in a couple places.
943 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
945 * configure.host (enable_java_net_default): Initialize.
946 (enable_hash_synchronization_default): New variable.
948 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
950 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
951 synchronization in use.
952 (_Jv_MarkArray): Likewise.
953 (_Jv_AllocBytes): Don't check return result.
954 (handle_out_of_memory): New function.
955 (_Jv_InitGC): Set GC_oom_fn.
956 (trace_one_vtable): New global.
957 (_Jv_AllocTraceOne): New function.
958 * configure.in: Added --enable-hash-synchronization.
959 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
960 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
961 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
962 (_Jv_AllocArray): Likewise.
963 (_Jv_AllocBytes): Likewise.
964 (_Jv_AllocPtrFreeObject): New function.
965 (_Jv_AllocTraceOne): Likewise.
966 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
968 (self_cache): New global.
969 (_Jv_ThreadSelf_out_of_line): New function.
970 * prims.cc (_Jv_AllocBytesChecked): Removed.
971 (_Jv_ThrowNoMemory): New function.
972 (_Jv_AllocObject): Don't check for null return from allocator.
973 (_Jv_NewObjectArray): Likewise.
974 (_Jv_AllocPtrFreeObject): New function.
975 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
976 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
977 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
978 * include/boehm-gc.h (_Jv_AllocObj): Define.
979 (_Jv_AllocPtrFreeObj): Define.
980 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
981 (_Jv_ThrowNoMemory): Declare.
982 (_Jv_AllocTraceOne): Declare.
983 (_Jv_AllocBytesChecked): Removed.
984 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
985 _Jv_MutexUnlock): Handle LOCK_DEBUG.
986 (_Jv_ThreadSelf): Handle case where system pthread_self() is
988 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
990 * java/lang/Object.h (sync_info): Conditional upon presence of
991 hash synchronization.
992 * java/lang/natObject.cc: Much new code to handle thin locks and
993 hash synchronization.
994 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
997 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
999 * gij.cc (version): Update copyright year.
1001 2001-05-22 Anthony Green <green@redhat.com>
1003 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1006 2001-05-21 Per Bothner <per@bothner.com>
1008 Implement invocation interface; don't create new thread for main.
1009 * java/lang/Thread.java (gen_name): Make native.
1010 (<init>(Thread,THreadGroup,Runnable,String)): New private
1011 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1012 * java/lang/natThread.cc (gen_name): New implementation.
1013 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1014 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1015 (_Jv_CreateJavaVM): New runtime initialization procedure.
1016 (runFirst): New proecdure - mostly code from old FirstThread::run.
1017 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1018 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1019 JvDetachCurrentThread): New inline wrappers.
1020 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1021 _Jv_DetachCurrentThread): New declarations.
1022 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1023 (getMain): new static method.
1024 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1025 by runFirst in prims.cc.
1026 (java/lang/Thread.h): Update for new invocation interface.
1027 * include/posix-threads.h (_Jv_ThreadRegister,
1028 _Jv_ThreadUnRegister): New declarations.
1029 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1030 (really_start): Use new _Jv_ThreadRegister.
1031 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1032 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1033 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1034 Complain of called when _Jv_OnlyThread already set.
1035 (_Jv_ThreadStart): Always JvFail.
1036 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1037 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1038 * win32-threads.cc (struct starter): Remove objet field -
1039 we use _Jv_Thread_t's new thread_obj field instead.
1040 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1041 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1042 (really_start): Use new _Jv_ThreadRegister.
1043 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1044 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1045 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1046 Removed - no longer needed with new invocation interface.
1047 * Makefile.am: Update for removed/added files.
1049 2001-05-21 Per Bothner <per@bothner.com>
1051 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1052 (libgcj_la_LIBADD): Likewise.
1053 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1055 2001-05-21 Per Bothner <per@bothner.com>
1057 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1058 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1059 taken from old Integer.toString code.
1060 (Integer::valueOf): Use _Jv_FormatInt.
1061 * java/lang/Integer.java (toString): Just use call String.valueOf.
1062 * java/lang/Long.java (toString): Fix typo in comment.
1063 * java/lang/String.java (valueOf(int)): Make native.
1064 * java/lang/StringBuffer.java (append(int)): Make native.
1065 * java/lang/natStringBuffer.cc: New file, for append(jint).
1066 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1068 2001-05-21 Tom Tromey <tromey@redhat.com>
1070 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1072 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1074 * include/dwarf2-signal.h: New file.
1075 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1076 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1077 * configure: Rebuilt.
1079 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1081 * configure.in: Update boehm-gc include dir for new GC version.
1082 * configure: Rebuilt.
1083 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1085 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1086 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1087 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1090 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1092 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1093 (_Jv_MutexInit): Likewise.
1095 2001-05-18 Tom Tromey <tromey@redhat.com>
1097 * Makefile.in: Rebuilt.
1098 * Makefile.am (awt_java_source_files): Added Polygon.java.
1100 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1102 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1103 * gcj/javaprims.h: ... here.
1104 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1106 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1108 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1109 with length of ioffset table.
1110 (_Jv_IsAssignableFrom): Likewise.
1112 2001-05-17 Per Bothner <per@bothner.com>
1114 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1116 2001-05-16 Tom Tromey <tromey@redhat.com>
1118 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1121 2001-05-15 Tom Tromey <tromey@redhat.com>
1123 * java/util/GregorianCalendar.java (computeTime): Only call
1126 2001-05-14 Tom Tromey <tromey@redhat.com>
1128 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1129 ZONE_OFFSET just before computing the time.
1131 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1133 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1134 * Makefile.in: Regenerate (by hand).
1135 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1136 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1138 2001-05-11 Richard Henderson <rth@redhat.com>
1140 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1141 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1143 2001-05-11 Richard Henderson <rth@redhat.com>
1145 * exception.cc: Include unwind-pe.h. Remove all pointer
1148 2001-05-10 Tom Tromey <tromey@redhat.com>
1150 * Makefile.in: Rebuilt.
1151 * Makefile.am (awt_java_source_files): Added Polygon.java.
1152 * java/awt/Polygon.java: New file.
1154 * java/awt/geom/AffineTransform.java
1155 (setToRotation(double,double,double)): New method.
1156 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1157 (setToShear): Likewise.
1159 2001-05-10 Tom Tromey <tromey@redhat.com>
1161 * java/util/GregorianCalendar.java: Imported from Classpath.
1162 * gnu/java/locale/LocaleInformation_nl.java: New file from
1164 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1165 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1166 * gnu/java/locale/LocaleInformation.java: Likewise.
1167 * natGregorianCalendar.cc: Removed.
1168 * Makefile.in: Rebuilt.
1169 * Makefile.am (nat_source_files): Removed
1170 natGregorianCalendar.cc.
1172 2001-05-10 Tom Tromey <tromey@redhat.com>
1174 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1176 (defaultCenturyStart): Use it.
1177 (readObject): Likewise.
1178 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1180 (parse): Copy the calendar before modifying it. Correctly handle
1183 * java/util/Calendar.java (clear): Set field value(s) to 0.
1185 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1187 * Calendar.java (get): Clear areFieldsSet if requested field
1189 (set): Unset fields that depend on new value.
1191 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1193 * java/lang/Class.h (_Jv_Self): New union type.
1194 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1195 Jeff Sturm and Fergus Henderson.
1197 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1199 * java/lang/ClassLoader.java: Remove dead code fragment.
1201 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1203 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1205 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1207 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1209 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1210 * configure.host (EXCEPTIONSPEC): New.
1211 * configure.in (EXCEPTIONSPEC): New.
1212 * configure: Rebuilt.
1214 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1216 * doc/*.texi: Remove generated documentation.
1218 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1220 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1221 (performDelete): Fix #endif placement.
1223 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1225 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1226 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1227 (_Jv_ThreadDestroyData): Use _Jv_Free.
1228 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1231 2001-04-27 Tom Tromey <tromey@redhat.com>
1233 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1235 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1237 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1239 * include/jni.h (struct JNINativeInterface): Fixed types in
1240 Get/Set*ArrayRegion declarations.
1241 (class _Jv_JNIEnv): Likewise.
1243 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1245 * configure.in: Obtain THREADS with `gcc -v'.
1246 * configure: Rebuilt.
1248 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1251 * java/io/ObjectStreamClass.java (setClass): Calculate
1252 serialVersionUID for local class and compare it against the UID
1253 from the Object Stream. Throw InvalidClassException upon mismatch.
1254 (setUID): Renamed to...
1255 (getClassUID): this. Return the calculated class UID rather than
1256 setting uid field directly.
1257 (getDefinedSUID): Removed.
1258 * java/io/ObjectInputStream.java (resolveClass): Use the
1259 three-argument Class.forName().
1260 * java/io/InvalidClassException (toString): Don't include classname in
1261 result if it is null.
1263 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1265 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1266 Wrap use of inet_pton in HAVE_INET6.
1268 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1270 java.security merge and ClassLoader compliance fixes.
1272 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1273 New protectionDomain field.
1274 (forName): Add initialize parameter. Fixes declaration to comply with
1276 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1277 variant. Honour "initialize" flag.
1278 (getProtectionDomain0): New method.
1279 * java/lang/Class.java: Fix forName() declaration.
1280 (getPackage): New method based on Classpath implementation.
1281 (getProtectionDomain0): New native method decl.
1282 (getProtectionDomain): New method.
1283 * java/lang/ClassLoader.java (getParent): Now final.
1284 (definedPackages): New field.
1286 (defineClass): New variant with protectionDomain argument.
1287 (definePackage): New.
1289 (findSystemClass): Now final.
1290 (getSystemResourceAsStream): Remove redundant "final" modifier.
1291 (getSystemResource): Remove redundant "final" modifier.
1292 (getResources): Now final.
1293 (protectionDomainPermission): New static field.
1294 (unknownProtectionDomain): Ditto.
1295 (defaultProtectionDomain): Ditto.
1296 (getSystemClassLoader): Now non-native.
1297 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1298 arguments for Class.forName().
1299 * java/lang/Package.java: New file.
1300 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1301 (instance): Static initialize singleton.
1302 (findClass): Override this, not findSystemClass.
1303 * java/lang/natClassLoader.cc (defineClass0): Set class's
1304 protectionDomain field as specified.
1305 (getSystemClassLoader): Removed.
1306 (findClass): Renamed from findSystemClass. Call the interpreter via
1307 URLClassLoader.findClass if loading class via dlopen fails.
1309 * java/security/*.java: java.security import/merge with Classpath.
1310 * java/security/acl/*.java: Likewise.
1311 * java/security/interfaces/*.java: Likewise.
1312 * java/security/spec/*.java: Likewise.
1313 * java/net/NetPermission.java: Likewise.
1314 * java/net/SocketPermission.java: Likewise.
1315 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1317 * Makefile.am: Add new classes.
1318 * Makefile.in: Rebuilt.
1319 * gcj/javaprims.h: CNI namespace rebuild.
1321 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1323 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1324 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1325 * configure: Rebuilt.
1327 2001-04-21 Tom Tromey <tromey@redhat.com>
1329 * Makefile.in: Rebuilt.
1330 * Makefile.am (awt_java_source_files): Added Line2D.java.
1331 * java/awt/geom/Line2D.java: Wrote.
1333 * java/awt/Menu.java (addNotify): Wrote.
1335 * java/awt/PopupMenu.java (addNotify): Implemented.
1338 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1339 * java/awt/List.java (addNotify): Call super.addNotify.
1340 * java/awt/Label.java (addNotify): Call super.addNotify.
1341 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1342 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1343 * java/awt/Choice.java (addNotify): Call super.addNotify.
1344 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1345 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1347 * java/awt/List.java (replaceItem): Notify peer.
1349 * java/awt/geom/Rectangle2D.java
1350 (Float.setRect(float,float,float,float)): New method.
1352 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1355 * java/awt/RenderingHints.java (Key): Class now public.
1357 * java/awt/Rectangle.java (Rectangle): Now implements
1359 (getPathIterator): Removed.
1361 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1364 * java/awt/FileDialog.java: Wrote.
1366 * java/awt/EventQueue.java (isDispatchThread): Now public.
1367 (invokeLater): Likewise.
1369 * java/awt/Component.java (setCursor): Update peer.
1370 (getFontMetrics): Use peer.
1372 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1375 2001-04-20 Tom Tromey <tromey@redhat.com>
1377 * java/awt/List.java: Wrote.
1378 * java/awt/Dialog.java: Wrote.
1380 2001-04-20 Warren Levy <warrenl@redhat.com>
1382 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1383 * java/text/SimpleDateFormat.java
1384 (indexInArray): Removed private method.
1385 (processYear): Removed private method.
1386 (parseLenient): Removed private method.
1387 (parseLeadingZeros): Removed private method.
1388 (parseStrict): Removed private method.
1389 (expect): Added new private method.
1390 (parse): Reverted to pre-Classpath merge version with minor fixes.
1391 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1394 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1396 * java/io/File.java (normalizePath): New private method.
1397 (File (String)): Use normalizePath().
1398 (File (String, String)): Likewise.
1400 * Makefile.am (libffi_files): Removed.
1401 (libgcj.la): Link libffi as a convenience library instead of
1402 refering to its object files directly.
1403 * Makefile.in: Rebuilt.
1405 2001-04-08 Per Bothner <per@bothner.com>
1407 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1408 Recalculate hash, since Utf8Const's hash is only 16 bits.
1410 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1411 bits of hash to calculate step for chaining.
1413 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1414 when 2/3 full, rather than 3/4 full.
1416 2001-04-06 Tom Tromey <tromey@redhat.com>
1418 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1419 (wrap_value<T*>): New specialization.
1420 (_Jv_JNI_PopLocalFrame): Update env->locals.
1422 2001-04-05 Tom Tromey <tromey@redhat.com>
1424 * libtool-version: Updated current.
1426 2001-04-04 Andreas Jaeger <aj@suse.de>
1428 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1429 * gcj/Makefile.in: Rebuilt.
1430 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1431 * Makefile.in: Rebuilt.
1432 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1433 * testsuite/Makefile.in: Rebuild.
1434 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1435 * include/Makefile.in: Rebuild.
1437 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1439 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1440 compiled test', not 'execution from source compiled test'.
1441 Use UNTESTED, not XFAIL, for tests which are not run because
1442 they depend on a previous test which failed.
1444 2001-04-02 Richard Henderson <rth@redhat.com>
1446 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1447 the same tree as gcc.
1448 * configure: Rebuilt.
1450 * exception.cc (_Jv_Throw): Clarify commentary.
1452 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1454 * jni.cc (wrap_value<jclass>): New specialization.
1456 2001-04-02 Tom Tromey <tromey@redhat.com>
1458 * java/io/PrintStream.java (out): Removed field. Fixes PR
1460 (write): Call flush, not out.flush, per spec.
1461 (close): Flush output stream, per spec. Handle
1462 InterruptedIOException.
1463 (checkError): Likewise.
1464 (flush, print, write): Handle InterruptedIOException per spec.
1465 (PrintStream): Don't create BufferedOutputStream.
1466 (work_bytes): New field.
1467 (writeChars): Use work_bytes. Don't assume `out' is a
1468 BufferedOutputStream.
1470 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1472 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1475 2001-03-30 Tom Tromey <tromey@redhat.com>
1477 * jni.cc (add_char): Correctly encode non-ascii characters.
1478 (add_char): Define even when INTERPRETER not defined.
1479 (mangled_name): Likewise.
1480 (_Jv_GetJNIEnvNewFrame): Likewise.
1481 (_Jv_LookupJNIMethod): Likewise.
1483 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1485 * configure.host: Enable interpreter for PPC.
1487 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1489 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1490 to "file.separator", "path.separator", and "java.io.tmpdir" property
1492 * java/io/File.java: Likewise.
1493 * java/io/natFile.cc (init_native): Likewise.
1494 * java/io/natFileWin32.cc (init_native): Likewise.
1496 2001-04-01 Per Bothner <per@bothner.com>
1498 * java/lang/natString.cc (intern): If string's data does not point to
1499 this String, make a fresh String that does.
1501 * java/lang/natString.cc (unintern): Replace by static function.
1502 * java/lang/String.java (unintern): Remove method.
1504 2001-04-01 Per Bothner <per@bothner.com>
1506 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1507 (finish): def.deflate needs to be called in a loop.
1508 (inbuf, inbufLength): New private fields.
1509 (write(int)): Use inbuf.
1510 (write(byte[],int,int): Check if pending output in inbuf.
1511 * ZipOutputStream.java: Don't use Deflater if stored.
1512 Use a Checksum object directly, not via a CheckedOutputStream.
1513 (uncompressed_size): New field,
1514 (closeEntry): Only write data_directory if needed.
1515 (write): If STORED, write directly.
1516 Always update crc, and uncompressed_size.
1517 (write_entry): Fix lots of protocol erors.
1519 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1521 1.3-Compliant Implementation of java.io.File.
1522 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1523 "path.separator", and "java.io.tmpdir" from the File class, instead
1524 of setting them explicitly.
1525 * java/io/File.java: Do not canonicalize paths for security manager
1526 checks. Call init_native() from static initializer. Do not pass path
1527 argument to native methods. New native method declarations. Some
1528 security manager checks moved to checkWrite().
1529 (equals): Check file system case sensitivity and act appropriatly.
1530 (hashCode): Likewise.
1531 (isHidden): New method implemented.
1532 (performList): Changed prototype. Now takes a class argument specifying
1533 the class of the returned array: Strings or File objects. Also added
1534 FileFilter argument.
1535 (listFiles): New variants with "File" return type implemented.
1536 (createTempFile): Use createNewFile(). Use maxPathLen.
1537 (setReadOnly): New method implemented.
1538 (listRoots): Likewise.
1539 (compareTo): Likewise.
1540 (setLastModified): Likewise.
1541 (checkWrite): New method.
1543 * java/io/natFile.cc: Various functions no longer take canonical path
1545 (stat): Handle ISHIDDEN query.
1546 (isAbsolute): Remove WIN32 cruft.
1547 (performList): New arguments. Handle returning either File[] or String[]
1548 arrays. Check with FileFilter or FilenameFilter arguments as
1549 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1550 (performSetReadOnly): New method implemented.
1551 (performListRoots): Likewise.
1552 (performSetLastModified): Likewise.
1553 (performCreate): Likewise.
1554 (init_native): New initialization function.
1555 * java/io/natFileWin32.cc: Various functions no longer take canonical
1557 (stat): Add FIXME about ISHIDDEN query.
1558 (performList): New arguments. Handle returning either File[] or String[]
1559 arrays. Check with FileFilter or FilenameFilter arguments as
1560 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1561 (performSetReadOnly): New. Stubbed.
1562 (performListRoots): Likewise.
1563 (performSetLastModified): Likewise.
1564 (performCreate): Likewise.
1565 (init_native) New initialization function.
1566 * configure.in: Check for utime() and chmod().
1567 * configure: Rebuilt.
1568 * include/config.h.in: Rebuilt.
1570 Resolves PR libgcj/1759.
1572 2001-03-28 Richard Henderson <rth@redhat.com>
1574 IA-64 ABI Exception Handling:
1575 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1576 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1577 Remove EXCEPTIONSPEC.
1578 * configure.host (libgcj_sjlj): Remove.
1579 * configure.in (EXCEPTIONSPEC): Remove.
1580 (enable-sjlj-exceptions): Detect if not specified.
1581 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1582 what header we're looking for.
1583 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1584 * Makefile.in, configure: Regenerate.
1585 * exception.cc: Don't declare libgcc2 stuff.
1586 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1587 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1588 (win32_get_restart_frame): Remove.
1589 (struct java_exception_header): New.
1590 (__gcj_exception_class): New.
1591 (get_exception_header_from_ue): New.
1592 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1593 (size_of_encoded_value, read_encoded_value): New.
1594 (read_uleb128, read_sleb128, parse_lsda_header): New.
1595 (get_ttype_entry, __gcj_personality_sj0): New.
1596 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1598 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1600 * javax/naming/InitialContext.java (init): Fix typo.
1601 (composeName): Remove unnecessary semicolon.
1602 (addToEnvironment): Remove unnecessary semicolon.
1603 (addToEnvironment): Use put() instead of add().
1605 * javax/naming/InitialContext.java (InitialContext):
1607 (destroySubcontext): Method doesn't return a result.
1608 * javax/naming/Context.java: Import java.util.Hashtable.
1609 * javax/naming/Name.java: Import java.util.Enumeration.
1611 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1613 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1614 objects in subdirectories.
1615 * Makefile.in: Rebuilt.
1617 2001-03-25 Richard Henderson <rth@redhat.com>
1619 * exception.cc (java_eh_info): Make value type jthrowable.
1620 (_Jv_type_matcher): Remove now unneeded cast.
1621 (_Jv_Throw): Make argument type jthrowable. Munge name
1622 for SJLJ_EXCEPTIONS here ...
1623 * gcj/cni.h: ... not here.
1625 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1627 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1628 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1629 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1630 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1631 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1632 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1633 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1634 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1635 java/lang/natDouble.cc, java/lang/natObject.cc,
1636 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1637 java/lang/natString.cc, java/lang/natSystem.cc,
1638 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1639 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1640 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1641 java/util/zip/natInflater.cc:
1642 Use throw, not JvThrow or _Jv_Throw.
1644 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1646 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1647 paramater, bump it to 1.
1648 * java/util/Hashtable.java (Hashtable): Likewise.
1650 2001-03-23 Per Bothner <per@bothner.com>
1652 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1653 check for errors, since we don't want to throw exception on
1654 overflow/underflow. Instead, trim whitespace, and then check that
1655 _strtod_r uses up all the rest of the string.
1657 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1658 ancestors array is invalid for interfaces, so do that *after*
1659 check that the target type is not an interface.
1661 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1663 * prims.cc (_Jv_FindClassFromSignature): Check return of
1664 recursive call. Do not abort on invalid signature; return NULL
1667 2001-03-22 Tom Tromey <tromey@redhat.com>
1669 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1670 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1672 * include/jvm.h (_Jv_ResolveField): Declare.
1673 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1674 * resolve.cc (_Jv_ResolveField): No longer conditional on
1677 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1679 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1680 for libtool hacking.
1681 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1682 to a temporary file, then invoke libtool with the -objectlist
1684 (libgcjx.la): Likewise.
1685 * Makefile.in: Rebuilt.
1687 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1689 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1691 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1693 * jni.cc (add_char): Handle `.' like `/'.
1695 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1697 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1698 initialize if exception_types is null.
1699 * java/lang/reflect/Constructor.java: Likewise.
1700 * java/lang/reflect/natConstructor.cc (getType): Initialize
1701 exception_types to an empty Object array.
1703 2001-03-21 Tom Tromey <tromey@redhat.com>
1705 * configure: Rebuilt.
1706 * configure.in (GCJFLAGS): Subst.
1707 * Makefile.in: Rebuilt.
1708 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1709 (gij_LDFLAGS): Likewise.
1710 (JC1FLAGS): Added GCJFLAGS and removed -g.
1712 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1713 read/write case. Fixes PR libgcj/2338.
1715 2001-03-20 Warren Levy <warrenl@redhat.com>
1717 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1718 and corrected SimpleTimeZone's for the timezones hash table.
1720 2001-03-19 Per Bothner <per@bothner.com>
1722 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1723 "canonicalize" "../../xxx" to "/xxx".
1725 2001-03-19 Mark Wielaard <mark@klomp.org>
1727 * java/util/ArrayList.java: Remove RCS keywords from comments
1728 * java/util/BasicMapEntry.java: idem
1729 * java/util/Dictionary.java: idem
1730 * java/util/HashSet.java: idem
1732 * java/util/EventObject.java: reindent
1733 * java/util/Properties.java: idem
1734 * java/util/SortedMap.java: idem
1736 * java/util/Enumeration.java: Merge with Classpath
1737 * java/util/EventListener.java: idem
1738 * java/util/Observable.java: idem
1739 * java/util/Observer.java: idem
1740 * java/util/Stack.java: idem
1742 2001-03-17 Tom Tromey <tromey@redhat.com>
1744 * java/lang/natString.cc (rehash): Don't bother with memset;
1745 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1747 (UNMASK_PTR): New macro.
1748 (intern): Unmask pointer before returning it. Register finalizer
1750 (unintern): Handle case where
1751 (MASK_PTR): New macro.
1752 (PTR_MAKSED): Likewise.
1753 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1755 2001-03-01 Andrew Haley <aph@redhat.com>
1757 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1758 stackTrace buffer to a correctly aligned pointer array.
1760 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1762 * java/lang/Runtime.java (_exit): Declare new package-private native.
1763 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1764 without a security manager check.
1765 (exit): Call _exit after security check.
1766 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1768 * java/lang/System.java (setSecurityManager): If a security manager
1769 is already in place, call checkPermission.
1770 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1771 throws an exception, try to deal with it gracefully.
1772 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1773 Only try to print the subordinate stack trace if "exception" is set.
1774 Print our class name first.
1776 2001-03-08 Tom Tromey <tromey@redhat.com>
1778 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1779 info for array classes.
1780 Fixes PR libgcj/1971.
1782 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1784 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1787 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1789 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1790 instead of the new JDK1.2 API. This is simpler and makes
1791 back-porting the classes to JDK1.1 trivial.
1792 (readObject): likewise.
1794 2001-03-01 Per Bothner <per@bothner.com>
1796 Changes merged from Kawa's gnu.math.
1797 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1798 (rshift(int[],int[],int,int): Removed - not needed.
1799 (gcd): Use rshift0 rather than rshift.
1800 * java/math/BigInteger.java (setShiftRight): Likewise.
1801 (divide): Simplify by using rshift0.
1802 (divide): Zero-extend results if high-order bit set.
1804 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1806 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1809 2001-02-23 Per Bothner <per@bothner.com>
1811 Change to sometimes include class name in ClassFormatError message.
1812 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1813 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1814 boolean instead of throwing ClassFormatError on failure.
1815 (throw_class_format_error): Change static function to method.
1816 (_Jv_ClassReader): New inline methods verify_identifier,
1817 two overloads of verify_classname, verify_field_signature, and
1818 verify_method_signature
1819 * include/java-interp.h: Update declarations to return bool.
1820 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1821 ClassFormatError since _Jv_VerifyClassName now returns bool.
1823 2001-02-23 Per Bothner <per@bothner.com>
1825 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1826 c++filt to select java-style output.
1828 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1830 Fix for PR java/2040:
1831 * java/util/HashMap.java (HashMap): Don't throw exception for
1832 loadFactor > 1. Add exception messages.
1833 * java/util/Hashtable.java (Hashtable): Likewise.
1835 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1837 Disable libgcjx by default.
1838 * configure.in: Add support for --enable-java-awt configure option.
1839 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1840 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1841 * Makefile.in: Rebuilt.
1842 * configure: Rebuilt.
1844 2001-02-20 Tom Tromey <tromey@redhat.com>
1846 * java/io/PipedWriter.java (flush): Throw exception if stream
1848 * java/io/OutputStreamWriter.java (write): Throw exception if
1850 (writeChars): Don't throw exception if stream closed.
1851 * java/io/CharArrayWriter.java (closed): New field.
1853 (flush): Throw exception if stream closed.
1854 (reset): Synchronize on correct lock. Allow stream to be
1856 (toCharArray, toString, writeTo): Synchronize.
1857 (write): Throwe exception if stream closed.
1858 * java/io/BufferedWriter.java (close): Clear `buffer'.
1859 (flush): Throw IOException if stream is closed.
1862 2001-02-16 Tom Tromey <tromey@cygnus.com>
1864 * java/lang/ThreadGroup.java (activeCount): Only include threads
1866 (enumerate): Likewise.
1868 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1870 * java/lang/Integer.java (getInteger): Return default argument if
1871 property is not set. Don't call decode with null argument.
1872 * java/lang/Long.java (getLong): Likewise.
1874 * java/io/CharArrayReader.java (CharArrayReader): Throw
1875 IllegalArgumentException if constructor arguments are illegal.
1876 (ready): Return false if no more characters can be read.
1877 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1879 2001-02-17 Mark Wielaard <mark@klomp.org>
1881 * java/util/TimerTask.java: New version from Classpath.
1883 2001-02-17 Mark Wielaard <mark@klomp.org>
1885 Remerge with Classpath
1886 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1887 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1888 (readByte): Use convertToByte().
1889 (readChar): Use convertToChar().
1890 (readInt): Use convertToInt().
1891 (readLong): Use convertToLong().
1892 (readShort): Use convertToShort().
1893 (readUnsignedByte): Use convertToUnsignedByte().
1894 (readUnsignedShort): Use convertToUnsignedShort().
1895 (readUTF): Use convertToUTF().
1897 (convertToBoolean): Resurrected.
1898 (convertToByte): Ditto.
1899 (convertToChar): Ditto.
1900 (convertToInt): Ditto.
1901 (convertToLong): Ditto.
1902 (convertToShort): Ditto.
1903 (convertToUnsignedByte): Ditto.
1904 (convertToUnsignedShort): Ditto.
1905 (convertToUTF): Ditto.
1907 2001-02-17 Mark Wielaard <mark@klomp.org>
1911 2001-02-17 Mark Wielaard <mark@klomp.org>
1913 * java/io/DataInputStream.java: update copyright notice
1914 * java/io/PrintWriter.java: idem
1915 * java/io/Reader.java: idem
1916 * java/io/StreamTokenizer.java: idem
1917 * java/io/StringReader.java: idem
1918 * java/lang/reflect/ReflectPermission.java: idem
1920 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1922 * java/util/TreeSet.java (clone): Made subclass safe, use
1923 super.clone(), not new.
1924 * java/util/TreeMap.java (clone): Likewise.
1926 * java/util/TreeMap.java (nil): Made non-final.
1927 (clone): Create new nil node for copy.
1929 * java/util/HashSet.java (clone): Made subclass safe, use
1930 super.clone(), not new.
1932 2001-02-14 Andrew Haley <aph@redhat.com>
1934 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1937 2001-02-15 Anthony Green <green@redhat.com>
1939 * defineclass.cc: Don't include alloca.h.
1940 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1941 * interpret.cc (run_normal): Ditto.
1943 * java/lang/natDouble.cc (parseDouble): Ditto.
1945 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1947 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1949 * java/util/Collections.java (ReverseComparator): New static class.
1950 (reverseOrder): Return static instance of ReverseComparator.
1952 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1953 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1954 Rectangle.clone(), not Object.clone().
1956 * java/util/HashSet.java (clone): Remove try/catch.
1958 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1959 * java/util/Collection.java: Likewise.
1960 * java/util/Comparator.java: Likewise.
1961 * java/util/Dictionary.java: Likewise.
1962 * java/util/Iterator.java: Likewise.
1963 * java/util/ListIterator.java: Likewise.
1964 * java/util/Map.java: Likewise.
1965 * java/util/Set.java: Likewise.
1967 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1969 * java/util/TreeMap.java: New file.
1970 * java/util/TreeSet.java: New file.
1971 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1972 * Makefile.in: Rebuilt.
1973 * java/util/HashSet.java (clone): Use constructor instead of calling
1975 * java/util/SortedSet.java: Sync with classpath.
1976 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1979 * java/lang/natClass.cc (getSignature): Don't try to dereference
1980 param_types if it is null. Instead, take this to mean "no parameters".
1981 * java/lang/TreeMap.java (TreeIterator.next): Throw
1982 NoSuchElementException in preference to ConcurrentModificationException.
1983 (TreeIterator.remove): Throw IllegalStateException in preference to
1984 ConcurrentModificationException.
1985 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1986 throw a NoSuchElementException.
1987 (SubMap.lastKey): Likewise.
1989 2001-02-13 Tom Tromey <tromey@redhat.com>
1991 * java/io/PipedReader.java (ready): Throw IOException if pipe
1993 * java/io/FilterReader.java (close): Don't clear `in'.
1994 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1996 (read, ready, reset, skip): Added exception message.
1997 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1998 Perform checkStatus check inside synchronized block.
2000 2001-02-13 Tom Tromey <tromey@redhat.com>
2002 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2004 2001-02-13 Tom Tromey <tromey@redhat.com>
2006 Fix for PR libgcj/1351:
2007 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2009 Include Thread.h and InterruptedIOException.h.
2011 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2013 * java/io/BlockDataException.java: Removed.
2014 * java/io/ObjectInputStream.java (readObject): Throw
2015 StreamCorruptedException, not BlockDataException.
2016 * Makefile.am: Remove BlockDataException.
2017 * Makefile.in: Rebuild.
2019 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2020 Tom Tromey <tromey@redhat.com>
2022 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2025 2001-02-09 Tom Tromey <tromey@redhat.com>
2027 * java/util/Timer.java: New version from Classpath.
2029 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2031 * java/lang/Double.java (doubleToRawLongBits): Now native.
2032 * java/lang/Float.java (floatToRawIntBits): Likewise.
2033 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2034 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2036 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2038 * java/io/File.java (java.net): Imported.
2039 (getAbsoluteFile): Added.
2040 (getCanonicalPath): Likewise.
2043 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2045 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2046 * java/lang/Integer.java: Likewise.
2047 * java/lang/Long.java: Likewise.
2048 * java/lang/Short.java: Likewise.
2049 * java/lang/Double.java: Likewise.
2050 (doubleToRawLongBits): New method.
2051 * java/lang/Float.java: As above.
2052 (floatToRawIntBits): New method.
2054 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2055 IOException if stream closed.
2057 2001-02-08 Tom Tromey <tromey@redhat.com>
2059 * java/lang/Float.java (parseFloat): New method.
2061 2001-02-08 Tom Tromey <tromey@redhat.com>
2063 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2064 * java/io/InputStreamReader.java (ready, read): Throw IOException
2065 if stream has been closed.
2067 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2069 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2070 Change sources.redhat.com and sourceware.cygnus.com references to
2073 2001-02-07 Tom Tromey <tromey@redhat.com>
2075 Fix for PR libgcj/1906:
2076 * java/text/MessageFormat.java (setLocale): Use named class
2079 (format(Object,StringBuffer,FieldPosition)): Special case if
2080 argument is an Object[].
2082 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2084 * java/util/Arrays.java: Removed "cmp" methods.
2085 (qsort): Don't use "cmp".
2088 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2090 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2091 sort. Fix for PR java/1895.
2093 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2095 * configure.host: Use sjlj-exceptions for Alpha.
2097 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2099 * libgcj.spec.in: Don't force static libgcc into the executable.
2100 * configure.in (FORCELIBGCCSPEC): Removed.
2101 * configure: Rebuilt.
2103 2001-01-31 Tom Tromey <tromey@redhat.com>
2105 * Makefile.in: Rebuilt.
2106 * Makefile.am (LTCXXCOMPILE): New macro.
2108 2001-01-26 Andrew Haley <aph@redhat.com>
2110 (INIT_FPE): Use a direct system call to set the handler.
2112 2001-01-27 Richard Henderson <rth@redhat.com>
2114 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2116 2001-01-27 Tom Tromey <tromey@redhat.com>
2118 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2119 native interface structure.
2121 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2123 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2125 (read (byte[], int, int)): Only call readNextBlock() if the block
2126 buffer would actually be overrun. Increment blockDataPosition.
2127 (callReadMethod): Propagate exceptions from invocation target.
2128 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2129 exceptions from invocation target.
2131 2001-01-26 Tom Tromey <tromey@redhat.com>
2133 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2134 to internal representation.
2135 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2136 _Jv_FindClassFromSignature.
2138 2001-01-26 Warren Levy <warrenl@redhat.com>
2140 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2141 and timezone if they are available on the system.
2143 2001-01-24 Tom Tromey <tromey@redhat.com>
2145 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2147 2001-01-24 Tom Tromey <tromey@redhat.com>
2149 * Makefile.in: Rebuilt.
2150 * Makefile.am (c_source_files): Added sf_fabs.c.
2151 * java/lang/sf_fabs.c: New file.
2153 2001-01-19 Warren Levy <warrenl@redhat.com>
2155 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2156 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2157 correctly. Adjust properly from 0-23 clock hour.
2159 2001-01-17 Mark Wielaard <mark@klomp.org>
2161 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2163 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2165 * java/lang/Class.h (isInterface): Move implementation from
2166 natClass.cc. Declare inline.
2167 (Class): Add default constructor.
2168 * java/lang/Object.h: Update comments.
2169 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2170 initialize superclass, saving a call if super is already initialized.
2172 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2174 * prims.cc (init_prim_class): Deleted.
2175 (DECLARE_PRIM_TYPE): Rewritten.
2176 * java/lang/Class.h (stdio.h): Include removed.
2177 (stddef.h): Included.
2178 (java/lang/reflect/Modifier.h): Likewise.
2179 (Class): Contructor now takes arguments, initializes fields.
2180 (initializePrim): Prototype deleted.
2181 * java/lang/natClass.cc (initializePrim): Deleted.
2183 2001-01-16 Warren Levy <warrenl@redhat.com>
2185 * java/math/BigInteger.java: Update Copyright year.
2187 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2189 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2192 2001-01-14 Mark Wielaard <mark@klomp.org>
2193 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2194 (decode): Merge comments with Classpath, don't throw Exception
2196 2001-01-12 Tom Tromey <tromey@redhat.com>
2198 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2202 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2203 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2204 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2205 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2206 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2208 * java/lang/natSystem.cc: Include locale.h if it exists.
2209 * configure: Rebuilt.
2210 * configure.in: Check for locale.h.
2212 2001-01-11 Tom Tromey <tromey@redhat.com>
2214 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2215 (Cursor(int), getPredefinedCursor): Throw exception if argument
2218 2001-01-03 Tom Tromey <tromey@redhat.com>
2220 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2221 (getLocationOnScreen): Wrote.
2223 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2225 * Makefile.am: Re-enable dependencies.
2226 * Makefile.in: Rebuilt.
2228 2001-01-10 Warren Levy <warrenl@redhat.com>
2230 * java/math/BigDecimal.java (divide): Fixed comment.
2232 2001-01-10 Warren Levy <warrenl@redhat.com>
2234 Fix for PR libgcj/1596:
2235 * java/math/BigDecimal.java (divide): Check newScale for validity.
2236 Ensure that BigInteger.pow() is called with a non-negative value.
2237 (setScale (int)): New public method.
2238 (setScale (int,int)): New public method.
2240 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2242 Fix for PR libgcj/1338:
2243 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2244 commentChar. Fixed typos in comments.
2246 2001-01-08 Warren Levy <warrenl@redhat.com>
2248 Fix for PR libgcj/1411:
2249 * Makefile.am: Removed java/util/natTimeZone.cc.
2250 * Makefile.in: Rebuilt.
2251 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2252 missing localized timezone names.
2253 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2254 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2255 (init_properties): Set user.timezone property.
2256 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2257 default timezone names; removed non-standard ones. Use standard
2259 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2261 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2263 (getDefaultTimeZoneId): Removed.
2265 * java/util/natTimeZone.cc: Removed.
2267 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2269 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2270 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2271 (_Jv_GetArrayClass): New inline function.
2272 (arrayclass): New field.
2273 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2274 _Jv_GetArrayElementFromElementType.
2275 (_Jv_NewPrimArray): Ditto.
2276 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2277 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2278 Set Modifier::ABSTRACT.
2279 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2280 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2281 Now synchronized. Array classes are now referenced from
2282 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2283 Set array classes' accessibility flags correctly. Optimize so that
2284 all array classes share the same IDT.
2285 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2286 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2287 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2288 in superclasses from overwriting classes own fields.
2289 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2290 Modifier::isAbstract().
2291 (null_idt): New static field.
2292 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2294 (_Jv_IndexOf): Made inline.
2295 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2297 2001-01-08 Tom Tromey <tromey@redhat.com>
2299 Fix for PR java/1586:
2300 * Makefile.in: Rebuilt.
2301 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2303 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2305 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2306 from the c++ compiler.
2307 * Makefile.in: Rebuilt.
2309 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2311 All files with updated copyright.
2312 * prims.cc (class _Jv_PrimClass): Removed.
2313 (init_prim_class): New function.
2314 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2315 `_Jv_PrimClass' in primitive type declarations. Assign to the
2316 value returned by `init_prim_class.'
2317 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2318 primitive type declarations.
2319 (JvPrimClass): Cast to `jclass' removed.
2320 * java/lang/Class.h (Class): New constructor.
2321 (Class): New copy constructor.
2322 (initializePrim): New prototype.
2323 (_Jv_PrimClass): Field removed.
2324 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2325 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2326 (class java::lang::Object): `finalize' moved up front.
2327 * java/lang/natClass.cc
2328 (isAssignableFrom): Turned outline.
2329 (isInstance): Likewise.
2330 (isInterface): Likewise, fixed indentation.
2331 (initializePrim): New function.
2333 2001-01-07 Anthony Green <green@redhat.com>
2335 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2337 * Makefile.in: Rebuilt.
2339 * scripts/TexinfoDoclet.java: New file.
2341 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2342 doc/java-awt-color.texi, doc/java-lang.texi,
2343 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2344 doc/java-awt-event.texi, doc/java-net.texi,
2345 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2346 doc/java-awt-image.texi, doc/java-security.texi,
2347 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2348 doc/java-text.texi, doc/java-beans-beancontext.texi,
2349 doc/java-util-jar.texi, doc/java-beans.texi,
2350 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2351 doc/java-lang-ref.texi: New files.
2353 2001-01-07 Anthony Green <green@redhat.com>
2355 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2356 be used for both input and output, so don't clear doInput.
2358 * java/lang/StringBuffer.java: Fix comments.
2360 2001-01-06 Anthony Green <green@redhat.com>
2362 * java/beans/PropertyDescriptor.java: Fix comment.
2363 * java/io/PushbackReader.java: Fix comment.
2364 * java/io/ObjectStreamClass.java: Fix comment.
2365 * java/io/DataInputStream.java: Fix comment.
2366 * java/io/PipedInputStream.java: Fix comments.
2367 * java/io/PipedReader.java: Fix comments.
2368 * java/sql/DatabaseMetaData.java: Fix comments.
2370 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2372 * java/io/PipedReader: Synchronize on "lock" instead of this.
2374 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2376 * java/lang/Thread.java: Update comment.
2378 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2379 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2380 * java/io/PipedReader: New implementation based on new
2382 * java/io/PipedWriter: Updated to match new PipedReader.
2384 2001-01-03 Tom Tromey <tromey@redhat.com>
2386 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2387 (getViewportSize): Insets include scrollbar size.
2388 (doLayout): Finished.
2389 (getScrollPosition): Wrote.
2390 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2392 2001-01-02 Tom Tromey <tromey@redhat.com>
2394 * java/awt/ScrollPane.java: Wrote.
2395 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2398 * java/awt/Panel.java (Panel()): Fixed.
2400 * java/awt/Component.java (isShowing): Return false if no peer
2401 exists, and true if component is visible and no parent exists.
2402 (getLocationOnScreen): Wrote.
2403 (getPreferredSize): Removed FIXME comment.
2404 (getMinimumSize): Likewise.
2405 (getAlignmentX, getAlignmentY): Wrote.
2407 (requestFocus): Wrote.
2408 (transferFocus): Wrote.
2409 (findNextFocusComponent): New method.
2410 (hasFocus()): Wrote.
2411 (checkImage): Wrote.
2412 (enableEvents): Call setEventMask on the peer.
2414 * java/awt/Container.java (list): Use super.list() to print self.
2415 (findNextFocusComponent): New method.
2416 (setLayout): Call invalidate.
2417 (findComponentAt): Wrote.
2419 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2421 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2422 the correct versions of various linuxthreads functions get linked.
2423 * Makefile.in: Rebuilt.
2424 * java/lang/natThread.cc (finalize_native): New static function. Call
2425 _Jv_ThreadDestroyData.
2426 (initialize_native): Register finalizer for "data".
2427 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2428 (_Jv_ThreadDestroyData): New prototype.
2429 * include/win32-threads.h: Ditto.
2430 * include/no-threads.h: Ditto.
2431 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2432 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2433 move mutex and condition variable destroy code from:
2434 (really_start): ...here.
2435 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2436 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2437 (_Jv_ThreadDestroyData): Implemented.
2438 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2439 (_Jv_AllocArray): Ditto.
2441 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2443 * java/sql/DriverManager.java (getConnection): Don't set user/password
2446 2000-12-27 Warren Levy <warrenl@redhat.com>
2448 Fix for PR libgcj/1358:
2449 * java/lang/System.java: Update Copyright date properly.
2450 * java/util/Calendar.java: Fix typo in comment.
2451 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2452 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2453 initialize times. Spec says to set H:M:S values to zero only if
2455 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2456 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2457 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2458 timezones and GMT offsets, being careful to account for units of
2459 milliseconds vs. seconds.
2461 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2463 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2464 not be assigned to Object.
2466 Fix for PR libgcj/1516:
2467 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2469 (can_widen): Declared inline. Remove redundant checks for void
2470 arguments and char->short conversion. Add special case for boolean
2472 (ffi_type): Declared inline.
2473 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2475 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2477 * java/sql/SQLWarning.java: Fixed typo in comment.
2479 2000-12-26 Tom Tromey <tromey@redhat.com>
2481 * java/awt/MenuItem.java (paramString): Now protected.
2483 * java/awt/MenuShortcut.java: Implements Serializable.
2485 * java/awt/MenuBar.java: Rewrote from scratch.
2487 * java/awt/MenuComponent.java (removeNotify): Wrote.
2488 Implements Serializable.
2490 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2493 * java/awt/CheckboxMenuItem.java: Wrote.
2495 2000-12-25 Tom Tromey <tromey@redhat.com>
2497 * java/awt/MenuContainer.java: Fixed typo.
2499 * Makefile.in: Rebuilt.
2500 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2501 * java/awt/SystemColor.java: New file.
2503 * java/awt/Color.java (rgba): Now package-private.
2505 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2507 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2510 * java/awt/MenuItem.java (addNotify): New method.
2511 (MenuItem(String,MenuShortcut)): New constructor.
2512 (setLabel): Notify peer of change.
2513 (setEnabled): Likewise.
2515 * java/awt/GridLayout.java (toString): New method.
2517 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2518 (FlowLayout): Check for LEADING and TRAILING.
2519 (setAlignment): Likewise.
2520 (layoutContainer): Handle component orientation.
2522 * java/awt/Component.java (orientatin): New field.
2523 (setComponentOrientation): Wrote.
2524 (getComponentOrientation): Wrote.
2526 * java/awt/Event.java (Event): Implements Serializable.
2527 (consumed): New field for serialization.
2528 * java/awt/Dimension.java (Dimension): Implements Serializable.
2529 * java/awt/Cursor.java (Cursor): Implements Serializable.
2530 * java/awt/Container.java (Container): No longer abstract.
2532 * java/awt/Choice.java: Wrote.
2533 * java/awt/Checkbox.java: Wrote.
2534 * java/awt/ItemSelectable.java: Documented.
2535 * java/awt/CheckboxGroup.java: Wrote.
2537 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2539 (getSize): Likewise.
2541 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2543 * java/io/FileDescriptor.java: Initialize fd to -1.
2544 Remove default constructor.
2546 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2548 * java/lang/mprec.h: Change C9X reference to refer to C99.
2550 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2552 * java/lang/Throwable.java (trace_enabled): New static field.
2553 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2554 trace_enabled not set.
2555 * prims.cc (main_init): Turn off trace_enabled while creating
2556 default exception objects.
2558 2000-12-21 Tom Tromey <tromey@redhat.com>
2560 * java/beans/PropertyChangeListener.java: Extends EventListener.
2561 * java/beans/VetoableChangeListener.java: Extends EventListener.
2563 * java/util/zip/Deflater.java (update, init): Now private.
2565 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2567 * java/util/BasicMapEntry.java: Re-added.
2568 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2569 (putAll): Test for BasicMapEntry.
2570 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2571 (putAll): Test for BasicMapEntry.
2572 Change references from `HashMap.Entry' to `Entry' in various places.
2573 * Makefile.am: Add BasicMapEntry.java.
2574 * Makefile.in: Rebuilt.
2576 2000-12-18 Warren Levy <warrenl@redhat.com>
2578 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2579 need to set timezone to a valid non-null value. Partial fix for
2582 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2584 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2586 * java/awt/Button.java (addNotify): Likewise.
2587 * java/awt/Label.java (addNotify): Likewise.
2588 * java/awt/Panel.java (addNotify): Likewise.
2589 * java/awt/Scrollbar.java (addNotify): Likewise.
2590 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2591 Remove redundant null checks.
2593 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2595 * COPYING: Update to current
2596 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2597 to 19yy as example year in copyright notice).
2599 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2601 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2602 end-of-stream if avail_in is 0.
2604 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2606 * java/util/ArrayList.java (data): Declare transient.
2607 (serialPersistantFields): Removed.
2608 (readObject): Use defaultReadObject(), not readFields().
2609 (writeObject): Use defaultWriteObject(), not writeFields().
2611 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2613 * java/util/Hashtable.java (put): Remove `last' variable.
2614 Link new entry to head of list.
2615 * java/util/HashMap.java (put): Ditto.
2617 2000-12-15 Tom Tromey <tromey@redhat.com>
2619 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2620 loader to Class.forName.
2622 2000-12-14 Tom Tromey <tromey@redhat.com>
2624 * java/util/ResourceBundle.java
2625 (getBundle(String,Locale,ClassLoader)): New method.
2626 (trySomeGetBundle): Added `loader' argument.
2627 (partialGetBundle): Likewise.
2629 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2630 maximumFractionDigits, maximumIntegerDigits,
2631 minimumFractionDigits, minimumIntegerDigits): Now
2634 * java/lang/Thread.java (checkAccess): Now final.
2636 * java/lang/RuntimePermission.java: Class now final.
2638 * java/io/StringWriter.java (StringWriter(int)): Now public.
2640 * java/io/SerializablePermission.java (legal_names): Now private.
2642 * java/lang/Character.java: Updated UnicodeBlock constants.
2643 * scripts/blocks.pl: Special case private use and surrogate
2646 2000-12-12 Tom Tromey <tromey@redhat.com>
2648 * Makefile.in: Rebuilt.
2649 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2651 (GCJCOMPILE): Use it.
2654 2000-12-11 Tom Tromey <tromey@redhat.com>
2656 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2657 New static final fields.
2659 * scripts/classes.pl (scan): Skip lines with leading `*'.
2660 Fix for PR libgcj/378.
2662 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2664 * configure.in: Remove check for -fuse-divide-subroutine.
2665 * configure: Rebuilt.
2667 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2669 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2671 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2673 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2674 Remove BasicMapEntry.java and Bucket.java.
2675 * Makefile.in: Rebuilt.
2676 * java/util/HashMap.java: Rewritten.
2677 * java/util/HashSet.java: Imported from classpath.
2678 * java/util/WeakHashMap.java: Imported from classpath.
2679 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2680 * java/util/Bucket.java: Deleted.
2681 * java/util/BasicMapEntry.java: Deleted.
2682 * java/util/Collections.java (search): Use a for-loop, not iterator
2684 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2685 of elements in source.
2686 (max): Use a for-loop.
2688 (reverse): Keep track of positions instead of using Iterator's
2689 nextIndex() and previousIndex().
2690 (shuffle(List)): Initialize defaultRandom if required using
2691 double-check thread safety idiom. Call two-argument shuffle method
2692 using defaultRandom.
2693 (defaultRandom): New field.
2694 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2695 using previousIndex() and nextIndex().
2696 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2697 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2698 * java/util/AbstractMap.java (toString): Use StringBuffer.
2699 * java/lang/ref/PhantomReference.java: Imported from classpath.
2700 * java/lang/ref/SoftReference.java: Ditto.
2701 * java/lang/ref/Reference.java: Ditto.
2702 * java/lang/ref/WeakReference.java: Ditto.
2703 * java/lang/ref/ReferenceQueue.java: Ditto.
2705 2000-12-10 Richard Henderson <rth@redhat.com>
2707 * configure.host: Recognize alpha*-*, not alphaev6-*.
2709 2000-12-09 Anthony Green <green@redhat.com>
2711 * configure.host: Enable interpreter for Alpha.
2713 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2715 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2716 (ZIP): Points at fastjar instead of zip.
2717 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2718 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2719 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2720 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2721 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2722 ($(x_java_source_files:.java=.class):): Likewise.
2723 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2725 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2726 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2727 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2728 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2729 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2730 gnu/gcj/runtime/VMClassLoader.h:,
2731 java/io/ObjectInputStream$$GetField.h:,
2732 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2733 (Makefile.in): Rebuilt.
2735 2000-12-08 Tom Tromey <tromey@redhat.com>
2738 * configure: Rebuilt.
2739 * configure.in: Use echo, not `:', to create .d files.
2741 2000-12-08 Warren Levy <warrenl@redhat.com>
2743 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2744 NullPointerException so proper check of offset can be done.
2746 2000-12-08 Warren Levy <warrenl@redhat.com>
2748 * java/io/FileInputStream.java (close): Check if the fd is valid.
2749 * java/io/RandomAccessFile.java (close): Ditto.
2750 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2751 * java/net/PlainSocketImpl.java (close): Ditto.
2753 2000-12-06 Tom Tromey <tromey@redhat.com>
2755 * java/awt/GridBagConstraints.java: Filled in values for static
2758 * java/util/BitSet.java: Updated copyright notice.
2760 * Makefile.in: Rebuilt.
2761 * Makefile.am (awt_java_source_files): Added new file.
2762 * java/awt/GridBagConstraints.java: New file.
2764 2000-12-05 Tom Tromey <tromey@redhat.com>
2766 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2767 Now package-private, not protected.
2768 * java/text/DateFormatSymbols.java (equals): Now private.
2769 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2770 * java/util/BitSet.java: Class no longer final.
2772 2000-12-04 Warren Levy <warrenl@redhat.com>
2774 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2775 out code dependent on compiler and library changes.
2777 2000-12-04 Warren Levy <warrenl@redhat.com>
2779 * java/io/FilePermission.java: Made class final per spec.
2780 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2781 method name to match spec (fixed typo).
2782 * java/util/LinkedList.java: Implements List.
2784 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2786 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2787 Edgar Villanueva <edgarvil@home.com>.
2789 2000-12-03 Tom Tromey <tromey@redhat.com>
2791 * java/awt/geom/Point2D.java: Added protected constructor.
2792 (equals): New method.
2793 (Float.setLocation(float,float)): New method.
2794 * java/awt/geom/Dimension2D.java: Added protected constructor.
2795 * java/awt/geom/AffineTransform.java: Made all constants public.
2796 (concatenate): Fixed typo in name.
2797 * java/awt/event/WindowAdapter.java: Class now abstract.
2798 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2799 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2802 * java/awt/AWTError.java: Extend Error, not
2803 IllegalStateException.
2805 * Makefile.in: Rebuilt.
2806 * Makefile.am (awt_java_source_files): Added new file.
2807 * java/awt/geom/RoundRectangle2D.java: New file.
2809 * Makefile.in: Rebuilt.
2810 * Makefile.am (awt_java_source_files): Added new file.
2811 * java/awt/FlowLayout.java: New file.
2813 * Makefile.in: Rebuilt.
2814 * Makefile.am (awt_java_source_files): Added new file.
2815 * java/awt/GridLayout.java: New file.
2817 2000-12-02 Tom Tromey <tromey@redhat.com>
2819 * Makefile.in: Rebuilt.
2820 * Makefile.am (awt_java_source_files): Added new files.
2821 * java/awt/CardLayout.java: New file.
2822 * java/awt/AWTPermission.java: New file.
2824 2000-12-01 Tom Tromey <tromey@redhat.com>
2826 * java/util/Vector.java (insertElementAt): Unconditionally
2827 increment elementCount.
2828 (removeRange): Clear unused slots in vector.
2830 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2832 * java/lang/natMath.cc: Declare fabsf() function.
2833 * java/lang/mprec.h: Don't include math.h.
2834 * java/lang/dtoa.c: Include string.h.
2835 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2838 From Adam Welc <welc@cs.purdue.edu>:
2839 * java/util/LinkedList.java (removeFirst): Update `first' field.
2840 Handle the last == first case.
2841 (removeLast): Update `last' field. Handle the last == first case.
2843 2000-12-01 Warren Levy <warrenl@cygnus.com>
2845 * Makefile.am: Added entries for new java.sql modules.
2846 * Makefile.in: Rebuilt.
2848 2000-12-01 Warren Levy <warrenl@cygnus.com>
2850 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2851 that aren't quite 1.2 compatible yet.
2853 2000-11-30 Warren Levy <warrenl@cygnus.com>
2855 * java/sql/Array.java: New file from classpath.
2856 * java/sql/BatchUpdateException.java: Ditto.
2857 * java/sql/Blob.java: Ditto.
2858 * java/sql/Clob.java: Ditto.
2859 * java/sql/Ref.java: Ditto.
2860 * java/sql/SQLData.java: Ditto.
2861 * java/sql/SQLInput.java: Ditto.
2862 * java/sql/SQLOutput.java: Ditto.
2863 * java/sql/Struct.java: Ditto.
2864 * java/sql/CallableStatement.java: Merged file from claspath.
2865 * java/sql/Connection.java: Ditto.
2866 * java/sql/DataTruncation.java: Ditto.
2867 * java/sql/DatabaseMetaData.java: Ditto.
2868 * java/sql/DriverManager.java: Ditto.
2869 * java/sql/PreparedStatement.java: Ditto.
2870 * java/sql/ResultSet.java: Ditto.
2871 * java/sql/ResultSetMetaData.java: Ditto.
2872 * java/sql/SQLException.java: Ditto.
2873 * java/sql/SQLWarning.java: Ditto.
2874 * java/sql/Statement.java: Ditto.
2875 * java/sql/Types.java: Ditto.
2877 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2879 * java/lang/natSystem.cc (init_properties): Set user.language and
2881 * configure.in: Check for setlocale.
2882 * configure: Rebuilt.
2883 * include/config.h.in: Rebuilt.
2885 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2886 the infate() call didn't deliver any output. Throw a ZipException if
2887 the needsDictionary() call returns true.
2888 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2889 * java/io/InputStreamReader: Use the default buffer size for the
2890 contained BufferedInputStream.
2892 2000-11-28 Warren Levy <warrenl@cygnus.com>
2894 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2895 more time zone entries.
2896 * java/text/SimpleDateFormat.java (format): Added case for
2899 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2901 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2902 directly rather than read() in all cases. Make primitive read
2903 implementations more efficient, as defined in JDK online docs.
2904 (skipBytes): Behave like the JDK's implementation.
2905 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2906 closed stream with checkStatus() whenever an IOException can be
2908 (checkStatus): New private method.
2910 2000-11-27 Warren Levy <warrenl@cygnus.com>
2912 * Makefile.am: Added natTimeZone.cc.
2913 * Makefile.in: Rebuilt.
2914 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2915 * java/text/DateFormatSymbols.java (ampms): Made package private.
2916 (eras): Made package private.
2917 (months): Made package private.
2918 (shortMonths): Made package private.
2919 (shortWeekdays): Made package private.
2920 (weekdays): Made package private.
2921 (formatPrefixes): New private field.
2922 (localPatternCharsDefault): Made private.
2923 (dateFormats): New package private field.
2924 (timeFormats): New package private field.
2925 (formatsForKey): New private method.
2926 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2927 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2928 * java/text/SimpleDateFormat.java: Merged with Classpath.
2929 * java/util/TimeZone.java: Merged with Classpath.
2930 * java/util/natTimeZone.cc: New file.
2932 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2934 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2935 (addElement): Don't increment elementCount twice. Doh.
2936 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2937 array needs to be expanded.
2939 * java/util/Collections.java (UnmodifiableCollection): Implement
2941 (UnmodifiableList): Throw UnsupportedOperationException from
2942 modification methods. Set `l' from the one-parameter constructor.
2943 (UnmodifiableMap): Implement toString().
2944 (SynchronizedCollection): Ditto.
2945 (SynchronizedList): Set `l' from the one-parameter constructor.
2946 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2947 (SynchronizedMap): Implement toString().
2949 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2951 * javax/naming/NameParser.java,
2952 javax/naming/directory/AttributeInUseException.java,
2953 javax/naming/directory/AttributeModificationException.java,
2954 javax/naming/directory/InvalidAttributeIdentifierException.java,
2955 javax/naming/directory/InvalidAttributesException.java,
2956 javax/naming/directory/InvalidAttributeValueException.java,
2957 javax/naming/directory/InvalidSearchControlsException.java,
2958 javax/naming/directory/InvalidSearchFilterException.java,
2959 javax/naming/directory/NoSuchAttributeException.java,
2960 javax/naming/directory/SchemaViolationException.java: New files.
2962 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2964 * javax/naming/InitialContext.java (rebind): Implement.
2965 (unbind): Implement.
2966 (rename): Implement.
2968 (listBindings): Implement.
2969 (destroySubcontext): Implement.
2970 (createSubcontext): Implement.
2971 (lookupLink): Implement.
2972 (getNameParser): Implement.
2973 (composeName): Implement.
2974 (addToEnvironment): Implement.
2976 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2978 * javax/naming/AuthenticationException.java,
2979 javax/naming/AuthenticationNotSupportedException.java,
2980 javax/naming/CannotProceedException.java,
2981 javax/naming/CommunicationException.java,
2982 javax/naming/ConfigurationException.java,
2983 javax/naming/ContextNotEmptyException.java,
2984 javax/naming/InsufficientResourcesException.java,
2985 javax/naming/InterruptedNamingException.java,
2986 javax/naming/InvalidNameException.java,
2987 javax/naming/LimitExceededException.java,
2988 javax/naming/LinkException.java,
2989 javax/naming/LinkLoopException.java,
2990 javax/naming/MalformedLinkException.java,
2991 javax/naming/NameAlreadyBoundException.java,
2992 javax/naming/NameNotFoundException.java,
2993 javax/naming/NamingSecurityException.java,
2994 javax/naming/NoPermissionException.java,
2995 javax/naming/NotContextException.java,
2996 javax/naming/PartialResultException.java,
2997 javax/naming/ReferralException.java,
2998 javax/naming/ServiceUnavailableException.java,
2999 javax/naming/SizeLimitExceededException.java,
3000 javax/naming/TimeLimitExceededException.java: New files.
3002 * javax/naming/Name.java (clone): New method.
3003 (compareTo): New method.
3004 (isEmpty): New method.
3005 (getAll): New method.
3006 (getPrefix): New method.
3007 (getSuffix): New method.
3008 (startsWith): New method.
3009 (endsWith): New method.
3010 (addAll): New method.
3011 (addAll): New method.
3014 (remove): New method.
3016 * javax/naming/Context.java (lookup): New method.
3017 (rebind): New method.
3018 (unbind): New method.
3019 (rename): New method.
3021 (listBindings): New method.
3022 (destroySubcontext): New method.
3023 (createSubcontext): New method.
3024 (lookupLink): New method.
3025 (getNameParser): New method.
3026 (composeName): New method.
3027 (addToEnvironment): New method.
3028 (removeFromEnvironment): New method.
3029 (getEnvironment): New method.
3030 (close): New method.
3031 (getNameInNamespace): New method.
3033 * javax/naming/InitialContext.java (lookup): New method.
3034 (rebind): New method.
3035 (unbind): New method.
3036 (rename): New method.
3038 (listBindings): New method.
3039 (destroySubcontext): New method.
3040 (createSubcontext): New method.
3041 (lookupLink): New method.
3042 (getNameParser): New method.
3043 (composeName): New method.
3044 (addToEnvironment): New method.
3045 (removeFromEnvironment): New method.
3046 (getEnvironment): New method.
3047 (close): New method.
3048 (getNameInNamespace): New method.
3050 2000-11-26 Tom Tromey <tromey@cygnus.com>
3052 * Makefile.in: Rebuilt.
3053 * Makefile.am (core_java_source_files): Added
3054 RuntimePermission.java.
3055 * java/lang/RuntimePermission.java: Imported from Classpath.
3056 * java/lang/Thread.java (getContextClassLoader): Now
3057 synchronized. Added security code.
3058 (setContextClassLoader): Likewise.
3060 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3061 length field of array.
3062 (_Jv_NewPrimArray): Likewise.
3063 * gcj/array.h (__JArray): `length' field now const. Added
3066 2000-11-26 Anthony Green <green@redhat.com>
3068 * javax/naming/spi/NamingManager.java,
3069 javax/naming/spi/ObjectFactory.java,
3070 javax/naming/spi/InitialContextFactory.java,
3071 javax/naming/spi/InitialContextFactoryBuilder.java,
3072 javax/naming/RefAddr.java, javax/naming/Reference.java,
3073 javax/naming/NamingException.java, javax/naming/Context.java,
3074 javax/naming/Referenceable.java,
3075 javax/naming/directory/InitialDirContext.java,
3076 javax/naming/directory/DirContext.java,
3077 javax/naming/directory/Attributes.java,
3078 javax/naming/directory/Attribute.java,
3079 javax/naming/StringRefAddr.java,
3080 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3081 javax/naming/InitialContext.java,
3082 javax/naming/NoInitialContextException.java: New files.
3084 2000-11-25 Anthony Green <green@redhat.com>
3086 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3087 (_Jv_NewPrimArray): Likewise.
3088 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3089 (class JArray): Removed constructor.
3091 * java/lang/Thread.java (context_class_loader): New private data.
3092 (getContextClassLoader): New method.
3093 (setContextClassLoader): New method.
3094 (Thread): Initialize context_class_loader.
3096 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3097 (getResource): Rename to findResource.
3098 (findResource): New method. Used to be getResource.
3099 (getResourceAsStream): Deleted.
3100 (jarFileize): Extracted logic from URLClassLoader constructor into
3101 this new private method.
3102 (addURL): New protected method.
3103 (URLClassLoader): Call jarFileize. Use addElement instead of
3105 (findResources): New method.
3107 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3108 (getResource): Implement correct logic.
3109 (findResource): New method.
3110 (getResources): New method.
3111 (findClass): Create a ClassNotFoundException with the name of the
3112 class rather than nothing at all.
3113 (defineClass) Only throw ClassFormatError.
3115 * java/lang/Class.java (forName): New method.
3116 * java/lang/Class.h (forName): New method.
3117 * java/lang/natClass.cc (forName): New method.
3119 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3121 * java/lang/System.java (setProperties): Only call init_properties()
3122 if properties is null.
3123 (getProperties): Ditto.
3124 (getProperty): Ditto.
3125 (setProperty): Call init_properties if properties are null.
3126 (prop_init): Remove field.
3127 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3128 method. Check for null properties after synchronizing instead of
3129 prop_init flag. Set the properties field last for thread safety.
3131 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3132 test for gcj.dumpobjects property and enable object stream dumping
3134 (dumpElement): No longer native.
3135 (dumpElementln): Ditto.
3136 (setDump): Do not define.
3137 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3138 (dumpElementln): Removed.
3141 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3143 * configure: Rebuilt.
3144 * Makefile.in: Rebuilt.
3145 * Makefile.am (built_java_source_files): Add Configuration.java.
3146 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3147 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3148 Create `gnu' directory in the build tree.
3149 * gnu/classpath/Configuration.java.in: New file.
3151 2000-11-24 Tom Tromey <tromey@cygnus.com>
3153 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3155 (_Jv_NewPrimArray): Likewise.
3157 * gcj/array.h (__JArray): `length' field now const. Added
3159 (class JArray): Added constructor.
3161 2000-11-23 Mark Wielaard <mark@klomp.org>
3163 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3166 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3168 * java/util/Vector.java: Improve exception messages.
3169 (Vector): Check initialCapacity for IllegalArgumentException.
3170 (tromToSize): Don't check for elementCount == elementData.length
3172 (toArray): Don't try to set null marker if target array is the same
3173 length as the vector.
3175 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3177 * Makefile.in: Rebuilt.
3178 * Makefile.am (core_java_source_files): Added Collections.java.
3179 * java/util/List.java: Merged from classpath.
3180 * java/util/Vector.java: Ditto.
3181 * java/util/Collections.java: From classpath.
3182 * java/util/ArrayList.java (addAll(Collection)): Call
3183 addAll(int,Collection) instead of duplicating code.
3184 (indexOf): Clean up int initialization.
3185 (clear): Set cleared array entries to null, to allow garbage
3187 * java/util/List.java: Minor formatting fixes.
3188 * java/util/SimpleTimeZone.java: ditto.
3190 2000-11-18 Tom Tromey <tromey@cygnus.com>
3192 * Makefile.in: Rebuilt.
3193 * Makefile.am (core_java_source_files): Added new files.
3194 * java/lang/reflect/ReflectPermission.java: New class.
3195 * java/io/FileFilter.java: From Classpath
3196 * java/io/FilePermission.java: From Classpath.
3198 2000-11-17 Tom Tromey <tromey@cygnus.com>
3200 * java/lang/reflect/AccessibleObject.java (isAccessible,
3201 setAccessible): Now public.
3203 * java/lang/natString.cc: Include Locale.h.
3204 (toUpperCase): Added `locale' argument. Handle locale
3206 (toLowerCase): Added `locale' argument. Handle locale
3208 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3209 CAPITAL_I): New defines.
3210 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3213 (toUpperCase, toLowerCase): New methods. Variants which accept
3216 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3219 * java/util/PropertyPermission.java: Re-merged from Classpath.
3221 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3223 * java/text/StringCharacterIterator.java: Reindented.
3224 (setText): New method.
3226 2000-11-17 Mark Wielaard <mark@klomp.org>
3228 Merge with Classpath (changes by Bryce McKinlay)
3229 * java/util/jar/*.java: Reformat all to unofficial standard coding
3230 style. No changes of substance.
3232 2000-11-17 Mark Wielaard <mark@klomp.org>
3234 * java/util/zip/*.java: Javadoc updates.
3236 2000-11-17 Tom Tromey <tromey@cygnus.com>
3238 * java/text/CollationKey.java: Implement Comparable.
3239 (compareTo(Object)): New method.
3240 * java/text/Collator.java (compare(Object,Object)): New method.
3241 Implement Comparator.
3243 * java/util/zip/InflaterInputStream.java (available): New method.
3244 (close): New method.
3245 (read, available, skip, fill): Throw exception if stream closed.
3246 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3247 getNextEntry): Throw exception if closed.
3249 2000-11-16 Tom Tromey <tromey@cygnus.com>
3251 * java/io/PushbackReader.java: Merged with Classpath.
3252 * java/util/Arrays.java: Updated from Classpath.
3254 * scripts/blocks.pl: New file.
3255 * java/lang/Character.java (Subset): New class.
3256 (UnicodeBlock): New class.
3258 * java/lang/Math.java (toDegrees, toRadians): New methods.
3260 * java/lang/Float.java: Implement Comparable.
3261 (compareTo): New methods.
3262 * java/lang/Double.java: Implement Comparable.
3263 (compareTo): New methods.
3265 2000-11-16 Warren Levy <warrenl@cygnus.com>
3267 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3269 (listeners): Made transient.
3270 (source): Renamed from 'bean'.
3271 (children): New field for serialization.
3272 (propertyChangeSupportSerializedDataVersion): Ditto.
3273 (serialVersionUID): Ditto.
3274 (writeObject): New serialization method.
3275 (readObject): New serialization method.
3276 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3278 (listeners): Made transient.
3279 (source): Renamed from 'bean'.
3280 (children): New field for serialization.
3281 (vetoableChangeSupportSerializedDataVersion): Ditto.
3282 (serialVersionUID): Ditto.
3283 (writeObject): New serialization method.
3284 (readObject): New serialization method.
3285 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3286 to allow constructor to have a return type (i.e. the class that the
3287 constructor constructs).
3289 2000-11-14 Tom Tromey <tromey@cygnus.com>
3291 * Makefile.in: Rebuilt.
3292 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3295 2000-11-02 Warren Levy <warrenl@cygnus.com>
3297 * java/io/ObjectInputStream.java (readObject): Added code to
3298 conditionally dump out the serialized data.
3299 Handle ENDBLOCKDATA case a bit more gracefully since the current
3300 behavior doesn't seem to work as expected.
3301 (readStreamHeader): Added code for serialized data dumper.
3302 (readNextBlock): Ditto.
3303 (readFields): Ditto.
3304 (dump): New private static field for turning on/off dumper.
3305 (setDump): New native method.
3306 (dumpElement): New native method.
3307 (dumpElementln): New native method.
3308 * java/io/natObjectInputStream.cc (setDump): New method.
3309 (dumpElement): New method.
3310 (dumpElementln): New method.
3312 2000-11-02 Warren Levy <warrenl@cygnus.com>
3314 * java/net/InetAddress.java (addr): Renamed from 'address'.
3315 (address): New field to match Serialized Form doc.
3316 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3317 (family): New serialization field.
3318 (serialVersionUID): New field.
3319 (readObject): New method.
3320 (writeObject): New method.
3321 (getFamily): New native method.
3322 (InetAddress): Set family.
3323 * java/net/natInetAddress.cc (getFamily): New method.
3324 (addr): Renamed from 'address'.
3325 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3326 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3327 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3329 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3331 * java/util/AbstractList.java (SubList): Make it a top-level private
3333 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3335 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3336 * Makefile.in: Rebuilt.
3338 2000-11-02 Tom Tromey <tromey@cygnus.com>
3340 * Makefile.in: Rebuilt.
3341 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3344 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3346 * java/util/AbstractList.java (remove): Comment out modCount increment
3347 to work around compiler bug.
3350 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3352 * java/util/AbstractList.java: Throw messages with
3353 IndexOutOfBoundsExceptions.
3354 (listIterator()): Call listIterator(0).
3355 (size): New field. Initialize to size().
3356 (hasNext): Test position against size, not size().
3357 (remove): Increment knownMod by one instead of resetting it from
3360 (SubList.upMod): Removed.
3361 (SubList.set): Don't call upMod() or update knownMod.
3362 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3363 (SubList.remove): Ditto.
3364 (SubList.addAll): Don't call backingList.size(). Increment size from
3366 (SubList.iterator): New method. Call listIterator(0).
3367 (SubList.listIterator): New method. Restore code to return an anonymous
3368 listIterator implementation (with some changes).
3369 * java/util/AbstractSequentialList.java: Throw messages with
3370 IndexOutOfBoundsExceptions.
3371 (addAll): Add a specnote.
3372 * java/util/ArrayList.java (removeRange): Get the math right.
3373 (addAll): Increment modCount _before_ creating iterator.
3374 * java/util/LinkedList.java: Rewritten, mostly.
3376 2000-11-01 Tom Tromey <tromey@cygnus.com>
3378 * scripts/encodings.pl: Added `ASCII' alias.
3379 * Makefile.in: Rebuilt.
3380 * Makefile.am (convert_source_files): Added new files.
3381 * gnu/gcj/convert/Input_ASCII.java: New file.
3382 * gnu/gcj/convert/Output_ASCII.java: New file.
3383 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3384 out-of-range characters.
3385 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3386 (read): Swap bytes if required. Treat `count' as character count,
3388 (write): Likewise. Also, handle case where iconv fails on a given
3390 (init): Put encoding into exception.
3391 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3392 (static): Call iconv_init. Rebuilt alias list.
3393 (iconv_init): New private method.
3395 2000-11-01 Tom Tromey <tromey@cygnus.com>
3397 * Makefile.in: Rebuilt.
3398 * Makefile.am (install-exec-hook): Only make a single symlink, and
3399 remove the destination before making the link.
3400 * configure: Rebuilt.
3401 * configure.in: Call AC_PROG_LN_S.
3403 2000-10-31 Warren Levy <warrenl@cygnus.com>
3405 * jni.cc: Added include of java/lang/ThreadGroup.h.
3406 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3407 per change of 2000-10-05.
3409 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3411 * java/util/BitSet.java: Updated @specnote.
3413 * java/io/Reader.java: Merge docs from classpath.
3414 (skip): Synchronize on `lock'.
3415 * java/io/FileReader.java: Import correct implementation from
3417 * java/io/StringReader.java: Merge docs from classpath.
3418 (ready): Throw IOException if stream is closed.
3420 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3422 * java/util/AbstractCollection.java (addAll): Use size() instead of
3423 hasNext() in iterator loop.
3425 (contains): Ditto. Simplify loop.
3426 (containsAll): Ditto.
3431 (toString): Ditto. Use string concatenation operators, not
3433 * java/util/AbstractList.java (addAll): Use size() instead of
3434 hasNext() in iterator loop.
3437 (indexOf): Ditto. Don't take null check outside of the loop.
3438 (iterator): Return an AbstractListItr instead of anonymous class.
3439 (lastIndexOf): Use a for loop bounded by size() instead of
3440 hasPrevious() in iterator loop.
3441 (listIterator): Return an AbstractListItr.
3442 (removeRange): Remove bounds checking code and docs.
3443 (AbstractListItr): New inner class. Code moved here from
3445 (SubList.iterator): Removed. Use default implementation from
3446 AbstractList instead.
3447 (SubList.listIterator): As above.
3448 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3449 instead of hasNext() in iterator loop.
3450 (containsValue): Ditto.
3456 (toString): Ditto. Use string concatenation operators, not
3458 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3459 bounded by size() instead of hasNext() in iterator loop.
3460 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3461 part of normal execution flow. Do an explicit null check instead.
3462 * java/util/ArrayList.java (_iSize): Rename to `size'.
3463 (_arData): Rename to `data'.
3464 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3467 (removeRange): Make protected. Don't check bounds.
3468 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3470 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3472 (addAll (int, Collection)): Check lower bounds. Simplify exception
3474 (clone): Clone the data array too.
3475 (indexOf): Inline doesEqual().
3476 (lastIndexOf): Ditto.
3477 (clear): Don't set array data to null.
3478 (set): Check lower bounds. Simplify exception string.
3479 (toArray): Correct comment.
3480 (trimToSize): Don't update modCount, this is not a structural change.
3483 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3485 (toString): Declare `bit' as long, not int.
3486 (data): Made package-private, not private.
3488 2000-10-27 Warren Levy <warrenl@cygnus.com>
3490 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3491 array elements to true.
3493 2000-10-27 Warren Levy <warrenl@cygnus.com>
3495 * Makefile.am: Added locale files from Classpath.
3496 * Makefile.in: Rebuilt.
3497 * gnu/java/locale/Calendar.java: New file.
3498 * gnu/java/locale/Calendar_de.java: New file.
3499 * gnu/java/locale/Calendar_en.java: New file.
3500 * gnu/java/locale/Calendar_nl.java: New file.
3501 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3502 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3503 serialization compatibility.
3504 (scale): Made private.
3505 (serialVersionUID): New field.
3506 * java/math/BigInteger.java (ival): Made transient.
3507 (words): Made transient.
3508 (bitCount): New serialization field.
3510 (firstNonzeroByteNum): Ditto.
3511 (lowestSetBit): Ditto.
3514 (serialVersionUID): New field.
3515 (readObject): New method.
3516 (writeObject): New method.
3517 * java/util/BitSet.java (serialVersionUID): New field.
3518 * java/util/Calendar.java: Replaced with Classpath file.
3519 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3520 of getDefault() for TimeZone or Locale instead of passing nulls.
3521 * java/util/Locale.java (serialVersionUID): New field.
3522 (writeObject): New method.
3523 (readObject): New method.
3524 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3526 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3528 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3529 (core_java_source_files): Put java.lang, java.io, and java.util here.
3530 (ordinary_java_source_files): Order so that core_java_source_files are
3532 (java_source_files): Reorder so that special_java_source_files are
3534 * configure.in: Don't pass -I flag to gcj.
3535 * Makefile.in: Rebuilt.
3536 * configure: Rebuilt.
3538 2000-10-25 Tom Tromey <tromey@cygnus.com>
3540 * Makefile.in: Rebuilt.
3541 * Makefile.am (install-exec-hook): New target.
3543 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3545 * java/util/EventObject.java: Merged from classpath.
3547 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3550 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3552 * java/util/AbstractSet.java (equals): Re-installed original code.
3554 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3556 * Makefile.am: Added rules for libgcjx library.
3557 * Makefile.in: Rebuilt.
3558 * configure.in: Added check for X.
3559 * configure: Rebuilt.
3560 * gnu/awt/LightweightRedirector.java: New file.
3561 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3562 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3563 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3564 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3565 * gnu/awt/j2d/MappedRaster.java: New file.
3566 * gnu/awt/xlib/XCanvasPeer.java: New file.
3567 * gnu/awt/xlib/XEventLoop.java: New file.
3568 * gnu/awt/xlib/XEventQueue.java: New file.
3569 * gnu/awt/xlib/XFontMetrics.java: New file.
3570 * gnu/awt/xlib/XFramePeer.java: New file.
3571 * gnu/awt/xlib/XGraphics.java: New file.
3572 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3573 * gnu/awt/xlib/XPanelPeer.java: New file.
3574 * gnu/awt/xlib/XToolkit.java: New file.
3575 * gnu/gcj/xlib/Clip.java: New file.
3576 * gnu/gcj/xlib/Colormap.java: New file.
3577 * gnu/gcj/xlib/Display.java: New file.
3578 * gnu/gcj/xlib/Drawable.java: New file.
3579 * gnu/gcj/xlib/Font.java: New file.
3580 * gnu/gcj/xlib/GC.java: New file.
3581 * gnu/gcj/xlib/Pixmap.java: New file.
3582 * gnu/gcj/xlib/Screen.java: New file.
3583 * gnu/gcj/xlib/Visual.java: New file.
3584 * gnu/gcj/xlib/WMSizeHints.java: New file.
3585 * gnu/gcj/xlib/Window.java: New file.
3586 * gnu/gcj/xlib/WindowAttributes.java: New file.
3587 * gnu/gcj/xlib/XAnyEvent.java: New file.
3588 * gnu/gcj/xlib/XButtonEvent.java: New file.
3589 * gnu/gcj/xlib/XColor.java: New file.
3590 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3591 * gnu/gcj/xlib/XConnectException.java: New file.
3592 * gnu/gcj/xlib/XEvent.java: New file.
3593 * gnu/gcj/xlib/XException.java: New file.
3594 * gnu/gcj/xlib/XExposeEvent.java: New file.
3595 * gnu/gcj/xlib/XID.java: New file.
3596 * gnu/gcj/xlib/XImage.java: New file.
3597 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3598 * gnu/gcj/xlib/natClip.cc: New file.
3599 * gnu/gcj/xlib/natColormap.cc: New file.
3600 * gnu/gcj/xlib/natDisplay.cc: New file.
3601 * gnu/gcj/xlib/natDrawable.cc: New file.
3602 * gnu/gcj/xlib/natFont.cc: New file.
3603 * gnu/gcj/xlib/natGC.cc: New file.
3604 * gnu/gcj/xlib/natPixmap.cc: New file.
3605 * gnu/gcj/xlib/natScreen.cc: New file.
3606 * gnu/gcj/xlib/natVisual.cc: New file.
3607 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3608 * gnu/gcj/xlib/natWindow.cc: New file.
3609 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3610 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3611 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3612 * gnu/gcj/xlib/natXColor.cc: New file.
3613 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3614 * gnu/gcj/xlib/natXException.cc: New file.
3615 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3616 * gnu/gcj/xlib/natXImage.cc: New file.
3617 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3618 * java/awt/EventDispatchThread.java: Start thead on creation.
3620 2000-10-20 Tom Tromey <tromey@cygnus.com>
3622 From Arno J. Klaassen:
3623 * interpret.cc: Include <stdlib.h> for alloca.
3624 * defineclass.cc: Include <stdlib.h> for alloca.
3626 * Makefile.in: Rebuilt.
3627 * Makefile.am: Include deps.mk.
3628 (GCJCOMPILE): Added -MD, -MT, and -MF.
3629 ($(javao_files)): Don't depend on libgcj.zip.
3630 (all-recursive): New target.
3631 (%.lo:%.cc): Do dependency tracking.
3632 ($(nat_headers)): Don't depend on libgcj.zip.
3633 * configure: Rebuilt.
3634 * configure.in: Make .d files and deps.mk.
3636 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3638 * exception.cc: Don't #include "exception".
3639 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3641 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3642 * Makefile.in: Updated.
3644 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3646 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3647 * java/awt/peer/ComponentPeer.java (disable): Removed.
3650 (minimumSize): Removed.
3651 (preferredSize): Removed.
3654 * java/awt/peer/ListPeer.java (addItem): Removed.
3656 (minimumSize): Removed.
3657 (preferredSize): Removed.
3658 (setMultipleSelections): Removed.
3659 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3660 (remove): Renamed from removeMenu.
3661 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3663 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3664 (remove): Renamed from removeItem.
3665 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3666 (getMinimumSize): Removed.
3667 (getPreferredSize): Removed.
3668 (minimumSize): Removed.
3669 (preferredSize): Removed.
3670 (replaceText): Removed.
3671 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3672 (preferredSize): Removed.
3673 (getMinimumSize): Removed.
3674 (getPreferredSize): Removed.
3675 (setEchoCharacter): Removed.
3677 2000-10-10 Warren Levy <warrenl@cygnus.com>
3679 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3680 * java/sql/Date.java (serialVersionUID): New field.
3681 * java/sql/Time.java (serialVersionUID): New field.
3682 * java/sql/Timestamp.java (serialVersionUID): New field.
3683 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3684 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3685 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3686 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3687 (readObject): New serialization method.
3688 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3689 (serialVersionOnStream): New field.
3690 (readObject): New serialization method.
3691 (getMonetaryDecimalSeparator): New method.
3692 (setMonetaryDecimalSeparator): New method.
3693 * java/text/NumberFormat.java (maxFractionDigits): New field.
3694 (maxIntegerDigits): New field.
3695 (minFractionDigits): New field.
3696 (minIntegerDigits): New field.
3697 (serialVersionOnStream): New field.
3698 (serialVersionUID): New field.
3699 (readObject): New serialization method.
3700 (writeObject): New serialization method.
3701 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3702 (serialVersionOnStream): New field.
3703 (serialVersionUID): New field.
3704 (readObject): New serialization method.
3706 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3708 * configure.in (GCJ): Avoid bogus error message when looking for
3709 (and not finding) gcj in the build tree.
3710 * configure: Rebuilt.
3712 2000-10-09 Tom Tromey <tromey@cygnus.com>
3714 * configure: Rebuilt.
3715 * configure.in: Include sys/types.h when checking for socklen_t.
3716 From Arno J. Klaassen.
3718 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3720 * include/jvm.h: Enable __builtin_expect().
3722 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3723 the main program. Fix for PR libgcj/341.
3725 2000-10-07 Tom Tromey <tromey@cygnus.com>
3727 * java/util/Properties.java: Merged with Classpath version.
3729 2000-10-05 Tom Tromey <tromey@cygnus.com>
3731 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3732 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3733 * java/lang/Class.h (Object): Added `class$' field.
3734 * java/lang/Object.h (Object): Added `class$' field.
3735 * defineclass.cc (ClassClass): Use `class$' form.
3736 (ClassObject): Likewise.
3737 * resolve.cc (ClassObject): Use `class$' form.
3738 (ObjectClass): Likewise.
3739 * interpret.cc (ClassError): Removed.
3740 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3742 (IntegerClass): Likewise.
3743 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3745 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3746 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3747 SerializableClass): Likewise.
3748 Include Serializable.h, Cloneable.h.
3749 * java/lang/natSystem.cc (SystemClass): Removed.
3750 (init_properties): Use `class$' form.
3751 * java/lang/natObject.cc (CloneableClass): Removed.
3752 (clone): Use `class$' form.
3753 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3754 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3755 ConstructorClass): Likewise.
3756 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3757 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3758 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3759 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3761 (ClassClass): Likewise.
3762 * include/jvm.h (StringClass): Use `class$' form.
3763 * prims.cc (ObjectClass): Removed.
3764 (_Jv_RunMain): Use `class$' form.
3765 (_Jv_AllocObject): Likewise.
3766 * jni.cc (ClassClass): Use `class$' form.
3767 (ThrowableClass): Likewise.
3768 (ObjectClass): Likewise.
3769 (MethodClass): Likewise.
3770 (ThreadGroupClass): Likewise.
3771 (NativeThreadClass): Likewise.
3772 * boehm.cc (ObjectClass): Removed.
3773 (ClassClass): Removed.
3774 (_Jv_MarkObj): Use `class$' form.
3775 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3778 2000-10-05 Warren Levy <warrenl@cygnus.com>
3780 * Makefile.am: Removed java/io/Replaceable.java and
3781 java/io/Resolvable.java.
3782 * Makefile.in: Rebuilt.
3783 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3785 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3787 (processResolution): Handle readResolve method via reflection with
3788 removal of Resolvable interface.
3789 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3790 method via reflection with removal of Replaceable interface.
3791 * java/io/Replaceable.java: Removed.
3792 * java/io/Resolvable.java: Removed.
3793 * java/security/Key.java (serialVersionUID): New field.
3794 * java/security/Provider.java (serialVersionUID): New field.
3795 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3797 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3799 * java/sql/DataTruncation.java (serialVersionUID): New field.
3800 * java/sql/SQLException.java (serialVersionUID): New field.
3801 * java/sql/SQLWarning.java (serialVersionUID): New field.
3802 * java/util/Date.java (serialVersionUID): New field.
3803 (millis): Made transient.
3804 (readObject): New method.
3805 (writeObject): New method.
3807 2000-10-05 Tom Tromey <tromey@cygnus.com>
3809 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3811 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3813 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3814 (JvRunMain): Set _Jv_argv and _Jv_argc.
3815 * java/awt/Component.java: Minor fixes.
3816 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3817 * java/awt/Toolkit.java (systemEventQueue): Removed.
3818 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3819 * java/awt/Window.java (getToolkit): Don't call super.
3820 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3821 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3822 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3823 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3824 * gnu/awt/gtk/GtkFramePeer.java: New file.
3825 * gnu/awt/gtk/GtkMainThread.java: New file.
3826 * gnu/awt/gtk/GtkToolkit.java: New file.
3827 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3828 * gnu/awt/gtk/gtkcommon.cc: New file.
3829 * gnu/awt/gtk/gtkcommon.h: New file.
3830 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3831 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3832 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3833 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3834 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3835 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3837 2000-09-30 Tom Tromey <tromey@cygnus.com>
3839 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3840 interrupted before modifying the cv's wait set.
3843 2000-09-30 Hans Boehm <boehm@acm.org>
3844 Bryce McKinlay <bryce@albatross.co.nz>
3846 Implement bitmap descriptor based marking for Boehm GC.
3848 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3849 * configure: Rebuilt.
3850 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3851 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3852 method get_finalizer().
3853 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3854 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3855 (_Jv_AllocObj): Add new jclass parameter.
3856 (_Jv_AllocArray): Ditto.
3857 (_Jv_BuildGCDescr): New prototype.
3858 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3859 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3860 get_finalizer() instead of direct finalizer vtable offset.
3861 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3862 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3863 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3864 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3865 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3866 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3867 (_Jv_DetermineVTableIndex): Ditto.
3868 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3869 calculations to account for new gc_descr field.
3870 * boehm.cc: #include gc_gcj.h.
3871 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3872 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3873 New commentary from HB. Mark the classes vtable.
3874 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3875 (GC_DEFAULT_DESCR): New #define.
3876 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3877 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3878 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3879 scan conservativly if size is less than min_heap_addr. Set vtable
3880 pointer of new object before returning.
3881 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3882 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3883 allocation for obj_kind_x.
3884 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3885 (_Jv_AllocObj): Set vtable on returned object.
3886 (_Jv_AllocArray): Ditto.
3887 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3888 (_Jv_NewPrimArray): Ditto.
3889 (_Jv_AllocObj): Declare as a friend.
3890 (_Jv_AllocArray): Ditto.
3891 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3892 from &ObjectClass into new array class. Remove offset-by-one
3893 adjustments from `method' size calculations to account for gc_descr
3896 2000-09-26 Tom Tromey <tromey@cygnus.com>
3898 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3899 `remove', not `add'.
3901 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3903 * java/lang/natSystem.cc (file_encoding): Added return statement.
3905 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3907 * Makefile.am: Re-work shell commands that exceeded command-line
3909 * Makefile.in: Rebuilt.
3911 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3913 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3914 * java/lang/natDouble.cc: Likewise.
3915 * java/lang/reflect/natMethod.cc: Likewise.
3916 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3918 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3920 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3922 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3923 * acinclude.m4: Arrange for automake to not bring in a new
3924 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3925 * Makefile.am: Leave it up to automake to subst GCJ.
3926 * aclocal.m4, configure, Makefile.in: Rebuilt.
3928 2000-09-13 Tom Tromey <tromey@cygnus.com>
3930 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3931 (get): Ensure Boolean class is initialized.
3932 * java/lang/reflect/natField.cc (BooleanClass): New define.
3933 (get): Ensure Boolean class is initialized.
3935 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3937 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3938 Initialize with anonymous class.
3939 (compareToIgnoreCase): New method.
3941 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3942 (uncaughtException): Set had_uncaught_exception.
3943 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3944 exit with error status if set.
3945 (_Jv_RunMain): Ditto.
3947 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3949 * configure: Rebuilt with new ../libtool.m4.
3951 2000-09-11 Tom Tromey <tromey@cygnus.com>
3953 * java/lang/reflect/Field.java (toString): Don't rely on
3956 2000-09-08 Tom Tromey <tromey@cygnus.com>
3958 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3959 default decoder use iconv.
3960 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3961 Let default encoder use iconv.
3962 * configure: Rebuilt.
3963 * configure.in: Check for nl_langinfo and <langinfo.h>.
3964 * java/lang/natSystem.cc (file_encoding): New function.
3965 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3967 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3969 * acinclude.m4: Simplify the tests for CC and CXX.
3970 * aclocal.m4, configure: Rebuilt.
3972 * acinclude.m4: Include libtool macros from the source tree.
3973 * aclocal.m4, configure: Rebuilt.
3975 2000-09-08 Warren Levy <warrenl@cygnus.com>
3977 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3978 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3979 * java/io/File.java (writeObject): Added.
3980 (readObject): Added.
3981 (serialVersionUID): Added.
3982 * java/io/ObjectOutputStream.java (writeObject): Initialized
3983 fieldsAlreadyWritten before recursion rather than after.
3984 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3985 * java/io/OptionalDataException.java (serialVersionUID): Added.
3986 (OptionalDataException): Made package private.
3987 * java/io/SyncFailedException.java (SyncFailedException): Removed
3988 default constructor to match spec.
3989 * java/lang/Boolean.java (serialVersionUID): Added.
3990 * java/lang/Byte.java (serialVersionUID): Added.
3991 * java/lang/Character.java (serialVersionUID): Added.
3992 * java/lang/Double.java (serialVersionUID): Added.
3993 * java/lang/Float.java (serialVersionUID): Added.
3994 * java/lang/Integer.java (serialVersionUID): Added.
3995 * java/lang/Long.java (serialVersionUID): Added.
3996 * java/lang/Number.java (serialVersionUID): Added.
3997 * java/lang/Short.java (serialVersionUID): Added.
3998 * java/lang/String.java (serialVersionUID): Added.
3999 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4001 * java/lang/reflect/InvocationTargetException.java
4002 (serialVersionUID): Added.
4003 * java/net/URL.java (handler): Made transient.
4004 (hashCode): Added field for serialization, per spec. and use
4005 cached value if available.
4006 (serialVersionUID): Added.
4007 (URL): Initialize hashCode.
4008 (set): Adjust hashCode.
4009 (readObject): New Method to initialize the protocol handler when
4011 (writeObject): New method.
4012 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4013 * java/text/Collator.java: Removed 'implements Serializable'.
4014 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4015 * java/util/Properties.java (serialVersionUID): Added.
4016 * java/util/Random.java (serialVersionUID): Added.
4017 (seed): Made private.
4018 (nextNextGaussian): Made private.
4019 (haveNextNextGaussian): Made private.
4020 * java/util/Stack.java (serialVersionUID): Added.
4021 * java/util/TimeZone.java (serialVersionUID): Added.
4022 * java/util/Vector.java (serialVersionUID): Added.
4024 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4026 * Makefile.am (Thread.h): Don't be friends with native threads
4028 * Makefile.in: Rebuilt.
4029 * java/lang/Thread.java (interrupt_flag): Make package-private.
4031 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4033 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4034 to avoid long long division.
4036 2000-09-06 Tom Tromey <tromey@cygnus.com>
4038 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4040 * java/lang/reflect/Method.java (toString): Use `getName' for
4043 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4044 `args' if method takes no parameters.
4046 Fix for PR java.lang/339:
4047 * java/lang/natPosixProcess.cc (fail): New function.
4048 (cleanup): New function.
4049 (startProcess): Use them. Create pipe so child can communicate
4050 exec failure back to parent.
4052 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4054 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4056 (send): Undo last patch. Remove the label only.
4058 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4060 * java/net/natInetAdress.cc: Ditto.
4062 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4064 2000-09-05 Tom Tromey <tromey@cygnus.com>
4066 * doc/cni.sgml: Updated from master copy.
4068 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4070 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4072 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4074 * java/lang/fdlibm.h: #undef __P if previously defined.
4075 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4076 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4080 2000-09-04 Tom Tromey <tromey@cygnus.com>
4082 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4085 2000-09-04 Anthony Green <green@redhat.com>
4087 Fix for PR java.io/203:
4088 * java/io/File.java (createTempFile): Obey directory argument.
4089 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4090 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4091 variable to set java.io.tmpdir on non-WIN32 systems.
4093 2000-09-04 Anthony Green <green@redhat.com>
4095 * java/io/File.java (deleteOnExit): New method.
4096 * gnu/gcj/runtime/FileDeleter.java: New class.
4097 * java/lang/natRuntime.cc (exit): Call
4098 FileDeleter.deleteOnExitNow()
4099 * Makefile.am: Add FileDeleter.java.
4100 * Makefile.in: Rebuilt.
4102 2000-09-02 Tom Tromey <tromey@cygnus.com>
4104 * Makefile.in: Rebuilt.
4105 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4106 environment variable.
4108 2000-09-01 Andrew Haley <aph@redhat.com>
4110 * java/io/StreamTokenizer.java: Don't throw a
4111 NumberFormatException if a field is numeric as far as the
4112 StreamTokenizer is concerned but not as far as Double.valueOf() is
4113 concerned: return a zero instead.
4115 2000-08-30 Tom Tromey <tromey@cygnus.com>
4117 * Makefile.in: Rebuilt.
4118 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4120 2000-08-28 Tom Tromey <tromey@cygnus.com>
4122 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4123 gnu/gcj/awt/ComponentDataBlitOp.java,
4124 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4125 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4126 java/awt/color/ICC_ColorSpace.java,
4127 java/awt/color/ICC_Profile.java,
4128 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4129 java/awt/image/ComponentColorModel.java,
4130 java/awt/image/ComponentSampleModel.java,
4131 java/awt/image/DataBuffer.java,
4132 java/awt/image/DataBufferByte.java,
4133 java/awt/image/DataBufferInt.java,
4134 java/awt/image/DataBufferUShort.java,
4135 java/awt/image/DirectColorModel.java,
4136 java/awt/image/IndexColorModel.java,
4137 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4138 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4139 java/awt/image/SinglePixelPackedSampleModel.java,
4140 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4141 Removed Latin-1 copyright symbols.
4142 * java/util/zip/ZipFile.java: Indentation fixes.
4144 2000-08-27 Mark Wielaard <mark@klomp.org>
4146 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4147 constructor, close can delete the file, finalize calls close.
4148 * java/util/jar/JarFile.java: Constructor that takes mode now
4151 2000-08-27 Anthony Green <green@redhat.com>
4153 * java/util/ArrayList.java, java/util/Timer.java,
4154 java/util/LinkedList.java, java/util/TimerTask.java,
4155 java/util/HashMap.java, java/util/AbstractMap.java,
4156 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4157 java/util/SortedSet.java: Imported from GNU Classpath.
4158 * Makefile.in: Rebuilt.
4159 * Makefile.am: Added new files.
4161 2000-08-26 Anthony Green <green@redhat.com>
4163 * Makefile.in: Rebuilt.
4164 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4167 * prims.cc: Include ClassLoader.h.
4168 (_Jv_RunMain): When executing jar files, classpath must be the jar
4169 file only. Lose our reference to the system ClassLoader in order
4170 to get a new one with the correct classpath.
4171 * java/lang/natSystem.cc (init_properties): When executing a jar
4172 file, only use the jar file for java.class.path.
4174 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4175 for bytecode archives.
4177 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4178 exists, but not Main-Class.
4180 2000-08-23 Mark Wielaard <mark@klomp.org>
4182 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4183 return -1 when fill() has no more data for the Inflater.
4185 2000-08-23 Mark Wielaard <mark@klomp.org>
4187 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4188 write(String) already does.
4190 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4192 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4193 to `alive_flag', call `init'.
4194 (init): New native method.
4195 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4198 2000-08-21 Mark Wielaard <mark@klomp.org>
4200 * Makefile.in: Rebuilt.
4201 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4203 (java/lang/reflect/Field.h): Likewise.
4204 (java/lang/reflect/Method.h): Likewise.
4205 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4208 2000-08-21 Tom Tromey <tromey@cygnus.com>
4210 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4213 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4215 * java/lang/natSystem.cc (init_properties): Change sourceware
4216 reference to sources.redhat.com.
4218 * include/java-props.h: Add _Jv_Jar_Class_Path.
4219 * prims.cc: Ditto. Set it from `gij -jar file' option.
4221 * java/lang/natSystem.cc (init_properties): Set java.class.path
4223 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4225 * java/util/PropertyPermission.java: Import from GNU Classpath.
4226 * Makefile.in: Rebuilt.
4227 * Makefile.am: Add java/util/PropertyPermission.java.
4228 * java/lang/System.java: Add setProperty method.
4230 * gij.cc (main): Add -jar option to execute jar files.
4231 (help): Describe -jar option.
4232 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4233 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4234 * gnu/gcj/runtime/FirstThread.java (main): New method.
4236 * java/util/jar/Attributes.java: Correct comment spelling.
4238 2000-08-20 Mark Wielaard <mark@klomp.org>
4240 * java/util/zip/Adler32.java: Make private variables really private
4241 * java/util/zip/CRC32.java: Make private variables really private
4242 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4244 * java/util/zip/InflaterInputStream.java: skip() could skip to
4246 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4247 * java/util/zip/ZipFile.java: size() new 1.2 method
4248 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4249 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4252 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4254 * java/util/jar/JarFile.java: Don't call
4255 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4258 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4260 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4261 Read the entire contents of the class file, not just what is
4264 * java/net/JarURLConnection.java: getEntry doesn't take any
4265 arguments. Return null if element is null.
4267 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4268 size from the archive, not the inflated size.
4270 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4271 java.util.zip.ZipFile.getEntry.
4273 * gij.cc (help): Change sourceware reference to
4276 2000-08-19 Tom Tromey <tromey@cygnus.com>
4278 * java/util/zip/ZipInputStream.java (createZipEntry):
4281 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4283 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4284 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4285 java/util/jar/JarInputStream.java,
4286 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4287 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4288 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4289 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4290 java/security/cert/Certificate.java,
4291 java/security/cert/CertificateEncodingException.java,
4292 java/security/cert/CertificateException.java,
4293 java/security/cert/CertificateExpiredException.java,
4294 java/security/cert/CertificateFactory.java,
4295 java/security/cert/CertificateFactorySpi.java,
4296 java/security/cert/CertificateNotYetValidException.java,
4297 java/security/cert/CertificateParsingException.java,
4298 java/security/cert/X509CRL.java,
4299 java/security/cert/X509CRLEntry.java,
4300 java/security/cert/X509Certificate.java,
4301 java/security/cert/X509Extension.java: Imported from Classpath.
4302 * java/util/Hashtable.java: Imported from Classpath.
4304 * java/util/zip/ZipInputStream.java: Create stub for
4307 * gcj/javaprims.h: Updated class list.
4309 * Makefile.in, gcj/Makefile.in: Rebuilt.
4310 * Makefile.am (ordinary_java_source_files): Add these new classes.
4312 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4314 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4315 * gnu/gcj/awt/GLightweightPeer.java: New file.
4316 * java/awt/BorderLayout.java: Implemented all methods.
4317 * java/awt/Button.java (actionListener, actionCommand): Renamed
4318 and modifier change.
4319 (addNotify): Call super.
4320 (dispatchEventImpl): New method.
4321 (getListeners): New method.
4322 (label): Made package-private, not private.
4323 * java/awt/Canvas.java: Implemented class body.
4324 * java/awt/Color.java (brighter): New method.
4325 (darker): New method.
4326 (hashCode): New method.
4327 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4328 (getGraphicsConfiguration): Delegate to
4329 getGraphicsConfigurationImpl().
4330 (getGraphicsConfigurationImpl): New method.
4331 (getToolkit): Only return value from peer if not null.
4332 (isDisplayable): Check with parent.
4333 (isShowing): No parent implies not showing.
4334 (getForeground): Check parent property if local is null.
4335 (getBackground): Likewise.
4336 (getFont): Likewise.
4337 (setForeground): Inform peer.
4338 (setBackground): Likewise
4339 (setLocale): Invalidate component.
4340 (getColorModel): Implemented.
4341 (setLocation): Invalidate, or ignore if no change.
4342 (setSize): Invalidate, or ignore if no change.
4343 (setBounds): Invalidate, or ignore if no change.
4344 (isOpaque): By default, heavyweight implies opaque.
4345 (isLightweight): Implemented.
4346 (getMaximumSize): Implemented.
4347 (doLayout): Implemented, NOP.
4348 (validate): Implemented, NOP.
4349 (invalidate): Only propagate to parent if parent was valid.
4350 (getGraphics): Implemented.
4351 (getFontMetrics): Implemented.
4352 (update): Implemented.
4353 (paintAll): Implemented.
4354 (repaint): Implemented all repaint methods.
4355 (print): Implemented.
4356 (printAll): Implemented.
4357 (createImage): Implemented.
4358 (dispatchEvent): Give the peer a chance to handle the event.
4359 (dispatchEventImpl): Dispatch paint events.
4360 (enableEvents): Lightweights enable events on parent component.
4361 (coalesceEvents): Coalesce paint events, and select event type
4363 (coalescePaintEvents): New method.
4364 (processEvent): Fix unfortunate ordering of statements, and call
4365 correct method for MOUSE_CLICKED.
4366 (processPaintEvent): New method.
4367 (addNotify): Allow container to notify children before event
4368 mask is set in peer.
4369 (addNotifyContainerChildren): New method.
4370 (removeNotify): Visibility should not change on removeNotify.
4371 (paramString): Implemented.
4372 (list): Implemented two of the list methods.
4373 * Container (myInsets): Removed, insets are managed by peer.
4374 (getInsets): Query peer.
4375 (addImpl): Fix reparenting, enable events for lightweights,
4376 initialize component array.
4377 (validate): Call doLayout in validateTree() instead.
4378 (validateTree): Do nothing if already valid. Call beginValidate(),
4379 endValidate() on peer. Call validateTree() instead of validate()
4380 for children that are containers. Mark valid after validation of
4382 (setFont): Partial implementation.
4383 (paint): Implemented.
4384 (visitChildren): New method.
4385 (visitChild): New method.
4386 (update): Implemented.
4387 (print): Implemented.
4388 (paintComponents): Implemented.
4389 (printComponents): Consider translation and clipping.
4390 (getComponentAt): Ignore invisible children. Return this if no
4392 (addNotify): Call super.
4393 (addNotifyContainerChildren): New method.
4394 (paramString): Implemented.
4395 (list): Implemented.
4396 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4398 (invokeLater): Likewise.
4399 (isDispatchThread): Likewise.
4400 * java/awt/FontMetrics (getLeading): Formula change.
4401 (getDescent): Consider leading also.
4402 (getMaxAscent): Default to getAscent().
4403 (getMaxDescent): Default to getDescent.
4404 (getMaxAdvance): Return value signifying unknown.
4405 (charWidth): Both methods implemented.
4406 (charsWidth): Implemented.
4407 (bytesWidth): Implemented.
4408 (getWidths): Implemented.
4409 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4411 (Frame): Rearragend constuctor chaining to disallow null being
4412 passed as a graphics configuration.
4413 (getTitle): Return empty string if null.
4415 (getIconImage): New method.
4416 (setIconImage): New method.
4417 (finalize): New method.
4418 (setMenuBar): Notify peer.
4419 (isResizable): New method.
4420 (setResizable): New method.
4421 (getState): New method.
4423 (remove): Implemented.
4424 (removeNotify): New method.
4425 (getFrames): New method.
4426 * java/awt/Graphics.java: Implemented body of class.
4427 * java/awt/Graphics2D.java: New file.
4428 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4429 * java/awt/Image.java: Implemented body of class.
4430 * java/awt/Panel.java (Panel): Call correct super constructor.
4431 (addNotify): Implemented.
4432 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4433 * java/awt/RenderingHints.java: New file.
4434 * java/awt/Toolkit.java (createComponent): Implemented.
4435 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4436 * java/awt/Window.java (Window): Two new constructors. Reordered
4437 constructor chaining.
4438 (getGraphicsConfigurationImpl): New method.
4439 (finalize): Call super.
4440 (addNotify): Call super.
4441 (pack): Do layout stuff.
4442 (show): Ensure that peer exists and that component is valid.
4443 (dispose): Dispose owned children.
4444 (getOwner): Simplify code, casting null pointers is valid.
4445 (getGraphicsConfiguration): Ask peer if local value is null.
4446 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4448 * java/awt/image/BufferedImage.java: New file.
4449 * java/awt/image/RasterOp.java: New file.
4450 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4451 More powerfull replacement for getColorModel().
4452 (getColorModel) Removed.
4453 (setEventMask) New method.
4454 * Makefile.am: Added new files.
4455 * Makefile.in: Rebuilt.
4457 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4459 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4460 (finit_leg_name): New global.
4461 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4462 `$finit$'. This is a backward compatibility hack.
4463 (java::lang::Class::_getMethods): Likewise.
4465 2000-08-15 Andrew Haley <aph@cygnus.com>
4467 * include/jvm.h (_Jv_HashCode): New hash code.
4469 2000-08-15 Tom Tromey <tromey@cygnus.com>
4471 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4473 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4475 * THANKS: More thanks.
4477 2000-08-10 Tom Tromey <tromey@cygnus.com>
4479 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4481 (connect): Likewise.
4483 (getOption): Likewise.
4484 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4485 case when errno not set.
4488 (receive): Likewise.
4489 (mcastGrp): Likewise.
4490 (setOption): Likewise.
4491 (getOption): Likewise.
4493 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4494 John Stracke <francis@ecal.com>
4496 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4497 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4499 (disconnect): Don't unset connected flag.
4500 (getHeaderField (String)): Call connect() if not connected.
4501 (getHeaderField (int)): Ditto.
4502 (getHeaderFieldKey): Ditto.
4503 (getHttpHeaders): Don't call connect().
4504 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4505 gotResponseVals): New fields.
4506 (getResponseCode): Call getResponseVals() conditionally.
4507 (getResponseMessage): Ditto.
4508 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4510 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4512 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4513 * Makefile.in: Rebuilt.
4514 * java/awt/Color.java (getTransparency): New method.
4515 * java/awt/Component.java: Various updates.
4516 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4517 after dealing with children.
4518 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4519 * java/awt/Window.java: Various new methods and updates.
4520 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4522 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4523 * java/awt/event/WindowEvent.java (paramString): Ditto.
4524 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4526 * java/awt/geom/Point2D.java (clone): Ditto.
4527 * java/awt/geom/RectangularShape.java (clone): Ditto.
4528 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4529 isAlphaPremultiplied): Make package-private, not private.
4531 2000-08-08 Tom Tromey <tromey@cygnus.com>
4533 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4534 surrogate characters.
4535 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4537 (write): Correct handling of surrogate characters.
4539 2000-08-07 Tom Tromey <tromey@cygnus.com>
4541 * java/lang/reflect/Method.java (hashCode): Use getName().
4542 (toString): Likewise.
4543 * java/lang/reflect/natMethod.cc (getType): Initialize
4546 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4548 * java/lang/reflect/Field.java (toString): Correct formatting.
4551 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4553 (receive): Streamlined.
4555 2000-08-05 Tom Tromey <tromey@cygnus.com>
4557 * java/io/PrintWriter.java: Merged comments from Classpath.
4558 (printlnUnsynchronized): Removed.
4559 (println()): Print the separator.
4560 (println): Call println(), not printlnUnsynchronized.
4561 (out): Now protected, to match spec.
4563 2000-08-04 Tom Tromey <tromey@cygnus.com>
4565 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4566 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4569 2000-08-03 Warren Levy <warrenl@cygnus.com>
4571 * java/io/ObjectInputStream.java (readFields): Turn off
4572 readDataFromBlock while reading via GetField.
4573 (GetField$1.get(String, Object)): Pass Class of default value to
4575 (getField): Allow for null default values.
4577 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4578 (PutField$1.put): Fixed calls of checkType in most of the put
4579 methods to pass the correct parameter.
4580 (PutField$1.put(String, Object)): Allow for null value arg.
4581 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4584 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4585 typo in spec'ed field name.
4586 (getSerialPersistentFields): Changed spelling of method to match
4587 the correct spelling of the spec'ed field name.
4589 2000-08-03 Tom Tromey <tromey@cygnus.com>
4591 * Makefile.in: Rebuilt.
4592 * Makefile.am (awt_java_source_files): Added new files.
4594 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4596 * Makefile.am: Add new AWT stubs.
4597 * java/awt/Canvas.java: New placeholder class.
4598 * java/awt/Checkbox.java: Ditto.
4599 * java/awt/CheckboxMenuItem.java: Ditto.
4600 * java/awt/Choice.java: Ditto.
4601 * java/awt/Dialog.java: Ditto.
4602 * java/awt/FileDialog.java: Ditto.
4603 * java/awt/List.java: Ditto.
4604 * java/awt/ScrollPane.java: Ditto.
4605 * java/awt/TextField.java: Ditto.
4606 * java/awt/datatransfer/Clipboard.java: Ditto.
4607 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4608 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4609 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4610 Some commented out. Partially implemented.
4611 * java/awt/natToolkit.cc: Removed file.
4613 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4615 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4616 Fixes "make -j" builds.
4617 * Makefile.in: Rebuild.
4619 2000-08-02 Tom Tromey <tromey@cygnus.com>
4621 * Makefile.in: Rebuilt.
4622 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4623 * java/net/natPlainSocketImpl.cc: Include posix.h.
4624 (accept): Use _Jv_select.
4625 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4626 (receive): Use _Jv_select.
4627 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4628 (available): Use _Jv_select.
4629 * java/lang/natSystem.cc: Include posix.h.
4630 (currentTimeMillis): Use _Jv_gettimeofday.
4631 * include/posix.h: New file.
4632 * posix.cc: New file.
4634 * scripts/encodings.pl: New file.
4635 * Makefile.in: Rebuilt.
4636 * Makefile.am (convert_source_files): Added IOConverter.java.
4637 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4639 (getDefaultDecodingClass): Canonicalize default encoding name.
4640 (getEncoder): Likewise.
4641 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4643 (getDefaultDecodingClass): Canonicalize default encoding name.
4644 (getDecoder): Likewise.
4645 * gnu/gcj/convert/IOConverter.java: New file.
4647 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4649 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4650 to match C declaration in ffi.h.
4651 * Makefile.am: Add java/awt/Button.java.
4652 * Makefile.in: Rebuilt.
4654 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4656 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4657 cast of the second argument to `ffi_raw_call' changed to match
4660 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4662 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4663 argument to `ffi_raw_call' changed to match prototype.
4665 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4667 * java/awt/Component.java (toString): Implemented.
4668 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4669 dispatchEvent() to dispatch the event.
4670 (removeImpl): Ditto.
4672 2000-07-30 Anthony Green <green@redhat.com>
4674 * java/awt/Component.java: Add treeLock object.
4675 (getTreeLock): Implement.
4676 (isShowing): Implement.
4678 2000-07-30 Tom Tromey <tromey@cygnus.com>
4680 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4682 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4684 * java/awt/Window.java (addNotify): Wrote.
4685 (addWindowListener): Wrote.
4687 (getWarningString): Wrote.
4688 (processEvent): Wrote.
4689 (processWindowEvent): Wrote.
4690 (removeWindowListener): Wrote.
4691 (show): Call validate(), setVisible().
4695 * java/awt/Toolkit.java (createWindow): Declare.
4697 * java/awt/Frame.java (addNotify): Use getToolkit to find
4700 * java/awt/Component.java (invalidate): Wrote.
4702 (getToolkit): Wrote.
4704 * java/awt/Container.java (addContainerListener): Removed
4706 (removeContainerListener): Likewise.
4708 (add(Component)): Use it.
4709 (add(String,Component)): Likewise.
4710 (add(Component,int)): Likewise.
4711 (add(Component,Object)): Likewise.
4712 (add(Component,Object,int)): Likewise.
4714 (getAlignmentX): Wrote.
4715 (getAlignmentY): Wrote.
4716 (getComponentAt): Wrote.
4717 (getMaximumSize): Wrote.
4718 (invalidate): Wrote.
4719 (list(PrintStream,int)): Wrote.
4720 (list(PrintWriter,int)): Wrote.
4721 (getMinimumSize): Wrote.
4722 (getPreferredSize): Wrote.
4723 (printComponents): Wrote.
4724 (processContainerEvent): Look at containerListener, not
4726 (remove): Added event processing and peer destruction.
4727 (removeAll): Use remove.
4728 (removeNotify): Wrote.
4730 (validateTree): Wrote.
4732 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4733 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4734 * java/awt/Container.java (addNotify): Don't create Container
4736 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4738 2000-07-30 Tom Tromey <tromey@cygnus.com>
4740 * java/awt/Container.java (remove(int)): Wrote.
4741 (remove(Component)): Wrote.
4742 (add(Component)): Wrote.
4743 (add(Component,int)): Wrote.
4745 (addNotify): Set our own peer.
4746 * java/awt/Scrollbar.java (listeners): Changed type.
4747 (Scrollbar): Don't initialize listeners.
4749 (setValue): Call setValues.
4750 (setMinimum): Likewise.
4751 (setMaxPriority): Likewise.
4752 (setVisibleAmount): Likewise.
4754 (setUnitIncrement): Forward to peer.
4755 (setLineIncrement): Call setUnitIncrement.
4756 (setPageIncrement): Call setBlockIncrement.
4757 (setBlockIncrement): Forward to peer.
4758 (addAdjustmentListener): Rewrote.
4759 (removeAdjustmentListener): Rewrote.
4760 (processAdjustmentEvent): Rewrote.
4761 (paramString): Wrote.
4762 * Makefile.in: Rebuilt.
4763 * Makefile.am (awt_java_source_files): Added Button.java.
4764 * java/awt/Button.java: New file.
4765 * java/awt/Toolkit.java (createLabel): Declare.
4766 (createButton): Likewise.
4767 (createScrollbar): Likewise.
4768 (createContainer): Likewise.
4769 * java/awt/Label.java (addNotify): Wrote.
4770 (setAlignment): Call setAlignment in the peer.
4771 (setText): Call setText in the peer.
4773 2000-07-28 Warren Levy <warrenl@cygnus.com>
4775 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4776 NotSerializableException with just the class name.
4778 2000-07-26 Andrew Haley <aph@cygnus.com>
4780 * interpret.cc (continue1): Insert missing break into switch.
4782 2000-07-28 Warren Levy <warrenl@cygnus.com>
4784 * java/io/ObjectStreamException.java: Made constructors protected.
4786 2000-07-27 Tom Tromey <tromey@cygnus.com>
4788 * java/io/OutputStreamWriter.java (close): Only flush if not
4791 2000-07-27 Warren Levy <warrenl@cygnus.com>
4793 * mauve-libgcj: Activated serialization tests.
4794 * gcj/field.h (getModifiers): Mask off unknown flags.
4795 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4796 spurious bits don't cause discrepancies.
4797 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4798 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4799 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4800 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4801 * java/lang/Throwable.java (serialVersionUID): New field.
4802 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4803 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4805 * java/lang/reflect/natMethod.cc: Ditto.
4806 * java/security/Key.java (serialVersionUID): Removed field for now.
4807 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4808 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4810 2000-07-22 Tom Tromey <tromey@cygnus.com>
4812 * java/awt/geom/RectangularShape.java (getPathIterator):
4815 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4817 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4818 stub libjava/java/awt/ColorModel.java which was located in the
4820 * libjava/java/awt/image/ComponentColorModel.java: New file.
4821 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4822 * libjava/java/awt/image/DataBuffer.java: New file.
4823 * libjava/java/awt/image/DataBufferByte.java: New file.
4824 * libjava/java/awt/image/DataBufferInt.java: New file.
4825 * libjava/java/awt/image/DataBufferUShort.java: New file.
4826 * libjava/java/awt/image/DirectColorModel.java: New file.
4827 * libjava/java/awt/image/PackedColorModel.java: New file.
4828 * libjava/java/awt/image/Raster.java: New file.
4829 * libjava/java/awt/image/SampleModel.java: New file.
4830 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4832 * libjava/java/awt/image/IndexColorModel.java: New file.
4833 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4834 java.awt.ColorModel stub.
4836 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4837 * gnu/gcj/util/Buffers.java: New file, utility class.
4839 * libjava/Makefile.am: Updated to include new files.
4840 * libjava/Makefile.in: Rebuilt.
4842 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4844 * java/io/StreamTokenizer.java: Merged with classpath.
4846 2000-07-20 Tom Tromey <tromey@cygnus.com>
4848 * Makefile.in: Rebuilt.
4849 * Makefile.am (awt_java_source_files): Updated for new files.
4850 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4851 * java/awt/Label.java: New file.
4852 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4853 (createIntersection, createUnion, getBounds2D): New methods.
4854 * java/awt/Scrollbar.java: New file.
4855 * java/awt/Shape.java: Updated to 1.2.
4856 * java/awt/geom/AffineTransform.java: New file.
4857 * java/awt/geom/Ellipse2D.java: New file.
4858 * java/awt/geom/NoninvertibleTransformException.java: New file.
4859 * java/awt/geom/PathIterator.java: New file.
4860 * java/awt/geom/Rectangle2D.java: New file.
4861 * java/awt/geom/RectangularShape.java: New file.
4862 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4863 * java/awt/geom/IllegalPathStateException.java: New file.
4865 * scripts/showval.java: New file.
4867 * scripts/classes.pl (scan): Print inner classes properly.
4868 * gcj/javaprims.h: Updated class list.
4870 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4871 initialize String fields for interpreted classes. Fixes bug
4872 reported by Hans Boehm.
4874 * java/io/File.java (getParentFile): New method, from Classpath
4875 via Oskar Liljeblad.
4877 * java/util/Vector.java (remove(Object)): Implemented.
4879 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4881 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4882 zero return from backtrace().
4884 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4886 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4888 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4889 before calling notifyAll().
4891 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4893 Add missing files from last check-in:
4894 * java/awt/image/ImageConsumer.java: New file.
4895 * java/awt/image/ImageProducer.java: New file.
4896 * java/awt/image/ImageObserver.java: New file.
4898 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4900 Merged implementation of java.applet from classpath:
4901 * java/applet/Applet.java: New file.
4902 * java/applet/AppletContext.java: New file.
4903 * java/applet/AppletStub.java: New file.
4904 * java/applet/AudioClip.java: New file.
4906 * Makefile.am: Added new java.applet classes.
4907 * Makefile.in: Rebuilt.
4909 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4912 * java/util/ResourceBundle.java (getLocale): stub.
4913 * Makefile.am: Added new AWT classes.
4914 * Makefile.in: Rebuilt.
4915 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4916 constructors. Fix toString() and paramString().
4917 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4918 * java/awt/CheckboxGroup.java: New class.
4919 * java/awt/ColorModel.java: New class.
4920 * java/awt/Component.java: Added stubs for most methods. Implemented
4922 * java/awt/Container.java: ditto.
4923 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4924 * java/awt/Cursor.java: ditto.
4925 * java/awt/Event.java: Fix paramString().
4926 * java/awt/EventQueue.java: New class. Implemented.
4927 * java/awt/Font.java: Added additional stub methods. Implemented
4929 * java/awt/FontMetrics.java: New class. Stubbed.
4930 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4932 * java/awt/Insets.java: New class. Implemented.
4933 * java/awt/Menu.java: Add new methods. Partially implemented.
4934 * java/awt/MenuItem.java: Add new methods and fields. Partially
4936 * java/awt/MenuShortcut.java: New class. Implemented.
4937 * java/awt/Panel.java: New class. Placeholder.
4938 * java/awt/PopupMenu.java: New class. Stubbed.
4939 * java/awt/Rectangle.java: New class. Implemented.
4940 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4941 * java/awt/event/ActionEvent.java: Implement paramString().
4942 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4943 * java/awt/event/ComponentEvent.java: Implement paramString().
4944 * java/awt/event/ContainerEvent.java: Implement paramString().
4945 * java/awt/event/FocusEvent.java: Implement paramString().
4946 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4947 * java/awt/event/HierarchyBoundsListener.java: New class.
4948 * java/awt/event/HierarchyEvent.java: New class.
4949 * java/awt/event/HierarchyListener.java: New class.
4950 * java/awt/event/InputMethodEvent.java: Implement paramString().
4951 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4952 exception if !catchExceptions.
4953 * java/awt/event/ItemEvent.java: Implement paramString().
4954 * java/awt/event/KeyEvent.java: Implement paramString().
4955 * java/awt/event/MouseEvent.java: Implement paramString().
4956 * java/awt/event/PaintEvent.java: Implement paramString().
4957 * java/awt/event/TextEvent.java: Implement paramString().
4958 * java/awt/event/WindowEvent.java: Implement paramString().
4960 AWT Peer interfaces:
4961 * java/awt/peer/ButtonPeer.java: New file.
4962 * java/awt/peer/ListPeer.java: New file.
4963 * java/awt/peer/CanvasPeer.java: New file.
4964 * java/awt/peer/MenuBarPeer.java: New file.
4965 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4966 * java/awt/peer/MenuComponentPeer.java: New file.
4967 * java/awt/peer/CheckboxPeer.java: New file.
4968 * java/awt/peer/MenuItemPeer.java: New file.
4969 * java/awt/peer/ChoicePeer.java: New file.
4970 * java/awt/peer/MenuPeer.java: New file.
4971 * java/awt/peer/ComponentPeer.java: Implemented.
4972 * java/awt/peer/PanelPeer.java: New file.
4973 * java/awt/peer/ContainerPeer.java: Implemented.
4974 * java/awt/peer/PopupMenuPeer.java: New file.
4975 * java/awt/peer/DialogPeer.java: New file.
4976 * java/awt/peer/ScrollPanePeer.java: New file.
4977 * java/awt/peer/FileDialogPeer.java: New file.
4978 * java/awt/peer/ScrollbarPeer.java: New file.
4979 * java/awt/peer/FontPeer.java: New file.
4980 * java/awt/peer/TextAreaPeer.java: New file.
4981 * java/awt/peer/FramePeer.java: Implemented.
4982 * java/awt/peer/TextComponentPeer.java: New file.
4983 * java/awt/peer/LabelPeer.java: New file.
4984 * java/awt/peer/TextFieldPeer.java: New file.
4985 * java/awt/peer/LightweightPeer.java: New file.
4986 * java/awt/peer/WindowPeer.java: Implemented.
4988 2000-07-06 Tom Tromey <tromey@cygnus.com>
4990 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4991 Initialize static final String fields.
4993 2000-07-03 Tom Tromey <tromey@cygnus.com>
4995 * java/io/PrintWriter.java (print): Call write(String), not
4996 print(String). See PR libgcj/277.
4997 (print(String)): Use write, not out.write.
4999 2000-06-30 Tom Tromey <tromey@cygnus.com>
5001 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5003 2000-06-27 Andrew Haley <aph@cygnus.com>
5005 * java/io/File.java (createTempFile): Close the FileDescriptor
5006 used to create a temp file. Fixes some of PR 203.
5007 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5008 collection if we run out of file handles.
5010 2000-06-28 Warren Levy <warrenl@cygnus.com>
5012 * gnu/java/security/provider/Gnu.java: New file.
5013 * gnu/java/security/provider/SHA.java: New file.
5014 * gnu/java/security/provider/SHA1PRNG.java: New file.
5015 * Makefile.am: Added the above files.
5016 * Makefile.in: Rebuilt.
5018 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5020 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5022 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5023 (destroyed_flag): Removed.
5024 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5025 (activeCount): Added spec note.
5027 2000-06-27 Warren Levy <warrenl@cygnus.com>
5029 * java/security/Principal.java: New file.
5030 * Makefile.am: Added Principal.java.
5031 * Makefile.in: Rebuilt.
5033 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5035 * java/awt/event/MouseEvent.java: Fixed coordinate space
5038 2000-06-27 Tom Tromey <tromey@cygnus.com>
5040 * java/io/PushbackInputStream.java (read): If there are characters
5041 in the buffer, don't also call super.read().
5042 * java/io/PushbackReader.java (read): If there are characters in
5043 the buffer, don't also call super.read().
5045 * java/lang/Double.java (valueOf): Call parseDouble().
5047 2000-06-26 Warren Levy <warrenl@cygnus.com>
5049 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5050 (newVal): Renamed to newValue.
5051 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5052 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5053 (revokeNow): Renamed to invalidateRefs.
5054 * java/io/OptionalDataException.java: Updated FIXME.
5055 (eof): New placeholder field.
5057 * java/io/WriteAbortedException.java (message): Made transient.
5058 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5059 * java/lang/Throwable.java (stackTrace): Made transient.
5060 * java/net/InetAddress.java: Made Serializable.
5061 * java/security/KeyPair.java: Made Serializable.
5062 * java/security/Provider.java: Replaced with Classpath version that
5063 implements serialization and proper methods.
5064 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5065 (limits): Renamed to choiceLimits.
5067 2000-06-24 Tom Tromey <tromey@cygnus.com>
5069 * java/lang/natDouble.cc (parseDouble): Renamed from
5071 * java/lang/Double.java (parseDouble): Renamed from
5072 doubleValueOf. Now public.
5074 2000-06-23 Andrew Haley <aph@cygnus.com>
5076 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5077 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5079 2000-06-23 Tom Tromey <tromey@cygnus.com>
5081 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5082 * java/lang/natDouble.cc: Always include <alloca.h>.
5083 Fix for PR libgcj/267.
5085 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5087 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5088 comply with classpath VM spec.
5089 (add(Group)): Rename to addGroup().
5090 * java/lang/Thread.java (Thread): Use addThread().
5091 * java/lang/natThread.cc (finish_): Use removeThread().
5093 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5095 * java/lang/ThreadGroup.java: Merged with classpath.
5096 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5097 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5099 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5100 ThreadGroup.root if Thread.currentThread is null. Honour the
5101 ThreadGroup's max priority setting.
5103 2000-06-18 Tom Tromey <tromey@cygnus.com>
5105 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5106 returned class. For PR gcj/260.
5108 2000-06-16 Tom Tromey <tromey@cygnus.com>
5110 Fix for PR libgcj/261:
5111 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5113 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5114 argument. (This is a patch from long ago that somehow went
5117 2000-06-15 Tom Tromey <tromey@cygnus.com>
5119 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5123 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5125 Fix for PR java.lang/258:
5126 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5127 JV_STATE_DONE, to prevent accidental initialization.
5128 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5129 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5130 interface or an abstract class. Remove redundant initializeClass calls.
5131 Remove duplicate if_idt test.
5132 (_Jv_InterfaceAssignableFrom): New function.
5133 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5135 2000-05-31 Tom Tromey <tromey@cygnus.com>
5137 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5138 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5139 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5140 (NUM_OBJECT_METHODS): New define.
5141 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5142 `array_vtable' parameter. Added assertion.
5143 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5146 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5148 * gcj/cni.h: Include <string.h>.
5149 * defineclass.cc: Include <alloca.h>.
5150 * interpret.cc: Ditto.
5151 * gij.cc: Include <stdlib.h>.
5153 2000-05-30 Tom Tromey <tromey@cygnus.com>
5155 * include/name-finder.h: Include <sys/wait.h>.
5156 (_Jv_name_finder::pid): Now of type `pid_t'.
5157 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5158 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5161 2000-05-24 Warren Levy <warrenl@cygnus.com>
5163 * java/io/ObjectOutputStream.java (writeObject): Use component type
5164 when writing arrays.
5167 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5169 Fix for PR libgcj/226:
5170 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5171 since this is an installed header.
5173 Fix for PR libgcj/228:
5174 * java/util/zip/ZipFile (getInputStream): Create inflater with
5177 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5178 with DataFormatException.
5180 2000-05-20 Tom Tromey <tromey@cygnus.com>
5182 * Makefile.in: Rebuilt.
5183 * Makefile.am (hack1): Removed.
5184 (awto_files): Likewise.
5185 (libgcjawt_la_SOURCES): Likewise.
5186 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5187 (libgcjawt_la_DEPENDENCIES): Likewise.
5188 (libgcjawt_la_LIBADD): Likewise.
5189 (libgcjawt_la_LDFLAGS): Likewise.
5190 (libgcjawt_la_LINK): Likewise.
5191 ($(awt_java_source_files:.java=.class)): Likewise.
5192 (libgcj.zip): Don't depend on AWT files.
5193 (MOSTLYCLEANFILES): Don't include AWT files.
5194 ($(awto_files)): Removed.
5195 (nat_headers): Removed AWT files.
5196 (cond_awt_java_source_files): Removed.
5197 (ordinary_java_source_files): Added awt_java_source_files.
5198 * libgcj.spec.in (*lib): Removed -lgcjawt.
5199 * configure: Rebuilt.
5200 * configure.in: Removed --enable-java-awt option.
5202 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5204 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5205 (ZipEntry): Copy the `name' field.
5206 (clone): Implement JDK1.2 method.
5207 (setCompressedSize): ditto.
5210 2000-05-19 Tom Tromey <tromey@cygnus.com>
5212 * java/io/BufferedWriter.java: Merged with Classpath.
5213 * java/io/BufferedOutputStream.java: Merged with Classpath.
5215 2000-05-16 Andrew Haley <aph@cygnus.com>
5217 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5218 build_ia64_frame_state.
5219 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5222 2000-05-15 Warren Levy <warrenl@cygnus.com>
5224 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5225 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5226 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5227 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5228 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5229 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5230 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5231 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5232 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5233 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5234 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5235 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5236 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5237 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5238 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5239 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5240 * gnu/gcj/io/NullOutputStream.java: Removed.
5241 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5242 * gnu/gcj/lang/ArrayHelper.java: Removed.
5243 * gnu/gcj/lang/ClassHelper.java: Removed.
5244 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5246 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5247 * gnu/java/beans/EmptyBeanInfo.java: New file.
5248 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5249 * gnu/java/beans/IntrospectionIncubator.java: New file.
5250 * gnu/java/beans/editors/ColorEditor.java: New file.
5251 * gnu/java/beans/editors/FontEditor.java: New file.
5252 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5253 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5254 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5255 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5256 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5257 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5258 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5259 * gnu/java/beans/editors/StringEditor.java: New file.
5260 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5261 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5262 * gnu/java/io/NullOutputStream.java: New file.
5263 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5264 * gnu/java/lang/ArrayHelper.java: New file.
5265 * gnu/java/lang/ClassHelper.java: New file.
5266 * gnu/java/lang/reflect/TypeSignature.java: New file.
5268 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5269 namespace back to the original Classpath gnu/java namespace.
5270 * Makefile.in: Rebuilt.
5272 * java/beans/Beans.java: Namespace change.
5273 * java/beans/EventSetDescriptor.java: Namespace change.
5274 * java/beans/Introspector.java: Namespace change.
5275 * java/beans/PropertyEditorManager.java: Namespace change.
5276 * java/io/ObjectInputStream.java: Namespace change.
5277 * java/io/ObjectOutputStream.java: Namespace change.
5278 * java/io/ObjectStreamClass.java: Namespace change.
5279 * java/io/ObjectStreamField.java: Namespace change.
5281 2000-04-21 Warren Levy <warrenl@cygnus.com>
5283 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5284 now that compiler patch is available.
5285 Removed unneeded System.loadLibrary.
5286 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5287 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5289 2000-04-19 Andrew Haley <aph@cygnus.com>
5291 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5292 and target classes have been initialized.
5294 2000-04-19 Andrew Haley <aph@cygnus.com>
5296 * java/lang/String.java: implement Serializable, Comparable.
5297 (compareTo (Object)): New method.
5299 2000-04-19 Warren Levy <warrenl@cygnus.com>
5301 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5302 instead of getField to retrieve non-public field.
5303 (getSerialPersistantFields): Ditto.
5305 2000-04-18 Warren Levy <warrenl@cygnus.com>
5307 * mauve-libgcj: Turned off object serialization tests temporarily
5308 due to compiler error.
5310 2000-04-17 Warren Levy <warrenl@cygnus.com>
5312 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5313 to avoid build problem.
5315 * mauve-libgcj: Turned on object serialization tests.
5317 2000-04-17 Tom Tromey <tromey@cygnus.com>
5319 * libgcj.spec.in (*lib): Added -lgcjawt.
5321 2000-04-17 Andrew Haley <aph@cygnus.com>
5323 * Makefile.am: Add new files:
5324 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5326 * Makefile.in: Rebuilt.
5328 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5329 interface that has no implementations.
5330 Check for an attempt to assign an abstract class to an interface.
5332 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5333 if we fail to find MessageDigest.getInstance ("SHA").
5335 * gnu/gcj/io/SimpleSHSStream.java: New file.
5336 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5337 * gnu/gcj/io/shs.cc: New file.
5338 * gnu/gcj/io/shs.h: new file.
5340 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5343 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5344 punctuation from the classname of an array element.
5346 * gcj/javaprims.h: Add SimpleDigestStream.
5348 2000-04-17 Andrew Haley <aph@cygnus.com>
5350 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5351 to getPrivateField for superclasses.
5353 2000-04-14 Andrew Haley <aph@cygnus.com>
5355 * Makefile.am: Add new files:
5356 java/io/ObjectOutputStream$PutField.h,
5357 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5358 java/io/natObjectOutputStream.cc
5359 * Makefile.in: Rebuilt.
5360 * gcj/Makefile.in: Rebuilt.
5361 * include/Makefile.in: Rebuilt.
5362 * java/lang/Class.h (getPrivateField): New method.
5363 (getPrivateMethod): Ditto.
5364 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5365 and java::io::ObjectStreamClass our friends.
5366 * java/lang/natClass.cc (getPrivateField): New method.
5367 (getPrivateMethod): Ditto.
5368 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5369 * gcj/javaprims.h: Add serialization classes.
5370 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5371 (setByteField): Ditto.
5372 (setCharField): Ditto.
5373 (setDoubleField): Ditto.
5374 (setFloatField): Ditto.
5375 (setIntField): Ditto.
5376 (setLongField): Ditto.
5377 (setShortField): Ditto.
5378 (setObjectField): Ditto.
5379 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5381 (getByteField): Ditto.
5382 (getCharField): Ditto.
5383 (getDoubleField): Ditto.
5384 (getFloatField): Ditto.
5385 (getIntField): Ditto.
5386 (getLongField): Ditto.
5387 (getShortField): Ditto.
5388 (getObjectField): Ditto.
5389 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5391 (getSerialPersistantFields): Ditto.
5392 (getDefinedSUID): Ditto.
5393 * java/io/natObjectOutputStream.cc: New file.
5394 * java/io/natObjectInputStream.cc: New file.
5396 2000-04-13 Warren Levy <warrenl@cygnus.com>
5398 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5399 problems. Revert to previous version to reproduce and when fixed.
5401 2000-04-13 Warren Levy <warrenl@cygnus.com>
5403 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5404 * gnu/gcj/io/NullOutputStream.java: New file.
5405 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5406 * java/io/BlockDataException.java: New file.
5407 * java/io/Externalizable.java: New file.
5408 * java/io/InvalidClassException.java: New file.
5409 * java/io/InvalidObjectException.java: New file.
5410 * java/io/NotActiveException.java: New file.
5411 * java/io/NotSerializableException.java: New file.
5412 * java/io/ObjectInput.java: New file.
5413 * java/io/ObjectInputStream.java: New file.
5414 * java/io/ObjectInputValidation.java: New file.
5415 * java/io/ObjectOutput.java: New file.
5416 * java/io/ObjectOutputStream.java: New file.
5417 * java/io/ObjectStreamClass.java: New file.
5418 * java/io/ObjectStreamConstants.java: New file.
5419 * java/io/ObjectStreamField.java: New file.
5420 * java/io/Replaceable.java: New file.
5421 * java/io/Resolvable.java: New file.
5422 * java/io/SerializablePermission.java: New file.
5423 * java/io/WriteAbortedException.java: New file.
5424 * java/security/BasicPermission.java: New file.
5425 * java/security/DigestOutputStream.java: New file.
5426 * java/security/Guard.java: New file.
5427 * java/security/Permission.java: New file.
5428 * java/security/PermissionCollection.java: New file.
5429 * Makefile.am: Added above files.
5430 * Makefile.in: Rebuilt.
5432 * java/beans/Beans.java (instantiate): Activated serialization code.
5433 * java/lang/SecurityManager.java (checkPermission): New method.
5435 2000-04-12 Warren Levy <warrenl@cygnus.com>
5437 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5438 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5439 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5440 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5441 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5442 * gnu/gcj/beans/editors/FontEditor.java: New file.
5443 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5444 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5445 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5446 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5447 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5448 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5449 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5450 * gnu/gcj/beans/editors/StringEditor.java: New file.
5451 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5452 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5453 * gnu/gcj/lang/ArrayHelper.java: New file.
5454 * gnu/gcj/lang/ClassHelper.java: New file.
5455 * java/beans/BeanDescriptor.java: New file.
5456 * java/beans/BeanInfo.java: New file.
5457 * java/beans/Beans.java: New file.
5458 * java/beans/Customizer.java: New file.
5459 * java/beans/DesignMode.java: New file.
5460 * java/beans/EventSetDescriptor.java: New file.
5461 * java/beans/FeatureDescriptor.java: New file.
5462 * java/beans/IndexedPropertyDescriptor.java: New file.
5463 * java/beans/IntrospectionException.java: New file.
5464 * java/beans/Introspector.java: New file.
5465 * java/beans/MethodDescriptor.java: New file.
5466 * java/beans/ParameterDescriptor.java: New file.
5467 * java/beans/PropertyChangeEvent.java: New file.
5468 * java/beans/PropertyChangeListener.java: New file.
5469 * java/beans/PropertyChangeSupport.java: New file.
5470 * java/beans/PropertyDescriptor.java: New file.
5471 * java/beans/PropertyEditor.java: New file.
5472 * java/beans/PropertyEditorManager.java: New file.
5473 * java/beans/PropertyEditorSupport.java: New file.
5474 * java/beans/PropertyVetoException.java: New file.
5475 * java/beans/SimpleBeanInfo.java: New file.
5476 * java/beans/VetoableChangeListener.java: New file.
5477 * java/beans/VetoableChangeSupport.java: New file.
5478 * java/beans/Visibility.java: New file.
5479 * java/beans/beancontext/BeanContext.java: New file.
5480 * java/beans/beancontext/BeanContextChild.java: New file.
5481 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5482 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5483 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5484 * java/beans/beancontext/BeanContextEvent.java: New file.
5485 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5486 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5487 * java/beans/beancontext/BeanContextProxy.java: New file.
5488 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5490 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5491 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5493 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5494 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5496 * java/beans/beancontext/BeanContextServices.java: New file.
5497 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5498 * java/util/AbstractCollection.java: New file.
5499 * java/util/AbstractList.java: New file.
5500 * java/util/Arrays.java: New file.
5501 * Makefile.am: Added above files.
5502 * Makefile.in: Rebuilt.
5504 2000-04-11 Warren Levy <warrenl@cygnus.com>
5506 * java/awt/AWTError.java: New file.
5507 * java/awt/AWTEvent.java: New file.
5508 * java/awt/AWTException.java: New file.
5509 * java/awt/ActiveEvent.java: New file.
5510 * java/awt/Adjustable.java: New file.
5511 * java/awt/BorderLayout.java: New file.
5512 * java/awt/Color.java: New file.
5513 * java/awt/Component.java: New file.
5514 * java/awt/Container.java: New file.
5515 * java/awt/Dimension.java: New file.
5516 * java/awt/Event.java: New file.
5517 * java/awt/Font.java: New file.
5518 * java/awt/Frame.java: New file.
5519 * java/awt/Graphics.java: New file.
5520 * java/awt/IllegalComponentStateException.java: New file.
5521 * java/awt/Image.java: New file.
5522 * java/awt/ItemSelectable.java: New file.
5523 * java/awt/LayoutManager.java: New file.
5524 * java/awt/LayoutManager2.java: New file.
5525 * java/awt/Menu.java: New file.
5526 * java/awt/MenuBar.java: New file.
5527 * java/awt/MenuComponent.java: New file.
5528 * java/awt/MenuContainer.java: New file.
5529 * java/awt/MenuItem.java: New file.
5530 * java/awt/Paint.java: New file.
5531 * java/awt/PaintContext.java: New file.
5532 * java/awt/Point.java: New file.
5533 * java/awt/Rectangle.java: New file.
5534 * java/awt/Shape.java: New file.
5535 * java/awt/TextArea.java: New file.
5536 * java/awt/TextComponent.java: New file.
5537 * java/awt/Toolkit.java: New file.
5538 * java/awt/Transparency.java: New file.
5539 * java/awt/Window.java: New file.
5540 * java/awt/natToolkit.cc: New file.
5541 * java/awt/event/AWTEventListener.java: New file.
5542 * java/awt/event/ActionEvent.java: New file.
5543 * java/awt/event/ActionListener.java: New file.
5544 * java/awt/event/AdjustmentEvent.java: New file.
5545 * java/awt/event/AdjustmentListener.java: New file.
5546 * java/awt/event/ComponentAdapter.java: New file.
5547 * java/awt/event/ComponentEvent.java: New file.
5548 * java/awt/event/ComponentListener.java: New file.
5549 * java/awt/event/ContainerAdapter.java: New file.
5550 * java/awt/event/ContainerEvent.java: New file.
5551 * java/awt/event/ContainerListener.java: New file.
5552 * java/awt/event/FocusAdapter.java: New file.
5553 * java/awt/event/FocusEvent.java: New file.
5554 * java/awt/event/FocusListener.java: New file.
5555 * java/awt/event/InputEvent.java: New file.
5556 * java/awt/event/InputMethodEvent.java: New file.
5557 * java/awt/event/InputMethodListener.java: New file.
5558 * java/awt/event/InvocationEvent.java: New file.
5559 * java/awt/event/ItemEvent.java: New file.
5560 * java/awt/event/ItemListener.java: New file.
5561 * java/awt/event/KeyAdapter.java: New file.
5562 * java/awt/event/KeyEvent.java: New file.
5563 * java/awt/event/KeyListener.java: New file.
5564 * java/awt/event/MouseAdapter.java: New file.
5565 * java/awt/event/MouseEvent.java: New file.
5566 * java/awt/event/MouseListener.java: New file.
5567 * java/awt/event/MouseMotionAdapter.java: New file.
5568 * java/awt/event/MouseMotionListener.java: New file.
5569 * java/awt/event/PaintEvent.java: New file.
5570 * java/awt/event/TextEvent.java: New file.
5571 * java/awt/event/TextListener.java: New file.
5572 * java/awt/event/WindowAdapter.java: New file.
5573 * java/awt/event/WindowEvent.java: New file.
5574 * java/awt/event/WindowListener.java: New file.
5575 * java/awt/geom/Dimension2D.java: New file.
5576 * java/awt/geom/Point2D.java: New file.
5577 * java/awt/peer/ComponentPeer.java: New file.
5578 * java/awt/peer/ContainerPeer.java: New file.
5579 * java/awt/peer/FramePeer.java: New file.
5580 * java/awt/peer/WindowPeer.java: New file.
5581 * java/util/Collection.java: New file.
5582 * java/util/Comparator.java: New file.
5583 * java/util/Iterator.java: New file.
5584 * java/util/List.java: New file.
5585 * java/util/ListIterator.java: New file.
5586 * Makefile.am: Added above files.
5587 * Makefile.in: Rebuilt.
5589 2000-04-10 Warren Levy <warrenl@cygnus.com>
5591 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5592 * java/lang/FirstThread.java: Ditto.
5593 * java/lang/StringBuffer.java: Ditto.
5594 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5596 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5597 Special case handled in java.math.BigInteger.
5598 * java/math/BigInteger.java (divide): Handle the special case when
5599 dividing by 1 and the high bit of the dividend is set.
5600 (setShiftRight): Handle case when count == 0.
5602 2000-04-05 Andrew Haley <aph@cygnus.com>
5604 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5607 2000-04-05 Andrew Haley <aph@cygnus.com>
5609 * sysdep/ia64.c (rse_address_add): Delete.
5610 (IS_NaT_COLLECTION_ADDR): Delete.
5611 (ia64_backtrace_helper): check for null unwind_info.
5613 * sysdep/ia64-frame.h: add calc_caller_bsp.
5615 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5618 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5619 (_Jv_remI): Likewise.
5620 (_Jv_divJ): Likewise.
5621 (_Jv_remJ): Likewise.
5623 * interpret.cc (continue1): Use divide subroutines to guarantee
5624 correct Java standard behaviour.
5625 Floating-point division should not abort; make it so.
5627 2000-03-29 Tom Tromey <tromey@cygnus.com>
5629 * configure: Rebuilt.
5630 * configure.in: Test against `libgcj_sjlj', not
5631 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5632 to be set even when using sjlj.
5634 2000-03-24 Andrew Haley <aph@cygnus.com>
5636 * Makefile.am: Add file addr2name.awk.
5637 * Makefile.in: Rebuilt.
5638 * addr2name.awk: New file.
5639 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5641 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5644 2000-03-22 Andrew Haley <aph@cygnus.com>
5646 * configure.host: Add -funwind-tables for IA64.
5647 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5648 * Makefile.in: Rebuilt.
5649 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5650 * sysdep/ia64.c: New file.
5651 * sysdep/ia64-frame.h: New file.
5652 * configure.in: Add sysdep/ia64.c for ia64.
5653 * configure: Rebuilt.
5655 2000-03-17 Andrew Haley <aph@cygnus.com>
5657 * java/lang/natString.cc: Remove `register' keyword.
5658 interpret.cc: ditto.
5660 2000-03-16 Andrew Haley <aph@cygnus.com>
5662 * configure.host (ia64): Enable interpreter.
5664 2000-03-14 Hans Boehm <boehm@acm.org>
5666 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5668 2000-03-14 Andrew Haley <aph@cygnus.com>
5670 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5673 2000-03-10 Andrew Haley <aph@cygnus.com>
5675 * java/lang/ieeefp.h: Import latest version from fdlibm.
5677 2000-03-14 Andrew Haley <aph@cygnus.com>
5679 * prims.cc (_Jv_ThrowSignal): New function.
5680 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5682 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5683 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5684 * include/ppc-signal.h: New file.
5686 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5688 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5689 * java/lang/natThread.java (initialize_native): Cast `data' to
5691 * gnu/gcj/RawData.java: Clarify documentation.
5693 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5694 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5695 `jarFile', not `jarFileURL'.
5697 2000-05-15 Andrew Haley <aph@cygnus.com>
5699 * include/ppc-signal.h: New file.
5701 2000-05-11 Tom Tromey <tromey@cygnus.com>
5703 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5704 file headers, don't include `size' in the skip call.
5706 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5708 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5709 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5711 (replace): Reimplemented. Fix javadoc.
5712 (reverse): Call ensureCapacity_unsynchronized().
5713 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5715 (replace): Calculate length for arraycopy() correctly.
5717 2000-05-09 Tom Tromey <tromey@cygnus.com>
5719 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5721 (insert(int,char[],int,int): New method.
5722 (delete): New method from Classpath.
5723 (deleteCharAt): Likewise.
5724 (substring): Likewise.
5725 (shared): No longer private.
5726 Added JavaDoc comments from Classpath.
5727 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5730 2000-05-07 Tom Tromey <tromey@cygnus.com>
5732 * Makefile.in: Rebuilt.
5733 * Makefile.am (LIBLINK): New macro.
5734 (libgcj_la_LINK): Use it.
5735 (libgcjawt_la_LINK): Likewise.
5737 2000-05-06 Tom Tromey <tromey@cygnus.com>
5739 * Makefile.in: Rebuilt.
5740 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5742 2000-05-05 Tom Tromey <tromey@cygnus.com>
5744 Fix for PR libgcj/220:
5745 * Makefile.in: Rebuilt.
5746 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5747 (jv_convert_LDFLAGS): Likewise.
5748 (libgcj_la_LDFLAGS): Likewise.
5749 (GCJLINK): New macro.
5750 (jv_convert_LINK): Use it.
5751 (gij_LINK): Likewise.
5752 (libgcj_la_LINK): New macro.
5753 (libgcjawt_la_LINK): Likewise.
5755 2000-05-04 Tom Tromey <tromey@cygnus.com>
5757 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5759 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5763 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5765 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5766 (_Jv_IsAssignableFrom): Ditto.
5767 (_Jv_IsInstanceOf): Ditto.
5768 (_Jv_CheckCast): Ditto.
5769 (_Jv_CheckArrayStore): Ditto.
5770 * java/lang/Class.h (_Jv_InitClass): Ditto.
5771 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5776 (_Jv_MonitorExit): Ditto.
5777 * boehm.cc (_Jv_MarkObj): Ditto.
5778 (_Jv_MarkObj): Ditto.
5779 (_Jv_MarkArray): Ditto.
5780 * prims.cc (_Jv_AllocObject): Ditto.
5781 (_Jv_NewObjectArray): Ditto.
5782 (_Jv_NewPrimArray): Ditto.
5783 (_Jv_Malloc): Ditto.
5784 (_Jv_Realloc): Ditto.
5785 (_Jv_MallocUnchecked): Ditto.
5791 2000-05-04 Tom Tromey <tromey@cygnus.com>
5793 * java/util/Locale.java (Locale): Don't explicitly check for
5795 * java/util/Hashtable.java (containsKey): Don't explicitly check
5798 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5800 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5802 * java/text/StringCharacterIterator.java
5803 (StringCharacterIterator): Don't check for null.
5804 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5806 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5807 check for null pointer.
5808 (leaveGroup): Likewise.
5809 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5811 (setData): Likewise.
5812 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5815 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5817 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5818 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5819 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5820 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5821 -rpath for in-gcc builds.
5822 * Makefile.in: Rebuilt.
5824 2000-04-28 Tom Tromey <tromey@cygnus.com>
5826 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5829 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5831 * libjava/java/lang/String.java (toString): Remove `final' hack.
5833 2000-04-05 Tom Tromey <tromey@cygnus.com>
5835 Runtime support for PR gcj/2:
5836 * prims.cc (_Jv_ThrowNullPointerException): New function.
5837 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5839 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5841 * prims.cc (_Jv_NewObjectArray): Fix typo.
5843 2000-04-26 Tom Tromey <tromey@cygnus.com>
5845 * Makefile.in: Rebuilt.
5846 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5848 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5850 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5853 2000-04-22 Anthony Green <green@cygnus.com>
5855 * include/jvm.h (__builtin_expect): Define as unused for now.
5856 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5860 (_Jv_MonitorExit): Ditto.
5861 * boehm.cc (_Jv_MarkObj): Ditto.
5862 (_Jv_MarkObj): Ditto.
5863 (_Jv_MarkArray): Ditto.
5864 (_Jv_AllocBytes): Ditto.
5865 * prims.cc (_Jv_AllocObject): Ditto.
5866 (_Jv_NewObjectArray): Ditto.
5867 (_Jv_NewPrimArray): Ditto.
5868 (_Jv_Malloc): Ditto.
5869 (_Jv_Realloc): Ditto.
5870 (_Jv_MallocUnchecked): Ditto.
5876 * include/Makefile.in: Rebuilt.
5877 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5879 2000-04-21 Tom Tromey <tromey@cygnus.com>
5881 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5882 Yet another new version from Classpath.
5884 Fix for PR libgcj/15:
5885 * java/util/natGregorianCalendar.cc (_REENTRANT,
5886 _POSIX_PTHREAD_SEMANTICS): Don't define.
5887 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5888 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5890 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5892 * configure: Rebuilt.
5893 * configure.in: If using POSIX threads, define _REENTRANT if
5894 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5895 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5897 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5898 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5899 version from Classpath.
5901 Fix for PR libgcj/213:
5902 * Makefile.in: Rebuilt.
5903 * Makefile.am (gij_SOURCES): Added gij.cc.
5904 (EXTRA_gij_SOURCES): Removed.
5905 (gij_LDADD): Removed gij.lo.
5906 (gij_DEPENDENCIES): Likewise.
5907 ($(gij_OBJECTS)): Depend on nat_headers.
5909 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5910 `setURL', not `url.set'.
5912 2000-04-20 Tom Tromey <tromey@cygnus.com>
5914 Fix for PR java.io/204:
5915 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5916 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5919 Fix for PR libgcj/212:
5920 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5921 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5922 * java/lang/Class.h (_Jv_word): Declare.
5924 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5926 2000-04-19 Tom Tromey <tromey@cygnus.com>
5928 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5929 doesn't have a loader.
5931 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5933 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5934 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5936 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5938 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5940 (available): Initialize `where' to prevent bogus compiler warning.
5942 2000-04-12 Tom Tromey <tromey@cygnus.com>
5944 * java/lang/natString.cc (intern): Temporarily disable finalizer
5947 * java/lang/natString.cc (unintern): Added `obj' argument.
5948 (intern): Register finalizer for string.
5949 * java/lang/String.java (unintern): Now static; added obj
5952 2000-04-11 Tom Tromey <tromey@cygnus.com>
5954 * java/util/Vector.java (VectorEnumeration): Now `final'.
5955 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5956 (HashtableEnumeration): Likewise.
5957 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5958 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5960 2000-04-10 Warren Levy <warrenl@cygnus.com>
5962 * java/io/ObjectStreamException.java: New file.
5963 * java/io/OptionalDataException.java: New file.
5964 * java/io/StreamCorruptedException.java: New file.
5965 * java/math/BigDecimal.java: New file.
5966 * java/sql/CallableStatement.java: New file.
5967 * java/sql/Connection.java: New file.
5968 * java/sql/DataTruncation.java: New file.
5969 * java/sql/DatabaseMetaData.java: New file.
5970 * java/sql/Date.java: New file.
5971 * java/sql/Driver.java: New file.
5972 * java/sql/DriverManager.java: New file.
5973 * java/sql/DriverPropertyInfo.java: New file.
5974 * java/sql/PreparedStatement.java: New file.
5975 * java/sql/ResultSet.java: New file.
5976 * java/sql/ResultSetMetaData.java: New file.
5977 * java/sql/SQLException.java: New file.
5978 * java/sql/SQLWarning.java: New file.
5979 * java/sql/Statement.java: New file.
5980 * java/sql/Time.java: New file.
5981 * java/sql/Timestamp.java: New file.
5982 * java/sql/Types.java: New file.
5983 * Makefile.am: Added above new files.
5984 * Makefile.in: Rebuilt.
5986 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5987 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5988 DatagramSocket constructor instead of null.
5990 2000-04-08 Anthony Green <green@cygnus.com>
5992 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5995 2000-04-08 Anthony Green <green@cygnus.com>
5997 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5998 (_Jv_MutexUnlock): Ditto.
5999 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6000 (_Jv_MutexUnlock): Ditto.
6002 2000-04-08 Anthony Green <green@cygnus.com>
6004 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6005 (ensureCapacity_unsynchronized): New private method.
6006 (append): Use ensureCapacity_unsynchronized.
6008 2000-04-08 Tom Tromey <tromey@cygnus.com>
6010 * Makefile.in: Rebuilt.
6011 * Makefile.am (awt_java_source_files): Added new files.
6012 * java/awt/IllegalComponentStateException.java: New file.
6013 * java/awt/ItemSelectable.java: New file.
6014 * java/awt/event/WindowEvent.java: Finished.
6015 * java/awt/event/TextEvent.java: Finished.
6016 * java/awt/event/ContainerEvent.java: New file.
6017 * java/awt/Component.java (getX, getY): New methods.
6018 * java/awt/event/PaintEvent.java: New file.
6019 * java/awt/event/MouseEvent.java: New file.
6020 * java/awt/ActiveEvent.java: New file.
6021 * java/awt/event/KeyEvent.java: Finished.
6022 * java/awt/event/ItemEvent.java: New file.
6023 * java/awt/Adjustable.java: New file.
6024 * java/awt/event/InputMethodEvent.java: New file.
6025 * java/awt/event/InputEvent.java: Finished.
6026 * java/awt/event/FocusEvent.java: New file.
6027 * java/awt/event/MouseMotionAdapter.java: New file.
6028 * java/awt/event/MouseAdapter.java: New file.
6029 * java/awt/event/KeyAdapter.java: New file.
6030 * java/awt/event/FocusAdapter.java: New file.
6031 * java/awt/event/ContainerAdapter.java: New file.
6032 * java/awt/event/ComponentEvent.java: Finished.
6033 * java/awt/event/AdjustmentEvent.java: New file.
6034 * java/awt/event/ComponentAdapter.java: New file.
6035 * java/awt/event/ActionEvent.java: Finished.
6036 * java/awt/event/MouseMotionListener.java: New file.
6037 * java/awt/event/MouseListener.java: New file.
6038 * java/awt/event/ItemListener.java: New file.
6039 * java/awt/event/InputMethodListener.java: New file.
6040 * java/awt/event/ContainerListener.java: New file.
6041 * java/awt/event/FocusListener.java: New file.
6042 * java/awt/event/ComponentListener.java: New file.
6043 * java/awt/event/AWTEventListener.java: New file.
6044 * java/awt/event/AdjustmentListener.java: New file.
6046 2000-04-08 Anthony Green <green@cygnus.com>
6048 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6049 check when we have to.
6051 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6054 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6057 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6058 inline hasMoreElements.
6060 2000-04-05 Tom Tromey <tromey@cygnus.com>
6062 * configure: Rebuilt.
6063 * configure.in: Recognize --enable-java-awt.
6064 (AWT): New conditional.
6065 * Makefile.in: Rebuilt.
6066 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6068 (libgcjawt_la_SOURCES): New macro.
6069 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6070 (libgcjawt_la_DEPENDENCIES): Likewise.
6071 (libgcjawt_la_LIBADD): Likewise.
6072 (libgcjawt_la_LDFLAGS): Likewise.
6073 (libgcj.zip): Depend on cond_java_awt_source_files
6074 (cond_awt_java_source_files): New macro.
6075 (MOSTLYCLEANFILES): Added awto_files.
6076 (awto_files): New macro. Use where javao_files used.
6077 (nat_headers): Use cond_awt_java_source_files.
6079 2000-04-04 Tom Tromey <tromey@cygnus.com>
6081 * Makefile.in: Rebuilt.
6082 * Makefile.am (awt_java_source_files): Added AWTException.java.
6083 * java/awt/AWTException.java: New file.
6085 2000-04-03 Tom Tromey <tromey@cygnus.com>
6087 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6088 commentary from Alex.
6090 * Makefile.in: Rebuilt.
6091 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6094 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6096 * configure: Rebuilt.
6097 * configure.in: Add --disable-jvmpi.
6098 * include/config.h.in: Rebuilt.
6099 * acconfig.h: Add ENABLE_JVMPI.
6101 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6102 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6103 (_Jv_JVMPI_Notify_THREAD_END): New define.
6104 (_Jv_JVMPI_Notify_THREAD_END): New define.
6105 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6106 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6107 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6109 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6112 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6113 (finish_): Generate JVMPI thread end events.
6114 (run_): Generate JVMPI thread start events.
6115 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6116 preloaded JNI library.
6117 Include JVMPI headers if necessary.
6118 (run): Generate JVMPI thread start events.
6120 * boehm.cc: Define GC_disable and GC_enable.
6121 (_Jv_DisableGC): New function.
6122 (_Jv_EnableGC): New function.
6123 (disable_gc_mutex): Declare.
6124 * nogc.cc (_Jv_DisableGC): New function.
6125 (_Jv_EnableGC): New function.
6127 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6128 (_Jv_JVMPI_Interface): Define.
6129 (jvmpiEnableEvent): New function.
6130 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6132 * include/jvmpi.h: New file.
6134 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6136 * Makefile.in: New #defines and friends for Thread.h.
6137 * Makefile.am: Ditto.
6138 * posix-threads.cc: (struct starter): Remove `object'.
6139 (_Jv_CondWait): Use interruptable condition variables and new
6140 recursive mutexes. New return codes on interrupt or non-ownership
6142 (_Jv_CondNotify): Ditto.
6143 (_Jv_CondNotifyAll): Ditto.
6144 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6145 the target thread by signaling its wait condition.
6146 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6147 not the starter struct. Initialize wait_mutex and wait_cond.
6148 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6150 (_Jv_MutexUnlock): Ditto.
6151 (really_start): Set info->data->thread from pthread_self() to work
6152 around a race condition. Destroy wait_mutex and wait_cond when run()
6154 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6155 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6157 startable_flag: New private field.
6158 (Thread): Initialize `startable_flag'.
6159 (toString): Check for null thread group.
6160 * java/lang/natThread.cc: (struct natThread): New fields
6161 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6162 (class locker): Removed.
6163 (initialize_native): Initialize `join_cond' and `join_mutex'.
6164 (interrupt): Now just calls _Jv_ThreadInterrupt().
6165 (join): Simplified. Just wait on the target thread's join condition.
6166 (finish_): Remove join list code. Unset thread group. Signal
6167 potential joiners by notifying the dying threads join_cond.
6168 (start): Check for illegal restarts.
6169 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6171 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6172 #defines and #ifdefs.
6173 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6174 `wait_mutex', `next'.
6175 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6176 directly mapping to pthread_cond_t.
6177 (struct _Jv_Mutex_t): New recursive implementation.
6178 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6179 _Jv_HaveCondDestroy: Never define this for posix-threads.
6180 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6181 (_Jv_CondNotifyAll): Ditto.
6182 (_Jv_MutexLock): Ditto.
6183 (_Jv_MutexUnlock): Ditto.
6184 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6185 (_Jv_MutexDestroy): Ditto.
6186 (_Jv_CondDestroy): Removed.
6187 (_Jv_PthreadGetMutex): Removed.
6188 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6189 error. Add a FIXME about this.
6190 (_Jv_CondNotifyAll): Ditto.
6191 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6192 _JV_NOT_OWNER on other errors. Add FIXME.
6194 2000-03-26 Tom Tromey <tromey@cygnus.com>
6196 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6198 (call): Don't throw exception here.
6200 2000-03-26 Tom Tromey <tromey@cygnus.com>
6202 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6203 * interpret.cc: Use SIZEOF_VOID_P.
6204 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6205 (_Jv_loadLong): Likewise.
6206 (_Jv_storeDouble): Likewise.
6207 * configure: Rebuilt.
6208 * configure.in: Check size of void*.
6210 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6212 2000-03-26 Hans Boehm <boehm@acm.org>
6214 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6215 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6217 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6218 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6219 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6220 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6222 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6223 (FFI_RAW_SIZE): Likewise.
6224 (_Jv_InterpMethod::ncode): Use them.
6225 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6226 STORED): Define differently on a 64 bit machine.
6227 (continue1): Use ffi_java_raw_call when appropriate.
6229 2000-03-24 Warren Levy <warrenl@cygnus.com>
6231 * java/math/BigInteger.java(divide): Handle the special case when
6232 dividing by 1 and the high bit of the dividend is set.
6233 (setShiftRight): Handle case when count == 0.
6235 2000-03-24 Warren Levy <warrenl@cygnus.com>
6237 * java/awt/Font.java(isBold): Fix syntax error.
6239 * java/awt/Frame.java(postEvent): ditto.
6240 * java/awt/Menu.java(postEvent): ditto.
6241 * java/awt/MenuBar.java(postEvent): ditto.
6242 * java/awt/Toolkit.java(init): Included a stub.
6244 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6246 * java/awt/Event.java: Add all the event type constants.
6247 (Event): Implemented constructors.
6248 (controlDown): Implemented.
6249 (metaDown): Implemented.
6250 (paramString): Stubbed.
6251 (shiftDown): Implemented.
6252 (toString): Implemented.
6253 (translate): Implemented.
6255 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6257 * java/lang/natClass.cc (isInstance): Initialize `this'.
6258 (isAssignableFrom): Initialize `this' and `klass'.
6259 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6260 implemented by any loaded class, so return false.
6261 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6262 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6264 2000-03-19 Warren Levy <warrenl@cygnus.com>
6266 * java/awt/Color.java: Specified java.io for Serializable.
6267 * java/awt/Toolkit.java: Imported java.net.URL.
6269 2000-03-19 Warren Levy <warrenl@cygnus.com>
6271 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6273 2000-03-16 Warren Levy <warrenl@cygnus.com>
6275 * java/awt/Color.java: New file.
6276 * java/awt/Graphics.java: New file.
6277 * java/awt/Image.java: New file.
6278 * java/awt/Paint.java: New file.
6279 * java/awt/PaintContext.java: New file.
6280 * java/awt/Transparency.java: New file.
6281 * java/util/Collection.java: New file.
6282 * java/util/Comparator.java: New file.
6283 * java/util/Iterator.java: New file.
6284 * java/util/List.java: New file.
6285 * java/util/ListIterator.java: New file.
6286 * Makefile.am: Added above new files.
6287 * Makefile.in: Rebuilt.
6289 * java/awt/Font.java (PLAIN): New field.
6291 (ITALIC): New field.
6292 (ROMAN_BASELINE): New field.
6293 (CENTER_BASELINE): New field.
6294 (HANGING_BASELINE): New field.
6298 (pointSize): New field.
6299 (Font): Implemented constructor.
6300 (isPlain): Implemented method.
6301 (isBold): Implemented method.
6302 (isItalic): Implemented method.
6303 (getName): Implemented method.
6304 (getStyle): Implemented method.
6305 (getSize): Implemented method.
6306 (getSize2D): Implemented method.
6308 * java/awt/Frame.java (getFont): Stubbed.
6309 (postEvent): Stubbed.
6311 * java/awt/Menu.java (postEvent): Stubbed.
6312 * java/awt/MenuBar.java (getFont): Stubbed.
6313 (postEvent): Stubbed.
6314 * java/awt/Toolkit.java (getImage): Added abstract method.
6316 2000-03-15 Tom Tromey <tromey@cygnus.com>
6318 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6320 * prims.cc (win32_exception_handler): Reformatted.
6322 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6323 (_Jv_HaveMutexDestroy): Likewise.
6325 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6327 * java/io/natFileDescriptorWin32.cc: New file.
6328 * java/io/natFileWin32.cc: New file.
6329 * java/net/natInetAddress.cc: Added conditional inclusion of
6330 Windows / Winsock headers.
6331 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6332 inclusion of Windows / Winsock headers.
6333 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6334 Windows / Winsock headers.
6335 * include/win32-signal.h: New file.
6336 * include/win32-threads.h: New file.
6337 * win32-threads.cc: New file.
6338 * exception.cc (win32_get_restart_frame): New function.
6339 * prims.cc (win32_exception_handler): New function.
6340 (main_init) Performs Winsock initialisation.
6341 (main_init) Installs exeception handler.
6343 2000-03-14 Tom Tromey <tromey@cygnus.com>
6345 * jni.cc (mangled_name): Fixed assertion.
6346 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6347 turned assert into actual failure.
6349 2000-03-09 Warren Levy <warrenl@cygnus.com>
6351 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6352 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6353 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6355 2000-03-09 Warren Levy <warrenl@cygnus.com>
6357 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6358 * java/security/DigestException.java: New file.
6359 * java/security/GeneralSecurityException.java: New file.
6360 * java/security/InvalidAlgorithmParameterException.java: New file.
6361 * java/security/InvalidKeyException.java: New file.
6362 * java/security/InvalidParameterException.java: New file.
6363 * java/security/Key.java: New file.
6364 * java/security/KeyException.java: New file.
6365 * java/security/KeyPair.java: New file.
6366 * java/security/KeyPairGenerator.java: New file.
6367 * java/security/KeyPairGeneratorSpi.java: New file.
6368 * java/security/NoSuchProviderException.java: New file.
6369 * java/security/PrivateKey.java: New file.
6370 * java/security/Provider.java: New file.
6371 * java/security/PublicKey.java: New file.
6372 * java/security/SecureRandom.java: New file.
6373 * java/security/Security.java: New file.
6374 * java/security/Signature.java: New file.
6375 * java/security/SignatureException.java: New file.
6376 * java/security/interfaces/DSAKey.java: New file.
6377 * java/security/interfaces/DSAParams.java: New file.
6378 * java/security/interfaces/DSAPrivateKey.java: New file.
6379 * java/security/interfaces/DSAPublicKey.java: New file.
6380 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6381 * java/security/interfaces/RSAPrivateKey.java: New file.
6382 * java/security/interfaces/RSAPublicKey.java: New file.
6383 * java/security/spec/AlgorithmParameterSpec.java: New file.
6384 * java/security/spec/InvalidKeySpecException.java: New file.
6385 * java/security/spec/InvalidParameterSpecException.java: New file.
6386 * java/security/spec/KeySpec.java: New file.
6387 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6388 * java/security/spec/RSAPrivateKeySpec.java: New file.
6389 * java/security/spec/RSAPublicKeySpec.java: New file.
6390 * Makefile.am: Added above java.security files.
6391 * Makefile.in: Rebuilt.
6393 * java/security/MessageDigest.java: Rewritten.
6394 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6396 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6400 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6402 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6403 _Jv_PrepareConstantTimeTables.
6404 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6405 classes should have an IDT, so don't return if klass is an array
6408 2000-03-08 Tom Tromey <tromey@cygnus.com>
6410 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6411 of `void' to be created.
6413 2000-03-08 Warren Levy <warrenl@cygnus.com>
6415 * java/math/BigInteger.java(signum): Handle zero properly.
6417 2000-03-07 Tom Tromey <tromey@cygnus.com>
6419 * All files: Updated copyright information.
6420 * COPYING: New file.
6421 * COPYING.LIB: Removed.
6422 * LIBGCJ_LICENSE: We now use GPL + special exception.
6424 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6426 * resolve.cc (_Jv_SearchMethodInClass): New function.
6427 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6428 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6430 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6432 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6433 (struct _Jv_ifaces): New declaration.
6434 JV_CLASS: New macro definition.
6435 (getComponentType): Relocate below isArray() for inlining.
6436 (getModifiers): Declare `inline'.
6437 (getSuperclass): Ditto.
6439 (isPrimitive): Ditto.
6440 (_Jv_IsAssignableFrom): New prototype.
6441 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6443 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6444 Check for JV_STATE_DONE before invoking initializeClass().
6445 (_Jv_PrepareConstantTimeTables): New prototype.
6446 (_Jv_GetInterfaces): Ditto.
6447 (_Jv_GenerateITable): Ditto.
6448 (_Jv_GetMethodString): Ditto.
6449 (_Jv_AppendPartialITable): Ditto.
6450 (_Jv_FindIIndex): Ditto.
6451 depth, ancestors, idt: New class fields.
6453 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6454 inline function `_Jv_IsAssignableFrom'. Use that function.
6455 (isInstance): Declare `inline'.
6456 (initializeClass): Get lock on class before checking `state'. Unlock
6457 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6459 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6460 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6461 class->depth and ancestor table.
6462 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6463 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6464 _Jv_IsAssignableFrom.
6465 (_Jv_CheckArrayStore): Ditto.
6466 (_Jv_LookupInterfaceMethodIdx): New function.
6467 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6468 (_Jv_PrepareConstantTimeTables): New function.
6469 (_Jv_IndexOf): Ditto.
6470 (_Jv_GetInterfaces): Ditto.
6471 (_Jv_GenerateITable): Ditto.
6472 (_Jv_GetMethodString): Ditto.
6473 (_Jv_AppendPartialITable): Ditto.
6474 iindex_mutex, iindex_mutex_initialized: New static fields.
6475 (_Jv_FindIIndex): New function.
6477 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6479 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6480 (_Jv_CheckArrayStore): Ditto.
6481 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6482 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6483 Moved to gcj/array.h.
6484 (_Jv_Realloc): New function.
6486 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6488 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6489 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6490 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6491 JvNewDoubleArray): Implementations moved from prims.cc and
6494 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6496 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6498 2000-03-06 Tom Tromey <tromey@cygnus.com>
6500 * jni.cc (MARK_NONE): New define.
6501 (MARK_USER): Likewise.
6502 (MARK_SYSTEM): Likewise.
6503 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6505 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6506 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6507 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6508 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6510 (call): Use MARK_SYSTEM.
6511 (_Jv_GetJNIEnvNewFrame): New function.
6512 (_Jv_LookupJNIMethod): New function.
6513 (_Jv_JNI_PopSystemFrame): New function.
6514 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6516 2000-03-05 Tom Tromey <tromey@cygnus.com>
6518 Fix for PR libgcj/43:
6519 * include/Makefile.in: Rebuilt.
6520 * include/Makefile.am (include_HEADERS): New define.
6522 2000-03-05 Anthony Green <green@redhat.com>
6524 * gcj/javaprims.h ("Java"): Remove FirstThread.
6526 * configure.host: Fix __NO_MATH_INLNES botch.
6528 * Makefile.in: Rebuilt.
6529 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6530 (gnu/gcj/runtime/FirstThread.h): Moved.
6531 (ordinary_java_source_files): Move FirstThread.java.
6532 * prims.cc: Deal with FirstThread movement.
6534 (_Jv_RunMain): Ditto.
6536 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6537 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6539 2000-03-05 Warren Levy <warrenl@cygnus.com>
6541 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6542 Handle null addresses.
6544 2000-03-04 Anthony Green <green@redhat.com>
6546 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6549 2000-03-04 Anthony Green <green@redhat.com>
6551 * configure: Rebuilt.
6552 * configure.in (ZLIBTESTSPEC): New macro.
6553 (GCTESTSPEC): New macro.
6554 (LIBGCJTESTSPEC): New macro.
6555 * libgcj-test.spec.in: New file.
6557 2000-03-02 Tom Tromey <tromey@cygnus.com>
6559 * include/java-interp.h: Don't include MethodInvocation.h.
6560 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6561 * Makefile.in: Rebuilt.
6562 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6563 (ordinary_java_source_files): Don't mention
6564 MethodInvocation.java.
6565 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6566 * interpret.cc (MethodInvocation::continue1): Removed.
6567 (run): Handle exceptions here.
6568 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6570 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6572 (defineClass2): Removed.
6574 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6576 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6578 (hack_call): Removed.
6580 * java/lang/Class.h (Class): Removed hackRunInitializers,
6582 * java/lang/natClass.cc (hackRunInitializers): Removed.
6583 (initializeClass): Catch exceptions here.
6584 Include ExceptionInInitializerError.h.
6585 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6588 * java/lang/Object.h (Object): Don't mention hack12_6.
6589 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6591 * java/lang/Object.java (hack12_6): Removed.
6593 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6594 (start): Use run_, not run__.
6595 * java/lang/Thread.java (run_): Renamed from run__; old run_
6598 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6599 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6600 (_Jv_JNI_DefineClass): Likewise.
6601 (_Jv_JNI_ThrowNew): Likewise.
6602 (_Jv_JNI_AllocObject): Likewise.
6603 (_Jv_JNI_GetAnyMethodID): Likewise.
6604 (_Jv_JNI_CallAnyMethodV): Likewise.
6605 (_Jv_JNI_CallAnyMethodA): Likewise.
6606 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6607 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6608 (_Jv_JNI_GetAnyFieldID): Likewise.
6609 (_Jv_JNI_NewString): Likewise.
6610 (_Jv_JNI_NewStringUTF): Likewise.
6611 (_Jv_JNI_GetStringUTFChars): Likewise.
6612 (_Jv_JNI_NewObjectArray): Likewise.
6613 (_Jv_JNI_NewPrimitiveArray): Likewise.
6614 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6615 (_Jv_JNI_GetStringRegion): Likewise.
6616 (_Jv_JNI_GetStringUTFRegion): Likewise.
6617 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6618 (_Jv_JNI_MonitorEnter): Likewise.
6619 (_Jv_JNI_MonitorExit): Likewise.
6620 (_Jv_JNI_ToReflectedField): Likewise.
6621 (_Jv_JNI_ToReflectedMethod): Likewise.
6622 (_Jv_JNI_RegisterNatives): Likewise.
6623 (_Jv_JNI_AttachCurrentThread): Likewise.
6624 (_Jv_JNI_DestroyJavaVM): Likewise.
6626 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6628 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6629 error caused by the incorrect casting of a long to an int.
6631 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6633 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6634 SIGSEV caused by use of the wrong instance variable.
6636 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6638 * java/io/File.java (File(String, String)): For dirPath, treat an
6639 empty String the same as `null'.
6641 2000-02-26 Anthony Green <green@cygnus.com>
6643 * gnu/gcj/io/MimeTypes.java: Test for null.
6645 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6646 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6648 * java/net/URLConnection.java: Update copyright notice.
6650 2000-02-25 Tom Tromey <tromey@cygnus.com>
6652 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6655 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6657 * java/net/URLConnection.java (initializeDateFormats): New
6659 (getHeaderFieldDate): Call initializeDateFormats if required.
6660 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6662 Fix for PR libgcj/38.
6664 2000-02-24 Warren Levy <warrenl@cygnus.com>
6666 * java/math/BigInteger.java(ival): Made private.
6670 2000-02-20 Anthony Green <green@cygnus.com>
6672 * Makefile.in: Rebuilt.
6673 * Makefile.am (ordinary_java_source_files): Add
6674 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6676 * scripts/MakeDefaultMimeTypes.java: New file.
6677 * scripts/mime.types: New file.
6678 * scripts/classes.pl: Moved from top level.
6679 * classes.pl: Moved to scripts directory.
6681 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6683 * gnu/gcj/io/MimeTypes.java: New file.
6684 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6686 2000-02-20 Tom Tromey <tromey@cygnus.com>
6688 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6690 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6692 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6695 2000-02-18 Tom Tromey <tromey@cygnus.com>
6697 * include/jvm.h (_Jv_GetJavaVM): Declare.
6698 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6699 (_Jv_MethodBase::get_method): New method.
6700 (_Jv_JNIMethod::set_function): New method.
6701 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6702 (_Jv_JNI_RegisterNatives): New function.
6703 (_Jv_JNIFunctions): Updated for new functions.
6704 (_Jv_GetJavaVM): New function.
6705 (_Jv_JNI_GetJavaVM): Use it. Now static.
6706 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6707 is already a Java thread but does not have a JNIEnv yet.
6709 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6712 2000-02-17 Tom Tromey <tromey@cygnus.com>
6714 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6717 2000-02-16 Tom Tromey <tromey@cygnus.com>
6719 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6721 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6722 (_Jv_JNI_NewObject): Likewise.
6723 (_Jv_JNI_NewObjectA): Likewise.
6724 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6725 as "return" type to _Jv_CallAnyMethodA.
6726 (_Jv_JNI_CallAnyMethodA): Likewise.
6727 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6729 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6732 2000-02-15 Tom Tromey <tromey@cygnus.com>
6734 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6736 (init_cif): Added `rtype_p' argument.
6737 * include/java-interp.h (class _Jv_MethodBase): Added
6739 (class _Jv_InterpMethod): Removed args_raw_size.
6740 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6741 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6742 class pointer as well as the ordinary arguments.
6744 * jni.cc (mangled_name): Skip leading `(' in signature.
6746 * jni.cc (add_char): Added missing `else'.
6748 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6751 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6755 * java/lang/natRuntime.cc (_load): Include library path with
6758 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6761 * java/lang/natThread.cc (dumpStack): Removed.
6762 * java/lang/Thread.java (dumpStack): Implemented.
6764 2000-02-15 Tom Tromey <tromey@cygnus.com>
6766 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6767 with `lib' for loadLibrary. Fixes PR gcj/150.
6769 2000-02-14 Warren Levy <warrenl@cygnus.com>
6771 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6773 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6777 (modPow): Rewritten to not use the naive, slow, brute force approach.
6778 (isProbablePrime): Implemented.
6779 (testBit): Implemented.
6780 (flipBit): Implemented.
6781 (getLowestSetBit): Implemented.
6783 2000-02-16 Anthony Green <green@redhat.com>
6785 * configure.host: Use the same options for i386 and i486 as we do
6788 2000-02-12 Tom Tromey <tromey@cygnus.com>
6790 * java/io/File.java (createTempFile): Use low bits from counter,
6793 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6795 * THANKS: More thanks.
6797 2000-02-11 Tom Tromey <tromey@cygnus.com>
6799 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6800 astore instruction. From Hans Boehm.
6802 2000-02-11 Warren Levy <warrenl@cygnus.com>
6804 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6805 (BigInteger(String)): New constructor.
6806 (not): Rewritten using version from Kawa's BitOps class.
6807 (valueOf): New private methods from Kawa's BitOps class.
6814 (andNot): Implemented.
6815 (clearBit): Implemented.
6816 (setBit): Implemented.
6817 (bitCount): Implemented.
6818 (toByteArray): Implemented.
6820 2000-02-11 Tom Tromey <tromey@cygnus.com>
6822 * java/io/File.java (nextValue): Now synchronized.
6824 2000-02-10 Tom Tromey <tromey@cygnus.com>
6826 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6827 * java/io/FileDescriptor.java (EXCL): New static field.
6828 * java/io/File.java (tmpdir): New static field.
6829 (createTempFile): New method.
6830 (nextValue): New method.
6831 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6834 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6835 (jboolean): Declare as an attributed int, not a bool.
6836 (_Jv_func): Declare differently for C.
6838 * gnu/gcj/jni/natNativeThread.cc: New file.
6839 * gnu/gcj/jni/NativeThread.java: New file.
6840 * java/lang/Thread.java (data): Now a RawData.
6841 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6843 * Makefile.in: Rebuilt.
6844 * Makefile.am (java/lang/Thread.h): New target.
6845 (ordinary_java_source_files): Added NativeThread.java.
6846 (nat_source_files): Added natNativeThread.cc.
6847 * java/lang/natThread.cc: Include <jni.h>
6848 (struct natThread): Added `jni_env' field.
6849 (_Jv_GetCurrentJNIEnv): New function.
6850 (_Jv_SetCurrentJNIEnv): Likewise.
6851 (initialize_native): Initialize jni_env.
6853 * jni.cc (ThreadGroupClass): New define.
6854 (_Jv_JNI_InvokeFunctions): New structure.
6855 (JNI_GetCreatedJavaVMs): New function.
6856 (the_vm): New global.
6857 (JNI_GetDefaultJavaVMInitArgs): New function.
6858 Include NativeThread.h.
6859 (NativeThreadClass): New define.
6860 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6861 (_Jv_JNI_DestroyJavaVM): New function.
6862 (_Jv_JNI_AttachCurrentThread): New function.
6863 (_Jv_JNI_DetachCurrentThread): New function.
6864 (_Jv_JNI_GetEnv): New function.
6865 (JNI_CreateJavaVM): New function.
6866 (_Jv_JNI_GetJavaVM): New function.
6867 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6868 * include/jni.h (JavaVMAttachArgs): New structure.
6869 (JNI_EDETACHED): New define.
6870 (JNI_EVERSION): Likewise.
6871 (JavaVM): Define properly.
6872 (struct JNIInvokeInterface): New structure.
6873 (class _Jv_JavaVM): New class.
6874 (JNI_OnLoad, JNI_OnUnload): Declare.
6875 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6876 JNI_GetCreatedJavaVMs): Declare.
6877 (JavaVMInitArgs): New typedef.
6878 (JavaVMOption): Likewise.
6879 (JNI_ERR): New define.
6882 2000-02-10 Andrew Haley <aph@cygnus.com>
6884 * interpret.cc: Don't include fdlibm.h.
6885 Replace #if with #ifdef throughout.
6886 Declare extern __ieee754_fmod.
6887 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6889 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6890 Search class hierarchy for superclass vtable.
6892 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6893 off the end of a pointer list.
6895 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6899 2000-02-09 Tom Tromey <tromey@cygnus.com>
6901 * java/lang/natRuntime.cc (_load): Call add_library.
6902 (loadLibraryInternal): Likewise.
6904 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6905 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6906 (Output_iconv::finalize): Likewise.
6908 2000-02-08 Tom Tromey <tromey@cygnus.com>
6910 * java/util/Properties.java (setProperty): New method.
6911 (store): New method.
6913 2000-02-07 Tom Tromey <tromey@cygnus.com>
6915 * java/lang/Runtime.java (_load): Declare.
6916 (load, loadLibrary): Wrote in terms of _load.
6917 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6919 (loadLibrary): Likewise.
6921 (_load): New method.
6922 (loadLibrary, load): Removed.
6924 * jni.cc (ThrowableClass): New define.
6925 (_Jv_JNI_Throw): Check argument.
6926 (_Jv_JNI_ThrowNew): Likewise.
6927 (wrap_value): Don't wrap object if it is NULL.
6928 (_Jv_JNI_DefineClass): Use wrap_value.
6929 (_Jv_JNI_FindClass): Likewise.
6930 (_Jv_JNI_GetSuperclass): Likewise.
6931 (_Jv_JNI_ExceptionOccurred): Likewise.
6932 (_Jv_JNI_AllocObject): Likewise.
6933 (_Jv_JNI_GetObjectClass): Likewise.
6934 (_Jv_JNI_NewString): Likewise.
6935 (_Jv_JNI_NewStringUTF): Likewise.
6936 (_Jv_JNI_NewObjectArray): Likewise.
6937 (_Jv_JNI_GetObjectArrayElement): Likewise.
6938 (_Jv_JNI_NewPrimitiveArray): Likewise.
6939 (_Jv_JNI_ToReflectedField): Likewise.
6940 (_Jv_JNI_ToReflectedMethod): Likewise.
6941 (_Jv_JNI_AllocObject): Check argument.
6942 (_Jv_JNI_NewObjectV): Likewise.
6943 (_Jv_JNI_NewObject): Likewise.
6944 (_Jv_JNI_NewObjectA): Likewise.
6945 (_Jv_JNI_GetObjectClass): Likewise.
6946 (_Jv_JNI_GetField): Likewise.
6947 (_Jv_JNI_SetField): Likewise.
6949 * interpret.cc (PUSHL): Don't use expression statement.
6954 * jni.cc (add_char): Conditional on INTERPRETER.
6955 (mangled_name): Likewise.
6957 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6959 (class _Jv_JNIMethod): Likewise.
6961 2000-02-04 Warren Levy <warrenl@cygnus.com>
6963 * Makefile.am: Added MPN.java and BigInteger.java.
6964 * Makefile.in: Rebuilt.
6965 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6967 * java/math/BigInteger.java: New file. Based primarily on
6968 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6970 2000-02-04 Tom Tromey <tromey@cygnus.com>
6972 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6974 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6975 if the method is native.
6976 * resolve.cc (ncode): Don't handle native methods.
6977 (_Jv_JNIMethod::ncode): New method.
6978 (_Jv_PrepareClass): Handle native methods.
6979 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6980 Include AbstractMethodError.h.
6981 (add_char): New function.
6982 (mangled_name): Likewise.
6983 * include/java-interp.h (class _Jv_JNIMethod): New class.
6984 (class _Jv_MethodBase): New class.
6985 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6986 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6989 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6990 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6991 libraries): New globals.
6992 (add_library): New function.
6993 (_Jv_FindSymbolInExecutable): New function.
6995 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6998 2000-02-04 Andrew Haley <aph@cygnus.com>
7000 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7001 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7002 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7003 printStackTrace to printRawStackTrace.
7005 2000-02-03 Tom Tromey <tromey@cygnus.com>
7007 * java/util/Calendar.java (toString): New method.
7008 * java/util/SimpleTimeZone.java (clone): New method.
7009 (toString): New method.
7010 * java/util/TimeZone.java (clone): New method.
7011 * java/text/SimpleDateFormat.java (clone): New method.
7012 * java/text/NumberFormat.java (clone): New method.
7013 (equals): New method.
7014 * java/text/Format.java (clone): New method.
7015 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7017 (clone): New method.
7018 * java/text/DateFormat.java (clone): New method.
7019 * java/text/Collator.java (clone): New method.
7021 2000-02-03 Tom Tromey <tromey@cygnus.com>
7023 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7026 2000-02-01 Tom Tromey <tromey@cygnus.com>
7028 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7029 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7030 constructing the closure if the function is native.
7031 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7032 a template function, #if'd out, or static.
7033 Include <java-interp.h>.
7035 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7037 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7039 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7040 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7042 (wrap_value): New function.
7043 (_Jv_JNI_CallAnyMethodV): Use it.
7044 (_Jv_JNI_CallAnyMethodA): Likewise.
7045 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7046 (_Jv_JNI_GetStaticField): Likewise.
7048 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7049 (_Jv_JNI_GetStaticField): Likewise.
7051 2000-01-31 Tom Tromey <tromey@cygnus.com>
7053 * prims.cc (_Jv_MallocUnchecked): New function.
7054 (main_init): Call _Jv_JNI_Init.
7055 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7056 (_Jv_JNI_Init): Declare.
7057 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7059 (_Jv_JNI_NewGlobalRef): New function.
7060 (_Jv_JNI_DeleteGlobalRef): New function.
7061 (_Jv_JNI_DeleteLocalRef): New function.
7062 (_Jv_JNI_conversion_call): Initialize and clear local reference
7064 (_Jv_JNI_NewLocalRef): New function.
7065 (struct _Jv_JNI_LocalFrame): New structure.
7066 (_Jv_JNI_PushLocalFrame): New function.
7067 (_Jv_JNI_EnsureLocalCapacity): New function.
7068 (FRAME_SIZE): New define.
7069 (_Jv_JNI_GetStringChars): Mark string, not characters.
7070 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7071 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7072 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7074 (_Jv_JNI_DefineClass): Make return value a local ref.
7075 (_Jv_JNI_FindClass): Likewise.
7076 (_Jv_JNI_GetSuperclass): Likewise.
7077 (_Jv_JNI_ExceptionOccurred): Likewise.
7078 (_Jv_JNI_AllocObject): Likewise.
7079 (_Jv_JNI_GetObjectClass): Likewise.
7080 (_Jv_JNI_CallAnyMethodV): Likewise.
7081 (_Jv_JNI_NewString): Likewise.
7082 (_Jv_JNI_NewStringUTF): Likewise.
7083 (_Jv_JNI_NewObjectArray): Likewise.
7084 (_Jv_JNI_GetObjectArrayElement): Likewise.
7085 (_Jv_JNI_ToReflectedField): Likewise.
7086 (_Jv_JNI_ToReflectedMethod): Likewise.
7087 (_Jv_JNIFunctions): Updated table for new functions.
7088 (_Jv_JNI_Init): New function.
7089 (mark_for_gc): Wrote.
7090 (unmark_for_gc): Wrote.
7091 * include/jni.h (struct JNINativeInterface): Removed name from
7092 PopLocalFrame parameter.
7093 (class _Jv_JNIEnv): Added `locals' field.
7095 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7097 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7100 2000-01-30 Tom Tromey <tromey@cygnus.com>
7102 * include/config.h.in: Rebuilt.
7103 * acconfig.h (HAVE_ICONV): Define.
7104 * configure: Rebuilt.
7105 * configure.in: Check for `iconv' function.
7106 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7107 no specific encoder exists.
7108 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7109 no specific encoder exists.
7110 * Makefile.in: Rebuilt.
7111 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7113 (nat_source_files): Added natIconv.cc.
7114 * gnu/gcj/convert/natIconv.cc: New file.
7115 * gnu/gcj/convert/Input_iconv.java: New file.
7116 * gnu/gcj/convert/Output_iconv.java: New file.
7118 2000-01-28 Tom Tromey <tromey@cygnus.com>
7120 * Makefile.in: Rebuilt.
7121 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7123 2000-01-26 Tom Tromey <tromey@cygnus.com>
7125 * gcj/method.h (JvNumMethods): Moved from Class.h.
7126 (JvGetFirstMethod): Likewise.
7127 * java/lang/Class.h (Object): Updated decl of
7128 _Jv_JNI_ToReflectedField.
7129 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7130 * Makefile.in: Rebuilt.
7131 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7132 argument of _Jv_JNI_ToReflectedField.
7133 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7135 (java/lang/reflect/Method.h): Likewise.
7136 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7138 (jweak): New typedef.
7139 (struct JNINativeInterface): Correctly declare remaining entries.
7140 * jni.cc: Include Class.h, ClassLoader.h.
7141 (_Jv_JNI_FindClass): New function.
7142 (_Jv_JNI_DefineClass): New function.
7143 (_Jv_JNI_conversion_call): New function.
7144 (_Jv_JNI_FindClass): Use current class loader to find class.
7145 (_Jv_JNI_ExceptionCheck): New function.
7146 (_Jv_JNI_FromReflectedField): Now static.
7147 (MethodClass): New define.
7148 (_Jv_JNI_FromReflectedMethod): New function.
7149 (_Jv_JNI_ToReflectedMethod): Likewise.
7151 (_Jv_JNI_IsAssignableFrom): Renamed.
7152 (_Jv_JNI_GetStringRegion): New function.
7153 Include StringIndexOutOfBoundsException.h.
7154 (_Jv_JNI_GetStringUTFRegion): New function.
7155 (_Jv_JNIFunctions): Updated for new functions.
7156 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7157 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7158 (_Jv_JNI_GetStringCritical): New function.
7159 (_Jv_JNI_ReleaseStringCritical): Likewise.
7160 (get_throwable): Removed.
7161 (GCJ_JV_JNIENV_FRIEND): Removed.
7162 (__GCJ_JNI_IMPL__): Define.
7165 * resolve.cc (get_ffi_type_from_signature): Handle case where
7168 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7170 * interpret.cc (run): Don't call println.
7171 Don't include PrintStream.h.
7173 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7174 nameIndex. Use "jint" as type for boffset.
7175 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7177 (Class): Likewise. Also changed type of method_count,
7178 vtable_method_count, size_in_bytes, field_count,
7179 static_field_count, interface_count.
7180 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7183 2000-01-21 Tom Tromey <tromey@cygnus.com>
7185 * java/lang/reflect/natConstructor.cc (newInstance): Use
7187 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7188 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7189 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7192 (invoke): Use _Jv_CallAnyMethodA.
7194 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7195 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7197 (struct _Jv_Method): Added getNextMethod method.
7198 (JvNumMethods): New function.
7199 (JvGetFirstMethod): Likewise.
7200 * gcj/field.h (JvGetFirstStaticField): New function.
7201 (JvNumStaticFields): Likewise.
7202 (getNextField): Renamed from getNextInstanceField.
7203 (struct _Jv_Field): New method getClass.
7204 * jni.cc: Wrote many new functions.
7205 * include/jni.h (JNI_TRUE): Define.
7206 (JNI_FALSE): Likewise.
7207 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7208 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7209 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7210 (jfieldID, jmethodID): Likewise.
7211 (JNI_COMMIT, JNI_ABORT): New defines.
7212 (JNINativeMethod): New struct.
7213 (struct JNINativeInterface): Correctly declared more entries.
7214 (class _Jv_JNIEnv): Added `ex' member.
7215 (JNI_VERSION_1_1): New define.
7216 (JNI_VERSION_1_2): Likewise.
7218 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7219 getNextInstanceField.
7221 2000-01-20 Tom Tromey <tromey@cygnus.com>
7223 * resolve.cc (StringClass): Removed.
7224 * defineclass.cc (StringClass): Removed.
7226 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7230 2000-01-19 Tom Tromey <tromey@cygnus.com>
7232 * interpret.cc (PC_REGISTER_ASM): Removed.
7234 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7235 From Bryce McKinlay.
7237 * All files: Updated copyright to reflect Cygnus purchase.
7239 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7241 * configure: Rebuilt.
7242 * configure.in: Recognize --disable-interpreter.
7244 2000-01-18 Andrew Haley <aph@cygnus.com>
7246 * name-finder.cc (lookup): Check for dladdr function.
7247 acconfig.h (HAVE_DLADDR): Add.
7248 configure.in: Check for HAVE_DLADDR
7250 include/config.h.in: Rebuilt.
7252 2000-01-17 Andrew Haley <aph@cygnus.com>
7254 * prims.cc (_Jv_RunMain): Set the name of this executable.
7256 2000-01-17 Tom Tromey <tromey@cygnus.com>
7258 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7259 when backtrace can't be computed.
7261 * configure: Rebuilt.
7262 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7264 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7265 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7266 (_Jv_FindClassInCache): Likewise.
7267 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7268 (findSystemClass): Try to load class from compiled module.
7270 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7271 (loadLibrary): Likewise.
7272 (lt_preloaded_symbols): Define.
7273 (loadLibraryInternal): New method.
7274 * include/config.h.in: Rebuilt.
7275 * acconfig.h (USE_LTDL): Added.
7276 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7277 (INCLUDES): Added $(INCLTDL).
7278 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7279 (libgcj_la_LIBADD): Likewise.
7280 * aclocal.m4, configure: Rebuilt.
7281 * configure.in: Added libltdl support.
7283 2000-01-15 Tom Tromey <tromey@cygnus.com>
7285 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7287 2000-01-14 Andrew Haley <aph@cygnus.com>
7289 * java/lang/natThrowable.cc: New file.
7291 * java/lang/Throwable.java (fillInStackTrace): Make native.
7292 (printStackTrace): Call native method to do this.
7293 (Throwable): Call fillInStackTrace.
7294 (stackTrace): New variable.
7296 * include/jvm.h: Add _Jv_ThisExecutable functions.
7298 * prims.cc: (_Jv_execName): New variable.
7299 (catch_segv): Call fillInStackTrace.
7301 (_Jv_ThisExecutable): New functions.
7302 (JvRunMain): Set the name of this executable.
7304 * Makefile.am: Add java/lang/natThrowable.cc.
7306 * Makefile.in: Rebuilt.
7308 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7310 * configure.in: Force link with __frame_state_for in
7311 FORCELIBGCCSPEC. Add new checks for backtrace.
7312 * include/config.h.in: Rebuilt.
7314 * name-finder.cc: New file.
7315 * include/name-finder.h: New file.
7317 2000-01-16 Anthony Green <green@cygnus.com>
7319 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7322 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7324 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7326 2000-01-13 Tom Tromey <tromey@cygnus.com>
7328 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7329 not system loader, as initiating loader.
7331 2000-01-11 Tom Tromey <tromey@cygnus.com>
7333 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7334 HP/UX. From David Scott Urban.
7336 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7338 * java/lang/natMath.cc (pow): Cast args to `double', not
7341 (IEEEremainder): Likewise.
7342 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7343 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7345 2000-01-09 Anthony Green <green@cygnus.com>
7347 * java/lang/natString.cc (init): Test for overflow condition
7348 during out of bounds check.
7349 (getChars): Throw StringIndexOutOfBoundsException, not
7350 ArrayIndexOutOfBoundsException.
7352 (regionMatches): Obey case option during string comparison.
7354 * configure.host (ligcj_interpreter): New variable. Enable
7355 interpreter by default on IA-32.
7356 * configure.in: Examine libgcj_interpreter.
7357 * configure: Rebuilt.
7359 2000-01-07 Tom Tromey <tromey@cygnus.com>
7361 * mauve-libgcj: Don't disable ClassTest.
7363 * java/lang/natClass.cc (getClasses): Wrote.
7365 2000-01-06 Tom Tromey <tromey@cygnus.com>
7367 * java/lang/natClass.cc (_getConstructors): Correctly check
7368 whether method name is the init name.
7369 (getMethod): Look at accflags on method in `klass', not `this'.
7371 2000-01-05 Tom Tromey <tromey@cygnus.com>
7373 * java/lang/natClass.cc (getMethod): Compute offset relative to
7374 `klass's methods table, not `this's table.
7376 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7377 In unwrapping/widening case, check whether `k' is null, not
7378 whether it is primitive. Initialize `num' from `argelts', not
7379 `paramelts'. Correct create and pass arguments to ffi_call.
7380 Don't let presence of `this' argument affect index used to look in
7382 (COPY): Set appropriate element in `values' vector.
7384 * java/lang/natClass.cc: Include <gcj/method.h>.
7386 * java/lang/Class.h (_getMethods): Correctly declare as private,
7389 * java/lang/Class.h (_getMethods): Declare.
7390 * java/lang/Class.java (_getMethods): Declare.
7391 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7392 (getDeclaredClasses): Always return empty array.
7393 (_getMethods): New method.
7394 (getMethods): Wrote.
7395 (getDeclaredMethod): Return `rmethod'.
7396 (finit_name): New global.
7397 (getDeclaredMethods): Check for finit_name.
7398 (_getMethods): Likewise.
7399 (getMethod): Only return public methods.
7401 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7402 jboolean and select correct ffi type on that basis.
7403 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7404 Constructor call always has `void' return type.
7406 2000-01-04 Tom Tromey <tromey@cygnus.com>
7408 * java/lang/Class.h (getSignature): Updated.
7409 * java/lang/Class.java (getSignature): Updated.
7410 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7412 (getConstructor): Ensure constructor is public.
7413 (_getConstructors): Check for public-ness of constructor when
7414 `declared' is false, not when it is true.
7416 2000-01-04 Warren Levy <warrenl@cygnus.com>
7418 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7420 (receive): Set the sender's address in the DatagramPacket.
7422 2000-01-04 Tom Tromey <tromey@cygnus.com>
7424 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7425 declaring class as return_type argument to
7426 _Jv_CallNonvirtualMethodA.
7427 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7428 constructor case, create object and use it as `this' argument.
7429 * java/lang/Class.h (_getConstructors): Declare.
7430 (_getFields): Declare.
7431 * java/lang/Class.java (getConstructors): Wrote.
7432 (_getConstructors): New native method.
7433 (getDeclaredConstructors): Wrote.
7434 (_getFields): Declare new native method.
7435 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7437 (getMethod): Work correctly when class is primitive.
7438 (getDeclaredMethods): Likewise. Compute offset using `method',
7440 (getDeclaredMethod): Likewise.
7441 (getConstructor): Wrote.
7442 (ConstructorClass): New define.
7443 (getDeclaredConstructor): Wrote.
7444 (_getConstructors): New method.
7445 (_getFields): New method.
7448 * Makefile.in: Rebuilt.
7449 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7451 * prims.cc: Remove `#pragma implementation'.
7452 * gcj/array.h: Remove `#pragma interface'.
7454 * prims.cc (_Jv_equaln): New function.
7455 * java/lang/Class.java (getSignature): Declare.
7456 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7457 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7459 (getSignature): New method.
7460 (getDeclaredMethod): Wrote.
7462 Include StringBuffer.h.
7463 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7464 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7466 (getSignature): Declare.
7467 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7468 (_Jv_equaln): Declare.
7469 (_Jv_CallNonvirtualMethodA): Declare.
7470 * Makefile.in: Rebuilt.
7471 * Makefile.am (nat_source_files): Added natConstructor.cc.
7472 (java/lang/reflect/Constructor.h): New target.
7473 * java/lang/reflect/natConstructor.cc: New file.
7474 * java/lang/reflect/Constructor.java (newInstance): Now native.
7475 (declaringClass): Renamed from decl_class.
7476 (offset): Renamed from index.
7477 (getType): New native method.
7478 (getModifiers): Now native.
7479 (getParameterTypes): Call getType if required.
7480 (hashCode): Include hash code from declaring class.
7481 (modifiers): Removed.
7482 (toString): Call getType if required.
7483 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7484 * java/lang/reflect/natMethod.cc (hack_call): New method.
7485 Removed `#if 0' around FFI code.
7486 Include <gnu/gcj/RawData.h>.
7487 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7488 IllegalArgumentException when argument object and class disagree.
7489 (_Jv_GetTypesFromSignature): New function.
7491 (ObjectClass): New define.
7492 (_Jv_CallNonvirtualMethodA): New function.
7493 * java/lang/reflect/Method.java (hack_trampoline): New method.
7494 (hack_call): New native method.