1 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3 * java/io/File.java (normalizePath): Use equals() not '==' for string
6 2001-09-12 Tom Tromey <tromey@redhat.com>
8 * Makefile.in: Rebuilt.
9 * Makefile.am (class-check): New target.
11 2001-09-11 Tom Tromey <tromey@redhat.com>
13 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
15 2001-09-10 Tom Tromey <tromey@redhat.com>
17 * java/util/Properties.java (load): Correctly read \u sequences.
18 Report from Anthony Green.
20 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
22 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
24 * configure: Re-generate.
26 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
28 * include/jvm.h (_Jv_AllocRawObj): New prototype.
29 * boehm.cc (_Jv_AllocRawObj): Implement.
30 * nogc.cc (_Jv_AllocRawObj): Likewise.
31 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
33 2001-09-06 Anthony Green <green@redhat.com>
35 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
36 redundant method calls.
37 (emptyLocale): New private member.
38 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
41 2001-09-06 Tom Tromey <tromey@redhat.com>
43 * java/text/RuleBasedCollator.java (clone): Rewrote.
44 (RuleBasedCollator(RuleBasedCollator)): Removed.
45 * java/text/MessageFormat.java: Re-merged from Classpath.
46 * java/text/DecimalFormat.java: Re-merged from Classpath.
48 2001-09-06 Anthony Green <green@redhat.com>
50 * include/jvm.h: Declare _Jv_RegisterResource.
51 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
52 gnu/gcj/protocol/core/Connection.java,
53 gnu/gcj/protocol/core/Handler.java,
54 gnu/gcj/protocol/core/CoreInputStream.java,
55 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
56 * java/net/URL.java (setURLStreamHandler): Use
57 gnu.gcj.protocol.core.Handler for the core protocol.
58 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
59 end of java.class.path.
60 * Makefile.am (ordinary_java_source_files): Add new java files.
61 (nat_source_files): Add new native code files.
62 * Makefile.in: Rebuilt.
64 2001-09-05 Tom Tromey <tromey@redhat.com>
66 * java/util/Properties.java: Re-merged from Classpath.
68 From Eric Blake, via Classpath:
69 * java/lang/String.java (CaseInsensitiveComparator): New class.
70 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
72 * java/util/Date.java: Re-merged with Classpath.
74 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
76 2001-09-05 Corey Minyard <minyard@acm.org>
77 Tom Tromey <tromey@redhat.com>
79 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
80 (_Jv_RegisterClassHookDefault): Throw error if a class is
83 2001-09-05 Tom Tromey <tromey@redhat.com>
85 * java/lang/natSystem.cc (init_properties): Default locale is
88 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
90 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
91 here, DecimalFormat.applyPattern() does not throw it.
93 2001-09-04 Tom Tromey <tromey@redhat.com>
95 * java/util/AbstractMap.java: Re-merged with Classpath.
96 * java/util/IdentityHashMap.java: Re-merged with Classpath.
98 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
99 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
100 gnu/gcj/text/LocaleData_en_US.java: Removed.
101 * java/text/DateFormatSymbols.java (clone): Use Classpath
103 (equals): Simplified.
104 (DateFormatSymbols): Look in gnu.java.locale for information.
105 (DateFormatSymbols(DateFormatSymbols)): Removed.
106 (safeGetResource): Removed.
107 (DateFormatSymbols): Throws MissingResourceException.
108 (ampmsDefault, erasDefault, localPatternCharsDefault,
109 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
110 weekdaysDefault, zoneStringsDefault): Removed.
111 * java/text/Collator.java (getAvailableLocales): Use modified
112 Classpath implementation.
113 (getInstance): Look in gnu.java.locale for information.
115 * java/text/MessageFormat.java: Reindented.
117 * java/text/FieldPosition.java: Merged with Classpath.
118 * java/text/ParsePosition.java: Merged with Classpath.
119 * java/text/Format.java: Merged with Classpath.
120 * java/text/StringCharacterIterator.java
121 (StringCharacterIterator(StringCharacterIterator,int,int)): New
122 constructor from Classpath.
123 * java/text/Annotation.java,
124 java/text/AttributedCharacterIterator.java,
125 java/text/AttributedString.java,
126 java/text/AttributedStringIterator.java: New from Classpath.
127 * java/text/CharacterIterator.java: Copied from Classpath.
128 * java/text/ChoiceFormat.java: Reindented.
130 * gnu/java/text/BaseBreakIterator.java,
131 gnu/java/text/CharacterBreakIterator.java,
132 gnu/java/text/LineBreakIterator.java,
133 gnu/java/text/LocaleData_en.java,
134 gnu/java/text/LocaleData_en_US.java,
135 gnu/java/text/SentenceBreakIterator.java,
136 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
137 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
139 * java/text/BreakIterator.java (getAvailableLocales): Use
140 Classpath implementation.
141 (getInstance): Look in gnu.java.locale for information.
142 (getCharacterInstance, getLineInstance, getSentenceInstance,
143 getWordInstance): Look in gnu.java.text for implementations.
144 * java/text/DecimalFormatSymbols.java: Reindented
145 (clone): Use Classpath implementation.
146 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
147 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
149 * java/text/DateFormat.java: Merged with Classpath.
150 (getAvailableLocales): Use Classpath implementation.
151 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
152 (computeInstance): Look in gnu.java.locale for information.
153 * java/text/NumberFormat.java: Reindented.
154 (computeInstance): Look in gnu.java.locale for information.
155 (getAvailableLocales): Use implementation from Classpath.
156 (setMaximumIntegerDigits): Likewise.
157 (setMinimumIntegerDigits): Likewise.
158 (setMaximumFractionDigits): Likewise.
160 * java/text/DecimalFormat.java: Reindented.
161 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
162 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
163 * Makefile.in: Rebuilt.
164 * Makefile.am (ordinary_java_source_files): Added all new files.
165 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
166 * java/security/spec/AlgorithmParameterSpec.java,
167 java/security/spec/KeySpec.java: Re-merged with Classpath.
169 Fix for PR libgcj/4213:
170 * Makefile.am (ordinary_java_source_files): Added new file.
171 * gnu/gcj/text/LocaleData.java: New file.
173 2001-09-03 Tom Tromey <tromey@redhat.com>
175 * java/lang/reflect/natField.cc (set): Allow for case when the
176 value is null. Fixes PR libgcj/4208.
178 * gcj/javaprims.h: Regenerated class list.
179 * java/lang/IllegalThreadStateException.java,
180 java/lang/InstantiationException.java: Minor comment tweaks to
181 satisfy libgcj `classes.pl' script.
183 2001-09-01 Tom Tromey <tromey@redhat.com>
185 * Makefile.in: Rebuilt.
186 * Makefile.am (core_java_source_files): Added
187 UnsupportedClassVersionError.
188 * java/lang/UnsupportedClassVersionError.java: New file from
191 * java/io/CharConversionException.java, java/io/EOFException.java,
192 java/io/FileNotFoundException.java, java/io/IOException.java,
193 java/io/InterruptedIOException.java,
194 java/io/ObjectStreamException.java,
195 java/io/OptionalDataException.java,
196 java/io/StreamCorruptedException.java,
197 java/io/SyncFailedException.java,
198 java/io/UTFDataFormatException.java,
199 java/io/UnsupportedEncodingException.java,
200 java/lang/AbstractMethodError.java,
201 java/lang/ArithmeticException.java,
202 java/lang/ArrayIndexOutOfBoundsException.java,
203 java/lang/ArrayStoreException.java,
204 java/lang/ClassCastException.java,
205 java/lang/ClassCircularityError.java,
206 java/lang/ClassFormatError.java,
207 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
208 java/lang/Exception.java,
209 java/lang/ExceptionInInitializerError.java,
210 java/lang/IllegalAccessError.java,
211 java/lang/IllegalAccessException.java,
212 java/lang/IllegalArgumentException.java,
213 java/lang/IllegalMonitorStateException.java,
214 java/lang/IllegalStateException.java,
215 java/lang/IllegalThreadStateException.java,
216 java/lang/IncompatibleClassChangeError.java,
217 java/lang/IndexOutOfBoundsException.java,
218 java/lang/InstantiationError.java,
219 java/lang/InstantiationException.java,
220 java/lang/InternalError.java, java/lang/InterruptedException.java,
221 java/lang/LinkageError.java,
222 java/lang/NegativeArraySizeException.java,
223 java/lang/NoClassDefFoundError.java,
224 java/lang/NoSuchFieldError.java,
225 java/lang/NoSuchFieldException.java,
226 java/lang/NoSuchMethodError.java,
227 java/lang/NoSuchMethodException.java,
228 java/lang/NullPointerException.java,
229 java/lang/NumberFormatException.java,
230 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
231 java/lang/SecurityException.java,
232 java/lang/StackOverflowError.java,
233 java/lang/StringIndexOutOfBoundsException.java,
234 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
235 java/lang/UnsatisfiedLinkError.java,
236 java/lang/UnsupportedOperationException.java,
237 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
238 java/lang/reflect/InvocationTargetException.java,
239 java/net/BindException.java, java/net/ConnectException.java,
240 java/net/MalformedURLException.java,
241 java/net/NoRouteToHostException.java,
242 java/net/ProtocolException.java, java/net/SocketException.java,
243 java/net/UnknownHostException.java,
244 java/net/UnknownServiceException.java,
245 java/text/ParseException.java: Copied from Classpath, thanks to
246 Mark Wielaard who did the merge.
248 * java/lang/System.java (getProperty): Use single argument form of
249 SecurityManager.checkPropertyAccess.
250 * Makefile.in: Rebuilt.
251 * Makefile.am (core_java_source_files): Added VMSecurityManager.
252 * java/lang/VMSecurityManager.java: New file.
253 * java/lang/SecurityManager.java: Merged with Classpath.
255 2001-08-31 Per Bothner <per@bothner.com>
257 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
258 (_Jv_RegisterClassHookDefault): Likewise.
259 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
260 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
261 (_Jv_RegisterClassHookDefault): New.function.
262 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
264 * java/lang/ClassLoader.java (system): Remove static field.
265 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
266 directly instead of using it to set the system field.
267 (loadClass): Use VMClassLoader.instance instead of system field.
268 (findSystemClass): Similar.
269 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
270 than ClassLoader::system which no longer exists.
271 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
273 2001-08-31 Tom Tromey <tromey@redhat.com>
275 * java/io/BufferedReader.java, java/io/ObjectInput.java,
276 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
277 Re-merged with Classpath.
279 Re-merge with Classpath:
280 * java/util/Comparator (equals): Added.
281 * java/io/PipedWriter.java (write): Changed argument to `int'.
283 * java/io/FileDescriptor.java (FileDescriptor()): New
285 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
287 * Makefile.in: Rebuilt.
288 * Makefile.am (ordinary_java_source_files): Removed
289 EnumerationChain, added DoubleEnumeration.
290 (nat_source_files): Added natResourceBundle.cc.
291 * java/util/natResourceBundle.cc: New file.
292 * gnu/java/util/DoubleEnumeration.java: New file.
293 * gnu/gcj/util/EnumerationChain.java: Removed.
294 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
295 * java/util/ResourceBundle.java: Merged with Classpath.
296 * java/util/StringTokenizer.java: Merged with Classpath.
297 * java/util/Locale.java: Merged with Classpath.
298 * java/util/Random.java: Merged with Classpath.
299 * java/util/PropertyResourceBundle.java: Merged with Classpath.
300 * java/util/ListResourceBundle.java: Merged with Classpath.
301 * java/util/ConcurrentModificationException.java: Re-merged with
303 * java/util/EmptyStackException.java: Likewise.
304 * java/util/MissingResourceException.java: Likewise.
305 * java/util/NoSuchElementException.java: Likewise.
306 * java/util/TooManyListenersException.java: Likewise.
308 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
309 * java/io/OptionalDataException.java: Merged with Classpath.
311 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
313 * exception.cc (PERSONALITY_FUNCTION): Simplify
316 2001-08-31 Tom Tromey <tromey@redhat.com>
318 * java/io/ByteArrayInputStream.java: Merged with Classpath.
320 2001-08-30 Tom Tromey <tromey@redhat.com>
322 * java/io/BufferedReader.java: Re-merged with Classpath.
324 2001-08-28 Per Bothner <per@bothner.com>
326 * java/math/BigInteger.java (init(int,Random)): New method.
327 Move body of constructor <init>(int,Random)) here.
328 Re-write it to avoid constructing unneeded temporaries.
329 (<init>(int,int,Random)): Use new init method to avoid constructing
330 extra temporary BigIntegers.
332 2001-08-27 Tom Tromey <tromey@redhat.com>
334 * java/rmi/activation/Activatable.java,
335 java/rmi/activation/ActivateFailedException.java,
336 java/rmi/activation/ActivationDesc.java,
337 java/rmi/activation/ActivationException.java,
338 java/rmi/activation/ActivationGroup.java,
339 java/rmi/activation/ActivationGroupDesc.java,
340 java/rmi/activation/ActivationGroupID.java,
341 java/rmi/activation/ActivationID.java,
342 java/rmi/activation/ActivationInstantiator.java,
343 java/rmi/activation/ActivationMonitor.java,
344 java/rmi/activation/ActivationSystem.java,
345 java/rmi/activation/Activator.java,
346 java/rmi/activation/UnknownGroupException.java,
347 java/rmi/activation/UnknownObjectException.java,
348 java/rmi/AccessException.java,
349 java/rmi/AlreadyBoundException.java,
350 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
351 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
352 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
353 java/rmi/NotBoundException.java,
354 java/rmi/RMISecurityException.java,
355 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
356 java/rmi/RemoteException.java, java/rmi/ServerError.java,
357 java/rmi/ServerException.java,
358 java/rmi/ServerRuntimeException.java,
359 java/rmi/StubNotFoundException.java,
360 java/rmi/UnexpectedException.java,
361 java/rmi/UnknownHostException.java,
362 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
363 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
364 java/rmi/registry/LocateRegistry.java,
365 java/rmi/registry/Registry.java,
366 java/rmi/registry/RegistryHandler.java,
367 java/rmi/server/ExportException.java,
368 java/rmi/server/LoaderHandler.java,
369 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
370 java/rmi/server/Operation.java,
371 java/rmi/server/RMIClassLoader.java,
372 java/rmi/server/RMIClientSocketFactory.java,
373 java/rmi/server/RMIFailureHandler.java,
374 java/rmi/server/RMIServerSocketFactory.java,
375 java/rmi/server/RMISocketFactory.java,
376 java/rmi/server/RemoteCall.java,
377 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
378 java/rmi/server/RemoteServer.java,
379 java/rmi/server/RemoteStub.java,
380 java/rmi/server/ServerCloneException.java,
381 java/rmi/server/ServerNotActiveException.java,
382 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
383 java/rmi/server/SkeletonMismatchException.java,
384 java/rmi/server/SkeletonNotFoundException.java,
385 java/rmi/server/SocketSecurityException.java,
386 java/rmi/server/UID.java,
387 java/rmi/server/UnicastRemoteObject.java,
388 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
389 gnu/java/rmi/dgc/DGCImpl_Skel.java,
390 gnu/java/rmi/dgc/DGCImpl_Stub.java,
391 gnu/java/rmi/registry/RegistryImpl.java,
392 gnu/java/rmi/registry/RegistryImpl_Skel.java,
393 gnu/java/rmi/registry/RegistryImpl_Stub.java,
394 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
395 gnu/java/rmi/server/ProtocolConstants.java,
396 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
397 gnu/java/rmi/server/RMIHashes.java,
398 gnu/java/rmi/server/RMIObjectInputStream.java,
399 gnu/java/rmi/server/RMIObjectOutputStream.java,
400 gnu/java/rmi/server/UnicastConnection.java,
401 gnu/java/rmi/server/UnicastConnectionManager.java,
402 gnu/java/rmi/server/UnicastRef.java,
403 gnu/java/rmi/server/UnicastRemoteCall.java,
404 gnu/java/rmi/server/UnicastRemoteStub.java,
405 gnu/java/rmi/server/UnicastServer.java,
406 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
407 Kaffe. Relabelled classes to fit into Classpath tree.
408 * Makefile.in: Rebuilt.
409 * Makefile.am (rmi_java_source_files): New macro.
410 (ordinary_java_source_files): Reference it.
411 (bin_PROGRAMS): Added rmic and rmiregistry.
412 (rmic_SOURCES): New macro.
413 (EXTRA_rmic_SOURCES): Likewise.
414 (rmic_LDFLAGS): Likewise.
415 (rmic_LINK): Likewise.
416 (rmic_LDADD): Likewise.
417 (rmic_DEPENDENCIES): Likewise.
418 (rmiregistry_SOURCES): New macro.
419 (EXTRA_rmiregistry_SOURCES): Likewise.
420 (rmiregistry_LDFLAGS): Likewise.
421 (rmiregistry_LINK): Likewise.
422 (rmiregistry_LDADD): Likewise.
423 (rmiregistry_DEPENDENCIES): Likewise.
425 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
427 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
429 * Makefile.am: New friends for java/lang/Thread.h.
430 * prims.cc (runFirst): Removed.
431 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
432 (_Jv_RunMain): Now takes either a klass or class name parameter.
433 Create a gnu.gcj.runtime.FirstThread and attach the native thread
434 to that, then run it using _Jv_ThreadRun. Remove special handling of
435 jar files, instead pass is_jar parameter through to FirstThread.
436 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
437 of _Jv_AttachCurrentThread.
438 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
439 (run): New method. Take care of looking up main class manifest
440 attribute and calling forName if neccessary. Then call call_main.
441 (call_main): New native method.
442 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
443 relocated from prims.cc. Look up and call main method.
444 * java/lang/Thread.java (run_): Removed.
445 * java/lang/natThread.cc (run_): Renamed to...
446 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
447 (_Jv_NotifyThreadStart): here. New function.
448 (countStackFrames, destroy, resume, suspend, stop): Throw
449 UnsupportedOperationExceptions rather than JvFail'ing.
450 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
451 Existing version wraps new variant.
454 2001-08-23 Tom Tromey <tromey@redhat.com>
456 * java/lang/reflect/Field.java (toString): Use
457 Method.appendClassName.
458 * java/lang/reflect/Constructor.java (toString): Use
459 Method.appendClassName.
460 * java/lang/reflect/Method.java: Reindented.
461 (appendClassName): New method.
463 * defineclass.cc (handleMethod ): Initialize `throws' field of
465 (read_one_method_attribute): Handle Exceptions attribute.
466 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
467 (ObjectClass): Removed.
468 (getType): Compute `exception_types'.
469 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
471 2001-08-21 Anthony Green <green@redhat.com>
473 * java/lang/natClassLoader.cc (findClass): Search for
474 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
476 2001-08-21 Jeff Sturm <jsturm@one-point.com>
478 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
481 2001-08-20 Tom Tromey <tromey@redhat.com>
483 * java/awt/GridBagConstraints.java: Removed comment.
485 * jni.cc (nathash, nathash_count, nathash_size): New globals.
486 (DELETED_ENTRY): New define.
487 (hash): New function.
488 (nathash_find_slot): Likewise.
489 (natrehash): Likewise.
490 (nathash_add): Likewise.
491 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
493 (nathash_find): New function.
494 (_Jv_LookupJNIMethod): Use it. Synchronize body.
495 (call): Synchronize around assignment.
497 2001-08-17 Jeff Sturm <jsturm@one-point.com>
499 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
500 starting from zero offset.
502 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
504 * boehm.cc: Include gc_local_alloc.h if appropriate.
505 (GC_GENERIC_MALLOC): Don't define.
506 (MAYBE_MARK): Redefine for GC 6.0.
507 (_Jv_MarkObj): Mark class differently.
508 (_Jv_AllocArray): Use GC_generic_malloc.
510 2001-08-17 Mark J Roberts <mjr@anarcast.net>
512 * java/math/BigInteger.java (randBytes): New method.
513 (BigInteger(int,Random)): Use randBytes.
515 2001-08-17 Tom Tromey <tromey@redhat.com>
517 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
519 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
521 * BigInteger.java: fix right shifts by nonzero multiples of 32.
523 2001-08-15 Tom Tromey <tromey@redhat.com>
525 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
526 (local_ref_table, global_ref_table): Now IdentityHashMap.
527 (_Jv_JNI_Init): Updated for new types.
528 (mark_for_gc): Likewise.
529 (unmark_for_gc): Likewise.
530 * gcj/javaprims.h: Rebuilt class list.
531 * Makefile.in: Rebuilt.
532 * Makefile.am (core_java_source_files): Added new file.
533 * java/util/IdentityHashMap.java: New file.
535 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
538 2001-08-09 Tom Tromey <tromey@redhat.com>
540 * java/awt/image/SampleModel.java (getPixel): Set correct array
541 element. From Chris Meyer.
543 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
545 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
546 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
548 2001-08-06 Tom Tromey <tromey@redhat.com>
550 * java/io/InputStreamReader.java (refill): Only call refill on
551 BufferedInputStream when appropriate constraints are met.
553 2001-08-05 Tom Tromey <tromey@redhat.com>
555 * java/io/StringWriter.java: Merged with Classpath.
556 * java/io/InputStream.java: Merged with Classpath.
557 * java/io/OutputStream.java: Merged with Classpath.
558 * java/io/PushbackInputStream.java: Merged with Classpath.
559 * java/io/CharArrayReader.java: Merged with Classpath.
560 * java/io/CharArrayWriter.java: Merged with Classpath.
562 2001-08-02 Tom Tromey <tromey@redhat.com>
564 * prims.cc (JNI_OnLoad): Don't declare.
565 (_JNI_OnLoad): Don't define.
566 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
568 2001-08-02 Tom Tromey <tromey@redhat.com>
570 * java/io/RandomAccessFile.java (seek): Let seek go past end of
572 (skipBytes): Don't fail if seeking past end of file.
573 * java/io/FileInputStream.java (skip): Don't fail if seeking past
575 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
577 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
579 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
581 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
583 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
585 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
586 to initialize global_ref_table/local_ref_table.
588 2001-08-02 Tom Tromey <tromey@redhat.com>
590 * configure: Rebuilt.
591 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
594 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
596 * include/posix.h (_POSIX_PII_SOCKET): Define.
597 * configure.in (HAVE_SOCKLEN_T): Define.
598 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
600 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
601 (java::net::PlainSocketImpl::accept): Use it.
602 Fixes PRs libgcj/3694, libgcj/3696.
604 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
605 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
606 * configure, include/config.h.in: Regenerate.
607 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
608 (mcastGrp): Likewise.
609 (java::net::PlainDatagramSocketImpl::setOption): Guard against
610 missing IPV6_MULTICAST_IF.
611 Fixes PR libgcj/3694.
613 2001-08-01 Jeff Sturm <jsturm@one-point.com>
615 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
617 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
619 * Makefile.in: Rebuilt.
620 * Makefile.am (GCJLINK): Added --tag=GCJ.
623 2001-07-30 Tom Tromey <tromey@redhat.com>
625 * java/util/Date.java: Re-merged with Classpath.
627 2001-07-30 Jeff Sturm <jsturm@one-point.com>
629 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
630 (_Jv_bind): New static function.
631 (bind): Use _Jv_bind.
632 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
633 (_Jv_bind, _Jv_connect): New static functions.
634 (bind): Use _Jv_bind.
635 (connect): Use _Jv_connect.
637 2001-07-30 Tom Tromey <tromey@redhat.com>
638 Corey Minyard <minyard@acm.org>
640 * gnu/gcj/convert/natIconv.cc (done): New methods.
641 * gnu/gcj/convert/Output_iconv.java (done): New method.
642 * gnu/gcj/convert/Input_iconv.java (done): New method.
643 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
645 (getDefaultEncodingClass): Removed.
646 (getDefaultEncoder): Use getEncoder.
648 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
650 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
652 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
654 (getDefaultDecodingClass): Removed.
655 (getDefaultDecoder): Use getDecoder.
656 (getDecoder): Look up decoder in cache.
658 * java/lang/natString.cc (init): Call `done' on converter.
659 (getBytes): Likewise.
661 2001-07-30 Tom Tromey <tromey@redhat.com>
663 * java/lang/Integer.java: Merged with Classpath.
665 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
667 * java/util/GregorianCalendar.java (GregorianCalendar): Call
668 setTimeInMillis() to set the default/current time.
670 2001-07-29 Mark Wielaard <mark@klomp.org>
672 * HACKING: add description on updating namespace
674 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
676 * java/util/Calendar.java (set): Never recompute fields here. They
677 will already be set if someone set time explicitly, and it can cause
678 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
679 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
680 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
682 * java/text/SimpleDateFormat.java (defaultCentury): New field.
683 (readObject): Call set2DigitYearStart if appropriate so that
684 defaultCentury is calculated.
685 (SimpleDateFormat): Don't bother clearing calendar here. Call
686 computeCenturyStart().
687 (set2DigitYearStart): Calculate and set defaultCentury.
688 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
690 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
691 2 numeric digits, use the 80-20 heuristic to parse the value into a
692 default century based on defaultCenturyStart.
693 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
695 2001-07-25 Tom Tromey <tromey@redhat.com>
697 * Makefile.in: Rebuilt.
698 * Makefile.am (libgcj.jar): Correctly fail when bytecode
701 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
703 * prims.cc (_JNI_OnLoad): New function.
704 (JNI_OnLoad): Use it.
705 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
707 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
709 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
710 Makefile.in: Regenerate.
712 2001-07-24 Tom Tromey <tromey@redhat.com>
714 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
717 2001-07-23 Tom Tromey <tromey@redhat.com>
719 * gcj/javaprims.h: Rebuilt class list.
720 * Makefile.in: Rebuilt.
721 * Makefile.am (core_java_source_files): Added VMClassLoader.
722 * java/lang/VMClassLoader.java: New file.
723 * java/lang/Boolean.java: Merged with Classpath.
724 * java/lang/Byte.java: Merged with Classpath.
725 * java/lang/Integer.java: Merged with Classpath.
726 * java/lang/Long.java: Merged with Classpath.
727 * java/lang/Number.java: Merged with Classpath.
728 * java/lang/Short.java: Merged with Classpath.
730 2001-07-22 Jeff Sturm <jsturm@one-point.com>
732 * configure.host: Enable hash synchronization for alpha*-*.
733 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
735 * java/lang/natObject.cc (compare_and_swap, release_set,
736 compare_and_swap_release): Added inline functions for alpha.
738 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
740 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
741 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
742 back to old RFC 2133 variants if missing.
744 2001-07-18 Tom Tromey <tromey@redhat.com>
746 * java/io/natFileWin32.cc (_access): Renamed.
748 * java/io/natFile.cc (_access): Renamed.
750 * java/io/File.java (access, stat): Add leading `_' to name.
753 2001-07-18 Tom Tromey <tromey@redhat.com>
756 * libgcj.spec.in (*lib): Added LIBICONV.
757 * configure: Rebuilt.
758 * configure.in: Call AM_ICONV. Don't check for iconv function.
759 Add parameters to JV_HASH_SYNCHRONIZATION define.
760 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
762 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
764 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
765 not by setting its size field.
767 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
769 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
772 2001-07-12 Tom Tromey <tromey@redhat.com>
773 David Brownell <david-b@pacbell.net>
775 Fix for PR libgcj/3426:
776 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
778 (read): Throw exception if character conversion fails.
779 * java/io/BufferedInputStream.java (refill): Now package-private.
780 * java/io/InputStreamReader.java (ready): Simplified.
781 (refill): New method.
784 2001-07-12 Tom Tromey <tromey@redhat.com>
786 Report from Henner Zeller:
787 * java/io/FileOutputStream.java (FileOutputStream): Throw
788 FileNotFoundException, not IOException.
790 2001-07-10 Anthony Green <green@redhat.com>
792 * Makefile.in: Rebuilt.
793 * Makefile.am: Add new files.
794 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
795 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
796 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
797 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
798 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
799 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
800 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
801 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
802 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
803 org/w3c/dom/ranges/DocumentRange.java,
804 org/w3c/dom/ranges/Range.java,
805 org/w3c/dom/ranges/RangeException.java,
806 org/w3c/dom/traversal/DocumentTraversal.java,
807 org/w3c/dom/traversal/NodeFilter.java,
808 org/w3c/dom/traversal/NodeIterator.java,
809 org/w3c/dom/traversal/TreeWalker.java,
810 org/xml/sax/ext/DeclHandler.java,
811 org/xml/sax/ext/LexicalHandler.java,
812 org/xml/sax/helpers/AttributeListImpl.java,
813 org/xml/sax/helpers/AttributesImpl.java,
814 org/xml/sax/helpers/DefaultHandler.java,
815 org/xml/sax/helpers/LocatorImpl.java,
816 org/xml/sax/helpers/NamespaceSupport.java,
817 org/xml/sax/helpers/ParserAdapter.java,
818 org/xml/sax/helpers/ParserFactory.java,
819 org/xml/sax/helpers/XMLFilterImpl.java,
820 org/xml/sax/helpers/XMLReaderAdapter.java,
821 org/xml/sax/helpers/XMLReaderFactory.java,
822 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
823 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
824 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
825 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
826 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
827 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
828 org/xml/sax/SAXNotRecognizedException.java,
829 org/xml/sax/SAXNotSupportedException.java,
830 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
831 org/xml/sax/XMLReader.java: New files.
833 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
835 * Makefile.am: Added `java/lang/ThreadLocal.java'.
836 * Makefile.in: Regenerate.
837 * java/lang/ThreadLocal.java: Initial import.
839 2001-07-07 Jeff Sturm <jsturm@one-point.com>
841 * Makefile.am (libgcj.jar): Don't recursively make
842 built_java_source_files. Avoid long command lines.
843 Don't change to $(srcdir) to invoke javac.
844 (libgcj.la, libgcjx.la); Avoid long command lines.
845 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
846 * Makefile.in: Rebuilt.
848 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
850 * include/i386-signal.h: Don't do anything with unsigned divide
851 overflow except throw an exception.
853 2001-07-05 Tom Tromey <tromey@redhat.com>
856 * java/lang/Class.h (Class(void)): Now private. Removed
857 implementation. From dmorsberger@sensysdl.com.
859 2001-07-02 Tom Tromey <tromey@redhat.com>
861 Fix for PR bootstrap/3281:
862 * aclocal.m4, configure: Rebuilt.
863 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
864 Correctly compute libgcj_basedir.
865 (mkinstalldirs): Define and subst.
867 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
870 * java/io/LineNumberReader.java (reset): Pass correct arguments to
873 2001-06-27 Tom Tromey <tromey@redhat.com>
875 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
878 2001-06-25 Tom Tromey <tromey@redhat.com>
880 * scripts/encodings.pl: Generate lower-case names. Updated URL
881 for `character-sets' file.
882 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
884 Rebuilt list of aliases.
886 2001-06-25 Tom Tromey <tromey@redhat.com>
888 * java/io/natFileDescriptorPosix.cc (open): Change error message
889 formatting. From David Brownell.
891 2001-06-21 Tom Tromey <tromey@redhat.com>
893 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
896 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
898 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
899 extraneous/malformed sign word.
901 2001-06-15 Tom Tromey <tromey@redhat.com>
903 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
905 2001-06-15 Tom Tromey <tromey@redhat.com>
907 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
908 NULL if no library on the list has the symbol.
909 (init): Call add_library on the program itself.
910 * prims.cc (JvRunMain): Initialize Runtime before searching for
912 (_Jv_RunMain): Likewise.
914 2001-06-15 Tom Tromey <tromey@redhat.com>
916 * jni.cc (ClassClass): Removed; updated all users.
917 (ObjectClass): Likewise.
918 (ThrowableClass): Likewise.
919 (MethodClass): Likewise.
920 (ThreadGroupClass): Likewise.
921 (local_ref_table): Renamed from `ref_table'.
922 (global_ref_table): New global.
923 (_Jv_JNI_Init): Initialize both ref tables.
924 (mark_for_gc): Added `ref_table' parameter.
925 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
927 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
928 (_Jv_JNI_DeleteGlobalRef): Likewise.
929 (_Jv_JNI_DeleteLocalRef): Likewise.
930 (_Jv_JNI_NewLocalRef): Likewise.
931 (_Jv_JNI_PopLocalFrame): Likewise.
932 (_Jv_JNI_GetStringChars): Likewise.
933 (_Jv_JNI_ReleaseStringChars): Likewise.
934 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
935 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
937 2001-06-14 Tom Tromey <tromey@redhat.com>
939 Fix for PR libgcj/3144:
940 * java/util/Date.java: Merged with Classpath.
942 2001-06-12 Tom Tromey <tromey@redhat.com>
944 * aclocal.m4, configure: Rebuilt.
945 * acinclude.m4: Find configure.host in srcdir.
947 2001-06-07 Tom Tromey <tromey@redhat.com>
949 Fix for PR libgcj/3059:
950 * java/lang/natSystem.cc (init_properties): Define `java.home'.
951 * Makefile.in: Rebuilt.
952 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
954 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
956 * exception.cc (cstdlib): Replaces stdlib.h.
957 (_Jv_Throw): Use std::abort().
958 (PERSONALITY_FUNCTION): Likewise.
960 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
962 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
963 nothing, as in autoconf 2.50.
964 * aclocal.m4, configure: Rebuilt.
966 2001-06-08 Tom Tromey <tromey@redhat.com>
968 * configure: Rebuilt.
969 * configure.in: Compute new aux dir using `pwd'.
971 2001-06-07 Tom Tromey <tromey@redhat.com>
973 For PR bootstrap/3075:
974 * configure, aclocal.m4, Makefile.am: Rebuilt.
975 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
976 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
977 relative to libgcj_basedir.
978 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
979 AC_CANONICAL_SYSTEM here.
980 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
982 ($(extra_headers)): New target.
984 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
985 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
987 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
988 table index is within allowed bounds. Ensure that we dont try to access
989 class itable at a negative offset. Avoid an ancestor table lookup if
990 source is a primitive type class.
991 (isInstance): Remove redundant isPrimitive() check.
993 2001-06-04 Tom Tromey <tromey@redhat.com>
995 * java/security/PublicKey.java: Extend Key.
996 * java/security/PrivateKey.java: Extend Key.
998 2001-06-02 Anthony Green <green@redhat.com>
1000 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1001 alternate when USE_LTDL not defined.
1003 2001-06-02 Anthony Green <green@redhat.com>
1005 * configure: Rebuild.
1006 * configure.in: Remove data_start hack.
1007 * libgcj.spec.in: Ditto.
1008 * Makefile.in: Rebuild.
1009 * Makefile.am: Ditto.
1010 * libgcjdata.c: Remove.
1012 2001-06-02 Anthony Green <green@redhat.com>
1014 * configure: Rebuild.
1015 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1016 --without-libffi option. Tweak --disable-java-net processing.
1017 * Makefile.in: Rebuild.
1018 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1019 * include/config.h.in: Rebuild.
1020 * acconfig.h (USE_LIBFFI): Define.
1021 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1023 2001-06-02 Anthony Green <green@redhat.com>
1025 * configure: Rebuilt.
1026 * configure.in: Test for sigaction on native builds.
1027 * prims.cc: Check HAVE_SIGACTION.
1028 * include/config.h.in: Rebuilt.
1030 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1032 * natFile.cc (get_entry): Removed functions.
1033 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1034 Allocate enough storage for d_name if using readdir_r.
1036 2001-05-31 Tom Tromey <tromey@redhat.com>
1038 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1040 (write): Loop until write completes. From Corey Minyard.
1042 2001-05-29 Laurent Guerby <guerby@acm.org>
1044 * java/awt/geom/Rectangle2D.java: fix doc typo.
1046 2001-05-31 Tom Tromey <tromey@redhat.com>
1048 * java/sql/DriverManager.java (getDrivers): Handle case where
1049 driver's class loader is null. From Corey Minyard.
1051 2001-05-29 Tom Tromey <tromey@redhat.com>
1053 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1055 * configure: Rebuilt.
1056 * configure.in: Only add multilib support code if we just rebuilt
1059 2001-05-29 Andrew Haley <aph@redhat.com>
1061 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1062 pointer: the dwarf unwinder in libgcc will do everything that's
1064 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1065 more than we absolutely need to.
1066 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1067 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1069 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1071 * configure: Rebuilt.
1072 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1074 (SIGNAL_HANDLER): Use siginfo style handler.
1075 (INIT_SEGV): Likewise.
1076 (INIT_FPE): Likewise.
1077 * include/ppc-signal.h: Delete whole file.
1079 2001-05-24 Tom Tromey <tromey@redhat.com>
1081 * java/lang/natString.cc (init): Throw
1082 ArrayIndexOutOfBoundsException.
1083 (getChars): Likewise.
1084 (getBytes): Likewise.
1085 (valueOf): Likewise.
1087 * configure.in: Only allow hash synchronization when POSIX threads
1089 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1090 of sync info object.
1092 2001-05-23 Tom Tromey <tromey@redhat.com>
1094 * Makefile.in: Rebuilt.
1095 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1097 Revert patch of 2001-05-21:
1098 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1099 (libgcj_la_LIBADD): Likewise.
1100 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1101 (libgcjx_la_LIBADD): Likewise.
1103 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1104 * gcj/Makefile.in: Rebuilt.
1105 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1106 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1107 * gcj/libgcj-config.h.in: New file.
1108 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1109 * configure: Rebuilt.
1110 * configure.in: Enable hash synchronization by default on some
1112 (HASH_SYNC_SPEC): New subst.
1113 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1114 Correctly use `test -z' instead of `test -n' in a couple places.
1115 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1117 * configure.host (enable_java_net_default): Initialize.
1118 (enable_hash_synchronization_default): New variable.
1120 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1122 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1123 synchronization in use.
1124 (_Jv_MarkArray): Likewise.
1125 (_Jv_AllocBytes): Don't check return result.
1126 (handle_out_of_memory): New function.
1127 (_Jv_InitGC): Set GC_oom_fn.
1128 (trace_one_vtable): New global.
1129 (_Jv_AllocTraceOne): New function.
1130 * configure.in: Added --enable-hash-synchronization.
1131 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1132 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1133 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1134 (_Jv_AllocArray): Likewise.
1135 (_Jv_AllocBytes): Likewise.
1136 (_Jv_AllocPtrFreeObject): New function.
1137 (_Jv_AllocTraceOne): Likewise.
1138 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1140 (self_cache): New global.
1141 (_Jv_ThreadSelf_out_of_line): New function.
1142 * prims.cc (_Jv_AllocBytesChecked): Removed.
1143 (_Jv_ThrowNoMemory): New function.
1144 (_Jv_AllocObject): Don't check for null return from allocator.
1145 (_Jv_NewObjectArray): Likewise.
1146 (_Jv_AllocPtrFreeObject): New function.
1147 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1148 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1149 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1150 * include/boehm-gc.h (_Jv_AllocObj): Define.
1151 (_Jv_AllocPtrFreeObj): Define.
1152 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1153 (_Jv_ThrowNoMemory): Declare.
1154 (_Jv_AllocTraceOne): Declare.
1155 (_Jv_AllocBytesChecked): Removed.
1156 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1157 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1158 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1160 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1162 * java/lang/Object.h (sync_info): Conditional upon presence of
1163 hash synchronization.
1164 * java/lang/natObject.cc: Much new code to handle thin locks and
1165 hash synchronization.
1166 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1169 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1171 * gij.cc (version): Update copyright year.
1173 2001-05-22 Anthony Green <green@redhat.com>
1175 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1178 2001-05-21 Per Bothner <per@bothner.com>
1180 Implement invocation interface; don't create new thread for main.
1181 * java/lang/Thread.java (gen_name): Make native.
1182 (<init>(Thread,THreadGroup,Runnable,String)): New private
1183 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1184 * java/lang/natThread.cc (gen_name): New implementation.
1185 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1186 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1187 (_Jv_CreateJavaVM): New runtime initialization procedure.
1188 (runFirst): New proecdure - mostly code from old FirstThread::run.
1189 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1190 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1191 JvDetachCurrentThread): New inline wrappers.
1192 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1193 _Jv_DetachCurrentThread): New declarations.
1194 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1195 (getMain): new static method.
1196 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1197 by runFirst in prims.cc.
1198 (java/lang/Thread.h): Update for new invocation interface.
1199 * include/posix-threads.h (_Jv_ThreadRegister,
1200 _Jv_ThreadUnRegister): New declarations.
1201 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1202 (really_start): Use new _Jv_ThreadRegister.
1203 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1204 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1205 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1206 Complain of called when _Jv_OnlyThread already set.
1207 (_Jv_ThreadStart): Always JvFail.
1208 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1209 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1210 * win32-threads.cc (struct starter): Remove objet field -
1211 we use _Jv_Thread_t's new thread_obj field instead.
1212 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1213 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1214 (really_start): Use new _Jv_ThreadRegister.
1215 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1216 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1217 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1218 Removed - no longer needed with new invocation interface.
1219 * Makefile.am: Update for removed/added files.
1221 2001-05-21 Per Bothner <per@bothner.com>
1223 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1224 (libgcj_la_LIBADD): Likewise.
1225 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1227 2001-05-21 Per Bothner <per@bothner.com>
1229 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1230 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1231 taken from old Integer.toString code.
1232 (Integer::valueOf): Use _Jv_FormatInt.
1233 * java/lang/Integer.java (toString): Just use call String.valueOf.
1234 * java/lang/Long.java (toString): Fix typo in comment.
1235 * java/lang/String.java (valueOf(int)): Make native.
1236 * java/lang/StringBuffer.java (append(int)): Make native.
1237 * java/lang/natStringBuffer.cc: New file, for append(jint).
1238 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1240 2001-05-21 Tom Tromey <tromey@redhat.com>
1242 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1244 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1246 * include/dwarf2-signal.h: New file.
1247 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1248 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1249 * configure: Rebuilt.
1251 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1253 * configure.in: Update boehm-gc include dir for new GC version.
1254 * configure: Rebuilt.
1255 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1257 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1258 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1259 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1262 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1264 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1265 (_Jv_MutexInit): Likewise.
1267 2001-05-18 Tom Tromey <tromey@redhat.com>
1269 * Makefile.in: Rebuilt.
1270 * Makefile.am (awt_java_source_files): Added Polygon.java.
1272 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1274 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1275 * gcj/javaprims.h: ... here.
1276 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1278 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1280 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1281 with length of ioffset table.
1282 (_Jv_IsAssignableFrom): Likewise.
1284 2001-05-17 Per Bothner <per@bothner.com>
1286 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1288 2001-05-16 Tom Tromey <tromey@redhat.com>
1290 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1293 2001-05-15 Tom Tromey <tromey@redhat.com>
1295 * java/util/GregorianCalendar.java (computeTime): Only call
1298 2001-05-14 Tom Tromey <tromey@redhat.com>
1300 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1301 ZONE_OFFSET just before computing the time.
1303 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1305 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1306 * Makefile.in: Regenerate (by hand).
1307 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1308 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1310 2001-05-11 Richard Henderson <rth@redhat.com>
1312 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1313 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1315 2001-05-11 Richard Henderson <rth@redhat.com>
1317 * exception.cc: Include unwind-pe.h. Remove all pointer
1320 2001-05-10 Tom Tromey <tromey@redhat.com>
1322 * Makefile.in: Rebuilt.
1323 * Makefile.am (awt_java_source_files): Added Polygon.java.
1324 * java/awt/Polygon.java: New file.
1326 * java/awt/geom/AffineTransform.java
1327 (setToRotation(double,double,double)): New method.
1328 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1329 (setToShear): Likewise.
1331 2001-05-10 Tom Tromey <tromey@redhat.com>
1333 * java/util/GregorianCalendar.java: Imported from Classpath.
1334 * gnu/java/locale/LocaleInformation_nl.java: New file from
1336 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1337 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1338 * gnu/java/locale/LocaleInformation.java: Likewise.
1339 * natGregorianCalendar.cc: Removed.
1340 * Makefile.in: Rebuilt.
1341 * Makefile.am (nat_source_files): Removed
1342 natGregorianCalendar.cc.
1344 2001-05-10 Tom Tromey <tromey@redhat.com>
1346 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1348 (defaultCenturyStart): Use it.
1349 (readObject): Likewise.
1350 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1352 (parse): Copy the calendar before modifying it. Correctly handle
1355 * java/util/Calendar.java (clear): Set field value(s) to 0.
1357 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1359 * Calendar.java (get): Clear areFieldsSet if requested field
1361 (set): Unset fields that depend on new value.
1363 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1365 * java/lang/Class.h (_Jv_Self): New union type.
1366 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1367 Jeff Sturm and Fergus Henderson.
1369 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1371 * java/lang/ClassLoader.java: Remove dead code fragment.
1373 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1375 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1377 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1379 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1381 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1382 * configure.host (EXCEPTIONSPEC): New.
1383 * configure.in (EXCEPTIONSPEC): New.
1384 * configure: Rebuilt.
1386 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1388 * doc/*.texi: Remove generated documentation.
1390 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1392 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1393 (performDelete): Fix #endif placement.
1395 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1397 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1398 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1399 (_Jv_ThreadDestroyData): Use _Jv_Free.
1400 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1403 2001-04-27 Tom Tromey <tromey@redhat.com>
1405 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1407 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1409 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1411 * include/jni.h (struct JNINativeInterface): Fixed types in
1412 Get/Set*ArrayRegion declarations.
1413 (class _Jv_JNIEnv): Likewise.
1415 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1417 * configure.in: Obtain THREADS with `gcc -v'.
1418 * configure: Rebuilt.
1420 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1423 * java/io/ObjectStreamClass.java (setClass): Calculate
1424 serialVersionUID for local class and compare it against the UID
1425 from the Object Stream. Throw InvalidClassException upon mismatch.
1426 (setUID): Renamed to...
1427 (getClassUID): this. Return the calculated class UID rather than
1428 setting uid field directly.
1429 (getDefinedSUID): Removed.
1430 * java/io/ObjectInputStream.java (resolveClass): Use the
1431 three-argument Class.forName().
1432 * java/io/InvalidClassException (toString): Don't include classname in
1433 result if it is null.
1435 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1437 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1438 Wrap use of inet_pton in HAVE_INET6.
1440 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1442 java.security merge and ClassLoader compliance fixes.
1444 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1445 New protectionDomain field.
1446 (forName): Add initialize parameter. Fixes declaration to comply with
1448 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1449 variant. Honour "initialize" flag.
1450 (getProtectionDomain0): New method.
1451 * java/lang/Class.java: Fix forName() declaration.
1452 (getPackage): New method based on Classpath implementation.
1453 (getProtectionDomain0): New native method decl.
1454 (getProtectionDomain): New method.
1455 * java/lang/ClassLoader.java (getParent): Now final.
1456 (definedPackages): New field.
1458 (defineClass): New variant with protectionDomain argument.
1459 (definePackage): New.
1461 (findSystemClass): Now final.
1462 (getSystemResourceAsStream): Remove redundant "final" modifier.
1463 (getSystemResource): Remove redundant "final" modifier.
1464 (getResources): Now final.
1465 (protectionDomainPermission): New static field.
1466 (unknownProtectionDomain): Ditto.
1467 (defaultProtectionDomain): Ditto.
1468 (getSystemClassLoader): Now non-native.
1469 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1470 arguments for Class.forName().
1471 * java/lang/Package.java: New file.
1472 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1473 (instance): Static initialize singleton.
1474 (findClass): Override this, not findSystemClass.
1475 * java/lang/natClassLoader.cc (defineClass0): Set class's
1476 protectionDomain field as specified.
1477 (getSystemClassLoader): Removed.
1478 (findClass): Renamed from findSystemClass. Call the interpreter via
1479 URLClassLoader.findClass if loading class via dlopen fails.
1481 * java/security/*.java: java.security import/merge with Classpath.
1482 * java/security/acl/*.java: Likewise.
1483 * java/security/interfaces/*.java: Likewise.
1484 * java/security/spec/*.java: Likewise.
1485 * java/net/NetPermission.java: Likewise.
1486 * java/net/SocketPermission.java: Likewise.
1487 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1489 * Makefile.am: Add new classes.
1490 * Makefile.in: Rebuilt.
1491 * gcj/javaprims.h: CNI namespace rebuild.
1493 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1495 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1496 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1497 * configure: Rebuilt.
1499 2001-04-21 Tom Tromey <tromey@redhat.com>
1501 * Makefile.in: Rebuilt.
1502 * Makefile.am (awt_java_source_files): Added Line2D.java.
1503 * java/awt/geom/Line2D.java: Wrote.
1505 * java/awt/Menu.java (addNotify): Wrote.
1507 * java/awt/PopupMenu.java (addNotify): Implemented.
1510 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1511 * java/awt/List.java (addNotify): Call super.addNotify.
1512 * java/awt/Label.java (addNotify): Call super.addNotify.
1513 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1514 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1515 * java/awt/Choice.java (addNotify): Call super.addNotify.
1516 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1517 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1519 * java/awt/List.java (replaceItem): Notify peer.
1521 * java/awt/geom/Rectangle2D.java
1522 (Float.setRect(float,float,float,float)): New method.
1524 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1527 * java/awt/RenderingHints.java (Key): Class now public.
1529 * java/awt/Rectangle.java (Rectangle): Now implements
1531 (getPathIterator): Removed.
1533 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1536 * java/awt/FileDialog.java: Wrote.
1538 * java/awt/EventQueue.java (isDispatchThread): Now public.
1539 (invokeLater): Likewise.
1541 * java/awt/Component.java (setCursor): Update peer.
1542 (getFontMetrics): Use peer.
1544 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1547 2001-04-20 Tom Tromey <tromey@redhat.com>
1549 * java/awt/List.java: Wrote.
1550 * java/awt/Dialog.java: Wrote.
1552 2001-04-20 Warren Levy <warrenl@redhat.com>
1554 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1555 * java/text/SimpleDateFormat.java
1556 (indexInArray): Removed private method.
1557 (processYear): Removed private method.
1558 (parseLenient): Removed private method.
1559 (parseLeadingZeros): Removed private method.
1560 (parseStrict): Removed private method.
1561 (expect): Added new private method.
1562 (parse): Reverted to pre-Classpath merge version with minor fixes.
1563 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1566 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1568 * java/io/File.java (normalizePath): New private method.
1569 (File (String)): Use normalizePath().
1570 (File (String, String)): Likewise.
1572 * Makefile.am (libffi_files): Removed.
1573 (libgcj.la): Link libffi as a convenience library instead of
1574 refering to its object files directly.
1575 * Makefile.in: Rebuilt.
1577 2001-04-08 Per Bothner <per@bothner.com>
1579 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1580 Recalculate hash, since Utf8Const's hash is only 16 bits.
1582 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1583 bits of hash to calculate step for chaining.
1585 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1586 when 2/3 full, rather than 3/4 full.
1588 2001-04-06 Tom Tromey <tromey@redhat.com>
1590 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1591 (wrap_value<T*>): New specialization.
1592 (_Jv_JNI_PopLocalFrame): Update env->locals.
1594 2001-04-05 Tom Tromey <tromey@redhat.com>
1596 * libtool-version: Updated current.
1598 2001-04-04 Andreas Jaeger <aj@suse.de>
1600 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1601 * gcj/Makefile.in: Rebuilt.
1602 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1603 * Makefile.in: Rebuilt.
1604 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1605 * testsuite/Makefile.in: Rebuild.
1606 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1607 * include/Makefile.in: Rebuild.
1609 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1611 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1612 compiled test', not 'execution from source compiled test'.
1613 Use UNTESTED, not XFAIL, for tests which are not run because
1614 they depend on a previous test which failed.
1616 2001-04-02 Richard Henderson <rth@redhat.com>
1618 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1619 the same tree as gcc.
1620 * configure: Rebuilt.
1622 * exception.cc (_Jv_Throw): Clarify commentary.
1624 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1626 * jni.cc (wrap_value<jclass>): New specialization.
1628 2001-04-02 Tom Tromey <tromey@redhat.com>
1630 * java/io/PrintStream.java (out): Removed field. Fixes PR
1632 (write): Call flush, not out.flush, per spec.
1633 (close): Flush output stream, per spec. Handle
1634 InterruptedIOException.
1635 (checkError): Likewise.
1636 (flush, print, write): Handle InterruptedIOException per spec.
1637 (PrintStream): Don't create BufferedOutputStream.
1638 (work_bytes): New field.
1639 (writeChars): Use work_bytes. Don't assume `out' is a
1640 BufferedOutputStream.
1642 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1644 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1647 2001-03-30 Tom Tromey <tromey@redhat.com>
1649 * jni.cc (add_char): Correctly encode non-ascii characters.
1650 (add_char): Define even when INTERPRETER not defined.
1651 (mangled_name): Likewise.
1652 (_Jv_GetJNIEnvNewFrame): Likewise.
1653 (_Jv_LookupJNIMethod): Likewise.
1655 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1657 * configure.host: Enable interpreter for PPC.
1659 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1661 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1662 to "file.separator", "path.separator", and "java.io.tmpdir" property
1664 * java/io/File.java: Likewise.
1665 * java/io/natFile.cc (init_native): Likewise.
1666 * java/io/natFileWin32.cc (init_native): Likewise.
1668 2001-04-01 Per Bothner <per@bothner.com>
1670 * java/lang/natString.cc (intern): If string's data does not point to
1671 this String, make a fresh String that does.
1673 * java/lang/natString.cc (unintern): Replace by static function.
1674 * java/lang/String.java (unintern): Remove method.
1676 2001-04-01 Per Bothner <per@bothner.com>
1678 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1679 (finish): def.deflate needs to be called in a loop.
1680 (inbuf, inbufLength): New private fields.
1681 (write(int)): Use inbuf.
1682 (write(byte[],int,int): Check if pending output in inbuf.
1683 * ZipOutputStream.java: Don't use Deflater if stored.
1684 Use a Checksum object directly, not via a CheckedOutputStream.
1685 (uncompressed_size): New field,
1686 (closeEntry): Only write data_directory if needed.
1687 (write): If STORED, write directly.
1688 Always update crc, and uncompressed_size.
1689 (write_entry): Fix lots of protocol erors.
1691 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1693 1.3-Compliant Implementation of java.io.File.
1694 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1695 "path.separator", and "java.io.tmpdir" from the File class, instead
1696 of setting them explicitly.
1697 * java/io/File.java: Do not canonicalize paths for security manager
1698 checks. Call init_native() from static initializer. Do not pass path
1699 argument to native methods. New native method declarations. Some
1700 security manager checks moved to checkWrite().
1701 (equals): Check file system case sensitivity and act appropriatly.
1702 (hashCode): Likewise.
1703 (isHidden): New method implemented.
1704 (performList): Changed prototype. Now takes a class argument specifying
1705 the class of the returned array: Strings or File objects. Also added
1706 FileFilter argument.
1707 (listFiles): New variants with "File" return type implemented.
1708 (createTempFile): Use createNewFile(). Use maxPathLen.
1709 (setReadOnly): New method implemented.
1710 (listRoots): Likewise.
1711 (compareTo): Likewise.
1712 (setLastModified): Likewise.
1713 (checkWrite): New method.
1715 * java/io/natFile.cc: Various functions no longer take canonical path
1717 (stat): Handle ISHIDDEN query.
1718 (isAbsolute): Remove WIN32 cruft.
1719 (performList): New arguments. Handle returning either File[] or String[]
1720 arrays. Check with FileFilter or FilenameFilter arguments as
1721 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1722 (performSetReadOnly): New method implemented.
1723 (performListRoots): Likewise.
1724 (performSetLastModified): Likewise.
1725 (performCreate): Likewise.
1726 (init_native): New initialization function.
1727 * java/io/natFileWin32.cc: Various functions no longer take canonical
1729 (stat): Add FIXME about ISHIDDEN query.
1730 (performList): New arguments. Handle returning either File[] or String[]
1731 arrays. Check with FileFilter or FilenameFilter arguments as
1732 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1733 (performSetReadOnly): New. Stubbed.
1734 (performListRoots): Likewise.
1735 (performSetLastModified): Likewise.
1736 (performCreate): Likewise.
1737 (init_native) New initialization function.
1738 * configure.in: Check for utime() and chmod().
1739 * configure: Rebuilt.
1740 * include/config.h.in: Rebuilt.
1742 Resolves PR libgcj/1759.
1744 2001-03-28 Richard Henderson <rth@redhat.com>
1746 IA-64 ABI Exception Handling:
1747 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1748 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1749 Remove EXCEPTIONSPEC.
1750 * configure.host (libgcj_sjlj): Remove.
1751 * configure.in (EXCEPTIONSPEC): Remove.
1752 (enable-sjlj-exceptions): Detect if not specified.
1753 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1754 what header we're looking for.
1755 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1756 * Makefile.in, configure: Regenerate.
1757 * exception.cc: Don't declare libgcc2 stuff.
1758 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1759 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1760 (win32_get_restart_frame): Remove.
1761 (struct java_exception_header): New.
1762 (__gcj_exception_class): New.
1763 (get_exception_header_from_ue): New.
1764 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1765 (size_of_encoded_value, read_encoded_value): New.
1766 (read_uleb128, read_sleb128, parse_lsda_header): New.
1767 (get_ttype_entry, __gcj_personality_sj0): New.
1768 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1770 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1772 * javax/naming/InitialContext.java (init): Fix typo.
1773 (composeName): Remove unnecessary semicolon.
1774 (addToEnvironment): Remove unnecessary semicolon.
1775 (addToEnvironment): Use put() instead of add().
1777 * javax/naming/InitialContext.java (InitialContext):
1779 (destroySubcontext): Method doesn't return a result.
1780 * javax/naming/Context.java: Import java.util.Hashtable.
1781 * javax/naming/Name.java: Import java.util.Enumeration.
1783 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1785 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1786 objects in subdirectories.
1787 * Makefile.in: Rebuilt.
1789 2001-03-25 Richard Henderson <rth@redhat.com>
1791 * exception.cc (java_eh_info): Make value type jthrowable.
1792 (_Jv_type_matcher): Remove now unneeded cast.
1793 (_Jv_Throw): Make argument type jthrowable. Munge name
1794 for SJLJ_EXCEPTIONS here ...
1795 * gcj/cni.h: ... not here.
1797 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1799 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1800 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1801 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1802 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1803 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1804 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1805 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1806 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1807 java/lang/natDouble.cc, java/lang/natObject.cc,
1808 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1809 java/lang/natString.cc, java/lang/natSystem.cc,
1810 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1811 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1812 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1813 java/util/zip/natInflater.cc:
1814 Use throw, not JvThrow or _Jv_Throw.
1816 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1818 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1819 paramater, bump it to 1.
1820 * java/util/Hashtable.java (Hashtable): Likewise.
1822 2001-03-23 Per Bothner <per@bothner.com>
1824 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1825 check for errors, since we don't want to throw exception on
1826 overflow/underflow. Instead, trim whitespace, and then check that
1827 _strtod_r uses up all the rest of the string.
1829 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1830 ancestors array is invalid for interfaces, so do that *after*
1831 check that the target type is not an interface.
1833 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1835 * prims.cc (_Jv_FindClassFromSignature): Check return of
1836 recursive call. Do not abort on invalid signature; return NULL
1839 2001-03-22 Tom Tromey <tromey@redhat.com>
1841 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1842 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1844 * include/jvm.h (_Jv_ResolveField): Declare.
1845 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1846 * resolve.cc (_Jv_ResolveField): No longer conditional on
1849 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1851 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1852 for libtool hacking.
1853 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1854 to a temporary file, then invoke libtool with the -objectlist
1856 (libgcjx.la): Likewise.
1857 * Makefile.in: Rebuilt.
1859 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1861 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1863 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1865 * jni.cc (add_char): Handle `.' like `/'.
1867 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1870 initialize if exception_types is null.
1871 * java/lang/reflect/Constructor.java: Likewise.
1872 * java/lang/reflect/natConstructor.cc (getType): Initialize
1873 exception_types to an empty Object array.
1875 2001-03-21 Tom Tromey <tromey@redhat.com>
1877 * configure: Rebuilt.
1878 * configure.in (GCJFLAGS): Subst.
1879 * Makefile.in: Rebuilt.
1880 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1881 (gij_LDFLAGS): Likewise.
1882 (JC1FLAGS): Added GCJFLAGS and removed -g.
1884 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1885 read/write case. Fixes PR libgcj/2338.
1887 2001-03-20 Warren Levy <warrenl@redhat.com>
1889 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1890 and corrected SimpleTimeZone's for the timezones hash table.
1892 2001-03-19 Per Bothner <per@bothner.com>
1894 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1895 "canonicalize" "../../xxx" to "/xxx".
1897 2001-03-19 Mark Wielaard <mark@klomp.org>
1899 * java/util/ArrayList.java: Remove RCS keywords from comments
1900 * java/util/BasicMapEntry.java: idem
1901 * java/util/Dictionary.java: idem
1902 * java/util/HashSet.java: idem
1904 * java/util/EventObject.java: reindent
1905 * java/util/Properties.java: idem
1906 * java/util/SortedMap.java: idem
1908 * java/util/Enumeration.java: Merge with Classpath
1909 * java/util/EventListener.java: idem
1910 * java/util/Observable.java: idem
1911 * java/util/Observer.java: idem
1912 * java/util/Stack.java: idem
1914 2001-03-17 Tom Tromey <tromey@redhat.com>
1916 * java/lang/natString.cc (rehash): Don't bother with memset;
1917 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1919 (UNMASK_PTR): New macro.
1920 (intern): Unmask pointer before returning it. Register finalizer
1922 (unintern): Handle case where
1923 (MASK_PTR): New macro.
1924 (PTR_MAKSED): Likewise.
1925 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1927 2001-03-01 Andrew Haley <aph@redhat.com>
1929 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1930 stackTrace buffer to a correctly aligned pointer array.
1932 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1934 * java/lang/Runtime.java (_exit): Declare new package-private native.
1935 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1936 without a security manager check.
1937 (exit): Call _exit after security check.
1938 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1940 * java/lang/System.java (setSecurityManager): If a security manager
1941 is already in place, call checkPermission.
1942 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1943 throws an exception, try to deal with it gracefully.
1944 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1945 Only try to print the subordinate stack trace if "exception" is set.
1946 Print our class name first.
1948 2001-03-08 Tom Tromey <tromey@redhat.com>
1950 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1951 info for array classes.
1952 Fixes PR libgcj/1971.
1954 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1956 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1959 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1961 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1962 instead of the new JDK1.2 API. This is simpler and makes
1963 back-porting the classes to JDK1.1 trivial.
1964 (readObject): likewise.
1966 2001-03-01 Per Bothner <per@bothner.com>
1968 Changes merged from Kawa's gnu.math.
1969 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1970 (rshift(int[],int[],int,int): Removed - not needed.
1971 (gcd): Use rshift0 rather than rshift.
1972 * java/math/BigInteger.java (setShiftRight): Likewise.
1973 (divide): Simplify by using rshift0.
1974 (divide): Zero-extend results if high-order bit set.
1976 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1978 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1981 2001-02-23 Per Bothner <per@bothner.com>
1983 Change to sometimes include class name in ClassFormatError message.
1984 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1985 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1986 boolean instead of throwing ClassFormatError on failure.
1987 (throw_class_format_error): Change static function to method.
1988 (_Jv_ClassReader): New inline methods verify_identifier,
1989 two overloads of verify_classname, verify_field_signature, and
1990 verify_method_signature
1991 * include/java-interp.h: Update declarations to return bool.
1992 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1993 ClassFormatError since _Jv_VerifyClassName now returns bool.
1995 2001-02-23 Per Bothner <per@bothner.com>
1997 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1998 c++filt to select java-style output.
2000 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2002 Fix for PR java/2040:
2003 * java/util/HashMap.java (HashMap): Don't throw exception for
2004 loadFactor > 1. Add exception messages.
2005 * java/util/Hashtable.java (Hashtable): Likewise.
2007 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2009 Disable libgcjx by default.
2010 * configure.in: Add support for --enable-java-awt configure option.
2011 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2012 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2013 * Makefile.in: Rebuilt.
2014 * configure: Rebuilt.
2016 2001-02-20 Tom Tromey <tromey@redhat.com>
2018 * java/io/PipedWriter.java (flush): Throw exception if stream
2020 * java/io/OutputStreamWriter.java (write): Throw exception if
2022 (writeChars): Don't throw exception if stream closed.
2023 * java/io/CharArrayWriter.java (closed): New field.
2025 (flush): Throw exception if stream closed.
2026 (reset): Synchronize on correct lock. Allow stream to be
2028 (toCharArray, toString, writeTo): Synchronize.
2029 (write): Throwe exception if stream closed.
2030 * java/io/BufferedWriter.java (close): Clear `buffer'.
2031 (flush): Throw IOException if stream is closed.
2034 2001-02-16 Tom Tromey <tromey@cygnus.com>
2036 * java/lang/ThreadGroup.java (activeCount): Only include threads
2038 (enumerate): Likewise.
2040 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2042 * java/lang/Integer.java (getInteger): Return default argument if
2043 property is not set. Don't call decode with null argument.
2044 * java/lang/Long.java (getLong): Likewise.
2046 * java/io/CharArrayReader.java (CharArrayReader): Throw
2047 IllegalArgumentException if constructor arguments are illegal.
2048 (ready): Return false if no more characters can be read.
2049 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2051 2001-02-17 Mark Wielaard <mark@klomp.org>
2053 * java/util/TimerTask.java: New version from Classpath.
2055 2001-02-17 Mark Wielaard <mark@klomp.org>
2057 Remerge with Classpath
2058 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2059 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2060 (readByte): Use convertToByte().
2061 (readChar): Use convertToChar().
2062 (readInt): Use convertToInt().
2063 (readLong): Use convertToLong().
2064 (readShort): Use convertToShort().
2065 (readUnsignedByte): Use convertToUnsignedByte().
2066 (readUnsignedShort): Use convertToUnsignedShort().
2067 (readUTF): Use convertToUTF().
2069 (convertToBoolean): Resurrected.
2070 (convertToByte): Ditto.
2071 (convertToChar): Ditto.
2072 (convertToInt): Ditto.
2073 (convertToLong): Ditto.
2074 (convertToShort): Ditto.
2075 (convertToUnsignedByte): Ditto.
2076 (convertToUnsignedShort): Ditto.
2077 (convertToUTF): Ditto.
2079 2001-02-17 Mark Wielaard <mark@klomp.org>
2083 2001-02-17 Mark Wielaard <mark@klomp.org>
2085 * java/io/DataInputStream.java: update copyright notice
2086 * java/io/PrintWriter.java: idem
2087 * java/io/Reader.java: idem
2088 * java/io/StreamTokenizer.java: idem
2089 * java/io/StringReader.java: idem
2090 * java/lang/reflect/ReflectPermission.java: idem
2092 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2094 * java/util/TreeSet.java (clone): Made subclass safe, use
2095 super.clone(), not new.
2096 * java/util/TreeMap.java (clone): Likewise.
2098 * java/util/TreeMap.java (nil): Made non-final.
2099 (clone): Create new nil node for copy.
2101 * java/util/HashSet.java (clone): Made subclass safe, use
2102 super.clone(), not new.
2104 2001-02-14 Andrew Haley <aph@redhat.com>
2106 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2109 2001-02-15 Anthony Green <green@redhat.com>
2111 * defineclass.cc: Don't include alloca.h.
2112 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2113 * interpret.cc (run_normal): Ditto.
2115 * java/lang/natDouble.cc (parseDouble): Ditto.
2117 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2119 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2121 * java/util/Collections.java (ReverseComparator): New static class.
2122 (reverseOrder): Return static instance of ReverseComparator.
2124 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2125 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2126 Rectangle.clone(), not Object.clone().
2128 * java/util/HashSet.java (clone): Remove try/catch.
2130 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2131 * java/util/Collection.java: Likewise.
2132 * java/util/Comparator.java: Likewise.
2133 * java/util/Dictionary.java: Likewise.
2134 * java/util/Iterator.java: Likewise.
2135 * java/util/ListIterator.java: Likewise.
2136 * java/util/Map.java: Likewise.
2137 * java/util/Set.java: Likewise.
2139 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2141 * java/util/TreeMap.java: New file.
2142 * java/util/TreeSet.java: New file.
2143 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2144 * Makefile.in: Rebuilt.
2145 * java/util/HashSet.java (clone): Use constructor instead of calling
2147 * java/util/SortedSet.java: Sync with classpath.
2148 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2151 * java/lang/natClass.cc (getSignature): Don't try to dereference
2152 param_types if it is null. Instead, take this to mean "no parameters".
2153 * java/lang/TreeMap.java (TreeIterator.next): Throw
2154 NoSuchElementException in preference to ConcurrentModificationException.
2155 (TreeIterator.remove): Throw IllegalStateException in preference to
2156 ConcurrentModificationException.
2157 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2158 throw a NoSuchElementException.
2159 (SubMap.lastKey): Likewise.
2161 2001-02-13 Tom Tromey <tromey@redhat.com>
2163 * java/io/PipedReader.java (ready): Throw IOException if pipe
2165 * java/io/FilterReader.java (close): Don't clear `in'.
2166 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2168 (read, ready, reset, skip): Added exception message.
2169 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2170 Perform checkStatus check inside synchronized block.
2172 2001-02-13 Tom Tromey <tromey@redhat.com>
2174 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2176 2001-02-13 Tom Tromey <tromey@redhat.com>
2178 Fix for PR libgcj/1351:
2179 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2181 Include Thread.h and InterruptedIOException.h.
2183 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2185 * java/io/BlockDataException.java: Removed.
2186 * java/io/ObjectInputStream.java (readObject): Throw
2187 StreamCorruptedException, not BlockDataException.
2188 * Makefile.am: Remove BlockDataException.
2189 * Makefile.in: Rebuild.
2191 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2192 Tom Tromey <tromey@redhat.com>
2194 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2197 2001-02-09 Tom Tromey <tromey@redhat.com>
2199 * java/util/Timer.java: New version from Classpath.
2201 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2203 * java/lang/Double.java (doubleToRawLongBits): Now native.
2204 * java/lang/Float.java (floatToRawIntBits): Likewise.
2205 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2206 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2208 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2210 * java/io/File.java (java.net): Imported.
2211 (getAbsoluteFile): Added.
2212 (getCanonicalPath): Likewise.
2215 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2217 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2218 * java/lang/Integer.java: Likewise.
2219 * java/lang/Long.java: Likewise.
2220 * java/lang/Short.java: Likewise.
2221 * java/lang/Double.java: Likewise.
2222 (doubleToRawLongBits): New method.
2223 * java/lang/Float.java: As above.
2224 (floatToRawIntBits): New method.
2226 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2227 IOException if stream closed.
2229 2001-02-08 Tom Tromey <tromey@redhat.com>
2231 * java/lang/Float.java (parseFloat): New method.
2233 2001-02-08 Tom Tromey <tromey@redhat.com>
2235 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2236 * java/io/InputStreamReader.java (ready, read): Throw IOException
2237 if stream has been closed.
2239 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2241 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2242 Change sources.redhat.com and sourceware.cygnus.com references to
2245 2001-02-07 Tom Tromey <tromey@redhat.com>
2247 Fix for PR libgcj/1906:
2248 * java/text/MessageFormat.java (setLocale): Use named class
2251 (format(Object,StringBuffer,FieldPosition)): Special case if
2252 argument is an Object[].
2254 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2256 * java/util/Arrays.java: Removed "cmp" methods.
2257 (qsort): Don't use "cmp".
2260 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2262 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2263 sort. Fix for PR java/1895.
2265 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2267 * configure.host: Use sjlj-exceptions for Alpha.
2269 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2271 * libgcj.spec.in: Don't force static libgcc into the executable.
2272 * configure.in (FORCELIBGCCSPEC): Removed.
2273 * configure: Rebuilt.
2275 2001-01-31 Tom Tromey <tromey@redhat.com>
2277 * Makefile.in: Rebuilt.
2278 * Makefile.am (LTCXXCOMPILE): New macro.
2280 2001-01-26 Andrew Haley <aph@redhat.com>
2282 (INIT_FPE): Use a direct system call to set the handler.
2284 2001-01-27 Richard Henderson <rth@redhat.com>
2286 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2288 2001-01-27 Tom Tromey <tromey@redhat.com>
2290 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2291 native interface structure.
2293 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2295 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2297 (read (byte[], int, int)): Only call readNextBlock() if the block
2298 buffer would actually be overrun. Increment blockDataPosition.
2299 (callReadMethod): Propagate exceptions from invocation target.
2300 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2301 exceptions from invocation target.
2303 2001-01-26 Tom Tromey <tromey@redhat.com>
2305 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2306 to internal representation.
2307 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2308 _Jv_FindClassFromSignature.
2310 2001-01-26 Warren Levy <warrenl@redhat.com>
2312 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2313 and timezone if they are available on the system.
2315 2001-01-24 Tom Tromey <tromey@redhat.com>
2317 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2319 2001-01-24 Tom Tromey <tromey@redhat.com>
2321 * Makefile.in: Rebuilt.
2322 * Makefile.am (c_source_files): Added sf_fabs.c.
2323 * java/lang/sf_fabs.c: New file.
2325 2001-01-19 Warren Levy <warrenl@redhat.com>
2327 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2328 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2329 correctly. Adjust properly from 0-23 clock hour.
2331 2001-01-17 Mark Wielaard <mark@klomp.org>
2333 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2335 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2337 * java/lang/Class.h (isInterface): Move implementation from
2338 natClass.cc. Declare inline.
2339 (Class): Add default constructor.
2340 * java/lang/Object.h: Update comments.
2341 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2342 initialize superclass, saving a call if super is already initialized.
2344 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2346 * prims.cc (init_prim_class): Deleted.
2347 (DECLARE_PRIM_TYPE): Rewritten.
2348 * java/lang/Class.h (stdio.h): Include removed.
2349 (stddef.h): Included.
2350 (java/lang/reflect/Modifier.h): Likewise.
2351 (Class): Contructor now takes arguments, initializes fields.
2352 (initializePrim): Prototype deleted.
2353 * java/lang/natClass.cc (initializePrim): Deleted.
2355 2001-01-16 Warren Levy <warrenl@redhat.com>
2357 * java/math/BigInteger.java: Update Copyright year.
2359 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2361 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2364 2001-01-14 Mark Wielaard <mark@klomp.org>
2365 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2366 (decode): Merge comments with Classpath, don't throw Exception
2368 2001-01-12 Tom Tromey <tromey@redhat.com>
2370 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2374 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2375 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2376 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2377 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2378 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2380 * java/lang/natSystem.cc: Include locale.h if it exists.
2381 * configure: Rebuilt.
2382 * configure.in: Check for locale.h.
2384 2001-01-11 Tom Tromey <tromey@redhat.com>
2386 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2387 (Cursor(int), getPredefinedCursor): Throw exception if argument
2390 2001-01-03 Tom Tromey <tromey@redhat.com>
2392 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2393 (getLocationOnScreen): Wrote.
2395 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2397 * Makefile.am: Re-enable dependencies.
2398 * Makefile.in: Rebuilt.
2400 2001-01-10 Warren Levy <warrenl@redhat.com>
2402 * java/math/BigDecimal.java (divide): Fixed comment.
2404 2001-01-10 Warren Levy <warrenl@redhat.com>
2406 Fix for PR libgcj/1596:
2407 * java/math/BigDecimal.java (divide): Check newScale for validity.
2408 Ensure that BigInteger.pow() is called with a non-negative value.
2409 (setScale (int)): New public method.
2410 (setScale (int,int)): New public method.
2412 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2414 Fix for PR libgcj/1338:
2415 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2416 commentChar. Fixed typos in comments.
2418 2001-01-08 Warren Levy <warrenl@redhat.com>
2420 Fix for PR libgcj/1411:
2421 * Makefile.am: Removed java/util/natTimeZone.cc.
2422 * Makefile.in: Rebuilt.
2423 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2424 missing localized timezone names.
2425 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2426 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2427 (init_properties): Set user.timezone property.
2428 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2429 default timezone names; removed non-standard ones. Use standard
2431 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2433 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2435 (getDefaultTimeZoneId): Removed.
2437 * java/util/natTimeZone.cc: Removed.
2439 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2441 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2442 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2443 (_Jv_GetArrayClass): New inline function.
2444 (arrayclass): New field.
2445 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2446 _Jv_GetArrayElementFromElementType.
2447 (_Jv_NewPrimArray): Ditto.
2448 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2449 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2450 Set Modifier::ABSTRACT.
2451 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2452 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2453 Now synchronized. Array classes are now referenced from
2454 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2455 Set array classes' accessibility flags correctly. Optimize so that
2456 all array classes share the same IDT.
2457 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2458 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2459 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2460 in superclasses from overwriting classes own fields.
2461 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2462 Modifier::isAbstract().
2463 (null_idt): New static field.
2464 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2466 (_Jv_IndexOf): Made inline.
2467 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2469 2001-01-08 Tom Tromey <tromey@redhat.com>
2471 Fix for PR java/1586:
2472 * Makefile.in: Rebuilt.
2473 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2475 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2477 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2478 from the c++ compiler.
2479 * Makefile.in: Rebuilt.
2481 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2483 All files with updated copyright.
2484 * prims.cc (class _Jv_PrimClass): Removed.
2485 (init_prim_class): New function.
2486 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2487 `_Jv_PrimClass' in primitive type declarations. Assign to the
2488 value returned by `init_prim_class.'
2489 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2490 primitive type declarations.
2491 (JvPrimClass): Cast to `jclass' removed.
2492 * java/lang/Class.h (Class): New constructor.
2493 (Class): New copy constructor.
2494 (initializePrim): New prototype.
2495 (_Jv_PrimClass): Field removed.
2496 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2497 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2498 (class java::lang::Object): `finalize' moved up front.
2499 * java/lang/natClass.cc
2500 (isAssignableFrom): Turned outline.
2501 (isInstance): Likewise.
2502 (isInterface): Likewise, fixed indentation.
2503 (initializePrim): New function.
2505 2001-01-07 Anthony Green <green@redhat.com>
2507 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2509 * Makefile.in: Rebuilt.
2511 * scripts/TexinfoDoclet.java: New file.
2513 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2514 doc/java-awt-color.texi, doc/java-lang.texi,
2515 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2516 doc/java-awt-event.texi, doc/java-net.texi,
2517 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2518 doc/java-awt-image.texi, doc/java-security.texi,
2519 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2520 doc/java-text.texi, doc/java-beans-beancontext.texi,
2521 doc/java-util-jar.texi, doc/java-beans.texi,
2522 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2523 doc/java-lang-ref.texi: New files.
2525 2001-01-07 Anthony Green <green@redhat.com>
2527 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2528 be used for both input and output, so don't clear doInput.
2530 * java/lang/StringBuffer.java: Fix comments.
2532 2001-01-06 Anthony Green <green@redhat.com>
2534 * java/beans/PropertyDescriptor.java: Fix comment.
2535 * java/io/PushbackReader.java: Fix comment.
2536 * java/io/ObjectStreamClass.java: Fix comment.
2537 * java/io/DataInputStream.java: Fix comment.
2538 * java/io/PipedInputStream.java: Fix comments.
2539 * java/io/PipedReader.java: Fix comments.
2540 * java/sql/DatabaseMetaData.java: Fix comments.
2542 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2544 * java/io/PipedReader: Synchronize on "lock" instead of this.
2546 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2548 * java/lang/Thread.java: Update comment.
2550 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2551 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2552 * java/io/PipedReader: New implementation based on new
2554 * java/io/PipedWriter: Updated to match new PipedReader.
2556 2001-01-03 Tom Tromey <tromey@redhat.com>
2558 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2559 (getViewportSize): Insets include scrollbar size.
2560 (doLayout): Finished.
2561 (getScrollPosition): Wrote.
2562 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2564 2001-01-02 Tom Tromey <tromey@redhat.com>
2566 * java/awt/ScrollPane.java: Wrote.
2567 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2570 * java/awt/Panel.java (Panel()): Fixed.
2572 * java/awt/Component.java (isShowing): Return false if no peer
2573 exists, and true if component is visible and no parent exists.
2574 (getLocationOnScreen): Wrote.
2575 (getPreferredSize): Removed FIXME comment.
2576 (getMinimumSize): Likewise.
2577 (getAlignmentX, getAlignmentY): Wrote.
2579 (requestFocus): Wrote.
2580 (transferFocus): Wrote.
2581 (findNextFocusComponent): New method.
2582 (hasFocus()): Wrote.
2583 (checkImage): Wrote.
2584 (enableEvents): Call setEventMask on the peer.
2586 * java/awt/Container.java (list): Use super.list() to print self.
2587 (findNextFocusComponent): New method.
2588 (setLayout): Call invalidate.
2589 (findComponentAt): Wrote.
2591 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2593 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2594 the correct versions of various linuxthreads functions get linked.
2595 * Makefile.in: Rebuilt.
2596 * java/lang/natThread.cc (finalize_native): New static function. Call
2597 _Jv_ThreadDestroyData.
2598 (initialize_native): Register finalizer for "data".
2599 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2600 (_Jv_ThreadDestroyData): New prototype.
2601 * include/win32-threads.h: Ditto.
2602 * include/no-threads.h: Ditto.
2603 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2604 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2605 move mutex and condition variable destroy code from:
2606 (really_start): ...here.
2607 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2608 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2609 (_Jv_ThreadDestroyData): Implemented.
2610 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2611 (_Jv_AllocArray): Ditto.
2613 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2615 * java/sql/DriverManager.java (getConnection): Don't set user/password
2618 2000-12-27 Warren Levy <warrenl@redhat.com>
2620 Fix for PR libgcj/1358:
2621 * java/lang/System.java: Update Copyright date properly.
2622 * java/util/Calendar.java: Fix typo in comment.
2623 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2624 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2625 initialize times. Spec says to set H:M:S values to zero only if
2627 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2628 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2629 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2630 timezones and GMT offsets, being careful to account for units of
2631 milliseconds vs. seconds.
2633 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2635 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2636 not be assigned to Object.
2638 Fix for PR libgcj/1516:
2639 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2641 (can_widen): Declared inline. Remove redundant checks for void
2642 arguments and char->short conversion. Add special case for boolean
2644 (ffi_type): Declared inline.
2645 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2647 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2649 * java/sql/SQLWarning.java: Fixed typo in comment.
2651 2000-12-26 Tom Tromey <tromey@redhat.com>
2653 * java/awt/MenuItem.java (paramString): Now protected.
2655 * java/awt/MenuShortcut.java: Implements Serializable.
2657 * java/awt/MenuBar.java: Rewrote from scratch.
2659 * java/awt/MenuComponent.java (removeNotify): Wrote.
2660 Implements Serializable.
2662 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2665 * java/awt/CheckboxMenuItem.java: Wrote.
2667 2000-12-25 Tom Tromey <tromey@redhat.com>
2669 * java/awt/MenuContainer.java: Fixed typo.
2671 * Makefile.in: Rebuilt.
2672 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2673 * java/awt/SystemColor.java: New file.
2675 * java/awt/Color.java (rgba): Now package-private.
2677 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2679 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2682 * java/awt/MenuItem.java (addNotify): New method.
2683 (MenuItem(String,MenuShortcut)): New constructor.
2684 (setLabel): Notify peer of change.
2685 (setEnabled): Likewise.
2687 * java/awt/GridLayout.java (toString): New method.
2689 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2690 (FlowLayout): Check for LEADING and TRAILING.
2691 (setAlignment): Likewise.
2692 (layoutContainer): Handle component orientation.
2694 * java/awt/Component.java (orientatin): New field.
2695 (setComponentOrientation): Wrote.
2696 (getComponentOrientation): Wrote.
2698 * java/awt/Event.java (Event): Implements Serializable.
2699 (consumed): New field for serialization.
2700 * java/awt/Dimension.java (Dimension): Implements Serializable.
2701 * java/awt/Cursor.java (Cursor): Implements Serializable.
2702 * java/awt/Container.java (Container): No longer abstract.
2704 * java/awt/Choice.java: Wrote.
2705 * java/awt/Checkbox.java: Wrote.
2706 * java/awt/ItemSelectable.java: Documented.
2707 * java/awt/CheckboxGroup.java: Wrote.
2709 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2711 (getSize): Likewise.
2713 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2715 * java/io/FileDescriptor.java: Initialize fd to -1.
2716 Remove default constructor.
2718 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2720 * java/lang/mprec.h: Change C9X reference to refer to C99.
2722 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2724 * java/lang/Throwable.java (trace_enabled): New static field.
2725 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2726 trace_enabled not set.
2727 * prims.cc (main_init): Turn off trace_enabled while creating
2728 default exception objects.
2730 2000-12-21 Tom Tromey <tromey@redhat.com>
2732 * java/beans/PropertyChangeListener.java: Extends EventListener.
2733 * java/beans/VetoableChangeListener.java: Extends EventListener.
2735 * java/util/zip/Deflater.java (update, init): Now private.
2737 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2739 * java/util/BasicMapEntry.java: Re-added.
2740 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2741 (putAll): Test for BasicMapEntry.
2742 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2743 (putAll): Test for BasicMapEntry.
2744 Change references from `HashMap.Entry' to `Entry' in various places.
2745 * Makefile.am: Add BasicMapEntry.java.
2746 * Makefile.in: Rebuilt.
2748 2000-12-18 Warren Levy <warrenl@redhat.com>
2750 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2751 need to set timezone to a valid non-null value. Partial fix for
2754 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2756 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2758 * java/awt/Button.java (addNotify): Likewise.
2759 * java/awt/Label.java (addNotify): Likewise.
2760 * java/awt/Panel.java (addNotify): Likewise.
2761 * java/awt/Scrollbar.java (addNotify): Likewise.
2762 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2763 Remove redundant null checks.
2765 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2767 * COPYING: Update to current
2768 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2769 to 19yy as example year in copyright notice).
2771 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2773 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2774 end-of-stream if avail_in is 0.
2776 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2778 * java/util/ArrayList.java (data): Declare transient.
2779 (serialPersistantFields): Removed.
2780 (readObject): Use defaultReadObject(), not readFields().
2781 (writeObject): Use defaultWriteObject(), not writeFields().
2783 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2785 * java/util/Hashtable.java (put): Remove `last' variable.
2786 Link new entry to head of list.
2787 * java/util/HashMap.java (put): Ditto.
2789 2000-12-15 Tom Tromey <tromey@redhat.com>
2791 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2792 loader to Class.forName.
2794 2000-12-14 Tom Tromey <tromey@redhat.com>
2796 * java/util/ResourceBundle.java
2797 (getBundle(String,Locale,ClassLoader)): New method.
2798 (trySomeGetBundle): Added `loader' argument.
2799 (partialGetBundle): Likewise.
2801 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2802 maximumFractionDigits, maximumIntegerDigits,
2803 minimumFractionDigits, minimumIntegerDigits): Now
2806 * java/lang/Thread.java (checkAccess): Now final.
2808 * java/lang/RuntimePermission.java: Class now final.
2810 * java/io/StringWriter.java (StringWriter(int)): Now public.
2812 * java/io/SerializablePermission.java (legal_names): Now private.
2814 * java/lang/Character.java: Updated UnicodeBlock constants.
2815 * scripts/blocks.pl: Special case private use and surrogate
2818 2000-12-12 Tom Tromey <tromey@redhat.com>
2820 * Makefile.in: Rebuilt.
2821 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2823 (GCJCOMPILE): Use it.
2826 2000-12-11 Tom Tromey <tromey@redhat.com>
2828 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2829 New static final fields.
2831 * scripts/classes.pl (scan): Skip lines with leading `*'.
2832 Fix for PR libgcj/378.
2834 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2836 * configure.in: Remove check for -fuse-divide-subroutine.
2837 * configure: Rebuilt.
2839 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2841 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2843 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2845 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2846 Remove BasicMapEntry.java and Bucket.java.
2847 * Makefile.in: Rebuilt.
2848 * java/util/HashMap.java: Rewritten.
2849 * java/util/HashSet.java: Imported from classpath.
2850 * java/util/WeakHashMap.java: Imported from classpath.
2851 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2852 * java/util/Bucket.java: Deleted.
2853 * java/util/BasicMapEntry.java: Deleted.
2854 * java/util/Collections.java (search): Use a for-loop, not iterator
2856 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2857 of elements in source.
2858 (max): Use a for-loop.
2860 (reverse): Keep track of positions instead of using Iterator's
2861 nextIndex() and previousIndex().
2862 (shuffle(List)): Initialize defaultRandom if required using
2863 double-check thread safety idiom. Call two-argument shuffle method
2864 using defaultRandom.
2865 (defaultRandom): New field.
2866 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2867 using previousIndex() and nextIndex().
2868 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2869 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2870 * java/util/AbstractMap.java (toString): Use StringBuffer.
2871 * java/lang/ref/PhantomReference.java: Imported from classpath.
2872 * java/lang/ref/SoftReference.java: Ditto.
2873 * java/lang/ref/Reference.java: Ditto.
2874 * java/lang/ref/WeakReference.java: Ditto.
2875 * java/lang/ref/ReferenceQueue.java: Ditto.
2877 2000-12-10 Richard Henderson <rth@redhat.com>
2879 * configure.host: Recognize alpha*-*, not alphaev6-*.
2881 2000-12-09 Anthony Green <green@redhat.com>
2883 * configure.host: Enable interpreter for Alpha.
2885 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2887 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2888 (ZIP): Points at fastjar instead of zip.
2889 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2890 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2891 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2892 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2893 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2894 ($(x_java_source_files:.java=.class):): Likewise.
2895 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2897 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2898 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2899 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2900 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2901 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2902 gnu/gcj/runtime/VMClassLoader.h:,
2903 java/io/ObjectInputStream$$GetField.h:,
2904 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2905 (Makefile.in): Rebuilt.
2907 2000-12-08 Tom Tromey <tromey@redhat.com>
2910 * configure: Rebuilt.
2911 * configure.in: Use echo, not `:', to create .d files.
2913 2000-12-08 Warren Levy <warrenl@redhat.com>
2915 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2916 NullPointerException so proper check of offset can be done.
2918 2000-12-08 Warren Levy <warrenl@redhat.com>
2920 * java/io/FileInputStream.java (close): Check if the fd is valid.
2921 * java/io/RandomAccessFile.java (close): Ditto.
2922 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2923 * java/net/PlainSocketImpl.java (close): Ditto.
2925 2000-12-06 Tom Tromey <tromey@redhat.com>
2927 * java/awt/GridBagConstraints.java: Filled in values for static
2930 * java/util/BitSet.java: Updated copyright notice.
2932 * Makefile.in: Rebuilt.
2933 * Makefile.am (awt_java_source_files): Added new file.
2934 * java/awt/GridBagConstraints.java: New file.
2936 2000-12-05 Tom Tromey <tromey@redhat.com>
2938 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2939 Now package-private, not protected.
2940 * java/text/DateFormatSymbols.java (equals): Now private.
2941 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2942 * java/util/BitSet.java: Class no longer final.
2944 2000-12-04 Warren Levy <warrenl@redhat.com>
2946 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2947 out code dependent on compiler and library changes.
2949 2000-12-04 Warren Levy <warrenl@redhat.com>
2951 * java/io/FilePermission.java: Made class final per spec.
2952 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2953 method name to match spec (fixed typo).
2954 * java/util/LinkedList.java: Implements List.
2956 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2958 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2959 Edgar Villanueva <edgarvil@home.com>.
2961 2000-12-03 Tom Tromey <tromey@redhat.com>
2963 * java/awt/geom/Point2D.java: Added protected constructor.
2964 (equals): New method.
2965 (Float.setLocation(float,float)): New method.
2966 * java/awt/geom/Dimension2D.java: Added protected constructor.
2967 * java/awt/geom/AffineTransform.java: Made all constants public.
2968 (concatenate): Fixed typo in name.
2969 * java/awt/event/WindowAdapter.java: Class now abstract.
2970 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2971 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2974 * java/awt/AWTError.java: Extend Error, not
2975 IllegalStateException.
2977 * Makefile.in: Rebuilt.
2978 * Makefile.am (awt_java_source_files): Added new file.
2979 * java/awt/geom/RoundRectangle2D.java: New file.
2981 * Makefile.in: Rebuilt.
2982 * Makefile.am (awt_java_source_files): Added new file.
2983 * java/awt/FlowLayout.java: New file.
2985 * Makefile.in: Rebuilt.
2986 * Makefile.am (awt_java_source_files): Added new file.
2987 * java/awt/GridLayout.java: New file.
2989 2000-12-02 Tom Tromey <tromey@redhat.com>
2991 * Makefile.in: Rebuilt.
2992 * Makefile.am (awt_java_source_files): Added new files.
2993 * java/awt/CardLayout.java: New file.
2994 * java/awt/AWTPermission.java: New file.
2996 2000-12-01 Tom Tromey <tromey@redhat.com>
2998 * java/util/Vector.java (insertElementAt): Unconditionally
2999 increment elementCount.
3000 (removeRange): Clear unused slots in vector.
3002 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3004 * java/lang/natMath.cc: Declare fabsf() function.
3005 * java/lang/mprec.h: Don't include math.h.
3006 * java/lang/dtoa.c: Include string.h.
3007 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3010 From Adam Welc <welc@cs.purdue.edu>:
3011 * java/util/LinkedList.java (removeFirst): Update `first' field.
3012 Handle the last == first case.
3013 (removeLast): Update `last' field. Handle the last == first case.
3015 2000-12-01 Warren Levy <warrenl@cygnus.com>
3017 * Makefile.am: Added entries for new java.sql modules.
3018 * Makefile.in: Rebuilt.
3020 2000-12-01 Warren Levy <warrenl@cygnus.com>
3022 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3023 that aren't quite 1.2 compatible yet.
3025 2000-11-30 Warren Levy <warrenl@cygnus.com>
3027 * java/sql/Array.java: New file from classpath.
3028 * java/sql/BatchUpdateException.java: Ditto.
3029 * java/sql/Blob.java: Ditto.
3030 * java/sql/Clob.java: Ditto.
3031 * java/sql/Ref.java: Ditto.
3032 * java/sql/SQLData.java: Ditto.
3033 * java/sql/SQLInput.java: Ditto.
3034 * java/sql/SQLOutput.java: Ditto.
3035 * java/sql/Struct.java: Ditto.
3036 * java/sql/CallableStatement.java: Merged file from claspath.
3037 * java/sql/Connection.java: Ditto.
3038 * java/sql/DataTruncation.java: Ditto.
3039 * java/sql/DatabaseMetaData.java: Ditto.
3040 * java/sql/DriverManager.java: Ditto.
3041 * java/sql/PreparedStatement.java: Ditto.
3042 * java/sql/ResultSet.java: Ditto.
3043 * java/sql/ResultSetMetaData.java: Ditto.
3044 * java/sql/SQLException.java: Ditto.
3045 * java/sql/SQLWarning.java: Ditto.
3046 * java/sql/Statement.java: Ditto.
3047 * java/sql/Types.java: Ditto.
3049 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3051 * java/lang/natSystem.cc (init_properties): Set user.language and
3053 * configure.in: Check for setlocale.
3054 * configure: Rebuilt.
3055 * include/config.h.in: Rebuilt.
3057 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3058 the infate() call didn't deliver any output. Throw a ZipException if
3059 the needsDictionary() call returns true.
3060 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3061 * java/io/InputStreamReader: Use the default buffer size for the
3062 contained BufferedInputStream.
3064 2000-11-28 Warren Levy <warrenl@cygnus.com>
3066 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3067 more time zone entries.
3068 * java/text/SimpleDateFormat.java (format): Added case for
3071 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3073 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3074 directly rather than read() in all cases. Make primitive read
3075 implementations more efficient, as defined in JDK online docs.
3076 (skipBytes): Behave like the JDK's implementation.
3077 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3078 closed stream with checkStatus() whenever an IOException can be
3080 (checkStatus): New private method.
3082 2000-11-27 Warren Levy <warrenl@cygnus.com>
3084 * Makefile.am: Added natTimeZone.cc.
3085 * Makefile.in: Rebuilt.
3086 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3087 * java/text/DateFormatSymbols.java (ampms): Made package private.
3088 (eras): Made package private.
3089 (months): Made package private.
3090 (shortMonths): Made package private.
3091 (shortWeekdays): Made package private.
3092 (weekdays): Made package private.
3093 (formatPrefixes): New private field.
3094 (localPatternCharsDefault): Made private.
3095 (dateFormats): New package private field.
3096 (timeFormats): New package private field.
3097 (formatsForKey): New private method.
3098 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3099 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3100 * java/text/SimpleDateFormat.java: Merged with Classpath.
3101 * java/util/TimeZone.java: Merged with Classpath.
3102 * java/util/natTimeZone.cc: New file.
3104 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3106 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3107 (addElement): Don't increment elementCount twice. Doh.
3108 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3109 array needs to be expanded.
3111 * java/util/Collections.java (UnmodifiableCollection): Implement
3113 (UnmodifiableList): Throw UnsupportedOperationException from
3114 modification methods. Set `l' from the one-parameter constructor.
3115 (UnmodifiableMap): Implement toString().
3116 (SynchronizedCollection): Ditto.
3117 (SynchronizedList): Set `l' from the one-parameter constructor.
3118 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3119 (SynchronizedMap): Implement toString().
3121 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3123 * javax/naming/NameParser.java,
3124 javax/naming/directory/AttributeInUseException.java,
3125 javax/naming/directory/AttributeModificationException.java,
3126 javax/naming/directory/InvalidAttributeIdentifierException.java,
3127 javax/naming/directory/InvalidAttributesException.java,
3128 javax/naming/directory/InvalidAttributeValueException.java,
3129 javax/naming/directory/InvalidSearchControlsException.java,
3130 javax/naming/directory/InvalidSearchFilterException.java,
3131 javax/naming/directory/NoSuchAttributeException.java,
3132 javax/naming/directory/SchemaViolationException.java: New files.
3134 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3136 * javax/naming/InitialContext.java (rebind): Implement.
3137 (unbind): Implement.
3138 (rename): Implement.
3140 (listBindings): Implement.
3141 (destroySubcontext): Implement.
3142 (createSubcontext): Implement.
3143 (lookupLink): Implement.
3144 (getNameParser): Implement.
3145 (composeName): Implement.
3146 (addToEnvironment): Implement.
3148 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3150 * javax/naming/AuthenticationException.java,
3151 javax/naming/AuthenticationNotSupportedException.java,
3152 javax/naming/CannotProceedException.java,
3153 javax/naming/CommunicationException.java,
3154 javax/naming/ConfigurationException.java,
3155 javax/naming/ContextNotEmptyException.java,
3156 javax/naming/InsufficientResourcesException.java,
3157 javax/naming/InterruptedNamingException.java,
3158 javax/naming/InvalidNameException.java,
3159 javax/naming/LimitExceededException.java,
3160 javax/naming/LinkException.java,
3161 javax/naming/LinkLoopException.java,
3162 javax/naming/MalformedLinkException.java,
3163 javax/naming/NameAlreadyBoundException.java,
3164 javax/naming/NameNotFoundException.java,
3165 javax/naming/NamingSecurityException.java,
3166 javax/naming/NoPermissionException.java,
3167 javax/naming/NotContextException.java,
3168 javax/naming/PartialResultException.java,
3169 javax/naming/ReferralException.java,
3170 javax/naming/ServiceUnavailableException.java,
3171 javax/naming/SizeLimitExceededException.java,
3172 javax/naming/TimeLimitExceededException.java: New files.
3174 * javax/naming/Name.java (clone): New method.
3175 (compareTo): New method.
3176 (isEmpty): New method.
3177 (getAll): New method.
3178 (getPrefix): New method.
3179 (getSuffix): New method.
3180 (startsWith): New method.
3181 (endsWith): New method.
3182 (addAll): New method.
3183 (addAll): New method.
3186 (remove): New method.
3188 * javax/naming/Context.java (lookup): New method.
3189 (rebind): New method.
3190 (unbind): New method.
3191 (rename): New method.
3193 (listBindings): New method.
3194 (destroySubcontext): New method.
3195 (createSubcontext): New method.
3196 (lookupLink): New method.
3197 (getNameParser): New method.
3198 (composeName): New method.
3199 (addToEnvironment): New method.
3200 (removeFromEnvironment): New method.
3201 (getEnvironment): New method.
3202 (close): New method.
3203 (getNameInNamespace): New method.
3205 * javax/naming/InitialContext.java (lookup): New method.
3206 (rebind): New method.
3207 (unbind): New method.
3208 (rename): New method.
3210 (listBindings): New method.
3211 (destroySubcontext): New method.
3212 (createSubcontext): New method.
3213 (lookupLink): New method.
3214 (getNameParser): New method.
3215 (composeName): New method.
3216 (addToEnvironment): New method.
3217 (removeFromEnvironment): New method.
3218 (getEnvironment): New method.
3219 (close): New method.
3220 (getNameInNamespace): New method.
3222 2000-11-26 Tom Tromey <tromey@cygnus.com>
3224 * Makefile.in: Rebuilt.
3225 * Makefile.am (core_java_source_files): Added
3226 RuntimePermission.java.
3227 * java/lang/RuntimePermission.java: Imported from Classpath.
3228 * java/lang/Thread.java (getContextClassLoader): Now
3229 synchronized. Added security code.
3230 (setContextClassLoader): Likewise.
3232 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3233 length field of array.
3234 (_Jv_NewPrimArray): Likewise.
3235 * gcj/array.h (__JArray): `length' field now const. Added
3238 2000-11-26 Anthony Green <green@redhat.com>
3240 * javax/naming/spi/NamingManager.java,
3241 javax/naming/spi/ObjectFactory.java,
3242 javax/naming/spi/InitialContextFactory.java,
3243 javax/naming/spi/InitialContextFactoryBuilder.java,
3244 javax/naming/RefAddr.java, javax/naming/Reference.java,
3245 javax/naming/NamingException.java, javax/naming/Context.java,
3246 javax/naming/Referenceable.java,
3247 javax/naming/directory/InitialDirContext.java,
3248 javax/naming/directory/DirContext.java,
3249 javax/naming/directory/Attributes.java,
3250 javax/naming/directory/Attribute.java,
3251 javax/naming/StringRefAddr.java,
3252 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3253 javax/naming/InitialContext.java,
3254 javax/naming/NoInitialContextException.java: New files.
3256 2000-11-25 Anthony Green <green@redhat.com>
3258 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3259 (_Jv_NewPrimArray): Likewise.
3260 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3261 (class JArray): Removed constructor.
3263 * java/lang/Thread.java (context_class_loader): New private data.
3264 (getContextClassLoader): New method.
3265 (setContextClassLoader): New method.
3266 (Thread): Initialize context_class_loader.
3268 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3269 (getResource): Rename to findResource.
3270 (findResource): New method. Used to be getResource.
3271 (getResourceAsStream): Deleted.
3272 (jarFileize): Extracted logic from URLClassLoader constructor into
3273 this new private method.
3274 (addURL): New protected method.
3275 (URLClassLoader): Call jarFileize. Use addElement instead of
3277 (findResources): New method.
3279 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3280 (getResource): Implement correct logic.
3281 (findResource): New method.
3282 (getResources): New method.
3283 (findClass): Create a ClassNotFoundException with the name of the
3284 class rather than nothing at all.
3285 (defineClass) Only throw ClassFormatError.
3287 * java/lang/Class.java (forName): New method.
3288 * java/lang/Class.h (forName): New method.
3289 * java/lang/natClass.cc (forName): New method.
3291 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3293 * java/lang/System.java (setProperties): Only call init_properties()
3294 if properties is null.
3295 (getProperties): Ditto.
3296 (getProperty): Ditto.
3297 (setProperty): Call init_properties if properties are null.
3298 (prop_init): Remove field.
3299 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3300 method. Check for null properties after synchronizing instead of
3301 prop_init flag. Set the properties field last for thread safety.
3303 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3304 test for gcj.dumpobjects property and enable object stream dumping
3306 (dumpElement): No longer native.
3307 (dumpElementln): Ditto.
3308 (setDump): Do not define.
3309 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3310 (dumpElementln): Removed.
3313 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3315 * configure: Rebuilt.
3316 * Makefile.in: Rebuilt.
3317 * Makefile.am (built_java_source_files): Add Configuration.java.
3318 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3319 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3320 Create `gnu' directory in the build tree.
3321 * gnu/classpath/Configuration.java.in: New file.
3323 2000-11-24 Tom Tromey <tromey@cygnus.com>
3325 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3327 (_Jv_NewPrimArray): Likewise.
3329 * gcj/array.h (__JArray): `length' field now const. Added
3331 (class JArray): Added constructor.
3333 2000-11-23 Mark Wielaard <mark@klomp.org>
3335 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3338 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3340 * java/util/Vector.java: Improve exception messages.
3341 (Vector): Check initialCapacity for IllegalArgumentException.
3342 (tromToSize): Don't check for elementCount == elementData.length
3344 (toArray): Don't try to set null marker if target array is the same
3345 length as the vector.
3347 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3349 * Makefile.in: Rebuilt.
3350 * Makefile.am (core_java_source_files): Added Collections.java.
3351 * java/util/List.java: Merged from classpath.
3352 * java/util/Vector.java: Ditto.
3353 * java/util/Collections.java: From classpath.
3354 * java/util/ArrayList.java (addAll(Collection)): Call
3355 addAll(int,Collection) instead of duplicating code.
3356 (indexOf): Clean up int initialization.
3357 (clear): Set cleared array entries to null, to allow garbage
3359 * java/util/List.java: Minor formatting fixes.
3360 * java/util/SimpleTimeZone.java: ditto.
3362 2000-11-18 Tom Tromey <tromey@cygnus.com>
3364 * Makefile.in: Rebuilt.
3365 * Makefile.am (core_java_source_files): Added new files.
3366 * java/lang/reflect/ReflectPermission.java: New class.
3367 * java/io/FileFilter.java: From Classpath
3368 * java/io/FilePermission.java: From Classpath.
3370 2000-11-17 Tom Tromey <tromey@cygnus.com>
3372 * java/lang/reflect/AccessibleObject.java (isAccessible,
3373 setAccessible): Now public.
3375 * java/lang/natString.cc: Include Locale.h.
3376 (toUpperCase): Added `locale' argument. Handle locale
3378 (toLowerCase): Added `locale' argument. Handle locale
3380 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3381 CAPITAL_I): New defines.
3382 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3385 (toUpperCase, toLowerCase): New methods. Variants which accept
3388 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3391 * java/util/PropertyPermission.java: Re-merged from Classpath.
3393 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3395 * java/text/StringCharacterIterator.java: Reindented.
3396 (setText): New method.
3398 2000-11-17 Mark Wielaard <mark@klomp.org>
3400 Merge with Classpath (changes by Bryce McKinlay)
3401 * java/util/jar/*.java: Reformat all to unofficial standard coding
3402 style. No changes of substance.
3404 2000-11-17 Mark Wielaard <mark@klomp.org>
3406 * java/util/zip/*.java: Javadoc updates.
3408 2000-11-17 Tom Tromey <tromey@cygnus.com>
3410 * java/text/CollationKey.java: Implement Comparable.
3411 (compareTo(Object)): New method.
3412 * java/text/Collator.java (compare(Object,Object)): New method.
3413 Implement Comparator.
3415 * java/util/zip/InflaterInputStream.java (available): New method.
3416 (close): New method.
3417 (read, available, skip, fill): Throw exception if stream closed.
3418 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3419 getNextEntry): Throw exception if closed.
3421 2000-11-16 Tom Tromey <tromey@cygnus.com>
3423 * java/io/PushbackReader.java: Merged with Classpath.
3424 * java/util/Arrays.java: Updated from Classpath.
3426 * scripts/blocks.pl: New file.
3427 * java/lang/Character.java (Subset): New class.
3428 (UnicodeBlock): New class.
3430 * java/lang/Math.java (toDegrees, toRadians): New methods.
3432 * java/lang/Float.java: Implement Comparable.
3433 (compareTo): New methods.
3434 * java/lang/Double.java: Implement Comparable.
3435 (compareTo): New methods.
3437 2000-11-16 Warren Levy <warrenl@cygnus.com>
3439 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3441 (listeners): Made transient.
3442 (source): Renamed from 'bean'.
3443 (children): New field for serialization.
3444 (propertyChangeSupportSerializedDataVersion): Ditto.
3445 (serialVersionUID): Ditto.
3446 (writeObject): New serialization method.
3447 (readObject): New serialization method.
3448 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3450 (listeners): Made transient.
3451 (source): Renamed from 'bean'.
3452 (children): New field for serialization.
3453 (vetoableChangeSupportSerializedDataVersion): Ditto.
3454 (serialVersionUID): Ditto.
3455 (writeObject): New serialization method.
3456 (readObject): New serialization method.
3457 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3458 to allow constructor to have a return type (i.e. the class that the
3459 constructor constructs).
3461 2000-11-14 Tom Tromey <tromey@cygnus.com>
3463 * Makefile.in: Rebuilt.
3464 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3467 2000-11-02 Warren Levy <warrenl@cygnus.com>
3469 * java/io/ObjectInputStream.java (readObject): Added code to
3470 conditionally dump out the serialized data.
3471 Handle ENDBLOCKDATA case a bit more gracefully since the current
3472 behavior doesn't seem to work as expected.
3473 (readStreamHeader): Added code for serialized data dumper.
3474 (readNextBlock): Ditto.
3475 (readFields): Ditto.
3476 (dump): New private static field for turning on/off dumper.
3477 (setDump): New native method.
3478 (dumpElement): New native method.
3479 (dumpElementln): New native method.
3480 * java/io/natObjectInputStream.cc (setDump): New method.
3481 (dumpElement): New method.
3482 (dumpElementln): New method.
3484 2000-11-02 Warren Levy <warrenl@cygnus.com>
3486 * java/net/InetAddress.java (addr): Renamed from 'address'.
3487 (address): New field to match Serialized Form doc.
3488 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3489 (family): New serialization field.
3490 (serialVersionUID): New field.
3491 (readObject): New method.
3492 (writeObject): New method.
3493 (getFamily): New native method.
3494 (InetAddress): Set family.
3495 * java/net/natInetAddress.cc (getFamily): New method.
3496 (addr): Renamed from 'address'.
3497 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3498 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3499 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3501 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3503 * java/util/AbstractList.java (SubList): Make it a top-level private
3505 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3507 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3508 * Makefile.in: Rebuilt.
3510 2000-11-02 Tom Tromey <tromey@cygnus.com>
3512 * Makefile.in: Rebuilt.
3513 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3516 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3518 * java/util/AbstractList.java (remove): Comment out modCount increment
3519 to work around compiler bug.
3522 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3524 * java/util/AbstractList.java: Throw messages with
3525 IndexOutOfBoundsExceptions.
3526 (listIterator()): Call listIterator(0).
3527 (size): New field. Initialize to size().
3528 (hasNext): Test position against size, not size().
3529 (remove): Increment knownMod by one instead of resetting it from
3532 (SubList.upMod): Removed.
3533 (SubList.set): Don't call upMod() or update knownMod.
3534 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3535 (SubList.remove): Ditto.
3536 (SubList.addAll): Don't call backingList.size(). Increment size from
3538 (SubList.iterator): New method. Call listIterator(0).
3539 (SubList.listIterator): New method. Restore code to return an anonymous
3540 listIterator implementation (with some changes).
3541 * java/util/AbstractSequentialList.java: Throw messages with
3542 IndexOutOfBoundsExceptions.
3543 (addAll): Add a specnote.
3544 * java/util/ArrayList.java (removeRange): Get the math right.
3545 (addAll): Increment modCount _before_ creating iterator.
3546 * java/util/LinkedList.java: Rewritten, mostly.
3548 2000-11-01 Tom Tromey <tromey@cygnus.com>
3550 * scripts/encodings.pl: Added `ASCII' alias.
3551 * Makefile.in: Rebuilt.
3552 * Makefile.am (convert_source_files): Added new files.
3553 * gnu/gcj/convert/Input_ASCII.java: New file.
3554 * gnu/gcj/convert/Output_ASCII.java: New file.
3555 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3556 out-of-range characters.
3557 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3558 (read): Swap bytes if required. Treat `count' as character count,
3560 (write): Likewise. Also, handle case where iconv fails on a given
3562 (init): Put encoding into exception.
3563 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3564 (static): Call iconv_init. Rebuilt alias list.
3565 (iconv_init): New private method.
3567 2000-11-01 Tom Tromey <tromey@cygnus.com>
3569 * Makefile.in: Rebuilt.
3570 * Makefile.am (install-exec-hook): Only make a single symlink, and
3571 remove the destination before making the link.
3572 * configure: Rebuilt.
3573 * configure.in: Call AC_PROG_LN_S.
3575 2000-10-31 Warren Levy <warrenl@cygnus.com>
3577 * jni.cc: Added include of java/lang/ThreadGroup.h.
3578 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3579 per change of 2000-10-05.
3581 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3583 * java/util/BitSet.java: Updated @specnote.
3585 * java/io/Reader.java: Merge docs from classpath.
3586 (skip): Synchronize on `lock'.
3587 * java/io/FileReader.java: Import correct implementation from
3589 * java/io/StringReader.java: Merge docs from classpath.
3590 (ready): Throw IOException if stream is closed.
3592 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3594 * java/util/AbstractCollection.java (addAll): Use size() instead of
3595 hasNext() in iterator loop.
3597 (contains): Ditto. Simplify loop.
3598 (containsAll): Ditto.
3603 (toString): Ditto. Use string concatenation operators, not
3605 * java/util/AbstractList.java (addAll): Use size() instead of
3606 hasNext() in iterator loop.
3609 (indexOf): Ditto. Don't take null check outside of the loop.
3610 (iterator): Return an AbstractListItr instead of anonymous class.
3611 (lastIndexOf): Use a for loop bounded by size() instead of
3612 hasPrevious() in iterator loop.
3613 (listIterator): Return an AbstractListItr.
3614 (removeRange): Remove bounds checking code and docs.
3615 (AbstractListItr): New inner class. Code moved here from
3617 (SubList.iterator): Removed. Use default implementation from
3618 AbstractList instead.
3619 (SubList.listIterator): As above.
3620 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3621 instead of hasNext() in iterator loop.
3622 (containsValue): Ditto.
3628 (toString): Ditto. Use string concatenation operators, not
3630 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3631 bounded by size() instead of hasNext() in iterator loop.
3632 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3633 part of normal execution flow. Do an explicit null check instead.
3634 * java/util/ArrayList.java (_iSize): Rename to `size'.
3635 (_arData): Rename to `data'.
3636 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3639 (removeRange): Make protected. Don't check bounds.
3640 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3642 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3644 (addAll (int, Collection)): Check lower bounds. Simplify exception
3646 (clone): Clone the data array too.
3647 (indexOf): Inline doesEqual().
3648 (lastIndexOf): Ditto.
3649 (clear): Don't set array data to null.
3650 (set): Check lower bounds. Simplify exception string.
3651 (toArray): Correct comment.
3652 (trimToSize): Don't update modCount, this is not a structural change.
3655 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3657 (toString): Declare `bit' as long, not int.
3658 (data): Made package-private, not private.
3660 2000-10-27 Warren Levy <warrenl@cygnus.com>
3662 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3663 array elements to true.
3665 2000-10-27 Warren Levy <warrenl@cygnus.com>
3667 * Makefile.am: Added locale files from Classpath.
3668 * Makefile.in: Rebuilt.
3669 * gnu/java/locale/Calendar.java: New file.
3670 * gnu/java/locale/Calendar_de.java: New file.
3671 * gnu/java/locale/Calendar_en.java: New file.
3672 * gnu/java/locale/Calendar_nl.java: New file.
3673 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3674 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3675 serialization compatibility.
3676 (scale): Made private.
3677 (serialVersionUID): New field.
3678 * java/math/BigInteger.java (ival): Made transient.
3679 (words): Made transient.
3680 (bitCount): New serialization field.
3682 (firstNonzeroByteNum): Ditto.
3683 (lowestSetBit): Ditto.
3686 (serialVersionUID): New field.
3687 (readObject): New method.
3688 (writeObject): New method.
3689 * java/util/BitSet.java (serialVersionUID): New field.
3690 * java/util/Calendar.java: Replaced with Classpath file.
3691 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3692 of getDefault() for TimeZone or Locale instead of passing nulls.
3693 * java/util/Locale.java (serialVersionUID): New field.
3694 (writeObject): New method.
3695 (readObject): New method.
3696 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3698 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3700 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3701 (core_java_source_files): Put java.lang, java.io, and java.util here.
3702 (ordinary_java_source_files): Order so that core_java_source_files are
3704 (java_source_files): Reorder so that special_java_source_files are
3706 * configure.in: Don't pass -I flag to gcj.
3707 * Makefile.in: Rebuilt.
3708 * configure: Rebuilt.
3710 2000-10-25 Tom Tromey <tromey@cygnus.com>
3712 * Makefile.in: Rebuilt.
3713 * Makefile.am (install-exec-hook): New target.
3715 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3717 * java/util/EventObject.java: Merged from classpath.
3719 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3722 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3724 * java/util/AbstractSet.java (equals): Re-installed original code.
3726 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3728 * Makefile.am: Added rules for libgcjx library.
3729 * Makefile.in: Rebuilt.
3730 * configure.in: Added check for X.
3731 * configure: Rebuilt.
3732 * gnu/awt/LightweightRedirector.java: New file.
3733 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3734 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3735 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3736 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3737 * gnu/awt/j2d/MappedRaster.java: New file.
3738 * gnu/awt/xlib/XCanvasPeer.java: New file.
3739 * gnu/awt/xlib/XEventLoop.java: New file.
3740 * gnu/awt/xlib/XEventQueue.java: New file.
3741 * gnu/awt/xlib/XFontMetrics.java: New file.
3742 * gnu/awt/xlib/XFramePeer.java: New file.
3743 * gnu/awt/xlib/XGraphics.java: New file.
3744 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3745 * gnu/awt/xlib/XPanelPeer.java: New file.
3746 * gnu/awt/xlib/XToolkit.java: New file.
3747 * gnu/gcj/xlib/Clip.java: New file.
3748 * gnu/gcj/xlib/Colormap.java: New file.
3749 * gnu/gcj/xlib/Display.java: New file.
3750 * gnu/gcj/xlib/Drawable.java: New file.
3751 * gnu/gcj/xlib/Font.java: New file.
3752 * gnu/gcj/xlib/GC.java: New file.
3753 * gnu/gcj/xlib/Pixmap.java: New file.
3754 * gnu/gcj/xlib/Screen.java: New file.
3755 * gnu/gcj/xlib/Visual.java: New file.
3756 * gnu/gcj/xlib/WMSizeHints.java: New file.
3757 * gnu/gcj/xlib/Window.java: New file.
3758 * gnu/gcj/xlib/WindowAttributes.java: New file.
3759 * gnu/gcj/xlib/XAnyEvent.java: New file.
3760 * gnu/gcj/xlib/XButtonEvent.java: New file.
3761 * gnu/gcj/xlib/XColor.java: New file.
3762 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3763 * gnu/gcj/xlib/XConnectException.java: New file.
3764 * gnu/gcj/xlib/XEvent.java: New file.
3765 * gnu/gcj/xlib/XException.java: New file.
3766 * gnu/gcj/xlib/XExposeEvent.java: New file.
3767 * gnu/gcj/xlib/XID.java: New file.
3768 * gnu/gcj/xlib/XImage.java: New file.
3769 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3770 * gnu/gcj/xlib/natClip.cc: New file.
3771 * gnu/gcj/xlib/natColormap.cc: New file.
3772 * gnu/gcj/xlib/natDisplay.cc: New file.
3773 * gnu/gcj/xlib/natDrawable.cc: New file.
3774 * gnu/gcj/xlib/natFont.cc: New file.
3775 * gnu/gcj/xlib/natGC.cc: New file.
3776 * gnu/gcj/xlib/natPixmap.cc: New file.
3777 * gnu/gcj/xlib/natScreen.cc: New file.
3778 * gnu/gcj/xlib/natVisual.cc: New file.
3779 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3780 * gnu/gcj/xlib/natWindow.cc: New file.
3781 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3782 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3783 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3784 * gnu/gcj/xlib/natXColor.cc: New file.
3785 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3786 * gnu/gcj/xlib/natXException.cc: New file.
3787 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3788 * gnu/gcj/xlib/natXImage.cc: New file.
3789 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3790 * java/awt/EventDispatchThread.java: Start thead on creation.
3792 2000-10-20 Tom Tromey <tromey@cygnus.com>
3794 From Arno J. Klaassen:
3795 * interpret.cc: Include <stdlib.h> for alloca.
3796 * defineclass.cc: Include <stdlib.h> for alloca.
3798 * Makefile.in: Rebuilt.
3799 * Makefile.am: Include deps.mk.
3800 (GCJCOMPILE): Added -MD, -MT, and -MF.
3801 ($(javao_files)): Don't depend on libgcj.zip.
3802 (all-recursive): New target.
3803 (%.lo:%.cc): Do dependency tracking.
3804 ($(nat_headers)): Don't depend on libgcj.zip.
3805 * configure: Rebuilt.
3806 * configure.in: Make .d files and deps.mk.
3808 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3810 * exception.cc: Don't #include "exception".
3811 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3813 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3814 * Makefile.in: Updated.
3816 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3818 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3819 * java/awt/peer/ComponentPeer.java (disable): Removed.
3822 (minimumSize): Removed.
3823 (preferredSize): Removed.
3826 * java/awt/peer/ListPeer.java (addItem): Removed.
3828 (minimumSize): Removed.
3829 (preferredSize): Removed.
3830 (setMultipleSelections): Removed.
3831 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3832 (remove): Renamed from removeMenu.
3833 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3835 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3836 (remove): Renamed from removeItem.
3837 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3838 (getMinimumSize): Removed.
3839 (getPreferredSize): Removed.
3840 (minimumSize): Removed.
3841 (preferredSize): Removed.
3842 (replaceText): Removed.
3843 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3844 (preferredSize): Removed.
3845 (getMinimumSize): Removed.
3846 (getPreferredSize): Removed.
3847 (setEchoCharacter): Removed.
3849 2000-10-10 Warren Levy <warrenl@cygnus.com>
3851 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3852 * java/sql/Date.java (serialVersionUID): New field.
3853 * java/sql/Time.java (serialVersionUID): New field.
3854 * java/sql/Timestamp.java (serialVersionUID): New field.
3855 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3856 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3857 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3858 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3859 (readObject): New serialization method.
3860 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3861 (serialVersionOnStream): New field.
3862 (readObject): New serialization method.
3863 (getMonetaryDecimalSeparator): New method.
3864 (setMonetaryDecimalSeparator): New method.
3865 * java/text/NumberFormat.java (maxFractionDigits): New field.
3866 (maxIntegerDigits): New field.
3867 (minFractionDigits): New field.
3868 (minIntegerDigits): New field.
3869 (serialVersionOnStream): New field.
3870 (serialVersionUID): New field.
3871 (readObject): New serialization method.
3872 (writeObject): New serialization method.
3873 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3874 (serialVersionOnStream): New field.
3875 (serialVersionUID): New field.
3876 (readObject): New serialization method.
3878 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3880 * configure.in (GCJ): Avoid bogus error message when looking for
3881 (and not finding) gcj in the build tree.
3882 * configure: Rebuilt.
3884 2000-10-09 Tom Tromey <tromey@cygnus.com>
3886 * configure: Rebuilt.
3887 * configure.in: Include sys/types.h when checking for socklen_t.
3888 From Arno J. Klaassen.
3890 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3892 * include/jvm.h: Enable __builtin_expect().
3894 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3895 the main program. Fix for PR libgcj/341.
3897 2000-10-07 Tom Tromey <tromey@cygnus.com>
3899 * java/util/Properties.java: Merged with Classpath version.
3901 2000-10-05 Tom Tromey <tromey@cygnus.com>
3903 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3904 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3905 * java/lang/Class.h (Object): Added `class$' field.
3906 * java/lang/Object.h (Object): Added `class$' field.
3907 * defineclass.cc (ClassClass): Use `class$' form.
3908 (ClassObject): Likewise.
3909 * resolve.cc (ClassObject): Use `class$' form.
3910 (ObjectClass): Likewise.
3911 * interpret.cc (ClassError): Removed.
3912 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3914 (IntegerClass): Likewise.
3915 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3917 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3918 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3919 SerializableClass): Likewise.
3920 Include Serializable.h, Cloneable.h.
3921 * java/lang/natSystem.cc (SystemClass): Removed.
3922 (init_properties): Use `class$' form.
3923 * java/lang/natObject.cc (CloneableClass): Removed.
3924 (clone): Use `class$' form.
3925 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3926 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3927 ConstructorClass): Likewise.
3928 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3929 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3930 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3931 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3933 (ClassClass): Likewise.
3934 * include/jvm.h (StringClass): Use `class$' form.
3935 * prims.cc (ObjectClass): Removed.
3936 (_Jv_RunMain): Use `class$' form.
3937 (_Jv_AllocObject): Likewise.
3938 * jni.cc (ClassClass): Use `class$' form.
3939 (ThrowableClass): Likewise.
3940 (ObjectClass): Likewise.
3941 (MethodClass): Likewise.
3942 (ThreadGroupClass): Likewise.
3943 (NativeThreadClass): Likewise.
3944 * boehm.cc (ObjectClass): Removed.
3945 (ClassClass): Removed.
3946 (_Jv_MarkObj): Use `class$' form.
3947 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3950 2000-10-05 Warren Levy <warrenl@cygnus.com>
3952 * Makefile.am: Removed java/io/Replaceable.java and
3953 java/io/Resolvable.java.
3954 * Makefile.in: Rebuilt.
3955 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3957 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3959 (processResolution): Handle readResolve method via reflection with
3960 removal of Resolvable interface.
3961 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3962 method via reflection with removal of Replaceable interface.
3963 * java/io/Replaceable.java: Removed.
3964 * java/io/Resolvable.java: Removed.
3965 * java/security/Key.java (serialVersionUID): New field.
3966 * java/security/Provider.java (serialVersionUID): New field.
3967 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3969 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3971 * java/sql/DataTruncation.java (serialVersionUID): New field.
3972 * java/sql/SQLException.java (serialVersionUID): New field.
3973 * java/sql/SQLWarning.java (serialVersionUID): New field.
3974 * java/util/Date.java (serialVersionUID): New field.
3975 (millis): Made transient.
3976 (readObject): New method.
3977 (writeObject): New method.
3979 2000-10-05 Tom Tromey <tromey@cygnus.com>
3981 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3983 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3985 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3986 (JvRunMain): Set _Jv_argv and _Jv_argc.
3987 * java/awt/Component.java: Minor fixes.
3988 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3989 * java/awt/Toolkit.java (systemEventQueue): Removed.
3990 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3991 * java/awt/Window.java (getToolkit): Don't call super.
3992 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3993 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3994 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3995 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3996 * gnu/awt/gtk/GtkFramePeer.java: New file.
3997 * gnu/awt/gtk/GtkMainThread.java: New file.
3998 * gnu/awt/gtk/GtkToolkit.java: New file.
3999 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4000 * gnu/awt/gtk/gtkcommon.cc: New file.
4001 * gnu/awt/gtk/gtkcommon.h: New file.
4002 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4003 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4004 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4005 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4006 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4007 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4009 2000-09-30 Tom Tromey <tromey@cygnus.com>
4011 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4012 interrupted before modifying the cv's wait set.
4015 2000-09-30 Hans Boehm <boehm@acm.org>
4016 Bryce McKinlay <bryce@albatross.co.nz>
4018 Implement bitmap descriptor based marking for Boehm GC.
4020 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4021 * configure: Rebuilt.
4022 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4023 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4024 method get_finalizer().
4025 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4026 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4027 (_Jv_AllocObj): Add new jclass parameter.
4028 (_Jv_AllocArray): Ditto.
4029 (_Jv_BuildGCDescr): New prototype.
4030 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4031 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4032 get_finalizer() instead of direct finalizer vtable offset.
4033 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4034 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4035 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4036 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4037 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4038 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4039 (_Jv_DetermineVTableIndex): Ditto.
4040 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4041 calculations to account for new gc_descr field.
4042 * boehm.cc: #include gc_gcj.h.
4043 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4044 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4045 New commentary from HB. Mark the classes vtable.
4046 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4047 (GC_DEFAULT_DESCR): New #define.
4048 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4049 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4050 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4051 scan conservativly if size is less than min_heap_addr. Set vtable
4052 pointer of new object before returning.
4053 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4054 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4055 allocation for obj_kind_x.
4056 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4057 (_Jv_AllocObj): Set vtable on returned object.
4058 (_Jv_AllocArray): Ditto.
4059 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4060 (_Jv_NewPrimArray): Ditto.
4061 (_Jv_AllocObj): Declare as a friend.
4062 (_Jv_AllocArray): Ditto.
4063 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4064 from &ObjectClass into new array class. Remove offset-by-one
4065 adjustments from `method' size calculations to account for gc_descr
4068 2000-09-26 Tom Tromey <tromey@cygnus.com>
4070 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4071 `remove', not `add'.
4073 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4075 * java/lang/natSystem.cc (file_encoding): Added return statement.
4077 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4079 * Makefile.am: Re-work shell commands that exceeded command-line
4081 * Makefile.in: Rebuilt.
4083 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4085 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4086 * java/lang/natDouble.cc: Likewise.
4087 * java/lang/reflect/natMethod.cc: Likewise.
4088 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4090 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4092 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4094 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4095 * acinclude.m4: Arrange for automake to not bring in a new
4096 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4097 * Makefile.am: Leave it up to automake to subst GCJ.
4098 * aclocal.m4, configure, Makefile.in: Rebuilt.
4100 2000-09-13 Tom Tromey <tromey@cygnus.com>
4102 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4103 (get): Ensure Boolean class is initialized.
4104 * java/lang/reflect/natField.cc (BooleanClass): New define.
4105 (get): Ensure Boolean class is initialized.
4107 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4109 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4110 Initialize with anonymous class.
4111 (compareToIgnoreCase): New method.
4113 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4114 (uncaughtException): Set had_uncaught_exception.
4115 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4116 exit with error status if set.
4117 (_Jv_RunMain): Ditto.
4119 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4121 * configure: Rebuilt with new ../libtool.m4.
4123 2000-09-11 Tom Tromey <tromey@cygnus.com>
4125 * java/lang/reflect/Field.java (toString): Don't rely on
4128 2000-09-08 Tom Tromey <tromey@cygnus.com>
4130 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4131 default decoder use iconv.
4132 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4133 Let default encoder use iconv.
4134 * configure: Rebuilt.
4135 * configure.in: Check for nl_langinfo and <langinfo.h>.
4136 * java/lang/natSystem.cc (file_encoding): New function.
4137 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4139 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4141 * acinclude.m4: Simplify the tests for CC and CXX.
4142 * aclocal.m4, configure: Rebuilt.
4144 * acinclude.m4: Include libtool macros from the source tree.
4145 * aclocal.m4, configure: Rebuilt.
4147 2000-09-08 Warren Levy <warrenl@cygnus.com>
4149 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4150 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4151 * java/io/File.java (writeObject): Added.
4152 (readObject): Added.
4153 (serialVersionUID): Added.
4154 * java/io/ObjectOutputStream.java (writeObject): Initialized
4155 fieldsAlreadyWritten before recursion rather than after.
4156 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4157 * java/io/OptionalDataException.java (serialVersionUID): Added.
4158 (OptionalDataException): Made package private.
4159 * java/io/SyncFailedException.java (SyncFailedException): Removed
4160 default constructor to match spec.
4161 * java/lang/Boolean.java (serialVersionUID): Added.
4162 * java/lang/Byte.java (serialVersionUID): Added.
4163 * java/lang/Character.java (serialVersionUID): Added.
4164 * java/lang/Double.java (serialVersionUID): Added.
4165 * java/lang/Float.java (serialVersionUID): Added.
4166 * java/lang/Integer.java (serialVersionUID): Added.
4167 * java/lang/Long.java (serialVersionUID): Added.
4168 * java/lang/Number.java (serialVersionUID): Added.
4169 * java/lang/Short.java (serialVersionUID): Added.
4170 * java/lang/String.java (serialVersionUID): Added.
4171 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4173 * java/lang/reflect/InvocationTargetException.java
4174 (serialVersionUID): Added.
4175 * java/net/URL.java (handler): Made transient.
4176 (hashCode): Added field for serialization, per spec. and use
4177 cached value if available.
4178 (serialVersionUID): Added.
4179 (URL): Initialize hashCode.
4180 (set): Adjust hashCode.
4181 (readObject): New Method to initialize the protocol handler when
4183 (writeObject): New method.
4184 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4185 * java/text/Collator.java: Removed 'implements Serializable'.
4186 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4187 * java/util/Properties.java (serialVersionUID): Added.
4188 * java/util/Random.java (serialVersionUID): Added.
4189 (seed): Made private.
4190 (nextNextGaussian): Made private.
4191 (haveNextNextGaussian): Made private.
4192 * java/util/Stack.java (serialVersionUID): Added.
4193 * java/util/TimeZone.java (serialVersionUID): Added.
4194 * java/util/Vector.java (serialVersionUID): Added.
4196 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4198 * Makefile.am (Thread.h): Don't be friends with native threads
4200 * Makefile.in: Rebuilt.
4201 * java/lang/Thread.java (interrupt_flag): Make package-private.
4203 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4205 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4206 to avoid long long division.
4208 2000-09-06 Tom Tromey <tromey@cygnus.com>
4210 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4212 * java/lang/reflect/Method.java (toString): Use `getName' for
4215 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4216 `args' if method takes no parameters.
4218 Fix for PR java.lang/339:
4219 * java/lang/natPosixProcess.cc (fail): New function.
4220 (cleanup): New function.
4221 (startProcess): Use them. Create pipe so child can communicate
4222 exec failure back to parent.
4224 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4226 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4228 (send): Undo last patch. Remove the label only.
4230 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4232 * java/net/natInetAdress.cc: Ditto.
4234 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4236 2000-09-05 Tom Tromey <tromey@cygnus.com>
4238 * doc/cni.sgml: Updated from master copy.
4240 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4242 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4244 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4246 * java/lang/fdlibm.h: #undef __P if previously defined.
4247 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4248 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4252 2000-09-04 Tom Tromey <tromey@cygnus.com>
4254 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4257 2000-09-04 Anthony Green <green@redhat.com>
4259 Fix for PR java.io/203:
4260 * java/io/File.java (createTempFile): Obey directory argument.
4261 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4262 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4263 variable to set java.io.tmpdir on non-WIN32 systems.
4265 2000-09-04 Anthony Green <green@redhat.com>
4267 * java/io/File.java (deleteOnExit): New method.
4268 * gnu/gcj/runtime/FileDeleter.java: New class.
4269 * java/lang/natRuntime.cc (exit): Call
4270 FileDeleter.deleteOnExitNow()
4271 * Makefile.am: Add FileDeleter.java.
4272 * Makefile.in: Rebuilt.
4274 2000-09-02 Tom Tromey <tromey@cygnus.com>
4276 * Makefile.in: Rebuilt.
4277 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4278 environment variable.
4280 2000-09-01 Andrew Haley <aph@redhat.com>
4282 * java/io/StreamTokenizer.java: Don't throw a
4283 NumberFormatException if a field is numeric as far as the
4284 StreamTokenizer is concerned but not as far as Double.valueOf() is
4285 concerned: return a zero instead.
4287 2000-08-30 Tom Tromey <tromey@cygnus.com>
4289 * Makefile.in: Rebuilt.
4290 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4292 2000-08-28 Tom Tromey <tromey@cygnus.com>
4294 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4295 gnu/gcj/awt/ComponentDataBlitOp.java,
4296 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4297 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4298 java/awt/color/ICC_ColorSpace.java,
4299 java/awt/color/ICC_Profile.java,
4300 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4301 java/awt/image/ComponentColorModel.java,
4302 java/awt/image/ComponentSampleModel.java,
4303 java/awt/image/DataBuffer.java,
4304 java/awt/image/DataBufferByte.java,
4305 java/awt/image/DataBufferInt.java,
4306 java/awt/image/DataBufferUShort.java,
4307 java/awt/image/DirectColorModel.java,
4308 java/awt/image/IndexColorModel.java,
4309 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4310 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4311 java/awt/image/SinglePixelPackedSampleModel.java,
4312 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4313 Removed Latin-1 copyright symbols.
4314 * java/util/zip/ZipFile.java: Indentation fixes.
4316 2000-08-27 Mark Wielaard <mark@klomp.org>
4318 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4319 constructor, close can delete the file, finalize calls close.
4320 * java/util/jar/JarFile.java: Constructor that takes mode now
4323 2000-08-27 Anthony Green <green@redhat.com>
4325 * java/util/ArrayList.java, java/util/Timer.java,
4326 java/util/LinkedList.java, java/util/TimerTask.java,
4327 java/util/HashMap.java, java/util/AbstractMap.java,
4328 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4329 java/util/SortedSet.java: Imported from GNU Classpath.
4330 * Makefile.in: Rebuilt.
4331 * Makefile.am: Added new files.
4333 2000-08-26 Anthony Green <green@redhat.com>
4335 * Makefile.in: Rebuilt.
4336 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4339 * prims.cc: Include ClassLoader.h.
4340 (_Jv_RunMain): When executing jar files, classpath must be the jar
4341 file only. Lose our reference to the system ClassLoader in order
4342 to get a new one with the correct classpath.
4343 * java/lang/natSystem.cc (init_properties): When executing a jar
4344 file, only use the jar file for java.class.path.
4346 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4347 for bytecode archives.
4349 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4350 exists, but not Main-Class.
4352 2000-08-23 Mark Wielaard <mark@klomp.org>
4354 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4355 return -1 when fill() has no more data for the Inflater.
4357 2000-08-23 Mark Wielaard <mark@klomp.org>
4359 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4360 write(String) already does.
4362 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4364 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4365 to `alive_flag', call `init'.
4366 (init): New native method.
4367 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4370 2000-08-21 Mark Wielaard <mark@klomp.org>
4372 * Makefile.in: Rebuilt.
4373 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4375 (java/lang/reflect/Field.h): Likewise.
4376 (java/lang/reflect/Method.h): Likewise.
4377 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4380 2000-08-21 Tom Tromey <tromey@cygnus.com>
4382 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4385 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4387 * java/lang/natSystem.cc (init_properties): Change sourceware
4388 reference to sources.redhat.com.
4390 * include/java-props.h: Add _Jv_Jar_Class_Path.
4391 * prims.cc: Ditto. Set it from `gij -jar file' option.
4393 * java/lang/natSystem.cc (init_properties): Set java.class.path
4395 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4397 * java/util/PropertyPermission.java: Import from GNU Classpath.
4398 * Makefile.in: Rebuilt.
4399 * Makefile.am: Add java/util/PropertyPermission.java.
4400 * java/lang/System.java: Add setProperty method.
4402 * gij.cc (main): Add -jar option to execute jar files.
4403 (help): Describe -jar option.
4404 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4405 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4406 * gnu/gcj/runtime/FirstThread.java (main): New method.
4408 * java/util/jar/Attributes.java: Correct comment spelling.
4410 2000-08-20 Mark Wielaard <mark@klomp.org>
4412 * java/util/zip/Adler32.java: Make private variables really private
4413 * java/util/zip/CRC32.java: Make private variables really private
4414 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4416 * java/util/zip/InflaterInputStream.java: skip() could skip to
4418 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4419 * java/util/zip/ZipFile.java: size() new 1.2 method
4420 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4421 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4424 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4426 * java/util/jar/JarFile.java: Don't call
4427 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4430 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4432 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4433 Read the entire contents of the class file, not just what is
4436 * java/net/JarURLConnection.java: getEntry doesn't take any
4437 arguments. Return null if element is null.
4439 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4440 size from the archive, not the inflated size.
4442 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4443 java.util.zip.ZipFile.getEntry.
4445 * gij.cc (help): Change sourceware reference to
4448 2000-08-19 Tom Tromey <tromey@cygnus.com>
4450 * java/util/zip/ZipInputStream.java (createZipEntry):
4453 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4455 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4456 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4457 java/util/jar/JarInputStream.java,
4458 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4459 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4460 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4461 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4462 java/security/cert/Certificate.java,
4463 java/security/cert/CertificateEncodingException.java,
4464 java/security/cert/CertificateException.java,
4465 java/security/cert/CertificateExpiredException.java,
4466 java/security/cert/CertificateFactory.java,
4467 java/security/cert/CertificateFactorySpi.java,
4468 java/security/cert/CertificateNotYetValidException.java,
4469 java/security/cert/CertificateParsingException.java,
4470 java/security/cert/X509CRL.java,
4471 java/security/cert/X509CRLEntry.java,
4472 java/security/cert/X509Certificate.java,
4473 java/security/cert/X509Extension.java: Imported from Classpath.
4474 * java/util/Hashtable.java: Imported from Classpath.
4476 * java/util/zip/ZipInputStream.java: Create stub for
4479 * gcj/javaprims.h: Updated class list.
4481 * Makefile.in, gcj/Makefile.in: Rebuilt.
4482 * Makefile.am (ordinary_java_source_files): Add these new classes.
4484 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4486 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4487 * gnu/gcj/awt/GLightweightPeer.java: New file.
4488 * java/awt/BorderLayout.java: Implemented all methods.
4489 * java/awt/Button.java (actionListener, actionCommand): Renamed
4490 and modifier change.
4491 (addNotify): Call super.
4492 (dispatchEventImpl): New method.
4493 (getListeners): New method.
4494 (label): Made package-private, not private.
4495 * java/awt/Canvas.java: Implemented class body.
4496 * java/awt/Color.java (brighter): New method.
4497 (darker): New method.
4498 (hashCode): New method.
4499 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4500 (getGraphicsConfiguration): Delegate to
4501 getGraphicsConfigurationImpl().
4502 (getGraphicsConfigurationImpl): New method.
4503 (getToolkit): Only return value from peer if not null.
4504 (isDisplayable): Check with parent.
4505 (isShowing): No parent implies not showing.
4506 (getForeground): Check parent property if local is null.
4507 (getBackground): Likewise.
4508 (getFont): Likewise.
4509 (setForeground): Inform peer.
4510 (setBackground): Likewise
4511 (setLocale): Invalidate component.
4512 (getColorModel): Implemented.
4513 (setLocation): Invalidate, or ignore if no change.
4514 (setSize): Invalidate, or ignore if no change.
4515 (setBounds): Invalidate, or ignore if no change.
4516 (isOpaque): By default, heavyweight implies opaque.
4517 (isLightweight): Implemented.
4518 (getMaximumSize): Implemented.
4519 (doLayout): Implemented, NOP.
4520 (validate): Implemented, NOP.
4521 (invalidate): Only propagate to parent if parent was valid.
4522 (getGraphics): Implemented.
4523 (getFontMetrics): Implemented.
4524 (update): Implemented.
4525 (paintAll): Implemented.
4526 (repaint): Implemented all repaint methods.
4527 (print): Implemented.
4528 (printAll): Implemented.
4529 (createImage): Implemented.
4530 (dispatchEvent): Give the peer a chance to handle the event.
4531 (dispatchEventImpl): Dispatch paint events.
4532 (enableEvents): Lightweights enable events on parent component.
4533 (coalesceEvents): Coalesce paint events, and select event type
4535 (coalescePaintEvents): New method.
4536 (processEvent): Fix unfortunate ordering of statements, and call
4537 correct method for MOUSE_CLICKED.
4538 (processPaintEvent): New method.
4539 (addNotify): Allow container to notify children before event
4540 mask is set in peer.
4541 (addNotifyContainerChildren): New method.
4542 (removeNotify): Visibility should not change on removeNotify.
4543 (paramString): Implemented.
4544 (list): Implemented two of the list methods.
4545 * Container (myInsets): Removed, insets are managed by peer.
4546 (getInsets): Query peer.
4547 (addImpl): Fix reparenting, enable events for lightweights,
4548 initialize component array.
4549 (validate): Call doLayout in validateTree() instead.
4550 (validateTree): Do nothing if already valid. Call beginValidate(),
4551 endValidate() on peer. Call validateTree() instead of validate()
4552 for children that are containers. Mark valid after validation of
4554 (setFont): Partial implementation.
4555 (paint): Implemented.
4556 (visitChildren): New method.
4557 (visitChild): New method.
4558 (update): Implemented.
4559 (print): Implemented.
4560 (paintComponents): Implemented.
4561 (printComponents): Consider translation and clipping.
4562 (getComponentAt): Ignore invisible children. Return this if no
4564 (addNotify): Call super.
4565 (addNotifyContainerChildren): New method.
4566 (paramString): Implemented.
4567 (list): Implemented.
4568 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4570 (invokeLater): Likewise.
4571 (isDispatchThread): Likewise.
4572 * java/awt/FontMetrics (getLeading): Formula change.
4573 (getDescent): Consider leading also.
4574 (getMaxAscent): Default to getAscent().
4575 (getMaxDescent): Default to getDescent.
4576 (getMaxAdvance): Return value signifying unknown.
4577 (charWidth): Both methods implemented.
4578 (charsWidth): Implemented.
4579 (bytesWidth): Implemented.
4580 (getWidths): Implemented.
4581 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4583 (Frame): Rearragend constuctor chaining to disallow null being
4584 passed as a graphics configuration.
4585 (getTitle): Return empty string if null.
4587 (getIconImage): New method.
4588 (setIconImage): New method.
4589 (finalize): New method.
4590 (setMenuBar): Notify peer.
4591 (isResizable): New method.
4592 (setResizable): New method.
4593 (getState): New method.
4595 (remove): Implemented.
4596 (removeNotify): New method.
4597 (getFrames): New method.
4598 * java/awt/Graphics.java: Implemented body of class.
4599 * java/awt/Graphics2D.java: New file.
4600 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4601 * java/awt/Image.java: Implemented body of class.
4602 * java/awt/Panel.java (Panel): Call correct super constructor.
4603 (addNotify): Implemented.
4604 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4605 * java/awt/RenderingHints.java: New file.
4606 * java/awt/Toolkit.java (createComponent): Implemented.
4607 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4608 * java/awt/Window.java (Window): Two new constructors. Reordered
4609 constructor chaining.
4610 (getGraphicsConfigurationImpl): New method.
4611 (finalize): Call super.
4612 (addNotify): Call super.
4613 (pack): Do layout stuff.
4614 (show): Ensure that peer exists and that component is valid.
4615 (dispose): Dispose owned children.
4616 (getOwner): Simplify code, casting null pointers is valid.
4617 (getGraphicsConfiguration): Ask peer if local value is null.
4618 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4620 * java/awt/image/BufferedImage.java: New file.
4621 * java/awt/image/RasterOp.java: New file.
4622 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4623 More powerfull replacement for getColorModel().
4624 (getColorModel) Removed.
4625 (setEventMask) New method.
4626 * Makefile.am: Added new files.
4627 * Makefile.in: Rebuilt.
4629 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4631 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4632 (finit_leg_name): New global.
4633 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4634 `$finit$'. This is a backward compatibility hack.
4635 (java::lang::Class::_getMethods): Likewise.
4637 2000-08-15 Andrew Haley <aph@cygnus.com>
4639 * include/jvm.h (_Jv_HashCode): New hash code.
4641 2000-08-15 Tom Tromey <tromey@cygnus.com>
4643 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4645 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4647 * THANKS: More thanks.
4649 2000-08-10 Tom Tromey <tromey@cygnus.com>
4651 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4653 (connect): Likewise.
4655 (getOption): Likewise.
4656 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4657 case when errno not set.
4660 (receive): Likewise.
4661 (mcastGrp): Likewise.
4662 (setOption): Likewise.
4663 (getOption): Likewise.
4665 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4666 John Stracke <francis@ecal.com>
4668 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4669 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4671 (disconnect): Don't unset connected flag.
4672 (getHeaderField (String)): Call connect() if not connected.
4673 (getHeaderField (int)): Ditto.
4674 (getHeaderFieldKey): Ditto.
4675 (getHttpHeaders): Don't call connect().
4676 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4677 gotResponseVals): New fields.
4678 (getResponseCode): Call getResponseVals() conditionally.
4679 (getResponseMessage): Ditto.
4680 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4682 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4684 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4685 * Makefile.in: Rebuilt.
4686 * java/awt/Color.java (getTransparency): New method.
4687 * java/awt/Component.java: Various updates.
4688 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4689 after dealing with children.
4690 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4691 * java/awt/Window.java: Various new methods and updates.
4692 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4694 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4695 * java/awt/event/WindowEvent.java (paramString): Ditto.
4696 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4698 * java/awt/geom/Point2D.java (clone): Ditto.
4699 * java/awt/geom/RectangularShape.java (clone): Ditto.
4700 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4701 isAlphaPremultiplied): Make package-private, not private.
4703 2000-08-08 Tom Tromey <tromey@cygnus.com>
4705 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4706 surrogate characters.
4707 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4709 (write): Correct handling of surrogate characters.
4711 2000-08-07 Tom Tromey <tromey@cygnus.com>
4713 * java/lang/reflect/Method.java (hashCode): Use getName().
4714 (toString): Likewise.
4715 * java/lang/reflect/natMethod.cc (getType): Initialize
4718 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4720 * java/lang/reflect/Field.java (toString): Correct formatting.
4723 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4725 (receive): Streamlined.
4727 2000-08-05 Tom Tromey <tromey@cygnus.com>
4729 * java/io/PrintWriter.java: Merged comments from Classpath.
4730 (printlnUnsynchronized): Removed.
4731 (println()): Print the separator.
4732 (println): Call println(), not printlnUnsynchronized.
4733 (out): Now protected, to match spec.
4735 2000-08-04 Tom Tromey <tromey@cygnus.com>
4737 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4738 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4741 2000-08-03 Warren Levy <warrenl@cygnus.com>
4743 * java/io/ObjectInputStream.java (readFields): Turn off
4744 readDataFromBlock while reading via GetField.
4745 (GetField$1.get(String, Object)): Pass Class of default value to
4747 (getField): Allow for null default values.
4749 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4750 (PutField$1.put): Fixed calls of checkType in most of the put
4751 methods to pass the correct parameter.
4752 (PutField$1.put(String, Object)): Allow for null value arg.
4753 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4756 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4757 typo in spec'ed field name.
4758 (getSerialPersistentFields): Changed spelling of method to match
4759 the correct spelling of the spec'ed field name.
4761 2000-08-03 Tom Tromey <tromey@cygnus.com>
4763 * Makefile.in: Rebuilt.
4764 * Makefile.am (awt_java_source_files): Added new files.
4766 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4768 * Makefile.am: Add new AWT stubs.
4769 * java/awt/Canvas.java: New placeholder class.
4770 * java/awt/Checkbox.java: Ditto.
4771 * java/awt/CheckboxMenuItem.java: Ditto.
4772 * java/awt/Choice.java: Ditto.
4773 * java/awt/Dialog.java: Ditto.
4774 * java/awt/FileDialog.java: Ditto.
4775 * java/awt/List.java: Ditto.
4776 * java/awt/ScrollPane.java: Ditto.
4777 * java/awt/TextField.java: Ditto.
4778 * java/awt/datatransfer/Clipboard.java: Ditto.
4779 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4780 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4781 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4782 Some commented out. Partially implemented.
4783 * java/awt/natToolkit.cc: Removed file.
4785 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4787 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4788 Fixes "make -j" builds.
4789 * Makefile.in: Rebuild.
4791 2000-08-02 Tom Tromey <tromey@cygnus.com>
4793 * Makefile.in: Rebuilt.
4794 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4795 * java/net/natPlainSocketImpl.cc: Include posix.h.
4796 (accept): Use _Jv_select.
4797 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4798 (receive): Use _Jv_select.
4799 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4800 (available): Use _Jv_select.
4801 * java/lang/natSystem.cc: Include posix.h.
4802 (currentTimeMillis): Use _Jv_gettimeofday.
4803 * include/posix.h: New file.
4804 * posix.cc: New file.
4806 * scripts/encodings.pl: New file.
4807 * Makefile.in: Rebuilt.
4808 * Makefile.am (convert_source_files): Added IOConverter.java.
4809 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4811 (getDefaultDecodingClass): Canonicalize default encoding name.
4812 (getEncoder): Likewise.
4813 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4815 (getDefaultDecodingClass): Canonicalize default encoding name.
4816 (getDecoder): Likewise.
4817 * gnu/gcj/convert/IOConverter.java: New file.
4819 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4821 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4822 to match C declaration in ffi.h.
4823 * Makefile.am: Add java/awt/Button.java.
4824 * Makefile.in: Rebuilt.
4826 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4828 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4829 cast of the second argument to `ffi_raw_call' changed to match
4832 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4834 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4835 argument to `ffi_raw_call' changed to match prototype.
4837 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4839 * java/awt/Component.java (toString): Implemented.
4840 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4841 dispatchEvent() to dispatch the event.
4842 (removeImpl): Ditto.
4844 2000-07-30 Anthony Green <green@redhat.com>
4846 * java/awt/Component.java: Add treeLock object.
4847 (getTreeLock): Implement.
4848 (isShowing): Implement.
4850 2000-07-30 Tom Tromey <tromey@cygnus.com>
4852 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4854 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4856 * java/awt/Window.java (addNotify): Wrote.
4857 (addWindowListener): Wrote.
4859 (getWarningString): Wrote.
4860 (processEvent): Wrote.
4861 (processWindowEvent): Wrote.
4862 (removeWindowListener): Wrote.
4863 (show): Call validate(), setVisible().
4867 * java/awt/Toolkit.java (createWindow): Declare.
4869 * java/awt/Frame.java (addNotify): Use getToolkit to find
4872 * java/awt/Component.java (invalidate): Wrote.
4874 (getToolkit): Wrote.
4876 * java/awt/Container.java (addContainerListener): Removed
4878 (removeContainerListener): Likewise.
4880 (add(Component)): Use it.
4881 (add(String,Component)): Likewise.
4882 (add(Component,int)): Likewise.
4883 (add(Component,Object)): Likewise.
4884 (add(Component,Object,int)): Likewise.
4886 (getAlignmentX): Wrote.
4887 (getAlignmentY): Wrote.
4888 (getComponentAt): Wrote.
4889 (getMaximumSize): Wrote.
4890 (invalidate): Wrote.
4891 (list(PrintStream,int)): Wrote.
4892 (list(PrintWriter,int)): Wrote.
4893 (getMinimumSize): Wrote.
4894 (getPreferredSize): Wrote.
4895 (printComponents): Wrote.
4896 (processContainerEvent): Look at containerListener, not
4898 (remove): Added event processing and peer destruction.
4899 (removeAll): Use remove.
4900 (removeNotify): Wrote.
4902 (validateTree): Wrote.
4904 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4905 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4906 * java/awt/Container.java (addNotify): Don't create Container
4908 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4910 2000-07-30 Tom Tromey <tromey@cygnus.com>
4912 * java/awt/Container.java (remove(int)): Wrote.
4913 (remove(Component)): Wrote.
4914 (add(Component)): Wrote.
4915 (add(Component,int)): Wrote.
4917 (addNotify): Set our own peer.
4918 * java/awt/Scrollbar.java (listeners): Changed type.
4919 (Scrollbar): Don't initialize listeners.
4921 (setValue): Call setValues.
4922 (setMinimum): Likewise.
4923 (setMaxPriority): Likewise.
4924 (setVisibleAmount): Likewise.
4926 (setUnitIncrement): Forward to peer.
4927 (setLineIncrement): Call setUnitIncrement.
4928 (setPageIncrement): Call setBlockIncrement.
4929 (setBlockIncrement): Forward to peer.
4930 (addAdjustmentListener): Rewrote.
4931 (removeAdjustmentListener): Rewrote.
4932 (processAdjustmentEvent): Rewrote.
4933 (paramString): Wrote.
4934 * Makefile.in: Rebuilt.
4935 * Makefile.am (awt_java_source_files): Added Button.java.
4936 * java/awt/Button.java: New file.
4937 * java/awt/Toolkit.java (createLabel): Declare.
4938 (createButton): Likewise.
4939 (createScrollbar): Likewise.
4940 (createContainer): Likewise.
4941 * java/awt/Label.java (addNotify): Wrote.
4942 (setAlignment): Call setAlignment in the peer.
4943 (setText): Call setText in the peer.
4945 2000-07-28 Warren Levy <warrenl@cygnus.com>
4947 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4948 NotSerializableException with just the class name.
4950 2000-07-26 Andrew Haley <aph@cygnus.com>
4952 * interpret.cc (continue1): Insert missing break into switch.
4954 2000-07-28 Warren Levy <warrenl@cygnus.com>
4956 * java/io/ObjectStreamException.java: Made constructors protected.
4958 2000-07-27 Tom Tromey <tromey@cygnus.com>
4960 * java/io/OutputStreamWriter.java (close): Only flush if not
4963 2000-07-27 Warren Levy <warrenl@cygnus.com>
4965 * mauve-libgcj: Activated serialization tests.
4966 * gcj/field.h (getModifiers): Mask off unknown flags.
4967 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4968 spurious bits don't cause discrepancies.
4969 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4970 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4971 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4972 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4973 * java/lang/Throwable.java (serialVersionUID): New field.
4974 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4975 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4977 * java/lang/reflect/natMethod.cc: Ditto.
4978 * java/security/Key.java (serialVersionUID): Removed field for now.
4979 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4980 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4982 2000-07-22 Tom Tromey <tromey@cygnus.com>
4984 * java/awt/geom/RectangularShape.java (getPathIterator):
4987 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4989 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4990 stub libjava/java/awt/ColorModel.java which was located in the
4992 * libjava/java/awt/image/ComponentColorModel.java: New file.
4993 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4994 * libjava/java/awt/image/DataBuffer.java: New file.
4995 * libjava/java/awt/image/DataBufferByte.java: New file.
4996 * libjava/java/awt/image/DataBufferInt.java: New file.
4997 * libjava/java/awt/image/DataBufferUShort.java: New file.
4998 * libjava/java/awt/image/DirectColorModel.java: New file.
4999 * libjava/java/awt/image/PackedColorModel.java: New file.
5000 * libjava/java/awt/image/Raster.java: New file.
5001 * libjava/java/awt/image/SampleModel.java: New file.
5002 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5004 * libjava/java/awt/image/IndexColorModel.java: New file.
5005 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5006 java.awt.ColorModel stub.
5008 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5009 * gnu/gcj/util/Buffers.java: New file, utility class.
5011 * libjava/Makefile.am: Updated to include new files.
5012 * libjava/Makefile.in: Rebuilt.
5014 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5016 * java/io/StreamTokenizer.java: Merged with classpath.
5018 2000-07-20 Tom Tromey <tromey@cygnus.com>
5020 * Makefile.in: Rebuilt.
5021 * Makefile.am (awt_java_source_files): Updated for new files.
5022 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5023 * java/awt/Label.java: New file.
5024 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5025 (createIntersection, createUnion, getBounds2D): New methods.
5026 * java/awt/Scrollbar.java: New file.
5027 * java/awt/Shape.java: Updated to 1.2.
5028 * java/awt/geom/AffineTransform.java: New file.
5029 * java/awt/geom/Ellipse2D.java: New file.
5030 * java/awt/geom/NoninvertibleTransformException.java: New file.
5031 * java/awt/geom/PathIterator.java: New file.
5032 * java/awt/geom/Rectangle2D.java: New file.
5033 * java/awt/geom/RectangularShape.java: New file.
5034 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5035 * java/awt/geom/IllegalPathStateException.java: New file.
5037 * scripts/showval.java: New file.
5039 * scripts/classes.pl (scan): Print inner classes properly.
5040 * gcj/javaprims.h: Updated class list.
5042 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5043 initialize String fields for interpreted classes. Fixes bug
5044 reported by Hans Boehm.
5046 * java/io/File.java (getParentFile): New method, from Classpath
5047 via Oskar Liljeblad.
5049 * java/util/Vector.java (remove(Object)): Implemented.
5051 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5053 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5054 zero return from backtrace().
5056 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5058 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5060 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5061 before calling notifyAll().
5063 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5065 Add missing files from last check-in:
5066 * java/awt/image/ImageConsumer.java: New file.
5067 * java/awt/image/ImageProducer.java: New file.
5068 * java/awt/image/ImageObserver.java: New file.
5070 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5072 Merged implementation of java.applet from classpath:
5073 * java/applet/Applet.java: New file.
5074 * java/applet/AppletContext.java: New file.
5075 * java/applet/AppletStub.java: New file.
5076 * java/applet/AudioClip.java: New file.
5078 * Makefile.am: Added new java.applet classes.
5079 * Makefile.in: Rebuilt.
5081 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5084 * java/util/ResourceBundle.java (getLocale): stub.
5085 * Makefile.am: Added new AWT classes.
5086 * Makefile.in: Rebuilt.
5087 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5088 constructors. Fix toString() and paramString().
5089 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5090 * java/awt/CheckboxGroup.java: New class.
5091 * java/awt/ColorModel.java: New class.
5092 * java/awt/Component.java: Added stubs for most methods. Implemented
5094 * java/awt/Container.java: ditto.
5095 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5096 * java/awt/Cursor.java: ditto.
5097 * java/awt/Event.java: Fix paramString().
5098 * java/awt/EventQueue.java: New class. Implemented.
5099 * java/awt/Font.java: Added additional stub methods. Implemented
5101 * java/awt/FontMetrics.java: New class. Stubbed.
5102 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5104 * java/awt/Insets.java: New class. Implemented.
5105 * java/awt/Menu.java: Add new methods. Partially implemented.
5106 * java/awt/MenuItem.java: Add new methods and fields. Partially
5108 * java/awt/MenuShortcut.java: New class. Implemented.
5109 * java/awt/Panel.java: New class. Placeholder.
5110 * java/awt/PopupMenu.java: New class. Stubbed.
5111 * java/awt/Rectangle.java: New class. Implemented.
5112 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5113 * java/awt/event/ActionEvent.java: Implement paramString().
5114 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5115 * java/awt/event/ComponentEvent.java: Implement paramString().
5116 * java/awt/event/ContainerEvent.java: Implement paramString().
5117 * java/awt/event/FocusEvent.java: Implement paramString().
5118 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5119 * java/awt/event/HierarchyBoundsListener.java: New class.
5120 * java/awt/event/HierarchyEvent.java: New class.
5121 * java/awt/event/HierarchyListener.java: New class.
5122 * java/awt/event/InputMethodEvent.java: Implement paramString().
5123 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5124 exception if !catchExceptions.
5125 * java/awt/event/ItemEvent.java: Implement paramString().
5126 * java/awt/event/KeyEvent.java: Implement paramString().
5127 * java/awt/event/MouseEvent.java: Implement paramString().
5128 * java/awt/event/PaintEvent.java: Implement paramString().
5129 * java/awt/event/TextEvent.java: Implement paramString().
5130 * java/awt/event/WindowEvent.java: Implement paramString().
5132 AWT Peer interfaces:
5133 * java/awt/peer/ButtonPeer.java: New file.
5134 * java/awt/peer/ListPeer.java: New file.
5135 * java/awt/peer/CanvasPeer.java: New file.
5136 * java/awt/peer/MenuBarPeer.java: New file.
5137 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5138 * java/awt/peer/MenuComponentPeer.java: New file.
5139 * java/awt/peer/CheckboxPeer.java: New file.
5140 * java/awt/peer/MenuItemPeer.java: New file.
5141 * java/awt/peer/ChoicePeer.java: New file.
5142 * java/awt/peer/MenuPeer.java: New file.
5143 * java/awt/peer/ComponentPeer.java: Implemented.
5144 * java/awt/peer/PanelPeer.java: New file.
5145 * java/awt/peer/ContainerPeer.java: Implemented.
5146 * java/awt/peer/PopupMenuPeer.java: New file.
5147 * java/awt/peer/DialogPeer.java: New file.
5148 * java/awt/peer/ScrollPanePeer.java: New file.
5149 * java/awt/peer/FileDialogPeer.java: New file.
5150 * java/awt/peer/ScrollbarPeer.java: New file.
5151 * java/awt/peer/FontPeer.java: New file.
5152 * java/awt/peer/TextAreaPeer.java: New file.
5153 * java/awt/peer/FramePeer.java: Implemented.
5154 * java/awt/peer/TextComponentPeer.java: New file.
5155 * java/awt/peer/LabelPeer.java: New file.
5156 * java/awt/peer/TextFieldPeer.java: New file.
5157 * java/awt/peer/LightweightPeer.java: New file.
5158 * java/awt/peer/WindowPeer.java: Implemented.
5160 2000-07-06 Tom Tromey <tromey@cygnus.com>
5162 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5163 Initialize static final String fields.
5165 2000-07-03 Tom Tromey <tromey@cygnus.com>
5167 * java/io/PrintWriter.java (print): Call write(String), not
5168 print(String). See PR libgcj/277.
5169 (print(String)): Use write, not out.write.
5171 2000-06-30 Tom Tromey <tromey@cygnus.com>
5173 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5175 2000-06-27 Andrew Haley <aph@cygnus.com>
5177 * java/io/File.java (createTempFile): Close the FileDescriptor
5178 used to create a temp file. Fixes some of PR 203.
5179 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5180 collection if we run out of file handles.
5182 2000-06-28 Warren Levy <warrenl@cygnus.com>
5184 * gnu/java/security/provider/Gnu.java: New file.
5185 * gnu/java/security/provider/SHA.java: New file.
5186 * gnu/java/security/provider/SHA1PRNG.java: New file.
5187 * Makefile.am: Added the above files.
5188 * Makefile.in: Rebuilt.
5190 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5192 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5194 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5195 (destroyed_flag): Removed.
5196 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5197 (activeCount): Added spec note.
5199 2000-06-27 Warren Levy <warrenl@cygnus.com>
5201 * java/security/Principal.java: New file.
5202 * Makefile.am: Added Principal.java.
5203 * Makefile.in: Rebuilt.
5205 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5207 * java/awt/event/MouseEvent.java: Fixed coordinate space
5210 2000-06-27 Tom Tromey <tromey@cygnus.com>
5212 * java/io/PushbackInputStream.java (read): If there are characters
5213 in the buffer, don't also call super.read().
5214 * java/io/PushbackReader.java (read): If there are characters in
5215 the buffer, don't also call super.read().
5217 * java/lang/Double.java (valueOf): Call parseDouble().
5219 2000-06-26 Warren Levy <warrenl@cygnus.com>
5221 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5222 (newVal): Renamed to newValue.
5223 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5224 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5225 (revokeNow): Renamed to invalidateRefs.
5226 * java/io/OptionalDataException.java: Updated FIXME.
5227 (eof): New placeholder field.
5229 * java/io/WriteAbortedException.java (message): Made transient.
5230 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5231 * java/lang/Throwable.java (stackTrace): Made transient.
5232 * java/net/InetAddress.java: Made Serializable.
5233 * java/security/KeyPair.java: Made Serializable.
5234 * java/security/Provider.java: Replaced with Classpath version that
5235 implements serialization and proper methods.
5236 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5237 (limits): Renamed to choiceLimits.
5239 2000-06-24 Tom Tromey <tromey@cygnus.com>
5241 * java/lang/natDouble.cc (parseDouble): Renamed from
5243 * java/lang/Double.java (parseDouble): Renamed from
5244 doubleValueOf. Now public.
5246 2000-06-23 Andrew Haley <aph@cygnus.com>
5248 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5249 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5251 2000-06-23 Tom Tromey <tromey@cygnus.com>
5253 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5254 * java/lang/natDouble.cc: Always include <alloca.h>.
5255 Fix for PR libgcj/267.
5257 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5259 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5260 comply with classpath VM spec.
5261 (add(Group)): Rename to addGroup().
5262 * java/lang/Thread.java (Thread): Use addThread().
5263 * java/lang/natThread.cc (finish_): Use removeThread().
5265 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5267 * java/lang/ThreadGroup.java: Merged with classpath.
5268 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5269 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5271 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5272 ThreadGroup.root if Thread.currentThread is null. Honour the
5273 ThreadGroup's max priority setting.
5275 2000-06-18 Tom Tromey <tromey@cygnus.com>
5277 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5278 returned class. For PR gcj/260.
5280 2000-06-16 Tom Tromey <tromey@cygnus.com>
5282 Fix for PR libgcj/261:
5283 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5285 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5286 argument. (This is a patch from long ago that somehow went
5289 2000-06-15 Tom Tromey <tromey@cygnus.com>
5291 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5295 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5297 Fix for PR java.lang/258:
5298 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5299 JV_STATE_DONE, to prevent accidental initialization.
5300 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5301 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5302 interface or an abstract class. Remove redundant initializeClass calls.
5303 Remove duplicate if_idt test.
5304 (_Jv_InterfaceAssignableFrom): New function.
5305 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5307 2000-05-31 Tom Tromey <tromey@cygnus.com>
5309 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5310 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5311 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5312 (NUM_OBJECT_METHODS): New define.
5313 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5314 `array_vtable' parameter. Added assertion.
5315 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5318 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5320 * gcj/cni.h: Include <string.h>.
5321 * defineclass.cc: Include <alloca.h>.
5322 * interpret.cc: Ditto.
5323 * gij.cc: Include <stdlib.h>.
5325 2000-05-30 Tom Tromey <tromey@cygnus.com>
5327 * include/name-finder.h: Include <sys/wait.h>.
5328 (_Jv_name_finder::pid): Now of type `pid_t'.
5329 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5330 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5333 2000-05-24 Warren Levy <warrenl@cygnus.com>
5335 * java/io/ObjectOutputStream.java (writeObject): Use component type
5336 when writing arrays.
5339 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5341 Fix for PR libgcj/226:
5342 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5343 since this is an installed header.
5345 Fix for PR libgcj/228:
5346 * java/util/zip/ZipFile (getInputStream): Create inflater with
5349 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5350 with DataFormatException.
5352 2000-05-20 Tom Tromey <tromey@cygnus.com>
5354 * Makefile.in: Rebuilt.
5355 * Makefile.am (hack1): Removed.
5356 (awto_files): Likewise.
5357 (libgcjawt_la_SOURCES): Likewise.
5358 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5359 (libgcjawt_la_DEPENDENCIES): Likewise.
5360 (libgcjawt_la_LIBADD): Likewise.
5361 (libgcjawt_la_LDFLAGS): Likewise.
5362 (libgcjawt_la_LINK): Likewise.
5363 ($(awt_java_source_files:.java=.class)): Likewise.
5364 (libgcj.zip): Don't depend on AWT files.
5365 (MOSTLYCLEANFILES): Don't include AWT files.
5366 ($(awto_files)): Removed.
5367 (nat_headers): Removed AWT files.
5368 (cond_awt_java_source_files): Removed.
5369 (ordinary_java_source_files): Added awt_java_source_files.
5370 * libgcj.spec.in (*lib): Removed -lgcjawt.
5371 * configure: Rebuilt.
5372 * configure.in: Removed --enable-java-awt option.
5374 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5376 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5377 (ZipEntry): Copy the `name' field.
5378 (clone): Implement JDK1.2 method.
5379 (setCompressedSize): ditto.
5382 2000-05-19 Tom Tromey <tromey@cygnus.com>
5384 * java/io/BufferedWriter.java: Merged with Classpath.
5385 * java/io/BufferedOutputStream.java: Merged with Classpath.
5387 2000-05-16 Andrew Haley <aph@cygnus.com>
5389 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5390 build_ia64_frame_state.
5391 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5394 2000-05-15 Warren Levy <warrenl@cygnus.com>
5396 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5397 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5398 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5399 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5400 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5401 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5402 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5403 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5404 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5405 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5406 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5407 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5408 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5409 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5410 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5411 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5412 * gnu/gcj/io/NullOutputStream.java: Removed.
5413 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5414 * gnu/gcj/lang/ArrayHelper.java: Removed.
5415 * gnu/gcj/lang/ClassHelper.java: Removed.
5416 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5418 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5419 * gnu/java/beans/EmptyBeanInfo.java: New file.
5420 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5421 * gnu/java/beans/IntrospectionIncubator.java: New file.
5422 * gnu/java/beans/editors/ColorEditor.java: New file.
5423 * gnu/java/beans/editors/FontEditor.java: New file.
5424 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5425 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5426 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5427 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5428 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5429 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5430 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5431 * gnu/java/beans/editors/StringEditor.java: New file.
5432 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5433 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5434 * gnu/java/io/NullOutputStream.java: New file.
5435 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5436 * gnu/java/lang/ArrayHelper.java: New file.
5437 * gnu/java/lang/ClassHelper.java: New file.
5438 * gnu/java/lang/reflect/TypeSignature.java: New file.
5440 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5441 namespace back to the original Classpath gnu/java namespace.
5442 * Makefile.in: Rebuilt.
5444 * java/beans/Beans.java: Namespace change.
5445 * java/beans/EventSetDescriptor.java: Namespace change.
5446 * java/beans/Introspector.java: Namespace change.
5447 * java/beans/PropertyEditorManager.java: Namespace change.
5448 * java/io/ObjectInputStream.java: Namespace change.
5449 * java/io/ObjectOutputStream.java: Namespace change.
5450 * java/io/ObjectStreamClass.java: Namespace change.
5451 * java/io/ObjectStreamField.java: Namespace change.
5453 2000-04-21 Warren Levy <warrenl@cygnus.com>
5455 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5456 now that compiler patch is available.
5457 Removed unneeded System.loadLibrary.
5458 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5459 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5461 2000-04-19 Andrew Haley <aph@cygnus.com>
5463 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5464 and target classes have been initialized.
5466 2000-04-19 Andrew Haley <aph@cygnus.com>
5468 * java/lang/String.java: implement Serializable, Comparable.
5469 (compareTo (Object)): New method.
5471 2000-04-19 Warren Levy <warrenl@cygnus.com>
5473 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5474 instead of getField to retrieve non-public field.
5475 (getSerialPersistantFields): Ditto.
5477 2000-04-18 Warren Levy <warrenl@cygnus.com>
5479 * mauve-libgcj: Turned off object serialization tests temporarily
5480 due to compiler error.
5482 2000-04-17 Warren Levy <warrenl@cygnus.com>
5484 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5485 to avoid build problem.
5487 * mauve-libgcj: Turned on object serialization tests.
5489 2000-04-17 Tom Tromey <tromey@cygnus.com>
5491 * libgcj.spec.in (*lib): Added -lgcjawt.
5493 2000-04-17 Andrew Haley <aph@cygnus.com>
5495 * Makefile.am: Add new files:
5496 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5498 * Makefile.in: Rebuilt.
5500 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5501 interface that has no implementations.
5502 Check for an attempt to assign an abstract class to an interface.
5504 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5505 if we fail to find MessageDigest.getInstance ("SHA").
5507 * gnu/gcj/io/SimpleSHSStream.java: New file.
5508 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5509 * gnu/gcj/io/shs.cc: New file.
5510 * gnu/gcj/io/shs.h: new file.
5512 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5515 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5516 punctuation from the classname of an array element.
5518 * gcj/javaprims.h: Add SimpleDigestStream.
5520 2000-04-17 Andrew Haley <aph@cygnus.com>
5522 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5523 to getPrivateField for superclasses.
5525 2000-04-14 Andrew Haley <aph@cygnus.com>
5527 * Makefile.am: Add new files:
5528 java/io/ObjectOutputStream$PutField.h,
5529 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5530 java/io/natObjectOutputStream.cc
5531 * Makefile.in: Rebuilt.
5532 * gcj/Makefile.in: Rebuilt.
5533 * include/Makefile.in: Rebuilt.
5534 * java/lang/Class.h (getPrivateField): New method.
5535 (getPrivateMethod): Ditto.
5536 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5537 and java::io::ObjectStreamClass our friends.
5538 * java/lang/natClass.cc (getPrivateField): New method.
5539 (getPrivateMethod): Ditto.
5540 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5541 * gcj/javaprims.h: Add serialization classes.
5542 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5543 (setByteField): Ditto.
5544 (setCharField): Ditto.
5545 (setDoubleField): Ditto.
5546 (setFloatField): Ditto.
5547 (setIntField): Ditto.
5548 (setLongField): Ditto.
5549 (setShortField): Ditto.
5550 (setObjectField): Ditto.
5551 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5553 (getByteField): Ditto.
5554 (getCharField): Ditto.
5555 (getDoubleField): Ditto.
5556 (getFloatField): Ditto.
5557 (getIntField): Ditto.
5558 (getLongField): Ditto.
5559 (getShortField): Ditto.
5560 (getObjectField): Ditto.
5561 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5563 (getSerialPersistantFields): Ditto.
5564 (getDefinedSUID): Ditto.
5565 * java/io/natObjectOutputStream.cc: New file.
5566 * java/io/natObjectInputStream.cc: New file.
5568 2000-04-13 Warren Levy <warrenl@cygnus.com>
5570 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5571 problems. Revert to previous version to reproduce and when fixed.
5573 2000-04-13 Warren Levy <warrenl@cygnus.com>
5575 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5576 * gnu/gcj/io/NullOutputStream.java: New file.
5577 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5578 * java/io/BlockDataException.java: New file.
5579 * java/io/Externalizable.java: New file.
5580 * java/io/InvalidClassException.java: New file.
5581 * java/io/InvalidObjectException.java: New file.
5582 * java/io/NotActiveException.java: New file.
5583 * java/io/NotSerializableException.java: New file.
5584 * java/io/ObjectInput.java: New file.
5585 * java/io/ObjectInputStream.java: New file.
5586 * java/io/ObjectInputValidation.java: New file.
5587 * java/io/ObjectOutput.java: New file.
5588 * java/io/ObjectOutputStream.java: New file.
5589 * java/io/ObjectStreamClass.java: New file.
5590 * java/io/ObjectStreamConstants.java: New file.
5591 * java/io/ObjectStreamField.java: New file.
5592 * java/io/Replaceable.java: New file.
5593 * java/io/Resolvable.java: New file.
5594 * java/io/SerializablePermission.java: New file.
5595 * java/io/WriteAbortedException.java: New file.
5596 * java/security/BasicPermission.java: New file.
5597 * java/security/DigestOutputStream.java: New file.
5598 * java/security/Guard.java: New file.
5599 * java/security/Permission.java: New file.
5600 * java/security/PermissionCollection.java: New file.
5601 * Makefile.am: Added above files.
5602 * Makefile.in: Rebuilt.
5604 * java/beans/Beans.java (instantiate): Activated serialization code.
5605 * java/lang/SecurityManager.java (checkPermission): New method.
5607 2000-04-12 Warren Levy <warrenl@cygnus.com>
5609 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5610 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5611 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5612 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5613 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5614 * gnu/gcj/beans/editors/FontEditor.java: New file.
5615 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5616 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5617 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5618 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5619 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5620 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5621 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5622 * gnu/gcj/beans/editors/StringEditor.java: New file.
5623 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5624 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5625 * gnu/gcj/lang/ArrayHelper.java: New file.
5626 * gnu/gcj/lang/ClassHelper.java: New file.
5627 * java/beans/BeanDescriptor.java: New file.
5628 * java/beans/BeanInfo.java: New file.
5629 * java/beans/Beans.java: New file.
5630 * java/beans/Customizer.java: New file.
5631 * java/beans/DesignMode.java: New file.
5632 * java/beans/EventSetDescriptor.java: New file.
5633 * java/beans/FeatureDescriptor.java: New file.
5634 * java/beans/IndexedPropertyDescriptor.java: New file.
5635 * java/beans/IntrospectionException.java: New file.
5636 * java/beans/Introspector.java: New file.
5637 * java/beans/MethodDescriptor.java: New file.
5638 * java/beans/ParameterDescriptor.java: New file.
5639 * java/beans/PropertyChangeEvent.java: New file.
5640 * java/beans/PropertyChangeListener.java: New file.
5641 * java/beans/PropertyChangeSupport.java: New file.
5642 * java/beans/PropertyDescriptor.java: New file.
5643 * java/beans/PropertyEditor.java: New file.
5644 * java/beans/PropertyEditorManager.java: New file.
5645 * java/beans/PropertyEditorSupport.java: New file.
5646 * java/beans/PropertyVetoException.java: New file.
5647 * java/beans/SimpleBeanInfo.java: New file.
5648 * java/beans/VetoableChangeListener.java: New file.
5649 * java/beans/VetoableChangeSupport.java: New file.
5650 * java/beans/Visibility.java: New file.
5651 * java/beans/beancontext/BeanContext.java: New file.
5652 * java/beans/beancontext/BeanContextChild.java: New file.
5653 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5654 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5655 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5656 * java/beans/beancontext/BeanContextEvent.java: New file.
5657 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5658 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5659 * java/beans/beancontext/BeanContextProxy.java: New file.
5660 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5662 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5663 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5665 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5666 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5668 * java/beans/beancontext/BeanContextServices.java: New file.
5669 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5670 * java/util/AbstractCollection.java: New file.
5671 * java/util/AbstractList.java: New file.
5672 * java/util/Arrays.java: New file.
5673 * Makefile.am: Added above files.
5674 * Makefile.in: Rebuilt.
5676 2000-04-11 Warren Levy <warrenl@cygnus.com>
5678 * java/awt/AWTError.java: New file.
5679 * java/awt/AWTEvent.java: New file.
5680 * java/awt/AWTException.java: New file.
5681 * java/awt/ActiveEvent.java: New file.
5682 * java/awt/Adjustable.java: New file.
5683 * java/awt/BorderLayout.java: New file.
5684 * java/awt/Color.java: New file.
5685 * java/awt/Component.java: New file.
5686 * java/awt/Container.java: New file.
5687 * java/awt/Dimension.java: New file.
5688 * java/awt/Event.java: New file.
5689 * java/awt/Font.java: New file.
5690 * java/awt/Frame.java: New file.
5691 * java/awt/Graphics.java: New file.
5692 * java/awt/IllegalComponentStateException.java: New file.
5693 * java/awt/Image.java: New file.
5694 * java/awt/ItemSelectable.java: New file.
5695 * java/awt/LayoutManager.java: New file.
5696 * java/awt/LayoutManager2.java: New file.
5697 * java/awt/Menu.java: New file.
5698 * java/awt/MenuBar.java: New file.
5699 * java/awt/MenuComponent.java: New file.
5700 * java/awt/MenuContainer.java: New file.
5701 * java/awt/MenuItem.java: New file.
5702 * java/awt/Paint.java: New file.
5703 * java/awt/PaintContext.java: New file.
5704 * java/awt/Point.java: New file.
5705 * java/awt/Rectangle.java: New file.
5706 * java/awt/Shape.java: New file.
5707 * java/awt/TextArea.java: New file.
5708 * java/awt/TextComponent.java: New file.
5709 * java/awt/Toolkit.java: New file.
5710 * java/awt/Transparency.java: New file.
5711 * java/awt/Window.java: New file.
5712 * java/awt/natToolkit.cc: New file.
5713 * java/awt/event/AWTEventListener.java: New file.
5714 * java/awt/event/ActionEvent.java: New file.
5715 * java/awt/event/ActionListener.java: New file.
5716 * java/awt/event/AdjustmentEvent.java: New file.
5717 * java/awt/event/AdjustmentListener.java: New file.
5718 * java/awt/event/ComponentAdapter.java: New file.
5719 * java/awt/event/ComponentEvent.java: New file.
5720 * java/awt/event/ComponentListener.java: New file.
5721 * java/awt/event/ContainerAdapter.java: New file.
5722 * java/awt/event/ContainerEvent.java: New file.
5723 * java/awt/event/ContainerListener.java: New file.
5724 * java/awt/event/FocusAdapter.java: New file.
5725 * java/awt/event/FocusEvent.java: New file.
5726 * java/awt/event/FocusListener.java: New file.
5727 * java/awt/event/InputEvent.java: New file.
5728 * java/awt/event/InputMethodEvent.java: New file.
5729 * java/awt/event/InputMethodListener.java: New file.
5730 * java/awt/event/InvocationEvent.java: New file.
5731 * java/awt/event/ItemEvent.java: New file.
5732 * java/awt/event/ItemListener.java: New file.
5733 * java/awt/event/KeyAdapter.java: New file.
5734 * java/awt/event/KeyEvent.java: New file.
5735 * java/awt/event/KeyListener.java: New file.
5736 * java/awt/event/MouseAdapter.java: New file.
5737 * java/awt/event/MouseEvent.java: New file.
5738 * java/awt/event/MouseListener.java: New file.
5739 * java/awt/event/MouseMotionAdapter.java: New file.
5740 * java/awt/event/MouseMotionListener.java: New file.
5741 * java/awt/event/PaintEvent.java: New file.
5742 * java/awt/event/TextEvent.java: New file.
5743 * java/awt/event/TextListener.java: New file.
5744 * java/awt/event/WindowAdapter.java: New file.
5745 * java/awt/event/WindowEvent.java: New file.
5746 * java/awt/event/WindowListener.java: New file.
5747 * java/awt/geom/Dimension2D.java: New file.
5748 * java/awt/geom/Point2D.java: New file.
5749 * java/awt/peer/ComponentPeer.java: New file.
5750 * java/awt/peer/ContainerPeer.java: New file.
5751 * java/awt/peer/FramePeer.java: New file.
5752 * java/awt/peer/WindowPeer.java: New file.
5753 * java/util/Collection.java: New file.
5754 * java/util/Comparator.java: New file.
5755 * java/util/Iterator.java: New file.
5756 * java/util/List.java: New file.
5757 * java/util/ListIterator.java: New file.
5758 * Makefile.am: Added above files.
5759 * Makefile.in: Rebuilt.
5761 2000-04-10 Warren Levy <warrenl@cygnus.com>
5763 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5764 * java/lang/FirstThread.java: Ditto.
5765 * java/lang/StringBuffer.java: Ditto.
5766 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5768 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5769 Special case handled in java.math.BigInteger.
5770 * java/math/BigInteger.java (divide): Handle the special case when
5771 dividing by 1 and the high bit of the dividend is set.
5772 (setShiftRight): Handle case when count == 0.
5774 2000-04-05 Andrew Haley <aph@cygnus.com>
5776 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5779 2000-04-05 Andrew Haley <aph@cygnus.com>
5781 * sysdep/ia64.c (rse_address_add): Delete.
5782 (IS_NaT_COLLECTION_ADDR): Delete.
5783 (ia64_backtrace_helper): check for null unwind_info.
5785 * sysdep/ia64-frame.h: add calc_caller_bsp.
5787 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5790 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5791 (_Jv_remI): Likewise.
5792 (_Jv_divJ): Likewise.
5793 (_Jv_remJ): Likewise.
5795 * interpret.cc (continue1): Use divide subroutines to guarantee
5796 correct Java standard behaviour.
5797 Floating-point division should not abort; make it so.
5799 2000-03-29 Tom Tromey <tromey@cygnus.com>
5801 * configure: Rebuilt.
5802 * configure.in: Test against `libgcj_sjlj', not
5803 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5804 to be set even when using sjlj.
5806 2000-03-24 Andrew Haley <aph@cygnus.com>
5808 * Makefile.am: Add file addr2name.awk.
5809 * Makefile.in: Rebuilt.
5810 * addr2name.awk: New file.
5811 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5813 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5816 2000-03-22 Andrew Haley <aph@cygnus.com>
5818 * configure.host: Add -funwind-tables for IA64.
5819 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5820 * Makefile.in: Rebuilt.
5821 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5822 * sysdep/ia64.c: New file.
5823 * sysdep/ia64-frame.h: New file.
5824 * configure.in: Add sysdep/ia64.c for ia64.
5825 * configure: Rebuilt.
5827 2000-03-17 Andrew Haley <aph@cygnus.com>
5829 * java/lang/natString.cc: Remove `register' keyword.
5830 interpret.cc: ditto.
5832 2000-03-16 Andrew Haley <aph@cygnus.com>
5834 * configure.host (ia64): Enable interpreter.
5836 2000-03-14 Hans Boehm <boehm@acm.org>
5838 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5840 2000-03-14 Andrew Haley <aph@cygnus.com>
5842 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5845 2000-03-10 Andrew Haley <aph@cygnus.com>
5847 * java/lang/ieeefp.h: Import latest version from fdlibm.
5849 2000-03-14 Andrew Haley <aph@cygnus.com>
5851 * prims.cc (_Jv_ThrowSignal): New function.
5852 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5854 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5855 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5856 * include/ppc-signal.h: New file.
5858 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5860 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5861 * java/lang/natThread.java (initialize_native): Cast `data' to
5863 * gnu/gcj/RawData.java: Clarify documentation.
5865 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5866 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5867 `jarFile', not `jarFileURL'.
5869 2000-05-15 Andrew Haley <aph@cygnus.com>
5871 * include/ppc-signal.h: New file.
5873 2000-05-11 Tom Tromey <tromey@cygnus.com>
5875 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5876 file headers, don't include `size' in the skip call.
5878 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5880 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5881 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5883 (replace): Reimplemented. Fix javadoc.
5884 (reverse): Call ensureCapacity_unsynchronized().
5885 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5887 (replace): Calculate length for arraycopy() correctly.
5889 2000-05-09 Tom Tromey <tromey@cygnus.com>
5891 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5893 (insert(int,char[],int,int): New method.
5894 (delete): New method from Classpath.
5895 (deleteCharAt): Likewise.
5896 (substring): Likewise.
5897 (shared): No longer private.
5898 Added JavaDoc comments from Classpath.
5899 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5902 2000-05-07 Tom Tromey <tromey@cygnus.com>
5904 * Makefile.in: Rebuilt.
5905 * Makefile.am (LIBLINK): New macro.
5906 (libgcj_la_LINK): Use it.
5907 (libgcjawt_la_LINK): Likewise.
5909 2000-05-06 Tom Tromey <tromey@cygnus.com>
5911 * Makefile.in: Rebuilt.
5912 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5914 2000-05-05 Tom Tromey <tromey@cygnus.com>
5916 Fix for PR libgcj/220:
5917 * Makefile.in: Rebuilt.
5918 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5919 (jv_convert_LDFLAGS): Likewise.
5920 (libgcj_la_LDFLAGS): Likewise.
5921 (GCJLINK): New macro.
5922 (jv_convert_LINK): Use it.
5923 (gij_LINK): Likewise.
5924 (libgcj_la_LINK): New macro.
5925 (libgcjawt_la_LINK): Likewise.
5927 2000-05-04 Tom Tromey <tromey@cygnus.com>
5929 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5931 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5935 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5937 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5938 (_Jv_IsAssignableFrom): Ditto.
5939 (_Jv_IsInstanceOf): Ditto.
5940 (_Jv_CheckCast): Ditto.
5941 (_Jv_CheckArrayStore): Ditto.
5942 * java/lang/Class.h (_Jv_InitClass): Ditto.
5943 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5948 (_Jv_MonitorExit): Ditto.
5949 * boehm.cc (_Jv_MarkObj): Ditto.
5950 (_Jv_MarkObj): Ditto.
5951 (_Jv_MarkArray): Ditto.
5952 * prims.cc (_Jv_AllocObject): Ditto.
5953 (_Jv_NewObjectArray): Ditto.
5954 (_Jv_NewPrimArray): Ditto.
5955 (_Jv_Malloc): Ditto.
5956 (_Jv_Realloc): Ditto.
5957 (_Jv_MallocUnchecked): Ditto.
5963 2000-05-04 Tom Tromey <tromey@cygnus.com>
5965 * java/util/Locale.java (Locale): Don't explicitly check for
5967 * java/util/Hashtable.java (containsKey): Don't explicitly check
5970 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5972 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5974 * java/text/StringCharacterIterator.java
5975 (StringCharacterIterator): Don't check for null.
5976 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5978 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5979 check for null pointer.
5980 (leaveGroup): Likewise.
5981 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5983 (setData): Likewise.
5984 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5987 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5989 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5990 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5991 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5992 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5993 -rpath for in-gcc builds.
5994 * Makefile.in: Rebuilt.
5996 2000-04-28 Tom Tromey <tromey@cygnus.com>
5998 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6001 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6003 * libjava/java/lang/String.java (toString): Remove `final' hack.
6005 2000-04-05 Tom Tromey <tromey@cygnus.com>
6007 Runtime support for PR gcj/2:
6008 * prims.cc (_Jv_ThrowNullPointerException): New function.
6009 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6011 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6013 * prims.cc (_Jv_NewObjectArray): Fix typo.
6015 2000-04-26 Tom Tromey <tromey@cygnus.com>
6017 * Makefile.in: Rebuilt.
6018 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6020 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6022 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6025 2000-04-22 Anthony Green <green@cygnus.com>
6027 * include/jvm.h (__builtin_expect): Define as unused for now.
6028 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6032 (_Jv_MonitorExit): Ditto.
6033 * boehm.cc (_Jv_MarkObj): Ditto.
6034 (_Jv_MarkObj): Ditto.
6035 (_Jv_MarkArray): Ditto.
6036 (_Jv_AllocBytes): Ditto.
6037 * prims.cc (_Jv_AllocObject): Ditto.
6038 (_Jv_NewObjectArray): Ditto.
6039 (_Jv_NewPrimArray): Ditto.
6040 (_Jv_Malloc): Ditto.
6041 (_Jv_Realloc): Ditto.
6042 (_Jv_MallocUnchecked): Ditto.
6048 * include/Makefile.in: Rebuilt.
6049 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6051 2000-04-21 Tom Tromey <tromey@cygnus.com>
6053 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6054 Yet another new version from Classpath.
6056 Fix for PR libgcj/15:
6057 * java/util/natGregorianCalendar.cc (_REENTRANT,
6058 _POSIX_PTHREAD_SEMANTICS): Don't define.
6059 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6060 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6062 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6064 * configure: Rebuilt.
6065 * configure.in: If using POSIX threads, define _REENTRANT if
6066 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6067 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6069 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6070 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6071 version from Classpath.
6073 Fix for PR libgcj/213:
6074 * Makefile.in: Rebuilt.
6075 * Makefile.am (gij_SOURCES): Added gij.cc.
6076 (EXTRA_gij_SOURCES): Removed.
6077 (gij_LDADD): Removed gij.lo.
6078 (gij_DEPENDENCIES): Likewise.
6079 ($(gij_OBJECTS)): Depend on nat_headers.
6081 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6082 `setURL', not `url.set'.
6084 2000-04-20 Tom Tromey <tromey@cygnus.com>
6086 Fix for PR java.io/204:
6087 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6088 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6091 Fix for PR libgcj/212:
6092 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6093 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6094 * java/lang/Class.h (_Jv_word): Declare.
6096 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6098 2000-04-19 Tom Tromey <tromey@cygnus.com>
6100 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6101 doesn't have a loader.
6103 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6105 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6106 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6108 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6110 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6112 (available): Initialize `where' to prevent bogus compiler warning.
6114 2000-04-12 Tom Tromey <tromey@cygnus.com>
6116 * java/lang/natString.cc (intern): Temporarily disable finalizer
6119 * java/lang/natString.cc (unintern): Added `obj' argument.
6120 (intern): Register finalizer for string.
6121 * java/lang/String.java (unintern): Now static; added obj
6124 2000-04-11 Tom Tromey <tromey@cygnus.com>
6126 * java/util/Vector.java (VectorEnumeration): Now `final'.
6127 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6128 (HashtableEnumeration): Likewise.
6129 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6130 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6132 2000-04-10 Warren Levy <warrenl@cygnus.com>
6134 * java/io/ObjectStreamException.java: New file.
6135 * java/io/OptionalDataException.java: New file.
6136 * java/io/StreamCorruptedException.java: New file.
6137 * java/math/BigDecimal.java: New file.
6138 * java/sql/CallableStatement.java: New file.
6139 * java/sql/Connection.java: New file.
6140 * java/sql/DataTruncation.java: New file.
6141 * java/sql/DatabaseMetaData.java: New file.
6142 * java/sql/Date.java: New file.
6143 * java/sql/Driver.java: New file.
6144 * java/sql/DriverManager.java: New file.
6145 * java/sql/DriverPropertyInfo.java: New file.
6146 * java/sql/PreparedStatement.java: New file.
6147 * java/sql/ResultSet.java: New file.
6148 * java/sql/ResultSetMetaData.java: New file.
6149 * java/sql/SQLException.java: New file.
6150 * java/sql/SQLWarning.java: New file.
6151 * java/sql/Statement.java: New file.
6152 * java/sql/Time.java: New file.
6153 * java/sql/Timestamp.java: New file.
6154 * java/sql/Types.java: New file.
6155 * Makefile.am: Added above new files.
6156 * Makefile.in: Rebuilt.
6158 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6159 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6160 DatagramSocket constructor instead of null.
6162 2000-04-08 Anthony Green <green@cygnus.com>
6164 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6167 2000-04-08 Anthony Green <green@cygnus.com>
6169 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6170 (_Jv_MutexUnlock): Ditto.
6171 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6172 (_Jv_MutexUnlock): Ditto.
6174 2000-04-08 Anthony Green <green@cygnus.com>
6176 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6177 (ensureCapacity_unsynchronized): New private method.
6178 (append): Use ensureCapacity_unsynchronized.
6180 2000-04-08 Tom Tromey <tromey@cygnus.com>
6182 * Makefile.in: Rebuilt.
6183 * Makefile.am (awt_java_source_files): Added new files.
6184 * java/awt/IllegalComponentStateException.java: New file.
6185 * java/awt/ItemSelectable.java: New file.
6186 * java/awt/event/WindowEvent.java: Finished.
6187 * java/awt/event/TextEvent.java: Finished.
6188 * java/awt/event/ContainerEvent.java: New file.
6189 * java/awt/Component.java (getX, getY): New methods.
6190 * java/awt/event/PaintEvent.java: New file.
6191 * java/awt/event/MouseEvent.java: New file.
6192 * java/awt/ActiveEvent.java: New file.
6193 * java/awt/event/KeyEvent.java: Finished.
6194 * java/awt/event/ItemEvent.java: New file.
6195 * java/awt/Adjustable.java: New file.
6196 * java/awt/event/InputMethodEvent.java: New file.
6197 * java/awt/event/InputEvent.java: Finished.
6198 * java/awt/event/FocusEvent.java: New file.
6199 * java/awt/event/MouseMotionAdapter.java: New file.
6200 * java/awt/event/MouseAdapter.java: New file.
6201 * java/awt/event/KeyAdapter.java: New file.
6202 * java/awt/event/FocusAdapter.java: New file.
6203 * java/awt/event/ContainerAdapter.java: New file.
6204 * java/awt/event/ComponentEvent.java: Finished.
6205 * java/awt/event/AdjustmentEvent.java: New file.
6206 * java/awt/event/ComponentAdapter.java: New file.
6207 * java/awt/event/ActionEvent.java: Finished.
6208 * java/awt/event/MouseMotionListener.java: New file.
6209 * java/awt/event/MouseListener.java: New file.
6210 * java/awt/event/ItemListener.java: New file.
6211 * java/awt/event/InputMethodListener.java: New file.
6212 * java/awt/event/ContainerListener.java: New file.
6213 * java/awt/event/FocusListener.java: New file.
6214 * java/awt/event/ComponentListener.java: New file.
6215 * java/awt/event/AWTEventListener.java: New file.
6216 * java/awt/event/AdjustmentListener.java: New file.
6218 2000-04-08 Anthony Green <green@cygnus.com>
6220 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6221 check when we have to.
6223 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6226 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6229 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6230 inline hasMoreElements.
6232 2000-04-05 Tom Tromey <tromey@cygnus.com>
6234 * configure: Rebuilt.
6235 * configure.in: Recognize --enable-java-awt.
6236 (AWT): New conditional.
6237 * Makefile.in: Rebuilt.
6238 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6240 (libgcjawt_la_SOURCES): New macro.
6241 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6242 (libgcjawt_la_DEPENDENCIES): Likewise.
6243 (libgcjawt_la_LIBADD): Likewise.
6244 (libgcjawt_la_LDFLAGS): Likewise.
6245 (libgcj.zip): Depend on cond_java_awt_source_files
6246 (cond_awt_java_source_files): New macro.
6247 (MOSTLYCLEANFILES): Added awto_files.
6248 (awto_files): New macro. Use where javao_files used.
6249 (nat_headers): Use cond_awt_java_source_files.
6251 2000-04-04 Tom Tromey <tromey@cygnus.com>
6253 * Makefile.in: Rebuilt.
6254 * Makefile.am (awt_java_source_files): Added AWTException.java.
6255 * java/awt/AWTException.java: New file.
6257 2000-04-03 Tom Tromey <tromey@cygnus.com>
6259 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6260 commentary from Alex.
6262 * Makefile.in: Rebuilt.
6263 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6266 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6268 * configure: Rebuilt.
6269 * configure.in: Add --disable-jvmpi.
6270 * include/config.h.in: Rebuilt.
6271 * acconfig.h: Add ENABLE_JVMPI.
6273 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6274 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6275 (_Jv_JVMPI_Notify_THREAD_END): New define.
6276 (_Jv_JVMPI_Notify_THREAD_END): New define.
6277 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6278 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6279 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6281 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6284 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6285 (finish_): Generate JVMPI thread end events.
6286 (run_): Generate JVMPI thread start events.
6287 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6288 preloaded JNI library.
6289 Include JVMPI headers if necessary.
6290 (run): Generate JVMPI thread start events.
6292 * boehm.cc: Define GC_disable and GC_enable.
6293 (_Jv_DisableGC): New function.
6294 (_Jv_EnableGC): New function.
6295 (disable_gc_mutex): Declare.
6296 * nogc.cc (_Jv_DisableGC): New function.
6297 (_Jv_EnableGC): New function.
6299 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6300 (_Jv_JVMPI_Interface): Define.
6301 (jvmpiEnableEvent): New function.
6302 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6304 * include/jvmpi.h: New file.
6306 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6308 * Makefile.in: New #defines and friends for Thread.h.
6309 * Makefile.am: Ditto.
6310 * posix-threads.cc: (struct starter): Remove `object'.
6311 (_Jv_CondWait): Use interruptable condition variables and new
6312 recursive mutexes. New return codes on interrupt or non-ownership
6314 (_Jv_CondNotify): Ditto.
6315 (_Jv_CondNotifyAll): Ditto.
6316 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6317 the target thread by signaling its wait condition.
6318 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6319 not the starter struct. Initialize wait_mutex and wait_cond.
6320 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6322 (_Jv_MutexUnlock): Ditto.
6323 (really_start): Set info->data->thread from pthread_self() to work
6324 around a race condition. Destroy wait_mutex and wait_cond when run()
6326 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6327 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6329 startable_flag: New private field.
6330 (Thread): Initialize `startable_flag'.
6331 (toString): Check for null thread group.
6332 * java/lang/natThread.cc: (struct natThread): New fields
6333 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6334 (class locker): Removed.
6335 (initialize_native): Initialize `join_cond' and `join_mutex'.
6336 (interrupt): Now just calls _Jv_ThreadInterrupt().
6337 (join): Simplified. Just wait on the target thread's join condition.
6338 (finish_): Remove join list code. Unset thread group. Signal
6339 potential joiners by notifying the dying threads join_cond.
6340 (start): Check for illegal restarts.
6341 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6343 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6344 #defines and #ifdefs.
6345 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6346 `wait_mutex', `next'.
6347 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6348 directly mapping to pthread_cond_t.
6349 (struct _Jv_Mutex_t): New recursive implementation.
6350 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6351 _Jv_HaveCondDestroy: Never define this for posix-threads.
6352 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6353 (_Jv_CondNotifyAll): Ditto.
6354 (_Jv_MutexLock): Ditto.
6355 (_Jv_MutexUnlock): Ditto.
6356 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6357 (_Jv_MutexDestroy): Ditto.
6358 (_Jv_CondDestroy): Removed.
6359 (_Jv_PthreadGetMutex): Removed.
6360 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6361 error. Add a FIXME about this.
6362 (_Jv_CondNotifyAll): Ditto.
6363 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6364 _JV_NOT_OWNER on other errors. Add FIXME.
6366 2000-03-26 Tom Tromey <tromey@cygnus.com>
6368 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6370 (call): Don't throw exception here.
6372 2000-03-26 Tom Tromey <tromey@cygnus.com>
6374 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6375 * interpret.cc: Use SIZEOF_VOID_P.
6376 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6377 (_Jv_loadLong): Likewise.
6378 (_Jv_storeDouble): Likewise.
6379 * configure: Rebuilt.
6380 * configure.in: Check size of void*.
6382 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6384 2000-03-26 Hans Boehm <boehm@acm.org>
6386 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6387 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6389 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6390 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6391 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6392 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6394 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6395 (FFI_RAW_SIZE): Likewise.
6396 (_Jv_InterpMethod::ncode): Use them.
6397 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6398 STORED): Define differently on a 64 bit machine.
6399 (continue1): Use ffi_java_raw_call when appropriate.
6401 2000-03-24 Warren Levy <warrenl@cygnus.com>
6403 * java/math/BigInteger.java(divide): Handle the special case when
6404 dividing by 1 and the high bit of the dividend is set.
6405 (setShiftRight): Handle case when count == 0.
6407 2000-03-24 Warren Levy <warrenl@cygnus.com>
6409 * java/awt/Font.java(isBold): Fix syntax error.
6411 * java/awt/Frame.java(postEvent): ditto.
6412 * java/awt/Menu.java(postEvent): ditto.
6413 * java/awt/MenuBar.java(postEvent): ditto.
6414 * java/awt/Toolkit.java(init): Included a stub.
6416 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6418 * java/awt/Event.java: Add all the event type constants.
6419 (Event): Implemented constructors.
6420 (controlDown): Implemented.
6421 (metaDown): Implemented.
6422 (paramString): Stubbed.
6423 (shiftDown): Implemented.
6424 (toString): Implemented.
6425 (translate): Implemented.
6427 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6429 * java/lang/natClass.cc (isInstance): Initialize `this'.
6430 (isAssignableFrom): Initialize `this' and `klass'.
6431 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6432 implemented by any loaded class, so return false.
6433 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6434 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6436 2000-03-19 Warren Levy <warrenl@cygnus.com>
6438 * java/awt/Color.java: Specified java.io for Serializable.
6439 * java/awt/Toolkit.java: Imported java.net.URL.
6441 2000-03-19 Warren Levy <warrenl@cygnus.com>
6443 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6445 2000-03-16 Warren Levy <warrenl@cygnus.com>
6447 * java/awt/Color.java: New file.
6448 * java/awt/Graphics.java: New file.
6449 * java/awt/Image.java: New file.
6450 * java/awt/Paint.java: New file.
6451 * java/awt/PaintContext.java: New file.
6452 * java/awt/Transparency.java: New file.
6453 * java/util/Collection.java: New file.
6454 * java/util/Comparator.java: New file.
6455 * java/util/Iterator.java: New file.
6456 * java/util/List.java: New file.
6457 * java/util/ListIterator.java: New file.
6458 * Makefile.am: Added above new files.
6459 * Makefile.in: Rebuilt.
6461 * java/awt/Font.java (PLAIN): New field.
6463 (ITALIC): New field.
6464 (ROMAN_BASELINE): New field.
6465 (CENTER_BASELINE): New field.
6466 (HANGING_BASELINE): New field.
6470 (pointSize): New field.
6471 (Font): Implemented constructor.
6472 (isPlain): Implemented method.
6473 (isBold): Implemented method.
6474 (isItalic): Implemented method.
6475 (getName): Implemented method.
6476 (getStyle): Implemented method.
6477 (getSize): Implemented method.
6478 (getSize2D): Implemented method.
6480 * java/awt/Frame.java (getFont): Stubbed.
6481 (postEvent): Stubbed.
6483 * java/awt/Menu.java (postEvent): Stubbed.
6484 * java/awt/MenuBar.java (getFont): Stubbed.
6485 (postEvent): Stubbed.
6486 * java/awt/Toolkit.java (getImage): Added abstract method.
6488 2000-03-15 Tom Tromey <tromey@cygnus.com>
6490 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6492 * prims.cc (win32_exception_handler): Reformatted.
6494 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6495 (_Jv_HaveMutexDestroy): Likewise.
6497 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6499 * java/io/natFileDescriptorWin32.cc: New file.
6500 * java/io/natFileWin32.cc: New file.
6501 * java/net/natInetAddress.cc: Added conditional inclusion of
6502 Windows / Winsock headers.
6503 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6504 inclusion of Windows / Winsock headers.
6505 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6506 Windows / Winsock headers.
6507 * include/win32-signal.h: New file.
6508 * include/win32-threads.h: New file.
6509 * win32-threads.cc: New file.
6510 * exception.cc (win32_get_restart_frame): New function.
6511 * prims.cc (win32_exception_handler): New function.
6512 (main_init) Performs Winsock initialisation.
6513 (main_init) Installs exeception handler.
6515 2000-03-14 Tom Tromey <tromey@cygnus.com>
6517 * jni.cc (mangled_name): Fixed assertion.
6518 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6519 turned assert into actual failure.
6521 2000-03-09 Warren Levy <warrenl@cygnus.com>
6523 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6524 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6525 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6527 2000-03-09 Warren Levy <warrenl@cygnus.com>
6529 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6530 * java/security/DigestException.java: New file.
6531 * java/security/GeneralSecurityException.java: New file.
6532 * java/security/InvalidAlgorithmParameterException.java: New file.
6533 * java/security/InvalidKeyException.java: New file.
6534 * java/security/InvalidParameterException.java: New file.
6535 * java/security/Key.java: New file.
6536 * java/security/KeyException.java: New file.
6537 * java/security/KeyPair.java: New file.
6538 * java/security/KeyPairGenerator.java: New file.
6539 * java/security/KeyPairGeneratorSpi.java: New file.
6540 * java/security/NoSuchProviderException.java: New file.
6541 * java/security/PrivateKey.java: New file.
6542 * java/security/Provider.java: New file.
6543 * java/security/PublicKey.java: New file.
6544 * java/security/SecureRandom.java: New file.
6545 * java/security/Security.java: New file.
6546 * java/security/Signature.java: New file.
6547 * java/security/SignatureException.java: New file.
6548 * java/security/interfaces/DSAKey.java: New file.
6549 * java/security/interfaces/DSAParams.java: New file.
6550 * java/security/interfaces/DSAPrivateKey.java: New file.
6551 * java/security/interfaces/DSAPublicKey.java: New file.
6552 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6553 * java/security/interfaces/RSAPrivateKey.java: New file.
6554 * java/security/interfaces/RSAPublicKey.java: New file.
6555 * java/security/spec/AlgorithmParameterSpec.java: New file.
6556 * java/security/spec/InvalidKeySpecException.java: New file.
6557 * java/security/spec/InvalidParameterSpecException.java: New file.
6558 * java/security/spec/KeySpec.java: New file.
6559 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6560 * java/security/spec/RSAPrivateKeySpec.java: New file.
6561 * java/security/spec/RSAPublicKeySpec.java: New file.
6562 * Makefile.am: Added above java.security files.
6563 * Makefile.in: Rebuilt.
6565 * java/security/MessageDigest.java: Rewritten.
6566 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6568 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6572 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6574 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6575 _Jv_PrepareConstantTimeTables.
6576 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6577 classes should have an IDT, so don't return if klass is an array
6580 2000-03-08 Tom Tromey <tromey@cygnus.com>
6582 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6583 of `void' to be created.
6585 2000-03-08 Warren Levy <warrenl@cygnus.com>
6587 * java/math/BigInteger.java(signum): Handle zero properly.
6589 2000-03-07 Tom Tromey <tromey@cygnus.com>
6591 * All files: Updated copyright information.
6592 * COPYING: New file.
6593 * COPYING.LIB: Removed.
6594 * LIBGCJ_LICENSE: We now use GPL + special exception.
6596 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6598 * resolve.cc (_Jv_SearchMethodInClass): New function.
6599 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6600 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6602 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6604 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6605 (struct _Jv_ifaces): New declaration.
6606 JV_CLASS: New macro definition.
6607 (getComponentType): Relocate below isArray() for inlining.
6608 (getModifiers): Declare `inline'.
6609 (getSuperclass): Ditto.
6611 (isPrimitive): Ditto.
6612 (_Jv_IsAssignableFrom): New prototype.
6613 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6615 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6616 Check for JV_STATE_DONE before invoking initializeClass().
6617 (_Jv_PrepareConstantTimeTables): New prototype.
6618 (_Jv_GetInterfaces): Ditto.
6619 (_Jv_GenerateITable): Ditto.
6620 (_Jv_GetMethodString): Ditto.
6621 (_Jv_AppendPartialITable): Ditto.
6622 (_Jv_FindIIndex): Ditto.
6623 depth, ancestors, idt: New class fields.
6625 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6626 inline function `_Jv_IsAssignableFrom'. Use that function.
6627 (isInstance): Declare `inline'.
6628 (initializeClass): Get lock on class before checking `state'. Unlock
6629 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6631 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6632 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6633 class->depth and ancestor table.
6634 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6635 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6636 _Jv_IsAssignableFrom.
6637 (_Jv_CheckArrayStore): Ditto.
6638 (_Jv_LookupInterfaceMethodIdx): New function.
6639 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6640 (_Jv_PrepareConstantTimeTables): New function.
6641 (_Jv_IndexOf): Ditto.
6642 (_Jv_GetInterfaces): Ditto.
6643 (_Jv_GenerateITable): Ditto.
6644 (_Jv_GetMethodString): Ditto.
6645 (_Jv_AppendPartialITable): Ditto.
6646 iindex_mutex, iindex_mutex_initialized: New static fields.
6647 (_Jv_FindIIndex): New function.
6649 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6651 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6652 (_Jv_CheckArrayStore): Ditto.
6653 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6654 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6655 Moved to gcj/array.h.
6656 (_Jv_Realloc): New function.
6658 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6660 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6661 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6662 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6663 JvNewDoubleArray): Implementations moved from prims.cc and
6666 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6668 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6670 2000-03-06 Tom Tromey <tromey@cygnus.com>
6672 * jni.cc (MARK_NONE): New define.
6673 (MARK_USER): Likewise.
6674 (MARK_SYSTEM): Likewise.
6675 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6677 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6678 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6679 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6680 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6682 (call): Use MARK_SYSTEM.
6683 (_Jv_GetJNIEnvNewFrame): New function.
6684 (_Jv_LookupJNIMethod): New function.
6685 (_Jv_JNI_PopSystemFrame): New function.
6686 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6688 2000-03-05 Tom Tromey <tromey@cygnus.com>
6690 Fix for PR libgcj/43:
6691 * include/Makefile.in: Rebuilt.
6692 * include/Makefile.am (include_HEADERS): New define.
6694 2000-03-05 Anthony Green <green@redhat.com>
6696 * gcj/javaprims.h ("Java"): Remove FirstThread.
6698 * configure.host: Fix __NO_MATH_INLNES botch.
6700 * Makefile.in: Rebuilt.
6701 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6702 (gnu/gcj/runtime/FirstThread.h): Moved.
6703 (ordinary_java_source_files): Move FirstThread.java.
6704 * prims.cc: Deal with FirstThread movement.
6706 (_Jv_RunMain): Ditto.
6708 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6709 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6711 2000-03-05 Warren Levy <warrenl@cygnus.com>
6713 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6714 Handle null addresses.
6716 2000-03-04 Anthony Green <green@redhat.com>
6718 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6721 2000-03-04 Anthony Green <green@redhat.com>
6723 * configure: Rebuilt.
6724 * configure.in (ZLIBTESTSPEC): New macro.
6725 (GCTESTSPEC): New macro.
6726 (LIBGCJTESTSPEC): New macro.
6727 * libgcj-test.spec.in: New file.
6729 2000-03-02 Tom Tromey <tromey@cygnus.com>
6731 * include/java-interp.h: Don't include MethodInvocation.h.
6732 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6733 * Makefile.in: Rebuilt.
6734 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6735 (ordinary_java_source_files): Don't mention
6736 MethodInvocation.java.
6737 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6738 * interpret.cc (MethodInvocation::continue1): Removed.
6739 (run): Handle exceptions here.
6740 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6742 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6744 (defineClass2): Removed.
6746 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6748 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6750 (hack_call): Removed.
6752 * java/lang/Class.h (Class): Removed hackRunInitializers,
6754 * java/lang/natClass.cc (hackRunInitializers): Removed.
6755 (initializeClass): Catch exceptions here.
6756 Include ExceptionInInitializerError.h.
6757 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6760 * java/lang/Object.h (Object): Don't mention hack12_6.
6761 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6763 * java/lang/Object.java (hack12_6): Removed.
6765 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6766 (start): Use run_, not run__.
6767 * java/lang/Thread.java (run_): Renamed from run__; old run_
6770 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6771 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6772 (_Jv_JNI_DefineClass): Likewise.
6773 (_Jv_JNI_ThrowNew): Likewise.
6774 (_Jv_JNI_AllocObject): Likewise.
6775 (_Jv_JNI_GetAnyMethodID): Likewise.
6776 (_Jv_JNI_CallAnyMethodV): Likewise.
6777 (_Jv_JNI_CallAnyMethodA): Likewise.
6778 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6779 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6780 (_Jv_JNI_GetAnyFieldID): Likewise.
6781 (_Jv_JNI_NewString): Likewise.
6782 (_Jv_JNI_NewStringUTF): Likewise.
6783 (_Jv_JNI_GetStringUTFChars): Likewise.
6784 (_Jv_JNI_NewObjectArray): Likewise.
6785 (_Jv_JNI_NewPrimitiveArray): Likewise.
6786 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6787 (_Jv_JNI_GetStringRegion): Likewise.
6788 (_Jv_JNI_GetStringUTFRegion): Likewise.
6789 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6790 (_Jv_JNI_MonitorEnter): Likewise.
6791 (_Jv_JNI_MonitorExit): Likewise.
6792 (_Jv_JNI_ToReflectedField): Likewise.
6793 (_Jv_JNI_ToReflectedMethod): Likewise.
6794 (_Jv_JNI_RegisterNatives): Likewise.
6795 (_Jv_JNI_AttachCurrentThread): Likewise.
6796 (_Jv_JNI_DestroyJavaVM): Likewise.
6798 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6800 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6801 error caused by the incorrect casting of a long to an int.
6803 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6805 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6806 SIGSEV caused by use of the wrong instance variable.
6808 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6810 * java/io/File.java (File(String, String)): For dirPath, treat an
6811 empty String the same as `null'.
6813 2000-02-26 Anthony Green <green@cygnus.com>
6815 * gnu/gcj/io/MimeTypes.java: Test for null.
6817 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6818 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6820 * java/net/URLConnection.java: Update copyright notice.
6822 2000-02-25 Tom Tromey <tromey@cygnus.com>
6824 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6827 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6829 * java/net/URLConnection.java (initializeDateFormats): New
6831 (getHeaderFieldDate): Call initializeDateFormats if required.
6832 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6834 Fix for PR libgcj/38.
6836 2000-02-24 Warren Levy <warrenl@cygnus.com>
6838 * java/math/BigInteger.java(ival): Made private.
6842 2000-02-20 Anthony Green <green@cygnus.com>
6844 * Makefile.in: Rebuilt.
6845 * Makefile.am (ordinary_java_source_files): Add
6846 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6848 * scripts/MakeDefaultMimeTypes.java: New file.
6849 * scripts/mime.types: New file.
6850 * scripts/classes.pl: Moved from top level.
6851 * classes.pl: Moved to scripts directory.
6853 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6855 * gnu/gcj/io/MimeTypes.java: New file.
6856 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6858 2000-02-20 Tom Tromey <tromey@cygnus.com>
6860 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6862 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6864 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6867 2000-02-18 Tom Tromey <tromey@cygnus.com>
6869 * include/jvm.h (_Jv_GetJavaVM): Declare.
6870 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6871 (_Jv_MethodBase::get_method): New method.
6872 (_Jv_JNIMethod::set_function): New method.
6873 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6874 (_Jv_JNI_RegisterNatives): New function.
6875 (_Jv_JNIFunctions): Updated for new functions.
6876 (_Jv_GetJavaVM): New function.
6877 (_Jv_JNI_GetJavaVM): Use it. Now static.
6878 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6879 is already a Java thread but does not have a JNIEnv yet.
6881 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6884 2000-02-17 Tom Tromey <tromey@cygnus.com>
6886 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6889 2000-02-16 Tom Tromey <tromey@cygnus.com>
6891 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6893 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6894 (_Jv_JNI_NewObject): Likewise.
6895 (_Jv_JNI_NewObjectA): Likewise.
6896 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6897 as "return" type to _Jv_CallAnyMethodA.
6898 (_Jv_JNI_CallAnyMethodA): Likewise.
6899 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6901 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6904 2000-02-15 Tom Tromey <tromey@cygnus.com>
6906 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6908 (init_cif): Added `rtype_p' argument.
6909 * include/java-interp.h (class _Jv_MethodBase): Added
6911 (class _Jv_InterpMethod): Removed args_raw_size.
6912 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6913 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6914 class pointer as well as the ordinary arguments.
6916 * jni.cc (mangled_name): Skip leading `(' in signature.
6918 * jni.cc (add_char): Added missing `else'.
6920 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6923 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6927 * java/lang/natRuntime.cc (_load): Include library path with
6930 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6933 * java/lang/natThread.cc (dumpStack): Removed.
6934 * java/lang/Thread.java (dumpStack): Implemented.
6936 2000-02-15 Tom Tromey <tromey@cygnus.com>
6938 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6939 with `lib' for loadLibrary. Fixes PR gcj/150.
6941 2000-02-14 Warren Levy <warrenl@cygnus.com>
6943 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6945 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6949 (modPow): Rewritten to not use the naive, slow, brute force approach.
6950 (isProbablePrime): Implemented.
6951 (testBit): Implemented.
6952 (flipBit): Implemented.
6953 (getLowestSetBit): Implemented.
6955 2000-02-16 Anthony Green <green@redhat.com>
6957 * configure.host: Use the same options for i386 and i486 as we do
6960 2000-02-12 Tom Tromey <tromey@cygnus.com>
6962 * java/io/File.java (createTempFile): Use low bits from counter,
6965 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6967 * THANKS: More thanks.
6969 2000-02-11 Tom Tromey <tromey@cygnus.com>
6971 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6972 astore instruction. From Hans Boehm.
6974 2000-02-11 Warren Levy <warrenl@cygnus.com>
6976 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6977 (BigInteger(String)): New constructor.
6978 (not): Rewritten using version from Kawa's BitOps class.
6979 (valueOf): New private methods from Kawa's BitOps class.
6986 (andNot): Implemented.
6987 (clearBit): Implemented.
6988 (setBit): Implemented.
6989 (bitCount): Implemented.
6990 (toByteArray): Implemented.
6992 2000-02-11 Tom Tromey <tromey@cygnus.com>
6994 * java/io/File.java (nextValue): Now synchronized.
6996 2000-02-10 Tom Tromey <tromey@cygnus.com>
6998 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6999 * java/io/FileDescriptor.java (EXCL): New static field.
7000 * java/io/File.java (tmpdir): New static field.
7001 (createTempFile): New method.
7002 (nextValue): New method.
7003 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7006 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7007 (jboolean): Declare as an attributed int, not a bool.
7008 (_Jv_func): Declare differently for C.
7010 * gnu/gcj/jni/natNativeThread.cc: New file.
7011 * gnu/gcj/jni/NativeThread.java: New file.
7012 * java/lang/Thread.java (data): Now a RawData.
7013 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7015 * Makefile.in: Rebuilt.
7016 * Makefile.am (java/lang/Thread.h): New target.
7017 (ordinary_java_source_files): Added NativeThread.java.
7018 (nat_source_files): Added natNativeThread.cc.
7019 * java/lang/natThread.cc: Include <jni.h>
7020 (struct natThread): Added `jni_env' field.
7021 (_Jv_GetCurrentJNIEnv): New function.
7022 (_Jv_SetCurrentJNIEnv): Likewise.
7023 (initialize_native): Initialize jni_env.
7025 * jni.cc (ThreadGroupClass): New define.
7026 (_Jv_JNI_InvokeFunctions): New structure.
7027 (JNI_GetCreatedJavaVMs): New function.
7028 (the_vm): New global.
7029 (JNI_GetDefaultJavaVMInitArgs): New function.
7030 Include NativeThread.h.
7031 (NativeThreadClass): New define.
7032 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7033 (_Jv_JNI_DestroyJavaVM): New function.
7034 (_Jv_JNI_AttachCurrentThread): New function.
7035 (_Jv_JNI_DetachCurrentThread): New function.
7036 (_Jv_JNI_GetEnv): New function.
7037 (JNI_CreateJavaVM): New function.
7038 (_Jv_JNI_GetJavaVM): New function.
7039 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7040 * include/jni.h (JavaVMAttachArgs): New structure.
7041 (JNI_EDETACHED): New define.
7042 (JNI_EVERSION): Likewise.
7043 (JavaVM): Define properly.
7044 (struct JNIInvokeInterface): New structure.
7045 (class _Jv_JavaVM): New class.
7046 (JNI_OnLoad, JNI_OnUnload): Declare.
7047 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7048 JNI_GetCreatedJavaVMs): Declare.
7049 (JavaVMInitArgs): New typedef.
7050 (JavaVMOption): Likewise.
7051 (JNI_ERR): New define.
7054 2000-02-10 Andrew Haley <aph@cygnus.com>
7056 * interpret.cc: Don't include fdlibm.h.
7057 Replace #if with #ifdef throughout.
7058 Declare extern __ieee754_fmod.
7059 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7061 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7062 Search class hierarchy for superclass vtable.
7064 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7065 off the end of a pointer list.
7067 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7071 2000-02-09 Tom Tromey <tromey@cygnus.com>
7073 * java/lang/natRuntime.cc (_load): Call add_library.
7074 (loadLibraryInternal): Likewise.
7076 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7077 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7078 (Output_iconv::finalize): Likewise.
7080 2000-02-08 Tom Tromey <tromey@cygnus.com>
7082 * java/util/Properties.java (setProperty): New method.
7083 (store): New method.
7085 2000-02-07 Tom Tromey <tromey@cygnus.com>
7087 * java/lang/Runtime.java (_load): Declare.
7088 (load, loadLibrary): Wrote in terms of _load.
7089 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7091 (loadLibrary): Likewise.
7093 (_load): New method.
7094 (loadLibrary, load): Removed.
7096 * jni.cc (ThrowableClass): New define.
7097 (_Jv_JNI_Throw): Check argument.
7098 (_Jv_JNI_ThrowNew): Likewise.
7099 (wrap_value): Don't wrap object if it is NULL.
7100 (_Jv_JNI_DefineClass): Use wrap_value.
7101 (_Jv_JNI_FindClass): Likewise.
7102 (_Jv_JNI_GetSuperclass): Likewise.
7103 (_Jv_JNI_ExceptionOccurred): Likewise.
7104 (_Jv_JNI_AllocObject): Likewise.
7105 (_Jv_JNI_GetObjectClass): Likewise.
7106 (_Jv_JNI_NewString): Likewise.
7107 (_Jv_JNI_NewStringUTF): Likewise.
7108 (_Jv_JNI_NewObjectArray): Likewise.
7109 (_Jv_JNI_GetObjectArrayElement): Likewise.
7110 (_Jv_JNI_NewPrimitiveArray): Likewise.
7111 (_Jv_JNI_ToReflectedField): Likewise.
7112 (_Jv_JNI_ToReflectedMethod): Likewise.
7113 (_Jv_JNI_AllocObject): Check argument.
7114 (_Jv_JNI_NewObjectV): Likewise.
7115 (_Jv_JNI_NewObject): Likewise.
7116 (_Jv_JNI_NewObjectA): Likewise.
7117 (_Jv_JNI_GetObjectClass): Likewise.
7118 (_Jv_JNI_GetField): Likewise.
7119 (_Jv_JNI_SetField): Likewise.
7121 * interpret.cc (PUSHL): Don't use expression statement.
7126 * jni.cc (add_char): Conditional on INTERPRETER.
7127 (mangled_name): Likewise.
7129 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7131 (class _Jv_JNIMethod): Likewise.
7133 2000-02-04 Warren Levy <warrenl@cygnus.com>
7135 * Makefile.am: Added MPN.java and BigInteger.java.
7136 * Makefile.in: Rebuilt.
7137 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7139 * java/math/BigInteger.java: New file. Based primarily on
7140 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7142 2000-02-04 Tom Tromey <tromey@cygnus.com>
7144 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7146 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7147 if the method is native.
7148 * resolve.cc (ncode): Don't handle native methods.
7149 (_Jv_JNIMethod::ncode): New method.
7150 (_Jv_PrepareClass): Handle native methods.
7151 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7152 Include AbstractMethodError.h.
7153 (add_char): New function.
7154 (mangled_name): Likewise.
7155 * include/java-interp.h (class _Jv_JNIMethod): New class.
7156 (class _Jv_MethodBase): New class.
7157 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7158 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7161 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7162 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7163 libraries): New globals.
7164 (add_library): New function.
7165 (_Jv_FindSymbolInExecutable): New function.
7167 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7170 2000-02-04 Andrew Haley <aph@cygnus.com>
7172 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7173 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7174 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7175 printStackTrace to printRawStackTrace.
7177 2000-02-03 Tom Tromey <tromey@cygnus.com>
7179 * java/util/Calendar.java (toString): New method.
7180 * java/util/SimpleTimeZone.java (clone): New method.
7181 (toString): New method.
7182 * java/util/TimeZone.java (clone): New method.
7183 * java/text/SimpleDateFormat.java (clone): New method.
7184 * java/text/NumberFormat.java (clone): New method.
7185 (equals): New method.
7186 * java/text/Format.java (clone): New method.
7187 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7189 (clone): New method.
7190 * java/text/DateFormat.java (clone): New method.
7191 * java/text/Collator.java (clone): New method.
7193 2000-02-03 Tom Tromey <tromey@cygnus.com>
7195 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7198 2000-02-01 Tom Tromey <tromey@cygnus.com>
7200 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7201 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7202 constructing the closure if the function is native.
7203 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7204 a template function, #if'd out, or static.
7205 Include <java-interp.h>.
7207 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7209 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7211 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7212 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7214 (wrap_value): New function.
7215 (_Jv_JNI_CallAnyMethodV): Use it.
7216 (_Jv_JNI_CallAnyMethodA): Likewise.
7217 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7218 (_Jv_JNI_GetStaticField): Likewise.
7220 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7221 (_Jv_JNI_GetStaticField): Likewise.
7223 2000-01-31 Tom Tromey <tromey@cygnus.com>
7225 * prims.cc (_Jv_MallocUnchecked): New function.
7226 (main_init): Call _Jv_JNI_Init.
7227 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7228 (_Jv_JNI_Init): Declare.
7229 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7231 (_Jv_JNI_NewGlobalRef): New function.
7232 (_Jv_JNI_DeleteGlobalRef): New function.
7233 (_Jv_JNI_DeleteLocalRef): New function.
7234 (_Jv_JNI_conversion_call): Initialize and clear local reference
7236 (_Jv_JNI_NewLocalRef): New function.
7237 (struct _Jv_JNI_LocalFrame): New structure.
7238 (_Jv_JNI_PushLocalFrame): New function.
7239 (_Jv_JNI_EnsureLocalCapacity): New function.
7240 (FRAME_SIZE): New define.
7241 (_Jv_JNI_GetStringChars): Mark string, not characters.
7242 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7243 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7244 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7246 (_Jv_JNI_DefineClass): Make return value a local ref.
7247 (_Jv_JNI_FindClass): Likewise.
7248 (_Jv_JNI_GetSuperclass): Likewise.
7249 (_Jv_JNI_ExceptionOccurred): Likewise.
7250 (_Jv_JNI_AllocObject): Likewise.
7251 (_Jv_JNI_GetObjectClass): Likewise.
7252 (_Jv_JNI_CallAnyMethodV): Likewise.
7253 (_Jv_JNI_NewString): Likewise.
7254 (_Jv_JNI_NewStringUTF): Likewise.
7255 (_Jv_JNI_NewObjectArray): Likewise.
7256 (_Jv_JNI_GetObjectArrayElement): Likewise.
7257 (_Jv_JNI_ToReflectedField): Likewise.
7258 (_Jv_JNI_ToReflectedMethod): Likewise.
7259 (_Jv_JNIFunctions): Updated table for new functions.
7260 (_Jv_JNI_Init): New function.
7261 (mark_for_gc): Wrote.
7262 (unmark_for_gc): Wrote.
7263 * include/jni.h (struct JNINativeInterface): Removed name from
7264 PopLocalFrame parameter.
7265 (class _Jv_JNIEnv): Added `locals' field.
7267 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7269 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7272 2000-01-30 Tom Tromey <tromey@cygnus.com>
7274 * include/config.h.in: Rebuilt.
7275 * acconfig.h (HAVE_ICONV): Define.
7276 * configure: Rebuilt.
7277 * configure.in: Check for `iconv' function.
7278 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7279 no specific encoder exists.
7280 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7281 no specific encoder exists.
7282 * Makefile.in: Rebuilt.
7283 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7285 (nat_source_files): Added natIconv.cc.
7286 * gnu/gcj/convert/natIconv.cc: New file.
7287 * gnu/gcj/convert/Input_iconv.java: New file.
7288 * gnu/gcj/convert/Output_iconv.java: New file.
7290 2000-01-28 Tom Tromey <tromey@cygnus.com>
7292 * Makefile.in: Rebuilt.
7293 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7295 2000-01-26 Tom Tromey <tromey@cygnus.com>
7297 * gcj/method.h (JvNumMethods): Moved from Class.h.
7298 (JvGetFirstMethod): Likewise.
7299 * java/lang/Class.h (Object): Updated decl of
7300 _Jv_JNI_ToReflectedField.
7301 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7302 * Makefile.in: Rebuilt.
7303 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7304 argument of _Jv_JNI_ToReflectedField.
7305 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7307 (java/lang/reflect/Method.h): Likewise.
7308 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7310 (jweak): New typedef.
7311 (struct JNINativeInterface): Correctly declare remaining entries.
7312 * jni.cc: Include Class.h, ClassLoader.h.
7313 (_Jv_JNI_FindClass): New function.
7314 (_Jv_JNI_DefineClass): New function.
7315 (_Jv_JNI_conversion_call): New function.
7316 (_Jv_JNI_FindClass): Use current class loader to find class.
7317 (_Jv_JNI_ExceptionCheck): New function.
7318 (_Jv_JNI_FromReflectedField): Now static.
7319 (MethodClass): New define.
7320 (_Jv_JNI_FromReflectedMethod): New function.
7321 (_Jv_JNI_ToReflectedMethod): Likewise.
7323 (_Jv_JNI_IsAssignableFrom): Renamed.
7324 (_Jv_JNI_GetStringRegion): New function.
7325 Include StringIndexOutOfBoundsException.h.
7326 (_Jv_JNI_GetStringUTFRegion): New function.
7327 (_Jv_JNIFunctions): Updated for new functions.
7328 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7329 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7330 (_Jv_JNI_GetStringCritical): New function.
7331 (_Jv_JNI_ReleaseStringCritical): Likewise.
7332 (get_throwable): Removed.
7333 (GCJ_JV_JNIENV_FRIEND): Removed.
7334 (__GCJ_JNI_IMPL__): Define.
7337 * resolve.cc (get_ffi_type_from_signature): Handle case where
7340 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7342 * interpret.cc (run): Don't call println.
7343 Don't include PrintStream.h.
7345 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7346 nameIndex. Use "jint" as type for boffset.
7347 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7349 (Class): Likewise. Also changed type of method_count,
7350 vtable_method_count, size_in_bytes, field_count,
7351 static_field_count, interface_count.
7352 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7355 2000-01-21 Tom Tromey <tromey@cygnus.com>
7357 * java/lang/reflect/natConstructor.cc (newInstance): Use
7359 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7360 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7361 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7364 (invoke): Use _Jv_CallAnyMethodA.
7366 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7367 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7369 (struct _Jv_Method): Added getNextMethod method.
7370 (JvNumMethods): New function.
7371 (JvGetFirstMethod): Likewise.
7372 * gcj/field.h (JvGetFirstStaticField): New function.
7373 (JvNumStaticFields): Likewise.
7374 (getNextField): Renamed from getNextInstanceField.
7375 (struct _Jv_Field): New method getClass.
7376 * jni.cc: Wrote many new functions.
7377 * include/jni.h (JNI_TRUE): Define.
7378 (JNI_FALSE): Likewise.
7379 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7380 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7381 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7382 (jfieldID, jmethodID): Likewise.
7383 (JNI_COMMIT, JNI_ABORT): New defines.
7384 (JNINativeMethod): New struct.
7385 (struct JNINativeInterface): Correctly declared more entries.
7386 (class _Jv_JNIEnv): Added `ex' member.
7387 (JNI_VERSION_1_1): New define.
7388 (JNI_VERSION_1_2): Likewise.
7390 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7391 getNextInstanceField.
7393 2000-01-20 Tom Tromey <tromey@cygnus.com>
7395 * resolve.cc (StringClass): Removed.
7396 * defineclass.cc (StringClass): Removed.
7398 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7402 2000-01-19 Tom Tromey <tromey@cygnus.com>
7404 * interpret.cc (PC_REGISTER_ASM): Removed.
7406 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7407 From Bryce McKinlay.
7409 * All files: Updated copyright to reflect Cygnus purchase.
7411 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7413 * configure: Rebuilt.
7414 * configure.in: Recognize --disable-interpreter.
7416 2000-01-18 Andrew Haley <aph@cygnus.com>
7418 * name-finder.cc (lookup): Check for dladdr function.
7419 acconfig.h (HAVE_DLADDR): Add.
7420 configure.in: Check for HAVE_DLADDR
7422 include/config.h.in: Rebuilt.
7424 2000-01-17 Andrew Haley <aph@cygnus.com>
7426 * prims.cc (_Jv_RunMain): Set the name of this executable.
7428 2000-01-17 Tom Tromey <tromey@cygnus.com>
7430 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7431 when backtrace can't be computed.
7433 * configure: Rebuilt.
7434 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7436 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7437 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7438 (_Jv_FindClassInCache): Likewise.
7439 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7440 (findSystemClass): Try to load class from compiled module.
7442 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7443 (loadLibrary): Likewise.
7444 (lt_preloaded_symbols): Define.
7445 (loadLibraryInternal): New method.
7446 * include/config.h.in: Rebuilt.
7447 * acconfig.h (USE_LTDL): Added.
7448 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7449 (INCLUDES): Added $(INCLTDL).
7450 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7451 (libgcj_la_LIBADD): Likewise.
7452 * aclocal.m4, configure: Rebuilt.
7453 * configure.in: Added libltdl support.
7455 2000-01-15 Tom Tromey <tromey@cygnus.com>
7457 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7459 2000-01-14 Andrew Haley <aph@cygnus.com>
7461 * java/lang/natThrowable.cc: New file.
7463 * java/lang/Throwable.java (fillInStackTrace): Make native.
7464 (printStackTrace): Call native method to do this.
7465 (Throwable): Call fillInStackTrace.
7466 (stackTrace): New variable.
7468 * include/jvm.h: Add _Jv_ThisExecutable functions.
7470 * prims.cc: (_Jv_execName): New variable.
7471 (catch_segv): Call fillInStackTrace.
7473 (_Jv_ThisExecutable): New functions.
7474 (JvRunMain): Set the name of this executable.
7476 * Makefile.am: Add java/lang/natThrowable.cc.
7478 * Makefile.in: Rebuilt.
7480 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7482 * configure.in: Force link with __frame_state_for in
7483 FORCELIBGCCSPEC. Add new checks for backtrace.
7484 * include/config.h.in: Rebuilt.
7486 * name-finder.cc: New file.
7487 * include/name-finder.h: New file.
7489 2000-01-16 Anthony Green <green@cygnus.com>
7491 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7494 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7496 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7498 2000-01-13 Tom Tromey <tromey@cygnus.com>
7500 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7501 not system loader, as initiating loader.
7503 2000-01-11 Tom Tromey <tromey@cygnus.com>
7505 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7506 HP/UX. From David Scott Urban.
7508 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7510 * java/lang/natMath.cc (pow): Cast args to `double', not
7513 (IEEEremainder): Likewise.
7514 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7515 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7517 2000-01-09 Anthony Green <green@cygnus.com>
7519 * java/lang/natString.cc (init): Test for overflow condition
7520 during out of bounds check.
7521 (getChars): Throw StringIndexOutOfBoundsException, not
7522 ArrayIndexOutOfBoundsException.
7524 (regionMatches): Obey case option during string comparison.
7526 * configure.host (ligcj_interpreter): New variable. Enable
7527 interpreter by default on IA-32.
7528 * configure.in: Examine libgcj_interpreter.
7529 * configure: Rebuilt.
7531 2000-01-07 Tom Tromey <tromey@cygnus.com>
7533 * mauve-libgcj: Don't disable ClassTest.
7535 * java/lang/natClass.cc (getClasses): Wrote.
7537 2000-01-06 Tom Tromey <tromey@cygnus.com>
7539 * java/lang/natClass.cc (_getConstructors): Correctly check
7540 whether method name is the init name.
7541 (getMethod): Look at accflags on method in `klass', not `this'.
7543 2000-01-05 Tom Tromey <tromey@cygnus.com>
7545 * java/lang/natClass.cc (getMethod): Compute offset relative to
7546 `klass's methods table, not `this's table.
7548 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7549 In unwrapping/widening case, check whether `k' is null, not
7550 whether it is primitive. Initialize `num' from `argelts', not
7551 `paramelts'. Correct create and pass arguments to ffi_call.
7552 Don't let presence of `this' argument affect index used to look in
7554 (COPY): Set appropriate element in `values' vector.
7556 * java/lang/natClass.cc: Include <gcj/method.h>.
7558 * java/lang/Class.h (_getMethods): Correctly declare as private,
7561 * java/lang/Class.h (_getMethods): Declare.
7562 * java/lang/Class.java (_getMethods): Declare.
7563 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7564 (getDeclaredClasses): Always return empty array.
7565 (_getMethods): New method.
7566 (getMethods): Wrote.
7567 (getDeclaredMethod): Return `rmethod'.
7568 (finit_name): New global.
7569 (getDeclaredMethods): Check for finit_name.
7570 (_getMethods): Likewise.
7571 (getMethod): Only return public methods.
7573 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7574 jboolean and select correct ffi type on that basis.
7575 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7576 Constructor call always has `void' return type.
7578 2000-01-04 Tom Tromey <tromey@cygnus.com>
7580 * java/lang/Class.h (getSignature): Updated.
7581 * java/lang/Class.java (getSignature): Updated.
7582 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7584 (getConstructor): Ensure constructor is public.
7585 (_getConstructors): Check for public-ness of constructor when
7586 `declared' is false, not when it is true.
7588 2000-01-04 Warren Levy <warrenl@cygnus.com>
7590 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7592 (receive): Set the sender's address in the DatagramPacket.
7594 2000-01-04 Tom Tromey <tromey@cygnus.com>
7596 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7597 declaring class as return_type argument to
7598 _Jv_CallNonvirtualMethodA.
7599 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7600 constructor case, create object and use it as `this' argument.
7601 * java/lang/Class.h (_getConstructors): Declare.
7602 (_getFields): Declare.
7603 * java/lang/Class.java (getConstructors): Wrote.
7604 (_getConstructors): New native method.
7605 (getDeclaredConstructors): Wrote.
7606 (_getFields): Declare new native method.
7607 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7609 (getMethod): Work correctly when class is primitive.
7610 (getDeclaredMethods): Likewise. Compute offset using `method',
7612 (getDeclaredMethod): Likewise.
7613 (getConstructor): Wrote.
7614 (ConstructorClass): New define.
7615 (getDeclaredConstructor): Wrote.
7616 (_getConstructors): New method.
7617 (_getFields): New method.
7620 * Makefile.in: Rebuilt.
7621 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7623 * prims.cc: Remove `#pragma implementation'.
7624 * gcj/array.h: Remove `#pragma interface'.
7626 * prims.cc (_Jv_equaln): New function.
7627 * java/lang/Class.java (getSignature): Declare.
7628 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7629 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7631 (getSignature): New method.
7632 (getDeclaredMethod): Wrote.
7634 Include StringBuffer.h.
7635 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7636 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7638 (getSignature): Declare.
7639 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7640 (_Jv_equaln): Declare.
7641 (_Jv_CallNonvirtualMethodA): Declare.
7642 * Makefile.in: Rebuilt.
7643 * Makefile.am (nat_source_files): Added natConstructor.cc.
7644 (java/lang/reflect/Constructor.h): New target.
7645 * java/lang/reflect/natConstructor.cc: New file.
7646 * java/lang/reflect/Constructor.java (newInstance): Now native.
7647 (declaringClass): Renamed from decl_class.
7648 (offset): Renamed from index.
7649 (getType): New native method.
7650 (getModifiers): Now native.
7651 (getParameterTypes): Call getType if required.
7652 (hashCode): Include hash code from declaring class.
7653 (modifiers): Removed.
7654 (toString): Call getType if required.
7655 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7656 * java/lang/reflect/natMethod.cc (hack_call): New method.
7657 Removed `#if 0' around FFI code.
7658 Include <gnu/gcj/RawData.h>.
7659 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7660 IllegalArgumentException when argument object and class disagree.
7661 (_Jv_GetTypesFromSignature): New function.
7663 (ObjectClass): New define.
7664 (_Jv_CallNonvirtualMethodA): New function.
7665 * java/lang/reflect/Method.java (hack_trampoline): New method.
7666 (hack_call): New native method.