1 2001-09-10 Tom Tromey <tromey@redhat.com>
3 * java/util/Properties.java (load): Correctly read \u sequences.
4 Report from Anthony Green.
6 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
8 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
10 * configure: Re-generate.
12 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14 * include/jvm.h (_Jv_AllocRawObj): New prototype.
15 * boehm.cc (_Jv_AllocRawObj): Implement.
16 * nogc.cc (_Jv_AllocRawObj): Likewise.
17 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
19 2001-09-06 Anthony Green <green@redhat.com>
21 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
22 redundant method calls.
23 (emptyLocale): New private member.
24 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
27 2001-09-06 Tom Tromey <tromey@redhat.com>
29 * java/text/RuleBasedCollator.java (clone): Rewrote.
30 (RuleBasedCollator(RuleBasedCollator)): Removed.
31 * java/text/MessageFormat.java: Re-merged from Classpath.
32 * java/text/DecimalFormat.java: Re-merged from Classpath.
34 2001-09-06 Anthony Green <green@redhat.com>
36 * include/jvm.h: Declare _Jv_RegisterResource.
37 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
38 gnu/gcj/protocol/core/Connection.java,
39 gnu/gcj/protocol/core/Handler.java,
40 gnu/gcj/protocol/core/CoreInputStream.java,
41 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
42 * java/net/URL.java (setURLStreamHandler): Use
43 gnu.gcj.protocol.core.Handler for the core protocol.
44 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
45 end of java.class.path.
46 * Makefile.am (ordinary_java_source_files): Add new java files.
47 (nat_source_files): Add new native code files.
48 * Makefile.in: Rebuilt.
50 2001-09-05 Tom Tromey <tromey@redhat.com>
52 * java/util/Properties.java: Re-merged from Classpath.
54 From Eric Blake, via Classpath:
55 * java/lang/String.java (CaseInsensitiveComparator): New class.
56 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
58 * java/util/Date.java: Re-merged with Classpath.
60 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
62 2001-09-05 Corey Minyard <minyard@acm.org>
63 Tom Tromey <tromey@redhat.com>
65 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
66 (_Jv_RegisterClassHookDefault): Throw error if a class is
69 2001-09-05 Tom Tromey <tromey@redhat.com>
71 * java/lang/natSystem.cc (init_properties): Default locale is
74 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
76 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
77 here, DecimalFormat.applyPattern() does not throw it.
79 2001-09-04 Tom Tromey <tromey@redhat.com>
81 * java/util/AbstractMap.java: Re-merged with Classpath.
82 * java/util/IdentityHashMap.java: Re-merged with Classpath.
84 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
85 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
86 gnu/gcj/text/LocaleData_en_US.java: Removed.
87 * java/text/DateFormatSymbols.java (clone): Use Classpath
90 (DateFormatSymbols): Look in gnu.java.locale for information.
91 (DateFormatSymbols(DateFormatSymbols)): Removed.
92 (safeGetResource): Removed.
93 (DateFormatSymbols): Throws MissingResourceException.
94 (ampmsDefault, erasDefault, localPatternCharsDefault,
95 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
96 weekdaysDefault, zoneStringsDefault): Removed.
97 * java/text/Collator.java (getAvailableLocales): Use modified
98 Classpath implementation.
99 (getInstance): Look in gnu.java.locale for information.
101 * java/text/MessageFormat.java: Reindented.
103 * java/text/FieldPosition.java: Merged with Classpath.
104 * java/text/ParsePosition.java: Merged with Classpath.
105 * java/text/Format.java: Merged with Classpath.
106 * java/text/StringCharacterIterator.java
107 (StringCharacterIterator(StringCharacterIterator,int,int)): New
108 constructor from Classpath.
109 * java/text/Annotation.java,
110 java/text/AttributedCharacterIterator.java,
111 java/text/AttributedString.java,
112 java/text/AttributedStringIterator.java: New from Classpath.
113 * java/text/CharacterIterator.java: Copied from Classpath.
114 * java/text/ChoiceFormat.java: Reindented.
116 * gnu/java/text/BaseBreakIterator.java,
117 gnu/java/text/CharacterBreakIterator.java,
118 gnu/java/text/LineBreakIterator.java,
119 gnu/java/text/LocaleData_en.java,
120 gnu/java/text/LocaleData_en_US.java,
121 gnu/java/text/SentenceBreakIterator.java,
122 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
123 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
125 * java/text/BreakIterator.java (getAvailableLocales): Use
126 Classpath implementation.
127 (getInstance): Look in gnu.java.locale for information.
128 (getCharacterInstance, getLineInstance, getSentenceInstance,
129 getWordInstance): Look in gnu.java.text for implementations.
130 * java/text/DecimalFormatSymbols.java: Reindented
131 (clone): Use Classpath implementation.
132 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
133 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
135 * java/text/DateFormat.java: Merged with Classpath.
136 (getAvailableLocales): Use Classpath implementation.
137 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
138 (computeInstance): Look in gnu.java.locale for information.
139 * java/text/NumberFormat.java: Reindented.
140 (computeInstance): Look in gnu.java.locale for information.
141 (getAvailableLocales): Use implementation from Classpath.
142 (setMaximumIntegerDigits): Likewise.
143 (setMinimumIntegerDigits): Likewise.
144 (setMaximumFractionDigits): Likewise.
146 * java/text/DecimalFormat.java: Reindented.
147 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
148 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
149 * Makefile.in: Rebuilt.
150 * Makefile.am (ordinary_java_source_files): Added all new files.
151 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
152 * java/security/spec/AlgorithmParameterSpec.java,
153 java/security/spec/KeySpec.java: Re-merged with Classpath.
155 Fix for PR libgcj/4213:
156 * Makefile.am (ordinary_java_source_files): Added new file.
157 * gnu/gcj/text/LocaleData.java: New file.
159 2001-09-03 Tom Tromey <tromey@redhat.com>
161 * java/lang/reflect/natField.cc (set): Allow for case when the
162 value is null. Fixes PR libgcj/4208.
164 * gcj/javaprims.h: Regenerated class list.
165 * java/lang/IllegalThreadStateException.java,
166 java/lang/InstantiationException.java: Minor comment tweaks to
167 satisfy libgcj `classes.pl' script.
169 2001-09-01 Tom Tromey <tromey@redhat.com>
171 * Makefile.in: Rebuilt.
172 * Makefile.am (core_java_source_files): Added
173 UnsupportedClassVersionError.
174 * java/lang/UnsupportedClassVersionError.java: New file from
177 * java/io/CharConversionException.java, java/io/EOFException.java,
178 java/io/FileNotFoundException.java, java/io/IOException.java,
179 java/io/InterruptedIOException.java,
180 java/io/ObjectStreamException.java,
181 java/io/OptionalDataException.java,
182 java/io/StreamCorruptedException.java,
183 java/io/SyncFailedException.java,
184 java/io/UTFDataFormatException.java,
185 java/io/UnsupportedEncodingException.java,
186 java/lang/AbstractMethodError.java,
187 java/lang/ArithmeticException.java,
188 java/lang/ArrayIndexOutOfBoundsException.java,
189 java/lang/ArrayStoreException.java,
190 java/lang/ClassCastException.java,
191 java/lang/ClassCircularityError.java,
192 java/lang/ClassFormatError.java,
193 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
194 java/lang/Exception.java,
195 java/lang/ExceptionInInitializerError.java,
196 java/lang/IllegalAccessError.java,
197 java/lang/IllegalAccessException.java,
198 java/lang/IllegalArgumentException.java,
199 java/lang/IllegalMonitorStateException.java,
200 java/lang/IllegalStateException.java,
201 java/lang/IllegalThreadStateException.java,
202 java/lang/IncompatibleClassChangeError.java,
203 java/lang/IndexOutOfBoundsException.java,
204 java/lang/InstantiationError.java,
205 java/lang/InstantiationException.java,
206 java/lang/InternalError.java, java/lang/InterruptedException.java,
207 java/lang/LinkageError.java,
208 java/lang/NegativeArraySizeException.java,
209 java/lang/NoClassDefFoundError.java,
210 java/lang/NoSuchFieldError.java,
211 java/lang/NoSuchFieldException.java,
212 java/lang/NoSuchMethodError.java,
213 java/lang/NoSuchMethodException.java,
214 java/lang/NullPointerException.java,
215 java/lang/NumberFormatException.java,
216 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
217 java/lang/SecurityException.java,
218 java/lang/StackOverflowError.java,
219 java/lang/StringIndexOutOfBoundsException.java,
220 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
221 java/lang/UnsatisfiedLinkError.java,
222 java/lang/UnsupportedOperationException.java,
223 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
224 java/lang/reflect/InvocationTargetException.java,
225 java/net/BindException.java, java/net/ConnectException.java,
226 java/net/MalformedURLException.java,
227 java/net/NoRouteToHostException.java,
228 java/net/ProtocolException.java, java/net/SocketException.java,
229 java/net/UnknownHostException.java,
230 java/net/UnknownServiceException.java,
231 java/text/ParseException.java: Copied from Classpath, thanks to
232 Mark Wielaard who did the merge.
234 * java/lang/System.java (getProperty): Use single argument form of
235 SecurityManager.checkPropertyAccess.
236 * Makefile.in: Rebuilt.
237 * Makefile.am (core_java_source_files): Added VMSecurityManager.
238 * java/lang/VMSecurityManager.java: New file.
239 * java/lang/SecurityManager.java: Merged with Classpath.
241 2001-08-31 Per Bothner <per@bothner.com>
243 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
244 (_Jv_RegisterClassHookDefault): Likewise.
245 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
246 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
247 (_Jv_RegisterClassHookDefault): New.function.
248 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
250 * java/lang/ClassLoader.java (system): Remove static field.
251 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
252 directly instead of using it to set the system field.
253 (loadClass): Use VMClassLoader.instance instead of system field.
254 (findSystemClass): Similar.
255 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
256 than ClassLoader::system which no longer exists.
257 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
259 2001-08-31 Tom Tromey <tromey@redhat.com>
261 * java/io/BufferedReader.java, java/io/ObjectInput.java,
262 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
263 Re-merged with Classpath.
265 Re-merge with Classpath:
266 * java/util/Comparator (equals): Added.
267 * java/io/PipedWriter.java (write): Changed argument to `int'.
269 * java/io/FileDescriptor.java (FileDescriptor()): New
271 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
273 * Makefile.in: Rebuilt.
274 * Makefile.am (ordinary_java_source_files): Removed
275 EnumerationChain, added DoubleEnumeration.
276 (nat_source_files): Added natResourceBundle.cc.
277 * java/util/natResourceBundle.cc: New file.
278 * gnu/java/util/DoubleEnumeration.java: New file.
279 * gnu/gcj/util/EnumerationChain.java: Removed.
280 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
281 * java/util/ResourceBundle.java: Merged with Classpath.
282 * java/util/StringTokenizer.java: Merged with Classpath.
283 * java/util/Locale.java: Merged with Classpath.
284 * java/util/Random.java: Merged with Classpath.
285 * java/util/PropertyResourceBundle.java: Merged with Classpath.
286 * java/util/ListResourceBundle.java: Merged with Classpath.
287 * java/util/ConcurrentModificationException.java: Re-merged with
289 * java/util/EmptyStackException.java: Likewise.
290 * java/util/MissingResourceException.java: Likewise.
291 * java/util/NoSuchElementException.java: Likewise.
292 * java/util/TooManyListenersException.java: Likewise.
294 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
295 * java/io/OptionalDataException.java: Merged with Classpath.
297 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
299 * exception.cc (PERSONALITY_FUNCTION): Simplify
302 2001-08-31 Tom Tromey <tromey@redhat.com>
304 * java/io/ByteArrayInputStream.java: Merged with Classpath.
306 2001-08-30 Tom Tromey <tromey@redhat.com>
308 * java/io/BufferedReader.java: Re-merged with Classpath.
310 2001-08-28 Per Bothner <per@bothner.com>
312 * java/math/BigInteger.java (init(int,Random)): New method.
313 Move body of constructor <init>(int,Random)) here.
314 Re-write it to avoid constructing unneeded temporaries.
315 (<init>(int,int,Random)): Use new init method to avoid constructing
316 extra temporary BigIntegers.
318 2001-08-27 Tom Tromey <tromey@redhat.com>
320 * java/rmi/activation/Activatable.java,
321 java/rmi/activation/ActivateFailedException.java,
322 java/rmi/activation/ActivationDesc.java,
323 java/rmi/activation/ActivationException.java,
324 java/rmi/activation/ActivationGroup.java,
325 java/rmi/activation/ActivationGroupDesc.java,
326 java/rmi/activation/ActivationGroupID.java,
327 java/rmi/activation/ActivationID.java,
328 java/rmi/activation/ActivationInstantiator.java,
329 java/rmi/activation/ActivationMonitor.java,
330 java/rmi/activation/ActivationSystem.java,
331 java/rmi/activation/Activator.java,
332 java/rmi/activation/UnknownGroupException.java,
333 java/rmi/activation/UnknownObjectException.java,
334 java/rmi/AccessException.java,
335 java/rmi/AlreadyBoundException.java,
336 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
337 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
338 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
339 java/rmi/NotBoundException.java,
340 java/rmi/RMISecurityException.java,
341 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
342 java/rmi/RemoteException.java, java/rmi/ServerError.java,
343 java/rmi/ServerException.java,
344 java/rmi/ServerRuntimeException.java,
345 java/rmi/StubNotFoundException.java,
346 java/rmi/UnexpectedException.java,
347 java/rmi/UnknownHostException.java,
348 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
349 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
350 java/rmi/registry/LocateRegistry.java,
351 java/rmi/registry/Registry.java,
352 java/rmi/registry/RegistryHandler.java,
353 java/rmi/server/ExportException.java,
354 java/rmi/server/LoaderHandler.java,
355 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
356 java/rmi/server/Operation.java,
357 java/rmi/server/RMIClassLoader.java,
358 java/rmi/server/RMIClientSocketFactory.java,
359 java/rmi/server/RMIFailureHandler.java,
360 java/rmi/server/RMIServerSocketFactory.java,
361 java/rmi/server/RMISocketFactory.java,
362 java/rmi/server/RemoteCall.java,
363 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
364 java/rmi/server/RemoteServer.java,
365 java/rmi/server/RemoteStub.java,
366 java/rmi/server/ServerCloneException.java,
367 java/rmi/server/ServerNotActiveException.java,
368 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
369 java/rmi/server/SkeletonMismatchException.java,
370 java/rmi/server/SkeletonNotFoundException.java,
371 java/rmi/server/SocketSecurityException.java,
372 java/rmi/server/UID.java,
373 java/rmi/server/UnicastRemoteObject.java,
374 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
375 gnu/java/rmi/dgc/DGCImpl_Skel.java,
376 gnu/java/rmi/dgc/DGCImpl_Stub.java,
377 gnu/java/rmi/registry/RegistryImpl.java,
378 gnu/java/rmi/registry/RegistryImpl_Skel.java,
379 gnu/java/rmi/registry/RegistryImpl_Stub.java,
380 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
381 gnu/java/rmi/server/ProtocolConstants.java,
382 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
383 gnu/java/rmi/server/RMIHashes.java,
384 gnu/java/rmi/server/RMIObjectInputStream.java,
385 gnu/java/rmi/server/RMIObjectOutputStream.java,
386 gnu/java/rmi/server/UnicastConnection.java,
387 gnu/java/rmi/server/UnicastConnectionManager.java,
388 gnu/java/rmi/server/UnicastRef.java,
389 gnu/java/rmi/server/UnicastRemoteCall.java,
390 gnu/java/rmi/server/UnicastRemoteStub.java,
391 gnu/java/rmi/server/UnicastServer.java,
392 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
393 Kaffe. Relabelled classes to fit into Classpath tree.
394 * Makefile.in: Rebuilt.
395 * Makefile.am (rmi_java_source_files): New macro.
396 (ordinary_java_source_files): Reference it.
397 (bin_PROGRAMS): Added rmic and rmiregistry.
398 (rmic_SOURCES): New macro.
399 (EXTRA_rmic_SOURCES): Likewise.
400 (rmic_LDFLAGS): Likewise.
401 (rmic_LINK): Likewise.
402 (rmic_LDADD): Likewise.
403 (rmic_DEPENDENCIES): Likewise.
404 (rmiregistry_SOURCES): New macro.
405 (EXTRA_rmiregistry_SOURCES): Likewise.
406 (rmiregistry_LDFLAGS): Likewise.
407 (rmiregistry_LINK): Likewise.
408 (rmiregistry_LDADD): Likewise.
409 (rmiregistry_DEPENDENCIES): Likewise.
411 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
413 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
415 * Makefile.am: New friends for java/lang/Thread.h.
416 * prims.cc (runFirst): Removed.
417 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
418 (_Jv_RunMain): Now takes either a klass or class name parameter.
419 Create a gnu.gcj.runtime.FirstThread and attach the native thread
420 to that, then run it using _Jv_ThreadRun. Remove special handling of
421 jar files, instead pass is_jar parameter through to FirstThread.
422 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
423 of _Jv_AttachCurrentThread.
424 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
425 (run): New method. Take care of looking up main class manifest
426 attribute and calling forName if neccessary. Then call call_main.
427 (call_main): New native method.
428 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
429 relocated from prims.cc. Look up and call main method.
430 * java/lang/Thread.java (run_): Removed.
431 * java/lang/natThread.cc (run_): Renamed to...
432 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
433 (_Jv_NotifyThreadStart): here. New function.
434 (countStackFrames, destroy, resume, suspend, stop): Throw
435 UnsupportedOperationExceptions rather than JvFail'ing.
436 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
437 Existing version wraps new variant.
440 2001-08-23 Tom Tromey <tromey@redhat.com>
442 * java/lang/reflect/Field.java (toString): Use
443 Method.appendClassName.
444 * java/lang/reflect/Constructor.java (toString): Use
445 Method.appendClassName.
446 * java/lang/reflect/Method.java: Reindented.
447 (appendClassName): New method.
449 * defineclass.cc (handleMethod ): Initialize `throws' field of
451 (read_one_method_attribute): Handle Exceptions attribute.
452 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
453 (ObjectClass): Removed.
454 (getType): Compute `exception_types'.
455 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
457 2001-08-21 Anthony Green <green@redhat.com>
459 * java/lang/natClassLoader.cc (findClass): Search for
460 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
462 2001-08-21 Jeff Sturm <jsturm@one-point.com>
464 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
467 2001-08-20 Tom Tromey <tromey@redhat.com>
469 * java/awt/GridBagConstraints.java: Removed comment.
471 * jni.cc (nathash, nathash_count, nathash_size): New globals.
472 (DELETED_ENTRY): New define.
473 (hash): New function.
474 (nathash_find_slot): Likewise.
475 (natrehash): Likewise.
476 (nathash_add): Likewise.
477 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
479 (nathash_find): New function.
480 (_Jv_LookupJNIMethod): Use it. Synchronize body.
481 (call): Synchronize around assignment.
483 2001-08-17 Jeff Sturm <jsturm@one-point.com>
485 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
486 starting from zero offset.
488 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
490 * boehm.cc: Include gc_local_alloc.h if appropriate.
491 (GC_GENERIC_MALLOC): Don't define.
492 (MAYBE_MARK): Redefine for GC 6.0.
493 (_Jv_MarkObj): Mark class differently.
494 (_Jv_AllocArray): Use GC_generic_malloc.
496 2001-08-17 Mark J Roberts <mjr@anarcast.net>
498 * java/math/BigInteger.java (randBytes): New method.
499 (BigInteger(int,Random)): Use randBytes.
501 2001-08-17 Tom Tromey <tromey@redhat.com>
503 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
505 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
507 * BigInteger.java: fix right shifts by nonzero multiples of 32.
509 2001-08-15 Tom Tromey <tromey@redhat.com>
511 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
512 (local_ref_table, global_ref_table): Now IdentityHashMap.
513 (_Jv_JNI_Init): Updated for new types.
514 (mark_for_gc): Likewise.
515 (unmark_for_gc): Likewise.
516 * gcj/javaprims.h: Rebuilt class list.
517 * Makefile.in: Rebuilt.
518 * Makefile.am (core_java_source_files): Added new file.
519 * java/util/IdentityHashMap.java: New file.
521 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
524 2001-08-09 Tom Tromey <tromey@redhat.com>
526 * java/awt/image/SampleModel.java (getPixel): Set correct array
527 element. From Chris Meyer.
529 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
531 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
532 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
534 2001-08-06 Tom Tromey <tromey@redhat.com>
536 * java/io/InputStreamReader.java (refill): Only call refill on
537 BufferedInputStream when appropriate constraints are met.
539 2001-08-05 Tom Tromey <tromey@redhat.com>
541 * java/io/StringWriter.java: Merged with Classpath.
542 * java/io/InputStream.java: Merged with Classpath.
543 * java/io/OutputStream.java: Merged with Classpath.
544 * java/io/PushbackInputStream.java: Merged with Classpath.
545 * java/io/CharArrayReader.java: Merged with Classpath.
546 * java/io/CharArrayWriter.java: Merged with Classpath.
548 2001-08-02 Tom Tromey <tromey@redhat.com>
550 * prims.cc (JNI_OnLoad): Don't declare.
551 (_JNI_OnLoad): Don't define.
552 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
554 2001-08-02 Tom Tromey <tromey@redhat.com>
556 * java/io/RandomAccessFile.java (seek): Let seek go past end of
558 (skipBytes): Don't fail if seeking past end of file.
559 * java/io/FileInputStream.java (skip): Don't fail if seeking past
561 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
563 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
565 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
567 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
569 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
571 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
572 to initialize global_ref_table/local_ref_table.
574 2001-08-02 Tom Tromey <tromey@redhat.com>
576 * configure: Rebuilt.
577 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
580 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
582 * include/posix.h (_POSIX_PII_SOCKET): Define.
583 * configure.in (HAVE_SOCKLEN_T): Define.
584 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
586 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
587 (java::net::PlainSocketImpl::accept): Use it.
588 Fixes PRs libgcj/3694, libgcj/3696.
590 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
591 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
592 * configure, include/config.h.in: Regenerate.
593 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
594 (mcastGrp): Likewise.
595 (java::net::PlainDatagramSocketImpl::setOption): Guard against
596 missing IPV6_MULTICAST_IF.
597 Fixes PR libgcj/3694.
599 2001-08-01 Jeff Sturm <jsturm@one-point.com>
601 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
603 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
605 * Makefile.in: Rebuilt.
606 * Makefile.am (GCJLINK): Added --tag=GCJ.
609 2001-07-30 Tom Tromey <tromey@redhat.com>
611 * java/util/Date.java: Re-merged with Classpath.
613 2001-07-30 Jeff Sturm <jsturm@one-point.com>
615 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
616 (_Jv_bind): New static function.
617 (bind): Use _Jv_bind.
618 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
619 (_Jv_bind, _Jv_connect): New static functions.
620 (bind): Use _Jv_bind.
621 (connect): Use _Jv_connect.
623 2001-07-30 Tom Tromey <tromey@redhat.com>
624 Corey Minyard <minyard@acm.org>
626 * gnu/gcj/convert/natIconv.cc (done): New methods.
627 * gnu/gcj/convert/Output_iconv.java (done): New method.
628 * gnu/gcj/convert/Input_iconv.java (done): New method.
629 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
631 (getDefaultEncodingClass): Removed.
632 (getDefaultEncoder): Use getEncoder.
634 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
636 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
638 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
640 (getDefaultDecodingClass): Removed.
641 (getDefaultDecoder): Use getDecoder.
642 (getDecoder): Look up decoder in cache.
644 * java/lang/natString.cc (init): Call `done' on converter.
645 (getBytes): Likewise.
647 2001-07-30 Tom Tromey <tromey@redhat.com>
649 * java/lang/Integer.java: Merged with Classpath.
651 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
653 * java/util/GregorianCalendar.java (GregorianCalendar): Call
654 setTimeInMillis() to set the default/current time.
656 2001-07-29 Mark Wielaard <mark@klomp.org>
658 * HACKING: add description on updating namespace
660 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
662 * java/util/Calendar.java (set): Never recompute fields here. They
663 will already be set if someone set time explicitly, and it can cause
664 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
665 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
666 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
668 * java/text/SimpleDateFormat.java (defaultCentury): New field.
669 (readObject): Call set2DigitYearStart if appropriate so that
670 defaultCentury is calculated.
671 (SimpleDateFormat): Don't bother clearing calendar here. Call
672 computeCenturyStart().
673 (set2DigitYearStart): Calculate and set defaultCentury.
674 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
676 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
677 2 numeric digits, use the 80-20 heuristic to parse the value into a
678 default century based on defaultCenturyStart.
679 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
681 2001-07-25 Tom Tromey <tromey@redhat.com>
683 * Makefile.in: Rebuilt.
684 * Makefile.am (libgcj.jar): Correctly fail when bytecode
687 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
689 * prims.cc (_JNI_OnLoad): New function.
690 (JNI_OnLoad): Use it.
691 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
693 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
695 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
696 Makefile.in: Regenerate.
698 2001-07-24 Tom Tromey <tromey@redhat.com>
700 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
703 2001-07-23 Tom Tromey <tromey@redhat.com>
705 * gcj/javaprims.h: Rebuilt class list.
706 * Makefile.in: Rebuilt.
707 * Makefile.am (core_java_source_files): Added VMClassLoader.
708 * java/lang/VMClassLoader.java: New file.
709 * java/lang/Boolean.java: Merged with Classpath.
710 * java/lang/Byte.java: Merged with Classpath.
711 * java/lang/Integer.java: Merged with Classpath.
712 * java/lang/Long.java: Merged with Classpath.
713 * java/lang/Number.java: Merged with Classpath.
714 * java/lang/Short.java: Merged with Classpath.
716 2001-07-22 Jeff Sturm <jsturm@one-point.com>
718 * configure.host: Enable hash synchronization for alpha*-*.
719 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
721 * java/lang/natObject.cc (compare_and_swap, release_set,
722 compare_and_swap_release): Added inline functions for alpha.
724 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
726 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
727 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
728 back to old RFC 2133 variants if missing.
730 2001-07-18 Tom Tromey <tromey@redhat.com>
732 * java/io/natFileWin32.cc (_access): Renamed.
734 * java/io/natFile.cc (_access): Renamed.
736 * java/io/File.java (access, stat): Add leading `_' to name.
739 2001-07-18 Tom Tromey <tromey@redhat.com>
742 * libgcj.spec.in (*lib): Added LIBICONV.
743 * configure: Rebuilt.
744 * configure.in: Call AM_ICONV. Don't check for iconv function.
745 Add parameters to JV_HASH_SYNCHRONIZATION define.
746 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
748 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
750 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
751 not by setting its size field.
753 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
755 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
758 2001-07-12 Tom Tromey <tromey@redhat.com>
759 David Brownell <david-b@pacbell.net>
761 Fix for PR libgcj/3426:
762 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
764 (read): Throw exception if character conversion fails.
765 * java/io/BufferedInputStream.java (refill): Now package-private.
766 * java/io/InputStreamReader.java (ready): Simplified.
767 (refill): New method.
770 2001-07-12 Tom Tromey <tromey@redhat.com>
772 Report from Henner Zeller:
773 * java/io/FileOutputStream.java (FileOutputStream): Throw
774 FileNotFoundException, not IOException.
776 2001-07-10 Anthony Green <green@redhat.com>
778 * Makefile.in: Rebuilt.
779 * Makefile.am: Add new files.
780 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
781 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
782 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
783 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
784 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
785 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
786 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
787 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
788 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
789 org/w3c/dom/ranges/DocumentRange.java,
790 org/w3c/dom/ranges/Range.java,
791 org/w3c/dom/ranges/RangeException.java,
792 org/w3c/dom/traversal/DocumentTraversal.java,
793 org/w3c/dom/traversal/NodeFilter.java,
794 org/w3c/dom/traversal/NodeIterator.java,
795 org/w3c/dom/traversal/TreeWalker.java,
796 org/xml/sax/ext/DeclHandler.java,
797 org/xml/sax/ext/LexicalHandler.java,
798 org/xml/sax/helpers/AttributeListImpl.java,
799 org/xml/sax/helpers/AttributesImpl.java,
800 org/xml/sax/helpers/DefaultHandler.java,
801 org/xml/sax/helpers/LocatorImpl.java,
802 org/xml/sax/helpers/NamespaceSupport.java,
803 org/xml/sax/helpers/ParserAdapter.java,
804 org/xml/sax/helpers/ParserFactory.java,
805 org/xml/sax/helpers/XMLFilterImpl.java,
806 org/xml/sax/helpers/XMLReaderAdapter.java,
807 org/xml/sax/helpers/XMLReaderFactory.java,
808 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
809 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
810 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
811 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
812 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
813 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
814 org/xml/sax/SAXNotRecognizedException.java,
815 org/xml/sax/SAXNotSupportedException.java,
816 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
817 org/xml/sax/XMLReader.java: New files.
819 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
821 * Makefile.am: Added `java/lang/ThreadLocal.java'.
822 * Makefile.in: Regenerate.
823 * java/lang/ThreadLocal.java: Initial import.
825 2001-07-07 Jeff Sturm <jsturm@one-point.com>
827 * Makefile.am (libgcj.jar): Don't recursively make
828 built_java_source_files. Avoid long command lines.
829 Don't change to $(srcdir) to invoke javac.
830 (libgcj.la, libgcjx.la); Avoid long command lines.
831 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
832 * Makefile.in: Rebuilt.
834 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
836 * include/i386-signal.h: Don't do anything with unsigned divide
837 overflow except throw an exception.
839 2001-07-05 Tom Tromey <tromey@redhat.com>
842 * java/lang/Class.h (Class(void)): Now private. Removed
843 implementation. From dmorsberger@sensysdl.com.
845 2001-07-02 Tom Tromey <tromey@redhat.com>
847 Fix for PR bootstrap/3281:
848 * aclocal.m4, configure: Rebuilt.
849 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
850 Correctly compute libgcj_basedir.
851 (mkinstalldirs): Define and subst.
853 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
856 * java/io/LineNumberReader.java (reset): Pass correct arguments to
859 2001-06-27 Tom Tromey <tromey@redhat.com>
861 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
864 2001-06-25 Tom Tromey <tromey@redhat.com>
866 * scripts/encodings.pl: Generate lower-case names. Updated URL
867 for `character-sets' file.
868 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
870 Rebuilt list of aliases.
872 2001-06-25 Tom Tromey <tromey@redhat.com>
874 * java/io/natFileDescriptorPosix.cc (open): Change error message
875 formatting. From David Brownell.
877 2001-06-21 Tom Tromey <tromey@redhat.com>
879 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
882 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
884 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
885 extraneous/malformed sign word.
887 2001-06-15 Tom Tromey <tromey@redhat.com>
889 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
891 2001-06-15 Tom Tromey <tromey@redhat.com>
893 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
894 NULL if no library on the list has the symbol.
895 (init): Call add_library on the program itself.
896 * prims.cc (JvRunMain): Initialize Runtime before searching for
898 (_Jv_RunMain): Likewise.
900 2001-06-15 Tom Tromey <tromey@redhat.com>
902 * jni.cc (ClassClass): Removed; updated all users.
903 (ObjectClass): Likewise.
904 (ThrowableClass): Likewise.
905 (MethodClass): Likewise.
906 (ThreadGroupClass): Likewise.
907 (local_ref_table): Renamed from `ref_table'.
908 (global_ref_table): New global.
909 (_Jv_JNI_Init): Initialize both ref tables.
910 (mark_for_gc): Added `ref_table' parameter.
911 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
913 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
914 (_Jv_JNI_DeleteGlobalRef): Likewise.
915 (_Jv_JNI_DeleteLocalRef): Likewise.
916 (_Jv_JNI_NewLocalRef): Likewise.
917 (_Jv_JNI_PopLocalFrame): Likewise.
918 (_Jv_JNI_GetStringChars): Likewise.
919 (_Jv_JNI_ReleaseStringChars): Likewise.
920 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
921 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
923 2001-06-14 Tom Tromey <tromey@redhat.com>
925 Fix for PR libgcj/3144:
926 * java/util/Date.java: Merged with Classpath.
928 2001-06-12 Tom Tromey <tromey@redhat.com>
930 * aclocal.m4, configure: Rebuilt.
931 * acinclude.m4: Find configure.host in srcdir.
933 2001-06-07 Tom Tromey <tromey@redhat.com>
935 Fix for PR libgcj/3059:
936 * java/lang/natSystem.cc (init_properties): Define `java.home'.
937 * Makefile.in: Rebuilt.
938 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
940 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
942 * exception.cc (cstdlib): Replaces stdlib.h.
943 (_Jv_Throw): Use std::abort().
944 (PERSONALITY_FUNCTION): Likewise.
946 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
948 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
949 nothing, as in autoconf 2.50.
950 * aclocal.m4, configure: Rebuilt.
952 2001-06-08 Tom Tromey <tromey@redhat.com>
954 * configure: Rebuilt.
955 * configure.in: Compute new aux dir using `pwd'.
957 2001-06-07 Tom Tromey <tromey@redhat.com>
959 For PR bootstrap/3075:
960 * configure, aclocal.m4, Makefile.am: Rebuilt.
961 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
962 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
963 relative to libgcj_basedir.
964 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
965 AC_CANONICAL_SYSTEM here.
966 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
968 ($(extra_headers)): New target.
970 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
971 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
973 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
974 table index is within allowed bounds. Ensure that we dont try to access
975 class itable at a negative offset. Avoid an ancestor table lookup if
976 source is a primitive type class.
977 (isInstance): Remove redundant isPrimitive() check.
979 2001-06-04 Tom Tromey <tromey@redhat.com>
981 * java/security/PublicKey.java: Extend Key.
982 * java/security/PrivateKey.java: Extend Key.
984 2001-06-02 Anthony Green <green@redhat.com>
986 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
987 alternate when USE_LTDL not defined.
989 2001-06-02 Anthony Green <green@redhat.com>
991 * configure: Rebuild.
992 * configure.in: Remove data_start hack.
993 * libgcj.spec.in: Ditto.
994 * Makefile.in: Rebuild.
995 * Makefile.am: Ditto.
996 * libgcjdata.c: Remove.
998 2001-06-02 Anthony Green <green@redhat.com>
1000 * configure: Rebuild.
1001 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1002 --without-libffi option. Tweak --disable-java-net processing.
1003 * Makefile.in: Rebuild.
1004 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1005 * include/config.h.in: Rebuild.
1006 * acconfig.h (USE_LIBFFI): Define.
1007 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1009 2001-06-02 Anthony Green <green@redhat.com>
1011 * configure: Rebuilt.
1012 * configure.in: Test for sigaction on native builds.
1013 * prims.cc: Check HAVE_SIGACTION.
1014 * include/config.h.in: Rebuilt.
1016 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1018 * natFile.cc (get_entry): Removed functions.
1019 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1020 Allocate enough storage for d_name if using readdir_r.
1022 2001-05-31 Tom Tromey <tromey@redhat.com>
1024 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1026 (write): Loop until write completes. From Corey Minyard.
1028 2001-05-29 Laurent Guerby <guerby@acm.org>
1030 * java/awt/geom/Rectangle2D.java: fix doc typo.
1032 2001-05-31 Tom Tromey <tromey@redhat.com>
1034 * java/sql/DriverManager.java (getDrivers): Handle case where
1035 driver's class loader is null. From Corey Minyard.
1037 2001-05-29 Tom Tromey <tromey@redhat.com>
1039 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1041 * configure: Rebuilt.
1042 * configure.in: Only add multilib support code if we just rebuilt
1045 2001-05-29 Andrew Haley <aph@redhat.com>
1047 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1048 pointer: the dwarf unwinder in libgcc will do everything that's
1050 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1051 more than we absolutely need to.
1052 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1053 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1055 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1057 * configure: Rebuilt.
1058 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1060 (SIGNAL_HANDLER): Use siginfo style handler.
1061 (INIT_SEGV): Likewise.
1062 (INIT_FPE): Likewise.
1063 * include/ppc-signal.h: Delete whole file.
1065 2001-05-24 Tom Tromey <tromey@redhat.com>
1067 * java/lang/natString.cc (init): Throw
1068 ArrayIndexOutOfBoundsException.
1069 (getChars): Likewise.
1070 (getBytes): Likewise.
1071 (valueOf): Likewise.
1073 * configure.in: Only allow hash synchronization when POSIX threads
1075 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1076 of sync info object.
1078 2001-05-23 Tom Tromey <tromey@redhat.com>
1080 * Makefile.in: Rebuilt.
1081 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1083 Revert patch of 2001-05-21:
1084 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1085 (libgcj_la_LIBADD): Likewise.
1086 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1087 (libgcjx_la_LIBADD): Likewise.
1089 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1090 * gcj/Makefile.in: Rebuilt.
1091 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1092 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1093 * gcj/libgcj-config.h.in: New file.
1094 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1095 * configure: Rebuilt.
1096 * configure.in: Enable hash synchronization by default on some
1098 (HASH_SYNC_SPEC): New subst.
1099 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1100 Correctly use `test -z' instead of `test -n' in a couple places.
1101 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1103 * configure.host (enable_java_net_default): Initialize.
1104 (enable_hash_synchronization_default): New variable.
1106 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1108 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1109 synchronization in use.
1110 (_Jv_MarkArray): Likewise.
1111 (_Jv_AllocBytes): Don't check return result.
1112 (handle_out_of_memory): New function.
1113 (_Jv_InitGC): Set GC_oom_fn.
1114 (trace_one_vtable): New global.
1115 (_Jv_AllocTraceOne): New function.
1116 * configure.in: Added --enable-hash-synchronization.
1117 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1118 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1119 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1120 (_Jv_AllocArray): Likewise.
1121 (_Jv_AllocBytes): Likewise.
1122 (_Jv_AllocPtrFreeObject): New function.
1123 (_Jv_AllocTraceOne): Likewise.
1124 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1126 (self_cache): New global.
1127 (_Jv_ThreadSelf_out_of_line): New function.
1128 * prims.cc (_Jv_AllocBytesChecked): Removed.
1129 (_Jv_ThrowNoMemory): New function.
1130 (_Jv_AllocObject): Don't check for null return from allocator.
1131 (_Jv_NewObjectArray): Likewise.
1132 (_Jv_AllocPtrFreeObject): New function.
1133 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1134 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1135 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1136 * include/boehm-gc.h (_Jv_AllocObj): Define.
1137 (_Jv_AllocPtrFreeObj): Define.
1138 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1139 (_Jv_ThrowNoMemory): Declare.
1140 (_Jv_AllocTraceOne): Declare.
1141 (_Jv_AllocBytesChecked): Removed.
1142 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1143 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1144 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1146 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1148 * java/lang/Object.h (sync_info): Conditional upon presence of
1149 hash synchronization.
1150 * java/lang/natObject.cc: Much new code to handle thin locks and
1151 hash synchronization.
1152 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1155 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1157 * gij.cc (version): Update copyright year.
1159 2001-05-22 Anthony Green <green@redhat.com>
1161 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1164 2001-05-21 Per Bothner <per@bothner.com>
1166 Implement invocation interface; don't create new thread for main.
1167 * java/lang/Thread.java (gen_name): Make native.
1168 (<init>(Thread,THreadGroup,Runnable,String)): New private
1169 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1170 * java/lang/natThread.cc (gen_name): New implementation.
1171 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1172 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1173 (_Jv_CreateJavaVM): New runtime initialization procedure.
1174 (runFirst): New proecdure - mostly code from old FirstThread::run.
1175 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1176 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1177 JvDetachCurrentThread): New inline wrappers.
1178 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1179 _Jv_DetachCurrentThread): New declarations.
1180 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1181 (getMain): new static method.
1182 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1183 by runFirst in prims.cc.
1184 (java/lang/Thread.h): Update for new invocation interface.
1185 * include/posix-threads.h (_Jv_ThreadRegister,
1186 _Jv_ThreadUnRegister): New declarations.
1187 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1188 (really_start): Use new _Jv_ThreadRegister.
1189 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1190 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1191 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1192 Complain of called when _Jv_OnlyThread already set.
1193 (_Jv_ThreadStart): Always JvFail.
1194 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1195 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1196 * win32-threads.cc (struct starter): Remove objet field -
1197 we use _Jv_Thread_t's new thread_obj field instead.
1198 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1199 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1200 (really_start): Use new _Jv_ThreadRegister.
1201 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1202 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1203 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1204 Removed - no longer needed with new invocation interface.
1205 * Makefile.am: Update for removed/added files.
1207 2001-05-21 Per Bothner <per@bothner.com>
1209 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1210 (libgcj_la_LIBADD): Likewise.
1211 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1213 2001-05-21 Per Bothner <per@bothner.com>
1215 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1216 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1217 taken from old Integer.toString code.
1218 (Integer::valueOf): Use _Jv_FormatInt.
1219 * java/lang/Integer.java (toString): Just use call String.valueOf.
1220 * java/lang/Long.java (toString): Fix typo in comment.
1221 * java/lang/String.java (valueOf(int)): Make native.
1222 * java/lang/StringBuffer.java (append(int)): Make native.
1223 * java/lang/natStringBuffer.cc: New file, for append(jint).
1224 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1226 2001-05-21 Tom Tromey <tromey@redhat.com>
1228 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1230 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1232 * include/dwarf2-signal.h: New file.
1233 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1234 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1235 * configure: Rebuilt.
1237 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1239 * configure.in: Update boehm-gc include dir for new GC version.
1240 * configure: Rebuilt.
1241 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1243 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1244 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1245 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1248 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1250 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1251 (_Jv_MutexInit): Likewise.
1253 2001-05-18 Tom Tromey <tromey@redhat.com>
1255 * Makefile.in: Rebuilt.
1256 * Makefile.am (awt_java_source_files): Added Polygon.java.
1258 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1260 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1261 * gcj/javaprims.h: ... here.
1262 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1264 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1266 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1267 with length of ioffset table.
1268 (_Jv_IsAssignableFrom): Likewise.
1270 2001-05-17 Per Bothner <per@bothner.com>
1272 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1274 2001-05-16 Tom Tromey <tromey@redhat.com>
1276 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1279 2001-05-15 Tom Tromey <tromey@redhat.com>
1281 * java/util/GregorianCalendar.java (computeTime): Only call
1284 2001-05-14 Tom Tromey <tromey@redhat.com>
1286 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1287 ZONE_OFFSET just before computing the time.
1289 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1291 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1292 * Makefile.in: Regenerate (by hand).
1293 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1294 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1296 2001-05-11 Richard Henderson <rth@redhat.com>
1298 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1299 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1301 2001-05-11 Richard Henderson <rth@redhat.com>
1303 * exception.cc: Include unwind-pe.h. Remove all pointer
1306 2001-05-10 Tom Tromey <tromey@redhat.com>
1308 * Makefile.in: Rebuilt.
1309 * Makefile.am (awt_java_source_files): Added Polygon.java.
1310 * java/awt/Polygon.java: New file.
1312 * java/awt/geom/AffineTransform.java
1313 (setToRotation(double,double,double)): New method.
1314 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1315 (setToShear): Likewise.
1317 2001-05-10 Tom Tromey <tromey@redhat.com>
1319 * java/util/GregorianCalendar.java: Imported from Classpath.
1320 * gnu/java/locale/LocaleInformation_nl.java: New file from
1322 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1323 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1324 * gnu/java/locale/LocaleInformation.java: Likewise.
1325 * natGregorianCalendar.cc: Removed.
1326 * Makefile.in: Rebuilt.
1327 * Makefile.am (nat_source_files): Removed
1328 natGregorianCalendar.cc.
1330 2001-05-10 Tom Tromey <tromey@redhat.com>
1332 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1334 (defaultCenturyStart): Use it.
1335 (readObject): Likewise.
1336 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1338 (parse): Copy the calendar before modifying it. Correctly handle
1341 * java/util/Calendar.java (clear): Set field value(s) to 0.
1343 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1345 * Calendar.java (get): Clear areFieldsSet if requested field
1347 (set): Unset fields that depend on new value.
1349 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1351 * java/lang/Class.h (_Jv_Self): New union type.
1352 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1353 Jeff Sturm and Fergus Henderson.
1355 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1357 * java/lang/ClassLoader.java: Remove dead code fragment.
1359 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1361 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1363 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1365 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1367 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1368 * configure.host (EXCEPTIONSPEC): New.
1369 * configure.in (EXCEPTIONSPEC): New.
1370 * configure: Rebuilt.
1372 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1374 * doc/*.texi: Remove generated documentation.
1376 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1378 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1379 (performDelete): Fix #endif placement.
1381 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1383 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1384 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1385 (_Jv_ThreadDestroyData): Use _Jv_Free.
1386 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1389 2001-04-27 Tom Tromey <tromey@redhat.com>
1391 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1393 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1395 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1397 * include/jni.h (struct JNINativeInterface): Fixed types in
1398 Get/Set*ArrayRegion declarations.
1399 (class _Jv_JNIEnv): Likewise.
1401 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1403 * configure.in: Obtain THREADS with `gcc -v'.
1404 * configure: Rebuilt.
1406 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1409 * java/io/ObjectStreamClass.java (setClass): Calculate
1410 serialVersionUID for local class and compare it against the UID
1411 from the Object Stream. Throw InvalidClassException upon mismatch.
1412 (setUID): Renamed to...
1413 (getClassUID): this. Return the calculated class UID rather than
1414 setting uid field directly.
1415 (getDefinedSUID): Removed.
1416 * java/io/ObjectInputStream.java (resolveClass): Use the
1417 three-argument Class.forName().
1418 * java/io/InvalidClassException (toString): Don't include classname in
1419 result if it is null.
1421 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1423 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1424 Wrap use of inet_pton in HAVE_INET6.
1426 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1428 java.security merge and ClassLoader compliance fixes.
1430 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1431 New protectionDomain field.
1432 (forName): Add initialize parameter. Fixes declaration to comply with
1434 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1435 variant. Honour "initialize" flag.
1436 (getProtectionDomain0): New method.
1437 * java/lang/Class.java: Fix forName() declaration.
1438 (getPackage): New method based on Classpath implementation.
1439 (getProtectionDomain0): New native method decl.
1440 (getProtectionDomain): New method.
1441 * java/lang/ClassLoader.java (getParent): Now final.
1442 (definedPackages): New field.
1444 (defineClass): New variant with protectionDomain argument.
1445 (definePackage): New.
1447 (findSystemClass): Now final.
1448 (getSystemResourceAsStream): Remove redundant "final" modifier.
1449 (getSystemResource): Remove redundant "final" modifier.
1450 (getResources): Now final.
1451 (protectionDomainPermission): New static field.
1452 (unknownProtectionDomain): Ditto.
1453 (defaultProtectionDomain): Ditto.
1454 (getSystemClassLoader): Now non-native.
1455 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1456 arguments for Class.forName().
1457 * java/lang/Package.java: New file.
1458 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1459 (instance): Static initialize singleton.
1460 (findClass): Override this, not findSystemClass.
1461 * java/lang/natClassLoader.cc (defineClass0): Set class's
1462 protectionDomain field as specified.
1463 (getSystemClassLoader): Removed.
1464 (findClass): Renamed from findSystemClass. Call the interpreter via
1465 URLClassLoader.findClass if loading class via dlopen fails.
1467 * java/security/*.java: java.security import/merge with Classpath.
1468 * java/security/acl/*.java: Likewise.
1469 * java/security/interfaces/*.java: Likewise.
1470 * java/security/spec/*.java: Likewise.
1471 * java/net/NetPermission.java: Likewise.
1472 * java/net/SocketPermission.java: Likewise.
1473 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1475 * Makefile.am: Add new classes.
1476 * Makefile.in: Rebuilt.
1477 * gcj/javaprims.h: CNI namespace rebuild.
1479 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1481 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1482 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1483 * configure: Rebuilt.
1485 2001-04-21 Tom Tromey <tromey@redhat.com>
1487 * Makefile.in: Rebuilt.
1488 * Makefile.am (awt_java_source_files): Added Line2D.java.
1489 * java/awt/geom/Line2D.java: Wrote.
1491 * java/awt/Menu.java (addNotify): Wrote.
1493 * java/awt/PopupMenu.java (addNotify): Implemented.
1496 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1497 * java/awt/List.java (addNotify): Call super.addNotify.
1498 * java/awt/Label.java (addNotify): Call super.addNotify.
1499 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1500 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1501 * java/awt/Choice.java (addNotify): Call super.addNotify.
1502 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1503 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1505 * java/awt/List.java (replaceItem): Notify peer.
1507 * java/awt/geom/Rectangle2D.java
1508 (Float.setRect(float,float,float,float)): New method.
1510 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1513 * java/awt/RenderingHints.java (Key): Class now public.
1515 * java/awt/Rectangle.java (Rectangle): Now implements
1517 (getPathIterator): Removed.
1519 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1522 * java/awt/FileDialog.java: Wrote.
1524 * java/awt/EventQueue.java (isDispatchThread): Now public.
1525 (invokeLater): Likewise.
1527 * java/awt/Component.java (setCursor): Update peer.
1528 (getFontMetrics): Use peer.
1530 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1533 2001-04-20 Tom Tromey <tromey@redhat.com>
1535 * java/awt/List.java: Wrote.
1536 * java/awt/Dialog.java: Wrote.
1538 2001-04-20 Warren Levy <warrenl@redhat.com>
1540 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1541 * java/text/SimpleDateFormat.java
1542 (indexInArray): Removed private method.
1543 (processYear): Removed private method.
1544 (parseLenient): Removed private method.
1545 (parseLeadingZeros): Removed private method.
1546 (parseStrict): Removed private method.
1547 (expect): Added new private method.
1548 (parse): Reverted to pre-Classpath merge version with minor fixes.
1549 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1552 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1554 * java/io/File.java (normalizePath): New private method.
1555 (File (String)): Use normalizePath().
1556 (File (String, String)): Likewise.
1558 * Makefile.am (libffi_files): Removed.
1559 (libgcj.la): Link libffi as a convenience library instead of
1560 refering to its object files directly.
1561 * Makefile.in: Rebuilt.
1563 2001-04-08 Per Bothner <per@bothner.com>
1565 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1566 Recalculate hash, since Utf8Const's hash is only 16 bits.
1568 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1569 bits of hash to calculate step for chaining.
1571 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1572 when 2/3 full, rather than 3/4 full.
1574 2001-04-06 Tom Tromey <tromey@redhat.com>
1576 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1577 (wrap_value<T*>): New specialization.
1578 (_Jv_JNI_PopLocalFrame): Update env->locals.
1580 2001-04-05 Tom Tromey <tromey@redhat.com>
1582 * libtool-version: Updated current.
1584 2001-04-04 Andreas Jaeger <aj@suse.de>
1586 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1587 * gcj/Makefile.in: Rebuilt.
1588 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1589 * Makefile.in: Rebuilt.
1590 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1591 * testsuite/Makefile.in: Rebuild.
1592 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1593 * include/Makefile.in: Rebuild.
1595 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1597 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1598 compiled test', not 'execution from source compiled test'.
1599 Use UNTESTED, not XFAIL, for tests which are not run because
1600 they depend on a previous test which failed.
1602 2001-04-02 Richard Henderson <rth@redhat.com>
1604 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1605 the same tree as gcc.
1606 * configure: Rebuilt.
1608 * exception.cc (_Jv_Throw): Clarify commentary.
1610 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1612 * jni.cc (wrap_value<jclass>): New specialization.
1614 2001-04-02 Tom Tromey <tromey@redhat.com>
1616 * java/io/PrintStream.java (out): Removed field. Fixes PR
1618 (write): Call flush, not out.flush, per spec.
1619 (close): Flush output stream, per spec. Handle
1620 InterruptedIOException.
1621 (checkError): Likewise.
1622 (flush, print, write): Handle InterruptedIOException per spec.
1623 (PrintStream): Don't create BufferedOutputStream.
1624 (work_bytes): New field.
1625 (writeChars): Use work_bytes. Don't assume `out' is a
1626 BufferedOutputStream.
1628 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1630 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1633 2001-03-30 Tom Tromey <tromey@redhat.com>
1635 * jni.cc (add_char): Correctly encode non-ascii characters.
1636 (add_char): Define even when INTERPRETER not defined.
1637 (mangled_name): Likewise.
1638 (_Jv_GetJNIEnvNewFrame): Likewise.
1639 (_Jv_LookupJNIMethod): Likewise.
1641 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1643 * configure.host: Enable interpreter for PPC.
1645 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1647 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1648 to "file.separator", "path.separator", and "java.io.tmpdir" property
1650 * java/io/File.java: Likewise.
1651 * java/io/natFile.cc (init_native): Likewise.
1652 * java/io/natFileWin32.cc (init_native): Likewise.
1654 2001-04-01 Per Bothner <per@bothner.com>
1656 * java/lang/natString.cc (intern): If string's data does not point to
1657 this String, make a fresh String that does.
1659 * java/lang/natString.cc (unintern): Replace by static function.
1660 * java/lang/String.java (unintern): Remove method.
1662 2001-04-01 Per Bothner <per@bothner.com>
1664 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1665 (finish): def.deflate needs to be called in a loop.
1666 (inbuf, inbufLength): New private fields.
1667 (write(int)): Use inbuf.
1668 (write(byte[],int,int): Check if pending output in inbuf.
1669 * ZipOutputStream.java: Don't use Deflater if stored.
1670 Use a Checksum object directly, not via a CheckedOutputStream.
1671 (uncompressed_size): New field,
1672 (closeEntry): Only write data_directory if needed.
1673 (write): If STORED, write directly.
1674 Always update crc, and uncompressed_size.
1675 (write_entry): Fix lots of protocol erors.
1677 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1679 1.3-Compliant Implementation of java.io.File.
1680 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1681 "path.separator", and "java.io.tmpdir" from the File class, instead
1682 of setting them explicitly.
1683 * java/io/File.java: Do not canonicalize paths for security manager
1684 checks. Call init_native() from static initializer. Do not pass path
1685 argument to native methods. New native method declarations. Some
1686 security manager checks moved to checkWrite().
1687 (equals): Check file system case sensitivity and act appropriatly.
1688 (hashCode): Likewise.
1689 (isHidden): New method implemented.
1690 (performList): Changed prototype. Now takes a class argument specifying
1691 the class of the returned array: Strings or File objects. Also added
1692 FileFilter argument.
1693 (listFiles): New variants with "File" return type implemented.
1694 (createTempFile): Use createNewFile(). Use maxPathLen.
1695 (setReadOnly): New method implemented.
1696 (listRoots): Likewise.
1697 (compareTo): Likewise.
1698 (setLastModified): Likewise.
1699 (checkWrite): New method.
1701 * java/io/natFile.cc: Various functions no longer take canonical path
1703 (stat): Handle ISHIDDEN query.
1704 (isAbsolute): Remove WIN32 cruft.
1705 (performList): New arguments. Handle returning either File[] or String[]
1706 arrays. Check with FileFilter or FilenameFilter arguments as
1707 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1708 (performSetReadOnly): New method implemented.
1709 (performListRoots): Likewise.
1710 (performSetLastModified): Likewise.
1711 (performCreate): Likewise.
1712 (init_native): New initialization function.
1713 * java/io/natFileWin32.cc: Various functions no longer take canonical
1715 (stat): Add FIXME about ISHIDDEN query.
1716 (performList): New arguments. Handle returning either File[] or String[]
1717 arrays. Check with FileFilter or FilenameFilter arguments as
1718 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1719 (performSetReadOnly): New. Stubbed.
1720 (performListRoots): Likewise.
1721 (performSetLastModified): Likewise.
1722 (performCreate): Likewise.
1723 (init_native) New initialization function.
1724 * configure.in: Check for utime() and chmod().
1725 * configure: Rebuilt.
1726 * include/config.h.in: Rebuilt.
1728 Resolves PR libgcj/1759.
1730 2001-03-28 Richard Henderson <rth@redhat.com>
1732 IA-64 ABI Exception Handling:
1733 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1734 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1735 Remove EXCEPTIONSPEC.
1736 * configure.host (libgcj_sjlj): Remove.
1737 * configure.in (EXCEPTIONSPEC): Remove.
1738 (enable-sjlj-exceptions): Detect if not specified.
1739 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1740 what header we're looking for.
1741 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1742 * Makefile.in, configure: Regenerate.
1743 * exception.cc: Don't declare libgcc2 stuff.
1744 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1745 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1746 (win32_get_restart_frame): Remove.
1747 (struct java_exception_header): New.
1748 (__gcj_exception_class): New.
1749 (get_exception_header_from_ue): New.
1750 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1751 (size_of_encoded_value, read_encoded_value): New.
1752 (read_uleb128, read_sleb128, parse_lsda_header): New.
1753 (get_ttype_entry, __gcj_personality_sj0): New.
1754 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1756 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1758 * javax/naming/InitialContext.java (init): Fix typo.
1759 (composeName): Remove unnecessary semicolon.
1760 (addToEnvironment): Remove unnecessary semicolon.
1761 (addToEnvironment): Use put() instead of add().
1763 * javax/naming/InitialContext.java (InitialContext):
1765 (destroySubcontext): Method doesn't return a result.
1766 * javax/naming/Context.java: Import java.util.Hashtable.
1767 * javax/naming/Name.java: Import java.util.Enumeration.
1769 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1771 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1772 objects in subdirectories.
1773 * Makefile.in: Rebuilt.
1775 2001-03-25 Richard Henderson <rth@redhat.com>
1777 * exception.cc (java_eh_info): Make value type jthrowable.
1778 (_Jv_type_matcher): Remove now unneeded cast.
1779 (_Jv_Throw): Make argument type jthrowable. Munge name
1780 for SJLJ_EXCEPTIONS here ...
1781 * gcj/cni.h: ... not here.
1783 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1785 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1786 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1787 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1788 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1789 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1790 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1791 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1792 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1793 java/lang/natDouble.cc, java/lang/natObject.cc,
1794 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1795 java/lang/natString.cc, java/lang/natSystem.cc,
1796 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1797 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1798 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1799 java/util/zip/natInflater.cc:
1800 Use throw, not JvThrow or _Jv_Throw.
1802 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1804 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1805 paramater, bump it to 1.
1806 * java/util/Hashtable.java (Hashtable): Likewise.
1808 2001-03-23 Per Bothner <per@bothner.com>
1810 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1811 check for errors, since we don't want to throw exception on
1812 overflow/underflow. Instead, trim whitespace, and then check that
1813 _strtod_r uses up all the rest of the string.
1815 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1816 ancestors array is invalid for interfaces, so do that *after*
1817 check that the target type is not an interface.
1819 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1821 * prims.cc (_Jv_FindClassFromSignature): Check return of
1822 recursive call. Do not abort on invalid signature; return NULL
1825 2001-03-22 Tom Tromey <tromey@redhat.com>
1827 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1828 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1830 * include/jvm.h (_Jv_ResolveField): Declare.
1831 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1832 * resolve.cc (_Jv_ResolveField): No longer conditional on
1835 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1837 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1838 for libtool hacking.
1839 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1840 to a temporary file, then invoke libtool with the -objectlist
1842 (libgcjx.la): Likewise.
1843 * Makefile.in: Rebuilt.
1845 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1847 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1849 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1851 * jni.cc (add_char): Handle `.' like `/'.
1853 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1855 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1856 initialize if exception_types is null.
1857 * java/lang/reflect/Constructor.java: Likewise.
1858 * java/lang/reflect/natConstructor.cc (getType): Initialize
1859 exception_types to an empty Object array.
1861 2001-03-21 Tom Tromey <tromey@redhat.com>
1863 * configure: Rebuilt.
1864 * configure.in (GCJFLAGS): Subst.
1865 * Makefile.in: Rebuilt.
1866 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1867 (gij_LDFLAGS): Likewise.
1868 (JC1FLAGS): Added GCJFLAGS and removed -g.
1870 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1871 read/write case. Fixes PR libgcj/2338.
1873 2001-03-20 Warren Levy <warrenl@redhat.com>
1875 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1876 and corrected SimpleTimeZone's for the timezones hash table.
1878 2001-03-19 Per Bothner <per@bothner.com>
1880 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1881 "canonicalize" "../../xxx" to "/xxx".
1883 2001-03-19 Mark Wielaard <mark@klomp.org>
1885 * java/util/ArrayList.java: Remove RCS keywords from comments
1886 * java/util/BasicMapEntry.java: idem
1887 * java/util/Dictionary.java: idem
1888 * java/util/HashSet.java: idem
1890 * java/util/EventObject.java: reindent
1891 * java/util/Properties.java: idem
1892 * java/util/SortedMap.java: idem
1894 * java/util/Enumeration.java: Merge with Classpath
1895 * java/util/EventListener.java: idem
1896 * java/util/Observable.java: idem
1897 * java/util/Observer.java: idem
1898 * java/util/Stack.java: idem
1900 2001-03-17 Tom Tromey <tromey@redhat.com>
1902 * java/lang/natString.cc (rehash): Don't bother with memset;
1903 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1905 (UNMASK_PTR): New macro.
1906 (intern): Unmask pointer before returning it. Register finalizer
1908 (unintern): Handle case where
1909 (MASK_PTR): New macro.
1910 (PTR_MAKSED): Likewise.
1911 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1913 2001-03-01 Andrew Haley <aph@redhat.com>
1915 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1916 stackTrace buffer to a correctly aligned pointer array.
1918 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1920 * java/lang/Runtime.java (_exit): Declare new package-private native.
1921 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1922 without a security manager check.
1923 (exit): Call _exit after security check.
1924 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1926 * java/lang/System.java (setSecurityManager): If a security manager
1927 is already in place, call checkPermission.
1928 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1929 throws an exception, try to deal with it gracefully.
1930 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1931 Only try to print the subordinate stack trace if "exception" is set.
1932 Print our class name first.
1934 2001-03-08 Tom Tromey <tromey@redhat.com>
1936 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1937 info for array classes.
1938 Fixes PR libgcj/1971.
1940 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1942 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1945 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1947 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1948 instead of the new JDK1.2 API. This is simpler and makes
1949 back-porting the classes to JDK1.1 trivial.
1950 (readObject): likewise.
1952 2001-03-01 Per Bothner <per@bothner.com>
1954 Changes merged from Kawa's gnu.math.
1955 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1956 (rshift(int[],int[],int,int): Removed - not needed.
1957 (gcd): Use rshift0 rather than rshift.
1958 * java/math/BigInteger.java (setShiftRight): Likewise.
1959 (divide): Simplify by using rshift0.
1960 (divide): Zero-extend results if high-order bit set.
1962 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1964 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1967 2001-02-23 Per Bothner <per@bothner.com>
1969 Change to sometimes include class name in ClassFormatError message.
1970 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1971 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1972 boolean instead of throwing ClassFormatError on failure.
1973 (throw_class_format_error): Change static function to method.
1974 (_Jv_ClassReader): New inline methods verify_identifier,
1975 two overloads of verify_classname, verify_field_signature, and
1976 verify_method_signature
1977 * include/java-interp.h: Update declarations to return bool.
1978 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1979 ClassFormatError since _Jv_VerifyClassName now returns bool.
1981 2001-02-23 Per Bothner <per@bothner.com>
1983 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1984 c++filt to select java-style output.
1986 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1988 Fix for PR java/2040:
1989 * java/util/HashMap.java (HashMap): Don't throw exception for
1990 loadFactor > 1. Add exception messages.
1991 * java/util/Hashtable.java (Hashtable): Likewise.
1993 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1995 Disable libgcjx by default.
1996 * configure.in: Add support for --enable-java-awt configure option.
1997 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1998 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1999 * Makefile.in: Rebuilt.
2000 * configure: Rebuilt.
2002 2001-02-20 Tom Tromey <tromey@redhat.com>
2004 * java/io/PipedWriter.java (flush): Throw exception if stream
2006 * java/io/OutputStreamWriter.java (write): Throw exception if
2008 (writeChars): Don't throw exception if stream closed.
2009 * java/io/CharArrayWriter.java (closed): New field.
2011 (flush): Throw exception if stream closed.
2012 (reset): Synchronize on correct lock. Allow stream to be
2014 (toCharArray, toString, writeTo): Synchronize.
2015 (write): Throwe exception if stream closed.
2016 * java/io/BufferedWriter.java (close): Clear `buffer'.
2017 (flush): Throw IOException if stream is closed.
2020 2001-02-16 Tom Tromey <tromey@cygnus.com>
2022 * java/lang/ThreadGroup.java (activeCount): Only include threads
2024 (enumerate): Likewise.
2026 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2028 * java/lang/Integer.java (getInteger): Return default argument if
2029 property is not set. Don't call decode with null argument.
2030 * java/lang/Long.java (getLong): Likewise.
2032 * java/io/CharArrayReader.java (CharArrayReader): Throw
2033 IllegalArgumentException if constructor arguments are illegal.
2034 (ready): Return false if no more characters can be read.
2035 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2037 2001-02-17 Mark Wielaard <mark@klomp.org>
2039 * java/util/TimerTask.java: New version from Classpath.
2041 2001-02-17 Mark Wielaard <mark@klomp.org>
2043 Remerge with Classpath
2044 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2045 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2046 (readByte): Use convertToByte().
2047 (readChar): Use convertToChar().
2048 (readInt): Use convertToInt().
2049 (readLong): Use convertToLong().
2050 (readShort): Use convertToShort().
2051 (readUnsignedByte): Use convertToUnsignedByte().
2052 (readUnsignedShort): Use convertToUnsignedShort().
2053 (readUTF): Use convertToUTF().
2055 (convertToBoolean): Resurrected.
2056 (convertToByte): Ditto.
2057 (convertToChar): Ditto.
2058 (convertToInt): Ditto.
2059 (convertToLong): Ditto.
2060 (convertToShort): Ditto.
2061 (convertToUnsignedByte): Ditto.
2062 (convertToUnsignedShort): Ditto.
2063 (convertToUTF): Ditto.
2065 2001-02-17 Mark Wielaard <mark@klomp.org>
2069 2001-02-17 Mark Wielaard <mark@klomp.org>
2071 * java/io/DataInputStream.java: update copyright notice
2072 * java/io/PrintWriter.java: idem
2073 * java/io/Reader.java: idem
2074 * java/io/StreamTokenizer.java: idem
2075 * java/io/StringReader.java: idem
2076 * java/lang/reflect/ReflectPermission.java: idem
2078 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2080 * java/util/TreeSet.java (clone): Made subclass safe, use
2081 super.clone(), not new.
2082 * java/util/TreeMap.java (clone): Likewise.
2084 * java/util/TreeMap.java (nil): Made non-final.
2085 (clone): Create new nil node for copy.
2087 * java/util/HashSet.java (clone): Made subclass safe, use
2088 super.clone(), not new.
2090 2001-02-14 Andrew Haley <aph@redhat.com>
2092 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2095 2001-02-15 Anthony Green <green@redhat.com>
2097 * defineclass.cc: Don't include alloca.h.
2098 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2099 * interpret.cc (run_normal): Ditto.
2101 * java/lang/natDouble.cc (parseDouble): Ditto.
2103 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2105 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2107 * java/util/Collections.java (ReverseComparator): New static class.
2108 (reverseOrder): Return static instance of ReverseComparator.
2110 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2111 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2112 Rectangle.clone(), not Object.clone().
2114 * java/util/HashSet.java (clone): Remove try/catch.
2116 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2117 * java/util/Collection.java: Likewise.
2118 * java/util/Comparator.java: Likewise.
2119 * java/util/Dictionary.java: Likewise.
2120 * java/util/Iterator.java: Likewise.
2121 * java/util/ListIterator.java: Likewise.
2122 * java/util/Map.java: Likewise.
2123 * java/util/Set.java: Likewise.
2125 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2127 * java/util/TreeMap.java: New file.
2128 * java/util/TreeSet.java: New file.
2129 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2130 * Makefile.in: Rebuilt.
2131 * java/util/HashSet.java (clone): Use constructor instead of calling
2133 * java/util/SortedSet.java: Sync with classpath.
2134 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2137 * java/lang/natClass.cc (getSignature): Don't try to dereference
2138 param_types if it is null. Instead, take this to mean "no parameters".
2139 * java/lang/TreeMap.java (TreeIterator.next): Throw
2140 NoSuchElementException in preference to ConcurrentModificationException.
2141 (TreeIterator.remove): Throw IllegalStateException in preference to
2142 ConcurrentModificationException.
2143 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2144 throw a NoSuchElementException.
2145 (SubMap.lastKey): Likewise.
2147 2001-02-13 Tom Tromey <tromey@redhat.com>
2149 * java/io/PipedReader.java (ready): Throw IOException if pipe
2151 * java/io/FilterReader.java (close): Don't clear `in'.
2152 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2154 (read, ready, reset, skip): Added exception message.
2155 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2156 Perform checkStatus check inside synchronized block.
2158 2001-02-13 Tom Tromey <tromey@redhat.com>
2160 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2162 2001-02-13 Tom Tromey <tromey@redhat.com>
2164 Fix for PR libgcj/1351:
2165 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2167 Include Thread.h and InterruptedIOException.h.
2169 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2171 * java/io/BlockDataException.java: Removed.
2172 * java/io/ObjectInputStream.java (readObject): Throw
2173 StreamCorruptedException, not BlockDataException.
2174 * Makefile.am: Remove BlockDataException.
2175 * Makefile.in: Rebuild.
2177 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2178 Tom Tromey <tromey@redhat.com>
2180 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2183 2001-02-09 Tom Tromey <tromey@redhat.com>
2185 * java/util/Timer.java: New version from Classpath.
2187 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2189 * java/lang/Double.java (doubleToRawLongBits): Now native.
2190 * java/lang/Float.java (floatToRawIntBits): Likewise.
2191 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2192 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2194 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2196 * java/io/File.java (java.net): Imported.
2197 (getAbsoluteFile): Added.
2198 (getCanonicalPath): Likewise.
2201 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2203 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2204 * java/lang/Integer.java: Likewise.
2205 * java/lang/Long.java: Likewise.
2206 * java/lang/Short.java: Likewise.
2207 * java/lang/Double.java: Likewise.
2208 (doubleToRawLongBits): New method.
2209 * java/lang/Float.java: As above.
2210 (floatToRawIntBits): New method.
2212 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2213 IOException if stream closed.
2215 2001-02-08 Tom Tromey <tromey@redhat.com>
2217 * java/lang/Float.java (parseFloat): New method.
2219 2001-02-08 Tom Tromey <tromey@redhat.com>
2221 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2222 * java/io/InputStreamReader.java (ready, read): Throw IOException
2223 if stream has been closed.
2225 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2227 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2228 Change sources.redhat.com and sourceware.cygnus.com references to
2231 2001-02-07 Tom Tromey <tromey@redhat.com>
2233 Fix for PR libgcj/1906:
2234 * java/text/MessageFormat.java (setLocale): Use named class
2237 (format(Object,StringBuffer,FieldPosition)): Special case if
2238 argument is an Object[].
2240 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2242 * java/util/Arrays.java: Removed "cmp" methods.
2243 (qsort): Don't use "cmp".
2246 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2248 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2249 sort. Fix for PR java/1895.
2251 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2253 * configure.host: Use sjlj-exceptions for Alpha.
2255 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2257 * libgcj.spec.in: Don't force static libgcc into the executable.
2258 * configure.in (FORCELIBGCCSPEC): Removed.
2259 * configure: Rebuilt.
2261 2001-01-31 Tom Tromey <tromey@redhat.com>
2263 * Makefile.in: Rebuilt.
2264 * Makefile.am (LTCXXCOMPILE): New macro.
2266 2001-01-26 Andrew Haley <aph@redhat.com>
2268 (INIT_FPE): Use a direct system call to set the handler.
2270 2001-01-27 Richard Henderson <rth@redhat.com>
2272 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2274 2001-01-27 Tom Tromey <tromey@redhat.com>
2276 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2277 native interface structure.
2279 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2281 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2283 (read (byte[], int, int)): Only call readNextBlock() if the block
2284 buffer would actually be overrun. Increment blockDataPosition.
2285 (callReadMethod): Propagate exceptions from invocation target.
2286 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2287 exceptions from invocation target.
2289 2001-01-26 Tom Tromey <tromey@redhat.com>
2291 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2292 to internal representation.
2293 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2294 _Jv_FindClassFromSignature.
2296 2001-01-26 Warren Levy <warrenl@redhat.com>
2298 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2299 and timezone if they are available on the system.
2301 2001-01-24 Tom Tromey <tromey@redhat.com>
2303 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2305 2001-01-24 Tom Tromey <tromey@redhat.com>
2307 * Makefile.in: Rebuilt.
2308 * Makefile.am (c_source_files): Added sf_fabs.c.
2309 * java/lang/sf_fabs.c: New file.
2311 2001-01-19 Warren Levy <warrenl@redhat.com>
2313 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2314 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2315 correctly. Adjust properly from 0-23 clock hour.
2317 2001-01-17 Mark Wielaard <mark@klomp.org>
2319 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2321 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2323 * java/lang/Class.h (isInterface): Move implementation from
2324 natClass.cc. Declare inline.
2325 (Class): Add default constructor.
2326 * java/lang/Object.h: Update comments.
2327 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2328 initialize superclass, saving a call if super is already initialized.
2330 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2332 * prims.cc (init_prim_class): Deleted.
2333 (DECLARE_PRIM_TYPE): Rewritten.
2334 * java/lang/Class.h (stdio.h): Include removed.
2335 (stddef.h): Included.
2336 (java/lang/reflect/Modifier.h): Likewise.
2337 (Class): Contructor now takes arguments, initializes fields.
2338 (initializePrim): Prototype deleted.
2339 * java/lang/natClass.cc (initializePrim): Deleted.
2341 2001-01-16 Warren Levy <warrenl@redhat.com>
2343 * java/math/BigInteger.java: Update Copyright year.
2345 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2347 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2350 2001-01-14 Mark Wielaard <mark@klomp.org>
2351 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2352 (decode): Merge comments with Classpath, don't throw Exception
2354 2001-01-12 Tom Tromey <tromey@redhat.com>
2356 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2360 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2361 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2362 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2363 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2364 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2366 * java/lang/natSystem.cc: Include locale.h if it exists.
2367 * configure: Rebuilt.
2368 * configure.in: Check for locale.h.
2370 2001-01-11 Tom Tromey <tromey@redhat.com>
2372 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2373 (Cursor(int), getPredefinedCursor): Throw exception if argument
2376 2001-01-03 Tom Tromey <tromey@redhat.com>
2378 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2379 (getLocationOnScreen): Wrote.
2381 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2383 * Makefile.am: Re-enable dependencies.
2384 * Makefile.in: Rebuilt.
2386 2001-01-10 Warren Levy <warrenl@redhat.com>
2388 * java/math/BigDecimal.java (divide): Fixed comment.
2390 2001-01-10 Warren Levy <warrenl@redhat.com>
2392 Fix for PR libgcj/1596:
2393 * java/math/BigDecimal.java (divide): Check newScale for validity.
2394 Ensure that BigInteger.pow() is called with a non-negative value.
2395 (setScale (int)): New public method.
2396 (setScale (int,int)): New public method.
2398 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2400 Fix for PR libgcj/1338:
2401 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2402 commentChar. Fixed typos in comments.
2404 2001-01-08 Warren Levy <warrenl@redhat.com>
2406 Fix for PR libgcj/1411:
2407 * Makefile.am: Removed java/util/natTimeZone.cc.
2408 * Makefile.in: Rebuilt.
2409 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2410 missing localized timezone names.
2411 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2412 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2413 (init_properties): Set user.timezone property.
2414 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2415 default timezone names; removed non-standard ones. Use standard
2417 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2419 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2421 (getDefaultTimeZoneId): Removed.
2423 * java/util/natTimeZone.cc: Removed.
2425 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2427 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2428 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2429 (_Jv_GetArrayClass): New inline function.
2430 (arrayclass): New field.
2431 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2432 _Jv_GetArrayElementFromElementType.
2433 (_Jv_NewPrimArray): Ditto.
2434 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2435 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2436 Set Modifier::ABSTRACT.
2437 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2438 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2439 Now synchronized. Array classes are now referenced from
2440 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2441 Set array classes' accessibility flags correctly. Optimize so that
2442 all array classes share the same IDT.
2443 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2444 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2445 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2446 in superclasses from overwriting classes own fields.
2447 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2448 Modifier::isAbstract().
2449 (null_idt): New static field.
2450 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2452 (_Jv_IndexOf): Made inline.
2453 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2455 2001-01-08 Tom Tromey <tromey@redhat.com>
2457 Fix for PR java/1586:
2458 * Makefile.in: Rebuilt.
2459 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2461 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2463 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2464 from the c++ compiler.
2465 * Makefile.in: Rebuilt.
2467 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2469 All files with updated copyright.
2470 * prims.cc (class _Jv_PrimClass): Removed.
2471 (init_prim_class): New function.
2472 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2473 `_Jv_PrimClass' in primitive type declarations. Assign to the
2474 value returned by `init_prim_class.'
2475 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2476 primitive type declarations.
2477 (JvPrimClass): Cast to `jclass' removed.
2478 * java/lang/Class.h (Class): New constructor.
2479 (Class): New copy constructor.
2480 (initializePrim): New prototype.
2481 (_Jv_PrimClass): Field removed.
2482 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2483 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2484 (class java::lang::Object): `finalize' moved up front.
2485 * java/lang/natClass.cc
2486 (isAssignableFrom): Turned outline.
2487 (isInstance): Likewise.
2488 (isInterface): Likewise, fixed indentation.
2489 (initializePrim): New function.
2491 2001-01-07 Anthony Green <green@redhat.com>
2493 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2495 * Makefile.in: Rebuilt.
2497 * scripts/TexinfoDoclet.java: New file.
2499 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2500 doc/java-awt-color.texi, doc/java-lang.texi,
2501 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2502 doc/java-awt-event.texi, doc/java-net.texi,
2503 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2504 doc/java-awt-image.texi, doc/java-security.texi,
2505 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2506 doc/java-text.texi, doc/java-beans-beancontext.texi,
2507 doc/java-util-jar.texi, doc/java-beans.texi,
2508 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2509 doc/java-lang-ref.texi: New files.
2511 2001-01-07 Anthony Green <green@redhat.com>
2513 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2514 be used for both input and output, so don't clear doInput.
2516 * java/lang/StringBuffer.java: Fix comments.
2518 2001-01-06 Anthony Green <green@redhat.com>
2520 * java/beans/PropertyDescriptor.java: Fix comment.
2521 * java/io/PushbackReader.java: Fix comment.
2522 * java/io/ObjectStreamClass.java: Fix comment.
2523 * java/io/DataInputStream.java: Fix comment.
2524 * java/io/PipedInputStream.java: Fix comments.
2525 * java/io/PipedReader.java: Fix comments.
2526 * java/sql/DatabaseMetaData.java: Fix comments.
2528 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2530 * java/io/PipedReader: Synchronize on "lock" instead of this.
2532 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2534 * java/lang/Thread.java: Update comment.
2536 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2537 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2538 * java/io/PipedReader: New implementation based on new
2540 * java/io/PipedWriter: Updated to match new PipedReader.
2542 2001-01-03 Tom Tromey <tromey@redhat.com>
2544 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2545 (getViewportSize): Insets include scrollbar size.
2546 (doLayout): Finished.
2547 (getScrollPosition): Wrote.
2548 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2550 2001-01-02 Tom Tromey <tromey@redhat.com>
2552 * java/awt/ScrollPane.java: Wrote.
2553 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2556 * java/awt/Panel.java (Panel()): Fixed.
2558 * java/awt/Component.java (isShowing): Return false if no peer
2559 exists, and true if component is visible and no parent exists.
2560 (getLocationOnScreen): Wrote.
2561 (getPreferredSize): Removed FIXME comment.
2562 (getMinimumSize): Likewise.
2563 (getAlignmentX, getAlignmentY): Wrote.
2565 (requestFocus): Wrote.
2566 (transferFocus): Wrote.
2567 (findNextFocusComponent): New method.
2568 (hasFocus()): Wrote.
2569 (checkImage): Wrote.
2570 (enableEvents): Call setEventMask on the peer.
2572 * java/awt/Container.java (list): Use super.list() to print self.
2573 (findNextFocusComponent): New method.
2574 (setLayout): Call invalidate.
2575 (findComponentAt): Wrote.
2577 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2579 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2580 the correct versions of various linuxthreads functions get linked.
2581 * Makefile.in: Rebuilt.
2582 * java/lang/natThread.cc (finalize_native): New static function. Call
2583 _Jv_ThreadDestroyData.
2584 (initialize_native): Register finalizer for "data".
2585 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2586 (_Jv_ThreadDestroyData): New prototype.
2587 * include/win32-threads.h: Ditto.
2588 * include/no-threads.h: Ditto.
2589 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2590 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2591 move mutex and condition variable destroy code from:
2592 (really_start): ...here.
2593 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2594 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2595 (_Jv_ThreadDestroyData): Implemented.
2596 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2597 (_Jv_AllocArray): Ditto.
2599 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2601 * java/sql/DriverManager.java (getConnection): Don't set user/password
2604 2000-12-27 Warren Levy <warrenl@redhat.com>
2606 Fix for PR libgcj/1358:
2607 * java/lang/System.java: Update Copyright date properly.
2608 * java/util/Calendar.java: Fix typo in comment.
2609 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2610 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2611 initialize times. Spec says to set H:M:S values to zero only if
2613 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2614 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2615 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2616 timezones and GMT offsets, being careful to account for units of
2617 milliseconds vs. seconds.
2619 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2621 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2622 not be assigned to Object.
2624 Fix for PR libgcj/1516:
2625 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2627 (can_widen): Declared inline. Remove redundant checks for void
2628 arguments and char->short conversion. Add special case for boolean
2630 (ffi_type): Declared inline.
2631 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2633 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2635 * java/sql/SQLWarning.java: Fixed typo in comment.
2637 2000-12-26 Tom Tromey <tromey@redhat.com>
2639 * java/awt/MenuItem.java (paramString): Now protected.
2641 * java/awt/MenuShortcut.java: Implements Serializable.
2643 * java/awt/MenuBar.java: Rewrote from scratch.
2645 * java/awt/MenuComponent.java (removeNotify): Wrote.
2646 Implements Serializable.
2648 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2651 * java/awt/CheckboxMenuItem.java: Wrote.
2653 2000-12-25 Tom Tromey <tromey@redhat.com>
2655 * java/awt/MenuContainer.java: Fixed typo.
2657 * Makefile.in: Rebuilt.
2658 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2659 * java/awt/SystemColor.java: New file.
2661 * java/awt/Color.java (rgba): Now package-private.
2663 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2665 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2668 * java/awt/MenuItem.java (addNotify): New method.
2669 (MenuItem(String,MenuShortcut)): New constructor.
2670 (setLabel): Notify peer of change.
2671 (setEnabled): Likewise.
2673 * java/awt/GridLayout.java (toString): New method.
2675 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2676 (FlowLayout): Check for LEADING and TRAILING.
2677 (setAlignment): Likewise.
2678 (layoutContainer): Handle component orientation.
2680 * java/awt/Component.java (orientatin): New field.
2681 (setComponentOrientation): Wrote.
2682 (getComponentOrientation): Wrote.
2684 * java/awt/Event.java (Event): Implements Serializable.
2685 (consumed): New field for serialization.
2686 * java/awt/Dimension.java (Dimension): Implements Serializable.
2687 * java/awt/Cursor.java (Cursor): Implements Serializable.
2688 * java/awt/Container.java (Container): No longer abstract.
2690 * java/awt/Choice.java: Wrote.
2691 * java/awt/Checkbox.java: Wrote.
2692 * java/awt/ItemSelectable.java: Documented.
2693 * java/awt/CheckboxGroup.java: Wrote.
2695 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2697 (getSize): Likewise.
2699 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2701 * java/io/FileDescriptor.java: Initialize fd to -1.
2702 Remove default constructor.
2704 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2706 * java/lang/mprec.h: Change C9X reference to refer to C99.
2708 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2710 * java/lang/Throwable.java (trace_enabled): New static field.
2711 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2712 trace_enabled not set.
2713 * prims.cc (main_init): Turn off trace_enabled while creating
2714 default exception objects.
2716 2000-12-21 Tom Tromey <tromey@redhat.com>
2718 * java/beans/PropertyChangeListener.java: Extends EventListener.
2719 * java/beans/VetoableChangeListener.java: Extends EventListener.
2721 * java/util/zip/Deflater.java (update, init): Now private.
2723 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2725 * java/util/BasicMapEntry.java: Re-added.
2726 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2727 (putAll): Test for BasicMapEntry.
2728 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2729 (putAll): Test for BasicMapEntry.
2730 Change references from `HashMap.Entry' to `Entry' in various places.
2731 * Makefile.am: Add BasicMapEntry.java.
2732 * Makefile.in: Rebuilt.
2734 2000-12-18 Warren Levy <warrenl@redhat.com>
2736 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2737 need to set timezone to a valid non-null value. Partial fix for
2740 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2742 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2744 * java/awt/Button.java (addNotify): Likewise.
2745 * java/awt/Label.java (addNotify): Likewise.
2746 * java/awt/Panel.java (addNotify): Likewise.
2747 * java/awt/Scrollbar.java (addNotify): Likewise.
2748 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2749 Remove redundant null checks.
2751 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2753 * COPYING: Update to current
2754 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2755 to 19yy as example year in copyright notice).
2757 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2759 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2760 end-of-stream if avail_in is 0.
2762 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2764 * java/util/ArrayList.java (data): Declare transient.
2765 (serialPersistantFields): Removed.
2766 (readObject): Use defaultReadObject(), not readFields().
2767 (writeObject): Use defaultWriteObject(), not writeFields().
2769 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2771 * java/util/Hashtable.java (put): Remove `last' variable.
2772 Link new entry to head of list.
2773 * java/util/HashMap.java (put): Ditto.
2775 2000-12-15 Tom Tromey <tromey@redhat.com>
2777 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2778 loader to Class.forName.
2780 2000-12-14 Tom Tromey <tromey@redhat.com>
2782 * java/util/ResourceBundle.java
2783 (getBundle(String,Locale,ClassLoader)): New method.
2784 (trySomeGetBundle): Added `loader' argument.
2785 (partialGetBundle): Likewise.
2787 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2788 maximumFractionDigits, maximumIntegerDigits,
2789 minimumFractionDigits, minimumIntegerDigits): Now
2792 * java/lang/Thread.java (checkAccess): Now final.
2794 * java/lang/RuntimePermission.java: Class now final.
2796 * java/io/StringWriter.java (StringWriter(int)): Now public.
2798 * java/io/SerializablePermission.java (legal_names): Now private.
2800 * java/lang/Character.java: Updated UnicodeBlock constants.
2801 * scripts/blocks.pl: Special case private use and surrogate
2804 2000-12-12 Tom Tromey <tromey@redhat.com>
2806 * Makefile.in: Rebuilt.
2807 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2809 (GCJCOMPILE): Use it.
2812 2000-12-11 Tom Tromey <tromey@redhat.com>
2814 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2815 New static final fields.
2817 * scripts/classes.pl (scan): Skip lines with leading `*'.
2818 Fix for PR libgcj/378.
2820 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2822 * configure.in: Remove check for -fuse-divide-subroutine.
2823 * configure: Rebuilt.
2825 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2827 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2829 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2831 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2832 Remove BasicMapEntry.java and Bucket.java.
2833 * Makefile.in: Rebuilt.
2834 * java/util/HashMap.java: Rewritten.
2835 * java/util/HashSet.java: Imported from classpath.
2836 * java/util/WeakHashMap.java: Imported from classpath.
2837 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2838 * java/util/Bucket.java: Deleted.
2839 * java/util/BasicMapEntry.java: Deleted.
2840 * java/util/Collections.java (search): Use a for-loop, not iterator
2842 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2843 of elements in source.
2844 (max): Use a for-loop.
2846 (reverse): Keep track of positions instead of using Iterator's
2847 nextIndex() and previousIndex().
2848 (shuffle(List)): Initialize defaultRandom if required using
2849 double-check thread safety idiom. Call two-argument shuffle method
2850 using defaultRandom.
2851 (defaultRandom): New field.
2852 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2853 using previousIndex() and nextIndex().
2854 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2855 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2856 * java/util/AbstractMap.java (toString): Use StringBuffer.
2857 * java/lang/ref/PhantomReference.java: Imported from classpath.
2858 * java/lang/ref/SoftReference.java: Ditto.
2859 * java/lang/ref/Reference.java: Ditto.
2860 * java/lang/ref/WeakReference.java: Ditto.
2861 * java/lang/ref/ReferenceQueue.java: Ditto.
2863 2000-12-10 Richard Henderson <rth@redhat.com>
2865 * configure.host: Recognize alpha*-*, not alphaev6-*.
2867 2000-12-09 Anthony Green <green@redhat.com>
2869 * configure.host: Enable interpreter for Alpha.
2871 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2873 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2874 (ZIP): Points at fastjar instead of zip.
2875 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2876 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2877 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2878 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2879 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2880 ($(x_java_source_files:.java=.class):): Likewise.
2881 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2883 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2884 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2885 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2886 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2887 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2888 gnu/gcj/runtime/VMClassLoader.h:,
2889 java/io/ObjectInputStream$$GetField.h:,
2890 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2891 (Makefile.in): Rebuilt.
2893 2000-12-08 Tom Tromey <tromey@redhat.com>
2896 * configure: Rebuilt.
2897 * configure.in: Use echo, not `:', to create .d files.
2899 2000-12-08 Warren Levy <warrenl@redhat.com>
2901 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2902 NullPointerException so proper check of offset can be done.
2904 2000-12-08 Warren Levy <warrenl@redhat.com>
2906 * java/io/FileInputStream.java (close): Check if the fd is valid.
2907 * java/io/RandomAccessFile.java (close): Ditto.
2908 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2909 * java/net/PlainSocketImpl.java (close): Ditto.
2911 2000-12-06 Tom Tromey <tromey@redhat.com>
2913 * java/awt/GridBagConstraints.java: Filled in values for static
2916 * java/util/BitSet.java: Updated copyright notice.
2918 * Makefile.in: Rebuilt.
2919 * Makefile.am (awt_java_source_files): Added new file.
2920 * java/awt/GridBagConstraints.java: New file.
2922 2000-12-05 Tom Tromey <tromey@redhat.com>
2924 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2925 Now package-private, not protected.
2926 * java/text/DateFormatSymbols.java (equals): Now private.
2927 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2928 * java/util/BitSet.java: Class no longer final.
2930 2000-12-04 Warren Levy <warrenl@redhat.com>
2932 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2933 out code dependent on compiler and library changes.
2935 2000-12-04 Warren Levy <warrenl@redhat.com>
2937 * java/io/FilePermission.java: Made class final per spec.
2938 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2939 method name to match spec (fixed typo).
2940 * java/util/LinkedList.java: Implements List.
2942 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2944 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2945 Edgar Villanueva <edgarvil@home.com>.
2947 2000-12-03 Tom Tromey <tromey@redhat.com>
2949 * java/awt/geom/Point2D.java: Added protected constructor.
2950 (equals): New method.
2951 (Float.setLocation(float,float)): New method.
2952 * java/awt/geom/Dimension2D.java: Added protected constructor.
2953 * java/awt/geom/AffineTransform.java: Made all constants public.
2954 (concatenate): Fixed typo in name.
2955 * java/awt/event/WindowAdapter.java: Class now abstract.
2956 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2957 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2960 * java/awt/AWTError.java: Extend Error, not
2961 IllegalStateException.
2963 * Makefile.in: Rebuilt.
2964 * Makefile.am (awt_java_source_files): Added new file.
2965 * java/awt/geom/RoundRectangle2D.java: New file.
2967 * Makefile.in: Rebuilt.
2968 * Makefile.am (awt_java_source_files): Added new file.
2969 * java/awt/FlowLayout.java: New file.
2971 * Makefile.in: Rebuilt.
2972 * Makefile.am (awt_java_source_files): Added new file.
2973 * java/awt/GridLayout.java: New file.
2975 2000-12-02 Tom Tromey <tromey@redhat.com>
2977 * Makefile.in: Rebuilt.
2978 * Makefile.am (awt_java_source_files): Added new files.
2979 * java/awt/CardLayout.java: New file.
2980 * java/awt/AWTPermission.java: New file.
2982 2000-12-01 Tom Tromey <tromey@redhat.com>
2984 * java/util/Vector.java (insertElementAt): Unconditionally
2985 increment elementCount.
2986 (removeRange): Clear unused slots in vector.
2988 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2990 * java/lang/natMath.cc: Declare fabsf() function.
2991 * java/lang/mprec.h: Don't include math.h.
2992 * java/lang/dtoa.c: Include string.h.
2993 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2996 From Adam Welc <welc@cs.purdue.edu>:
2997 * java/util/LinkedList.java (removeFirst): Update `first' field.
2998 Handle the last == first case.
2999 (removeLast): Update `last' field. Handle the last == first case.
3001 2000-12-01 Warren Levy <warrenl@cygnus.com>
3003 * Makefile.am: Added entries for new java.sql modules.
3004 * Makefile.in: Rebuilt.
3006 2000-12-01 Warren Levy <warrenl@cygnus.com>
3008 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3009 that aren't quite 1.2 compatible yet.
3011 2000-11-30 Warren Levy <warrenl@cygnus.com>
3013 * java/sql/Array.java: New file from classpath.
3014 * java/sql/BatchUpdateException.java: Ditto.
3015 * java/sql/Blob.java: Ditto.
3016 * java/sql/Clob.java: Ditto.
3017 * java/sql/Ref.java: Ditto.
3018 * java/sql/SQLData.java: Ditto.
3019 * java/sql/SQLInput.java: Ditto.
3020 * java/sql/SQLOutput.java: Ditto.
3021 * java/sql/Struct.java: Ditto.
3022 * java/sql/CallableStatement.java: Merged file from claspath.
3023 * java/sql/Connection.java: Ditto.
3024 * java/sql/DataTruncation.java: Ditto.
3025 * java/sql/DatabaseMetaData.java: Ditto.
3026 * java/sql/DriverManager.java: Ditto.
3027 * java/sql/PreparedStatement.java: Ditto.
3028 * java/sql/ResultSet.java: Ditto.
3029 * java/sql/ResultSetMetaData.java: Ditto.
3030 * java/sql/SQLException.java: Ditto.
3031 * java/sql/SQLWarning.java: Ditto.
3032 * java/sql/Statement.java: Ditto.
3033 * java/sql/Types.java: Ditto.
3035 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3037 * java/lang/natSystem.cc (init_properties): Set user.language and
3039 * configure.in: Check for setlocale.
3040 * configure: Rebuilt.
3041 * include/config.h.in: Rebuilt.
3043 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3044 the infate() call didn't deliver any output. Throw a ZipException if
3045 the needsDictionary() call returns true.
3046 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3047 * java/io/InputStreamReader: Use the default buffer size for the
3048 contained BufferedInputStream.
3050 2000-11-28 Warren Levy <warrenl@cygnus.com>
3052 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3053 more time zone entries.
3054 * java/text/SimpleDateFormat.java (format): Added case for
3057 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3059 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3060 directly rather than read() in all cases. Make primitive read
3061 implementations more efficient, as defined in JDK online docs.
3062 (skipBytes): Behave like the JDK's implementation.
3063 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3064 closed stream with checkStatus() whenever an IOException can be
3066 (checkStatus): New private method.
3068 2000-11-27 Warren Levy <warrenl@cygnus.com>
3070 * Makefile.am: Added natTimeZone.cc.
3071 * Makefile.in: Rebuilt.
3072 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3073 * java/text/DateFormatSymbols.java (ampms): Made package private.
3074 (eras): Made package private.
3075 (months): Made package private.
3076 (shortMonths): Made package private.
3077 (shortWeekdays): Made package private.
3078 (weekdays): Made package private.
3079 (formatPrefixes): New private field.
3080 (localPatternCharsDefault): Made private.
3081 (dateFormats): New package private field.
3082 (timeFormats): New package private field.
3083 (formatsForKey): New private method.
3084 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3085 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3086 * java/text/SimpleDateFormat.java: Merged with Classpath.
3087 * java/util/TimeZone.java: Merged with Classpath.
3088 * java/util/natTimeZone.cc: New file.
3090 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3092 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3093 (addElement): Don't increment elementCount twice. Doh.
3094 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3095 array needs to be expanded.
3097 * java/util/Collections.java (UnmodifiableCollection): Implement
3099 (UnmodifiableList): Throw UnsupportedOperationException from
3100 modification methods. Set `l' from the one-parameter constructor.
3101 (UnmodifiableMap): Implement toString().
3102 (SynchronizedCollection): Ditto.
3103 (SynchronizedList): Set `l' from the one-parameter constructor.
3104 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3105 (SynchronizedMap): Implement toString().
3107 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3109 * javax/naming/NameParser.java,
3110 javax/naming/directory/AttributeInUseException.java,
3111 javax/naming/directory/AttributeModificationException.java,
3112 javax/naming/directory/InvalidAttributeIdentifierException.java,
3113 javax/naming/directory/InvalidAttributesException.java,
3114 javax/naming/directory/InvalidAttributeValueException.java,
3115 javax/naming/directory/InvalidSearchControlsException.java,
3116 javax/naming/directory/InvalidSearchFilterException.java,
3117 javax/naming/directory/NoSuchAttributeException.java,
3118 javax/naming/directory/SchemaViolationException.java: New files.
3120 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3122 * javax/naming/InitialContext.java (rebind): Implement.
3123 (unbind): Implement.
3124 (rename): Implement.
3126 (listBindings): Implement.
3127 (destroySubcontext): Implement.
3128 (createSubcontext): Implement.
3129 (lookupLink): Implement.
3130 (getNameParser): Implement.
3131 (composeName): Implement.
3132 (addToEnvironment): Implement.
3134 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3136 * javax/naming/AuthenticationException.java,
3137 javax/naming/AuthenticationNotSupportedException.java,
3138 javax/naming/CannotProceedException.java,
3139 javax/naming/CommunicationException.java,
3140 javax/naming/ConfigurationException.java,
3141 javax/naming/ContextNotEmptyException.java,
3142 javax/naming/InsufficientResourcesException.java,
3143 javax/naming/InterruptedNamingException.java,
3144 javax/naming/InvalidNameException.java,
3145 javax/naming/LimitExceededException.java,
3146 javax/naming/LinkException.java,
3147 javax/naming/LinkLoopException.java,
3148 javax/naming/MalformedLinkException.java,
3149 javax/naming/NameAlreadyBoundException.java,
3150 javax/naming/NameNotFoundException.java,
3151 javax/naming/NamingSecurityException.java,
3152 javax/naming/NoPermissionException.java,
3153 javax/naming/NotContextException.java,
3154 javax/naming/PartialResultException.java,
3155 javax/naming/ReferralException.java,
3156 javax/naming/ServiceUnavailableException.java,
3157 javax/naming/SizeLimitExceededException.java,
3158 javax/naming/TimeLimitExceededException.java: New files.
3160 * javax/naming/Name.java (clone): New method.
3161 (compareTo): New method.
3162 (isEmpty): New method.
3163 (getAll): New method.
3164 (getPrefix): New method.
3165 (getSuffix): New method.
3166 (startsWith): New method.
3167 (endsWith): New method.
3168 (addAll): New method.
3169 (addAll): New method.
3172 (remove): New method.
3174 * javax/naming/Context.java (lookup): New method.
3175 (rebind): New method.
3176 (unbind): New method.
3177 (rename): New method.
3179 (listBindings): New method.
3180 (destroySubcontext): New method.
3181 (createSubcontext): New method.
3182 (lookupLink): New method.
3183 (getNameParser): New method.
3184 (composeName): New method.
3185 (addToEnvironment): New method.
3186 (removeFromEnvironment): New method.
3187 (getEnvironment): New method.
3188 (close): New method.
3189 (getNameInNamespace): New method.
3191 * javax/naming/InitialContext.java (lookup): New method.
3192 (rebind): New method.
3193 (unbind): New method.
3194 (rename): New method.
3196 (listBindings): New method.
3197 (destroySubcontext): New method.
3198 (createSubcontext): New method.
3199 (lookupLink): New method.
3200 (getNameParser): New method.
3201 (composeName): New method.
3202 (addToEnvironment): New method.
3203 (removeFromEnvironment): New method.
3204 (getEnvironment): New method.
3205 (close): New method.
3206 (getNameInNamespace): New method.
3208 2000-11-26 Tom Tromey <tromey@cygnus.com>
3210 * Makefile.in: Rebuilt.
3211 * Makefile.am (core_java_source_files): Added
3212 RuntimePermission.java.
3213 * java/lang/RuntimePermission.java: Imported from Classpath.
3214 * java/lang/Thread.java (getContextClassLoader): Now
3215 synchronized. Added security code.
3216 (setContextClassLoader): Likewise.
3218 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3219 length field of array.
3220 (_Jv_NewPrimArray): Likewise.
3221 * gcj/array.h (__JArray): `length' field now const. Added
3224 2000-11-26 Anthony Green <green@redhat.com>
3226 * javax/naming/spi/NamingManager.java,
3227 javax/naming/spi/ObjectFactory.java,
3228 javax/naming/spi/InitialContextFactory.java,
3229 javax/naming/spi/InitialContextFactoryBuilder.java,
3230 javax/naming/RefAddr.java, javax/naming/Reference.java,
3231 javax/naming/NamingException.java, javax/naming/Context.java,
3232 javax/naming/Referenceable.java,
3233 javax/naming/directory/InitialDirContext.java,
3234 javax/naming/directory/DirContext.java,
3235 javax/naming/directory/Attributes.java,
3236 javax/naming/directory/Attribute.java,
3237 javax/naming/StringRefAddr.java,
3238 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3239 javax/naming/InitialContext.java,
3240 javax/naming/NoInitialContextException.java: New files.
3242 2000-11-25 Anthony Green <green@redhat.com>
3244 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3245 (_Jv_NewPrimArray): Likewise.
3246 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3247 (class JArray): Removed constructor.
3249 * java/lang/Thread.java (context_class_loader): New private data.
3250 (getContextClassLoader): New method.
3251 (setContextClassLoader): New method.
3252 (Thread): Initialize context_class_loader.
3254 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3255 (getResource): Rename to findResource.
3256 (findResource): New method. Used to be getResource.
3257 (getResourceAsStream): Deleted.
3258 (jarFileize): Extracted logic from URLClassLoader constructor into
3259 this new private method.
3260 (addURL): New protected method.
3261 (URLClassLoader): Call jarFileize. Use addElement instead of
3263 (findResources): New method.
3265 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3266 (getResource): Implement correct logic.
3267 (findResource): New method.
3268 (getResources): New method.
3269 (findClass): Create a ClassNotFoundException with the name of the
3270 class rather than nothing at all.
3271 (defineClass) Only throw ClassFormatError.
3273 * java/lang/Class.java (forName): New method.
3274 * java/lang/Class.h (forName): New method.
3275 * java/lang/natClass.cc (forName): New method.
3277 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3279 * java/lang/System.java (setProperties): Only call init_properties()
3280 if properties is null.
3281 (getProperties): Ditto.
3282 (getProperty): Ditto.
3283 (setProperty): Call init_properties if properties are null.
3284 (prop_init): Remove field.
3285 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3286 method. Check for null properties after synchronizing instead of
3287 prop_init flag. Set the properties field last for thread safety.
3289 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3290 test for gcj.dumpobjects property and enable object stream dumping
3292 (dumpElement): No longer native.
3293 (dumpElementln): Ditto.
3294 (setDump): Do not define.
3295 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3296 (dumpElementln): Removed.
3299 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3301 * configure: Rebuilt.
3302 * Makefile.in: Rebuilt.
3303 * Makefile.am (built_java_source_files): Add Configuration.java.
3304 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3305 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3306 Create `gnu' directory in the build tree.
3307 * gnu/classpath/Configuration.java.in: New file.
3309 2000-11-24 Tom Tromey <tromey@cygnus.com>
3311 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3313 (_Jv_NewPrimArray): Likewise.
3315 * gcj/array.h (__JArray): `length' field now const. Added
3317 (class JArray): Added constructor.
3319 2000-11-23 Mark Wielaard <mark@klomp.org>
3321 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3324 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3326 * java/util/Vector.java: Improve exception messages.
3327 (Vector): Check initialCapacity for IllegalArgumentException.
3328 (tromToSize): Don't check for elementCount == elementData.length
3330 (toArray): Don't try to set null marker if target array is the same
3331 length as the vector.
3333 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3335 * Makefile.in: Rebuilt.
3336 * Makefile.am (core_java_source_files): Added Collections.java.
3337 * java/util/List.java: Merged from classpath.
3338 * java/util/Vector.java: Ditto.
3339 * java/util/Collections.java: From classpath.
3340 * java/util/ArrayList.java (addAll(Collection)): Call
3341 addAll(int,Collection) instead of duplicating code.
3342 (indexOf): Clean up int initialization.
3343 (clear): Set cleared array entries to null, to allow garbage
3345 * java/util/List.java: Minor formatting fixes.
3346 * java/util/SimpleTimeZone.java: ditto.
3348 2000-11-18 Tom Tromey <tromey@cygnus.com>
3350 * Makefile.in: Rebuilt.
3351 * Makefile.am (core_java_source_files): Added new files.
3352 * java/lang/reflect/ReflectPermission.java: New class.
3353 * java/io/FileFilter.java: From Classpath
3354 * java/io/FilePermission.java: From Classpath.
3356 2000-11-17 Tom Tromey <tromey@cygnus.com>
3358 * java/lang/reflect/AccessibleObject.java (isAccessible,
3359 setAccessible): Now public.
3361 * java/lang/natString.cc: Include Locale.h.
3362 (toUpperCase): Added `locale' argument. Handle locale
3364 (toLowerCase): Added `locale' argument. Handle locale
3366 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3367 CAPITAL_I): New defines.
3368 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3371 (toUpperCase, toLowerCase): New methods. Variants which accept
3374 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3377 * java/util/PropertyPermission.java: Re-merged from Classpath.
3379 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3381 * java/text/StringCharacterIterator.java: Reindented.
3382 (setText): New method.
3384 2000-11-17 Mark Wielaard <mark@klomp.org>
3386 Merge with Classpath (changes by Bryce McKinlay)
3387 * java/util/jar/*.java: Reformat all to unofficial standard coding
3388 style. No changes of substance.
3390 2000-11-17 Mark Wielaard <mark@klomp.org>
3392 * java/util/zip/*.java: Javadoc updates.
3394 2000-11-17 Tom Tromey <tromey@cygnus.com>
3396 * java/text/CollationKey.java: Implement Comparable.
3397 (compareTo(Object)): New method.
3398 * java/text/Collator.java (compare(Object,Object)): New method.
3399 Implement Comparator.
3401 * java/util/zip/InflaterInputStream.java (available): New method.
3402 (close): New method.
3403 (read, available, skip, fill): Throw exception if stream closed.
3404 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3405 getNextEntry): Throw exception if closed.
3407 2000-11-16 Tom Tromey <tromey@cygnus.com>
3409 * java/io/PushbackReader.java: Merged with Classpath.
3410 * java/util/Arrays.java: Updated from Classpath.
3412 * scripts/blocks.pl: New file.
3413 * java/lang/Character.java (Subset): New class.
3414 (UnicodeBlock): New class.
3416 * java/lang/Math.java (toDegrees, toRadians): New methods.
3418 * java/lang/Float.java: Implement Comparable.
3419 (compareTo): New methods.
3420 * java/lang/Double.java: Implement Comparable.
3421 (compareTo): New methods.
3423 2000-11-16 Warren Levy <warrenl@cygnus.com>
3425 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3427 (listeners): Made transient.
3428 (source): Renamed from 'bean'.
3429 (children): New field for serialization.
3430 (propertyChangeSupportSerializedDataVersion): Ditto.
3431 (serialVersionUID): Ditto.
3432 (writeObject): New serialization method.
3433 (readObject): New serialization method.
3434 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3436 (listeners): Made transient.
3437 (source): Renamed from 'bean'.
3438 (children): New field for serialization.
3439 (vetoableChangeSupportSerializedDataVersion): Ditto.
3440 (serialVersionUID): Ditto.
3441 (writeObject): New serialization method.
3442 (readObject): New serialization method.
3443 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3444 to allow constructor to have a return type (i.e. the class that the
3445 constructor constructs).
3447 2000-11-14 Tom Tromey <tromey@cygnus.com>
3449 * Makefile.in: Rebuilt.
3450 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3453 2000-11-02 Warren Levy <warrenl@cygnus.com>
3455 * java/io/ObjectInputStream.java (readObject): Added code to
3456 conditionally dump out the serialized data.
3457 Handle ENDBLOCKDATA case a bit more gracefully since the current
3458 behavior doesn't seem to work as expected.
3459 (readStreamHeader): Added code for serialized data dumper.
3460 (readNextBlock): Ditto.
3461 (readFields): Ditto.
3462 (dump): New private static field for turning on/off dumper.
3463 (setDump): New native method.
3464 (dumpElement): New native method.
3465 (dumpElementln): New native method.
3466 * java/io/natObjectInputStream.cc (setDump): New method.
3467 (dumpElement): New method.
3468 (dumpElementln): New method.
3470 2000-11-02 Warren Levy <warrenl@cygnus.com>
3472 * java/net/InetAddress.java (addr): Renamed from 'address'.
3473 (address): New field to match Serialized Form doc.
3474 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3475 (family): New serialization field.
3476 (serialVersionUID): New field.
3477 (readObject): New method.
3478 (writeObject): New method.
3479 (getFamily): New native method.
3480 (InetAddress): Set family.
3481 * java/net/natInetAddress.cc (getFamily): New method.
3482 (addr): Renamed from 'address'.
3483 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3484 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3485 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3487 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3489 * java/util/AbstractList.java (SubList): Make it a top-level private
3491 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3493 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3494 * Makefile.in: Rebuilt.
3496 2000-11-02 Tom Tromey <tromey@cygnus.com>
3498 * Makefile.in: Rebuilt.
3499 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3502 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3504 * java/util/AbstractList.java (remove): Comment out modCount increment
3505 to work around compiler bug.
3508 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3510 * java/util/AbstractList.java: Throw messages with
3511 IndexOutOfBoundsExceptions.
3512 (listIterator()): Call listIterator(0).
3513 (size): New field. Initialize to size().
3514 (hasNext): Test position against size, not size().
3515 (remove): Increment knownMod by one instead of resetting it from
3518 (SubList.upMod): Removed.
3519 (SubList.set): Don't call upMod() or update knownMod.
3520 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3521 (SubList.remove): Ditto.
3522 (SubList.addAll): Don't call backingList.size(). Increment size from
3524 (SubList.iterator): New method. Call listIterator(0).
3525 (SubList.listIterator): New method. Restore code to return an anonymous
3526 listIterator implementation (with some changes).
3527 * java/util/AbstractSequentialList.java: Throw messages with
3528 IndexOutOfBoundsExceptions.
3529 (addAll): Add a specnote.
3530 * java/util/ArrayList.java (removeRange): Get the math right.
3531 (addAll): Increment modCount _before_ creating iterator.
3532 * java/util/LinkedList.java: Rewritten, mostly.
3534 2000-11-01 Tom Tromey <tromey@cygnus.com>
3536 * scripts/encodings.pl: Added `ASCII' alias.
3537 * Makefile.in: Rebuilt.
3538 * Makefile.am (convert_source_files): Added new files.
3539 * gnu/gcj/convert/Input_ASCII.java: New file.
3540 * gnu/gcj/convert/Output_ASCII.java: New file.
3541 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3542 out-of-range characters.
3543 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3544 (read): Swap bytes if required. Treat `count' as character count,
3546 (write): Likewise. Also, handle case where iconv fails on a given
3548 (init): Put encoding into exception.
3549 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3550 (static): Call iconv_init. Rebuilt alias list.
3551 (iconv_init): New private method.
3553 2000-11-01 Tom Tromey <tromey@cygnus.com>
3555 * Makefile.in: Rebuilt.
3556 * Makefile.am (install-exec-hook): Only make a single symlink, and
3557 remove the destination before making the link.
3558 * configure: Rebuilt.
3559 * configure.in: Call AC_PROG_LN_S.
3561 2000-10-31 Warren Levy <warrenl@cygnus.com>
3563 * jni.cc: Added include of java/lang/ThreadGroup.h.
3564 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3565 per change of 2000-10-05.
3567 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3569 * java/util/BitSet.java: Updated @specnote.
3571 * java/io/Reader.java: Merge docs from classpath.
3572 (skip): Synchronize on `lock'.
3573 * java/io/FileReader.java: Import correct implementation from
3575 * java/io/StringReader.java: Merge docs from classpath.
3576 (ready): Throw IOException if stream is closed.
3578 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3580 * java/util/AbstractCollection.java (addAll): Use size() instead of
3581 hasNext() in iterator loop.
3583 (contains): Ditto. Simplify loop.
3584 (containsAll): Ditto.
3589 (toString): Ditto. Use string concatenation operators, not
3591 * java/util/AbstractList.java (addAll): Use size() instead of
3592 hasNext() in iterator loop.
3595 (indexOf): Ditto. Don't take null check outside of the loop.
3596 (iterator): Return an AbstractListItr instead of anonymous class.
3597 (lastIndexOf): Use a for loop bounded by size() instead of
3598 hasPrevious() in iterator loop.
3599 (listIterator): Return an AbstractListItr.
3600 (removeRange): Remove bounds checking code and docs.
3601 (AbstractListItr): New inner class. Code moved here from
3603 (SubList.iterator): Removed. Use default implementation from
3604 AbstractList instead.
3605 (SubList.listIterator): As above.
3606 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3607 instead of hasNext() in iterator loop.
3608 (containsValue): Ditto.
3614 (toString): Ditto. Use string concatenation operators, not
3616 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3617 bounded by size() instead of hasNext() in iterator loop.
3618 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3619 part of normal execution flow. Do an explicit null check instead.
3620 * java/util/ArrayList.java (_iSize): Rename to `size'.
3621 (_arData): Rename to `data'.
3622 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3625 (removeRange): Make protected. Don't check bounds.
3626 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3628 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3630 (addAll (int, Collection)): Check lower bounds. Simplify exception
3632 (clone): Clone the data array too.
3633 (indexOf): Inline doesEqual().
3634 (lastIndexOf): Ditto.
3635 (clear): Don't set array data to null.
3636 (set): Check lower bounds. Simplify exception string.
3637 (toArray): Correct comment.
3638 (trimToSize): Don't update modCount, this is not a structural change.
3641 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3643 (toString): Declare `bit' as long, not int.
3644 (data): Made package-private, not private.
3646 2000-10-27 Warren Levy <warrenl@cygnus.com>
3648 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3649 array elements to true.
3651 2000-10-27 Warren Levy <warrenl@cygnus.com>
3653 * Makefile.am: Added locale files from Classpath.
3654 * Makefile.in: Rebuilt.
3655 * gnu/java/locale/Calendar.java: New file.
3656 * gnu/java/locale/Calendar_de.java: New file.
3657 * gnu/java/locale/Calendar_en.java: New file.
3658 * gnu/java/locale/Calendar_nl.java: New file.
3659 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3660 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3661 serialization compatibility.
3662 (scale): Made private.
3663 (serialVersionUID): New field.
3664 * java/math/BigInteger.java (ival): Made transient.
3665 (words): Made transient.
3666 (bitCount): New serialization field.
3668 (firstNonzeroByteNum): Ditto.
3669 (lowestSetBit): Ditto.
3672 (serialVersionUID): New field.
3673 (readObject): New method.
3674 (writeObject): New method.
3675 * java/util/BitSet.java (serialVersionUID): New field.
3676 * java/util/Calendar.java: Replaced with Classpath file.
3677 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3678 of getDefault() for TimeZone or Locale instead of passing nulls.
3679 * java/util/Locale.java (serialVersionUID): New field.
3680 (writeObject): New method.
3681 (readObject): New method.
3682 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3684 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3686 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3687 (core_java_source_files): Put java.lang, java.io, and java.util here.
3688 (ordinary_java_source_files): Order so that core_java_source_files are
3690 (java_source_files): Reorder so that special_java_source_files are
3692 * configure.in: Don't pass -I flag to gcj.
3693 * Makefile.in: Rebuilt.
3694 * configure: Rebuilt.
3696 2000-10-25 Tom Tromey <tromey@cygnus.com>
3698 * Makefile.in: Rebuilt.
3699 * Makefile.am (install-exec-hook): New target.
3701 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3703 * java/util/EventObject.java: Merged from classpath.
3705 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3708 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3710 * java/util/AbstractSet.java (equals): Re-installed original code.
3712 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3714 * Makefile.am: Added rules for libgcjx library.
3715 * Makefile.in: Rebuilt.
3716 * configure.in: Added check for X.
3717 * configure: Rebuilt.
3718 * gnu/awt/LightweightRedirector.java: New file.
3719 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3720 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3721 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3722 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3723 * gnu/awt/j2d/MappedRaster.java: New file.
3724 * gnu/awt/xlib/XCanvasPeer.java: New file.
3725 * gnu/awt/xlib/XEventLoop.java: New file.
3726 * gnu/awt/xlib/XEventQueue.java: New file.
3727 * gnu/awt/xlib/XFontMetrics.java: New file.
3728 * gnu/awt/xlib/XFramePeer.java: New file.
3729 * gnu/awt/xlib/XGraphics.java: New file.
3730 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3731 * gnu/awt/xlib/XPanelPeer.java: New file.
3732 * gnu/awt/xlib/XToolkit.java: New file.
3733 * gnu/gcj/xlib/Clip.java: New file.
3734 * gnu/gcj/xlib/Colormap.java: New file.
3735 * gnu/gcj/xlib/Display.java: New file.
3736 * gnu/gcj/xlib/Drawable.java: New file.
3737 * gnu/gcj/xlib/Font.java: New file.
3738 * gnu/gcj/xlib/GC.java: New file.
3739 * gnu/gcj/xlib/Pixmap.java: New file.
3740 * gnu/gcj/xlib/Screen.java: New file.
3741 * gnu/gcj/xlib/Visual.java: New file.
3742 * gnu/gcj/xlib/WMSizeHints.java: New file.
3743 * gnu/gcj/xlib/Window.java: New file.
3744 * gnu/gcj/xlib/WindowAttributes.java: New file.
3745 * gnu/gcj/xlib/XAnyEvent.java: New file.
3746 * gnu/gcj/xlib/XButtonEvent.java: New file.
3747 * gnu/gcj/xlib/XColor.java: New file.
3748 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3749 * gnu/gcj/xlib/XConnectException.java: New file.
3750 * gnu/gcj/xlib/XEvent.java: New file.
3751 * gnu/gcj/xlib/XException.java: New file.
3752 * gnu/gcj/xlib/XExposeEvent.java: New file.
3753 * gnu/gcj/xlib/XID.java: New file.
3754 * gnu/gcj/xlib/XImage.java: New file.
3755 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3756 * gnu/gcj/xlib/natClip.cc: New file.
3757 * gnu/gcj/xlib/natColormap.cc: New file.
3758 * gnu/gcj/xlib/natDisplay.cc: New file.
3759 * gnu/gcj/xlib/natDrawable.cc: New file.
3760 * gnu/gcj/xlib/natFont.cc: New file.
3761 * gnu/gcj/xlib/natGC.cc: New file.
3762 * gnu/gcj/xlib/natPixmap.cc: New file.
3763 * gnu/gcj/xlib/natScreen.cc: New file.
3764 * gnu/gcj/xlib/natVisual.cc: New file.
3765 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3766 * gnu/gcj/xlib/natWindow.cc: New file.
3767 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3768 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3769 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3770 * gnu/gcj/xlib/natXColor.cc: New file.
3771 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3772 * gnu/gcj/xlib/natXException.cc: New file.
3773 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3774 * gnu/gcj/xlib/natXImage.cc: New file.
3775 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3776 * java/awt/EventDispatchThread.java: Start thead on creation.
3778 2000-10-20 Tom Tromey <tromey@cygnus.com>
3780 From Arno J. Klaassen:
3781 * interpret.cc: Include <stdlib.h> for alloca.
3782 * defineclass.cc: Include <stdlib.h> for alloca.
3784 * Makefile.in: Rebuilt.
3785 * Makefile.am: Include deps.mk.
3786 (GCJCOMPILE): Added -MD, -MT, and -MF.
3787 ($(javao_files)): Don't depend on libgcj.zip.
3788 (all-recursive): New target.
3789 (%.lo:%.cc): Do dependency tracking.
3790 ($(nat_headers)): Don't depend on libgcj.zip.
3791 * configure: Rebuilt.
3792 * configure.in: Make .d files and deps.mk.
3794 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3796 * exception.cc: Don't #include "exception".
3797 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3799 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3800 * Makefile.in: Updated.
3802 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3804 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3805 * java/awt/peer/ComponentPeer.java (disable): Removed.
3808 (minimumSize): Removed.
3809 (preferredSize): Removed.
3812 * java/awt/peer/ListPeer.java (addItem): Removed.
3814 (minimumSize): Removed.
3815 (preferredSize): Removed.
3816 (setMultipleSelections): Removed.
3817 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3818 (remove): Renamed from removeMenu.
3819 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3821 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3822 (remove): Renamed from removeItem.
3823 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3824 (getMinimumSize): Removed.
3825 (getPreferredSize): Removed.
3826 (minimumSize): Removed.
3827 (preferredSize): Removed.
3828 (replaceText): Removed.
3829 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3830 (preferredSize): Removed.
3831 (getMinimumSize): Removed.
3832 (getPreferredSize): Removed.
3833 (setEchoCharacter): Removed.
3835 2000-10-10 Warren Levy <warrenl@cygnus.com>
3837 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3838 * java/sql/Date.java (serialVersionUID): New field.
3839 * java/sql/Time.java (serialVersionUID): New field.
3840 * java/sql/Timestamp.java (serialVersionUID): New field.
3841 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3842 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3843 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3844 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3845 (readObject): New serialization method.
3846 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3847 (serialVersionOnStream): New field.
3848 (readObject): New serialization method.
3849 (getMonetaryDecimalSeparator): New method.
3850 (setMonetaryDecimalSeparator): New method.
3851 * java/text/NumberFormat.java (maxFractionDigits): New field.
3852 (maxIntegerDigits): New field.
3853 (minFractionDigits): New field.
3854 (minIntegerDigits): New field.
3855 (serialVersionOnStream): New field.
3856 (serialVersionUID): New field.
3857 (readObject): New serialization method.
3858 (writeObject): New serialization method.
3859 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3860 (serialVersionOnStream): New field.
3861 (serialVersionUID): New field.
3862 (readObject): New serialization method.
3864 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3866 * configure.in (GCJ): Avoid bogus error message when looking for
3867 (and not finding) gcj in the build tree.
3868 * configure: Rebuilt.
3870 2000-10-09 Tom Tromey <tromey@cygnus.com>
3872 * configure: Rebuilt.
3873 * configure.in: Include sys/types.h when checking for socklen_t.
3874 From Arno J. Klaassen.
3876 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3878 * include/jvm.h: Enable __builtin_expect().
3880 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3881 the main program. Fix for PR libgcj/341.
3883 2000-10-07 Tom Tromey <tromey@cygnus.com>
3885 * java/util/Properties.java: Merged with Classpath version.
3887 2000-10-05 Tom Tromey <tromey@cygnus.com>
3889 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3890 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3891 * java/lang/Class.h (Object): Added `class$' field.
3892 * java/lang/Object.h (Object): Added `class$' field.
3893 * defineclass.cc (ClassClass): Use `class$' form.
3894 (ClassObject): Likewise.
3895 * resolve.cc (ClassObject): Use `class$' form.
3896 (ObjectClass): Likewise.
3897 * interpret.cc (ClassError): Removed.
3898 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3900 (IntegerClass): Likewise.
3901 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3903 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3904 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3905 SerializableClass): Likewise.
3906 Include Serializable.h, Cloneable.h.
3907 * java/lang/natSystem.cc (SystemClass): Removed.
3908 (init_properties): Use `class$' form.
3909 * java/lang/natObject.cc (CloneableClass): Removed.
3910 (clone): Use `class$' form.
3911 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3912 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3913 ConstructorClass): Likewise.
3914 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3915 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3916 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3917 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3919 (ClassClass): Likewise.
3920 * include/jvm.h (StringClass): Use `class$' form.
3921 * prims.cc (ObjectClass): Removed.
3922 (_Jv_RunMain): Use `class$' form.
3923 (_Jv_AllocObject): Likewise.
3924 * jni.cc (ClassClass): Use `class$' form.
3925 (ThrowableClass): Likewise.
3926 (ObjectClass): Likewise.
3927 (MethodClass): Likewise.
3928 (ThreadGroupClass): Likewise.
3929 (NativeThreadClass): Likewise.
3930 * boehm.cc (ObjectClass): Removed.
3931 (ClassClass): Removed.
3932 (_Jv_MarkObj): Use `class$' form.
3933 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3936 2000-10-05 Warren Levy <warrenl@cygnus.com>
3938 * Makefile.am: Removed java/io/Replaceable.java and
3939 java/io/Resolvable.java.
3940 * Makefile.in: Rebuilt.
3941 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3943 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3945 (processResolution): Handle readResolve method via reflection with
3946 removal of Resolvable interface.
3947 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3948 method via reflection with removal of Replaceable interface.
3949 * java/io/Replaceable.java: Removed.
3950 * java/io/Resolvable.java: Removed.
3951 * java/security/Key.java (serialVersionUID): New field.
3952 * java/security/Provider.java (serialVersionUID): New field.
3953 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3955 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3957 * java/sql/DataTruncation.java (serialVersionUID): New field.
3958 * java/sql/SQLException.java (serialVersionUID): New field.
3959 * java/sql/SQLWarning.java (serialVersionUID): New field.
3960 * java/util/Date.java (serialVersionUID): New field.
3961 (millis): Made transient.
3962 (readObject): New method.
3963 (writeObject): New method.
3965 2000-10-05 Tom Tromey <tromey@cygnus.com>
3967 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3969 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3971 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3972 (JvRunMain): Set _Jv_argv and _Jv_argc.
3973 * java/awt/Component.java: Minor fixes.
3974 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3975 * java/awt/Toolkit.java (systemEventQueue): Removed.
3976 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3977 * java/awt/Window.java (getToolkit): Don't call super.
3978 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3979 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3980 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3981 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3982 * gnu/awt/gtk/GtkFramePeer.java: New file.
3983 * gnu/awt/gtk/GtkMainThread.java: New file.
3984 * gnu/awt/gtk/GtkToolkit.java: New file.
3985 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3986 * gnu/awt/gtk/gtkcommon.cc: New file.
3987 * gnu/awt/gtk/gtkcommon.h: New file.
3988 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3989 * gnu/awt/gtk/natGtkContainerPeer.cc: New