1 2001-09-11 Tom Tromey <tromey@redhat.com>
3 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
5 2001-09-10 Tom Tromey <tromey@redhat.com>
7 * java/util/Properties.java (load): Correctly read \u sequences.
8 Report from Anthony Green.
10 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
12 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
14 * configure: Re-generate.
16 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18 * include/jvm.h (_Jv_AllocRawObj): New prototype.
19 * boehm.cc (_Jv_AllocRawObj): Implement.
20 * nogc.cc (_Jv_AllocRawObj): Likewise.
21 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
23 2001-09-06 Anthony Green <green@redhat.com>
25 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
26 redundant method calls.
27 (emptyLocale): New private member.
28 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
31 2001-09-06 Tom Tromey <tromey@redhat.com>
33 * java/text/RuleBasedCollator.java (clone): Rewrote.
34 (RuleBasedCollator(RuleBasedCollator)): Removed.
35 * java/text/MessageFormat.java: Re-merged from Classpath.
36 * java/text/DecimalFormat.java: Re-merged from Classpath.
38 2001-09-06 Anthony Green <green@redhat.com>
40 * include/jvm.h: Declare _Jv_RegisterResource.
41 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
42 gnu/gcj/protocol/core/Connection.java,
43 gnu/gcj/protocol/core/Handler.java,
44 gnu/gcj/protocol/core/CoreInputStream.java,
45 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
46 * java/net/URL.java (setURLStreamHandler): Use
47 gnu.gcj.protocol.core.Handler for the core protocol.
48 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
49 end of java.class.path.
50 * Makefile.am (ordinary_java_source_files): Add new java files.
51 (nat_source_files): Add new native code files.
52 * Makefile.in: Rebuilt.
54 2001-09-05 Tom Tromey <tromey@redhat.com>
56 * java/util/Properties.java: Re-merged from Classpath.
58 From Eric Blake, via Classpath:
59 * java/lang/String.java (CaseInsensitiveComparator): New class.
60 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
62 * java/util/Date.java: Re-merged with Classpath.
64 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
66 2001-09-05 Corey Minyard <minyard@acm.org>
67 Tom Tromey <tromey@redhat.com>
69 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
70 (_Jv_RegisterClassHookDefault): Throw error if a class is
73 2001-09-05 Tom Tromey <tromey@redhat.com>
75 * java/lang/natSystem.cc (init_properties): Default locale is
78 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
80 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
81 here, DecimalFormat.applyPattern() does not throw it.
83 2001-09-04 Tom Tromey <tromey@redhat.com>
85 * java/util/AbstractMap.java: Re-merged with Classpath.
86 * java/util/IdentityHashMap.java: Re-merged with Classpath.
88 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
89 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
90 gnu/gcj/text/LocaleData_en_US.java: Removed.
91 * java/text/DateFormatSymbols.java (clone): Use Classpath
94 (DateFormatSymbols): Look in gnu.java.locale for information.
95 (DateFormatSymbols(DateFormatSymbols)): Removed.
96 (safeGetResource): Removed.
97 (DateFormatSymbols): Throws MissingResourceException.
98 (ampmsDefault, erasDefault, localPatternCharsDefault,
99 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
100 weekdaysDefault, zoneStringsDefault): Removed.
101 * java/text/Collator.java (getAvailableLocales): Use modified
102 Classpath implementation.
103 (getInstance): Look in gnu.java.locale for information.
105 * java/text/MessageFormat.java: Reindented.
107 * java/text/FieldPosition.java: Merged with Classpath.
108 * java/text/ParsePosition.java: Merged with Classpath.
109 * java/text/Format.java: Merged with Classpath.
110 * java/text/StringCharacterIterator.java
111 (StringCharacterIterator(StringCharacterIterator,int,int)): New
112 constructor from Classpath.
113 * java/text/Annotation.java,
114 java/text/AttributedCharacterIterator.java,
115 java/text/AttributedString.java,
116 java/text/AttributedStringIterator.java: New from Classpath.
117 * java/text/CharacterIterator.java: Copied from Classpath.
118 * java/text/ChoiceFormat.java: Reindented.
120 * gnu/java/text/BaseBreakIterator.java,
121 gnu/java/text/CharacterBreakIterator.java,
122 gnu/java/text/LineBreakIterator.java,
123 gnu/java/text/LocaleData_en.java,
124 gnu/java/text/LocaleData_en_US.java,
125 gnu/java/text/SentenceBreakIterator.java,
126 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
127 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
129 * java/text/BreakIterator.java (getAvailableLocales): Use
130 Classpath implementation.
131 (getInstance): Look in gnu.java.locale for information.
132 (getCharacterInstance, getLineInstance, getSentenceInstance,
133 getWordInstance): Look in gnu.java.text for implementations.
134 * java/text/DecimalFormatSymbols.java: Reindented
135 (clone): Use Classpath implementation.
136 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
137 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
139 * java/text/DateFormat.java: Merged with Classpath.
140 (getAvailableLocales): Use Classpath implementation.
141 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
142 (computeInstance): Look in gnu.java.locale for information.
143 * java/text/NumberFormat.java: Reindented.
144 (computeInstance): Look in gnu.java.locale for information.
145 (getAvailableLocales): Use implementation from Classpath.
146 (setMaximumIntegerDigits): Likewise.
147 (setMinimumIntegerDigits): Likewise.
148 (setMaximumFractionDigits): Likewise.
150 * java/text/DecimalFormat.java: Reindented.
151 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
152 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
153 * Makefile.in: Rebuilt.
154 * Makefile.am (ordinary_java_source_files): Added all new files.
155 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
156 * java/security/spec/AlgorithmParameterSpec.java,
157 java/security/spec/KeySpec.java: Re-merged with Classpath.
159 Fix for PR libgcj/4213:
160 * Makefile.am (ordinary_java_source_files): Added new file.
161 * gnu/gcj/text/LocaleData.java: New file.
163 2001-09-03 Tom Tromey <tromey@redhat.com>
165 * java/lang/reflect/natField.cc (set): Allow for case when the
166 value is null. Fixes PR libgcj/4208.
168 * gcj/javaprims.h: Regenerated class list.
169 * java/lang/IllegalThreadStateException.java,
170 java/lang/InstantiationException.java: Minor comment tweaks to
171 satisfy libgcj `classes.pl' script.
173 2001-09-01 Tom Tromey <tromey@redhat.com>
175 * Makefile.in: Rebuilt.
176 * Makefile.am (core_java_source_files): Added
177 UnsupportedClassVersionError.
178 * java/lang/UnsupportedClassVersionError.java: New file from
181 * java/io/CharConversionException.java, java/io/EOFException.java,
182 java/io/FileNotFoundException.java, java/io/IOException.java,
183 java/io/InterruptedIOException.java,
184 java/io/ObjectStreamException.java,
185 java/io/OptionalDataException.java,
186 java/io/StreamCorruptedException.java,
187 java/io/SyncFailedException.java,
188 java/io/UTFDataFormatException.java,
189 java/io/UnsupportedEncodingException.java,
190 java/lang/AbstractMethodError.java,
191 java/lang/ArithmeticException.java,
192 java/lang/ArrayIndexOutOfBoundsException.java,
193 java/lang/ArrayStoreException.java,
194 java/lang/ClassCastException.java,
195 java/lang/ClassCircularityError.java,
196 java/lang/ClassFormatError.java,
197 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
198 java/lang/Exception.java,
199 java/lang/ExceptionInInitializerError.java,
200 java/lang/IllegalAccessError.java,
201 java/lang/IllegalAccessException.java,
202 java/lang/IllegalArgumentException.java,
203 java/lang/IllegalMonitorStateException.java,
204 java/lang/IllegalStateException.java,
205 java/lang/IllegalThreadStateException.java,
206 java/lang/IncompatibleClassChangeError.java,
207 java/lang/IndexOutOfBoundsException.java,
208 java/lang/InstantiationError.java,
209 java/lang/InstantiationException.java,
210 java/lang/InternalError.java, java/lang/InterruptedException.java,
211 java/lang/LinkageError.java,
212 java/lang/NegativeArraySizeException.java,
213 java/lang/NoClassDefFoundError.java,
214 java/lang/NoSuchFieldError.java,
215 java/lang/NoSuchFieldException.java,
216 java/lang/NoSuchMethodError.java,
217 java/lang/NoSuchMethodException.java,
218 java/lang/NullPointerException.java,
219 java/lang/NumberFormatException.java,
220 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
221 java/lang/SecurityException.java,
222 java/lang/StackOverflowError.java,
223 java/lang/StringIndexOutOfBoundsException.java,
224 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
225 java/lang/UnsatisfiedLinkError.java,
226 java/lang/UnsupportedOperationException.java,
227 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
228 java/lang/reflect/InvocationTargetException.java,
229 java/net/BindException.java, java/net/ConnectException.java,
230 java/net/MalformedURLException.java,
231 java/net/NoRouteToHostException.java,
232 java/net/ProtocolException.java, java/net/SocketException.java,
233 java/net/UnknownHostException.java,
234 java/net/UnknownServiceException.java,
235 java/text/ParseException.java: Copied from Classpath, thanks to
236 Mark Wielaard who did the merge.
238 * java/lang/System.java (getProperty): Use single argument form of
239 SecurityManager.checkPropertyAccess.
240 * Makefile.in: Rebuilt.
241 * Makefile.am (core_java_source_files): Added VMSecurityManager.
242 * java/lang/VMSecurityManager.java: New file.
243 * java/lang/SecurityManager.java: Merged with Classpath.
245 2001-08-31 Per Bothner <per@bothner.com>
247 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
248 (_Jv_RegisterClassHookDefault): Likewise.
249 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
250 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
251 (_Jv_RegisterClassHookDefault): New.function.
252 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
254 * java/lang/ClassLoader.java (system): Remove static field.
255 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
256 directly instead of using it to set the system field.
257 (loadClass): Use VMClassLoader.instance instead of system field.
258 (findSystemClass): Similar.
259 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
260 than ClassLoader::system which no longer exists.
261 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
263 2001-08-31 Tom Tromey <tromey@redhat.com>
265 * java/io/BufferedReader.java, java/io/ObjectInput.java,
266 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
267 Re-merged with Classpath.
269 Re-merge with Classpath:
270 * java/util/Comparator (equals): Added.
271 * java/io/PipedWriter.java (write): Changed argument to `int'.
273 * java/io/FileDescriptor.java (FileDescriptor()): New
275 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
277 * Makefile.in: Rebuilt.
278 * Makefile.am (ordinary_java_source_files): Removed
279 EnumerationChain, added DoubleEnumeration.
280 (nat_source_files): Added natResourceBundle.cc.
281 * java/util/natResourceBundle.cc: New file.
282 * gnu/java/util/DoubleEnumeration.java: New file.
283 * gnu/gcj/util/EnumerationChain.java: Removed.
284 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
285 * java/util/ResourceBundle.java: Merged with Classpath.
286 * java/util/StringTokenizer.java: Merged with Classpath.
287 * java/util/Locale.java: Merged with Classpath.
288 * java/util/Random.java: Merged with Classpath.
289 * java/util/PropertyResourceBundle.java: Merged with Classpath.
290 * java/util/ListResourceBundle.java: Merged with Classpath.
291 * java/util/ConcurrentModificationException.java: Re-merged with
293 * java/util/EmptyStackException.java: Likewise.
294 * java/util/MissingResourceException.java: Likewise.
295 * java/util/NoSuchElementException.java: Likewise.
296 * java/util/TooManyListenersException.java: Likewise.
298 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
299 * java/io/OptionalDataException.java: Merged with Classpath.
301 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
303 * exception.cc (PERSONALITY_FUNCTION): Simplify
306 2001-08-31 Tom Tromey <tromey@redhat.com>
308 * java/io/ByteArrayInputStream.java: Merged with Classpath.
310 2001-08-30 Tom Tromey <tromey@redhat.com>
312 * java/io/BufferedReader.java: Re-merged with Classpath.
314 2001-08-28 Per Bothner <per@bothner.com>
316 * java/math/BigInteger.java (init(int,Random)): New method.
317 Move body of constructor <init>(int,Random)) here.
318 Re-write it to avoid constructing unneeded temporaries.
319 (<init>(int,int,Random)): Use new init method to avoid constructing
320 extra temporary BigIntegers.
322 2001-08-27 Tom Tromey <tromey@redhat.com>
324 * java/rmi/activation/Activatable.java,
325 java/rmi/activation/ActivateFailedException.java,
326 java/rmi/activation/ActivationDesc.java,
327 java/rmi/activation/ActivationException.java,
328 java/rmi/activation/ActivationGroup.java,
329 java/rmi/activation/ActivationGroupDesc.java,
330 java/rmi/activation/ActivationGroupID.java,
331 java/rmi/activation/ActivationID.java,
332 java/rmi/activation/ActivationInstantiator.java,
333 java/rmi/activation/ActivationMonitor.java,
334 java/rmi/activation/ActivationSystem.java,
335 java/rmi/activation/Activator.java,
336 java/rmi/activation/UnknownGroupException.java,
337 java/rmi/activation/UnknownObjectException.java,
338 java/rmi/AccessException.java,
339 java/rmi/AlreadyBoundException.java,
340 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
341 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
342 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
343 java/rmi/NotBoundException.java,
344 java/rmi/RMISecurityException.java,
345 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
346 java/rmi/RemoteException.java, java/rmi/ServerError.java,
347 java/rmi/ServerException.java,
348 java/rmi/ServerRuntimeException.java,
349 java/rmi/StubNotFoundException.java,
350 java/rmi/UnexpectedException.java,
351 java/rmi/UnknownHostException.java,
352 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
353 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
354 java/rmi/registry/LocateRegistry.java,
355 java/rmi/registry/Registry.java,
356 java/rmi/registry/RegistryHandler.java,
357 java/rmi/server/ExportException.java,
358 java/rmi/server/LoaderHandler.java,
359 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
360 java/rmi/server/Operation.java,
361 java/rmi/server/RMIClassLoader.java,
362 java/rmi/server/RMIClientSocketFactory.java,
363 java/rmi/server/RMIFailureHandler.java,
364 java/rmi/server/RMIServerSocketFactory.java,
365 java/rmi/server/RMISocketFactory.java,
366 java/rmi/server/RemoteCall.java,
367 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
368 java/rmi/server/RemoteServer.java,
369 java/rmi/server/RemoteStub.java,
370 java/rmi/server/ServerCloneException.java,
371 java/rmi/server/ServerNotActiveException.java,
372 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
373 java/rmi/server/SkeletonMismatchException.java,
374 java/rmi/server/SkeletonNotFoundException.java,
375 java/rmi/server/SocketSecurityException.java,
376 java/rmi/server/UID.java,
377 java/rmi/server/UnicastRemoteObject.java,
378 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
379 gnu/java/rmi/dgc/DGCImpl_Skel.java,
380 gnu/java/rmi/dgc/DGCImpl_Stub.java,
381 gnu/java/rmi/registry/RegistryImpl.java,
382 gnu/java/rmi/registry/RegistryImpl_Skel.java,
383 gnu/java/rmi/registry/RegistryImpl_Stub.java,
384 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
385 gnu/java/rmi/server/ProtocolConstants.java,
386 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
387 gnu/java/rmi/server/RMIHashes.java,
388 gnu/java/rmi/server/RMIObjectInputStream.java,
389 gnu/java/rmi/server/RMIObjectOutputStream.java,
390 gnu/java/rmi/server/UnicastConnection.java,
391 gnu/java/rmi/server/UnicastConnectionManager.java,
392 gnu/java/rmi/server/UnicastRef.java,
393 gnu/java/rmi/server/UnicastRemoteCall.java,
394 gnu/java/rmi/server/UnicastRemoteStub.java,
395 gnu/java/rmi/server/UnicastServer.java,
396 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
397 Kaffe. Relabelled classes to fit into Classpath tree.
398 * Makefile.in: Rebuilt.
399 * Makefile.am (rmi_java_source_files): New macro.
400 (ordinary_java_source_files): Reference it.
401 (bin_PROGRAMS): Added rmic and rmiregistry.
402 (rmic_SOURCES): New macro.
403 (EXTRA_rmic_SOURCES): Likewise.
404 (rmic_LDFLAGS): Likewise.
405 (rmic_LINK): Likewise.
406 (rmic_LDADD): Likewise.
407 (rmic_DEPENDENCIES): Likewise.
408 (rmiregistry_SOURCES): New macro.
409 (EXTRA_rmiregistry_SOURCES): Likewise.
410 (rmiregistry_LDFLAGS): Likewise.
411 (rmiregistry_LINK): Likewise.
412 (rmiregistry_LDADD): Likewise.
413 (rmiregistry_DEPENDENCIES): Likewise.
415 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
417 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
419 * Makefile.am: New friends for java/lang/Thread.h.
420 * prims.cc (runFirst): Removed.
421 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
422 (_Jv_RunMain): Now takes either a klass or class name parameter.
423 Create a gnu.gcj.runtime.FirstThread and attach the native thread
424 to that, then run it using _Jv_ThreadRun. Remove special handling of
425 jar files, instead pass is_jar parameter through to FirstThread.
426 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
427 of _Jv_AttachCurrentThread.
428 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
429 (run): New method. Take care of looking up main class manifest
430 attribute and calling forName if neccessary. Then call call_main.
431 (call_main): New native method.
432 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
433 relocated from prims.cc. Look up and call main method.
434 * java/lang/Thread.java (run_): Removed.
435 * java/lang/natThread.cc (run_): Renamed to...
436 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
437 (_Jv_NotifyThreadStart): here. New function.
438 (countStackFrames, destroy, resume, suspend, stop): Throw
439 UnsupportedOperationExceptions rather than JvFail'ing.
440 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
441 Existing version wraps new variant.
444 2001-08-23 Tom Tromey <tromey@redhat.com>
446 * java/lang/reflect/Field.java (toString): Use
447 Method.appendClassName.
448 * java/lang/reflect/Constructor.java (toString): Use
449 Method.appendClassName.
450 * java/lang/reflect/Method.java: Reindented.
451 (appendClassName): New method.
453 * defineclass.cc (handleMethod ): Initialize `throws' field of
455 (read_one_method_attribute): Handle Exceptions attribute.
456 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
457 (ObjectClass): Removed.
458 (getType): Compute `exception_types'.
459 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
461 2001-08-21 Anthony Green <green@redhat.com>
463 * java/lang/natClassLoader.cc (findClass): Search for
464 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
466 2001-08-21 Jeff Sturm <jsturm@one-point.com>
468 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
471 2001-08-20 Tom Tromey <tromey@redhat.com>
473 * java/awt/GridBagConstraints.java: Removed comment.
475 * jni.cc (nathash, nathash_count, nathash_size): New globals.
476 (DELETED_ENTRY): New define.
477 (hash): New function.
478 (nathash_find_slot): Likewise.
479 (natrehash): Likewise.
480 (nathash_add): Likewise.
481 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
483 (nathash_find): New function.
484 (_Jv_LookupJNIMethod): Use it. Synchronize body.
485 (call): Synchronize around assignment.
487 2001-08-17 Jeff Sturm <jsturm@one-point.com>
489 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
490 starting from zero offset.
492 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
494 * boehm.cc: Include gc_local_alloc.h if appropriate.
495 (GC_GENERIC_MALLOC): Don't define.
496 (MAYBE_MARK): Redefine for GC 6.0.
497 (_Jv_MarkObj): Mark class differently.
498 (_Jv_AllocArray): Use GC_generic_malloc.
500 2001-08-17 Mark J Roberts <mjr@anarcast.net>
502 * java/math/BigInteger.java (randBytes): New method.
503 (BigInteger(int,Random)): Use randBytes.
505 2001-08-17 Tom Tromey <tromey@redhat.com>
507 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
509 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
511 * BigInteger.java: fix right shifts by nonzero multiples of 32.
513 2001-08-15 Tom Tromey <tromey@redhat.com>
515 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
516 (local_ref_table, global_ref_table): Now IdentityHashMap.
517 (_Jv_JNI_Init): Updated for new types.
518 (mark_for_gc): Likewise.
519 (unmark_for_gc): Likewise.
520 * gcj/javaprims.h: Rebuilt class list.
521 * Makefile.in: Rebuilt.
522 * Makefile.am (core_java_source_files): Added new file.
523 * java/util/IdentityHashMap.java: New file.
525 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
528 2001-08-09 Tom Tromey <tromey@redhat.com>
530 * java/awt/image/SampleModel.java (getPixel): Set correct array
531 element. From Chris Meyer.
533 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
535 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
536 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
538 2001-08-06 Tom Tromey <tromey@redhat.com>
540 * java/io/InputStreamReader.java (refill): Only call refill on
541 BufferedInputStream when appropriate constraints are met.
543 2001-08-05 Tom Tromey <tromey@redhat.com>
545 * java/io/StringWriter.java: Merged with Classpath.
546 * java/io/InputStream.java: Merged with Classpath.
547 * java/io/OutputStream.java: Merged with Classpath.
548 * java/io/PushbackInputStream.java: Merged with Classpath.
549 * java/io/CharArrayReader.java: Merged with Classpath.
550 * java/io/CharArrayWriter.java: Merged with Classpath.
552 2001-08-02 Tom Tromey <tromey@redhat.com>
554 * prims.cc (JNI_OnLoad): Don't declare.
555 (_JNI_OnLoad): Don't define.
556 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
558 2001-08-02 Tom Tromey <tromey@redhat.com>
560 * java/io/RandomAccessFile.java (seek): Let seek go past end of
562 (skipBytes): Don't fail if seeking past end of file.
563 * java/io/FileInputStream.java (skip): Don't fail if seeking past
565 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
567 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
569 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
571 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
573 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
575 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
576 to initialize global_ref_table/local_ref_table.
578 2001-08-02 Tom Tromey <tromey@redhat.com>
580 * configure: Rebuilt.
581 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
584 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
586 * include/posix.h (_POSIX_PII_SOCKET): Define.
587 * configure.in (HAVE_SOCKLEN_T): Define.
588 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
590 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
591 (java::net::PlainSocketImpl::accept): Use it.
592 Fixes PRs libgcj/3694, libgcj/3696.
594 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
595 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
596 * configure, include/config.h.in: Regenerate.
597 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
598 (mcastGrp): Likewise.
599 (java::net::PlainDatagramSocketImpl::setOption): Guard against
600 missing IPV6_MULTICAST_IF.
601 Fixes PR libgcj/3694.
603 2001-08-01 Jeff Sturm <jsturm@one-point.com>
605 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
607 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
609 * Makefile.in: Rebuilt.
610 * Makefile.am (GCJLINK): Added --tag=GCJ.
613 2001-07-30 Tom Tromey <tromey@redhat.com>
615 * java/util/Date.java: Re-merged with Classpath.
617 2001-07-30 Jeff Sturm <jsturm@one-point.com>
619 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
620 (_Jv_bind): New static function.
621 (bind): Use _Jv_bind.
622 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
623 (_Jv_bind, _Jv_connect): New static functions.
624 (bind): Use _Jv_bind.
625 (connect): Use _Jv_connect.
627 2001-07-30 Tom Tromey <tromey@redhat.com>
628 Corey Minyard <minyard@acm.org>
630 * gnu/gcj/convert/natIconv.cc (done): New methods.
631 * gnu/gcj/convert/Output_iconv.java (done): New method.
632 * gnu/gcj/convert/Input_iconv.java (done): New method.
633 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
635 (getDefaultEncodingClass): Removed.
636 (getDefaultEncoder): Use getEncoder.
638 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
640 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
642 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
644 (getDefaultDecodingClass): Removed.
645 (getDefaultDecoder): Use getDecoder.
646 (getDecoder): Look up decoder in cache.
648 * java/lang/natString.cc (init): Call `done' on converter.
649 (getBytes): Likewise.
651 2001-07-30 Tom Tromey <tromey@redhat.com>
653 * java/lang/Integer.java: Merged with Classpath.
655 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
657 * java/util/GregorianCalendar.java (GregorianCalendar): Call
658 setTimeInMillis() to set the default/current time.
660 2001-07-29 Mark Wielaard <mark@klomp.org>
662 * HACKING: add description on updating namespace
664 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
666 * java/util/Calendar.java (set): Never recompute fields here. They
667 will already be set if someone set time explicitly, and it can cause
668 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
669 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
670 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
672 * java/text/SimpleDateFormat.java (defaultCentury): New field.
673 (readObject): Call set2DigitYearStart if appropriate so that
674 defaultCentury is calculated.
675 (SimpleDateFormat): Don't bother clearing calendar here. Call
676 computeCenturyStart().
677 (set2DigitYearStart): Calculate and set defaultCentury.
678 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
680 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
681 2 numeric digits, use the 80-20 heuristic to parse the value into a
682 default century based on defaultCenturyStart.
683 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
685 2001-07-25 Tom Tromey <tromey@redhat.com>
687 * Makefile.in: Rebuilt.
688 * Makefile.am (libgcj.jar): Correctly fail when bytecode
691 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
693 * prims.cc (_JNI_OnLoad): New function.
694 (JNI_OnLoad): Use it.
695 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
697 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
699 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
700 Makefile.in: Regenerate.
702 2001-07-24 Tom Tromey <tromey@redhat.com>
704 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
707 2001-07-23 Tom Tromey <tromey@redhat.com>
709 * gcj/javaprims.h: Rebuilt class list.
710 * Makefile.in: Rebuilt.
711 * Makefile.am (core_java_source_files): Added VMClassLoader.
712 * java/lang/VMClassLoader.java: New file.
713 * java/lang/Boolean.java: Merged with Classpath.
714 * java/lang/Byte.java: Merged with Classpath.
715 * java/lang/Integer.java: Merged with Classpath.
716 * java/lang/Long.java: Merged with Classpath.
717 * java/lang/Number.java: Merged with Classpath.
718 * java/lang/Short.java: Merged with Classpath.
720 2001-07-22 Jeff Sturm <jsturm@one-point.com>
722 * configure.host: Enable hash synchronization for alpha*-*.
723 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
725 * java/lang/natObject.cc (compare_and_swap, release_set,
726 compare_and_swap_release): Added inline functions for alpha.
728 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
730 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
731 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
732 back to old RFC 2133 variants if missing.
734 2001-07-18 Tom Tromey <tromey@redhat.com>
736 * java/io/natFileWin32.cc (_access): Renamed.
738 * java/io/natFile.cc (_access): Renamed.
740 * java/io/File.java (access, stat): Add leading `_' to name.
743 2001-07-18 Tom Tromey <tromey@redhat.com>
746 * libgcj.spec.in (*lib): Added LIBICONV.
747 * configure: Rebuilt.
748 * configure.in: Call AM_ICONV. Don't check for iconv function.
749 Add parameters to JV_HASH_SYNCHRONIZATION define.
750 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
752 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
754 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
755 not by setting its size field.
757 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
759 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
762 2001-07-12 Tom Tromey <tromey@redhat.com>
763 David Brownell <david-b@pacbell.net>
765 Fix for PR libgcj/3426:
766 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
768 (read): Throw exception if character conversion fails.
769 * java/io/BufferedInputStream.java (refill): Now package-private.
770 * java/io/InputStreamReader.java (ready): Simplified.
771 (refill): New method.
774 2001-07-12 Tom Tromey <tromey@redhat.com>
776 Report from Henner Zeller:
777 * java/io/FileOutputStream.java (FileOutputStream): Throw
778 FileNotFoundException, not IOException.
780 2001-07-10 Anthony Green <green@redhat.com>
782 * Makefile.in: Rebuilt.
783 * Makefile.am: Add new files.
784 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
785 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
786 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
787 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
788 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
789 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
790 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
791 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
792 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
793 org/w3c/dom/ranges/DocumentRange.java,
794 org/w3c/dom/ranges/Range.java,
795 org/w3c/dom/ranges/RangeException.java,
796 org/w3c/dom/traversal/DocumentTraversal.java,
797 org/w3c/dom/traversal/NodeFilter.java,
798 org/w3c/dom/traversal/NodeIterator.java,
799 org/w3c/dom/traversal/TreeWalker.java,
800 org/xml/sax/ext/DeclHandler.java,
801 org/xml/sax/ext/LexicalHandler.java,
802 org/xml/sax/helpers/AttributeListImpl.java,
803 org/xml/sax/helpers/AttributesImpl.java,
804 org/xml/sax/helpers/DefaultHandler.java,
805 org/xml/sax/helpers/LocatorImpl.java,
806 org/xml/sax/helpers/NamespaceSupport.java,
807 org/xml/sax/helpers/ParserAdapter.java,
808 org/xml/sax/helpers/ParserFactory.java,
809 org/xml/sax/helpers/XMLFilterImpl.java,
810 org/xml/sax/helpers/XMLReaderAdapter.java,
811 org/xml/sax/helpers/XMLReaderFactory.java,
812 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
813 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
814 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
815 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
816 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
817 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
818 org/xml/sax/SAXNotRecognizedException.java,
819 org/xml/sax/SAXNotSupportedException.java,
820 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
821 org/xml/sax/XMLReader.java: New files.
823 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
825 * Makefile.am: Added `java/lang/ThreadLocal.java'.
826 * Makefile.in: Regenerate.
827 * java/lang/ThreadLocal.java: Initial import.
829 2001-07-07 Jeff Sturm <jsturm@one-point.com>
831 * Makefile.am (libgcj.jar): Don't recursively make
832 built_java_source_files. Avoid long command lines.
833 Don't change to $(srcdir) to invoke javac.
834 (libgcj.la, libgcjx.la); Avoid long command lines.
835 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
836 * Makefile.in: Rebuilt.
838 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
840 * include/i386-signal.h: Don't do anything with unsigned divide
841 overflow except throw an exception.
843 2001-07-05 Tom Tromey <tromey@redhat.com>
846 * java/lang/Class.h (Class(void)): Now private. Removed
847 implementation. From dmorsberger@sensysdl.com.
849 2001-07-02 Tom Tromey <tromey@redhat.com>
851 Fix for PR bootstrap/3281:
852 * aclocal.m4, configure: Rebuilt.
853 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
854 Correctly compute libgcj_basedir.
855 (mkinstalldirs): Define and subst.
857 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
860 * java/io/LineNumberReader.java (reset): Pass correct arguments to
863 2001-06-27 Tom Tromey <tromey@redhat.com>
865 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
868 2001-06-25 Tom Tromey <tromey@redhat.com>
870 * scripts/encodings.pl: Generate lower-case names. Updated URL
871 for `character-sets' file.
872 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
874 Rebuilt list of aliases.
876 2001-06-25 Tom Tromey <tromey@redhat.com>
878 * java/io/natFileDescriptorPosix.cc (open): Change error message
879 formatting. From David Brownell.
881 2001-06-21 Tom Tromey <tromey@redhat.com>
883 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
886 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
888 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
889 extraneous/malformed sign word.
891 2001-06-15 Tom Tromey <tromey@redhat.com>
893 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
895 2001-06-15 Tom Tromey <tromey@redhat.com>
897 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
898 NULL if no library on the list has the symbol.
899 (init): Call add_library on the program itself.
900 * prims.cc (JvRunMain): Initialize Runtime before searching for
902 (_Jv_RunMain): Likewise.
904 2001-06-15 Tom Tromey <tromey@redhat.com>
906 * jni.cc (ClassClass): Removed; updated all users.
907 (ObjectClass): Likewise.
908 (ThrowableClass): Likewise.
909 (MethodClass): Likewise.
910 (ThreadGroupClass): Likewise.
911 (local_ref_table): Renamed from `ref_table'.
912 (global_ref_table): New global.
913 (_Jv_JNI_Init): Initialize both ref tables.
914 (mark_for_gc): Added `ref_table' parameter.
915 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
917 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
918 (_Jv_JNI_DeleteGlobalRef): Likewise.
919 (_Jv_JNI_DeleteLocalRef): Likewise.
920 (_Jv_JNI_NewLocalRef): Likewise.
921 (_Jv_JNI_PopLocalFrame): Likewise.
922 (_Jv_JNI_GetStringChars): Likewise.
923 (_Jv_JNI_ReleaseStringChars): Likewise.
924 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
925 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
927 2001-06-14 Tom Tromey <tromey@redhat.com>
929 Fix for PR libgcj/3144:
930 * java/util/Date.java: Merged with Classpath.
932 2001-06-12 Tom Tromey <tromey@redhat.com>
934 * aclocal.m4, configure: Rebuilt.
935 * acinclude.m4: Find configure.host in srcdir.
937 2001-06-07 Tom Tromey <tromey@redhat.com>
939 Fix for PR libgcj/3059:
940 * java/lang/natSystem.cc (init_properties): Define `java.home'.
941 * Makefile.in: Rebuilt.
942 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
944 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
946 * exception.cc (cstdlib): Replaces stdlib.h.
947 (_Jv_Throw): Use std::abort().
948 (PERSONALITY_FUNCTION): Likewise.
950 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
952 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
953 nothing, as in autoconf 2.50.
954 * aclocal.m4, configure: Rebuilt.
956 2001-06-08 Tom Tromey <tromey@redhat.com>
958 * configure: Rebuilt.
959 * configure.in: Compute new aux dir using `pwd'.
961 2001-06-07 Tom Tromey <tromey@redhat.com>
963 For PR bootstrap/3075:
964 * configure, aclocal.m4, Makefile.am: Rebuilt.
965 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
966 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
967 relative to libgcj_basedir.
968 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
969 AC_CANONICAL_SYSTEM here.
970 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
972 ($(extra_headers)): New target.
974 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
975 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
977 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
978 table index is within allowed bounds. Ensure that we dont try to access
979 class itable at a negative offset. Avoid an ancestor table lookup if
980 source is a primitive type class.
981 (isInstance): Remove redundant isPrimitive() check.
983 2001-06-04 Tom Tromey <tromey@redhat.com>
985 * java/security/PublicKey.java: Extend Key.
986 * java/security/PrivateKey.java: Extend Key.
988 2001-06-02 Anthony Green <green@redhat.com>
990 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
991 alternate when USE_LTDL not defined.
993 2001-06-02 Anthony Green <green@redhat.com>
995 * configure: Rebuild.
996 * configure.in: Remove data_start hack.
997 * libgcj.spec.in: Ditto.
998 * Makefile.in: Rebuild.
999 * Makefile.am: Ditto.
1000 * libgcjdata.c: Remove.
1002 2001-06-02 Anthony Green <green@redhat.com>
1004 * configure: Rebuild.
1005 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1006 --without-libffi option. Tweak --disable-java-net processing.
1007 * Makefile.in: Rebuild.
1008 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1009 * include/config.h.in: Rebuild.
1010 * acconfig.h (USE_LIBFFI): Define.
1011 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1013 2001-06-02 Anthony Green <green@redhat.com>
1015 * configure: Rebuilt.
1016 * configure.in: Test for sigaction on native builds.
1017 * prims.cc: Check HAVE_SIGACTION.
1018 * include/config.h.in: Rebuilt.
1020 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1022 * natFile.cc (get_entry): Removed functions.
1023 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1024 Allocate enough storage for d_name if using readdir_r.
1026 2001-05-31 Tom Tromey <tromey@redhat.com>
1028 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1030 (write): Loop until write completes. From Corey Minyard.
1032 2001-05-29 Laurent Guerby <guerby@acm.org>
1034 * java/awt/geom/Rectangle2D.java: fix doc typo.
1036 2001-05-31 Tom Tromey <tromey@redhat.com>
1038 * java/sql/DriverManager.java (getDrivers): Handle case where
1039 driver's class loader is null. From Corey Minyard.
1041 2001-05-29 Tom Tromey <tromey@redhat.com>
1043 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1045 * configure: Rebuilt.
1046 * configure.in: Only add multilib support code if we just rebuilt
1049 2001-05-29 Andrew Haley <aph@redhat.com>
1051 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1052 pointer: the dwarf unwinder in libgcc will do everything that's
1054 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1055 more than we absolutely need to.
1056 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1057 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1059 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1061 * configure: Rebuilt.
1062 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1064 (SIGNAL_HANDLER): Use siginfo style handler.
1065 (INIT_SEGV): Likewise.
1066 (INIT_FPE): Likewise.
1067 * include/ppc-signal.h: Delete whole file.
1069 2001-05-24 Tom Tromey <tromey@redhat.com>
1071 * java/lang/natString.cc (init): Throw
1072 ArrayIndexOutOfBoundsException.
1073 (getChars): Likewise.
1074 (getBytes): Likewise.
1075 (valueOf): Likewise.
1077 * configure.in: Only allow hash synchronization when POSIX threads
1079 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1080 of sync info object.
1082 2001-05-23 Tom Tromey <tromey@redhat.com>
1084 * Makefile.in: Rebuilt.
1085 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1087 Revert patch of 2001-05-21:
1088 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1089 (libgcj_la_LIBADD): Likewise.
1090 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1091 (libgcjx_la_LIBADD): Likewise.
1093 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1094 * gcj/Makefile.in: Rebuilt.
1095 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1096 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1097 * gcj/libgcj-config.h.in: New file.
1098 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1099 * configure: Rebuilt.
1100 * configure.in: Enable hash synchronization by default on some
1102 (HASH_SYNC_SPEC): New subst.
1103 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1104 Correctly use `test -z' instead of `test -n' in a couple places.
1105 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1107 * configure.host (enable_java_net_default): Initialize.
1108 (enable_hash_synchronization_default): New variable.
1110 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1112 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1113 synchronization in use.
1114 (_Jv_MarkArray): Likewise.
1115 (_Jv_AllocBytes): Don't check return result.
1116 (handle_out_of_memory): New function.
1117 (_Jv_InitGC): Set GC_oom_fn.
1118 (trace_one_vtable): New global.
1119 (_Jv_AllocTraceOne): New function.
1120 * configure.in: Added --enable-hash-synchronization.
1121 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1122 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1123 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1124 (_Jv_AllocArray): Likewise.
1125 (_Jv_AllocBytes): Likewise.
1126 (_Jv_AllocPtrFreeObject): New function.
1127 (_Jv_AllocTraceOne): Likewise.
1128 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1130 (self_cache): New global.
1131 (_Jv_ThreadSelf_out_of_line): New function.
1132 * prims.cc (_Jv_AllocBytesChecked): Removed.
1133 (_Jv_ThrowNoMemory): New function.
1134 (_Jv_AllocObject): Don't check for null return from allocator.
1135 (_Jv_NewObjectArray): Likewise.
1136 (_Jv_AllocPtrFreeObject): New function.
1137 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1138 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1139 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1140 * include/boehm-gc.h (_Jv_AllocObj): Define.
1141 (_Jv_AllocPtrFreeObj): Define.
1142 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1143 (_Jv_ThrowNoMemory): Declare.
1144 (_Jv_AllocTraceOne): Declare.
1145 (_Jv_AllocBytesChecked): Removed.
1146 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1147 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1148 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1150 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1152 * java/lang/Object.h (sync_info): Conditional upon presence of
1153 hash synchronization.
1154 * java/lang/natObject.cc: Much new code to handle thin locks and
1155 hash synchronization.
1156 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1159 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1161 * gij.cc (version): Update copyright year.
1163 2001-05-22 Anthony Green <green@redhat.com>
1165 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1168 2001-05-21 Per Bothner <per@bothner.com>
1170 Implement invocation interface; don't create new thread for main.
1171 * java/lang/Thread.java (gen_name): Make native.
1172 (<init>(Thread,THreadGroup,Runnable,String)): New private
1173 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1174 * java/lang/natThread.cc (gen_name): New implementation.
1175 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1176 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1177 (_Jv_CreateJavaVM): New runtime initialization procedure.
1178 (runFirst): New proecdure - mostly code from old FirstThread::run.
1179 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1180 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1181 JvDetachCurrentThread): New inline wrappers.
1182 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1183 _Jv_DetachCurrentThread): New declarations.
1184 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1185 (getMain): new static method.
1186 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1187 by runFirst in prims.cc.
1188 (java/lang/Thread.h): Update for new invocation interface.
1189 * include/posix-threads.h (_Jv_ThreadRegister,
1190 _Jv_ThreadUnRegister): New declarations.
1191 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1192 (really_start): Use new _Jv_ThreadRegister.
1193 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1194 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1195 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1196 Complain of called when _Jv_OnlyThread already set.
1197 (_Jv_ThreadStart): Always JvFail.
1198 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1199 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1200 * win32-threads.cc (struct starter): Remove objet field -
1201 we use _Jv_Thread_t's new thread_obj field instead.
1202 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1203 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1204 (really_start): Use new _Jv_ThreadRegister.
1205 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1206 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1207 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1208 Removed - no longer needed with new invocation interface.
1209 * Makefile.am: Update for removed/added files.
1211 2001-05-21 Per Bothner <per@bothner.com>
1213 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1214 (libgcj_la_LIBADD): Likewise.
1215 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1217 2001-05-21 Per Bothner <per@bothner.com>
1219 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1220 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1221 taken from old Integer.toString code.
1222 (Integer::valueOf): Use _Jv_FormatInt.
1223 * java/lang/Integer.java (toString): Just use call String.valueOf.
1224 * java/lang/Long.java (toString): Fix typo in comment.
1225 * java/lang/String.java (valueOf(int)): Make native.
1226 * java/lang/StringBuffer.java (append(int)): Make native.
1227 * java/lang/natStringBuffer.cc: New file, for append(jint).
1228 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1230 2001-05-21 Tom Tromey <tromey@redhat.com>
1232 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1234 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1236 * include/dwarf2-signal.h: New file.
1237 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1238 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1239 * configure: Rebuilt.
1241 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1243 * configure.in: Update boehm-gc include dir for new GC version.
1244 * configure: Rebuilt.
1245 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1247 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1248 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1249 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1252 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1254 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1255 (_Jv_MutexInit): Likewise.
1257 2001-05-18 Tom Tromey <tromey@redhat.com>
1259 * Makefile.in: Rebuilt.
1260 * Makefile.am (awt_java_source_files): Added Polygon.java.
1262 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1264 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1265 * gcj/javaprims.h: ... here.
1266 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1268 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1270 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1271 with length of ioffset table.
1272 (_Jv_IsAssignableFrom): Likewise.
1274 2001-05-17 Per Bothner <per@bothner.com>
1276 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1278 2001-05-16 Tom Tromey <tromey@redhat.com>
1280 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1283 2001-05-15 Tom Tromey <tromey@redhat.com>
1285 * java/util/GregorianCalendar.java (computeTime): Only call
1288 2001-05-14 Tom Tromey <tromey@redhat.com>
1290 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1291 ZONE_OFFSET just before computing the time.
1293 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1295 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1296 * Makefile.in: Regenerate (by hand).
1297 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1298 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1300 2001-05-11 Richard Henderson <rth@redhat.com>
1302 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1303 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1305 2001-05-11 Richard Henderson <rth@redhat.com>
1307 * exception.cc: Include unwind-pe.h. Remove all pointer
1310 2001-05-10 Tom Tromey <tromey@redhat.com>
1312 * Makefile.in: Rebuilt.
1313 * Makefile.am (awt_java_source_files): Added Polygon.java.
1314 * java/awt/Polygon.java: New file.
1316 * java/awt/geom/AffineTransform.java
1317 (setToRotation(double,double,double)): New method.
1318 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1319 (setToShear): Likewise.
1321 2001-05-10 Tom Tromey <tromey@redhat.com>
1323 * java/util/GregorianCalendar.java: Imported from Classpath.
1324 * gnu/java/locale/LocaleInformation_nl.java: New file from
1326 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1327 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1328 * gnu/java/locale/LocaleInformation.java: Likewise.
1329 * natGregorianCalendar.cc: Removed.
1330 * Makefile.in: Rebuilt.
1331 * Makefile.am (nat_source_files): Removed
1332 natGregorianCalendar.cc.
1334 2001-05-10 Tom Tromey <tromey@redhat.com>
1336 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1338 (defaultCenturyStart): Use it.
1339 (readObject): Likewise.
1340 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1342 (parse): Copy the calendar before modifying it. Correctly handle
1345 * java/util/Calendar.java (clear): Set field value(s) to 0.
1347 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1349 * Calendar.java (get): Clear areFieldsSet if requested field
1351 (set): Unset fields that depend on new value.
1353 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1355 * java/lang/Class.h (_Jv_Self): New union type.
1356 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1357 Jeff Sturm and Fergus Henderson.
1359 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1361 * java/lang/ClassLoader.java: Remove dead code fragment.
1363 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1365 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1367 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1369 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1371 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1372 * configure.host (EXCEPTIONSPEC): New.
1373 * configure.in (EXCEPTIONSPEC): New.
1374 * configure: Rebuilt.
1376 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1378 * doc/*.texi: Remove generated documentation.
1380 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1382 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1383 (performDelete): Fix #endif placement.
1385 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1387 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1388 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1389 (_Jv_ThreadDestroyData): Use _Jv_Free.
1390 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1393 2001-04-27 Tom Tromey <tromey@redhat.com>
1395 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1397 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1399 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1401 * include/jni.h (struct JNINativeInterface): Fixed types in
1402 Get/Set*ArrayRegion declarations.
1403 (class _Jv_JNIEnv): Likewise.
1405 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1407 * configure.in: Obtain THREADS with `gcc -v'.
1408 * configure: Rebuilt.
1410 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1413 * java/io/ObjectStreamClass.java (setClass): Calculate
1414 serialVersionUID for local class and compare it against the UID
1415 from the Object Stream. Throw InvalidClassException upon mismatch.
1416 (setUID): Renamed to...
1417 (getClassUID): this. Return the calculated class UID rather than
1418 setting uid field directly.
1419 (getDefinedSUID): Removed.
1420 * java/io/ObjectInputStream.java (resolveClass): Use the
1421 three-argument Class.forName().
1422 * java/io/InvalidClassException (toString): Don't include classname in
1423 result if it is null.
1425 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1427 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1428 Wrap use of inet_pton in HAVE_INET6.
1430 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1432 java.security merge and ClassLoader compliance fixes.
1434 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1435 New protectionDomain field.
1436 (forName): Add initialize parameter. Fixes declaration to comply with
1438 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1439 variant. Honour "initialize" flag.
1440 (getProtectionDomain0): New method.
1441 * java/lang/Class.java: Fix forName() declaration.
1442 (getPackage): New method based on Classpath implementation.
1443 (getProtectionDomain0): New native method decl.
1444 (getProtectionDomain): New method.
1445 * java/lang/ClassLoader.java (getParent): Now final.
1446 (definedPackages): New field.
1448 (defineClass): New variant with protectionDomain argument.
1449 (definePackage): New.
1451 (findSystemClass): Now final.
1452 (getSystemResourceAsStream): Remove redundant "final" modifier.
1453 (getSystemResource): Remove redundant "final" modifier.
1454 (getResources): Now final.
1455 (protectionDomainPermission): New static field.
1456 (unknownProtectionDomain): Ditto.
1457 (defaultProtectionDomain): Ditto.
1458 (getSystemClassLoader): Now non-native.
1459 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1460 arguments for Class.forName().
1461 * java/lang/Package.java: New file.
1462 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1463 (instance): Static initialize singleton.
1464 (findClass): Override this, not findSystemClass.
1465 * java/lang/natClassLoader.cc (defineClass0): Set class's
1466 protectionDomain field as specified.
1467 (getSystemClassLoader): Removed.
1468 (findClass): Renamed from findSystemClass. Call the interpreter via
1469 URLClassLoader.findClass if loading class via dlopen fails.
1471 * java/security/*.java: java.security import/merge with Classpath.
1472 * java/security/acl/*.java: Likewise.
1473 * java/security/interfaces/*.java: Likewise.
1474 * java/security/spec/*.java: Likewise.
1475 * java/net/NetPermission.java: Likewise.
1476 * java/net/SocketPermission.java: Likewise.
1477 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1479 * Makefile.am: Add new classes.
1480 * Makefile.in: Rebuilt.
1481 * gcj/javaprims.h: CNI namespace rebuild.
1483 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1485 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1486 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1487 * configure: Rebuilt.
1489 2001-04-21 Tom Tromey <tromey@redhat.com>
1491 * Makefile.in: Rebuilt.
1492 * Makefile.am (awt_java_source_files): Added Line2D.java.
1493 * java/awt/geom/Line2D.java: Wrote.
1495 * java/awt/Menu.java (addNotify): Wrote.
1497 * java/awt/PopupMenu.java (addNotify): Implemented.
1500 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1501 * java/awt/List.java (addNotify): Call super.addNotify.
1502 * java/awt/Label.java (addNotify): Call super.addNotify.
1503 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1504 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1505 * java/awt/Choice.java (addNotify): Call super.addNotify.
1506 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1507 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1509 * java/awt/List.java (replaceItem): Notify peer.
1511 * java/awt/geom/Rectangle2D.java
1512 (Float.setRect(float,float,float,float)): New method.
1514 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1517 * java/awt/RenderingHints.java (Key): Class now public.
1519 * java/awt/Rectangle.java (Rectangle): Now implements
1521 (getPathIterator): Removed.
1523 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1526 * java/awt/FileDialog.java: Wrote.
1528 * java/awt/EventQueue.java (isDispatchThread): Now public.
1529 (invokeLater): Likewise.
1531 * java/awt/Component.java (setCursor): Update peer.
1532 (getFontMetrics): Use peer.
1534 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1537 2001-04-20 Tom Tromey <tromey@redhat.com>
1539 * java/awt/List.java: Wrote.
1540 * java/awt/Dialog.java: Wrote.
1542 2001-04-20 Warren Levy <warrenl@redhat.com>
1544 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1545 * java/text/SimpleDateFormat.java
1546 (indexInArray): Removed private method.
1547 (processYear): Removed private method.
1548 (parseLenient): Removed private method.
1549 (parseLeadingZeros): Removed private method.
1550 (parseStrict): Removed private method.
1551 (expect): Added new private method.
1552 (parse): Reverted to pre-Classpath merge version with minor fixes.
1553 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1556 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1558 * java/io/File.java (normalizePath): New private method.
1559 (File (String)): Use normalizePath().
1560 (File (String, String)): Likewise.
1562 * Makefile.am (libffi_files): Removed.
1563 (libgcj.la): Link libffi as a convenience library instead of
1564 refering to its object files directly.
1565 * Makefile.in: Rebuilt.
1567 2001-04-08 Per Bothner <per@bothner.com>
1569 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1570 Recalculate hash, since Utf8Const's hash is only 16 bits.
1572 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1573 bits of hash to calculate step for chaining.
1575 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1576 when 2/3 full, rather than 3/4 full.
1578 2001-04-06 Tom Tromey <tromey@redhat.com>
1580 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1581 (wrap_value<T*>): New specialization.
1582 (_Jv_JNI_PopLocalFrame): Update env->locals.
1584 2001-04-05 Tom Tromey <tromey@redhat.com>
1586 * libtool-version: Updated current.
1588 2001-04-04 Andreas Jaeger <aj@suse.de>
1590 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1591 * gcj/Makefile.in: Rebuilt.
1592 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1593 * Makefile.in: Rebuilt.
1594 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1595 * testsuite/Makefile.in: Rebuild.
1596 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1597 * include/Makefile.in: Rebuild.
1599 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1601 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1602 compiled test', not 'execution from source compiled test'.
1603 Use UNTESTED, not XFAIL, for tests which are not run because
1604 they depend on a previous test which failed.
1606 2001-04-02 Richard Henderson <rth@redhat.com>
1608 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1609 the same tree as gcc.
1610 * configure: Rebuilt.
1612 * exception.cc (_Jv_Throw): Clarify commentary.
1614 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1616 * jni.cc (wrap_value<jclass>): New specialization.
1618 2001-04-02 Tom Tromey <tromey@redhat.com>
1620 * java/io/PrintStream.java (out): Removed field. Fixes PR
1622 (write): Call flush, not out.flush, per spec.
1623 (close): Flush output stream, per spec. Handle
1624 InterruptedIOException.
1625 (checkError): Likewise.
1626 (flush, print, write): Handle InterruptedIOException per spec.
1627 (PrintStream): Don't create BufferedOutputStream.
1628 (work_bytes): New field.
1629 (writeChars): Use work_bytes. Don't assume `out' is a
1630 BufferedOutputStream.
1632 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1634 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1637 2001-03-30 Tom Tromey <tromey@redhat.com>
1639 * jni.cc (add_char): Correctly encode non-ascii characters.
1640 (add_char): Define even when INTERPRETER not defined.
1641 (mangled_name): Likewise.
1642 (_Jv_GetJNIEnvNewFrame): Likewise.
1643 (_Jv_LookupJNIMethod): Likewise.
1645 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1647 * configure.host: Enable interpreter for PPC.
1649 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1651 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1652 to "file.separator", "path.separator", and "java.io.tmpdir" property
1654 * java/io/File.java: Likewise.
1655 * java/io/natFile.cc (init_native): Likewise.
1656 * java/io/natFileWin32.cc (init_native): Likewise.
1658 2001-04-01 Per Bothner <per@bothner.com>
1660 * java/lang/natString.cc (intern): If string's data does not point to
1661 this String, make a fresh String that does.
1663 * java/lang/natString.cc (unintern): Replace by static function.
1664 * java/lang/String.java (unintern): Remove method.
1666 2001-04-01 Per Bothner <per@bothner.com>
1668 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1669 (finish): def.deflate needs to be called in a loop.
1670 (inbuf, inbufLength): New private fields.
1671 (write(int)): Use inbuf.
1672 (write(byte[],int,int): Check if pending output in inbuf.
1673 * ZipOutputStream.java: Don't use Deflater if stored.
1674 Use a Checksum object directly, not via a CheckedOutputStream.
1675 (uncompressed_size): New field,
1676 (closeEntry): Only write data_directory if needed.
1677 (write): If STORED, write directly.
1678 Always update crc, and uncompressed_size.
1679 (write_entry): Fix lots of protocol erors.
1681 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1683 1.3-Compliant Implementation of java.io.File.
1684 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1685 "path.separator", and "java.io.tmpdir" from the File class, instead
1686 of setting them explicitly.
1687 * java/io/File.java: Do not canonicalize paths for security manager
1688 checks. Call init_native() from static initializer. Do not pass path
1689 argument to native methods. New native method declarations. Some
1690 security manager checks moved to checkWrite().
1691 (equals): Check file system case sensitivity and act appropriatly.
1692 (hashCode): Likewise.
1693 (isHidden): New method implemented.
1694 (performList): Changed prototype. Now takes a class argument specifying
1695 the class of the returned array: Strings or File objects. Also added
1696 FileFilter argument.
1697 (listFiles): New variants with "File" return type implemented.
1698 (createTempFile): Use createNewFile(). Use maxPathLen.
1699 (setReadOnly): New method implemented.
1700 (listRoots): Likewise.
1701 (compareTo): Likewise.
1702 (setLastModified): Likewise.
1703 (checkWrite): New method.
1705 * java/io/natFile.cc: Various functions no longer take canonical path
1707 (stat): Handle ISHIDDEN query.
1708 (isAbsolute): Remove WIN32 cruft.
1709 (performList): New arguments. Handle returning either File[] or String[]
1710 arrays. Check with FileFilter or FilenameFilter arguments as
1711 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1712 (performSetReadOnly): New method implemented.
1713 (performListRoots): Likewise.
1714 (performSetLastModified): Likewise.
1715 (performCreate): Likewise.
1716 (init_native): New initialization function.
1717 * java/io/natFileWin32.cc: Various functions no longer take canonical
1719 (stat): Add FIXME about ISHIDDEN query.
1720 (performList): New arguments. Handle returning either File[] or String[]
1721 arrays. Check with FileFilter or FilenameFilter arguments as
1722 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1723 (performSetReadOnly): New. Stubbed.
1724 (performListRoots): Likewise.
1725 (performSetLastModified): Likewise.
1726 (performCreate): Likewise.
1727 (init_native) New initialization function.
1728 * configure.in: Check for utime() and chmod().
1729 * configure: Rebuilt.
1730 * include/config.h.in: Rebuilt.
1732 Resolves PR libgcj/1759.
1734 2001-03-28 Richard Henderson <rth@redhat.com>
1736 IA-64 ABI Exception Handling:
1737 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1738 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1739 Remove EXCEPTIONSPEC.
1740 * configure.host (libgcj_sjlj): Remove.
1741 * configure.in (EXCEPTIONSPEC): Remove.
1742 (enable-sjlj-exceptions): Detect if not specified.
1743 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1744 what header we're looking for.
1745 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1746 * Makefile.in, configure: Regenerate.
1747 * exception.cc: Don't declare libgcc2 stuff.
1748 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1749 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1750 (win32_get_restart_frame): Remove.
1751 (struct java_exception_header): New.
1752 (__gcj_exception_class): New.
1753 (get_exception_header_from_ue): New.
1754 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1755 (size_of_encoded_value, read_encoded_value): New.
1756 (read_uleb128, read_sleb128, parse_lsda_header): New.
1757 (get_ttype_entry, __gcj_personality_sj0): New.
1758 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1760 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1762 * javax/naming/InitialContext.java (init): Fix typo.
1763 (composeName): Remove unnecessary semicolon.
1764 (addToEnvironment): Remove unnecessary semicolon.
1765 (addToEnvironment): Use put() instead of add().
1767 * javax/naming/InitialContext.java (InitialContext):
1769 (destroySubcontext): Method doesn't return a result.
1770 * javax/naming/Context.java: Import java.util.Hashtable.
1771 * javax/naming/Name.java: Import java.util.Enumeration.
1773 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1775 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1776 objects in subdirectories.
1777 * Makefile.in: Rebuilt.
1779 2001-03-25 Richard Henderson <rth@redhat.com>
1781 * exception.cc (java_eh_info): Make value type jthrowable.
1782 (_Jv_type_matcher): Remove now unneeded cast.
1783 (_Jv_Throw): Make argument type jthrowable. Munge name
1784 for SJLJ_EXCEPTIONS here ...
1785 * gcj/cni.h: ... not here.
1787 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1789 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1790 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1791 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1792 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1793 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1794 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1795 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1796 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1797 java/lang/natDouble.cc, java/lang/natObject.cc,
1798 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1799 java/lang/natString.cc, java/lang/natSystem.cc,
1800 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1801 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1802 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1803 java/util/zip/natInflater.cc:
1804 Use throw, not JvThrow or _Jv_Throw.
1806 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1808 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1809 paramater, bump it to 1.
1810 * java/util/Hashtable.java (Hashtable): Likewise.
1812 2001-03-23 Per Bothner <per@bothner.com>
1814 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1815 check for errors, since we don't want to throw exception on
1816 overflow/underflow. Instead, trim whitespace, and then check that
1817 _strtod_r uses up all the rest of the string.
1819 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1820 ancestors array is invalid for interfaces, so do that *after*
1821 check that the target type is not an interface.
1823 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1825 * prims.cc (_Jv_FindClassFromSignature): Check return of
1826 recursive call. Do not abort on invalid signature; return NULL
1829 2001-03-22 Tom Tromey <tromey@redhat.com>
1831 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1832 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1834 * include/jvm.h (_Jv_ResolveField): Declare.
1835 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1836 * resolve.cc (_Jv_ResolveField): No longer conditional on
1839 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1841 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1842 for libtool hacking.
1843 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1844 to a temporary file, then invoke libtool with the -objectlist
1846 (libgcjx.la): Likewise.
1847 * Makefile.in: Rebuilt.
1849 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1851 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1853 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1855 * jni.cc (add_char): Handle `.' like `/'.
1857 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1859 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1860 initialize if exception_types is null.
1861 * java/lang/reflect/Constructor.java: Likewise.
1862 * java/lang/reflect/natConstructor.cc (getType): Initialize
1863 exception_types to an empty Object array.
1865 2001-03-21 Tom Tromey <tromey@redhat.com>
1867 * configure: Rebuilt.
1868 * configure.in (GCJFLAGS): Subst.
1869 * Makefile.in: Rebuilt.
1870 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1871 (gij_LDFLAGS): Likewise.
1872 (JC1FLAGS): Added GCJFLAGS and removed -g.
1874 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1875 read/write case. Fixes PR libgcj/2338.
1877 2001-03-20 Warren Levy <warrenl@redhat.com>
1879 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1880 and corrected SimpleTimeZone's for the timezones hash table.
1882 2001-03-19 Per Bothner <per@bothner.com>
1884 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1885 "canonicalize" "../../xxx" to "/xxx".
1887 2001-03-19 Mark Wielaard <mark@klomp.org>
1889 * java/util/ArrayList.java: Remove RCS keywords from comments
1890 * java/util/BasicMapEntry.java: idem
1891 * java/util/Dictionary.java: idem
1892 * java/util/HashSet.java: idem
1894 * java/util/EventObject.java: reindent
1895 * java/util/Properties.java: idem
1896 * java/util/SortedMap.java: idem
1898 * java/util/Enumeration.java: Merge with Classpath
1899 * java/util/EventListener.java: idem
1900 * java/util/Observable.java: idem
1901 * java/util/Observer.java: idem
1902 * java/util/Stack.java: idem
1904 2001-03-17 Tom Tromey <tromey@redhat.com>
1906 * java/lang/natString.cc (rehash): Don't bother with memset;
1907 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1909 (UNMASK_PTR): New macro.
1910 (intern): Unmask pointer before returning it. Register finalizer
1912 (unintern): Handle case where
1913 (MASK_PTR): New macro.
1914 (PTR_MAKSED): Likewise.
1915 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1917 2001-03-01 Andrew Haley <aph@redhat.com>
1919 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1920 stackTrace buffer to a correctly aligned pointer array.
1922 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1924 * java/lang/Runtime.java (_exit): Declare new package-private native.
1925 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1926 without a security manager check.
1927 (exit): Call _exit after security check.
1928 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1930 * java/lang/System.java (setSecurityManager): If a security manager
1931 is already in place, call checkPermission.
1932 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1933 throws an exception, try to deal with it gracefully.
1934 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1935 Only try to print the subordinate stack trace if "exception" is set.
1936 Print our class name first.
1938 2001-03-08 Tom Tromey <tromey@redhat.com>
1940 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1941 info for array classes.
1942 Fixes PR libgcj/1971.
1944 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1946 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1949 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1951 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1952 instead of the new JDK1.2 API. This is simpler and makes
1953 back-porting the classes to JDK1.1 trivial.
1954 (readObject): likewise.
1956 2001-03-01 Per Bothner <per@bothner.com>
1958 Changes merged from Kawa's gnu.math.
1959 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1960 (rshift(int[],int[],int,int): Removed - not needed.
1961 (gcd): Use rshift0 rather than rshift.
1962 * java/math/BigInteger.java (setShiftRight): Likewise.
1963 (divide): Simplify by using rshift0.
1964 (divide): Zero-extend results if high-order bit set.
1966 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1968 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1971 2001-02-23 Per Bothner <per@bothner.com>
1973 Change to sometimes include class name in ClassFormatError message.
1974 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1975 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1976 boolean instead of throwing ClassFormatError on failure.
1977 (throw_class_format_error): Change static function to method.
1978 (_Jv_ClassReader): New inline methods verify_identifier,
1979 two overloads of verify_classname, verify_field_signature, and
1980 verify_method_signature
1981 * include/java-interp.h: Update declarations to return bool.
1982 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1983 ClassFormatError since _Jv_VerifyClassName now returns bool.
1985 2001-02-23 Per Bothner <per@bothner.com>
1987 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1988 c++filt to select java-style output.
1990 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1992 Fix for PR java/2040:
1993 * java/util/HashMap.java (HashMap): Don't throw exception for
1994 loadFactor > 1. Add exception messages.
1995 * java/util/Hashtable.java (Hashtable): Likewise.
1997 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1999 Disable libgcjx by default.
2000 * configure.in: Add support for --enable-java-awt configure option.
2001 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2002 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2003 * Makefile.in: Rebuilt.
2004 * configure: Rebuilt.
2006 2001-02-20 Tom Tromey <tromey@redhat.com>
2008 * java/io/PipedWriter.java (flush): Throw exception if stream
2010 * java/io/OutputStreamWriter.java (write): Throw exception if
2012 (writeChars): Don't throw exception if stream closed.
2013 * java/io/CharArrayWriter.java (closed): New field.
2015 (flush): Throw exception if stream closed.
2016 (reset): Synchronize on correct lock. Allow stream to be
2018 (toCharArray, toString, writeTo): Synchronize.
2019 (write): Throwe exception if stream closed.
2020 * java/io/BufferedWriter.java (close): Clear `buffer'.
2021 (flush): Throw IOException if stream is closed.
2024 2001-02-16 Tom Tromey <tromey@cygnus.com>
2026 * java/lang/ThreadGroup.java (activeCount): Only include threads
2028 (enumerate): Likewise.
2030 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2032 * java/lang/Integer.java (getInteger): Return default argument if
2033 property is not set. Don't call decode with null argument.
2034 * java/lang/Long.java (getLong): Likewise.
2036 * java/io/CharArrayReader.java (CharArrayReader): Throw
2037 IllegalArgumentException if constructor arguments are illegal.
2038 (ready): Return false if no more characters can be read.
2039 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2041 2001-02-17 Mark Wielaard <mark@klomp.org>
2043 * java/util/TimerTask.java: New version from Classpath.
2045 2001-02-17 Mark Wielaard <mark@klomp.org>
2047 Remerge with Classpath
2048 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2049 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2050 (readByte): Use convertToByte().
2051 (readChar): Use convertToChar().
2052 (readInt): Use convertToInt().
2053 (readLong): Use convertToLong().
2054 (readShort): Use convertToShort().
2055 (readUnsignedByte): Use convertToUnsignedByte().
2056 (readUnsignedShort): Use convertToUnsignedShort().
2057 (readUTF): Use convertToUTF().
2059 (convertToBoolean): Resurrected.
2060 (convertToByte): Ditto.
2061 (convertToChar): Ditto.
2062 (convertToInt): Ditto.
2063 (convertToLong): Ditto.
2064 (convertToShort): Ditto.
2065 (convertToUnsignedByte): Ditto.
2066 (convertToUnsignedShort): Ditto.
2067 (convertToUTF): Ditto.
2069 2001-02-17 Mark Wielaard <mark@klomp.org>
2073 2001-02-17 Mark Wielaard <mark@klomp.org>
2075 * java/io/DataInputStream.java: update copyright notice
2076 * java/io/PrintWriter.java: idem
2077 * java/io/Reader.java: idem
2078 * java/io/StreamTokenizer.java: idem
2079 * java/io/StringReader.java: idem
2080 * java/lang/reflect/ReflectPermission.java: idem
2082 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2084 * java/util/TreeSet.java (clone): Made subclass safe, use
2085 super.clone(), not new.
2086 * java/util/TreeMap.java (clone): Likewise.
2088 * java/util/TreeMap.java (nil): Made non-final.
2089 (clone): Create new nil node for copy.
2091 * java/util/HashSet.java (clone): Made subclass safe, use
2092 super.clone(), not new.
2094 2001-02-14 Andrew Haley <aph@redhat.com>
2096 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2099 2001-02-15 Anthony Green <green@redhat.com>
2101 * defineclass.cc: Don't include alloca.h.
2102 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2103 * interpret.cc (run_normal): Ditto.
2105 * java/lang/natDouble.cc (parseDouble): Ditto.
2107 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2109 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2111 * java/util/Collections.java (ReverseComparator): New static class.
2112 (reverseOrder): Return static instance of ReverseComparator.
2114 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2115 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2116 Rectangle.clone(), not Object.clone().
2118 * java/util/HashSet.java (clone): Remove try/catch.
2120 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2121 * java/util/Collection.java: Likewise.
2122 * java/util/Comparator.java: Likewise.
2123 * java/util/Dictionary.java: Likewise.
2124 * java/util/Iterator.java: Likewise.
2125 * java/util/ListIterator.java: Likewise.
2126 * java/util/Map.java: Likewise.
2127 * java/util/Set.java: Likewise.
2129 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2131 * java/util/TreeMap.java: New file.
2132 * java/util/TreeSet.java: New file.
2133 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2134 * Makefile.in: Rebuilt.
2135 * java/util/HashSet.java (clone): Use constructor instead of calling
2137 * java/util/SortedSet.java: Sync with classpath.
2138 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2141 * java/lang/natClass.cc (getSignature): Don't try to dereference
2142 param_types if it is null. Instead, take this to mean "no parameters".
2143 * java/lang/TreeMap.java (TreeIterator.next): Throw
2144 NoSuchElementException in preference to ConcurrentModificationException.
2145 (TreeIterator.remove): Throw IllegalStateException in preference to
2146 ConcurrentModificationException.
2147 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2148 throw a NoSuchElementException.
2149 (SubMap.lastKey): Likewise.
2151 2001-02-13 Tom Tromey <tromey@redhat.com>
2153 * java/io/PipedReader.java (ready): Throw IOException if pipe
2155 * java/io/FilterReader.java (close): Don't clear `in'.
2156 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2158 (read, ready, reset, skip): Added exception message.
2159 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2160 Perform checkStatus check inside synchronized block.
2162 2001-02-13 Tom Tromey <tromey@redhat.com>
2164 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2166 2001-02-13 Tom Tromey <tromey@redhat.com>
2168 Fix for PR libgcj/1351:
2169 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2171 Include Thread.h and InterruptedIOException.h.
2173 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2175 * java/io/BlockDataException.java: Removed.
2176 * java/io/ObjectInputStream.java (readObject): Throw
2177 StreamCorruptedException, not BlockDataException.
2178 * Makefile.am: Remove BlockDataException.
2179 * Makefile.in: Rebuild.
2181 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2182 Tom Tromey <tromey@redhat.com>
2184 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2187 2001-02-09 Tom Tromey <tromey@redhat.com>
2189 * java/util/Timer.java: New version from Classpath.
2191 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2193 * java/lang/Double.java (doubleToRawLongBits): Now native.
2194 * java/lang/Float.java (floatToRawIntBits): Likewise.
2195 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2196 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2198 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2200 * java/io/File.java (java.net): Imported.
2201 (getAbsoluteFile): Added.
2202 (getCanonicalPath): Likewise.
2205 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2207 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2208 * java/lang/Integer.java: Likewise.
2209 * java/lang/Long.java: Likewise.
2210 * java/lang/Short.java: Likewise.
2211 * java/lang/Double.java: Likewise.
2212 (doubleToRawLongBits): New method.
2213 * java/lang/Float.java: As above.
2214 (floatToRawIntBits): New method.
2216 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2217 IOException if stream closed.
2219 2001-02-08 Tom Tromey <tromey@redhat.com>
2221 * java/lang/Float.java (parseFloat): New method.
2223 2001-02-08 Tom Tromey <tromey@redhat.com>
2225 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2226 * java/io/InputStreamReader.java (ready, read): Throw IOException
2227 if stream has been closed.
2229 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2231 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2232 Change sources.redhat.com and sourceware.cygnus.com references to
2235 2001-02-07 Tom Tromey <tromey@redhat.com>
2237 Fix for PR libgcj/1906:
2238 * java/text/MessageFormat.java (setLocale): Use named class
2241 (format(Object,StringBuffer,FieldPosition)): Special case if
2242 argument is an Object[].
2244 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2246 * java/util/Arrays.java: Removed "cmp" methods.
2247 (qsort): Don't use "cmp".
2250 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2252 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2253 sort. Fix for PR java/1895.
2255 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2257 * configure.host: Use sjlj-exceptions for Alpha.
2259 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2261 * libgcj.spec.in: Don't force static libgcc into the executable.
2262 * configure.in (FORCELIBGCCSPEC): Removed.
2263 * configure: Rebuilt.
2265 2001-01-31 Tom Tromey <tromey@redhat.com>
2267 * Makefile.in: Rebuilt.
2268 * Makefile.am (LTCXXCOMPILE): New macro.
2270 2001-01-26 Andrew Haley <aph@redhat.com>
2272 (INIT_FPE): Use a direct system call to set the handler.
2274 2001-01-27 Richard Henderson <rth@redhat.com>
2276 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2278 2001-01-27 Tom Tromey <tromey@redhat.com>
2280 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2281 native interface structure.
2283 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2285 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2287 (read (byte[], int, int)): Only call readNextBlock() if the block
2288 buffer would actually be overrun. Increment blockDataPosition.
2289 (callReadMethod): Propagate exceptions from invocation target.
2290 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2291 exceptions from invocation target.
2293 2001-01-26 Tom Tromey <tromey@redhat.com>
2295 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2296 to internal representation.
2297 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2298 _Jv_FindClassFromSignature.
2300 2001-01-26 Warren Levy <warrenl@redhat.com>
2302 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2303 and timezone if they are available on the system.
2305 2001-01-24 Tom Tromey <tromey@redhat.com>
2307 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2309 2001-01-24 Tom Tromey <tromey@redhat.com>
2311 * Makefile.in: Rebuilt.
2312 * Makefile.am (c_source_files): Added sf_fabs.c.
2313 * java/lang/sf_fabs.c: New file.
2315 2001-01-19 Warren Levy <warrenl@redhat.com>
2317 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2318 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2319 correctly. Adjust properly from 0-23 clock hour.
2321 2001-01-17 Mark Wielaard <mark@klomp.org>
2323 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2325 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2327 * java/lang/Class.h (isInterface): Move implementation from
2328 natClass.cc. Declare inline.
2329 (Class): Add default constructor.
2330 * java/lang/Object.h: Update comments.
2331 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2332 initialize superclass, saving a call if super is already initialized.
2334 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2336 * prims.cc (init_prim_class): Deleted.
2337 (DECLARE_PRIM_TYPE): Rewritten.
2338 * java/lang/Class.h (stdio.h): Include removed.
2339 (stddef.h): Included.
2340 (java/lang/reflect/Modifier.h): Likewise.
2341 (Class): Contructor now takes arguments, initializes fields.
2342 (initializePrim): Prototype deleted.
2343 * java/lang/natClass.cc (initializePrim): Deleted.
2345 2001-01-16 Warren Levy <warrenl@redhat.com>
2347 * java/math/BigInteger.java: Update Copyright year.
2349 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2351 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2354 2001-01-14 Mark Wielaard <mark@klomp.org>
2355 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2356 (decode): Merge comments with Classpath, don't throw Exception
2358 2001-01-12 Tom Tromey <tromey@redhat.com>
2360 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2364 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2365 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2366 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2367 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2368 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2370 * java/lang/natSystem.cc: Include locale.h if it exists.
2371 * configure: Rebuilt.
2372 * configure.in: Check for locale.h.
2374 2001-01-11 Tom Tromey <tromey@redhat.com>
2376 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2377 (Cursor(int), getPredefinedCursor): Throw exception if argument
2380 2001-01-03 Tom Tromey <tromey@redhat.com>
2382 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2383 (getLocationOnScreen): Wrote.
2385 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2387 * Makefile.am: Re-enable dependencies.
2388 * Makefile.in: Rebuilt.
2390 2001-01-10 Warren Levy <warrenl@redhat.com>
2392 * java/math/BigDecimal.java (divide): Fixed comment.
2394 2001-01-10 Warren Levy <warrenl@redhat.com>
2396 Fix for PR libgcj/1596:
2397 * java/math/BigDecimal.java (divide): Check newScale for validity.
2398 Ensure that BigInteger.pow() is called with a non-negative value.
2399 (setScale (int)): New public method.
2400 (setScale (int,int)): New public method.
2402 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2404 Fix for PR libgcj/1338:
2405 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2406 commentChar. Fixed typos in comments.
2408 2001-01-08 Warren Levy <warrenl@redhat.com>
2410 Fix for PR libgcj/1411:
2411 * Makefile.am: Removed java/util/natTimeZone.cc.
2412 * Makefile.in: Rebuilt.
2413 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2414 missing localized timezone names.
2415 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2416 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2417 (init_properties): Set user.timezone property.
2418 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2419 default timezone names; removed non-standard ones. Use standard
2421 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2423 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2425 (getDefaultTimeZoneId): Removed.
2427 * java/util/natTimeZone.cc: Removed.
2429 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2431 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2432 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2433 (_Jv_GetArrayClass): New inline function.
2434 (arrayclass): New field.
2435 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2436 _Jv_GetArrayElementFromElementType.
2437 (_Jv_NewPrimArray): Ditto.
2438 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2439 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2440 Set Modifier::ABSTRACT.
2441 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2442 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2443 Now synchronized. Array classes are now referenced from
2444 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2445 Set array classes' accessibility flags correctly. Optimize so that
2446 all array classes share the same IDT.
2447 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2448 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2449 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2450 in superclasses from overwriting classes own fields.
2451 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2452 Modifier::isAbstract().
2453 (null_idt): New static field.
2454 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2456 (_Jv_IndexOf): Made inline.
2457 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2459 2001-01-08 Tom Tromey <tromey@redhat.com>
2461 Fix for PR java/1586:
2462 * Makefile.in: Rebuilt.
2463 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2465 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2467 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2468 from the c++ compiler.
2469 * Makefile.in: Rebuilt.
2471 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2473 All files with updated copyright.
2474 * prims.cc (class _Jv_PrimClass): Removed.
2475 (init_prim_class): New function.
2476 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2477 `_Jv_PrimClass' in primitive type declarations. Assign to the
2478 value returned by `init_prim_class.'
2479 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2480 primitive type declarations.
2481 (JvPrimClass): Cast to `jclass' removed.
2482 * java/lang/Class.h (Class): New constructor.
2483 (Class): New copy constructor.
2484 (initializePrim): New prototype.
2485 (_Jv_PrimClass): Field removed.
2486 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2487 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2488 (class java::lang::Object): `finalize' moved up front.
2489 * java/lang/natClass.cc
2490 (isAssignableFrom): Turned outline.
2491 (isInstance): Likewise.
2492 (isInterface): Likewise, fixed indentation.
2493 (initializePrim): New function.
2495 2001-01-07 Anthony Green <green@redhat.com>
2497 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2499 * Makefile.in: Rebuilt.
2501 * scripts/TexinfoDoclet.java: New file.
2503 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2504 doc/java-awt-color.texi, doc/java-lang.texi,
2505 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2506 doc/java-awt-event.texi, doc/java-net.texi,
2507 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2508 doc/java-awt-image.texi, doc/java-security.texi,
2509 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2510 doc/java-text.texi, doc/java-beans-beancontext.texi,
2511 doc/java-util-jar.texi, doc/java-beans.texi,
2512 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2513 doc/java-lang-ref.texi: New files.
2515 2001-01-07 Anthony Green <green@redhat.com>
2517 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2518 be used for both input and output, so don't clear doInput.
2520 * java/lang/StringBuffer.java: Fix comments.
2522 2001-01-06 Anthony Green <green@redhat.com>
2524 * java/beans/PropertyDescriptor.java: Fix comment.
2525 * java/io/PushbackReader.java: Fix comment.
2526 * java/io/ObjectStreamClass.java: Fix comment.
2527 * java/io/DataInputStream.java: Fix comment.
2528 * java/io/PipedInputStream.java: Fix comments.
2529 * java/io/PipedReader.java: Fix comments.
2530 * java/sql/DatabaseMetaData.java: Fix comments.
2532 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2534 * java/io/PipedReader: Synchronize on "lock" instead of this.
2536 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2538 * java/lang/Thread.java: Update comment.
2540 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2541 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2542 * java/io/PipedReader: New implementation based on new
2544 * java/io/PipedWriter: Updated to match new PipedReader.
2546 2001-01-03 Tom Tromey <tromey@redhat.com>
2548 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2549 (getViewportSize): Insets include scrollbar size.
2550 (doLayout): Finished.
2551 (getScrollPosition): Wrote.
2552 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2554 2001-01-02 Tom Tromey <tromey@redhat.com>
2556 * java/awt/ScrollPane.java: Wrote.
2557 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2560 * java/awt/Panel.java (Panel()): Fixed.
2562 * java/awt/Component.java (isShowing): Return false if no peer
2563 exists, and true if component is visible and no parent exists.
2564 (getLocationOnScreen): Wrote.
2565 (getPreferredSize): Removed FIXME comment.
2566 (getMinimumSize): Likewise.
2567 (getAlignmentX, getAlignmentY): Wrote.
2569 (requestFocus): Wrote.
2570 (transferFocus): Wrote.
2571 (findNextFocusComponent): New method.
2572 (hasFocus()): Wrote.
2573 (checkImage): Wrote.
2574 (enableEvents): Call setEventMask on the peer.
2576 * java/awt/Container.java (list): Use super.list() to print self.
2577 (findNextFocusComponent): New method.
2578 (setLayout): Call invalidate.
2579 (findComponentAt): Wrote.
2581 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2583 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2584 the correct versions of various linuxthreads functions get linked.
2585 * Makefile.in: Rebuilt.
2586 * java/lang/natThread.cc (finalize_native): New static function. Call
2587 _Jv_ThreadDestroyData.
2588 (initialize_native): Register finalizer for "data".
2589 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2590 (_Jv_ThreadDestroyData): New prototype.
2591 * include/win32-threads.h: Ditto.
2592 * include/no-threads.h: Ditto.
2593 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2594 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2595 move mutex and condition variable destroy code from:
2596 (really_start): ...here.
2597 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2598 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2599 (_Jv_ThreadDestroyData): Implemented.
2600 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2601 (_Jv_AllocArray): Ditto.
2603 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2605 * java/sql/DriverManager.java (getConnection): Don't set user/password
2608 2000-12-27 Warren Levy <warrenl@redhat.com>
2610 Fix for PR libgcj/1358:
2611 * java/lang/System.java: Update Copyright date properly.
2612 * java/util/Calendar.java: Fix typo in comment.
2613 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2614 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2615 initialize times. Spec says to set H:M:S values to zero only if
2617 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2618 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2619 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2620 timezones and GMT offsets, being careful to account for units of
2621 milliseconds vs. seconds.
2623 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2625 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2626 not be assigned to Object.
2628 Fix for PR libgcj/1516:
2629 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2631 (can_widen): Declared inline. Remove redundant checks for void
2632 arguments and char->short conversion. Add special case for boolean
2634 (ffi_type): Declared inline.
2635 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2637 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2639 * java/sql/SQLWarning.java: Fixed typo in comment.
2641 2000-12-26 Tom Tromey <tromey@redhat.com>
2643 * java/awt/MenuItem.java (paramString): Now protected.
2645 * java/awt/MenuShortcut.java: Implements Serializable.
2647 * java/awt/MenuBar.java: Rewrote from scratch.
2649 * java/awt/MenuComponent.java (removeNotify): Wrote.
2650 Implements Serializable.
2652 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2655 * java/awt/CheckboxMenuItem.java: Wrote.
2657 2000-12-25 Tom Tromey <tromey@redhat.com>
2659 * java/awt/MenuContainer.java: Fixed typo.
2661 * Makefile.in: Rebuilt.
2662 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2663 * java/awt/SystemColor.java: New file.
2665 * java/awt/Color.java (rgba): Now package-private.
2667 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2669 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2672 * java/awt/MenuItem.java (addNotify): New method.
2673 (MenuItem(String,MenuShortcut)): New constructor.
2674 (setLabel): Notify peer of change.
2675 (setEnabled): Likewise.
2677 * java/awt/GridLayout.java (toString): New method.
2679 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2680 (FlowLayout): Check for LEADING and TRAILING.
2681 (setAlignment): Likewise.
2682 (layoutContainer): Handle component orientation.
2684 * java/awt/Component.java (orientatin): New field.
2685 (setComponentOrientation): Wrote.
2686 (getComponentOrientation): Wrote.
2688 * java/awt/Event.java (Event): Implements Serializable.
2689 (consumed): New field for serialization.
2690 * java/awt/Dimension.java (Dimension): Implements Serializable.
2691 * java/awt/Cursor.java (Cursor): Implements Serializable.
2692 * java/awt/Container.java (Container): No longer abstract.
2694 * java/awt/Choice.java: Wrote.
2695 * java/awt/Checkbox.java: Wrote.
2696 * java/awt/ItemSelectable.java: Documented.
2697 * java/awt/CheckboxGroup.java: Wrote.
2699 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2701 (getSize): Likewise.
2703 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2705 * java/io/FileDescriptor.java: Initialize fd to -1.
2706 Remove default constructor.
2708 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2710 * java/lang/mprec.h: Change C9X reference to refer to C99.
2712 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2714 * java/lang/Throwable.java (trace_enabled): New static field.
2715 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2716 trace_enabled not set.
2717 * prims.cc (main_init): Turn off trace_enabled while creating
2718 default exception objects.
2720 2000-12-21 Tom Tromey <tromey@redhat.com>
2722 * java/beans/PropertyChangeListener.java: Extends EventListener.
2723 * java/beans/VetoableChangeListener.java: Extends EventListener.
2725 * java/util/zip/Deflater.java (update, init): Now private.
2727 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2729 * java/util/BasicMapEntry.java: Re-added.
2730 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2731 (putAll): Test for BasicMapEntry.
2732 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2733 (putAll): Test for BasicMapEntry.
2734 Change references from `HashMap.Entry' to `Entry' in various places.
2735 * Makefile.am: Add BasicMapEntry.java.
2736 * Makefile.in: Rebuilt.
2738 2000-12-18 Warren Levy <warrenl@redhat.com>
2740 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2741 need to set timezone to a valid non-null value. Partial fix for
2744 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2746 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2748 * java/awt/Button.java (addNotify): Likewise.
2749 * java/awt/Label.java (addNotify): Likewise.
2750 * java/awt/Panel.java (addNotify): Likewise.
2751 * java/awt/Scrollbar.java (addNotify): Likewise.
2752 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2753 Remove redundant null checks.
2755 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2757 * COPYING: Update to current
2758 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2759 to 19yy as example year in copyright notice).
2761 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2763 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2764 end-of-stream if avail_in is 0.
2766 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2768 * java/util/ArrayList.java (data): Declare transient.
2769 (serialPersistantFields): Removed.
2770 (readObject): Use defaultReadObject(), not readFields().
2771 (writeObject): Use defaultWriteObject(), not writeFields().
2773 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2775 * java/util/Hashtable.java (put): Remove `last' variable.
2776 Link new entry to head of list.
2777 * java/util/HashMap.java (put): Ditto.
2779 2000-12-15 Tom Tromey <tromey@redhat.com>
2781 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2782 loader to Class.forName.
2784 2000-12-14 Tom Tromey <tromey@redhat.com>
2786 * java/util/ResourceBundle.java
2787 (getBundle(String,Locale,ClassLoader)): New method.
2788 (trySomeGetBundle): Added `loader' argument.
2789 (partialGetBundle): Likewise.
2791 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2792 maximumFractionDigits, maximumIntegerDigits,
2793 minimumFractionDigits, minimumIntegerDigits): Now
2796 * java/lang/Thread.java (checkAccess): Now final.
2798 * java/lang/RuntimePermission.java: Class now final.
2800 * java/io/StringWriter.java (StringWriter(int)): Now public.
2802 * java/io/SerializablePermission.java (legal_names): Now private.
2804 * java/lang/Character.java: Updated UnicodeBlock constants.
2805 * scripts/blocks.pl: Special case private use and surrogate
2808 2000-12-12 Tom Tromey <tromey@redhat.com>
2810 * Makefile.in: Rebuilt.
2811 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2813 (GCJCOMPILE): Use it.
2816 2000-12-11 Tom Tromey <tromey@redhat.com>
2818 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2819 New static final fields.
2821 * scripts/classes.pl (scan): Skip lines with leading `*'.
2822 Fix for PR libgcj/378.
2824 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2826 * configure.in: Remove check for -fuse-divide-subroutine.
2827 * configure: Rebuilt.
2829 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2831 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2833 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2835 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2836 Remove BasicMapEntry.java and Bucket.java.
2837 * Makefile.in: Rebuilt.
2838 * java/util/HashMap.java: Rewritten.
2839 * java/util/HashSet.java: Imported from classpath.
2840 * java/util/WeakHashMap.java: Imported from classpath.
2841 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2842 * java/util/Bucket.java: Deleted.
2843 * java/util/BasicMapEntry.java: Deleted.
2844 * java/util/Collections.java (search): Use a for-loop, not iterator
2846 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2847 of elements in source.
2848 (max): Use a for-loop.
2850 (reverse): Keep track of positions instead of using Iterator's
2851 nextIndex() and previousIndex().
2852 (shuffle(List)): Initialize defaultRandom if required using
2853 double-check thread safety idiom. Call two-argument shuffle method
2854 using defaultRandom.
2855 (defaultRandom): New field.
2856 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2857 using previousIndex() and nextIndex().
2858 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2859 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2860 * java/util/AbstractMap.java (toString): Use StringBuffer.
2861 * java/lang/ref/PhantomReference.java: Imported from classpath.
2862 * java/lang/ref/SoftReference.java: Ditto.
2863 * java/lang/ref/Reference.java: Ditto.
2864 * java/lang/ref/WeakReference.java: Ditto.
2865 * java/lang/ref/ReferenceQueue.java: Ditto.
2867 2000-12-10 Richard Henderson <rth@redhat.com>
2869 * configure.host: Recognize alpha*-*, not alphaev6-*.
2871 2000-12-09 Anthony Green <green@redhat.com>
2873 * configure.host: Enable interpreter for Alpha.
2875 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2877 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2878 (ZIP): Points at fastjar instead of zip.
2879 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2880 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2881 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2882 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2883 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2884 ($(x_java_source_files:.java=.class):): Likewise.
2885 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2887 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2888 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2889 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2890 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2891 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2892 gnu/gcj/runtime/VMClassLoader.h:,
2893 java/io/ObjectInputStream$$GetField.h:,
2894 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2895 (Makefile.in): Rebuilt.
2897 2000-12-08 Tom Tromey <tromey@redhat.com>
2900 * configure: Rebuilt.
2901 * configure.in: Use echo, not `:', to create .d files.
2903 2000-12-08 Warren Levy <warrenl@redhat.com>
2905 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2906 NullPointerException so proper check of offset can be done.
2908 2000-12-08 Warren Levy <warrenl@redhat.com>
2910 * java/io/FileInputStream.java (close): Check if the fd is valid.
2911 * java/io/RandomAccessFile.java (close): Ditto.
2912 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2913 * java/net/PlainSocketImpl.java (close): Ditto.
2915 2000-12-06 Tom Tromey <tromey@redhat.com>
2917 * java/awt/GridBagConstraints.java: Filled in values for static
2920 * java/util/BitSet.java: Updated copyright notice.
2922 * Makefile.in: Rebuilt.
2923 * Makefile.am (awt_java_source_files): Added new file.
2924 * java/awt/GridBagConstraints.java: New file.
2926 2000-12-05 Tom Tromey <tromey@redhat.com>
2928 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2929 Now package-private, not protected.
2930 * java/text/DateFormatSymbols.java (equals): Now private.
2931 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2932 * java/util/BitSet.java: Class no longer final.
2934 2000-12-04 Warren Levy <warrenl@redhat.com>
2936 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2937 out code dependent on compiler and library changes.
2939 2000-12-04 Warren Levy <warrenl@redhat.com>
2941 * java/io/FilePermission.java: Made class final per spec.
2942 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2943 method name to match spec (fixed typo).
2944 * java/util/LinkedList.java: Implements List.
2946 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2948 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2949 Edgar Villanueva <edgarvil@home.com>.
2951 2000-12-03 Tom Tromey <tromey@redhat.com>
2953 * java/awt/geom/Point2D.java: Added protected constructor.
2954 (equals): New method.
2955 (Float.setLocation(float,float)): New method.
2956 * java/awt/geom/Dimension2D.java: Added protected constructor.
2957 * java/awt/geom/AffineTransform.java: Made all constants public.
2958 (concatenate): Fixed typo in name.
2959 * java/awt/event/WindowAdapter.java: Class now abstract.
2960 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2961 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2964 * java/awt/AWTError.java: Extend Error, not
2965 IllegalStateException.
2967 * Makefile.in: Rebuilt.
2968 * Makefile.am (awt_java_source_files): Added new file.
2969 * java/awt/geom/RoundRectangle2D.java: New file.
2971 * Makefile.in: Rebuilt.
2972 * Makefile.am (awt_java_source_files): Added new file.
2973 * java/awt/FlowLayout.java: New file.
2975 * Makefile.in: Rebuilt.
2976 * Makefile.am (awt_java_source_files): Added new file.
2977 * java/awt/GridLayout.java: New file.
2979 2000-12-02 Tom Tromey <tromey@redhat.com>
2981 * Makefile.in: Rebuilt.
2982 * Makefile.am (awt_java_source_files): Added new files.
2983 * java/awt/CardLayout.java: New file.
2984 * java/awt/AWTPermission.java: New file.
2986 2000-12-01 Tom Tromey <tromey@redhat.com>
2988 * java/util/Vector.java (insertElementAt): Unconditionally
2989 increment elementCount.
2990 (removeRange): Clear unused slots in vector.
2992 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2994 * java/lang/natMath.cc: Declare fabsf() function.
2995 * java/lang/mprec.h: Don't include math.h.
2996 * java/lang/dtoa.c: Include string.h.
2997 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3000 From Adam Welc <welc@cs.purdue.edu>:
3001 * java/util/LinkedList.java (removeFirst): Update `first' field.
3002 Handle the last == first case.
3003 (removeLast): Update `last' field. Handle the last == first case.
3005 2000-12-01 Warren Levy <warrenl@cygnus.com>
3007 * Makefile.am: Added entries for new java.sql modules.
3008 * Makefile.in: Rebuilt.
3010 2000-12-01 Warren Levy <warrenl@cygnus.com>
3012 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3013 that aren't quite 1.2 compatible yet.
3015 2000-11-30 Warren Levy <warrenl@cygnus.com>
3017 * java/sql/Array.java: New file from classpath.
3018 * java/sql/BatchUpdateException.java: Ditto.
3019 * java/sql/Blob.java: Ditto.
3020 * java/sql/Clob.java: Ditto.
3021 * java/sql/Ref.java: Ditto.
3022 * java/sql/SQLData.java: Ditto.
3023 * java/sql/SQLInput.java: Ditto.
3024 * java/sql/SQLOutput.java: Ditto.
3025 * java/sql/Struct.java: Ditto.
3026 * java/sql/CallableStatement.java: Merged file from claspath.
3027 * java/sql/Connection.java: Ditto.
3028 * java/sql/DataTruncation.java: Ditto.
3029 * java/sql/DatabaseMetaData.java: Ditto.
3030 * java/sql/DriverManager.java: Ditto.
3031 * java/sql/PreparedStatement.java: Ditto.
3032 * java/sql/ResultSet.java: Ditto.
3033 * java/sql/ResultSetMetaData.java: Ditto.
3034 * java/sql/SQLException.java: Ditto.
3035 * java/sql/SQLWarning.java: Ditto.
3036 * java/sql/Statement.java: Ditto.
3037 * java/sql/Types.java: Ditto.
3039 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3041 * java/lang/natSystem.cc (init_properties): Set user.language and
3043 * configure.in: Check for setlocale.
3044 * configure: Rebuilt.
3045 * include/config.h.in: Rebuilt.
3047 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3048 the infate() call didn't deliver any output. Throw a ZipException if
3049 the needsDictionary() call returns true.
3050 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3051 * java/io/InputStreamReader: Use the default buffer size for the
3052 contained BufferedInputStream.
3054 2000-11-28 Warren Levy <warrenl@cygnus.com>
3056 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3057 more time zone entries.
3058 * java/text/SimpleDateFormat.java (format): Added case for
3061 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3063 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3064 directly rather than read() in all cases. Make primitive read
3065 implementations more efficient, as defined in JDK online docs.
3066 (skipBytes): Behave like the JDK's implementation.
3067 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3068 closed stream with checkStatus() whenever an IOException can be
3070 (checkStatus): New private method.
3072 2000-11-27 Warren Levy <warrenl@cygnus.com>
3074 * Makefile.am: Added natTimeZone.cc.
3075 * Makefile.in: Rebuilt.
3076 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3077 * java/text/DateFormatSymbols.java (ampms): Made package private.
3078 (eras): Made package private.
3079 (months): Made package private.
3080 (shortMonths): Made package private.
3081 (shortWeekdays): Made package private.
3082 (weekdays): Made package private.
3083 (formatPrefixes): New private field.
3084 (localPatternCharsDefault): Made private.
3085 (dateFormats): New package private field.
3086 (timeFormats): New package private field.
3087 (formatsForKey): New private method.
3088 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3089 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3090 * java/text/SimpleDateFormat.java: Merged with Classpath.
3091 * java/util/TimeZone.java: Merged with Classpath.
3092 * java/util/natTimeZone.cc: New file.
3094 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3096 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3097 (addElement): Don't increment elementCount twice. Doh.
3098 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3099 array needs to be expanded.
3101 * java/util/Collections.java (UnmodifiableCollection): Implement
3103 (UnmodifiableList): Throw UnsupportedOperationException from
3104 modification methods. Set `l' from the one-parameter constructor.
3105 (UnmodifiableMap): Implement toString().
3106 (SynchronizedCollection): Ditto.
3107 (SynchronizedList): Set `l' from the one-parameter constructor.
3108 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3109 (SynchronizedMap): Implement toString().
3111 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3113 * javax/naming/NameParser.java,
3114 javax/naming/directory/AttributeInUseException.java,
3115 javax/naming/directory/AttributeModificationException.java,
3116 javax/naming/directory/InvalidAttributeIdentifierException.java,
3117 javax/naming/directory/InvalidAttributesException.java,
3118 javax/naming/directory/InvalidAttributeValueException.java,
3119 javax/naming/directory/InvalidSearchControlsException.java,
3120 javax/naming/directory/InvalidSearchFilterException.java,
3121 javax/naming/directory/NoSuchAttributeException.java,
3122 javax/naming/directory/SchemaViolationException.java: New files.
3124 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3126 * javax/naming/InitialContext.java (rebind): Implement.
3127 (unbind): Implement.
3128 (rename): Implement.
3130 (listBindings): Implement.
3131 (destroySubcontext): Implement.
3132 (createSubcontext): Implement.
3133 (lookupLink): Implement.
3134 (getNameParser): Implement.
3135 (composeName): Implement.
3136 (addToEnvironment): Implement.
3138 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3140 * javax/naming/AuthenticationException.java,
3141 javax/naming/AuthenticationNotSupportedException.java,
3142 javax/naming/CannotProceedException.java,
3143 javax/naming/CommunicationException.java,
3144 javax/naming/ConfigurationException.java,
3145 javax/naming/ContextNotEmptyException.java,
3146 javax/naming/InsufficientResourcesException.java,
3147 javax/naming/InterruptedNamingException.java,
3148 javax/naming/InvalidNameException.java,
3149 javax/naming/LimitExceededException.java,
3150 javax/naming/LinkException.java,
3151 javax/naming/LinkLoopException.java,
3152 javax/naming/MalformedLinkException.java,
3153 javax/naming/NameAlreadyBoundException.java,
3154 javax/naming/NameNotFoundException.java,
3155 javax/naming/NamingSecurityException.java,
3156 javax/naming/NoPermissionException.java,
3157 javax/naming/NotContextException.java,
3158 javax/naming/PartialResultException.java,
3159 javax/naming/ReferralException.java,
3160 javax/naming/ServiceUnavailableException.java,
3161 javax/naming/SizeLimitExceededException.java,
3162 javax/naming/TimeLimitExceededException.java: New files.
3164 * javax/naming/Name.java (clone): New method.
3165 (compareTo): New method.
3166 (isEmpty): New method.
3167 (getAll): New method.
3168 (getPrefix): New method.
3169 (getSuffix): New method.
3170 (startsWith): New method.
3171 (endsWith): New method.
3172 (addAll): New method.
3173 (addAll): New method.
3176 (remove): New method.
3178 * javax/naming/Context.java (lookup): New method.
3179 (rebind): New method.
3180 (unbind): New method.
3181 (rename): New method.
3183 (listBindings): New method.
3184 (destroySubcontext): New method.
3185 (createSubcontext): New method.
3186 (lookupLink): New method.
3187 (getNameParser): New method.
3188 (composeName): New method.
3189 (addToEnvironment): New method.
3190 (removeFromEnvironment): New method.
3191 (getEnvironment): New method.
3192 (close): New method.
3193 (getNameInNamespace): New method.
3195 * javax/naming/InitialContext.java (lookup): New method.
3196 (rebind): New method.
3197 (unbind): New method.
3198 (rename): New method.
3200 (listBindings): New method.
3201 (destroySubcontext): New method.
3202 (createSubcontext): New method.
3203 (lookupLink): New method.
3204 (getNameParser): New method.
3205 (composeName): New method.
3206 (addToEnvironment): New method.
3207 (removeFromEnvironment): New method.
3208 (getEnvironment): New method.
3209 (close): New method.
3210 (getNameInNamespace): New method.
3212 2000-11-26 Tom Tromey <tromey@cygnus.com>
3214 * Makefile.in: Rebuilt.
3215 * Makefile.am (core_java_source_files): Added
3216 RuntimePermission.java.
3217 * java/lang/RuntimePermission.java: Imported from Classpath.
3218 * java/lang/Thread.java (getContextClassLoader): Now
3219 synchronized. Added security code.
3220 (setContextClassLoader): Likewise.
3222 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3223 length field of array.
3224 (_Jv_NewPrimArray): Likewise.
3225 * gcj/array.h (__JArray): `length' field now const. Added
3228 2000-11-26 Anthony Green <green@redhat.com>
3230 * javax/naming/spi/NamingManager.java,
3231 javax/naming/spi/ObjectFactory.java,
3232 javax/naming/spi/InitialContextFactory.java,
3233 javax/naming/spi/InitialContextFactoryBuilder.java,
3234 javax/naming/RefAddr.java, javax/naming/Reference.java,
3235 javax/naming/NamingException.java, javax/naming/Context.java,
3236 javax/naming/Referenceable.java,
3237 javax/naming/directory/InitialDirContext.java,
3238 javax/naming/directory/DirContext.java,
3239 javax/naming/directory/Attributes.java,
3240 javax/naming/directory/Attribute.java,
3241 javax/naming/StringRefAddr.java,
3242 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3243 javax/naming/InitialContext.java,
3244 javax/naming/NoInitialContextException.java: New files.
3246 2000-11-25 Anthony Green <green@redhat.com>
3248 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3249 (_Jv_NewPrimArray): Likewise.
3250 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3251 (class JArray): Removed constructor.
3253 * java/lang/Thread.java (context_class_loader): New private data.
3254 (getContextClassLoader): New method.
3255 (setContextClassLoader): New method.
3256 (Thread): Initialize context_class_loader.
3258 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3259 (getResource): Rename to findResource.
3260 (findResource): New method. Used to be getResource.
3261 (getResourceAsStream): Deleted.
3262 (jarFileize): Extracted logic from URLClassLoader constructor into
3263 this new private method.
3264 (addURL): New protected method.
3265 (URLClassLoader): Call jarFileize. Use addElement instead of
3267 (findResources): New method.
3269 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3270 (getResource): Implement correct logic.
3271 (findResource): New method.
3272 (getResources): New method.
3273 (findClass): Create a ClassNotFoundException with the name of the
3274 class rather than nothing at all.
3275 (defineClass) Only throw ClassFormatError.
3277 * java/lang/Class.java (forName): New method.
3278 * java/lang/Class.h (forName): New method.
3279 * java/lang/natClass.cc (forName): New method.
3281 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3283 * java/lang/System.java (setProperties): Only call init_properties()
3284 if properties is null.
3285 (getProperties): Ditto.
3286 (getProperty): Ditto.
3287 (setProperty): Call init_properties if properties are null.
3288 (prop_init): Remove field.
3289 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3290 method. Check for null properties after synchronizing instead of
3291 prop_init flag. Set the properties field last for thread safety.
3293 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3294 test for gcj.dumpobjects property and enable object stream dumping
3296 (dumpElement): No longer native.
3297 (dumpElementln): Ditto.
3298 (setDump): Do not define.
3299 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3300 (dumpElementln): Removed.
3303 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3305 * configure: Rebuilt.
3306 * Makefile.in: Rebuilt.
3307 * Makefile.am (built_java_source_files): Add Configuration.java.
3308 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3309 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3310 Create `gnu' directory in the build tree.
3311 * gnu/classpath/Configuration.java.in: New file.
3313 2000-11-24 Tom Tromey <tromey@cygnus.com>
3315 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3317 (_Jv_NewPrimArray): Likewise.
3319 * gcj/array.h (__JArray): `length' field now const. Added
3321 (class JArray): Added constructor.
3323 2000-11-23 Mark Wielaard <mark@klomp.org>
3325 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3328 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3330 * java/util/Vector.java: Improve exception messages.
3331 (Vector): Check initialCapacity for IllegalArgumentException.
3332 (tromToSize): Don't check for elementCount == elementData.length
3334 (toArray): Don't try to set null marker if target array is the same
3335 length as the vector.
3337 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3339 * Makefile.in: Rebuilt.
3340 * Makefile.am (core_java_source_files): Added Collections.java.
3341 * java/util/List.java: Merged from classpath.
3342 * java/util/Vector.java: Ditto.
3343 * java/util/Collections.java: From classpath.
3344 * java/util/ArrayList.java (addAll(Collection)): Call
3345 addAll(int,Collection) instead of duplicating code.
3346 (indexOf): Clean up int initialization.
3347 (clear): Set cleared array entries to null, to allow garbage
3349 * java/util/List.java: Minor formatting fixes.
3350 * java/util/SimpleTimeZone.java: ditto.
3352 2000-11-18 Tom Tromey <tromey@cygnus.com>
3354 * Makefile.in: Rebuilt.
3355 * Makefile.am (core_java_source_files): Added new files.
3356 * java/lang/reflect/ReflectPermission.java: New class.
3357 * java/io/FileFilter.java: From Classpath
3358 * java/io/FilePermission.java: From Classpath.
3360 2000-11-17 Tom Tromey <tromey@cygnus.com>
3362 * java/lang/reflect/AccessibleObject.java (isAccessible,
3363 setAccessible): Now public.
3365 * java/lang/natString.cc: Include Locale.h.
3366 (toUpperCase): Added `locale' argument. Handle locale
3368 (toLowerCase): Added `locale' argument. Handle locale
3370 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3371 CAPITAL_I): New defines.
3372 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3375 (toUpperCase, toLowerCase): New methods. Variants which accept
3378 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3381 * java/util/PropertyPermission.java: Re-merged from Classpath.
3383 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3385 * java/text/StringCharacterIterator.java: Reindented.
3386 (setText): New method.
3388 2000-11-17 Mark Wielaard <mark@klomp.org>
3390 Merge with Classpath (changes by Bryce McKinlay)
3391 * java/util/jar/*.java: Reformat all to unofficial standard coding
3392 style. No changes of substance.
3394 2000-11-17 Mark Wielaard <mark@klomp.org>
3396 * java/util/zip/*.java: Javadoc updates.
3398 2000-11-17 Tom Tromey <tromey@cygnus.com>
3400 * java/text/CollationKey.java: Implement Comparable.
3401 (compareTo(Object)): New method.
3402 * java/text/Collator.java (compare(Object,Object)): New method.
3403 Implement Comparator.
3405 * java/util/zip/InflaterInputStream.java (available): New method.
3406 (close): New method.
3407 (read, available, skip, fill): Throw exception if stream closed.
3408 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3409 getNextEntry): Throw exception if closed.
3411 2000-11-16 Tom Tromey <tromey@cygnus.com>
3413 * java/io/PushbackReader.java: Merged with Classpath.
3414 * java/util/Arrays.java: Updated from Classpath.
3416 * scripts/blocks.pl: New file.
3417 * java/lang/Character.java (Subset): New class.
3418 (UnicodeBlock): New class.
3420 * java/lang/Math.java (toDegrees, toRadians): New methods.
3422 * java/lang/Float.java: Implement Comparable.
3423 (compareTo): New methods.
3424 * java/lang/Double.java: Implement Comparable.
3425 (compareTo): New methods.
3427 2000-11-16 Warren Levy <war