1 2001-09-16 Anthony Green <green@redhat.com>
3 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
5 2001-09-14 Tom Tromey <tromey@redhat.com>
7 * java/util/TimeZone.java: Updated list of timezones from
10 * java/lang/CloneNotSupportedException.java: Re-merged with
13 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15 * java/io/File.java (normalizePath): Use equals() not '==' for string
18 * java/util/Hashtable.java (Enumerator): Ensure that if
19 hasMoreElements() returns true, nextElement() will always return
20 something even if the table has been modified.
22 2001-09-12 Tom Tromey <tromey@redhat.com>
24 * Makefile.in: Rebuilt.
25 * Makefile.am (class-check): New target.
27 2001-09-11 Tom Tromey <tromey@redhat.com>
29 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
31 2001-09-10 Tom Tromey <tromey@redhat.com>
33 * java/util/Properties.java (load): Correctly read \u sequences.
34 Report from Anthony Green.
36 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
38 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
40 * configure: Re-generate.
42 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
44 * include/jvm.h (_Jv_AllocRawObj): New prototype.
45 * boehm.cc (_Jv_AllocRawObj): Implement.
46 * nogc.cc (_Jv_AllocRawObj): Likewise.
47 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
49 2001-09-06 Anthony Green <green@redhat.com>
51 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
52 redundant method calls.
53 (emptyLocale): New private member.
54 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
57 2001-09-06 Tom Tromey <tromey@redhat.com>
59 * java/text/RuleBasedCollator.java (clone): Rewrote.
60 (RuleBasedCollator(RuleBasedCollator)): Removed.
61 * java/text/MessageFormat.java: Re-merged from Classpath.
62 * java/text/DecimalFormat.java: Re-merged from Classpath.
64 2001-09-06 Anthony Green <green@redhat.com>
66 * include/jvm.h: Declare _Jv_RegisterResource.
67 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
68 gnu/gcj/protocol/core/Connection.java,
69 gnu/gcj/protocol/core/Handler.java,
70 gnu/gcj/protocol/core/CoreInputStream.java,
71 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
72 * java/net/URL.java (setURLStreamHandler): Use
73 gnu.gcj.protocol.core.Handler for the core protocol.
74 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
75 end of java.class.path.
76 * Makefile.am (ordinary_java_source_files): Add new java files.
77 (nat_source_files): Add new native code files.
78 * Makefile.in: Rebuilt.
80 2001-09-05 Tom Tromey <tromey@redhat.com>
82 * java/util/Properties.java: Re-merged from Classpath.
84 From Eric Blake, via Classpath:
85 * java/lang/String.java (CaseInsensitiveComparator): New class.
86 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
88 * java/util/Date.java: Re-merged with Classpath.
90 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
92 2001-09-05 Corey Minyard <minyard@acm.org>
93 Tom Tromey <tromey@redhat.com>
95 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
96 (_Jv_RegisterClassHookDefault): Throw error if a class is
99 2001-09-05 Tom Tromey <tromey@redhat.com>
101 * java/lang/natSystem.cc (init_properties): Default locale is
104 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
106 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
107 here, DecimalFormat.applyPattern() does not throw it.
109 2001-09-04 Tom Tromey <tromey@redhat.com>
111 * java/util/AbstractMap.java: Re-merged with Classpath.
112 * java/util/IdentityHashMap.java: Re-merged with Classpath.
114 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
115 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
116 gnu/gcj/text/LocaleData_en_US.java: Removed.
117 * java/text/DateFormatSymbols.java (clone): Use Classpath
119 (equals): Simplified.
120 (DateFormatSymbols): Look in gnu.java.locale for information.
121 (DateFormatSymbols(DateFormatSymbols)): Removed.
122 (safeGetResource): Removed.
123 (DateFormatSymbols): Throws MissingResourceException.
124 (ampmsDefault, erasDefault, localPatternCharsDefault,
125 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
126 weekdaysDefault, zoneStringsDefault): Removed.
127 * java/text/Collator.java (getAvailableLocales): Use modified
128 Classpath implementation.
129 (getInstance): Look in gnu.java.locale for information.
131 * java/text/MessageFormat.java: Reindented.
133 * java/text/FieldPosition.java: Merged with Classpath.
134 * java/text/ParsePosition.java: Merged with Classpath.
135 * java/text/Format.java: Merged with Classpath.
136 * java/text/StringCharacterIterator.java
137 (StringCharacterIterator(StringCharacterIterator,int,int)): New
138 constructor from Classpath.
139 * java/text/Annotation.java,
140 java/text/AttributedCharacterIterator.java,
141 java/text/AttributedString.java,
142 java/text/AttributedStringIterator.java: New from Classpath.
143 * java/text/CharacterIterator.java: Copied from Classpath.
144 * java/text/ChoiceFormat.java: Reindented.
146 * gnu/java/text/BaseBreakIterator.java,
147 gnu/java/text/CharacterBreakIterator.java,
148 gnu/java/text/LineBreakIterator.java,
149 gnu/java/text/LocaleData_en.java,
150 gnu/java/text/LocaleData_en_US.java,
151 gnu/java/text/SentenceBreakIterator.java,
152 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
153 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
155 * java/text/BreakIterator.java (getAvailableLocales): Use
156 Classpath implementation.
157 (getInstance): Look in gnu.java.locale for information.
158 (getCharacterInstance, getLineInstance, getSentenceInstance,
159 getWordInstance): Look in gnu.java.text for implementations.
160 * java/text/DecimalFormatSymbols.java: Reindented
161 (clone): Use Classpath implementation.
162 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
163 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
165 * java/text/DateFormat.java: Merged with Classpath.
166 (getAvailableLocales): Use Classpath implementation.
167 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
168 (computeInstance): Look in gnu.java.locale for information.
169 * java/text/NumberFormat.java: Reindented.
170 (computeInstance): Look in gnu.java.locale for information.
171 (getAvailableLocales): Use implementation from Classpath.
172 (setMaximumIntegerDigits): Likewise.
173 (setMinimumIntegerDigits): Likewise.
174 (setMaximumFractionDigits): Likewise.
176 * java/text/DecimalFormat.java: Reindented.
177 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
178 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
179 * Makefile.in: Rebuilt.
180 * Makefile.am (ordinary_java_source_files): Added all new files.
181 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
182 * java/security/spec/AlgorithmParameterSpec.java,
183 java/security/spec/KeySpec.java: Re-merged with Classpath.
185 Fix for PR libgcj/4213:
186 * Makefile.am (ordinary_java_source_files): Added new file.
187 * gnu/gcj/text/LocaleData.java: New file.
189 2001-09-03 Tom Tromey <tromey@redhat.com>
191 * java/lang/reflect/natField.cc (set): Allow for case when the
192 value is null. Fixes PR libgcj/4208.
194 * gcj/javaprims.h: Regenerated class list.
195 * java/lang/IllegalThreadStateException.java,
196 java/lang/InstantiationException.java: Minor comment tweaks to
197 satisfy libgcj `classes.pl' script.
199 2001-09-01 Tom Tromey <tromey@redhat.com>
201 * Makefile.in: Rebuilt.
202 * Makefile.am (core_java_source_files): Added
203 UnsupportedClassVersionError.
204 * java/lang/UnsupportedClassVersionError.java: New file from
207 * java/io/CharConversionException.java, java/io/EOFException.java,
208 java/io/FileNotFoundException.java, java/io/IOException.java,
209 java/io/InterruptedIOException.java,
210 java/io/ObjectStreamException.java,
211 java/io/OptionalDataException.java,
212 java/io/StreamCorruptedException.java,
213 java/io/SyncFailedException.java,
214 java/io/UTFDataFormatException.java,
215 java/io/UnsupportedEncodingException.java,
216 java/lang/AbstractMethodError.java,
217 java/lang/ArithmeticException.java,
218 java/lang/ArrayIndexOutOfBoundsException.java,
219 java/lang/ArrayStoreException.java,
220 java/lang/ClassCastException.java,
221 java/lang/ClassCircularityError.java,
222 java/lang/ClassFormatError.java,
223 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
224 java/lang/Exception.java,
225 java/lang/ExceptionInInitializerError.java,
226 java/lang/IllegalAccessError.java,
227 java/lang/IllegalAccessException.java,
228 java/lang/IllegalArgumentException.java,
229 java/lang/IllegalMonitorStateException.java,
230 java/lang/IllegalStateException.java,
231 java/lang/IllegalThreadStateException.java,
232 java/lang/IncompatibleClassChangeError.java,
233 java/lang/IndexOutOfBoundsException.java,
234 java/lang/InstantiationError.java,
235 java/lang/InstantiationException.java,
236 java/lang/InternalError.java, java/lang/InterruptedException.java,
237 java/lang/LinkageError.java,
238 java/lang/NegativeArraySizeException.java,
239 java/lang/NoClassDefFoundError.java,
240 java/lang/NoSuchFieldError.java,
241 java/lang/NoSuchFieldException.java,
242 java/lang/NoSuchMethodError.java,
243 java/lang/NoSuchMethodException.java,
244 java/lang/NullPointerException.java,
245 java/lang/NumberFormatException.java,
246 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
247 java/lang/SecurityException.java,
248 java/lang/StackOverflowError.java,
249 java/lang/StringIndexOutOfBoundsException.java,
250 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
251 java/lang/UnsatisfiedLinkError.java,
252 java/lang/UnsupportedOperationException.java,
253 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
254 java/lang/reflect/InvocationTargetException.java,
255 java/net/BindException.java, java/net/ConnectException.java,
256 java/net/MalformedURLException.java,
257 java/net/NoRouteToHostException.java,
258 java/net/ProtocolException.java, java/net/SocketException.java,
259 java/net/UnknownHostException.java,
260 java/net/UnknownServiceException.java,
261 java/text/ParseException.java: Copied from Classpath, thanks to
262 Mark Wielaard who did the merge.
264 * java/lang/System.java (getProperty): Use single argument form of
265 SecurityManager.checkPropertyAccess.
266 * Makefile.in: Rebuilt.
267 * Makefile.am (core_java_source_files): Added VMSecurityManager.
268 * java/lang/VMSecurityManager.java: New file.
269 * java/lang/SecurityManager.java: Merged with Classpath.
271 2001-08-31 Per Bothner <per@bothner.com>
273 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
274 (_Jv_RegisterClassHookDefault): Likewise.
275 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
276 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
277 (_Jv_RegisterClassHookDefault): New.function.
278 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
280 * java/lang/ClassLoader.java (system): Remove static field.
281 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
282 directly instead of using it to set the system field.
283 (loadClass): Use VMClassLoader.instance instead of system field.
284 (findSystemClass): Similar.
285 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
286 than ClassLoader::system which no longer exists.
287 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
289 2001-08-31 Tom Tromey <tromey@redhat.com>
291 * java/io/BufferedReader.java, java/io/ObjectInput.java,
292 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
293 Re-merged with Classpath.
295 Re-merge with Classpath:
296 * java/util/Comparator (equals): Added.
297 * java/io/PipedWriter.java (write): Changed argument to `int'.
299 * java/io/FileDescriptor.java (FileDescriptor()): New
301 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
303 * Makefile.in: Rebuilt.
304 * Makefile.am (ordinary_java_source_files): Removed
305 EnumerationChain, added DoubleEnumeration.
306 (nat_source_files): Added natResourceBundle.cc.
307 * java/util/natResourceBundle.cc: New file.
308 * gnu/java/util/DoubleEnumeration.java: New file.
309 * gnu/gcj/util/EnumerationChain.java: Removed.
310 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
311 * java/util/ResourceBundle.java: Merged with Classpath.
312 * java/util/StringTokenizer.java: Merged with Classpath.
313 * java/util/Locale.java: Merged with Classpath.
314 * java/util/Random.java: Merged with Classpath.
315 * java/util/PropertyResourceBundle.java: Merged with Classpath.
316 * java/util/ListResourceBundle.java: Merged with Classpath.
317 * java/util/ConcurrentModificationException.java: Re-merged with
319 * java/util/EmptyStackException.java: Likewise.
320 * java/util/MissingResourceException.java: Likewise.
321 * java/util/NoSuchElementException.java: Likewise.
322 * java/util/TooManyListenersException.java: Likewise.
324 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
325 * java/io/OptionalDataException.java: Merged with Classpath.
327 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
329 * exception.cc (PERSONALITY_FUNCTION): Simplify
332 2001-08-31 Tom Tromey <tromey@redhat.com>
334 * java/io/ByteArrayInputStream.java: Merged with Classpath.
336 2001-08-30 Tom Tromey <tromey@redhat.com>
338 * java/io/BufferedReader.java: Re-merged with Classpath.
340 2001-08-28 Per Bothner <per@bothner.com>
342 * java/math/BigInteger.java (init(int,Random)): New method.
343 Move body of constructor <init>(int,Random)) here.
344 Re-write it to avoid constructing unneeded temporaries.
345 (<init>(int,int,Random)): Use new init method to avoid constructing
346 extra temporary BigIntegers.
348 2001-08-27 Tom Tromey <tromey@redhat.com>
350 * java/rmi/activation/Activatable.java,
351 java/rmi/activation/ActivateFailedException.java,
352 java/rmi/activation/ActivationDesc.java,
353 java/rmi/activation/ActivationException.java,
354 java/rmi/activation/ActivationGroup.java,
355 java/rmi/activation/ActivationGroupDesc.java,
356 java/rmi/activation/ActivationGroupID.java,
357 java/rmi/activation/ActivationID.java,
358 java/rmi/activation/ActivationInstantiator.java,
359 java/rmi/activation/ActivationMonitor.java,
360 java/rmi/activation/ActivationSystem.java,
361 java/rmi/activation/Activator.java,
362 java/rmi/activation/UnknownGroupException.java,
363 java/rmi/activation/UnknownObjectException.java,
364 java/rmi/AccessException.java,
365 java/rmi/AlreadyBoundException.java,
366 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
367 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
368 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
369 java/rmi/NotBoundException.java,
370 java/rmi/RMISecurityException.java,
371 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
372 java/rmi/RemoteException.java, java/rmi/ServerError.java,
373 java/rmi/ServerException.java,
374 java/rmi/ServerRuntimeException.java,
375 java/rmi/StubNotFoundException.java,
376 java/rmi/UnexpectedException.java,
377 java/rmi/UnknownHostException.java,
378 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
379 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
380 java/rmi/registry/LocateRegistry.java,
381 java/rmi/registry/Registry.java,
382 java/rmi/registry/RegistryHandler.java,
383 java/rmi/server/ExportException.java,
384 java/rmi/server/LoaderHandler.java,
385 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
386 java/rmi/server/Operation.java,
387 java/rmi/server/RMIClassLoader.java,
388 java/rmi/server/RMIClientSocketFactory.java,
389 java/rmi/server/RMIFailureHandler.java,
390 java/rmi/server/RMIServerSocketFactory.java,
391 java/rmi/server/RMISocketFactory.java,
392 java/rmi/server/RemoteCall.java,
393 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
394 java/rmi/server/RemoteServer.java,
395 java/rmi/server/RemoteStub.java,
396 java/rmi/server/ServerCloneException.java,
397 java/rmi/server/ServerNotActiveException.java,
398 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
399 java/rmi/server/SkeletonMismatchException.java,
400 java/rmi/server/SkeletonNotFoundException.java,
401 java/rmi/server/SocketSecurityException.java,
402 java/rmi/server/UID.java,
403 java/rmi/server/UnicastRemoteObject.java,
404 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
405 gnu/java/rmi/dgc/DGCImpl_Skel.java,
406 gnu/java/rmi/dgc/DGCImpl_Stub.java,
407 gnu/java/rmi/registry/RegistryImpl.java,
408 gnu/java/rmi/registry/RegistryImpl_Skel.java,
409 gnu/java/rmi/registry/RegistryImpl_Stub.java,
410 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
411 gnu/java/rmi/server/ProtocolConstants.java,
412 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
413 gnu/java/rmi/server/RMIHashes.java,
414 gnu/java/rmi/server/RMIObjectInputStream.java,
415 gnu/java/rmi/server/RMIObjectOutputStream.java,
416 gnu/java/rmi/server/UnicastConnection.java,
417 gnu/java/rmi/server/UnicastConnectionManager.java,
418 gnu/java/rmi/server/UnicastRef.java,
419 gnu/java/rmi/server/UnicastRemoteCall.java,
420 gnu/java/rmi/server/UnicastRemoteStub.java,
421 gnu/java/rmi/server/UnicastServer.java,
422 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
423 Kaffe. Relabelled classes to fit into Classpath tree.
424 * Makefile.in: Rebuilt.
425 * Makefile.am (rmi_java_source_files): New macro.
426 (ordinary_java_source_files): Reference it.
427 (bin_PROGRAMS): Added rmic and rmiregistry.
428 (rmic_SOURCES): New macro.
429 (EXTRA_rmic_SOURCES): Likewise.
430 (rmic_LDFLAGS): Likewise.
431 (rmic_LINK): Likewise.
432 (rmic_LDADD): Likewise.
433 (rmic_DEPENDENCIES): Likewise.
434 (rmiregistry_SOURCES): New macro.
435 (EXTRA_rmiregistry_SOURCES): Likewise.
436 (rmiregistry_LDFLAGS): Likewise.
437 (rmiregistry_LINK): Likewise.
438 (rmiregistry_LDADD): Likewise.
439 (rmiregistry_DEPENDENCIES): Likewise.
441 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
443 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
445 * Makefile.am: New friends for java/lang/Thread.h.
446 * prims.cc (runFirst): Removed.
447 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
448 (_Jv_RunMain): Now takes either a klass or class name parameter.
449 Create a gnu.gcj.runtime.FirstThread and attach the native thread
450 to that, then run it using _Jv_ThreadRun. Remove special handling of
451 jar files, instead pass is_jar parameter through to FirstThread.
452 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
453 of _Jv_AttachCurrentThread.
454 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
455 (run): New method. Take care of looking up main class manifest
456 attribute and calling forName if neccessary. Then call call_main.
457 (call_main): New native method.
458 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
459 relocated from prims.cc. Look up and call main method.
460 * java/lang/Thread.java (run_): Removed.
461 * java/lang/natThread.cc (run_): Renamed to...
462 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
463 (_Jv_NotifyThreadStart): here. New function.
464 (countStackFrames, destroy, resume, suspend, stop): Throw
465 UnsupportedOperationExceptions rather than JvFail'ing.
466 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
467 Existing version wraps new variant.
470 2001-08-23 Tom Tromey <tromey@redhat.com>
472 * java/lang/reflect/Field.java (toString): Use
473 Method.appendClassName.
474 * java/lang/reflect/Constructor.java (toString): Use
475 Method.appendClassName.
476 * java/lang/reflect/Method.java: Reindented.
477 (appendClassName): New method.
479 * defineclass.cc (handleMethod ): Initialize `throws' field of
481 (read_one_method_attribute): Handle Exceptions attribute.
482 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
483 (ObjectClass): Removed.
484 (getType): Compute `exception_types'.
485 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
487 2001-08-21 Anthony Green <green@redhat.com>
489 * java/lang/natClassLoader.cc (findClass): Search for
490 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
492 2001-08-21 Jeff Sturm <jsturm@one-point.com>
494 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
497 2001-08-20 Tom Tromey <tromey@redhat.com>
499 * java/awt/GridBagConstraints.java: Removed comment.
501 * jni.cc (nathash, nathash_count, nathash_size): New globals.
502 (DELETED_ENTRY): New define.
503 (hash): New function.
504 (nathash_find_slot): Likewise.
505 (natrehash): Likewise.
506 (nathash_add): Likewise.
507 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
509 (nathash_find): New function.
510 (_Jv_LookupJNIMethod): Use it. Synchronize body.
511 (call): Synchronize around assignment.
513 2001-08-17 Jeff Sturm <jsturm@one-point.com>
515 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
516 starting from zero offset.
518 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
520 * boehm.cc: Include gc_local_alloc.h if appropriate.
521 (GC_GENERIC_MALLOC): Don't define.
522 (MAYBE_MARK): Redefine for GC 6.0.
523 (_Jv_MarkObj): Mark class differently.
524 (_Jv_AllocArray): Use GC_generic_malloc.
526 2001-08-17 Mark J Roberts <mjr@anarcast.net>
528 * java/math/BigInteger.java (randBytes): New method.
529 (BigInteger(int,Random)): Use randBytes.
531 2001-08-17 Tom Tromey <tromey@redhat.com>
533 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
535 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
537 * BigInteger.java: fix right shifts by nonzero multiples of 32.
539 2001-08-15 Tom Tromey <tromey@redhat.com>
541 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
542 (local_ref_table, global_ref_table): Now IdentityHashMap.
543 (_Jv_JNI_Init): Updated for new types.
544 (mark_for_gc): Likewise.
545 (unmark_for_gc): Likewise.
546 * gcj/javaprims.h: Rebuilt class list.
547 * Makefile.in: Rebuilt.
548 * Makefile.am (core_java_source_files): Added new file.
549 * java/util/IdentityHashMap.java: New file.
551 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
554 2001-08-09 Tom Tromey <tromey@redhat.com>
556 * java/awt/image/SampleModel.java (getPixel): Set correct array
557 element. From Chris Meyer.
559 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
561 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
562 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
564 2001-08-06 Tom Tromey <tromey@redhat.com>
566 * java/io/InputStreamReader.java (refill): Only call refill on
567 BufferedInputStream when appropriate constraints are met.
569 2001-08-05 Tom Tromey <tromey@redhat.com>
571 * java/io/StringWriter.java: Merged with Classpath.
572 * java/io/InputStream.java: Merged with Classpath.
573 * java/io/OutputStream.java: Merged with Classpath.
574 * java/io/PushbackInputStream.java: Merged with Classpath.
575 * java/io/CharArrayReader.java: Merged with Classpath.
576 * java/io/CharArrayWriter.java: Merged with Classpath.
578 2001-08-02 Tom Tromey <tromey@redhat.com>
580 * prims.cc (JNI_OnLoad): Don't declare.
581 (_JNI_OnLoad): Don't define.
582 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
584 2001-08-02 Tom Tromey <tromey@redhat.com>
586 * java/io/RandomAccessFile.java (seek): Let seek go past end of
588 (skipBytes): Don't fail if seeking past end of file.
589 * java/io/FileInputStream.java (skip): Don't fail if seeking past
591 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
593 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
595 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
597 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
599 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
601 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
602 to initialize global_ref_table/local_ref_table.
604 2001-08-02 Tom Tromey <tromey@redhat.com>
606 * configure: Rebuilt.
607 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
610 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
612 * include/posix.h (_POSIX_PII_SOCKET): Define.
613 * configure.in (HAVE_SOCKLEN_T): Define.
614 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
616 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
617 (java::net::PlainSocketImpl::accept): Use it.
618 Fixes PRs libgcj/3694, libgcj/3696.
620 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
621 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
622 * configure, include/config.h.in: Regenerate.
623 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
624 (mcastGrp): Likewise.
625 (java::net::PlainDatagramSocketImpl::setOption): Guard against
626 missing IPV6_MULTICAST_IF.
627 Fixes PR libgcj/3694.
629 2001-08-01 Jeff Sturm <jsturm@one-point.com>
631 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
633 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
635 * Makefile.in: Rebuilt.
636 * Makefile.am (GCJLINK): Added --tag=GCJ.
639 2001-07-30 Tom Tromey <tromey@redhat.com>
641 * java/util/Date.java: Re-merged with Classpath.
643 2001-07-30 Jeff Sturm <jsturm@one-point.com>
645 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
646 (_Jv_bind): New static function.
647 (bind): Use _Jv_bind.
648 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
649 (_Jv_bind, _Jv_connect): New static functions.
650 (bind): Use _Jv_bind.
651 (connect): Use _Jv_connect.
653 2001-07-30 Tom Tromey <tromey@redhat.com>
654 Corey Minyard <minyard@acm.org>
656 * gnu/gcj/convert/natIconv.cc (done): New methods.
657 * gnu/gcj/convert/Output_iconv.java (done): New method.
658 * gnu/gcj/convert/Input_iconv.java (done): New method.
659 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
661 (getDefaultEncodingClass): Removed.
662 (getDefaultEncoder): Use getEncoder.
664 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
666 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
668 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
670 (getDefaultDecodingClass): Removed.
671 (getDefaultDecoder): Use getDecoder.
672 (getDecoder): Look up decoder in cache.
674 * java/lang/natString.cc (init): Call `done' on converter.
675 (getBytes): Likewise.
677 2001-07-30 Tom Tromey <tromey@redhat.com>
679 * java/lang/Integer.java: Merged with Classpath.
681 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
683 * java/util/GregorianCalendar.java (GregorianCalendar): Call
684 setTimeInMillis() to set the default/current time.
686 2001-07-29 Mark Wielaard <mark@klomp.org>
688 * HACKING: add description on updating namespace
690 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
692 * java/util/Calendar.java (set): Never recompute fields here. They
693 will already be set if someone set time explicitly, and it can cause
694 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
695 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
696 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
698 * java/text/SimpleDateFormat.java (defaultCentury): New field.
699 (readObject): Call set2DigitYearStart if appropriate so that
700 defaultCentury is calculated.
701 (SimpleDateFormat): Don't bother clearing calendar here. Call
702 computeCenturyStart().
703 (set2DigitYearStart): Calculate and set defaultCentury.
704 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
706 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
707 2 numeric digits, use the 80-20 heuristic to parse the value into a
708 default century based on defaultCenturyStart.
709 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
711 2001-07-25 Tom Tromey <tromey@redhat.com>
713 * Makefile.in: Rebuilt.
714 * Makefile.am (libgcj.jar): Correctly fail when bytecode
717 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
719 * prims.cc (_JNI_OnLoad): New function.
720 (JNI_OnLoad): Use it.
721 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
723 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
725 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
726 Makefile.in: Regenerate.
728 2001-07-24 Tom Tromey <tromey@redhat.com>
730 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
733 2001-07-23 Tom Tromey <tromey@redhat.com>
735 * gcj/javaprims.h: Rebuilt class list.
736 * Makefile.in: Rebuilt.
737 * Makefile.am (core_java_source_files): Added VMClassLoader.
738 * java/lang/VMClassLoader.java: New file.
739 * java/lang/Boolean.java: Merged with Classpath.
740 * java/lang/Byte.java: Merged with Classpath.
741 * java/lang/Integer.java: Merged with Classpath.
742 * java/lang/Long.java: Merged with Classpath.
743 * java/lang/Number.java: Merged with Classpath.
744 * java/lang/Short.java: Merged with Classpath.
746 2001-07-22 Jeff Sturm <jsturm@one-point.com>
748 * configure.host: Enable hash synchronization for alpha*-*.
749 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
751 * java/lang/natObject.cc (compare_and_swap, release_set,
752 compare_and_swap_release): Added inline functions for alpha.
754 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
756 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
757 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
758 back to old RFC 2133 variants if missing.
760 2001-07-18 Tom Tromey <tromey@redhat.com>
762 * java/io/natFileWin32.cc (_access): Renamed.
764 * java/io/natFile.cc (_access): Renamed.
766 * java/io/File.java (access, stat): Add leading `_' to name.
769 2001-07-18 Tom Tromey <tromey@redhat.com>
772 * libgcj.spec.in (*lib): Added LIBICONV.
773 * configure: Rebuilt.
774 * configure.in: Call AM_ICONV. Don't check for iconv function.
775 Add parameters to JV_HASH_SYNCHRONIZATION define.
776 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
778 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
780 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
781 not by setting its size field.
783 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
785 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
788 2001-07-12 Tom Tromey <tromey@redhat.com>
789 David Brownell <david-b@pacbell.net>
791 Fix for PR libgcj/3426:
792 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
794 (read): Throw exception if character conversion fails.
795 * java/io/BufferedInputStream.java (refill): Now package-private.
796 * java/io/InputStreamReader.java (ready): Simplified.
797 (refill): New method.
800 2001-07-12 Tom Tromey <tromey@redhat.com>
802 Report from Henner Zeller:
803 * java/io/FileOutputStream.java (FileOutputStream): Throw
804 FileNotFoundException, not IOException.
806 2001-07-10 Anthony Green <green@redhat.com>
808 * Makefile.in: Rebuilt.
809 * Makefile.am: Add new files.
810 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
811 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
812 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
813 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
814 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
815 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
816 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
817 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
818 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
819 org/w3c/dom/ranges/DocumentRange.java,
820 org/w3c/dom/ranges/Range.java,
821 org/w3c/dom/ranges/RangeException.java,
822 org/w3c/dom/traversal/DocumentTraversal.java,
823 org/w3c/dom/traversal/NodeFilter.java,
824 org/w3c/dom/traversal/NodeIterator.java,
825 org/w3c/dom/traversal/TreeWalker.java,
826 org/xml/sax/ext/DeclHandler.java,
827 org/xml/sax/ext/LexicalHandler.java,
828 org/xml/sax/helpers/AttributeListImpl.java,
829 org/xml/sax/helpers/AttributesImpl.java,
830 org/xml/sax/helpers/DefaultHandler.java,
831 org/xml/sax/helpers/LocatorImpl.java,
832 org/xml/sax/helpers/NamespaceSupport.java,
833 org/xml/sax/helpers/ParserAdapter.java,
834 org/xml/sax/helpers/ParserFactory.java,
835 org/xml/sax/helpers/XMLFilterImpl.java,
836 org/xml/sax/helpers/XMLReaderAdapter.java,
837 org/xml/sax/helpers/XMLReaderFactory.java,
838 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
839 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
840 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
841 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
842 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
843 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
844 org/xml/sax/SAXNotRecognizedException.java,
845 org/xml/sax/SAXNotSupportedException.java,
846 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
847 org/xml/sax/XMLReader.java: New files.
849 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
851 * Makefile.am: Added `java/lang/ThreadLocal.java'.
852 * Makefile.in: Regenerate.
853 * java/lang/ThreadLocal.java: Initial import.
855 2001-07-07 Jeff Sturm <jsturm@one-point.com>
857 * Makefile.am (libgcj.jar): Don't recursively make
858 built_java_source_files. Avoid long command lines.
859 Don't change to $(srcdir) to invoke javac.
860 (libgcj.la, libgcjx.la); Avoid long command lines.
861 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
862 * Makefile.in: Rebuilt.
864 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
866 * include/i386-signal.h: Don't do anything with unsigned divide
867 overflow except throw an exception.
869 2001-07-05 Tom Tromey <tromey@redhat.com>
872 * java/lang/Class.h (Class(void)): Now private. Removed
873 implementation. From dmorsberger@sensysdl.com.
875 2001-07-02 Tom Tromey <tromey@redhat.com>
877 Fix for PR bootstrap/3281:
878 * aclocal.m4, configure: Rebuilt.
879 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
880 Correctly compute libgcj_basedir.
881 (mkinstalldirs): Define and subst.
883 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
886 * java/io/LineNumberReader.java (reset): Pass correct arguments to
889 2001-06-27 Tom Tromey <tromey@redhat.com>
891 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
894 2001-06-25 Tom Tromey <tromey@redhat.com>
896 * scripts/encodings.pl: Generate lower-case names. Updated URL
897 for `character-sets' file.
898 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
900 Rebuilt list of aliases.
902 2001-06-25 Tom Tromey <tromey@redhat.com>
904 * java/io/natFileDescriptorPosix.cc (open): Change error message
905 formatting. From David Brownell.
907 2001-06-21 Tom Tromey <tromey@redhat.com>
909 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
912 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
914 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
915 extraneous/malformed sign word.
917 2001-06-15 Tom Tromey <tromey@redhat.com>
919 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
921 2001-06-15 Tom Tromey <tromey@redhat.com>
923 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
924 NULL if no library on the list has the symbol.
925 (init): Call add_library on the program itself.
926 * prims.cc (JvRunMain): Initialize Runtime before searching for
928 (_Jv_RunMain): Likewise.
930 2001-06-15 Tom Tromey <tromey@redhat.com>
932 * jni.cc (ClassClass): Removed; updated all users.
933 (ObjectClass): Likewise.
934 (ThrowableClass): Likewise.
935 (MethodClass): Likewise.
936 (ThreadGroupClass): Likewise.
937 (local_ref_table): Renamed from `ref_table'.
938 (global_ref_table): New global.
939 (_Jv_JNI_Init): Initialize both ref tables.
940 (mark_for_gc): Added `ref_table' parameter.
941 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
943 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
944 (_Jv_JNI_DeleteGlobalRef): Likewise.
945 (_Jv_JNI_DeleteLocalRef): Likewise.
946 (_Jv_JNI_NewLocalRef): Likewise.
947 (_Jv_JNI_PopLocalFrame): Likewise.
948 (_Jv_JNI_GetStringChars): Likewise.
949 (_Jv_JNI_ReleaseStringChars): Likewise.
950 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
951 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
953 2001-06-14 Tom Tromey <tromey@redhat.com>
955 Fix for PR libgcj/3144:
956 * java/util/Date.java: Merged with Classpath.
958 2001-06-12 Tom Tromey <tromey@redhat.com>
960 * aclocal.m4, configure: Rebuilt.
961 * acinclude.m4: Find configure.host in srcdir.
963 2001-06-07 Tom Tromey <tromey@redhat.com>
965 Fix for PR libgcj/3059:
966 * java/lang/natSystem.cc (init_properties): Define `java.home'.
967 * Makefile.in: Rebuilt.
968 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
970 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
972 * exception.cc (cstdlib): Replaces stdlib.h.
973 (_Jv_Throw): Use std::abort().
974 (PERSONALITY_FUNCTION): Likewise.
976 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
978 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
979 nothing, as in autoconf 2.50.
980 * aclocal.m4, configure: Rebuilt.
982 2001-06-08 Tom Tromey <tromey@redhat.com>
984 * configure: Rebuilt.
985 * configure.in: Compute new aux dir using `pwd'.
987 2001-06-07 Tom Tromey <tromey@redhat.com>
989 For PR bootstrap/3075:
990 * configure, aclocal.m4, Makefile.am: Rebuilt.
991 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
992 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
993 relative to libgcj_basedir.
994 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
995 AC_CANONICAL_SYSTEM here.
996 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
998 ($(extra_headers)): New target.
1000 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1001 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1003 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1004 table index is within allowed bounds. Ensure that we dont try to access
1005 class itable at a negative offset. Avoid an ancestor table lookup if
1006 source is a primitive type class.
1007 (isInstance): Remove redundant isPrimitive() check.
1009 2001-06-04 Tom Tromey <tromey@redhat.com>
1011 * java/security/PublicKey.java: Extend Key.
1012 * java/security/PrivateKey.java: Extend Key.
1014 2001-06-02 Anthony Green <green@redhat.com>
1016 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1017 alternate when USE_LTDL not defined.
1019 2001-06-02 Anthony Green <green@redhat.com>
1021 * configure: Rebuild.
1022 * configure.in: Remove data_start hack.
1023 * libgcj.spec.in: Ditto.
1024 * Makefile.in: Rebuild.
1025 * Makefile.am: Ditto.
1026 * libgcjdata.c: Remove.
1028 2001-06-02 Anthony Green <green@redhat.com>
1030 * configure: Rebuild.
1031 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1032 --without-libffi option. Tweak --disable-java-net processing.
1033 * Makefile.in: Rebuild.
1034 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1035 * include/config.h.in: Rebuild.
1036 * acconfig.h (USE_LIBFFI): Define.
1037 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1039 2001-06-02 Anthony Green <green@redhat.com>
1041 * configure: Rebuilt.
1042 * configure.in: Test for sigaction on native builds.
1043 * prims.cc: Check HAVE_SIGACTION.
1044 * include/config.h.in: Rebuilt.
1046 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1048 * natFile.cc (get_entry): Removed functions.
1049 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1050 Allocate enough storage for d_name if using readdir_r.
1052 2001-05-31 Tom Tromey <tromey@redhat.com>
1054 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1056 (write): Loop until write completes. From Corey Minyard.
1058 2001-05-29 Laurent Guerby <guerby@acm.org>
1060 * java/awt/geom/Rectangle2D.java: fix doc typo.
1062 2001-05-31 Tom Tromey <tromey@redhat.com>
1064 * java/sql/DriverManager.java (getDrivers): Handle case where
1065 driver's class loader is null. From Corey Minyard.
1067 2001-05-29 Tom Tromey <tromey@redhat.com>
1069 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1071 * configure: Rebuilt.
1072 * configure.in: Only add multilib support code if we just rebuilt
1075 2001-05-29 Andrew Haley <aph@redhat.com>
1077 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1078 pointer: the dwarf unwinder in libgcc will do everything that's
1080 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1081 more than we absolutely need to.
1082 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1083 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1085 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1087 * configure: Rebuilt.
1088 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1090 (SIGNAL_HANDLER): Use siginfo style handler.
1091 (INIT_SEGV): Likewise.
1092 (INIT_FPE): Likewise.
1093 * include/ppc-signal.h: Delete whole file.
1095 2001-05-24 Tom Tromey <tromey@redhat.com>
1097 * java/lang/natString.cc (init): Throw
1098 ArrayIndexOutOfBoundsException.
1099 (getChars): Likewise.
1100 (getBytes): Likewise.
1101 (valueOf): Likewise.
1103 * configure.in: Only allow hash synchronization when POSIX threads
1105 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1106 of sync info object.
1108 2001-05-23 Tom Tromey <tromey@redhat.com>
1110 * Makefile.in: Rebuilt.
1111 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1113 Revert patch of 2001-05-21:
1114 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1115 (libgcj_la_LIBADD): Likewise.
1116 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1117 (libgcjx_la_LIBADD): Likewise.
1119 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1120 * gcj/Makefile.in: Rebuilt.
1121 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1122 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1123 * gcj/libgcj-config.h.in: New file.
1124 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1125 * configure: Rebuilt.
1126 * configure.in: Enable hash synchronization by default on some
1128 (HASH_SYNC_SPEC): New subst.
1129 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1130 Correctly use `test -z' instead of `test -n' in a couple places.
1131 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1133 * configure.host (enable_java_net_default): Initialize.
1134 (enable_hash_synchronization_default): New variable.
1136 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1138 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1139 synchronization in use.
1140 (_Jv_MarkArray): Likewise.
1141 (_Jv_AllocBytes): Don't check return result.
1142 (handle_out_of_memory): New function.
1143 (_Jv_InitGC): Set GC_oom_fn.
1144 (trace_one_vtable): New global.
1145 (_Jv_AllocTraceOne): New function.
1146 * configure.in: Added --enable-hash-synchronization.
1147 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1148 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1149 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1150 (_Jv_AllocArray): Likewise.
1151 (_Jv_AllocBytes): Likewise.
1152 (_Jv_AllocPtrFreeObject): New function.
1153 (_Jv_AllocTraceOne): Likewise.
1154 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1156 (self_cache): New global.
1157 (_Jv_ThreadSelf_out_of_line): New function.
1158 * prims.cc (_Jv_AllocBytesChecked): Removed.
1159 (_Jv_ThrowNoMemory): New function.
1160 (_Jv_AllocObject): Don't check for null return from allocator.
1161 (_Jv_NewObjectArray): Likewise.
1162 (_Jv_AllocPtrFreeObject): New function.
1163 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1164 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1165 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1166 * include/boehm-gc.h (_Jv_AllocObj): Define.
1167 (_Jv_AllocPtrFreeObj): Define.
1168 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1169 (_Jv_ThrowNoMemory): Declare.
1170 (_Jv_AllocTraceOne): Declare.
1171 (_Jv_AllocBytesChecked): Removed.
1172 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1173 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1174 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1176 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1178 * java/lang/Object.h (sync_info): Conditional upon presence of
1179 hash synchronization.
1180 * java/lang/natObject.cc: Much new code to handle thin locks and
1181 hash synchronization.
1182 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1185 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1187 * gij.cc (version): Update copyright year.
1189 2001-05-22 Anthony Green <green@redhat.com>
1191 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1194 2001-05-21 Per Bothner <per@bothner.com>
1196 Implement invocation interface; don't create new thread for main.
1197 * java/lang/Thread.java (gen_name): Make native.
1198 (<init>(Thread,THreadGroup,Runnable,String)): New private
1199 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1200 * java/lang/natThread.cc (gen_name): New implementation.
1201 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1202 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1203 (_Jv_CreateJavaVM): New runtime initialization procedure.
1204 (runFirst): New proecdure - mostly code from old FirstThread::run.
1205 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1206 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1207 JvDetachCurrentThread): New inline wrappers.
1208 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1209 _Jv_DetachCurrentThread): New declarations.
1210 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1211 (getMain): new static method.
1212 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1213 by runFirst in prims.cc.
1214 (java/lang/Thread.h): Update for new invocation interface.
1215 * include/posix-threads.h (_Jv_ThreadRegister,
1216 _Jv_ThreadUnRegister): New declarations.
1217 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1218 (really_start): Use new _Jv_ThreadRegister.
1219 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1220 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1221 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1222 Complain of called when _Jv_OnlyThread already set.
1223 (_Jv_ThreadStart): Always JvFail.
1224 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1225 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1226 * win32-threads.cc (struct starter): Remove objet field -
1227 we use _Jv_Thread_t's new thread_obj field instead.
1228 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1229 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1230 (really_start): Use new _Jv_ThreadRegister.
1231 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1232 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1233 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1234 Removed - no longer needed with new invocation interface.
1235 * Makefile.am: Update for removed/added files.
1237 2001-05-21 Per Bothner <per@bothner.com>
1239 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1240 (libgcj_la_LIBADD): Likewise.
1241 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1243 2001-05-21 Per Bothner <per@bothner.com>
1245 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1246 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1247 taken from old Integer.toString code.
1248 (Integer::valueOf): Use _Jv_FormatInt.
1249 * java/lang/Integer.java (toString): Just use call String.valueOf.
1250 * java/lang/Long.java (toString): Fix typo in comment.
1251 * java/lang/String.java (valueOf(int)): Make native.
1252 * java/lang/StringBuffer.java (append(int)): Make native.
1253 * java/lang/natStringBuffer.cc: New file, for append(jint).
1254 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1256 2001-05-21 Tom Tromey <tromey@redhat.com>
1258 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1260 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1262 * include/dwarf2-signal.h: New file.
1263 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1264 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1265 * configure: Rebuilt.
1267 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1269 * configure.in: Update boehm-gc include dir for new GC version.
1270 * configure: Rebuilt.
1271 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1273 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1274 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1275 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1278 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1280 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1281 (_Jv_MutexInit): Likewise.
1283 2001-05-18 Tom Tromey <tromey@redhat.com>
1285 * Makefile.in: Rebuilt.
1286 * Makefile.am (awt_java_source_files): Added Polygon.java.
1288 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1290 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1291 * gcj/javaprims.h: ... here.
1292 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1294 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1296 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1297 with length of ioffset table.
1298 (_Jv_IsAssignableFrom): Likewise.
1300 2001-05-17 Per Bothner <per@bothner.com>
1302 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1304 2001-05-16 Tom Tromey <tromey@redhat.com>
1306 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1309 2001-05-15 Tom Tromey <tromey@redhat.com>
1311 * java/util/GregorianCalendar.java (computeTime): Only call
1314 2001-05-14 Tom Tromey <tromey@redhat.com>
1316 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1317 ZONE_OFFSET just before computing the time.
1319 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1321 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1322 * Makefile.in: Regenerate (by hand).
1323 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1324 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1326 2001-05-11 Richard Henderson <rth@redhat.com>
1328 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1329 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1331 2001-05-11 Richard Henderson <rth@redhat.com>
1333 * exception.cc: Include unwind-pe.h. Remove all pointer
1336 2001-05-10 Tom Tromey <tromey@redhat.com>
1338 * Makefile.in: Rebuilt.
1339 * Makefile.am (awt_java_source_files): Added Polygon.java.
1340 * java/awt/Polygon.java: New file.
1342 * java/awt/geom/AffineTransform.java
1343 (setToRotation(double,double,double)): New method.
1344 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1345 (setToShear): Likewise.
1347 2001-05-10 Tom Tromey <tromey@redhat.com>
1349 * java/util/GregorianCalendar.java: Imported from Classpath.
1350 * gnu/java/locale/LocaleInformation_nl.java: New file from
1352 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1353 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1354 * gnu/java/locale/LocaleInformation.java: Likewise.
1355 * natGregorianCalendar.cc: Removed.
1356 * Makefile.in: Rebuilt.
1357 * Makefile.am (nat_source_files): Removed
1358 natGregorianCalendar.cc.
1360 2001-05-10 Tom Tromey <tromey@redhat.com>
1362 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1364 (defaultCenturyStart): Use it.
1365 (readObject): Likewise.
1366 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1368 (parse): Copy the calendar before modifying it. Correctly handle
1371 * java/util/Calendar.java (clear): Set field value(s) to 0.
1373 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1375 * Calendar.java (get): Clear areFieldsSet if requested field
1377 (set): Unset fields that depend on new value.
1379 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1381 * java/lang/Class.h (_Jv_Self): New union type.
1382 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1383 Jeff Sturm and Fergus Henderson.
1385 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1387 * java/lang/ClassLoader.java: Remove dead code fragment.
1389 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1391 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1393 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1395 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1397 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1398 * configure.host (EXCEPTIONSPEC): New.
1399 * configure.in (EXCEPTIONSPEC): New.
1400 * configure: Rebuilt.
1402 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1404 * doc/*.texi: Remove generated documentation.
1406 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1408 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1409 (performDelete): Fix #endif placement.
1411 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1413 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1414 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1415 (_Jv_ThreadDestroyData): Use _Jv_Free.
1416 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1419 2001-04-27 Tom Tromey <tromey@redhat.com>
1421 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1423 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1425 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1427 * include/jni.h (struct JNINativeInterface): Fixed types in
1428 Get/Set*ArrayRegion declarations.
1429 (class _Jv_JNIEnv): Likewise.
1431 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1433 * configure.in: Obtain THREADS with `gcc -v'.
1434 * configure: Rebuilt.
1436 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1439 * java/io/ObjectStreamClass.java (setClass): Calculate
1440 serialVersionUID for local class and compare it against the UID
1441 from the Object Stream. Throw InvalidClassException upon mismatch.
1442 (setUID): Renamed to...
1443 (getClassUID): this. Return the calculated class UID rather than
1444 setting uid field directly.
1445 (getDefinedSUID): Removed.
1446 * java/io/ObjectInputStream.java (resolveClass): Use the
1447 three-argument Class.forName().
1448 * java/io/InvalidClassException (toString): Don't include classname in
1449 result if it is null.
1451 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1453 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1454 Wrap use of inet_pton in HAVE_INET6.
1456 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1458 java.security merge and ClassLoader compliance fixes.
1460 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1461 New protectionDomain field.
1462 (forName): Add initialize parameter. Fixes declaration to comply with
1464 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1465 variant. Honour "initialize" flag.
1466 (getProtectionDomain0): New method.
1467 * java/lang/Class.java: Fix forName() declaration.
1468 (getPackage): New method based on Classpath implementation.
1469 (getProtectionDomain0): New native method decl.
1470 (getProtectionDomain): New method.
1471 * java/lang/ClassLoader.java (getParent): Now final.
1472 (definedPackages): New field.
1474 (defineClass): New variant with protectionDomain argument.
1475 (definePackage): New.
1477 (findSystemClass): Now final.
1478 (getSystemResourceAsStream): Remove redundant "final" modifier.
1479 (getSystemResource): Remove redundant "final" modifier.
1480 (getResources): Now final.
1481 (protectionDomainPermission): New static field.
1482 (unknownProtectionDomain): Ditto.
1483 (defaultProtectionDomain): Ditto.
1484 (getSystemClassLoader): Now non-native.
1485 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1486 arguments for Class.forName().
1487 * java/lang/Package.java: New file.
1488 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1489 (instance): Static initialize singleton.
1490 (findClass): Override this, not findSystemClass.
1491 * java/lang/natClassLoader.cc (defineClass0): Set class's
1492 protectionDomain field as specified.
1493 (getSystemClassLoader): Removed.
1494 (findClass): Renamed from findSystemClass. Call the interpreter via
1495 URLClassLoader.findClass if loading class via dlopen fails.
1497 * java/security/*.java: java.security import/merge with Classpath.
1498 * java/security/acl/*.java: Likewise.
1499 * java/security/interfaces/*.java: Likewise.
1500 * java/security/spec/*.java: Likewise.
1501 * java/net/NetPermission.java: Likewise.
1502 * java/net/SocketPermission.java: Likewise.
1503 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1505 * Makefile.am: Add new classes.
1506 * Makefile.in: Rebuilt.
1507 * gcj/javaprims.h: CNI namespace rebuild.
1509 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1511 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1512 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1513 * configure: Rebuilt.
1515 2001-04-21 Tom Tromey <tromey@redhat.com>
1517 * Makefile.in: Rebuilt.
1518 * Makefile.am (awt_java_source_files): Added Line2D.java.
1519 * java/awt/geom/Line2D.java: Wrote.
1521 * java/awt/Menu.java (addNotify): Wrote.
1523 * java/awt/PopupMenu.java (addNotify): Implemented.
1526 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1527 * java/awt/List.java (addNotify): Call super.addNotify.
1528 * java/awt/Label.java (addNotify): Call super.addNotify.
1529 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1530 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1531 * java/awt/Choice.java (addNotify): Call super.addNotify.
1532 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1533 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1535 * java/awt/List.java (replaceItem): Notify peer.
1537 * java/awt/geom/Rectangle2D.java
1538 (Float.setRect(float,float,float,float)): New method.
1540 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1543 * java/awt/RenderingHints.java (Key): Class now public.
1545 * java/awt/Rectangle.java (Rectangle): Now implements
1547 (getPathIterator): Removed.
1549 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1552 * java/awt/FileDialog.java: Wrote.
1554 * java/awt/EventQueue.java (isDispatchThread): Now public.
1555 (invokeLater): Likewise.
1557 * java/awt/Component.java (setCursor): Update peer.
1558 (getFontMetrics): Use peer.
1560 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1563 2001-04-20 Tom Tromey <tromey@redhat.com>
1565 * java/awt/List.java: Wrote.
1566 * java/awt/Dialog.java: Wrote.
1568 2001-04-20 Warren Levy <warrenl@redhat.com>
1570 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1571 * java/text/SimpleDateFormat.java
1572 (indexInArray): Removed private method.
1573 (processYear): Removed private method.
1574 (parseLenient): Removed private method.
1575 (parseLeadingZeros): Removed private method.
1576 (parseStrict): Removed private method.
1577 (expect): Added new private method.
1578 (parse): Reverted to pre-Classpath merge version with minor fixes.
1579 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1582 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1584 * java/io/File.java (normalizePath): New private method.
1585 (File (String)): Use normalizePath().
1586 (File (String, String)): Likewise.
1588 * Makefile.am (libffi_files): Removed.
1589 (libgcj.la): Link libffi as a convenience library instead of
1590 refering to its object files directly.
1591 * Makefile.in: Rebuilt.
1593 2001-04-08 Per Bothner <per@bothner.com>
1595 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1596 Recalculate hash, since Utf8Const's hash is only 16 bits.
1598 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1599 bits of hash to calculate step for chaining.
1601 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1602 when 2/3 full, rather than 3/4 full.
1604 2001-04-06 Tom Tromey <tromey@redhat.com>
1606 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1607 (wrap_value<T*>): New specialization.
1608 (_Jv_JNI_PopLocalFrame): Update env->locals.
1610 2001-04-05 Tom Tromey <tromey@redhat.com>
1612 * libtool-version: Updated current.
1614 2001-04-04 Andreas Jaeger <aj@suse.de>
1616 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1617 * gcj/Makefile.in: Rebuilt.
1618 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1619 * Makefile.in: Rebuilt.
1620 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1621 * testsuite/Makefile.in: Rebuild.
1622 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1623 * include/Makefile.in: Rebuild.
1625 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1627 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1628 compiled test', not 'execution from source compiled test'.
1629 Use UNTESTED, not XFAIL, for tests which are not run because
1630 they depend on a previous test which failed.
1632 2001-04-02 Richard Henderson <rth@redhat.com>
1634 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1635 the same tree as gcc.
1636 * configure: Rebuilt.
1638 * exception.cc (_Jv_Throw): Clarify commentary.
1640 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1642 * jni.cc (wrap_value<jclass>): New specialization.
1644 2001-04-02 Tom Tromey <tromey@redhat.com>
1646 * java/io/PrintStream.java (out): Removed field. Fixes PR
1648 (write): Call flush, not out.flush, per spec.
1649 (close): Flush output stream, per spec. Handle
1650 InterruptedIOException.
1651 (checkError): Likewise.
1652 (flush, print, write): Handle InterruptedIOException per spec.
1653 (PrintStream): Don't create BufferedOutputStream.
1654 (work_bytes): New field.
1655 (writeChars): Use work_bytes. Don't assume `out' is a
1656 BufferedOutputStream.
1658 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1660 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1663 2001-03-30 Tom Tromey <tromey@redhat.com>
1665 * jni.cc (add_char): Correctly encode non-ascii characters.
1666 (add_char): Define even when INTERPRETER not defined.
1667 (mangled_name): Likewise.
1668 (_Jv_GetJNIEnvNewFrame): Likewise.
1669 (_Jv_LookupJNIMethod): Likewise.
1671 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1673 * configure.host: Enable interpreter for PPC.
1675 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1677 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1678 to "file.separator", "path.separator", and "java.io.tmpdir" property
1680 * java/io/File.java: Likewise.
1681 * java/io/natFile.cc (init_native): Likewise.
1682 * java/io/natFileWin32.cc (init_native): Likewise.
1684 2001-04-01 Per Bothner <per@bothner.com>
1686 * java/lang/natString.cc (intern): If string's data does not point to
1687 this String, make a fresh String that does.
1689 * java/lang/natString.cc (unintern): Replace by static function.
1690 * java/lang/String.java (unintern): Remove method.
1692 2001-04-01 Per Bothner <per@bothner.com>
1694 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1695 (finish): def.deflate needs to be called in a loop.
1696 (inbuf, inbufLength): New private fields.
1697 (write(int)): Use inbuf.
1698 (write(byte[],int,int): Check if pending output in inbuf.
1699 * ZipOutputStream.java: Don't use Deflater if stored.
1700 Use a Checksum object directly, not via a CheckedOutputStream.
1701 (uncompressed_size): New field,
1702 (closeEntry): Only write data_directory if needed.
1703 (write): If STORED, write directly.
1704 Always update crc, and uncompressed_size.
1705 (write_entry): Fix lots of protocol erors.
1707 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1709 1.3-Compliant Implementation of java.io.File.
1710 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1711 "path.separator", and "java.io.tmpdir" from the File class, instead
1712 of setting them explicitly.
1713 * java/io/File.java: Do not canonicalize paths for security manager
1714 checks. Call init_native() from static initializer. Do not pass path
1715 argument to native methods. New native method declarations. Some
1716 security manager checks moved to checkWrite().
1717 (equals): Check file system case sensitivity and act appropriatly.
1718 (hashCode): Likewise.
1719 (isHidden): New method implemented.
1720 (performList): Changed prototype. Now takes a class argument specifying
1721 the class of the returned array: Strings or File objects. Also added
1722 FileFilter argument.
1723 (listFiles): New variants with "File" return type implemented.
1724 (createTempFile): Use createNewFile(). Use maxPathLen.
1725 (setReadOnly): New method implemented.
1726 (listRoots): Likewise.
1727 (compareTo): Likewise.
1728 (setLastModified): Likewise.
1729 (checkWrite): New method.
1731 * java/io/natFile.cc: Various functions no longer take canonical path
1733 (stat): Handle ISHIDDEN query.
1734 (isAbsolute): Remove WIN32 cruft.
1735 (performList): New arguments. Handle returning either File[] or String[]
1736 arrays. Check with FileFilter or FilenameFilter arguments as
1737 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1738 (performSetReadOnly): New method implemented.
1739 (performListRoots): Likewise.
1740 (performSetLastModified): Likewise.
1741 (performCreate): Likewise.
1742 (init_native): New initialization function.
1743 * java/io/natFileWin32.cc: Various functions no longer take canonical
1745 (stat): Add FIXME about ISHIDDEN query.
1746 (performList): New arguments. Handle returning either File[] or String[]
1747 arrays. Check with FileFilter or FilenameFilter arguments as
1748 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1749 (performSetReadOnly): New. Stubbed.
1750 (performListRoots): Likewise.
1751 (performSetLastModified): Likewise.
1752 (performCreate): Likewise.
1753 (init_native) New initialization function.
1754 * configure.in: Check for utime() and chmod().
1755 * configure: Rebuilt.
1756 * include/config.h.in: Rebuilt.
1758 Resolves PR libgcj/1759.
1760 2001-03-28 Richard Henderson <rth@redhat.com>
1762 IA-64 ABI Exception Handling:
1763 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1764 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1765 Remove EXCEPTIONSPEC.
1766 * configure.host (libgcj_sjlj): Remove.
1767 * configure.in (EXCEPTIONSPEC): Remove.
1768 (enable-sjlj-exceptions): Detect if not specified.
1769 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1770 what header we're looking for.
1771 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1772 * Makefile.in, configure: Regenerate.
1773 * exception.cc: Don't declare libgcc2 stuff.
1774 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1775 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1776 (win32_get_restart_frame): Remove.
1777 (struct java_exception_header): New.
1778 (__gcj_exception_class): New.
1779 (get_exception_header_from_ue): New.
1780 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1781 (size_of_encoded_value, read_encoded_value): New.
1782 (read_uleb128, read_sleb128, parse_lsda_header): New.
1783 (get_ttype_entry, __gcj_personality_sj0): New.
1784 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1786 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1788 * javax/naming/InitialContext.java (init): Fix typo.
1789 (composeName): Remove unnecessary semicolon.
1790 (addToEnvironment): Remove unnecessary semicolon.
1791 (addToEnvironment): Use put() instead of add().
1793 * javax/naming/InitialContext.java (InitialContext):
1795 (destroySubcontext): Method doesn't return a result.
1796 * javax/naming/Context.java: Import java.util.Hashtable.
1797 * javax/naming/Name.java: Import java.util.Enumeration.
1799 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1801 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1802 objects in subdirectories.
1803 * Makefile.in: Rebuilt.
1805 2001-03-25 Richard Henderson <rth@redhat.com>
1807 * exception.cc (java_eh_info): Make value type jthrowable.
1808 (_Jv_type_matcher): Remove now unneeded cast.
1809 (_Jv_Throw): Make argument type jthrowable. Munge name
1810 for SJLJ_EXCEPTIONS here ...
1811 * gcj/cni.h: ... not here.
1813 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1815 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1816 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1817 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1818 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1819 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1820 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1821 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1822 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1823 java/lang/natDouble.cc, java/lang/natObject.cc,
1824 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1825 java/lang/natString.cc, java/lang/natSystem.cc,
1826 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1827 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1828 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1829 java/util/zip/natInflater.cc:
1830 Use throw, not JvThrow or _Jv_Throw.
1832 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1834 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1835 paramater, bump it to 1.
1836 * java/util/Hashtable.java (Hashtable): Likewise.
1838 2001-03-23 Per Bothner <per@bothner.com>
1840 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1841 check for errors, since we don't want to throw exception on
1842 overflow/underflow. Instead, trim whitespace, and then check that
1843 _strtod_r uses up all the rest of the string.
1845 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1846 ancestors array is invalid for interfaces, so do that *after*
1847 check that the target type is not an interface.
1849 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1851 * prims.cc (_Jv_FindClassFromSignature): Check return of
1852 recursive call. Do not abort on invalid signature; return NULL
1855 2001-03-22 Tom Tromey <tromey@redhat.com>
1857 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1858 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1860 * include/jvm.h (_Jv_ResolveField): Declare.
1861 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1862 * resolve.cc (_Jv_ResolveField): No longer conditional on
1865 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1867 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1868 for libtool hacking.
1869 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1870 to a temporary file, then invoke libtool with the -objectlist
1872 (libgcjx.la): Likewise.
1873 * Makefile.in: Rebuilt.
1875 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1877 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1879 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1881 * jni.cc (add_char): Handle `.' like `/'.
1883 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1885 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1886 initialize if exception_types is null.
1887 * java/lang/reflect/Constructor.java: Likewise.
1888 * java/lang/reflect/natConstructor.cc (getType): Initialize
1889 exception_types to an empty Object array.
1891 2001-03-21 Tom Tromey <tromey@redhat.com>
1893 * configure: Rebuilt.
1894 * configure.in (GCJFLAGS): Subst.
1895 * Makefile.in: Rebuilt.
1896 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1897 (gij_LDFLAGS): Likewise.
1898 (JC1FLAGS): Added GCJFLAGS and removed -g.
1900 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1901 read/write case. Fixes PR libgcj/2338.
1903 2001-03-20 Warren Levy <warrenl@redhat.com>
1905 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1906 and corrected SimpleTimeZone's for the timezones hash table.
1908 2001-03-19 Per Bothner <per@bothner.com>
1910 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1911 "canonicalize" "../../xxx" to "/xxx".
1913 2001-03-19 Mark Wielaard <mark@klomp.org>
1915 * java/util/ArrayList.java: Remove RCS keywords from comments
1916 * java/util/BasicMapEntry.java: idem
1917 * java/util/Dictionary.java: idem
1918 * java/util/HashSet.java: idem
1920 * java/util/EventObject.java: reindent
1921 * java/util/Properties.java: idem
1922 * java/util/SortedMap.java: idem
1924 * java/util/Enumeration.java: Merge with Classpath
1925 * java/util/EventListener.java: idem
1926 * java/util/Observable.java: idem
1927 * java/util/Observer.java: idem
1928 * java/util/Stack.java: idem
1930 2001-03-17 Tom Tromey <tromey@redhat.com>
1932 * java/lang/natString.cc (rehash): Don't bother with memset;
1933 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1935 (UNMASK_PTR): New macro.
1936 (intern): Unmask pointer before returning it. Register finalizer
1938 (unintern): Handle case where
1939 (MASK_PTR): New macro.
1940 (PTR_MAKSED): Likewise.
1941 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1943 2001-03-01 Andrew Haley <aph@redhat.com>
1945 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1946 stackTrace buffer to a correctly aligned pointer array.
1948 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1950 * java/lang/Runtime.java (_exit): Declare new package-private native.
1951 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1952 without a security manager check.
1953 (exit): Call _exit after security check.
1954 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1956 * java/lang/System.java (setSecurityManager): If a security manager
1957 is already in place, call checkPermission.
1958 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1959 throws an exception, try to deal with it gracefully.
1960 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1961 Only try to print the subordinate stack trace if "exception" is set.
1962 Print our class name first.
1964 2001-03-08 Tom Tromey <tromey@redhat.com>
1966 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1967 info for array classes.
1968 Fixes PR libgcj/1971.
1970 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1972 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1975 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1977 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1978 instead of the new JDK1.2 API. This is simpler and makes
1979 back-porting the classes to JDK1.1 trivial.
1980 (readObject): likewise.
1982 2001-03-01 Per Bothner <per@bothner.com>
1984 Changes merged from Kawa's gnu.math.
1985 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1986 (rshift(int[],int[],int,int): Removed - not needed.
1987 (gcd): Use rshift0 rather than rshift.
1988 * java/math/BigInteger.java (setShiftRight): Likewise.
1989 (divide): Simplify by using rshift0.
1990 (divide): Zero-extend results if high-order bit set.
1992 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1994 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1997 2001-02-23 Per Bothner <per@bothner.com>
1999 Change to sometimes include class name in ClassFormatError message.
2000 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2001 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2002 boolean instead of throwing ClassFormatError on failure.
2003 (throw_class_format_error): Change static function to method.
2004 (_Jv_ClassReader): New inline methods verify_identifier,
2005 two overloads of verify_classname, verify_field_signature, and
2006 verify_method_signature
2007 * include/java-interp.h: Update declarations to return bool.
2008 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2009 ClassFormatError since _Jv_VerifyClassName now returns bool.
2011 2001-02-23 Per Bothner <per@bothner.com>
2013 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2014 c++filt to select java-style output.
2016 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2018 Fix for PR java/2040:
2019 * java/util/HashMap.java (HashMap): Don't throw exception for
2020 loadFactor > 1. Add exception messages.
2021 * java/util/Hashtable.java (Hashtable): Likewise.
2023 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2025 Disable libgcjx by default.
2026 * configure.in: Add support for --enable-java-awt configure option.
2027 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2028 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2029 * Makefile.in: Rebuilt.
2030 * configure: Rebuilt.
2032 2001-02-20 Tom Tromey <tromey@redhat.com>
2034 * java/io/PipedWriter.java (flush): Throw exception if stream
2036 * java/io/OutputStreamWriter.java (write): Throw exception if
2038 (writeChars): Don't throw exception if stream closed.
2039 * java/io/CharArrayWriter.java (closed): New field.
2041 (flush): Throw exception if stream closed.
2042 (reset): Synchronize on correct lock. Allow stream to be
2044 (toCharArray, toString, writeTo): Synchronize.
2045 (write): Throwe exception if stream closed.
2046 * java/io/BufferedWriter.java (close): Clear `buffer'.
2047 (flush): Throw IOException if stream is closed.
2050 2001-02-16 Tom Tromey <tromey@cygnus.com>
2052 * java/lang/ThreadGroup.java (activeCount): Only include threads
2054 (enumerate): Likewise.
2056 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2058 * java/lang/Integer.java (getInteger): Return default argument if
2059 property is not set. Don't call decode with null argument.
2060 * java/lang/Long.java (getLong): Likewise.
2062 * java/io/CharArrayReader.java (CharArrayReader): Throw
2063 IllegalArgumentException if constructor arguments are illegal.
2064 (ready): Return false if no more characters can be read.
2065 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2067 2001-02-17 Mark Wielaard <mark@klomp.org>
2069 * java/util/TimerTask.java: New version from Classpath.
2071 2001-02-17 Mark Wielaard <mark@klomp.org>
2073 Remerge with Classpath
2074 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2075 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2076 (readByte): Use convertToByte().
2077 (readChar): Use convertToChar().
2078 (readInt): Use convertToInt().
2079 (readLong): Use convertToLong().
2080 (readShort): Use convertToShort().
2081 (readUnsignedByte): Use convertToUnsignedByte().
2082 (readUnsignedShort): Use convertToUnsignedShort().
2083 (readUTF): Use convertToUTF().
2085 (convertToBoolean): Resurrected.
2086 (convertToByte): Ditto.
2087 (convertToChar): Ditto.
2088 (convertToInt): Ditto.
2089 (convertToLong): Ditto.
2090 (convertToShort): Ditto.
2091 (convertToUnsignedByte): Ditto.
2092 (convertToUnsignedShort): Ditto.
2093 (convertToUTF): Ditto.
2095 2001-02-17 Mark Wielaard <mark@klomp.org>
2099 2001-02-17 Mark Wielaard <mark@klomp.org>
2101 * java/io/DataInputStream.java: update copyright notice
2102 * java/io/PrintWriter.java: idem
2103 * java/io/Reader.java: idem
2104 * java/io/StreamTokenizer.java: idem
2105 * java/io/StringReader.java: idem
2106 * java/lang/reflect/ReflectPermission.java: idem
2108 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2110 * java/util/TreeSet.java (clone): Made subclass safe, use
2111 super.clone(), not new.
2112 * java/util/TreeMap.java (clone): Likewise.
2114 * java/util/TreeMap.java (nil): Made non-final.
2115 (clone): Create new nil node for copy.
2117 * java/util/HashSet.java (clone): Made subclass safe, use
2118 super.clone(), not new.
2120 2001-02-14 Andrew Haley <aph@redhat.com>
2122 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2125 2001-02-15 Anthony Green <green@redhat.com>
2127 * defineclass.cc: Don't include alloca.h.
2128 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2129 * interpret.cc (run_normal): Ditto.
2131 * java/lang/natDouble.cc (parseDouble): Ditto.
2133 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2135 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2137 * java/util/Collections.java (ReverseComparator): New static class.
2138 (reverseOrder): Return static instance of ReverseComparator.
2140 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2141 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2142 Rectangle.clone(), not Object.clone().
2144 * java/util/HashSet.java (clone): Remove try/catch.
2146 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2147 * java/util/Collection.java: Likewise.
2148 * java/util/Comparator.java: Likewise.
2149 * java/util/Dictionary.java: Likewise.
2150 * java/util/Iterator.java: Likewise.
2151 * java/util/ListIterator.java: Likewise.
2152 * java/util/Map.java: Likewise.
2153 * java/util/Set.java: Likewise.
2155 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2157 * java/util/TreeMap.java: New file.
2158 * java/util/TreeSet.java: New file.
2159 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2160 * Makefile.in: Rebuilt.
2161 * java/util/HashSet.java (clone): Use constructor instead of calling
2163 * java/util/SortedSet.java: Sync with classpath.
2164 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2167 * java/lang/natClass.cc (getSignature): Don't try to dereference
2168 param_types if it is null. Instead, take this to mean "no parameters".
2169 * java/lang/TreeMap.java (TreeIterator.next): Throw
2170 NoSuchElementException in preference to ConcurrentModificationException.
2171 (TreeIterator.remove): Throw IllegalStateException in preference to
2172 ConcurrentModificationException.
2173 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2174 throw a NoSuchElementException.
2175 (SubMap.lastKey): Likewise.
2177 2001-02-13 Tom Tromey <tromey@redhat.com>
2179 * java/io/PipedReader.java (ready): Throw IOException if pipe
2181 * java/io/FilterReader.java (close): Don't clear `in'.
2182 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2184 (read, ready, reset, skip): Added exception message.
2185 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2186 Perform checkStatus check inside synchronized block.
2188 2001-02-13 Tom Tromey <tromey@redhat.com>
2190 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2192 2001-02-13 Tom Tromey <tromey@redhat.com>
2194 Fix for PR libgcj/1351:
2195 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2197 Include Thread.h and InterruptedIOException.h.
2199 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2201 * java/io/BlockDataException.java: Removed.
2202 * java/io/ObjectInputStream.java (readObject): Throw
2203 StreamCorruptedException, not BlockDataException.
2204 * Makefile.am: Remove BlockDataException.
2205 * Makefile.in: Rebuild.
2207 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2208 Tom Tromey <tromey@redhat.com>
2210 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2213 2001-02-09 Tom Tromey <tromey@redhat.com>
2215 * java/util/Timer.java: New version from Classpath.
2217 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2219 * java/lang/Double.java (doubleToRawLongBits): Now native.
2220 * java/lang/Float.java (floatToRawIntBits): Likewise.
2221 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2222 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2224 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2226 * java/io/File.java (java.net): Imported.
2227 (getAbsoluteFile): Added.
2228 (getCanonicalPath): Likewise.
2231 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2233 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2234 * java/lang/Integer.java: Likewise.
2235 * java/lang/Long.java: Likewise.
2236 * java/lang/Short.java: Likewise.
2237 * java/lang/Double.java: Likewise.
2238 (doubleToRawLongBits): New method.
2239 * java/lang/Float.java: As above.
2240 (floatToRawIntBits): New method.
2242 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2243 IOException if stream closed.
2245 2001-02-08 Tom Tromey <tromey@redhat.com>
2247 * java/lang/Float.java (parseFloat): New method.
2249 2001-02-08 Tom Tromey <tromey@redhat.com>
2251 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2252 * java/io/InputStreamReader.java (ready, read): Throw IOException
2253 if stream has been closed.
2255 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2257 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2258 Change sources.redhat.com and sourceware.cygnus.com references to
2261 2001-02-07 Tom Tromey <tromey@redhat.com>
2263 Fix for PR libgcj/1906:
2264 * java/text/MessageFormat.java (setLocale): Use named class
2267 (format(Object,StringBuffer,FieldPosition)): Special case if
2268 argument is an Object[].
2270 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2272 * java/util/Arrays.java: Removed "cmp" methods.
2273 (qsort): Don't use "cmp".
2276 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2278 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2279 sort. Fix for PR java/1895.
2281 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2283 * configure.host: Use sjlj-exceptions for Alpha.
2285 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2287 * libgcj.spec.in: Don't force static libgcc into the executable.
2288 * configure.in (FORCELIBGCCSPEC): Removed.
2289 * configure: Rebuilt.
2291 2001-01-31 Tom Tromey <tromey@redhat.com>
2293 * Makefile.in: Rebuilt.
2294 * Makefile.am (LTCXXCOMPILE): New macro.
2296 2001-01-26 Andrew Haley <aph@redhat.com>
2298 (INIT_FPE): Use a direct system call to set the handler.
2300 2001-01-27 Richard Henderson <rth@redhat.com>
2302 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2304 2001-01-27 Tom Tromey <tromey@redhat.com>
2306 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2307 native interface structure.
2309 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2311 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2313 (read (byte[], int, int)): Only call readNextBlock() if the block
2314 buffer would actually be overrun. Increment blockDataPosition.
2315 (callReadMethod): Propagate exceptions from invocation target.
2316 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2317 exceptions from invocation target.
2319 2001-01-26 Tom Tromey <tromey@redhat.com>
2321 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2322 to internal representation.
2323 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2324 _Jv_FindClassFromSignature.
2326 2001-01-26 Warren Levy <warrenl@redhat.com>
2328 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2329 and timezone if they are available on the system.
2331 2001-01-24 Tom Tromey <tromey@redhat.com>
2333 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2335 2001-01-24 Tom Tromey <tromey@redhat.com>
2337 * Makefile.in: Rebuilt.
2338 * Makefile.am (c_source_files): Added sf_fabs.c.
2339 * java/lang/sf_fabs.c: New file.
2341 2001-01-19 Warren Levy <warrenl@redhat.com>
2343 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2344 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2345 correctly. Adjust properly from 0-23 clock hour.
2347 2001-01-17 Mark Wielaard <mark@klomp.org>
2349 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2351 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2353 * java/lang/Class.h (isInterface): Move implementation from
2354 natClass.cc. Declare inline.
2355 (Class): Add default constructor.
2356 * java/lang/Object.h: Update comments.
2357 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2358 initialize superclass, saving a call if super is already initialized.
2360 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2362 * prims.cc (init_prim_class): Deleted.
2363 (DECLARE_PRIM_TYPE): Rewritten.
2364 * java/lang/Class.h (stdio.h): Include removed.
2365 (stddef.h): Included.
2366 (java/lang/reflect/Modifier.h): Likewise.
2367 (Class): Contructor now takes arguments, initializes fields.
2368 (initializePrim): Prototype deleted.
2369 * java/lang/natClass.cc (initializePrim): Deleted.
2371 2001-01-16 Warren Levy <warrenl@redhat.com>
2373 * java/math/BigInteger.java: Update Copyright year.
2375 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2377 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2380 2001-01-14 Mark Wielaard <mark@klomp.org>
2381 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2382 (decode): Merge comments with Classpath, don't throw Exception
2384 2001-01-12 Tom Tromey <tromey@redhat.com>
2386 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2390 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2391 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2392 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2393 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2394 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2396 * java/lang/natSystem.cc: Include locale.h if it exists.
2397 * configure: Rebuilt.
2398 * configure.in: Check for locale.h.
2400 2001-01-11 Tom Tromey <tromey@redhat.com>
2402 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2403 (Cursor(int), getPredefinedCursor): Throw exception if argument
2406 2001-01-03 Tom Tromey <tromey@redhat.com>
2408 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2409 (getLocationOnScreen): Wrote.
2411 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2413 * Makefile.am: Re-enable dependencies.
2414 * Makefile.in: Rebuilt.
2416 2001-01-10 Warren Levy <warrenl@redhat.com>
2418 * java/math/BigDecimal.java (divide): Fixed comment.
2420 2001-01-10 Warren Levy <warrenl@redhat.com>
2422 Fix for PR libgcj/1596:
2423 * java/math/BigDecimal.java (divide): Check newScale for validity.
2424 Ensure that BigInteger.pow() is called with a non-negative value.
2425 (setScale (int)): New public method.
2426 (setScale (int,int)): New public method.
2428 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2430 Fix for PR libgcj/1338:
2431 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2432 commentChar. Fixed typos in comments.
2434 2001-01-08 Warren Levy <warrenl@redhat.com>
2436 Fix for PR libgcj/1411:
2437 * Makefile.am: Removed java/util/natTimeZone.cc.
2438 * Makefile.in: Rebuilt.
2439 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2440 missing localized timezone names.
2441 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2442 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2443 (init_properties): Set user.timezone property.
2444 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2445 default timezone names; removed non-standard ones. Use standard
2447 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2449 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2451 (getDefaultTimeZoneId): Removed.
2453 * java/util/natTimeZone.cc: Removed.
2455 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2457 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2458 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2459 (_Jv_GetArrayClass): New inline function.
2460 (arrayclass): New field.
2461 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2462 _Jv_GetArrayElementFromElementType.
2463 (_Jv_NewPrimArray): Ditto.
2464 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2465 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2466 Set Modifier::ABSTRACT.
2467 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2468 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2469 Now synchronized. Array classes are now referenced from
2470 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2471 Set array classes' accessibility flags correctly. Optimize so that
2472 all array classes share the same IDT.
2473 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2474 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2475 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2476 in superclasses from overwriting classes own fields.
2477 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2478 Modifier::isAbstract().
2479 (null_idt): New static field.
2480 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2482 (_Jv_IndexOf): Made inline.
2483 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2485 2001-01-08 Tom Tromey <tromey@redhat.com>
2487 Fix for PR java/1586:
2488 * Makefile.in: Rebuilt.
2489 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2491 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2493 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2494 from the c++ compiler.
2495 * Makefile.in: Rebuilt.
2497 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2499 All files with updated copyright.
2500 * prims.cc (class _Jv_PrimClass): Removed.
2501 (init_prim_class): New function.
2502 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2503 `_Jv_PrimClass' in primitive type declarations. Assign to the
2504 value returned by `init_prim_class.'
2505 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2506 primitive type declarations.
2507 (JvPrimClass): Cast to `jclass' removed.
2508 * java/lang/Class.h (Class): New constructor.
2509 (Class): New copy constructor.
2510 (initializePrim): New prototype.
2511 (_Jv_PrimClass): Field removed.
2512 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2513 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2514 (class java::lang::Object): `finalize' moved up front.
2515 * java/lang/natClass.cc
2516 (isAssignableFrom): Turned outline.
2517 (isInstance): Likewise.
2518 (isInterface): Likewise, fixed indentation.
2519 (initializePrim): New function.
2521 2001-01-07 Anthony Green <green@redhat.com>
2523 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2525 * Makefile.in: Rebuilt.
2527 * scripts/TexinfoDoclet.java: New file.
2529 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2530 doc/java-awt-color.texi, doc/java-lang.texi,
2531 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2532 doc/java-awt-event.texi, doc/java-net.texi,
2533 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2534 doc/java-awt-image.texi, doc/java-security.texi,
2535 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2536 doc/java-text.texi, doc/java-beans-beancontext.texi,
2537 doc/java-util-jar.texi, doc/java-beans.texi,
2538 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2539 doc/java-lang-ref.texi: New files.
2541 2001-01-07 Anthony Green <green@redhat.com>
2543 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2544 be used for both input and output, so don't clear doInput.
2546 * java/lang/StringBuffer.java: Fix comments.
2548 2001-01-06 Anthony Green <green@redhat.com>
2550 * java/beans/PropertyDescriptor.java: Fix comment.
2551 * java/io/PushbackReader.java: Fix comment.
2552 * java/io/ObjectStreamClass.java: Fix comment.
2553 * java/io/DataInputStream.java: Fix comment.
2554 * java/io/PipedInputStream.java: Fix comments.
2555 * java/io/PipedReader.java: Fix comments.
2556 * java/sql/DatabaseMetaData.java: Fix comments.
2558 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2560 * java/io/PipedReader: Synchronize on "lock" instead of this.
2562 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2564 * java/lang/Thread.java: Update comment.
2566 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2567 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2568 * java/io/PipedReader: New implementation based on new
2570 * java/io/PipedWriter: Updated to match new PipedReader.
2572 2001-01-03 Tom Tromey <tromey@redhat.com>
2574 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2575 (getViewportSize): Insets include scrollbar size.
2576 (doLayout): Finished.
2577 (getScrollPosition): Wrote.
2578 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2580 2001-01-02 Tom Tromey <tromey@redhat.com>
2582 * java/awt/ScrollPane.java: Wrote.
2583 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2586 * java/awt/Panel.java (Panel()): Fixed.
2588 * java/awt/Component.java (isShowing): Return false if no peer
2589 exists, and true if component is visible and no parent exists.
2590 (getLocationOnScreen): Wrote.
2591 (getPreferredSize): Removed FIXME comment.
2592 (getMinimumSize): Likewise.
2593 (getAlignmentX, getAlignmentY): Wrote.
2595 (requestFocus): Wrote.
2596 (transferFocus): Wrote.
2597 (findNextFocusComponent): New method.
2598 (hasFocus()): Wrote.
2599 (checkImage): Wrote.
2600 (enableEvents): Call setEventMask on the peer.
2602 * java/awt/Container.java (list): Use super.list() to print self.
2603 (findNextFocusComponent): New method.
2604 (setLayout): Call invalidate.
2605 (findComponentAt): Wrote.
2607 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2609 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2610 the correct versions of various linuxthreads functions get linked.
2611 * Makefile.in: Rebuilt.
2612 * java/lang/natThread.cc (finalize_native): New static function. Call
2613 _Jv_ThreadDestroyData.
2614 (initialize_native): Register finalizer for "data".
2615 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2616 (_Jv_ThreadDestroyData): New prototype.
2617 * include/win32-threads.h: Ditto.
2618 * include/no-threads.h: Ditto.
2619 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2620 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2621 move mutex and condition variable destroy code from:
2622 (really_start): ...here.
2623 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2624 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2625 (_Jv_ThreadDestroyData): Implemented.
2626 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2627 (_Jv_AllocArray): Ditto.
2629 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2631 * java/sql/DriverManager.java (getConnection): Don't set user/password
2634 2000-12-27 Warren Levy <warrenl@redhat.com>
2636 Fix for PR libgcj/1358:
2637 * java/lang/System.java: Update Copyright date properly.
2638 * java/util/Calendar.java: Fix typo in comment.
2639 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2640 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2641 initialize times. Spec says to set H:M:S values to zero only if
2643 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2644 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2645 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2646 timezones and GMT offsets, being careful to account for units of
2647 milliseconds vs. seconds.
2649 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2651 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2652 not be assigned to Object.
2654 Fix for PR libgcj/1516:
2655 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2657 (can_widen): Declared inline. Remove redundant checks for void
2658 arguments and char->short conversion. Add special case for boolean
2660 (ffi_type): Declared inline.
2661 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2663 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2665 * java/sql/SQLWarning.java: Fixed typo in comment.
2667 2000-12-26 Tom Tromey <tromey@redhat.com>
2669 * java/awt/MenuItem.java (paramString): Now protected.
2671 * java/awt/MenuShortcut.java: Implements Serializable.
2673 * java/awt/MenuBar.java: Rewrote from scratch.
2675 * java/awt/MenuComponent.java (removeNotify): Wrote.
2676 Implements Serializable.
2678 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2681 * java/awt/CheckboxMenuItem.java: Wrote.
2683 2000-12-25 Tom Tromey <tromey@redhat.com>
2685 * java/awt/MenuContainer.java: Fixed typo.
2687 * Makefile.in: Rebuilt.
2688 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2689 * java/awt/SystemColor.java: New file.
2691 * java/awt/Color.java (rgba): Now package-private.
2693 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2695 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2698 * java/awt/MenuItem.java (addNotify): New method.
2699 (MenuItem(String,MenuShortcut)): New constructor.
2700 (setLabel): Notify peer of change.
2701 (setEnabled): Likewise.
2703 * java/awt/GridLayout.java (toString): New method.
2705 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2706 (FlowLayout): Check for LEADING and TRAILING.
2707 (setAlignment): Likewise.
2708 (layoutContainer): Handle component orientation.
2710 * java/awt/Component.java (orientatin): New field.
2711 (setComponentOrientation): Wrote.
2712 (getComponentOrientation): Wrote.
2714 * java/awt/Event.java (Event): Implements Serializable.
2715 (consumed): New field for serialization.
2716 * java/awt/Dimension.java (Dimension): Implements Serializable.
2717 * java/awt/Cursor.java (Cursor): Implements Serializable.
2718 * java/awt/Container.java (Container): No longer abstract.
2720 * java/awt/Choice.java: Wrote.
2721 * java/awt/Checkbox.java: Wrote.
2722 * java/awt/ItemSelectable.java: Documented.
2723 * java/awt/CheckboxGroup.java: Wrote.
2725 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2727 (getSize): Likewise.
2729 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2731 * java/io/FileDescriptor.java: Initialize fd to -1.
2732 Remove default constructor.
2734 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2736 * java/lang/mprec.h: Change C9X reference to refer to C99.
2738 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2740 * java/lang/Throwable.java (trace_enabled): New static field.
2741 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2742 trace_enabled not set.
2743 * prims.cc (main_init): Turn off trace_enabled while creating
2744 default exception objects.
2746 2000-12-21 Tom Tromey <tromey@redhat.com>
2748 * java/beans/PropertyChangeListener.java: Extends EventListener.
2749 * java/beans/VetoableChangeListener.java: Extends EventListener.
2751 * java/util/zip/Deflater.java (update, init): Now private.
2753 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2755 * java/util/BasicMapEntry.java: Re-added.
2756 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2757 (putAll): Test for BasicMapEntry.
2758 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2759 (putAll): Test for BasicMapEntry.
2760 Change references from `HashMap.Entry' to `Entry' in various places.
2761 * Makefile.am: Add BasicMapEntry.java.
2762 * Makefile.in: Rebuilt.
2764 2000-12-18 Warren Levy <warrenl@redhat.com>
2766 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2767 need to set timezone to a valid non-null value. Partial fix for
2770 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2772 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2774 * java/awt/Button.java (addNotify): Likewise.
2775 * java/awt/Label.java (addNotify): Likewise.
2776 * java/awt/Panel.java (addNotify): Likewise.
2777 * java/awt/Scrollbar.java (addNotify): Likewise.
2778 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2779 Remove redundant null checks.
2781 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2783 * COPYING: Update to current
2784 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2785 to 19yy as example year in copyright notice).
2787 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2789 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2790 end-of-stream if avail_in is 0.
2792 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2794 * java/util/ArrayList.java (data): Declare transient.
2795 (serialPersistantFields): Removed.
2796 (readObject): Use defaultReadObject(), not readFields().
2797 (writeObject): Use defaultWriteObject(), not writeFields().
2799 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2801 * java/util/Hashtable.java (put): Remove `last' variable.
2802 Link new entry to head of list.
2803 * java/util/HashMap.java (put): Ditto.
2805 2000-12-15 Tom Tromey <tromey@redhat.com>
2807 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2808 loader to Class.forName.
2810 2000-12-14 Tom Tromey <tromey@redhat.com>
2812 * java/util/ResourceBundle.java
2813 (getBundle(String,Locale,ClassLoader)): New method.
2814 (trySomeGetBundle): Added `loader' argument.
2815 (partialGetBundle): Likewise.
2817 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2818 maximumFractionDigits, maximumIntegerDigits,
2819 minimumFractionDigits, minimumIntegerDigits): Now
2822 * java/lang/Thread.java (checkAccess): Now final.
2824 * java/lang/RuntimePermission.java: Class now final.
2826 * java/io/StringWriter.java (StringWriter(int)): Now public.
2828 * java/io/SerializablePermission.java (legal_names): Now private.
2830 * java/lang/Character.java: Updated UnicodeBlock constants.
2831 * scripts/blocks.pl: Special case private use and surrogate
2834 2000-12-12 Tom Tromey <tromey@redhat.com>
2836 * Makefile.in: Rebuilt.
2837 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2839 (GCJCOMPILE): Use it.
2842 2000-12-11 Tom Tromey <tromey@redhat.com>
2844 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2845 New static final fields.
2847 * scripts/classes.pl (scan): Skip lines with leading `*'.
2848 Fix for PR libgcj/378.
2850 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2852 * configure.in: Remove check for -fuse-divide-subroutine.
2853 * configure: Rebuilt.
2855 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2857 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2859 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2861 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2862 Remove BasicMapEntry.java and Bucket.java.
2863 * Makefile.in: Rebuilt.
2864 * java/util/HashMap.java: Rewritten.
2865 * java/util/HashSet.java: Imported from classpath.
2866 * java/util/WeakHashMap.java: Imported from classpath.
2867 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2868 * java/util/Bucket.java: Deleted.
2869 * java/util/BasicMapEntry.java: Deleted.
2870 * java/util/Collections.java (search): Use a for-loop, not iterator
2872 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2873 of elements in source.
2874 (max): Use a for-loop.
2876 (reverse): Keep track of positions instead of using Iterator's
2877 nextIndex() and previousIndex().
2878 (shuffle(List)): Initialize defaultRandom if required using
2879 double-check thread safety idiom. Call two-argument shuffle method
2880 using defaultRandom.
2881 (defaultRandom): New field.
2882 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2883 using previousIndex() and nextIndex().
2884 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2885 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2886 * java/util/AbstractMap.java (toString): Use StringBuffer.
2887 * java/lang/ref/PhantomReference.java: Imported from classpath.
2888 * java/lang/ref/SoftReference.java: Ditto.
2889 * java/lang/ref/Reference.java: Ditto.
2890 * java/lang/ref/WeakReference.java: Ditto.
2891 * java/lang/ref/ReferenceQueue.java: Ditto.
2893 2000-12-10 Richard Henderson <rth@redhat.com>
2895 * configure.host: Recognize alpha*-*, not alphaev6-*.
2897 2000-12-09 Anthony Green <green@redhat.com>
2899 * configure.host: Enable interpreter for Alpha.
2901 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2903 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2904 (ZIP): Points at fastjar instead of zip.
2905 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2906 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2907 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2908 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2909 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2910 ($(x_java_source_files:.java=.class):): Likewise.
2911 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2913 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2914 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2915 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2916 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2917 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2918 gnu/gcj/runtime/VMClassLoader.h:,
2919 java/io/ObjectInputStream$$GetField.h:,
2920 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2921 (Makefile.in): Rebuilt.
2923 2000-12-08 Tom Tromey <tromey@redhat.com>
2926 * configure: Rebuilt.
2927 * configure.in: Use echo, not `:', to create .d files.
2929 2000-12-08 Warren Levy <warrenl@redhat.com>
2931 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2932 NullPointerException so proper check of offset can be done.
2934 2000-12-08 Warren Levy <warrenl@redhat.com>
2936 * java/io/FileInputStream.java (close): Check if the fd is valid.
2937 * java/io/RandomAccessFile.java (close): Ditto.
2938 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2939 * java/net/PlainSocketImpl.java (close): Ditto.
2941 2000-12-06 Tom Tromey <tromey@redhat.com>
2943 * java/awt/GridBagConstraints.java: Filled in values for static
2946 * java/util/BitSet.java: Updated copyright notice.
2948 * Makefile.in: Rebuilt.
2949 * Makefile.am (awt_java_source_files): Added new file.
2950 * java/awt/GridBagConstraints.java: New file.
2952 2000-12-05 Tom Tromey <tromey@redhat.com>
2954 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2955 Now package-private, not protected.
2956 * java/text/DateFormatSymbols.java (equals): Now private.
2957 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2958 * java/util/BitSet.java: Class no longer final.
2960 2000-12-04 Warren Levy <warrenl@redhat.com>
2962 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2963 out code dependent on compiler and library changes.
2965 2000-12-04 Warren Levy <warrenl@redhat.com>
2967 * java/io/FilePermission.java: Made class final per spec.
2968 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2969 method name to match spec (fixed typo).
2970 * java/util/LinkedList.java: Implements List.
2972 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2974 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2975 Edgar Villanueva <edgarvil@home.com>.
2977 2000-12-03 Tom Tromey <tromey@redhat.com>
2979 * java/awt/geom/Point2D.java: Added protected constructor.
2980 (equals): New method.
2981 (Float.setLocation(float,float)): New method.
2982 * java/awt/geom/Dimension2D.java: Added protected constructor.
2983 * java/awt/geom/AffineTransform.java: Made all constants public.
2984 (concatenate): Fixed typo in name.
2985 * java/awt/event/WindowAdapter.java: Class now abstract.
2986 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2987 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2990 * java/awt/AWTError.java: Extend Error, not
2991 IllegalStateException.
2993 * Makefile.in: Rebuilt.
2994 * Makefile.am (awt_java_source_files): Added new file.
2995 * java/awt/geom/RoundRectangle2D.java: New file.
2997 * Makefile.in: Rebuilt.
2998 * Makefile.am (awt_java_source_files): Added new file.
2999 * java/awt/FlowLayout.java: New file.
3001 * Makefile.in: Rebuilt.
3002 * Makefile.am (awt_java_source_files): Added new file.
3003 * java/awt/GridLayout.java: New file.
3005 2000-12-02 Tom Tromey <tromey@redhat.com>
3007 * Makefile.in: Rebuilt.
3008 * Makefile.am (awt_java_source_files): Added new files.
3009 * java/awt/CardLayout.java: New file.
3010 * java/awt/AWTPermission.java: New file.
3012 2000-12-01 Tom Tromey <tromey@redhat.com>
3014 * java/util/Vector.java (insertElementAt): Unconditionally
3015 increment elementCount.
3016 (removeRange): Clear unused slots in vector.
3018 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3020 * java/lang/natMath.cc: Declare fabsf() function.
3021 * java/lang/mprec.h: Don't include math.h.
3022 * java/lang/dtoa.c: Include string.h.
3023 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3026 From Adam Welc <welc@cs.purdue.edu>:
3027 * java/util/LinkedList.java (removeFirst): Update `first' field.
3028 Handle the last == first case.
3029 (removeLast): Update `last' field. Handle the last == first case.
3031 2000-12-01 Warren Levy <warrenl@cygnus.com>
3033 * Makefile.am: Added entries for new java.sql modules.
3034 * Makefile.in: Rebuilt.
3036 2000-12-01 Warren Levy <warrenl@cygnus.com>
3038 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3039 that aren't quite 1.2 compatible yet.
3041 2000-11-30 Warren Levy <warrenl@cygnus.com>
3043 * java/sql/Array.java: New file from classpath.
3044 * java/sql/BatchUpdateException.java: Ditto.
3045 * java/sql/Blob.java: Ditto.
3046 * java/sql/Clob.java: Ditto.
3047 * java/sql/Ref.java: Ditto.
3048 * java/sql/SQLData.java: Ditto.
3049 * java/sql/SQLInput.java: Ditto.
3050 * java/sql/SQLOutput.java: Ditto.
3051 * java/sql/Struct.java: Ditto.
3052 * java/sql/CallableStatement.java: Merged file from claspath.
3053 * java/sql/Connection.java: Ditto.
3054 * java/sql/DataTruncation.java: Ditto.
3055 * java/sql/DatabaseMetaData.java: Ditto.
3056 * java/sql/DriverManager.java: Ditto.
3057 * java/sql/PreparedStatement.java: Ditto.
3058 * java/sql/ResultSet.java: Ditto.
3059 * java/sql/ResultSetMetaData.java: Ditto.
3060 * java/sql/SQLException.java: Ditto.
3061 * java/sql/SQLWarning.java: Ditto.
3062 * java/sql/Statement.java: Ditto.
3063 * java/sql/Types.java: Ditto.
3065 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3067 * java/lang/natSystem.cc (init_properties): Set user.language and
3069 * configure.in: Check for setlocale.
3070 * configure: Rebuilt.
3071 * include/config.h.in: Rebuilt.
3073 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3074 the infate() call didn't deliver any output. Throw a ZipException if
3075 the needsDictionary() call returns true.
3076 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3077 * java/io/InputStreamReader: Use the default buffer size for the
3078 contained BufferedInputStream.
3080 2000-11-28 Warren Levy <warrenl@cygnus.com>
3082 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3083 more time zone entries.
3084 * java/text/SimpleDateFormat.java (format): Added case for
3087 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3089 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3090 directly rather than read() in all cases. Make primitive read
3091 implementations more efficient, as defined in JDK online docs.
3092 (skipBytes): Behave like the JDK's implementation.
3093 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3094 closed stream with checkStatus() whenever an IOException can be
3096 (checkStatus): New private method.
3098 2000-11-27 Warren Levy <warrenl@cygnus.com>
3100 * Makefile.am: Added natTimeZone.cc.
3101 * Makefile.in: Rebuilt.
3102 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3103 * java/text/DateFormatSymbols.java (ampms): Made package private.
3104 (eras): Made package private.
3105 (months): Made package private.
3106 (shortMonths): Made package private.
3107 (shortWeekdays): Made package private.
3108 (weekdays): Made package private.
3109 (formatPrefixes): New private field.
3110 (localPatternCharsDefault): Made private.
3111 (dateFormats): New package private field.
3112 (timeFormats): New package private field.
3113 (formatsForKey): New private method.
3114 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3115 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3116 * java/text/SimpleDateFormat.java: Merged with Classpath.
3117 * java/util/TimeZone.java: Merged with Classpath.
3118 * java/util/natTimeZone.cc: New file.
3120 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3122 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3123 (addElement): Don't increment elementCount twice. Doh.
3124 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3125 array needs to be expanded.
3127 * java/util/Collections.java (UnmodifiableCollection): Implement
3129 (UnmodifiableList): Throw UnsupportedOperationException from
3130 modification methods. Set `l' from the one-parameter constructor.
3131 (UnmodifiableMap): Implement toString().
3132 (SynchronizedCollection): Ditto.
3133 (SynchronizedList): Set `l' from the one-parameter constructor.
3134 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3135 (SynchronizedMap): Implement toString().
3137 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3139 * javax/naming/NameParser.java,
3140 javax/naming/directory/AttributeInUseException.java,
3141 javax/naming/directory/AttributeModificationException.java,
3142 javax/naming/directory/InvalidAttributeIdentifierException.java,
3143 javax/naming/directory/InvalidAttributesException.java,
3144 javax/naming/directory/InvalidAttributeValueException.java,
3145 javax/naming/directory/InvalidSearchControlsException.java,
3146 javax/naming/directory/InvalidSearchFilterException.java,
3147 javax/naming/directory/NoSuchAttributeException.java,
3148 javax/naming/directory/SchemaViolationException.java: New files.
3150 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3152 * javax/naming/InitialContext.java (rebind): Implement.
3153 (unbind): Implement.
3154 (rename): Implement.
3156 (listBindings): Implement.
3157 (destroySubcontext): Implement.
3158 (createSubcontext): Implement.
3159 (lookupLink): Implement.
3160 (getNameParser): Implement.
3161 (composeName): Implement.
3162 (addToEnvironment): Implement.
3164 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3166 * javax/naming/AuthenticationException.java,
3167 javax/naming/AuthenticationNotSupportedException.java,
3168 javax/naming/CannotProceedException.java,
3169 javax/naming/CommunicationException.java,
3170 javax/naming/ConfigurationException.java,
3171 javax/naming/ContextNotEmptyException.java,
3172 javax/naming/InsufficientResourcesException.java,
3173 javax/naming/InterruptedNamingException.java,
3174 javax/naming/InvalidNameException.java,
3175 javax/naming/LimitExceededException.java,
3176 javax/naming/LinkException.java,
3177 javax/naming/LinkLoopException.java,
3178 javax/naming/MalformedLinkException.java,
3179 javax/naming/NameAlreadyBoundException.java,
3180 javax/naming/NameNotFoundException.java,
3181 javax/naming/NamingSecurityException.java,
3182 javax/naming/NoPermissionException.java,
3183 javax/naming/NotContextException.java,
3184 javax/naming/PartialResultException.java,
3185 javax/naming/ReferralException.java,
3186 javax/naming/ServiceUnavailableException.java,
3187 javax/naming/SizeLimitExceededException.java,
3188 javax/naming/TimeLimitExceededException.java: New files.
3190 * javax/naming/Name.java (clone): New method.
3191 (compareTo): New method.
3192 (isEmpty): New method.
3193 (getAll): New method.
3194 (getPrefix): New method.
3195 (getSuffix): New method.
3196 (startsWith): New method.
3197 (endsWith): New method.
3198 (addAll): New method.
3199 (addAll): New method.
3202 (remove): New method.
3204 * javax/naming/Context.java (lookup): New method.
3205 (rebind): New method.
3206 (unbind): New method.
3207 (rename): New method.
3209 (listBindings): New method.
3210 (destroySubcontext): New method.
3211 (createSubcontext): New method.
3212 (lookupLink): New method.
3213 (getNameParser): New method.
3214 (composeName): New method.
3215 (addToEnvironment): New method.
3216 (removeFromEnvironment): New method.
3217 (getEnvironment): New method.
3218 (close): New method.
3219 (getNameInNamespace): New method.
3221 * javax/naming/InitialContext.java (lookup): New method.
3222 (rebind): New method.
3223 (unbind): New method.
3224 (rename): New method.
3226 (listBindings): New method.
3227 (destroySubcontext): New method.
3228 (createSubcontext): New method.
3229 (lookupLink): New method.
3230 (getNameParser): New method.
3231 (composeName): New method.
3232 (addToEnvironment): New method.
3233 (removeFromEnvironment): New method.
3234 (getEnvironment): New method.
3235 (close): New method.
3236 (getNameInNamespace): New method.
3238 2000-11-26 Tom Tromey <tromey@cygnus.com>
3240 * Makefile.in: Rebuilt.
3241 * Makefile.am (core_java_source_files): Added
3242 RuntimePermission.java.
3243 * java/lang/RuntimePermission.java: Imported from Classpath.
3244 * java/lang/Thread.java (getContextClassLoader): Now
3245 synchronized. Added security code.
3246 (setContextClassLoader): Likewise.
3248 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3249 length field of array.
3250 (_Jv_NewPrimArray): Likewise.
3251 * gcj/array.h (__JArray): `length' field now const. Added
3254 2000-11-26 Anthony Green <green@redhat.com>
3256 * javax/naming/spi/NamingManager.java,
3257 javax/naming/spi/ObjectFactory.java,
3258 javax/naming/spi/InitialContextFactory.java,
3259 javax/naming/spi/InitialContextFactoryBuilder.java,
3260 javax/naming/RefAddr.java, javax/naming/Reference.java,
3261 javax/naming/NamingException.java, javax/naming/Context.java,
3262 javax/naming/Referenceable.java,
3263 javax/naming/directory/InitialDirContext.java,
3264 javax/naming/directory/DirContext.java,
3265 javax/naming/directory/Attributes.java,
3266 javax/naming/directory/Attribute.java,
3267 javax/naming/StringRefAddr.java,
3268 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3269 javax/naming/InitialContext.java,
3270 javax/naming/NoInitialContextException.java: New files.
3272 2000-11-25 Anthony Green <green@redhat.com>
3274 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3275 (_Jv_NewPrimArray): Likewise.
3276 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3277 (class JArray): Removed constructor.
3279 * java/lang/Thread.java (context_class_loader): New private data.
3280 (getContextClassLoader): New method.
3281 (setContextClassLoader): New method.
3282 (Thread): Initialize context_class_loader.
3284 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3285 (getResource): Rename to findResource.
3286 (findResource): New method. Used to be getResource.
3287 (getResourceAsStream): Deleted.
3288 (jarFileize): Extracted logic from URLClassLoader constructor into
3289 this new private method.
3290 (addURL): New protected method.
3291 (URLClassLoader): Call jarFileize. Use addElement instead of
3293 (findResources): New method.
3295 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3296 (getResource): Implement correct logic.
3297 (findResource): New method.
3298 (getResources): New method.
3299 (findClass): Create a ClassNotFoundException with the name of the
3300 class rather than nothing at all.
3301 (defineClass) Only throw ClassFormatError.
3303 * java/lang/Class.java (forName): New method.
3304 * java/lang/Class.h (forName): New method.
3305 * java/lang/natClass.cc (forName): New method.
3307 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3309 * java/lang/System.java (setProperties): Only call init_properties()
3310 if properties is null.
3311 (getProperties): Ditto.
3312 (getProperty): Ditto.
3313 (setProperty): Call init_properties if properties are null.
3314 (prop_init): Remove field.
3315 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3316 method. Check for null properties after synchronizing instead of
3317 prop_init flag. Set the properties field last for thread safety.
3319 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3320 test for gcj.dumpobjects property and enable object stream dumping
3322 (dumpElement): No longer native.
3323 (dumpElementln): Ditto.
3324 (setDump): Do not define.
3325 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3326 (dumpElementln): Removed.
3329 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3331 * configure: Rebuilt.
3332 * Makefile.in: Rebuilt.
3333 * Makefile.am (built_java_source_files): Add Configuration.java.
3334 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3335 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3336 Create `gnu' directory in the build tree.
3337 * gnu/classpath/Configuration.java.in: New file.
3339 2000-11-24 Tom Tromey <tromey@cygnus.com>
3341 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3343 (_Jv_NewPrimArray): Likewise.
3345 * gcj/array.h (__JArray): `length' field now const. Added
3347 (class JArray): Added constructor.
3349 2000-11-23 Mark Wielaard <mark@klomp.org>
3351 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3354 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3356 * java/util/Vector.java: Improve exception messages.
3357 (Vector): Check initialCapacity for IllegalArgumentException.
3358 (tromToSize): Don't check for elementCount == elementData.length
3360 (toArray): Don't try to set null marker if target array is the same
3361 length as the vector.
3363 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3365 * Makefile.in: Rebuilt.
3366 * Makefile.am (core_java_source_files): Added Collections.java.
3367 * java/util/List.java: Merged from classpath.
3368 * java/util/Vector.java: Ditto.
3369 * java/util/Collections.java: From classpath.
3370 * java/util/ArrayList.java (addAll(Collection)): Call
3371 addAll(int,Collection) instead of duplicating code.
3372 (indexOf): Clean up int initialization.
3373 (clear): Set cleared array entries to null, to allow garbage
3375 * java/util/List.java: Minor formatting fixes.
3376 * java/util/SimpleTimeZone.java: ditto.
3378 2000-11-18 Tom Tromey <tromey@cygnus.com>
3380 * Makefile.in: Rebuilt.
3381 * Makefile.am (core_java_source_files): Added new files.
3382 * java/lang/reflect/ReflectPermission.java: New class.
3383 * java/io/FileFilter.java: From Classpath
3384 * java/io/FilePermission.java: From Classpath.
3386 2000-11-17 Tom Tromey <tromey@cygnus.com>
3388 * java/lang/reflect/AccessibleObject.java (isAccessible,
3389 setAccessible): Now public.
3391 * java/lang/natString.cc: Include Locale.h.
3392 (toUpperCase): Added `locale' argument. Handle locale
3394 (toLowerCase): Added `locale' argument. Handle locale
3396 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3397 CAPITAL_I): New defines.
3398 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3401 (toUpperCase, toLowerCase): New methods. Variants which accept
3404 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3407 * java/util/PropertyPermission.java: Re-merged from Classpath.
3409 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3411 * java/text/StringCharacterIterator.java: Reindented.
3412 (setText): New method.
3414 2000-11-17 Mark Wielaard <mark@klomp.org>
3416 Merge with Classpath (changes by Bryce McKinlay)
3417 * java/util/jar/*.java: Reformat all to unofficial standard coding
3418 style. No changes of substance.
3420 2000-11-17 Mark Wielaard <mark@klomp.org>
3422 * java/util/zip/*.java: Javadoc updates.
3424 2000-11-17 Tom Tromey <tromey@cygnus.com>
3426 * java/text/CollationKey.java: Implement Comparable.
3427 (compareTo(Object)): New method.
3428 * java/text/Collator.java (compare(Object,Object)): New method.
3429 Implement Comparator.
3431 * java/util/zip/InflaterInputStream.java (available): New method.
3432 (close): New method.
3433 (read, available, skip, fill): Throw exception if stream closed.
3434 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3435 getNextEntry): Throw exception if closed.
3437 2000-11-16 Tom Tromey <tromey@cygnus.com>
3439 * java/io/PushbackReader.java: Merged with Classpath.
3440 * java/util/Arrays.java: Updated from Classpath.
3442 * scripts/blocks.pl: New file.
3443 * java/lang/Character.java (Subset): New class.
3444 (UnicodeBlock): New class.
3446 * java/lang/Math.java (toDegrees, toRadians): New methods.
3448 * java/lang/Float.java: Implement Comparable.
3449 (compareTo): New methods.
3450 * java/lang/Double.java: Implement Comparable.
3451 (compareTo): New methods.
3453 2000-11-16 Warren Levy <warrenl@cygnus.com>
3455 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3457 (listeners): Made transient.
3458 (source): Renamed from 'bean'.
3459 (children): New field for serialization.
3460 (propertyChangeSupportSerializedDataVersion): Ditto.
3461 (serialVersionUID): Ditto.
3462 (writeObject): New serialization method.
3463 (readObject): New serialization method.
3464 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3466 (listeners): Made transient.
3467 (source): Renamed from 'bean'.
3468 (children): New field for serialization.
3469 (vetoableChangeSupportSerializedDataVersion): Ditto.
3470 (serialVersionUID): Ditto.
3471 (writeObject): New serialization method.
3472 (readObject): New serialization method.
3473 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3474 to allow constructor to have a return type (i.e. the class that the
3475 constructor constructs).
3477 2000-11-14 Tom Tromey <tromey@cygnus.com>
3479 * Makefile.in: Rebuilt.
3480 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3483 2000-11-02 Warren Levy <warrenl@cygnus.com>
3485 * java/io/ObjectInputStream.java (readObject): Added code to
3486 conditionally dump out the serialized data.
3487 Handle ENDBLOCKDATA case a bit more gracefully since the current
3488 behavior doesn't seem to work as expected.
3489 (readStreamHeader): Added code for serialized data dumper.
3490 (readNextBlock): Ditto.
3491 (readFields): Ditto.
3492 (dump): New private static field for turning on/off dumper.
3493 (setDump): New native method.
3494 (dumpElement): New native method.
3495 (dumpElementln): New native method.
3496 * java/io/natObjectInputStream.cc (setDump): New method.
3497 (dumpElement): New method.
3498 (dumpElementln): New method.
3500 2000-11-02 Warren Levy <warrenl@cygnus.com>
3502 * java/net/InetAddress.java (addr): Renamed from 'address'.
3503 (address): New field to match Serialized Form doc.
3504 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3505 (family): New serialization field.
3506 (serialVersionUID): New field.
3507 (readObject): New method.
3508 (writeObject): New method.
3509 (getFamily): New native method.
3510 (InetAddress): Set family.
3511 * java/net/natInetAddress.cc (getFamily): New method.
3512 (addr): Renamed from 'address'.
3513 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3514 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3515 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3517 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3519 * java/util/AbstractList.java (SubList): Make it a top-level private
3521 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3523 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3524 * Makefile.in: Rebuilt.
3526 2000-11-02 Tom Tromey <tromey@cygnus.com>
3528 * Makefile.in: Rebuilt.
3529 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3532 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3534 * java/util/AbstractList.java (remove): Comment out modCount increment
3535 to work around compiler bug.
3538 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3540 * java/util/AbstractList.java: Throw messages with
3541 IndexOutOfBoundsExceptions.
3542 (listIterator()): Call listIterator(0).
3543 (size): New field. Initialize to size().
3544 (hasNext): Test position against size, not size().
3545 (remove): Increment knownMod by one instead of resetting it from
3548 (SubList.upMod): Removed.
3549 (SubList.set): Don't call upMod() or update knownMod.
3550 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3551 (SubList.remove): Ditto.
3552 (SubList.addAll): Don't call backingList.size(). Increment size from
3554 (SubList.iterator): New method. Call listIterator(0).
3555 (SubList.listIterator): New method. Restore code to return an anonymous
3556 listIterator implementation (with some changes).
3557 * java/util/AbstractSequentialList.java: Throw messages with
3558 IndexOutOfBoundsExceptions.
3559 (addAll): Add a specnote.
3560 * java/util/ArrayList.java (removeRange): Get the math right.
3561 (addAll): Increment modCount _before_ creating iterator.
3562 * java/util/LinkedList.java: Rewritten, mostly.
3564 2000-11-01 Tom Tromey <tromey@cygnus.com>
3566 * scripts/encodings.pl: Added `ASCII' alias.
3567 * Makefile.in: Rebuilt.
3568 * Makefile.am (convert_source_files): Added new files.
3569 * gnu/gcj/convert/Input_ASCII.java: New file.
3570 * gnu/gcj/convert/Output_ASCII.java: New file.
3571 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3572 out-of-range characters.
3573 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3574 (read): Swap bytes if required. Treat `count' as character count,
3576 (write): Likewise. Also, handle case where iconv fails on a given
3578 (init): Put encoding into exception.
3579 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3580 (static): Call iconv_init. Rebuilt alias list.
3581 (iconv_init): New private method.
3583 2000-11-01 Tom Tromey <tromey@cygnus.com>
3585 * Makefile.in: Rebuilt.
3586 * Makefile.am (install-exec-hook): Only make a single symlink, and
3587 remove the destination before making the link.
3588 * configure: Rebuilt.
3589 * configure.in: Call AC_PROG_LN_S.
3591 2000-10-31 Warren Levy <warrenl@cygnus.com>
3593 * jni.cc: Added include of java/lang/ThreadGroup.h.
3594 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3595 per change of 2000-10-05.
3597 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3599 * java/util/BitSet.java: Updated @specnote.
3601 * java/io/Reader.java: Merge docs from classpath.
3602 (skip): Synchronize on `lock'.
3603 * java/io/FileReader.java: Import correct implementation from
3605 * java/io/StringReader.java: Merge docs from classpath.
3606 (ready): Throw IOException if stream is closed.
3608 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3610 * java/util/AbstractCollection.java (addAll): Use size() instead of
3611 hasNext() in iterator loop.
3613 (contains): Ditto. Simplify loop.
3614 (containsAll): Ditto.
3619 (toString): Ditto. Use string concatenation operators, not
3621 * java/util/AbstractList.java (addAll): Use size() instead of
3622 hasNext() in iterator loop.
3625 (indexOf): Ditto. Don't take null check outside of the loop.
3626 (iterator): Return an AbstractListItr instead of anonymous class.
3627 (lastIndexOf): Use a for loop bounded by size() instead of
3628 hasPrevious() in iterator loop.
3629 (listIterator): Return an AbstractListItr.
3630 (removeRange): Remove bounds checking code and docs.
3631 (AbstractListItr): New inner class. Code moved here from
3633 (SubList.iterator): Removed. Use default implementation from
3634 AbstractList instead.
3635 (SubList.listIterator): As above.
3636 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3637 instead of hasNext() in iterator loop.
3638 (containsValue): Ditto.
3644 (toString): Ditto. Use string concatenation operators, not
3646 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3647 bounded by size() instead of hasNext() in iterator loop.
3648 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3649 part of normal execution flow. Do an explicit null check instead.
3650 * java/util/ArrayList.java (_iSize): Rename to `size'.
3651 (_arData): Rename to `data'.
3652 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3655 (removeRange): Make protected. Don't check bounds.
3656 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3658 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3660 (addAll (int, Collection)): Check lower bounds. Simplify exception
3662 (clone): Clone the data array too.
3663 (indexOf): Inline doesEqual().
3664 (lastIndexOf): Ditto.
3665 (clear): Don't set array data to null.
3666 (set): Check lower bounds. Simplify exception string.
3667 (toArray): Correct comment.
3668 (trimToSize): Don't update modCount, this is not a structural change.
3671 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3673 (toString): Declare `bit' as long, not int.
3674 (data): Made package-private, not private.
3676 2000-10-27 Warren Levy <warrenl@cygnus.com>
3678 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3679 array elements to true.
3681 2000-10-27 Warren Levy <warrenl@cygnus.com>
3683 * Makefile.am: Added locale files from Classpath.
3684 * Makefile.in: Rebuilt.
3685 * gnu/java/locale/Calendar.java: New file.
3686 * gnu/java/locale/Calendar_de.java: New file.
3687 * gnu/java/locale/Calendar_en.java: New file.
3688 * gnu/java/locale/Calendar_nl.java: New file.
3689 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3690 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3691 serialization compatibility.
3692 (scale): Made private.
3693 (serialVersionUID): New field.
3694 * java/math/BigInteger.java (ival): Made transient.
3695 (words): Made transient.
3696 (bitCount): New serialization field.
3698 (firstNonzeroByteNum): Ditto.
3699 (lowestSetBit): Ditto.
3702 (serialVersionUID): New field.
3703 (readObject): New method.
3704 (writeObject): New method.
3705 * java/util/BitSet.java (serialVersionUID): New field.
3706 * java/util/Calendar.java: Replaced with Classpath file.
3707 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3708 of getDefault() for TimeZone or Locale instead of passing nulls.
3709 * java/util/Locale.java (serialVersionUID): New field.
3710 (writeObject): New method.
3711 (readObject): New method.
3712 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3714 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3716 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3717 (core_java_source_files): Put java.lang, java.io, and java.util here.
3718 (ordinary_java_source_files): Order so that core_java_source_files are
3720 (java_source_files): Reorder so that special_java_source_files are
3722 * configure.in: Don't pass -I flag to gcj.
3723 * Makefile.in: Rebuilt.
3724 * configure: Rebuilt.
3726 2000-10-25 Tom Tromey <tromey@cygnus.com>
3728 * Makefile.in: Rebuilt.
3729 * Makefile.am (install-exec-hook): New target.
3731 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3733 * java/util/EventObject.java: Merged from classpath.
3735 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3738 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3740 * java/util/AbstractSet.java (equals): Re-installed original code.
3742 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3744 * Makefile.am: Added rules for libgcjx library.
3745 * Makefile.in: Rebuilt.
3746 * configure.in: Added check for X.
3747 * configure: Rebuilt.
3748 * gnu/awt/LightweightRedirector.java: New file.
3749 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3750 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3751 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3752 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3753 * gnu/awt/j2d/MappedRaster.java: New file.
3754 * gnu/awt/xlib/XCanvasPeer.java: New file.
3755 * gnu/awt/xlib/XEventLoop.java: New file.
3756 * gnu/awt/xlib/XEventQueue.java: New file.
3757 * gnu/awt/xlib/XFontMetrics.java: New file.
3758 * gnu/awt/xlib/XFramePeer.java: New file.
3759 * gnu/awt/xlib/XGraphics.java: New file.
3760 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3761 * gnu/awt/xlib/XPanelPeer.java: New file.
3762 * gnu/awt/xlib/XToolkit.java: New file.
3763 * gnu/gcj/xlib/Clip.java: New file.
3764 * gnu/gcj/xlib/Colormap.java: New file.
3765 * gnu/gcj/xlib/Display.java: New file.
3766 * gnu/gcj/xlib/Drawable.java: New file.
3767 * gnu/gcj/xlib/Font.java: New file.
3768 * gnu/gcj/xlib/GC.java: New file.
3769 * gnu/gcj/xlib/Pixmap.java: New file.
3770 * gnu/gcj/xlib/Screen.java: New file.
3771 * gnu/gcj/xlib/Visual.java: New file.
3772 * gnu/gcj/xlib/WMSizeHints.java: New file.
3773 * gnu/gcj/xlib/Window.java: New file.
3774 * gnu/gcj/xlib/WindowAttributes.java: New file.
3775 * gnu/gcj/xlib/XAnyEvent.java: New file.
3776 * gnu/gcj/xlib/XButtonEvent.java: New file.
3777 * gnu/gcj/xlib/XColor.java: New file.
3778 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3779 * gnu/gcj/xlib/XConnectException.java: New file.
3780 * gnu/gcj/xlib/XEvent.java: New file.
3781 * gnu/gcj/xlib/XException.java: New file.
3782 * gnu/gcj/xlib/XExposeEvent.java: New file.
3783 * gnu/gcj/xlib/XID.java: New file.
3784 * gnu/gcj/xlib/XImage.java: New file.
3785 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3786 * gnu/gcj/xlib/natClip.cc: New file.
3787 * gnu/gcj/xlib/natColormap.cc: New file.
3788 * gnu/gcj/xlib/natDisplay.cc: New file.
3789 * gnu/gcj/xlib/natDrawable.cc: New file.
3790 * gnu/gcj/xlib/natFont.cc: New file.
3791 * gnu/gcj/xlib/natGC.cc: New file.
3792 * gnu/gcj/xlib/natPixmap.cc: New file.
3793 * gnu/gcj/xlib/natScreen.cc: New file.
3794 * gnu/gcj/xlib/natVisual.cc: New file.
3795 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3796 * gnu/gcj/xlib/natWindow.cc: New file.
3797 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3798 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3799 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3800 * gnu/gcj/xlib/natXColor.cc: New file.
3801 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3802 * gnu/gcj/xlib/natXException.cc: New file.
3803 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3804 * gnu/gcj/xlib/natXImage.cc: New file.
3805 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3806 * java/awt/EventDispatchThread.java: Start thead on creation.
3808 2000-10-20 Tom Tromey <tromey@cygnus.com>
3810 From Arno J. Klaassen:
3811 * interpret.cc: Include <stdlib.h> for alloca.
3812 * defineclass.cc: Include <stdlib.h> for alloca.
3814 * Makefile.in: Rebuilt.
3815 * Makefile.am: Include deps.mk.
3816 (GCJCOMPILE): Added -MD, -MT, and -MF.
3817 ($(javao_files)): Don't depend on libgcj.zip.
3818 (all-recursive): New target.
3819 (%.lo:%.cc): Do dependency tracking.
3820 ($(nat_headers)): Don't depend on libgcj.zip.
3821 * configure: Rebuilt.
3822 * configure.in: Make .d files and deps.mk.
3824 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3826 * exception.cc: Don't #include "exception".
3827 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3829 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3830 * Makefile.in: Updated.
3832 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3834 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3835 * java/awt/peer/ComponentPeer.java (disable): Removed.
3838 (minimumSize): Removed.
3839 (preferredSize): Removed.
3842 * java/awt/peer/ListPeer.java (addItem): Removed.
3844 (minimumSize): Removed.
3845 (preferredSize): Removed.
3846 (setMultipleSelections): Removed.
3847 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3848 (remove): Renamed from removeMenu.
3849 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3851 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3852 (remove): Renamed from removeItem.
3853 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3854 (getMinimumSize): Removed.
3855 (getPreferredSize): Removed.
3856 (minimumSize): Removed.
3857 (preferredSize): Removed.
3858 (replaceText): Removed.
3859 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3860 (preferredSize): Removed.
3861 (getMinimumSize): Removed.
3862 (getPreferredSize): Removed.
3863 (setEchoCharacter): Removed.
3865 2000-10-10 Warren Levy <warrenl@cygnus.com>
3867 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3868 * java/sql/Date.java (serialVersionUID): New field.
3869 * java/sql/Time.java (serialVersionUID): New field.
3870 * java/sql/Timestamp.java (serialVersionUID): New field.
3871 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3872 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3873 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3874 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3875 (readObject): New serialization method.
3876 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3877 (serialVersionOnStream): New field.
3878 (readObject): New serialization method.
3879 (getMonetaryDecimalSeparator): New method.
3880 (setMonetaryDecimalSeparator): New method.
3881 * java/text/NumberFormat.java (maxFractionDigits): New field.
3882 (maxIntegerDigits): New field.
3883 (minFractionDigits): New field.
3884 (minIntegerDigits): New field.
3885 (serialVersionOnStream): New field.
3886 (serialVersionUID): New field.
3887 (readObject): New serialization method.
3888 (writeObject): New serialization method.
3889 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3890 (serialVersionOnStream): New field.
3891 (serialVersionUID): New field.
3892 (readObject): New serialization method.
3894 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3896 * configure.in (GCJ): Avoid bogus error message when looking for
3897 (and not finding) gcj in the build tree.
3898 * configure: Rebuilt.
3900 2000-10-09 Tom Tromey <tromey@cygnus.com>
3902 * configure: Rebuilt.
3903 * configure.in: Include sys/types.h when checking for socklen_t.
3904 From Arno J. Klaassen.
3906 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3908 * include/jvm.h: Enable __builtin_expect().
3910 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3911 the main program. Fix for PR libgcj/341.
3913 2000-10-07 Tom Tromey <tromey@cygnus.com>
3915 * java/util/Properties.java: Merged with Classpath version.
3917 2000-10-05 Tom Tromey <tromey@cygnus.com>
3919 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3920 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3921 * java/lang/Class.h (Object): Added `class$' field.
3922 * java/lang/Object.h (Object): Added `class$' field.
3923 * defineclass.cc (ClassClass): Use `class$' form.
3924 (ClassObject): Likewise.
3925 * resolve.cc (ClassObject): Use `class$' form.
3926 (ObjectClass): Likewise.
3927 * interpret.cc (ClassError): Removed.
3928 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3930 (IntegerClass): Likewise.
3931 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3933 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3934 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3935 SerializableClass): Likewise.
3936 Include Serializable.h, Cloneable.h.
3937 * java/lang/natSystem.cc (SystemClass): Removed.
3938 (init_properties): Use `class$' form.
3939 * java/lang/natObject.cc (CloneableClass): Removed.
3940 (clone): Use `class$' form.
3941 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3942 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3943 ConstructorClass): Likewise.
3944 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3945 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3946 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3947 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3949 (ClassClass): Likewise.
3950 * include/jvm.h (StringClass): Use `class$' form.
3951 * prims.cc (ObjectClass): Removed.
3952 (_Jv_RunMain): Use `class$' form.
3953 (_Jv_AllocObject): Likewise.
3954 * jni.cc (ClassClass): Use `class$' form.
3955 (ThrowableClass): Likewise.
3956 (ObjectClass): Likewise.
3957 (MethodClass): Likewise.
3958 (ThreadGroupClass): Likewise.
3959 (NativeThreadClass): Likewise.
3960 * boehm.cc (ObjectClass): Removed.
3961 (ClassClass): Removed.
3962 (_Jv_MarkObj): Use `class$' form.
3963 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3966 2000-10-05 Warren Levy <warrenl@cygnus.com>
3968 * Makefile.am: Removed java/io/Replaceable.java and
3969 java/io/Resolvable.java.
3970 * Makefile.in: Rebuilt.
3971 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3973 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3975 (processResolution): Handle readResolve method via reflection with
3976 removal of Resolvable interface.
3977 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3978 method via reflection with removal of Replaceable interface.
3979 * java/io/Replaceable.java: Removed.
3980 * java/io/Resolvable.java: Removed.
3981 * java/security/Key.java (serialVersionUID): New field.
3982 * java/security/Provider.java (serialVersionUID): New field.
3983 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3985 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3987 * java/sql/DataTruncation.java (serialVersionUID): New field.
3988 * java/sql/SQLException.java (serialVersionUID): New field.
3989 * java/sql/SQLWarning.java (serialVersionUID): New field.
3990 * java/util/Date.java (serialVersionUID): New field.
3991 (millis): Made transient.
3992 (readObject): New method.
3993 (writeObject): New method.
3995 2000-10-05 Tom Tromey <tromey@cygnus.com>
3997 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3999 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4001 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4002 (JvRunMain): Set _Jv_argv and _Jv_argc.
4003 * java/awt/Component.java: Minor fixes.
4004 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4005 * java/awt/Toolkit.java (systemEventQueue): Removed.
4006 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4007 * java/awt/Window.java (getToolkit): Don't call super.
4008 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4009 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4010 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4011 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4012 * gnu/awt/gtk/GtkFramePeer.java: New file.
4013 * gnu/awt/gtk/GtkMainThread.java: New file.
4014 * gnu/awt/gtk/GtkToolkit.java: New file.
4015 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4016 * gnu/awt/gtk/gtkcommon.cc: New file.
4017 * gnu/awt/gtk/gtkcommon.h: New file.
4018 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4019 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4020 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4021 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4022 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4023 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4025 2000-09-30 Tom Tromey <tromey@cygnus.com>
4027 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4028 interrupted before modifying the cv's wait set.
4031 2000-09-30 Hans Boehm <boehm@acm.org>
4032 Bryce McKinlay <bryce@albatross.co.nz>
4034 Implement bitmap descriptor based marking for Boehm GC.
4036 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4037 * configure: Rebuilt.
4038 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4039 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4040 method get_finalizer().
4041 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4042 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4043 (_Jv_AllocObj): Add new jclass parameter.
4044 (_Jv_AllocArray): Ditto.
4045 (_Jv_BuildGCDescr): New prototype.
4046 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4047 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4048 get_finalizer() instead of direct finalizer vtable offset.
4049 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4050 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4051 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4052 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4053 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4054 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4055 (_Jv_DetermineVTableIndex): Ditto.
4056 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4057 calculations to account for new gc_descr field.
4058 * boehm.cc: #include gc_gcj.h.
4059 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4060 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4061 New commentary from HB. Mark the classes vtable.
4062 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4063 (GC_DEFAULT_DESCR): New #define.
4064 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4065 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4066 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4067 scan conservativly if size is less than min_heap_addr. Set vtable
4068 pointer of new object before returning.
4069 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4070 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4071 allocation for obj_kind_x.
4072 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4073 (_Jv_AllocObj): Set vtable on returned object.
4074 (_Jv_AllocArray): Ditto.
4075 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4076 (_Jv_NewPrimArray): Ditto.
4077 (_Jv_AllocObj): Declare as a friend.
4078 (_Jv_AllocArray): Ditto.
4079 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4080 from &ObjectClass into new array class. Remove offset-by-one
4081 adjustments from `method' size calculations to account for gc_descr
4084 2000-09-26 Tom Tromey <tromey@cygnus.com>
4086 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4087 `remove', not `add'.
4089 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4091 * java/lang/natSystem.cc (file_encoding): Added return statement.
4093 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4095 * Makefile.am: Re-work shell commands that exceeded command-line
4097 * Makefile.in: Rebuilt.
4099 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4101 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4102 * java/lang/natDouble.cc: Likewise.
4103 * java/lang/reflect/natMethod.cc: Likewise.
4104 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4106 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4108 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4110 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4111 * acinclude.m4: Arrange for automake to not bring in a new
4112 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4113 * Makefile.am: Leave it up to automake to subst GCJ.
4114 * aclocal.m4, configure, Makefile.in: Rebuilt.
4116 2000-09-13 Tom Tromey <tromey@cygnus.com>
4118 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4119 (get): Ensure Boolean class is initialized.
4120 * java/lang/reflect/natField.cc (BooleanClass): New define.
4121 (get): Ensure Boolean class is initialized.
4123 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4125 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4126 Initialize with anonymous class.
4127 (compareToIgnoreCase): New method.
4129 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4130 (uncaughtException): Set had_uncaught_exception.
4131 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4132 exit with error status if set.
4133 (_Jv_RunMain): Ditto.
4135 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4137 * configure: Rebuilt with new ../libtool.m4.
4139 2000-09-11 Tom Tromey <tromey@cygnus.com>
4141 * java/lang/reflect/Field.java (toString): Don't rely on
4144 2000-09-08 Tom Tromey <tromey@cygnus.com>
4146 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4147 default decoder use iconv.
4148 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4149 Let default encoder use iconv.
4150 * configure: Rebuilt.
4151 * configure.in: Check for nl_langinfo and <langinfo.h>.
4152 * java/lang/natSystem.cc (file_encoding): New function.
4153 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4155 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4157 * acinclude.m4: Simplify the tests for CC and CXX.
4158 * aclocal.m4, configure: Rebuilt.
4160 * acinclude.m4: Include libtool macros from the source tree.
4161 * aclocal.m4, configure: Rebuilt.
4163 2000-09-08 Warren Levy <warrenl@cygnus.com>
4165 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4166 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4167 * java/io/File.java (writeObject): Added.
4168 (readObject): Added.
4169 (serialVersionUID): Added.
4170 * java/io/ObjectOutputStream.java (writeObject): Initialized
4171 fieldsAlreadyWritten before recursion rather than after.
4172 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4173 * java/io/OptionalDataException.java (serialVersionUID): Added.
4174 (OptionalDataException): Made package private.
4175 * java/io/SyncFailedException.java (SyncFailedException): Removed
4176 default constructor to match spec.
4177 * java/lang/Boolean.java (serialVersionUID): Added.
4178 * java/lang/Byte.java (serialVersionUID): Added.
4179 * java/lang/Character.java (serialVersionUID): Added.
4180 * java/lang/Double.java (serialVersionUID): Added.
4181 * java/lang/Float.java (serialVersionUID): Added.
4182 * java/lang/Integer.java (serialVersionUID): Added.
4183 * java/lang/Long.java (serialVersionUID): Added.
4184 * java/lang/Number.java (serialVersionUID): Added.
4185 * java/lang/Short.java (serialVersionUID): Added.
4186 * java/lang/String.java (serialVersionUID): Added.
4187 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4189 * java/lang/reflect/InvocationTargetException.java
4190 (serialVersionUID): Added.
4191 * java/net/URL.java (handler): Made transient.
4192 (hashCode): Added field for serialization, per spec. and use
4193 cached value if available.
4194 (serialVersionUID): Added.
4195 (URL): Initialize hashCode.
4196 (set): Adjust hashCode.
4197 (readObject): New Method to initialize the protocol handler when
4199 (writeObject): New method.
4200 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4201 * java/text/Collator.java: Removed 'implements Serializable'.
4202 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4203 * java/util/Properties.java (serialVersionUID): Added.
4204 * java/util/Random.java (serialVersionUID): Added.
4205 (seed): Made private.
4206 (nextNextGaussian): Made private.
4207 (haveNextNextGaussian): Made private.
4208 * java/util/Stack.java (serialVersionUID): Added.
4209 * java/util/TimeZone.java (serialVersionUID): Added.
4210 * java/util/Vector.java (serialVersionUID): Added.
4212 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4214 * Makefile.am (Thread.h): Don't be friends with native threads
4216 * Makefile.in: Rebuilt.
4217 * java/lang/Thread.java (interrupt_flag): Make package-private.
4219 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4221 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4222 to avoid long long division.
4224 2000-09-06 Tom Tromey <tromey@cygnus.com>
4226 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4228 * java/lang/reflect/Method.java (toString): Use `getName' for
4231 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4232 `args' if method takes no parameters.
4234 Fix for PR java.lang/339:
4235 * java/lang/natPosixProcess.cc (fail): New function.
4236 (cleanup): New function.
4237 (startProcess): Use them. Create pipe so child can communicate
4238 exec failure back to parent.
4240 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4242 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4244 (send): Undo last patch. Remove the label only.
4246 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4248 * java/net/natInetAdress.cc: Ditto.
4250 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4252 2000-09-05 Tom Tromey <tromey@cygnus.com>
4254 * doc/cni.sgml: Updated from master copy.
4256 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4258 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4260 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4262 * java/lang/fdlibm.h: #undef __P if previously defined.
4263 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4264 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4268 2000-09-04 Tom Tromey <tromey@cygnus.com>
4270 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4273 2000-09-04 Anthony Green <green@redhat.com>
4275 Fix for PR java.io/203:
4276 * java/io/File.java (createTempFile): Obey directory argument.
4277 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4278 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4279 variable to set java.io.tmpdir on non-WIN32 systems.
4281 2000-09-04 Anthony Green <green@redhat.com>
4283 * java/io/File.java (deleteOnExit): New method.
4284 * gnu/gcj/runtime/FileDeleter.java: New class.
4285 * java/lang/natRuntime.cc (exit): Call
4286 FileDeleter.deleteOnExitNow()
4287 * Makefile.am: Add FileDeleter.java.
4288 * Makefile.in: Rebuilt.
4290 2000-09-02 Tom Tromey <tromey@cygnus.com>
4292 * Makefile.in: Rebuilt.
4293 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4294 environment variable.
4296 2000-09-01 Andrew Haley <aph@redhat.com>
4298 * java/io/StreamTokenizer.java: Don't throw a
4299 NumberFormatException if a field is numeric as far as the
4300 StreamTokenizer is concerned but not as far as Double.valueOf() is
4301 concerned: return a zero instead.
4303 2000-08-30 Tom Tromey <tromey@cygnus.com>
4305 * Makefile.in: Rebuilt.
4306 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4308 2000-08-28 Tom Tromey <tromey@cygnus.com>
4310 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4311 gnu/gcj/awt/ComponentDataBlitOp.java,
4312 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4313 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4314 java/awt/color/ICC_ColorSpace.java,
4315 java/awt/color/ICC_Profile.java,
4316 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4317 java/awt/image/ComponentColorModel.java,
4318 java/awt/image/ComponentSampleModel.java,
4319 java/awt/image/DataBuffer.java,
4320 java/awt/image/DataBufferByte.java,
4321 java/awt/image/DataBufferInt.java,
4322 java/awt/image/DataBufferUShort.java,
4323 java/awt/image/DirectColorModel.java,
4324 java/awt/image/IndexColorModel.java,
4325 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4326 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4327 java/awt/image/SinglePixelPackedSampleModel.java,
4328 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4329 Removed Latin-1 copyright symbols.
4330 * java/util/zip/ZipFile.java: Indentation fixes.
4332 2000-08-27 Mark Wielaard <mark@klomp.org>
4334 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4335 constructor, close can delete the file, finalize calls close.
4336 * java/util/jar/JarFile.java: Constructor that takes mode now
4339 2000-08-27 Anthony Green <green@redhat.com>
4341 * java/util/ArrayList.java, java/util/Timer.java,
4342 java/util/LinkedList.java, java/util/TimerTask.java,
4343 java/util/HashMap.java, java/util/AbstractMap.java,
4344 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4345 java/util/SortedSet.java: Imported from GNU Classpath.
4346 * Makefile.in: Rebuilt.
4347 * Makefile.am: Added new files.
4349 2000-08-26 Anthony Green <green@redhat.com>
4351 * Makefile.in: Rebuilt.
4352 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4355 * prims.cc: Include ClassLoader.h.
4356 (_Jv_RunMain): When executing jar files, classpath must be the jar
4357 file only. Lose our reference to the system ClassLoader in order
4358 to get a new one with the correct classpath.
4359 * java/lang/natSystem.cc (init_properties): When executing a jar
4360 file, only use the jar file for java.class.path.
4362 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4363 for bytecode archives.
4365 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4366 exists, but not Main-Class.
4368 2000-08-23 Mark Wielaard <mark@klomp.org>
4370 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4371 return -1 when fill() has no more data for the Inflater.
4373 2000-08-23 Mark Wielaard <mark@klomp.org>
4375 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4376 write(String) already does.
4378 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4380 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4381 to `alive_flag', call `init'.
4382 (init): New native method.
4383 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4386 2000-08-21 Mark Wielaard <mark@klomp.org>
4388 * Makefile.in: Rebuilt.
4389 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4391 (java/lang/reflect/Field.h): Likewise.
4392 (java/lang/reflect/Method.h): Likewise.
4393 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4396 2000-08-21 Tom Tromey <tromey@cygnus.com>
4398 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4401 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4403 * java/lang/natSystem.cc (init_properties): Change sourceware
4404 reference to sources.redhat.com.
4406 * include/java-props.h: Add _Jv_Jar_Class_Path.
4407 * prims.cc: Ditto. Set it from `gij -jar file' option.
4409 * java/lang/natSystem.cc (init_properties): Set java.class.path
4411 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4413 * java/util/PropertyPermission.java: Import from GNU Classpath.
4414 * Makefile.in: Rebuilt.
4415 * Makefile.am: Add java/util/PropertyPermission.java.
4416 * java/lang/System.java: Add setProperty method.
4418 * gij.cc (main): Add -jar option to execute jar files.
4419 (help): Describe -jar option.
4420 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4421 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4422 * gnu/gcj/runtime/FirstThread.java (main): New method.
4424 * java/util/jar/Attributes.java: Correct comment spelling.
4426 2000-08-20 Mark Wielaard <mark@klomp.org>
4428 * java/util/zip/Adler32.java: Make private variables really private
4429 * java/util/zip/CRC32.java: Make private variables really private
4430 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4432 * java/util/zip/InflaterInputStream.java: skip() could skip to
4434 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4435 * java/util/zip/ZipFile.java: size() new 1.2 method
4436 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4437 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4440 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4442 * java/util/jar/JarFile.java: Don't call
4443 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4446 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4448 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4449 Read the entire contents of the class file, not just what is
4452 * java/net/JarURLConnection.java: getEntry doesn't take any
4453 arguments. Return null if element is null.
4455 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4456 size from the archive, not the inflated size.
4458 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4459 java.util.zip.ZipFile.getEntry.
4461 * gij.cc (help): Change sourceware reference to
4464 2000-08-19 Tom Tromey <tromey@cygnus.com>
4466 * java/util/zip/ZipInputStream.java (createZipEntry):
4469 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4471 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4472 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4473 java/util/jar/JarInputStream.java,
4474 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4475 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4476 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4477 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4478 java/security/cert/Certificate.java,
4479 java/security/cert/CertificateEncodingException.java,
4480 java/security/cert/CertificateException.java,
4481 java/security/cert/CertificateExpiredException.java,
4482 java/security/cert/CertificateFactory.java,
4483 java/security/cert/CertificateFactorySpi.java,
4484 java/security/cert/CertificateNotYetValidException.java,
4485 java/security/cert/CertificateParsingException.java,
4486 java/security/cert/X509CRL.java,
4487 java/security/cert/X509CRLEntry.java,
4488 java/security/cert/X509Certificate.java,
4489 java/security/cert/X509Extension.java: Imported from Classpath.
4490 * java/util/Hashtable.java: Imported from Classpath.
4492 * java/util/zip/ZipInputStream.java: Create stub for
4495 * gcj/javaprims.h: Updated class list.
4497 * Makefile.in, gcj/Makefile.in: Rebuilt.
4498 * Makefile.am (ordinary_java_source_files): Add these new classes.
4500 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4502 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4503 * gnu/gcj/awt/GLightweightPeer.java: New file.
4504 * java/awt/BorderLayout.java: Implemented all methods.
4505 * java/awt/Button.java (actionListener, actionCommand): Renamed
4506 and modifier change.
4507 (addNotify): Call super.
4508 (dispatchEventImpl): New method.
4509 (getListeners): New method.
4510 (label): Made package-private, not private.
4511 * java/awt/Canvas.java: Implemented class body.
4512 * java/awt/Color.java (brighter): New method.
4513 (darker): New method.
4514 (hashCode): New method.
4515 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4516 (getGraphicsConfiguration): Delegate to
4517 getGraphicsConfigurationImpl().
4518 (getGraphicsConfigurationImpl): New method.
4519 (getToolkit): Only return value from peer if not null.
4520 (isDisplayable): Check with parent.
4521 (isShowing): No parent implies not showing.
4522 (getForeground): Check parent property if local is null.
4523 (getBackground): Likewise.
4524 (getFont): Likewise.
4525 (setForeground): Inform peer.
4526 (setBackground): Likewise
4527 (setLocale): Invalidate component.
4528 (getColorModel): Implemented.
4529 (setLocation): Invalidate, or ignore if no change.
4530 (setSize): Invalidate, or ignore if no change.
4531 (setBounds): Invalidate, or ignore if no change.
4532 (isOpaque): By default, heavyweight implies opaque.
4533 (isLightweight): Implemented.
4534 (getMaximumSize): Implemented.
4535 (doLayout): Implemented, NOP.
4536 (validate): Implemented, NOP.
4537 (invalidate): Only propagate to parent if parent was valid.
4538 (getGraphics): Implemented.
4539 (getFontMetrics): Implemented.
4540 (update): Implemented.
4541 (paintAll): Implemented.
4542 (repaint): Implemented all repaint methods.
4543 (print): Implemented.
4544 (printAll): Implemented.
4545 (createImage): Implemented.
4546 (dispatchEvent): Give the peer a chance to handle the event.
4547 (dispatchEventImpl): Dispatch paint events.
4548 (enableEvents): Lightweights enable events on parent component.
4549 (coalesceEvents): Coalesce paint events, and select event type
4551 (coalescePaintEvents): New method.
4552 (processEvent): Fix unfortunate ordering of statements, and call
4553 correct method for MOUSE_CLICKED.
4554 (processPaintEvent): New method.
4555 (addNotify): Allow container to notify children before event
4556 mask is set in peer.
4557 (addNotifyContainerChildren): New method.
4558 (removeNotify): Visibility should not change on removeNotify.
4559 (paramString): Implemented.
4560 (list): Implemented two of the list methods.
4561 * Container (myInsets): Removed, insets are managed by peer.
4562 (getInsets): Query peer.
4563 (addImpl): Fix reparenting, enable events for lightweights,
4564 initialize component array.
4565 (validate): Call doLayout in validateTree() instead.
4566 (validateTree): Do nothing if already valid. Call beginValidate(),
4567 endValidate() on peer. Call validateTree() instead of validate()
4568 for children that are containers. Mark valid after validation of
4570 (setFont): Partial implementation.
4571 (paint): Implemented.
4572 (visitChildren): New method.
4573 (visitChild): New method.
4574 (update): Implemented.
4575 (print): Implemented.
4576 (paintComponents): Implemented.
4577 (printComponents): Consider translation and clipping.
4578 (getComponentAt): Ignore invisible children. Return this if no
4580 (addNotify): Call super.
4581 (addNotifyContainerChildren): New method.
4582 (paramString): Implemented.
4583 (list): Implemented.
4584 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4586 (invokeLater): Likewise.
4587 (isDispatchThread): Likewise.
4588 * java/awt/FontMetrics (getLeading): Formula change.
4589 (getDescent): Consider leading also.
4590 (getMaxAscent): Default to getAscent().
4591 (getMaxDescent): Default to getDescent.
4592 (getMaxAdvance): Return value signifying unknown.
4593 (charWidth): Both methods implemented.
4594 (charsWidth): Implemented.
4595 (bytesWidth): Implemented.
4596 (getWidths): Implemented.
4597 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4599 (Frame): Rearragend constuctor chaining to disallow null being
4600 passed as a graphics configuration.
4601 (getTitle): Return empty string if null.
4603 (getIconImage): New method.
4604 (setIconImage): New method.
4605 (finalize): New method.
4606 (setMenuBar): Notify peer.
4607 (isResizable): New method.
4608 (setResizable): New method.
4609 (getState): New method.
4611 (remove): Implemented.
4612 (removeNotify): New method.
4613 (getFrames): New method.
4614 * java/awt/Graphics.java: Implemented body of class.
4615 * java/awt/Graphics2D.java: New file.
4616 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4617 * java/awt/Image.java: Implemented body of class.
4618 * java/awt/Panel.java (Panel): Call correct super constructor.
4619 (addNotify): Implemented.
4620 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4621 * java/awt/RenderingHints.java: New file.
4622 * java/awt/Toolkit.java (createComponent): Implemented.
4623 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4624 * java/awt/Window.java (Window): Two new constructors. Reordered
4625 constructor chaining.
4626 (getGraphicsConfigurationImpl): New method.
4627 (finalize): Call super.
4628 (addNotify): Call super.
4629 (pack): Do layout stuff.
4630 (show): Ensure that peer exists and that component is valid.
4631 (dispose): Dispose owned children.
4632 (getOwner): Simplify code, casting null pointers is valid.
4633 (getGraphicsConfiguration): Ask peer if local value is null.
4634 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4636 * java/awt/image/BufferedImage.java: New file.
4637 * java/awt/image/RasterOp.java: New file.
4638 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4639 More powerfull replacement for getColorModel().
4640 (getColorModel) Removed.
4641 (setEventMask) New method.
4642 * Makefile.am: Added new files.
4643 * Makefile.in: Rebuilt.
4645 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4647 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4648 (finit_leg_name): New global.
4649 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4650 `$finit$'. This is a backward compatibility hack.
4651 (java::lang::Class::_getMethods): Likewise.
4653 2000-08-15 Andrew Haley <aph@cygnus.com>
4655 * include/jvm.h (_Jv_HashCode): New hash code.
4657 2000-08-15 Tom Tromey <tromey@cygnus.com>
4659 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4661 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4663 * THANKS: More thanks.
4665 2000-08-10 Tom Tromey <tromey@cygnus.com>
4667 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4669 (connect): Likewise.
4671 (getOption): Likewise.
4672 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4673 case when errno not set.
4676 (receive): Likewise.
4677 (mcastGrp): Likewise.
4678 (setOption): Likewise.
4679 (getOption): Likewise.
4681 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4682 John Stracke <francis@ecal.com>
4684 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4685 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4687 (disconnect): Don't unset connected flag.
4688 (getHeaderField (String)): Call connect() if not connected.
4689 (getHeaderField (int)): Ditto.
4690 (getHeaderFieldKey): Ditto.
4691 (getHttpHeaders): Don't call connect().
4692 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4693 gotResponseVals): New fields.
4694 (getResponseCode): Call getResponseVals() conditionally.
4695 (getResponseMessage): Ditto.
4696 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4698 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4700 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4701 * Makefile.in: Rebuilt.
4702 * java/awt/Color.java (getTransparency): New method.
4703 * java/awt/Component.java: Various updates.
4704 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4705 after dealing with children.
4706 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4707 * java/awt/Window.java: Various new methods and updates.
4708 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4710 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4711 * java/awt/event/WindowEvent.java (paramString): Ditto.
4712 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4714 * java/awt/geom/Point2D.java (clone): Ditto.
4715 * java/awt/geom/RectangularShape.java (clone): Ditto.
4716 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4717 isAlphaPremultiplied): Make package-private, not private.
4719 2000-08-08 Tom Tromey <tromey@cygnus.com>
4721 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4722 surrogate characters.
4723 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4725 (write): Correct handling of surrogate characters.
4727 2000-08-07 Tom Tromey <tromey@cygnus.com>
4729 * java/lang/reflect/Method.java (hashCode): Use getName().
4730 (toString): Likewise.
4731 * java/lang/reflect/natMethod.cc (getType): Initialize
4734 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4736 * java/lang/reflect/Field.java (toString): Correct formatting.
4739 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4741 (receive): Streamlined.
4743 2000-08-05 Tom Tromey <tromey@cygnus.com>
4745 * java/io/PrintWriter.java: Merged comments from Classpath.
4746 (printlnUnsynchronized): Removed.
4747 (println()): Print the separator.
4748 (println): Call println(), not printlnUnsynchronized.
4749 (out): Now protected, to match spec.
4751 2000-08-04 Tom Tromey <tromey@cygnus.com>
4753 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4754 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4757 2000-08-03 Warren Levy <warrenl@cygnus.com>
4759 * java/io/ObjectInputStream.java (readFields): Turn off
4760 readDataFromBlock while reading via GetField.
4761 (GetField$1.get(String, Object)): Pass Class of default value to
4763 (getField): Allow for null default values.
4765 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4766 (PutField$1.put): Fixed calls of checkType in most of the put
4767 methods to pass the correct parameter.
4768 (PutField$1.put(String, Object)): Allow for null value arg.
4769 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4772 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4773 typo in spec'ed field name.
4774 (getSerialPersistentFields): Changed spelling of method to match
4775 the correct spelling of the spec'ed field name.
4777 2000-08-03 Tom Tromey <tromey@cygnus.com>
4779 * Makefile.in: Rebuilt.
4780 * Makefile.am (awt_java_source_files): Added new files.
4782 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4784 * Makefile.am: Add new AWT stubs.
4785 * java/awt/Canvas.java: New placeholder class.
4786 * java/awt/Checkbox.java: Ditto.
4787 * java/awt/CheckboxMenuItem.java: Ditto.
4788 * java/awt/Choice.java: Ditto.
4789 * java/awt/Dialog.java: Ditto.
4790 * java/awt/FileDialog.java: Ditto.
4791 * java/awt/List.java: Ditto.
4792 * java/awt/ScrollPane.java: Ditto.
4793 * java/awt/TextField.java: Ditto.
4794 * java/awt/datatransfer/Clipboard.java: Ditto.
4795 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4796 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4797 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4798 Some commented out. Partially implemented.
4799 * java/awt/natToolkit.cc: Removed file.
4801 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4803 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4804 Fixes "make -j" builds.
4805 * Makefile.in: Rebuild.
4807 2000-08-02 Tom Tromey <tromey@cygnus.com>
4809 * Makefile.in: Rebuilt.
4810 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4811 * java/net/natPlainSocketImpl.cc: Include posix.h.
4812 (accept): Use _Jv_select.
4813 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4814 (receive): Use _Jv_select.
4815 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4816 (available): Use _Jv_select.
4817 * java/lang/natSystem.cc: Include posix.h.
4818 (currentTimeMillis): Use _Jv_gettimeofday.
4819 * include/posix.h: New file.
4820 * posix.cc: New file.
4822 * scripts/encodings.pl: New file.
4823 * Makefile.in: Rebuilt.
4824 * Makefile.am (convert_source_files): Added IOConverter.java.
4825 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4827 (getDefaultDecodingClass): Canonicalize default encoding name.
4828 (getEncoder): Likewise.
4829 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4831 (getDefaultDecodingClass): Canonicalize default encoding name.
4832 (getDecoder): Likewise.
4833 * gnu/gcj/convert/IOConverter.java: New file.
4835 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4837 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4838 to match C declaration in ffi.h.
4839 * Makefile.am: Add java/awt/Button.java.
4840 * Makefile.in: Rebuilt.
4842 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4844 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4845 cast of the second argument to `ffi_raw_call' changed to match
4848 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4850 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4851 argument to `ffi_raw_call' changed to match prototype.
4853 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4855 * java/awt/Component.java (toString): Implemented.
4856 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4857 dispatchEvent() to dispatch the event.
4858 (removeImpl): Ditto.
4860 2000-07-30 Anthony Green <green@redhat.com>
4862 * java/awt/Component.java: Add treeLock object.
4863 (getTreeLock): Implement.
4864 (isShowing): Implement.
4866 2000-07-30 Tom Tromey <tromey@cygnus.com>
4868 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4870 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4872 * java/awt/Window.java (addNotify): Wrote.
4873 (addWindowListener): Wrote.
4875 (getWarningString): Wrote.
4876 (processEvent): Wrote.
4877 (processWindowEvent): Wrote.
4878 (removeWindowListener): Wrote.
4879 (show): Call validate(), setVisible().
4883 * java/awt/Toolkit.java (createWindow): Declare.
4885 * java/awt/Frame.java (addNotify): Use getToolkit to find
4888 * java/awt/Component.java (invalidate): Wrote.
4890 (getToolkit): Wrote.
4892 * java/awt/Container.java (addContainerListener): Removed
4894 (removeContainerListener): Likewise.
4896 (add(Component)): Use it.
4897 (add(String,Component)): Likewise.
4898 (add(Component,int)): Likewise.
4899 (add(Component,Object)): Likewise.
4900 (add(Component,Object,int)): Likewise.
4902 (getAlignmentX): Wrote.
4903 (getAlignmentY): Wrote.
4904 (getComponentAt): Wrote.
4905 (getMaximumSize): Wrote.
4906 (invalidate): Wrote.
4907 (list(PrintStream,int)): Wrote.
4908 (list(PrintWriter,int)): Wrote.
4909 (getMinimumSize): Wrote.
4910 (getPreferredSize): Wrote.
4911 (printComponents): Wrote.
4912 (processContainerEvent): Look at containerListener, not
4914 (remove): Added event processing and peer destruction.
4915 (removeAll): Use remove.
4916 (removeNotify): Wrote.
4918 (validateTree): Wrote.
4920 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4921 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4922 * java/awt/Container.java (addNotify): Don't create Container
4924 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4926 2000-07-30 Tom Tromey <tromey@cygnus.com>
4928 * java/awt/Container.java (remove(int)): Wrote.
4929 (remove(Component)): Wrote.
4930 (add(Component)): Wrote.
4931 (add(Component,int)): Wrote.
4933 (addNotify): Set our own peer.
4934 * java/awt/Scrollbar.java (listeners): Changed type.
4935 (Scrollbar): Don't initialize listeners.
4937 (setValue): Call setValues.
4938 (setMinimum): Likewise.
4939 (setMaxPriority): Likewise.
4940 (setVisibleAmount): Likewise.
4942 (setUnitIncrement): Forward to peer.
4943 (setLineIncrement): Call setUnitIncrement.
4944 (setPageIncrement): Call setBlockIncrement.
4945 (setBlockIncrement): Forward to peer.
4946 (addAdjustmentListener): Rewrote.
4947 (removeAdjustmentListener): Rewrote.
4948 (processAdjustmentEvent): Rewrote.
4949 (paramString): Wrote.
4950 * Makefile.in: Rebuilt.
4951 * Makefile.am (awt_java_source_files): Added Button.java.
4952 * java/awt/Button.java: New file.
4953 * java/awt/Toolkit.java (createLabel): Declare.
4954 (createButton): Likewise.
4955 (createScrollbar): Likewise.
4956 (createContainer): Likewise.
4957 * java/awt/Label.java (addNotify): Wrote.
4958 (setAlignment): Call setAlignment in the peer.
4959 (setText): Call setText in the peer.
4961 2000-07-28 Warren Levy <warrenl@cygnus.com>
4963 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4964 NotSerializableException with just the class name.
4966 2000-07-26 Andrew Haley <aph@cygnus.com>
4968 * interpret.cc (continue1): Insert missing break into switch.
4970 2000-07-28 Warren Levy <warrenl@cygnus.com>
4972 * java/io/ObjectStreamException.java: Made constructors protected.
4974 2000-07-27 Tom Tromey <tromey@cygnus.com>
4976 * java/io/OutputStreamWriter.java (close): Only flush if not
4979 2000-07-27 Warren Levy <warrenl@cygnus.com>
4981 * mauve-libgcj: Activated serialization tests.
4982 * gcj/field.h (getModifiers): Mask off unknown flags.
4983 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4984 spurious bits don't cause discrepancies.
4985 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4986 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4987 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4988 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4989 * java/lang/Throwable.java (serialVersionUID): New field.
4990 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4991 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4993 * java/lang/reflect/natMethod.cc: Ditto.
4994 * java/security/Key.java (serialVersionUID): Removed field for now.
4995 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4996 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4998 2000-07-22 Tom Tromey <tromey@cygnus.com>
5000 * java/awt/geom/RectangularShape.java (getPathIterator):
5003 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5005 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5006 stub libjava/java/awt/ColorModel.java which was located in the
5008 * libjava/java/awt/image/ComponentColorModel.java: New file.
5009 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5010 * libjava/java/awt/image/DataBuffer.java: New file.
5011 * libjava/java/awt/image/DataBufferByte.java: New file.
5012 * libjava/java/awt/image/DataBufferInt.java: New file.
5013 * libjava/java/awt/image/DataBufferUShort.java: New file.
5014 * libjava/java/awt/image/DirectColorModel.java: New file.
5015 * libjava/java/awt/image/PackedColorModel.java: New file.
5016 * libjava/java/awt/image/Raster.java: New file.
5017 * libjava/java/awt/image/SampleModel.java: New file.
5018 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5020 * libjava/java/awt/image/IndexColorModel.java: New file.
5021 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5022 java.awt.ColorModel stub.
5024 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5025 * gnu/gcj/util/Buffers.java: New file, utility class.
5027 * libjava/Makefile.am: Updated to include new files.
5028 * libjava/Makefile.in: Rebuilt.
5030 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5032 * java/io/StreamTokenizer.java: Merged with classpath.
5034 2000-07-20 Tom Tromey <tromey@cygnus.com>
5036 * Makefile.in: Rebuilt.
5037 * Makefile.am (awt_java_source_files): Updated for new files.
5038 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5039 * java/awt/Label.java: New file.
5040 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5041 (createIntersection, createUnion, getBounds2D): New methods.
5042 * java/awt/Scrollbar.java: New file.
5043 * java/awt/Shape.java: Updated to 1.2.
5044 * java/awt/geom/AffineTransform.java: New file.
5045 * java/awt/geom/Ellipse2D.java: New file.
5046 * java/awt/geom/NoninvertibleTransformException.java: New file.
5047 * java/awt/geom/PathIterator.java: New file.
5048 * java/awt/geom/Rectangle2D.java: New file.
5049 * java/awt/geom/RectangularShape.java: New file.
5050 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5051 * java/awt/geom/IllegalPathStateException.java: New file.
5053 * scripts/showval.java: New file.
5055 * scripts/classes.pl (scan): Print inner classes properly.
5056 * gcj/javaprims.h: Updated class list.
5058 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5059 initialize String fields for interpreted classes. Fixes bug
5060 reported by Hans Boehm.
5062 * java/io/File.java (getParentFile): New method, from Classpath
5063 via Oskar Liljeblad.
5065 * java/util/Vector.java (remove(Object)): Implemented.
5067 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5069 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5070 zero return from backtrace().
5072 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5074 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5076 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5077 before calling notifyAll().
5079 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5081 Add missing files from last check-in:
5082 * java/awt/image/ImageConsumer.java: New file.
5083 * java/awt/image/ImageProducer.java: New file.
5084 * java/awt/image/ImageObserver.java: New file.
5086 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5088 Merged implementation of java.applet from classpath:
5089 * java/applet/Applet.java: New file.
5090 * java/applet/AppletContext.java: New file.
5091 * java/applet/AppletStub.java: New file.
5092 * java/applet/AudioClip.java: New file.
5094 * Makefile.am: Added new java.applet classes.
5095 * Makefile.in: Rebuilt.
5097 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5100 * java/util/ResourceBundle.java (getLocale): stub.
5101 * Makefile.am: Added new AWT classes.
5102 * Makefile.in: Rebuilt.
5103 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5104 constructors. Fix toString() and paramString().
5105 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5106 * java/awt/CheckboxGroup.java: New class.
5107 * java/awt/ColorModel.java: New class.
5108 * java/awt/Component.java: Added stubs for most methods. Implemented
5110 * java/awt/Container.java: ditto.
5111 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5112 * java/awt/Cursor.java: ditto.
5113 * java/awt/Event.java: Fix paramString().
5114 * java/awt/EventQueue.java: New class. Implemented.
5115 * java/awt/Font.java: Added additional stub methods. Implemented
5117 * java/awt/FontMetrics.java: New class. Stubbed.
5118 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5120 * java/awt/Insets.java: New class. Implemented.
5121 * java/awt/Menu.java: Add new methods. Partially implemented.
5122 * java/awt/MenuItem.java: Add new methods and fields. Partially
5124 * java/awt/MenuShortcut.java: New class. Implemented.
5125 * java/awt/Panel.java: New class. Placeholder.
5126 * java/awt/PopupMenu.java: New class. Stubbed.
5127 * java/awt/Rectangle.java: New class. Implemented.
5128 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5129 * java/awt/event/ActionEvent.java: Implement paramString().
5130 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5131 * java/awt/event/ComponentEvent.java: Implement paramString().
5132 * java/awt/event/ContainerEvent.java: Implement paramString().
5133 * java/awt/event/FocusEvent.java: Implement paramString().
5134 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5135 * java/awt/event/HierarchyBoundsListener.java: New class.
5136 * java/awt/event/HierarchyEvent.java: New class.
5137 * java/awt/event/HierarchyListener.java: New class.
5138 * java/awt/event/InputMethodEvent.java: Implement paramString().
5139 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5140 exception if !catchExceptions.
5141 * java/awt/event/ItemEvent.java: Implement paramString().
5142 * java/awt/event/KeyEvent.java: Implement paramString().
5143 * java/awt/event/MouseEvent.java: Implement paramString().
5144 * java/awt/event/PaintEvent.java: Implement paramString().
5145 * java/awt/event/TextEvent.java: Implement paramString().
5146 * java/awt/event/WindowEvent.java: Implement paramString().
5148 AWT Peer interfaces:
5149 * java/awt/peer/ButtonPeer.java: New file.
5150 * java/awt/peer/ListPeer.java: New file.
5151 * java/awt/peer/CanvasPeer.java: New file.
5152 * java/awt/peer/MenuBarPeer.java: New file.
5153 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5154 * java/awt/peer/MenuComponentPeer.java: New file.
5155 * java/awt/peer/CheckboxPeer.java: New file.
5156 * java/awt/peer/MenuItemPeer.java: New file.
5157 * java/awt/peer/ChoicePeer.java: New file.
5158 * java/awt/peer/MenuPeer.java: New file.
5159 * java/awt/peer/ComponentPeer.java: Implemented.
5160 * java/awt/peer/PanelPeer.java: New file.
5161 * java/awt/peer/ContainerPeer.java: Implemented.
5162 * java/awt/peer/PopupMenuPeer.java: New file.
5163 * java/awt/peer/DialogPeer.java: New file.
5164 * java/awt/peer/ScrollPanePeer.java: New file.
5165 * java/awt/peer/FileDialogPeer.java: New file.
5166 * java/awt/peer/ScrollbarPeer.java: New file.
5167 * java/awt/peer/FontPeer.java: New file.
5168 * java/awt/peer/TextAreaPeer.java: New file.
5169 * java/awt/peer/FramePeer.java: Implemented.
5170 * java/awt/peer/TextComponentPeer.java: New file.
5171 * java/awt/peer/LabelPeer.java: New file.
5172 * java/awt/peer/TextFieldPeer.java: New file.
5173 * java/awt/peer/LightweightPeer.java: New file.
5174 * java/awt/peer/WindowPeer.java: Implemented.
5176 2000-07-06 Tom Tromey <tromey@cygnus.com>
5178 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5179 Initialize static final String fields.
5181 2000-07-03 Tom Tromey <tromey@cygnus.com>
5183 * java/io/PrintWriter.java (print): Call write(String), not
5184 print(String). See PR libgcj/277.
5185 (print(String)): Use write, not out.write.
5187 2000-06-30 Tom Tromey <tromey@cygnus.com>
5189 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5191 2000-06-27 Andrew Haley <aph@cygnus.com>
5193 * java/io/File.java (createTempFile): Close the FileDescriptor
5194 used to create a temp file. Fixes some of PR 203.
5195 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5196 collection if we run out of file handles.
5198 2000-06-28 Warren Levy <warrenl@cygnus.com>
5200 * gnu/java/security/provider/Gnu.java: New file.
5201 * gnu/java/security/provider/SHA.java: New file.
5202 * gnu/java/security/provider/SHA1PRNG.java: New file.
5203 * Makefile.am: Added the above files.
5204 * Makefile.in: Rebuilt.
5206 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5208 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5210 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5211 (destroyed_flag): Removed.
5212 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5213 (activeCount): Added spec note.
5215 2000-06-27 Warren Levy <warrenl@cygnus.com>
5217 * java/security/Principal.java: New file.
5218 * Makefile.am: Added Principal.java.
5219 * Makefile.in: Rebuilt.
5221 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5223 * java/awt/event/MouseEvent.java: Fixed coordinate space
5226 2000-06-27 Tom Tromey <tromey@cygnus.com>
5228 * java/io/PushbackInputStream.java (read): If there are characters
5229 in the buffer, don't also call super.read().
5230 * java/io/PushbackReader.java (read): If there are characters in
5231 the buffer, don't also call super.read().
5233 * java/lang/Double.java (valueOf): Call parseDouble().
5235 2000-06-26 Warren Levy <warrenl@cygnus.com>
5237 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5238 (newVal): Renamed to newValue.
5239 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5240 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5241 (revokeNow): Renamed to invalidateRefs.
5242 * java/io/OptionalDataException.java: Updated FIXME.
5243 (eof): New placeholder field.
5245 * java/io/WriteAbortedException.java (message): Made transient.
5246 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5247 * java/lang/Throwable.java (stackTrace): Made transient.
5248 * java/net/InetAddress.java: Made Serializable.
5249 * java/security/KeyPair.java: Made Serializable.
5250 * java/security/Provider.java: Replaced with Classpath version that
5251 implements serialization and proper methods.
5252 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5253 (limits): Renamed to choiceLimits.
5255 2000-06-24 Tom Tromey <tromey@cygnus.com>
5257 * java/lang/natDouble.cc (parseDouble): Renamed from
5259 * java/lang/Double.java (parseDouble): Renamed from
5260 doubleValueOf. Now public.
5262 2000-06-23 Andrew Haley <aph@cygnus.com>
5264 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5265 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5267 2000-06-23 Tom Tromey <tromey@cygnus.com>
5269 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5270 * java/lang/natDouble.cc: Always include <alloca.h>.
5271 Fix for PR libgcj/267.
5273 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5275 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5276 comply with classpath VM spec.
5277 (add(Group)): Rename to addGroup().
5278 * java/lang/Thread.java (Thread): Use addThread().
5279 * java/lang/natThread.cc (finish_): Use removeThread().
5281 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5283 * java/lang/ThreadGroup.java: Merged with classpath.
5284 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5285 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5287 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5288 ThreadGroup.root if Thread.currentThread is null. Honour the
5289 ThreadGroup's max priority setting.
5291 2000-06-18 Tom Tromey <tromey@cygnus.com>
5293 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5294 returned class. For PR gcj/260.
5296 2000-06-16 Tom Tromey <tromey@cygnus.com>
5298 Fix for PR libgcj/261:
5299 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5301 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5302 argument. (This is a patch from long ago that somehow went
5305 2000-06-15 Tom Tromey <tromey@cygnus.com>
5307 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5311 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5313 Fix for PR java.lang/258:
5314 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5315 JV_STATE_DONE, to prevent accidental initialization.
5316 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5317 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5318 interface or an abstract class. Remove redundant initializeClass calls.
5319 Remove duplicate if_idt test.
5320 (_Jv_InterfaceAssignableFrom): New function.
5321 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5323 2000-05-31 Tom Tromey <tromey@cygnus.com>
5325 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5326 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5327 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5328 (NUM_OBJECT_METHODS): New define.
5329 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5330 `array_vtable' parameter. Added assertion.
5331 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5334 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5336 * gcj/cni.h: Include <string.h>.
5337 * defineclass.cc: Include <alloca.h>.
5338 * interpret.cc: Ditto.
5339 * gij.cc: Include <stdlib.h>.
5341 2000-05-30 Tom Tromey <tromey@cygnus.com>
5343 * include/name-finder.h: Include <sys/wait.h>.
5344 (_Jv_name_finder::pid): Now of type `pid_t'.
5345 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5346 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5349 2000-05-24 Warren Levy <warrenl@cygnus.com>
5351 * java/io/ObjectOutputStream.java (writeObject): Use component type
5352 when writing arrays.
5355 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5357 Fix for PR libgcj/226:
5358 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5359 since this is an installed header.
5361 Fix for PR libgcj/228:
5362 * java/util/zip/ZipFile (getInputStream): Create inflater with
5365 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5366 with DataFormatException.
5368 2000-05-20 Tom Tromey <tromey@cygnus.com>
5370 * Makefile.in: Rebuilt.
5371 * Makefile.am (hack1): Removed.
5372 (awto_files): Likewise.
5373 (libgcjawt_la_SOURCES): Likewise.
5374 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5375 (libgcjawt_la_DEPENDENCIES): Likewise.
5376 (libgcjawt_la_LIBADD): Likewise.
5377 (libgcjawt_la_LDFLAGS): Likewise.
5378 (libgcjawt_la_LINK): Likewise.
5379 ($(awt_java_source_files:.java=.class)): Likewise.
5380 (libgcj.zip): Don't depend on AWT files.
5381 (MOSTLYCLEANFILES): Don't include AWT files.
5382 ($(awto_files)): Removed.
5383 (nat_headers): Removed AWT files.
5384 (cond_awt_java_source_files): Removed.
5385 (ordinary_java_source_files): Added awt_java_source_files.
5386 * libgcj.spec.in (*lib): Removed -lgcjawt.
5387 * configure: Rebuilt.
5388 * configure.in: Removed --enable-java-awt option.
5390 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5392 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5393 (ZipEntry): Copy the `name' field.
5394 (clone): Implement JDK1.2 method.
5395 (setCompressedSize): ditto.
5398 2000-05-19 Tom Tromey <tromey@cygnus.com>
5400 * java/io/BufferedWriter.java: Merged with Classpath.
5401 * java/io/BufferedOutputStream.java: Merged with Classpath.
5403 2000-05-16 Andrew Haley <aph@cygnus.com>
5405 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5406 build_ia64_frame_state.
5407 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5410 2000-05-15 Warren Levy <warrenl@cygnus.com>
5412 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5413 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5414 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5415 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5416 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5417 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5418 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5419 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5420 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5421 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5422 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5423 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5424 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5425 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5426 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5427 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5428 * gnu/gcj/io/NullOutputStream.java: Removed.
5429 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5430 * gnu/gcj/lang/ArrayHelper.java: Removed.
5431 * gnu/gcj/lang/ClassHelper.java: Removed.
5432 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5434 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5435 * gnu/java/beans/EmptyBeanInfo.java: New file.
5436 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5437 * gnu/java/beans/IntrospectionIncubator.java: New file.
5438 * gnu/java/beans/editors/ColorEditor.java: New file.
5439 * gnu/java/beans/editors/FontEditor.java: New file.
5440 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5441 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5442 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5443 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5444 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5445 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5446 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5447 * gnu/java/beans/editors/StringEditor.java: New file.
5448 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5449 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5450 * gnu/java/io/NullOutputStream.java: New file.
5451 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5452 * gnu/java/lang/ArrayHelper.java: New file.
5453 * gnu/java/lang/ClassHelper.java: New file.
5454 * gnu/java/lang/reflect/TypeSignature.java: New file.
5456 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5457 namespace back to the original Classpath gnu/java namespace.
5458 * Makefile.in: Rebuilt.
5460 * java/beans/Beans.java: Namespace change.
5461 * java/beans/EventSetDescriptor.java: Namespace change.
5462 * java/beans/Introspector.java: Namespace change.
5463 * java/beans/PropertyEditorManager.java: Namespace change.
5464 * java/io/ObjectInputStream.java: Namespace change.
5465 * java/io/ObjectOutputStream.java: Namespace change.
5466 * java/io/ObjectStreamClass.java: Namespace change.
5467 * java/io/ObjectStreamField.java: Namespace change.
5469 2000-04-21 Warren Levy <warrenl@cygnus.com>
5471 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5472 now that compiler patch is available.
5473 Removed unneeded System.loadLibrary.
5474 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5475 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5477 2000-04-19 Andrew Haley <aph@cygnus.com>
5479 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5480 and target classes have been initialized.
5482 2000-04-19 Andrew Haley <aph@cygnus.com>
5484 * java/lang/String.java: implement Serializable, Comparable.
5485 (compareTo (Object)): New method.
5487 2000-04-19 Warren Levy <warrenl@cygnus.com>
5489 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5490 instead of getField to retrieve non-public field.
5491 (getSerialPersistantFields): Ditto.
5493 2000-04-18 Warren Levy <warrenl@cygnus.com>
5495 * mauve-libgcj: Turned off object serialization tests temporarily
5496 due to compiler error.
5498 2000-04-17 Warren Levy <warrenl@cygnus.com>
5500 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5501 to avoid build problem.
5503 * mauve-libgcj: Turned on object serialization tests.
5505 2000-04-17 Tom Tromey <tromey@cygnus.com>
5507 * libgcj.spec.in (*lib): Added -lgcjawt.
5509 2000-04-17 Andrew Haley <aph@cygnus.com>
5511 * Makefile.am: Add new files:
5512 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5514 * Makefile.in: Rebuilt.
5516 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5517 interface that has no implementations.
5518 Check for an attempt to assign an abstract class to an interface.
5520 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5521 if we fail to find MessageDigest.getInstance ("SHA").
5523 * gnu/gcj/io/SimpleSHSStream.java: New file.
5524 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5525 * gnu/gcj/io/shs.cc: New file.
5526 * gnu/gcj/io/shs.h: new file.
5528 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5531 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5532 punctuation from the classname of an array element.
5534 * gcj/javaprims.h: Add SimpleDigestStream.
5536 2000-04-17 Andrew Haley <aph@cygnus.com>
5538 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5539 to getPrivateField for superclasses.
5541 2000-04-14 Andrew Haley <aph@cygnus.com>
5543 * Makefile.am: Add new files:
5544 java/io/ObjectOutputStream$PutField.h,
5545 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5546 java/io/natObjectOutputStream.cc
5547 * Makefile.in: Rebuilt.
5548 * gcj/Makefile.in: Rebuilt.
5549 * include/Makefile.in: Rebuilt.
5550 * java/lang/Class.h (getPrivateField): New method.
5551 (getPrivateMethod): Ditto.
5552 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5553 and java::io::ObjectStreamClass our friends.
5554 * java/lang/natClass.cc (getPrivateField): New method.
5555 (getPrivateMethod): Ditto.
5556 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5557 * gcj/javaprims.h: Add serialization classes.
5558 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5559 (setByteField): Ditto.
5560 (setCharField): Ditto.
5561 (setDoubleField): Ditto.
5562 (setFloatField): Ditto.
5563 (setIntField): Ditto.
5564 (setLongField): Ditto.
5565 (setShortField): Ditto.
5566 (setObjectField): Ditto.
5567 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5569 (getByteField): Ditto.
5570 (getCharField): Ditto.
5571 (getDoubleField): Ditto.
5572 (getFloatField): Ditto.
5573 (getIntField): Ditto.
5574 (getLongField): Ditto.
5575 (getShortField): Ditto.
5576 (getObjectField): Ditto.
5577 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5579 (getSerialPersistantFields): Ditto.
5580 (getDefinedSUID): Ditto.
5581 * java/io/natObjectOutputStream.cc: New file.
5582 * java/io/natObjectInputStream.cc: New file.
5584 2000-04-13 Warren Levy <warrenl@cygnus.com>
5586 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5587 problems. Revert to previous version to reproduce and when fixed.
5589 2000-04-13 Warren Levy <warrenl@cygnus.com>
5591 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5592 * gnu/gcj/io/NullOutputStream.java: New file.
5593 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5594 * java/io/BlockDataException.java: New file.
5595 * java/io/Externalizable.java: New file.
5596 * java/io/InvalidClassException.java: New file.
5597 * java/io/InvalidObjectException.java: New file.
5598 * java/io/NotActiveException.java: New file.
5599 * java/io/NotSerializableException.java: New file.
5600 * java/io/ObjectInput.java: New file.
5601 * java/io/ObjectInputStream.java: New file.
5602 * java/io/ObjectInputValidation.java: New file.
5603 * java/io/ObjectOutput.java: New file.
5604 * java/io/ObjectOutputStream.java: New file.
5605 * java/io/ObjectStreamClass.java: New file.
5606 * java/io/ObjectStreamConstants.java: New file.
5607 * java/io/ObjectStreamField.java: New file.
5608 * java/io/Replaceable.java: New file.
5609 * java/io/Resolvable.java: New file.
5610 * java/io/SerializablePermission.java: New file.
5611 * java/io/WriteAbortedException.java: New file.
5612 * java/security/BasicPermission.java: New file.
5613 * java/security/DigestOutputStream.java: New file.
5614 * java/security/Guard.java: New file.
5615 * java/security/Permission.java: New file.
5616 * java/security/PermissionCollection.java: New file.
5617 * Makefile.am: Added above files.
5618 * Makefile.in: Rebuilt.
5620 * java/beans/Beans.java (instantiate): Activated serialization code.
5621 * java/lang/SecurityManager.java (checkPermission): New method.
5623 2000-04-12 Warren Levy <warrenl@cygnus.com>
5625 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5626 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5627 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5628 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5629 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5630 * gnu/gcj/beans/editors/FontEditor.java: New file.
5631 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5632 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5633 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5634 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5635 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5636 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5637 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5638 * gnu/gcj/beans/editors/StringEditor.java: New file.
5639 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5640 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5641 * gnu/gcj/lang/ArrayHelper.java: New file.
5642 * gnu/gcj/lang/ClassHelper.java: New file.
5643 * java/beans/BeanDescriptor.java: New file.
5644 * java/beans/BeanInfo.java: New file.
5645 * java/beans/Beans.java: New file.
5646 * java/beans/Customizer.java: New file.
5647 * java/beans/DesignMode.java: New file.
5648 * java/beans/EventSetDescriptor.java: New file.
5649 * java/beans/FeatureDescriptor.java: New file.
5650 * java/beans/IndexedPropertyDescriptor.java: New file.
5651 * java/beans/IntrospectionException.java: New file.
5652 * java/beans/Introspector.java: New file.
5653 * java/beans/MethodDescriptor.java: New file.
5654 * java/beans/ParameterDescriptor.java: New file.
5655 * java/beans/PropertyChangeEvent.java: New file.
5656 * java/beans/PropertyChangeListener.java: New file.
5657 * java/beans/PropertyChangeSupport.java: New file.
5658 * java/beans/PropertyDescriptor.java: New file.
5659 * java/beans/PropertyEditor.java: New file.
5660 * java/beans/PropertyEditorManager.java: New file.
5661 * java/beans/PropertyEditorSupport.java: New file.
5662 * java/beans/PropertyVetoException.java: New file.
5663 * java/beans/SimpleBeanInfo.java: New file.
5664 * java/beans/VetoableChangeListener.java: New file.
5665 * java/beans/VetoableChangeSupport.java: New file.
5666 * java/beans/Visibility.java: New file.
5667 * java/beans/beancontext/BeanContext.java: New file.
5668 * java/beans/beancontext/BeanContextChild.java: New file.
5669 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5670 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5671 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5672 * java/beans/beancontext/BeanContextEvent.java: New file.
5673 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5674 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5675 * java/beans/beancontext/BeanContextProxy.java: New file.
5676 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5678 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5679 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5681 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5682 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5684 * java/beans/beancontext/BeanContextServices.java: New file.
5685 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5686 * java/util/AbstractCollection.java: New file.
5687 * java/util/AbstractList.java: New file.
5688 * java/util/Arrays.java: New file.
5689 * Makefile.am: Added above files.
5690 * Makefile.in: Rebuilt.
5692 2000-04-11 Warren Levy <warrenl@cygnus.com>
5694 * java/awt/AWTError.java: New file.
5695 * java/awt/AWTEvent.java: New file.
5696 * java/awt/AWTException.java: New file.
5697 * java/awt/ActiveEvent.java: New file.
5698 * java/awt/Adjustable.java: New file.
5699 * java/awt/BorderLayout.java: New file.
5700 * java/awt/Color.java: New file.
5701 * java/awt/Component.java: New file.
5702 * java/awt/Container.java: New file.
5703 * java/awt/Dimension.java: New file.
5704 * java/awt/Event.java: New file.
5705 * java/awt/Font.java: New file.
5706 * java/awt/Frame.java: New file.
5707 * java/awt/Graphics.java: New file.
5708 * java/awt/IllegalComponentStateException.java: New file.
5709 * java/awt/Image.java: New file.
5710 * java/awt/ItemSelectable.java: New file.
5711 * java/awt/LayoutManager.java: New file.
5712 * java/awt/LayoutManager2.java: New file.
5713 * java/awt/Menu.java: New file.
5714 * java/awt/MenuBar.java: New file.
5715 * java/awt/MenuComponent.java: New file.
5716 * java/awt/MenuContainer.java: New file.
5717 * java/awt/MenuItem.java: New file.
5718 * java/awt/Paint.java: New file.
5719 * java/awt/PaintContext.java: New file.
5720 * java/awt/Point.java: New file.
5721 * java/awt/Rectangle.java: New file.
5722 * java/awt/Shape.java: New file.
5723 * java/awt/TextArea.java: New file.
5724 * java/awt/TextComponent.java: New file.
5725 * java/awt/Toolkit.java: New file.
5726 * java/awt/Transparency.java: New file.
5727 * java/awt/Window.java: New file.
5728 * java/awt/natToolkit.cc: New file.
5729 * java/awt/event/AWTEventListener.java: New file.
5730 * java/awt/event/ActionEvent.java: New file.
5731 * java/awt/event/ActionListener.java: New file.
5732 * java/awt/event/AdjustmentEvent.java: New file.
5733 * java/awt/event/AdjustmentListener.java: New file.
5734 * java/awt/event/ComponentAdapter.java: New file.
5735 * java/awt/event/ComponentEvent.java: New file.
5736 * java/awt/event/ComponentListener.java: New file.
5737 * java/awt/event/ContainerAdapter.java: New file.
5738 * java/awt/event/ContainerEvent.java: New file.
5739 * java/awt/event/ContainerListener.java: New file.
5740 * java/awt/event/FocusAdapter.java: New file.
5741 * java/awt/event/FocusEvent.java: New file.
5742 * java/awt/event/FocusListener.java: New file.
5743 * java/awt/event/InputEvent.java: New file.
5744 * java/awt/event/InputMethodEvent.java: New file.
5745 * java/awt/event/InputMethodListener.java: New file.
5746 * java/awt/event/InvocationEvent.java: New file.
5747 * java/awt/event/ItemEvent.java: New file.
5748 * java/awt/event/ItemListener.java: New file.
5749 * java/awt/event/KeyAdapter.java: New file.
5750 * java/awt/event/KeyEvent.java: New file.
5751 * java/awt/event/KeyListener.java: New file.
5752 * java/awt/event/MouseAdapter.java: New file.
5753 * java/awt/event/MouseEvent.java: New file.
5754 * java/awt/event/MouseListener.java: New file.
5755 * java/awt/event/MouseMotionAdapter.java: New file.
5756 * java/awt/event/MouseMotionListener.java: New file.
5757 * java/awt/event/PaintEvent.java: New file.
5758 * java/awt/event/TextEvent.java: New file.
5759 * java/awt/event/TextListener.java: New file.
5760 * java/awt/event/WindowAdapter.java: New file.
5761 * java/awt/event/WindowEvent.java: New file.
5762 * java/awt/event/WindowListener.java: New file.
5763 * java/awt/geom/Dimension2D.java: New file.
5764 * java/awt/geom/Point2D.java: New file.
5765 * java/awt/peer/ComponentPeer.java: New file.
5766 * java/awt/peer/ContainerPeer.java: New file.
5767 * java/awt/peer/FramePeer.java: New file.
5768 * java/awt/peer/WindowPeer.java: New file.
5769 * java/util/Collection.java: New file.
5770 * java/util/Comparator.java: New file.
5771 * java/util/Iterator.java: New file.
5772 * java/util/List.java: New file.
5773 * java/util/ListIterator.java: New file.
5774 * Makefile.am: Added above files.
5775 * Makefile.in: Rebuilt.
5777 2000-04-10 Warren Levy <warrenl@cygnus.com>
5779 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5780 * java/lang/FirstThread.java: Ditto.
5781 * java/lang/StringBuffer.java: Ditto.
5782 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5784 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5785 Special case handled in java.math.BigInteger.
5786 * java/math/BigInteger.java (divide): Handle the special case when
5787 dividing by 1 and the high bit of the dividend is set.
5788 (setShiftRight): Handle case when count == 0.
5790 2000-04-05 Andrew Haley <aph@cygnus.com>
5792 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5795 2000-04-05 Andrew Haley <aph@cygnus.com>
5797 * sysdep/ia64.c (rse_address_add): Delete.
5798 (IS_NaT_COLLECTION_ADDR): Delete.
5799 (ia64_backtrace_helper): check for null unwind_info.
5801 * sysdep/ia64-frame.h: add calc_caller_bsp.
5803 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5806 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5807 (_Jv_remI): Likewise.
5808 (_Jv_divJ): Likewise.
5809 (_Jv_remJ): Likewise.
5811 * interpret.cc (continue1): Use divide subroutines to guarantee
5812 correct Java standard behaviour.
5813 Floating-point division should not abort; make it so.
5815 2000-03-29 Tom Tromey <tromey@cygnus.com>
5817 * configure: Rebuilt.
5818 * configure.in: Test against `libgcj_sjlj', not
5819 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5820 to be set even when using sjlj.
5822 2000-03-24 Andrew Haley <aph@cygnus.com>
5824 * Makefile.am: Add file addr2name.awk.
5825 * Makefile.in: Rebuilt.
5826 * addr2name.awk: New file.
5827 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5829 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5832 2000-03-22 Andrew Haley <aph@cygnus.com>
5834 * configure.host: Add -funwind-tables for IA64.
5835 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5836 * Makefile.in: Rebuilt.
5837 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5838 * sysdep/ia64.c: New file.
5839 * sysdep/ia64-frame.h: New file.
5840 * configure.in: Add sysdep/ia64.c for ia64.
5841 * configure: Rebuilt.
5843 2000-03-17 Andrew Haley <aph@cygnus.com>
5845 * java/lang/natString.cc: Remove `register' keyword.
5846 interpret.cc: ditto.
5848 2000-03-16 Andrew Haley <aph@cygnus.com>
5850 * configure.host (ia64): Enable interpreter.
5852 2000-03-14 Hans Boehm <boehm@acm.org>
5854 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5856 2000-03-14 Andrew Haley <aph@cygnus.com>
5858 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5861 2000-03-10 Andrew Haley <aph@cygnus.com>
5863 * java/lang/ieeefp.h: Import latest version from fdlibm.
5865 2000-03-14 Andrew Haley <aph@cygnus.com>
5867 * prims.cc (_Jv_ThrowSignal): New function.
5868 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5870 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5871 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5872 * include/ppc-signal.h: New file.
5874 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5876 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5877 * java/lang/natThread.java (initialize_native): Cast `data' to
5879 * gnu/gcj/RawData.java: Clarify documentation.
5881 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5882 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5883 `jarFile', not `jarFileURL'.
5885 2000-05-15 Andrew Haley <aph@cygnus.com>
5887 * include/ppc-signal.h: New file.
5889 2000-05-11 Tom Tromey <tromey@cygnus.com>
5891 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5892 file headers, don't include `size' in the skip call.
5894 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5896 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5897 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5899 (replace): Reimplemented. Fix javadoc.
5900 (reverse): Call ensureCapacity_unsynchronized().
5901 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5903 (replace): Calculate length for arraycopy() correctly.
5905 2000-05-09 Tom Tromey <tromey@cygnus.com>
5907 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5909 (insert(int,char[],int,int): New method.
5910 (delete): New method from Classpath.
5911 (deleteCharAt): Likewise.
5912 (substring): Likewise.
5913 (shared): No longer private.
5914 Added JavaDoc comments from Classpath.
5915 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5918 2000-05-07 Tom Tromey <tromey@cygnus.com>
5920 * Makefile.in: Rebuilt.
5921 * Makefile.am (LIBLINK): New macro.
5922 (libgcj_la_LINK): Use it.
5923 (libgcjawt_la_LINK): Likewise.
5925 2000-05-06 Tom Tromey <tromey@cygnus.com>
5927 * Makefile.in: Rebuilt.
5928 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5930 2000-05-05 Tom Tromey <tromey@cygnus.com>
5932 Fix for PR libgcj/220:
5933 * Makefile.in: Rebuilt.
5934 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5935 (jv_convert_LDFLAGS): Likewise.
5936 (libgcj_la_LDFLAGS): Likewise.
5937 (GCJLINK): New macro.
5938 (jv_convert_LINK): Use it.
5939 (gij_LINK): Likewise.
5940 (libgcj_la_LINK): New macro.
5941 (libgcjawt_la_LINK): Likewise.
5943 2000-05-04 Tom Tromey <tromey@cygnus.com>
5945 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5947 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5951 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5953 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5954 (_Jv_IsAssignableFrom): Ditto.
5955 (_Jv_IsInstanceOf): Ditto.
5956 (_Jv_CheckCast): Ditto.
5957 (_Jv_CheckArrayStore): Ditto.
5958 * java/lang/Class.h (_Jv_InitClass): Ditto.
5959 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5964 (_Jv_MonitorExit): Ditto.
5965 * boehm.cc (_Jv_MarkObj): Ditto.
5966 (_Jv_MarkObj): Ditto.
5967 (_Jv_MarkArray): Ditto.
5968 * prims.cc (_Jv_AllocObject): Ditto.
5969 (_Jv_NewObjectArray): Ditto.
5970 (_Jv_NewPrimArray): Ditto.
5971 (_Jv_Malloc): Ditto.
5972 (_Jv_Realloc): Ditto.
5973 (_Jv_MallocUnchecked): Ditto.
5979 2000-05-04 Tom Tromey <tromey@cygnus.com>
5981 * java/util/Locale.java (Locale): Don't explicitly check for
5983 * java/util/Hashtable.java (containsKey): Don't explicitly check
5986 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5988 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5990 * java/text/StringCharacterIterator.java
5991 (StringCharacterIterator): Don't check for null.
5992 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5994 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5995 check for null pointer.
5996 (leaveGroup): Likewise.
5997 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5999 (setData): Likewise.
6000 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6003 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6005 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6006 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6007 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6008 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6009 -rpath for in-gcc builds.
6010 * Makefile.in: Rebuilt.
6012 2000-04-28 Tom Tromey <tromey@cygnus.com>
6014 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6017 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6019 * libjava/java/lang/String.java (toString): Remove `final' hack.
6021 2000-04-05 Tom Tromey <tromey@cygnus.com>
6023 Runtime support for PR gcj/2:
6024 * prims.cc (_Jv_ThrowNullPointerException): New function.
6025 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6027 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6029 * prims.cc (_Jv_NewObjectArray): Fix typo.
6031 2000-04-26 Tom Tromey <tromey@cygnus.com>
6033 * Makefile.in: Rebuilt.
6034 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6036 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6038 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6041 2000-04-22 Anthony Green <green@cygnus.com>
6043 * include/jvm.h (__builtin_expect): Define as unused for now.
6044 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6048 (_Jv_MonitorExit): Ditto.
6049 * boehm.cc (_Jv_MarkObj): Ditto.
6050 (_Jv_MarkObj): Ditto.
6051 (_Jv_MarkArray): Ditto.
6052 (_Jv_AllocBytes): Ditto.
6053 * prims.cc (_Jv_AllocObject): Ditto.
6054 (_Jv_NewObjectArray): Ditto.
6055 (_Jv_NewPrimArray): Ditto.
6056 (_Jv_Malloc): Ditto.
6057 (_Jv_Realloc): Ditto.
6058 (_Jv_MallocUnchecked): Ditto.
6064 * include/Makefile.in: Rebuilt.
6065 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6067 2000-04-21 Tom Tromey <tromey@cygnus.com>
6069 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6070 Yet another new version from Classpath.
6072 Fix for PR libgcj/15:
6073 * java/util/natGregorianCalendar.cc (_REENTRANT,
6074 _POSIX_PTHREAD_SEMANTICS): Don't define.
6075 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6076 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6078 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6080 * configure: Rebuilt.
6081 * configure.in: If using POSIX threads, define _REENTRANT if
6082 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6083 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6085 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6086 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6087 version from Classpath.
6089 Fix for PR libgcj/213:
6090 * Makefile.in: Rebuilt.
6091 * Makefile.am (gij_SOURCES): Added gij.cc.
6092 (EXTRA_gij_SOURCES): Removed.
6093 (gij_LDADD): Removed gij.lo.
6094 (gij_DEPENDENCIES): Likewise.
6095 ($(gij_OBJECTS)): Depend on nat_headers.
6097 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6098 `setURL', not `url.set'.
6100 2000-04-20 Tom Tromey <tromey@cygnus.com>
6102 Fix for PR java.io/204:
6103 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6104 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6107 Fix for PR libgcj/212:
6108 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6109 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6110 * java/lang/Class.h (_Jv_word): Declare.
6112 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6114 2000-04-19 Tom Tromey <tromey@cygnus.com>
6116 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6117 doesn't have a loader.
6119 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6121 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6122 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6124 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6126 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6128 (available): Initialize `where' to prevent bogus compiler warning.
6130 2000-04-12 Tom Tromey <tromey@cygnus.com>
6132 * java/lang/natString.cc (intern): Temporarily disable finalizer
6135 * java/lang/natString.cc (unintern): Added `obj' argument.
6136 (intern): Register finalizer for string.
6137 * java/lang/String.java (unintern): Now static; added obj
6140 2000-04-11 Tom Tromey <tromey@cygnus.com>
6142 * java/util/Vector.java (VectorEnumeration): Now `final'.
6143 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6144 (HashtableEnumeration): Likewise.
6145 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6146 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6148 2000-04-10 Warren Levy <warrenl@cygnus.com>
6150 * java/io/ObjectStreamException.java: New file.
6151 * java/io/OptionalDataException.java: New file.
6152 * java/io/StreamCorruptedException.java: New file.
6153 * java/math/BigDecimal.java: New file.
6154 * java/sql/CallableStatement.java: New file.
6155 * java/sql/Connection.java: New file.
6156 * java/sql/DataTruncation.java: New file.
6157 * java/sql/DatabaseMetaData.java: New file.
6158 * java/sql/Date.java: New file.
6159 * java/sql/Driver.java: New file.
6160 * java/sql/DriverManager.java: New file.
6161 * java/sql/DriverPropertyInfo.java: New file.
6162 * java/sql/PreparedStatement.java: New file.
6163 * java/sql/ResultSet.java: New file.
6164 * java/sql/ResultSetMetaData.java: New file.
6165 * java/sql/SQLException.java: New file.
6166 * java/sql/SQLWarning.java: New file.
6167 * java/sql/Statement.java: New file.
6168 * java/sql/Time.java: New file.
6169 * java/sql/Timestamp.java: New file.
6170 * java/sql/Types.java: New file.
6171 * Makefile.am: Added above new files.
6172 * Makefile.in: Rebuilt.
6174 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6175 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6176 DatagramSocket constructor instead of null.
6178 2000-04-08 Anthony Green <green@cygnus.com>
6180 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6183 2000-04-08 Anthony Green <green@cygnus.com>
6185 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6186 (_Jv_MutexUnlock): Ditto.
6187 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6188 (_Jv_MutexUnlock): Ditto.
6190 2000-04-08 Anthony Green <green@cygnus.com>
6192 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6193 (ensureCapacity_unsynchronized): New private method.
6194 (append): Use ensureCapacity_unsynchronized.
6196 2000-04-08 Tom Tromey <tromey@cygnus.com>
6198 * Makefile.in: Rebuilt.
6199 * Makefile.am (awt_java_source_files): Added new files.
6200 * java/awt/IllegalComponentStateException.java: New file.
6201 * java/awt/ItemSelectable.java: New file.
6202 * java/awt/event/WindowEvent.java: Finished.
6203 * java/awt/event/TextEvent.java: Finished.
6204 * java/awt/event/ContainerEvent.java: New file.
6205 * java/awt/Component.java (getX, getY): New methods.
6206 * java/awt/event/PaintEvent.java: New file.
6207 * java/awt/event/MouseEvent.java: New file.
6208 * java/awt/ActiveEvent.java: New file.
6209 * java/awt/event/KeyEvent.java: Finished.
6210 * java/awt/event/ItemEvent.java: New file.
6211 * java/awt/Adjustable.java: New file.
6212 * java/awt/event/InputMethodEvent.java: New file.
6213 * java/awt/event/InputEvent.java: Finished.
6214 * java/awt/event/FocusEvent.java: New file.
6215 * java/awt/event/MouseMotionAdapter.java: New file.
6216 * java/awt/event/MouseAdapter.java: New file.
6217 * java/awt/event/KeyAdapter.java: New file.
6218 * java/awt/event/FocusAdapter.java: New file.
6219 * java/awt/event/ContainerAdapter.java: New file.
6220 * java/awt/event/ComponentEvent.java: Finished.
6221 * java/awt/event/AdjustmentEvent.java: New file.
6222 * java/awt/event/ComponentAdapter.java: New file.
6223 * java/awt/event/ActionEvent.java: Finished.
6224 * java/awt/event/MouseMotionListener.java: New file.
6225 * java/awt/event/MouseListener.java: New file.
6226 * java/awt/event/ItemListener.java: New file.
6227 * java/awt/event/InputMethodListener.java: New file.
6228 * java/awt/event/ContainerListener.java: New file.
6229 * java/awt/event/FocusListener.java: New file.
6230 * java/awt/event/ComponentListener.java: New file.
6231 * java/awt/event/AWTEventListener.java: New file.
6232 * java/awt/event/AdjustmentListener.java: New file.
6234 2000-04-08 Anthony Green <green@cygnus.com>
6236 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6237 check when we have to.
6239 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6242 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6245 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6246 inline hasMoreElements.
6248 2000-04-05 Tom Tromey <tromey@cygnus.com>
6250 * configure: Rebuilt.
6251 * configure.in: Recognize --enable-java-awt.
6252 (AWT): New conditional.
6253 * Makefile.in: Rebuilt.
6254 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6256 (libgcjawt_la_SOURCES): New macro.
6257 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6258 (libgcjawt_la_DEPENDENCIES): Likewise.
6259 (libgcjawt_la_LIBADD): Likewise.
6260 (libgcjawt_la_LDFLAGS): Likewise.
6261 (libgcj.zip): Depend on cond_java_awt_source_files
6262 (cond_awt_java_source_files): New macro.
6263 (MOSTLYCLEANFILES): Added awto_files.
6264 (awto_files): New macro. Use where javao_files used.
6265 (nat_headers): Use cond_awt_java_source_files.
6267 2000-04-04 Tom Tromey <tromey@cygnus.com>
6269 * Makefile.in: Rebuilt.
6270 * Makefile.am (awt_java_source_files): Added AWTException.java.
6271 * java/awt/AWTException.java: New file.
6273 2000-04-03 Tom Tromey <tromey@cygnus.com>
6275 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6276 commentary from Alex.
6278 * Makefile.in: Rebuilt.
6279 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6282 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6284 * configure: Rebuilt.
6285 * configure.in: Add --disable-jvmpi.
6286 * include/config.h.in: Rebuilt.
6287 * acconfig.h: Add ENABLE_JVMPI.
6289 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6290 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6291 (_Jv_JVMPI_Notify_THREAD_END): New define.
6292 (_Jv_JVMPI_Notify_THREAD_END): New define.
6293 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6294 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6295 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6297 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6300 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6301 (finish_): Generate JVMPI thread end events.
6302 (run_): Generate JVMPI thread start events.
6303 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6304 preloaded JNI library.
6305 Include JVMPI headers if necessary.
6306 (run): Generate JVMPI thread start events.
6308 * boehm.cc: Define GC_disable and GC_enable.
6309 (_Jv_DisableGC): New function.
6310 (_Jv_EnableGC): New function.
6311 (disable_gc_mutex): Declare.
6312 * nogc.cc (_Jv_DisableGC): New function.
6313 (_Jv_EnableGC): New function.
6315 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6316 (_Jv_JVMPI_Interface): Define.
6317 (jvmpiEnableEvent): New function.
6318 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6320 * include/jvmpi.h: New file.
6322 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6324 * Makefile.in: New #defines and friends for Thread.h.
6325 * Makefile.am: Ditto.
6326 * posix-threads.cc: (struct starter): Remove `object'.
6327 (_Jv_CondWait): Use interruptable condition variables and new
6328 recursive mutexes. New return codes on interrupt or non-ownership
6330 (_Jv_CondNotify): Ditto.
6331 (_Jv_CondNotifyAll): Ditto.
6332 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6333 the target thread by signaling its wait condition.
6334 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6335 not the starter struct. Initialize wait_mutex and wait_cond.
6336 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6338 (_Jv_MutexUnlock): Ditto.
6339 (really_start): Set info->data->thread from pthread_self() to work
6340 around a race condition. Destroy wait_mutex and wait_cond when run()
6342 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6343 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6345 startable_flag: New private field.
6346 (Thread): Initialize `startable_flag'.
6347 (toString): Check for null thread group.
6348 * java/lang/natThread.cc: (struct natThread): New fields
6349 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6350 (class locker): Removed.
6351 (initialize_native): Initialize `join_cond' and `join_mutex'.
6352 (interrupt): Now just calls _Jv_ThreadInterrupt().
6353 (join): Simplified. Just wait on the target thread's join condition.
6354 (finish_): Remove join list code. Unset thread group. Signal
6355 potential joiners by notifying the dying threads join_cond.
6356 (start): Check for illegal restarts.
6357 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6359 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6360 #defines and #ifdefs.
6361 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6362 `wait_mutex', `next'.
6363 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6364 directly mapping to pthread_cond_t.
6365 (struct _Jv_Mutex_t): New recursive implementation.
6366 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6367 _Jv_HaveCondDestroy: Never define this for posix-threads.
6368 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6369 (_Jv_CondNotifyAll): Ditto.
6370 (_Jv_MutexLock): Ditto.
6371 (_Jv_MutexUnlock): Ditto.
6372 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6373 (_Jv_MutexDestroy): Ditto.
6374 (_Jv_CondDestroy): Removed.
6375 (_Jv_PthreadGetMutex): Removed.
6376 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6377 error. Add a FIXME about this.
6378 (_Jv_CondNotifyAll): Ditto.
6379 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6380 _JV_NOT_OWNER on other errors. Add FIXME.
6382 2000-03-26 Tom Tromey <tromey@cygnus.com>
6384 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6386 (call): Don't throw exception here.
6388 2000-03-26 Tom Tromey <tromey@cygnus.com>
6390 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6391 * interpret.cc: Use SIZEOF_VOID_P.
6392 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6393 (_Jv_loadLong): Likewise.
6394 (_Jv_storeDouble): Likewise.
6395 * configure: Rebuilt.
6396 * configure.in: Check size of void*.
6398 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6400 2000-03-26 Hans Boehm <boehm@acm.org>
6402 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6403 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6405 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6406 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6407 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6408 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6410 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6411 (FFI_RAW_SIZE): Likewise.
6412 (_Jv_InterpMethod::ncode): Use them.
6413 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6414 STORED): Define differently on a 64 bit machine.
6415 (continue1): Use ffi_java_raw_call when appropriate.
6417 2000-03-24 Warren Levy <warrenl@cygnus.com>
6419 * java/math/BigInteger.java(divide): Handle the special case when
6420 dividing by 1 and the high bit of the dividend is set.
6421 (setShiftRight): Handle case when count == 0.
6423 2000-03-24 Warren Levy <warrenl@cygnus.com>
6425 * java/awt/Font.java(isBold): Fix syntax error.
6427 * java/awt/Frame.java(postEvent): ditto.
6428 * java/awt/Menu.java(postEvent): ditto.
6429 * java/awt/MenuBar.java(postEvent): ditto.
6430 * java/awt/Toolkit.java(init): Included a stub.
6432 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6434 * java/awt/Event.java: Add all the event type constants.
6435 (Event): Implemented constructors.
6436 (controlDown): Implemented.
6437 (metaDown): Implemented.
6438 (paramString): Stubbed.
6439 (shiftDown): Implemented.
6440 (toString): Implemented.
6441 (translate): Implemented.
6443 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6445 * java/lang/natClass.cc (isInstance): Initialize `this'.
6446 (isAssignableFrom): Initialize `this' and `klass'.
6447 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6448 implemented by any loaded class, so return false.
6449 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6450 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6452 2000-03-19 Warren Levy <warrenl@cygnus.com>
6454 * java/awt/Color.java: Specified java.io for Serializable.
6455 * java/awt/Toolkit.java: Imported java.net.URL.
6457 2000-03-19 Warren Levy <warrenl@cygnus.com>
6459 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6461 2000-03-16 Warren Levy <warrenl@cygnus.com>
6463 * java/awt/Color.java: New file.
6464 * java/awt/Graphics.java: New file.
6465 * java/awt/Image.java: New file.
6466 * java/awt/Paint.java: New file.
6467 * java/awt/PaintContext.java: New file.
6468 * java/awt/Transparency.java: New file.
6469 * java/util/Collection.java: New file.
6470 * java/util/Comparator.java: New file.
6471 * java/util/Iterator.java: New file.
6472 * java/util/List.java: New file.
6473 * java/util/ListIterator.java: New file.
6474 * Makefile.am: Added above new files.
6475 * Makefile.in: Rebuilt.
6477 * java/awt/Font.java (PLAIN): New field.
6479 (ITALIC): New field.
6480 (ROMAN_BASELINE): New field.
6481 (CENTER_BASELINE): New field.
6482 (HANGING_BASELINE): New field.
6486 (pointSize): New field.
6487 (Font): Implemented constructor.
6488 (isPlain): Implemented method.
6489 (isBold): Implemented method.
6490 (isItalic): Implemented method.
6491 (getName): Implemented method.
6492 (getStyle): Implemented method.
6493 (getSize): Implemented method.
6494 (getSize2D): Implemented method.
6496 * java/awt/Frame.java (getFont): Stubbed.
6497 (postEvent): Stubbed.
6499 * java/awt/Menu.java (postEvent): Stubbed.
6500 * java/awt/MenuBar.java (getFont): Stubbed.
6501 (postEvent): Stubbed.
6502 * java/awt/Toolkit.java (getImage): Added abstract method.
6504 2000-03-15 Tom Tromey <tromey@cygnus.com>
6506 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6508 * prims.cc (win32_exception_handler): Reformatted.
6510 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6511 (_Jv_HaveMutexDestroy): Likewise.
6513 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6515 * java/io/natFileDescriptorWin32.cc: New file.
6516 * java/io/natFileWin32.cc: New file.
6517 * java/net/natInetAddress.cc: Added conditional inclusion of
6518 Windows / Winsock headers.
6519 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6520 inclusion of Windows / Winsock headers.
6521 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6522 Windows / Winsock headers.
6523 * include/win32-signal.h: New file.
6524 * include/win32-threads.h: New file.
6525 * win32-threads.cc: New file.
6526 * exception.cc (win32_get_restart_frame): New function.
6527 * prims.cc (win32_exception_handler): New function.
6528 (main_init) Performs Winsock initialisation.
6529 (main_init) Installs exeception handler.
6531 2000-03-14 Tom Tromey <tromey@cygnus.com>
6533 * jni.cc (mangled_name): Fixed assertion.
6534 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6535 turned assert into actual failure.
6537 2000-03-09 Warren Levy <warrenl@cygnus.com>
6539 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6540 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6541 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6543 2000-03-09 Warren Levy <warrenl@cygnus.com>
6545 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6546 * java/security/DigestException.java: New file.
6547 * java/security/GeneralSecurityException.java: New file.
6548 * java/security/InvalidAlgorithmParameterException.java: New file.
6549 * java/security/InvalidKeyException.java: New file.
6550 * java/security/InvalidParameterException.java: New file.
6551 * java/security/Key.java: New file.
6552 * java/security/KeyException.java: New file.
6553 * java/security/KeyPair.java: New file.
6554 * java/security/KeyPairGenerator.java: New file.
6555 * java/security/KeyPairGeneratorSpi.java: New file.
6556 * java/security/NoSuchProviderException.java: New file.
6557 * java/security/PrivateKey.java: New file.
6558 * java/security/Provider.java: New file.
6559 * java/security/PublicKey.java: New file.
6560 * java/security/SecureRandom.java: New file.
6561 * java/security/Security.java: New file.
6562 * java/security/Signature.java: New file.
6563 * java/security/SignatureException.java: New file.
6564 * java/security/interfaces/DSAKey.java: New file.
6565 * java/security/interfaces/DSAParams.java: New file.
6566 * java/security/interfaces/DSAPrivateKey.java: New file.
6567 * java/security/interfaces/DSAPublicKey.java: New file.
6568 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6569 * java/security/interfaces/RSAPrivateKey.java: New file.
6570 * java/security/interfaces/RSAPublicKey.java: New file.
6571 * java/security/spec/AlgorithmParameterSpec.java: New file.
6572 * java/security/spec/InvalidKeySpecException.java: New file.
6573 * java/security/spec/InvalidParameterSpecException.java: New file.
6574 * java/security/spec/KeySpec.java: New file.
6575 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6576 * java/security/spec/RSAPrivateKeySpec.java: New file.
6577 * java/security/spec/RSAPublicKeySpec.java: New file.
6578 * Makefile.am: Added above java.security files.
6579 * Makefile.in: Rebuilt.
6581 * java/security/MessageDigest.java: Rewritten.
6582 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6584 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6588 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6590 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6591 _Jv_PrepareConstantTimeTables.
6592 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6593 classes should have an IDT, so don't return if klass is an array
6596 2000-03-08 Tom Tromey <tromey@cygnus.com>
6598 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6599 of `void' to be created.
6601 2000-03-08 Warren Levy <warrenl@cygnus.com>
6603 * java/math/BigInteger.java(signum): Handle zero properly.
6605 2000-03-07 Tom Tromey <tromey@cygnus.com>
6607 * All files: Updated copyright information.
6608 * COPYING: New file.
6609 * COPYING.LIB: Removed.
6610 * LIBGCJ_LICENSE: We now use GPL + special exception.
6612 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6614 * resolve.cc (_Jv_SearchMethodInClass): New function.
6615 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6616 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6618 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6620 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6621 (struct _Jv_ifaces): New declaration.
6622 JV_CLASS: New macro definition.
6623 (getComponentType): Relocate below isArray() for inlining.
6624 (getModifiers): Declare `inline'.
6625 (getSuperclass): Ditto.
6627 (isPrimitive): Ditto.
6628 (_Jv_IsAssignableFrom): New prototype.
6629 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6631 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6632 Check for JV_STATE_DONE before invoking initializeClass().
6633 (_Jv_PrepareConstantTimeTables): New prototype.
6634 (_Jv_GetInterfaces): Ditto.
6635 (_Jv_GenerateITable): Ditto.
6636 (_Jv_GetMethodString): Ditto.
6637 (_Jv_AppendPartialITable): Ditto.
6638 (_Jv_FindIIndex): Ditto.
6639 depth, ancestors, idt: New class fields.
6641 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6642 inline function `_Jv_IsAssignableFrom'. Use that function.
6643 (isInstance): Declare `inline'.
6644 (initializeClass): Get lock on class before checking `state'. Unlock
6645 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6647 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6648 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6649 class->depth and ancestor table.
6650 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6651 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6652 _Jv_IsAssignableFrom.
6653 (_Jv_CheckArrayStore): Ditto.
6654 (_Jv_LookupInterfaceMethodIdx): New function.
6655 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6656 (_Jv_PrepareConstantTimeTables): New function.
6657 (_Jv_IndexOf): Ditto.
6658 (_Jv_GetInterfaces): Ditto.
6659 (_Jv_GenerateITable): Ditto.
6660 (_Jv_GetMethodString): Ditto.
6661 (_Jv_AppendPartialITable): Ditto.
6662 iindex_mutex, iindex_mutex_initialized: New static fields.
6663 (_Jv_FindIIndex): New function.
6665 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6667 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6668 (_Jv_CheckArrayStore): Ditto.
6669 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6670 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6671 Moved to gcj/array.h.
6672 (_Jv_Realloc): New function.
6674 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6676 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6677 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6678 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6679 JvNewDoubleArray): Implementations moved from prims.cc and
6682 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6684 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6686 2000-03-06 Tom Tromey <tromey@cygnus.com>
6688 * jni.cc (MARK_NONE): New define.
6689 (MARK_USER): Likewise.
6690 (MARK_SYSTEM): Likewise.
6691 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6693 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6694 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6695 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6696 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6698 (call): Use MARK_SYSTEM.
6699 (_Jv_GetJNIEnvNewFrame): New function.
6700 (_Jv_LookupJNIMethod): New function.
6701 (_Jv_JNI_PopSystemFrame): New function.
6702 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6704 2000-03-05 Tom Tromey <tromey@cygnus.com>
6706 Fix for PR libgcj/43:
6707 * include/Makefile.in: Rebuilt.
6708 * include/Makefile.am (include_HEADERS): New define.
6710 2000-03-05 Anthony Green <green@redhat.com>
6712 * gcj/javaprims.h ("Java"): Remove FirstThread.
6714 * configure.host: Fix __NO_MATH_INLNES botch.
6716 * Makefile.in: Rebuilt.
6717 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6718 (gnu/gcj/runtime/FirstThread.h): Moved.
6719 (ordinary_java_source_files): Move FirstThread.java.
6720 * prims.cc: Deal with FirstThread movement.
6722 (_Jv_RunMain): Ditto.
6724 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6725 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6727 2000-03-05 Warren Levy <warrenl@cygnus.com>
6729 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6730 Handle null addresses.
6732 2000-03-04 Anthony Green <green@redhat.com>
6734 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6737 2000-03-04 Anthony Green <green@redhat.com>
6739 * configure: Rebuilt.
6740 * configure.in (ZLIBTESTSPEC): New macro.
6741 (GCTESTSPEC): New macro.
6742 (LIBGCJTESTSPEC): New macro.
6743 * libgcj-test.spec.in: New file.
6745 2000-03-02 Tom Tromey <tromey@cygnus.com>
6747 * include/java-interp.h: Don't include MethodInvocation.h.
6748 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6749 * Makefile.in: Rebuilt.
6750 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6751 (ordinary_java_source_files): Don't mention
6752 MethodInvocation.java.
6753 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6754 * interpret.cc (MethodInvocation::continue1): Removed.
6755 (run): Handle exceptions here.
6756 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6758 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6760 (defineClass2): Removed.
6762 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6764 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6766 (hack_call): Removed.
6768 * java/lang/Class.h (Class): Removed hackRunInitializers,
6770 * java/lang/natClass.cc (hackRunInitializers): Removed.
6771 (initializeClass): Catch exceptions here.
6772 Include ExceptionInInitializerError.h.
6773 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6776 * java/lang/Object.h (Object): Don't mention hack12_6.
6777 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6779 * java/lang/Object.java (hack12_6): Removed.
6781 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6782 (start): Use run_, not run__.
6783 * java/lang/Thread.java (run_): Renamed from run__; old run_
6786 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6787 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6788 (_Jv_JNI_DefineClass): Likewise.
6789 (_Jv_JNI_ThrowNew): Likewise.
6790 (_Jv_JNI_AllocObject): Likewise.
6791 (_Jv_JNI_GetAnyMethodID): Likewise.
6792 (_Jv_JNI_CallAnyMethodV): Likewise.
6793 (_Jv_JNI_CallAnyMethodA): Likewise.
6794 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6795 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6796 (_Jv_JNI_GetAnyFieldID): Likewise.
6797 (_Jv_JNI_NewString): Likewise.
6798 (_Jv_JNI_NewStringUTF): Likewise.
6799 (_Jv_JNI_GetStringUTFChars): Likewise.
6800 (_Jv_JNI_NewObjectArray): Likewise.
6801 (_Jv_JNI_NewPrimitiveArray): Likewise.
6802 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6803 (_Jv_JNI_GetStringRegion): Likewise.
6804 (_Jv_JNI_GetStringUTFRegion): Likewise.
6805 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6806 (_Jv_JNI_MonitorEnter): Likewise.
6807 (_Jv_JNI_MonitorExit): Likewise.
6808 (_Jv_JNI_ToReflectedField): Likewise.
6809 (_Jv_JNI_ToReflectedMethod): Likewise.
6810 (_Jv_JNI_RegisterNatives): Likewise.
6811 (_Jv_JNI_AttachCurrentThread): Likewise.
6812 (_Jv_JNI_DestroyJavaVM): Likewise.
6814 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6816 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6817 error caused by the incorrect casting of a long to an int.
6819 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6821 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6822 SIGSEV caused by use of the wrong instance variable.
6824 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6826 * java/io/File.java (File(String, String)): For dirPath, treat an
6827 empty String the same as `null'.
6829 2000-02-26 Anthony Green <green@cygnus.com>
6831 * gnu/gcj/io/MimeTypes.java: Test for null.
6833 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6834 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6836 * java/net/URLConnection.java: Update copyright notice.
6838 2000-02-25 Tom Tromey <tromey@cygnus.com>
6840 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6843 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6845 * java/net/URLConnection.java (initializeDateFormats): New
6847 (getHeaderFieldDate): Call initializeDateFormats if required.
6848 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6850 Fix for PR libgcj/38.
6852 2000-02-24 Warren Levy <warrenl@cygnus.com>
6854 * java/math/BigInteger.java(ival): Made private.
6858 2000-02-20 Anthony Green <green@cygnus.com>
6860 * Makefile.in: Rebuilt.
6861 * Makefile.am (ordinary_java_source_files): Add
6862 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6864 * scripts/MakeDefaultMimeTypes.java: New file.
6865 * scripts/mime.types: New file.
6866 * scripts/classes.pl: Moved from top level.
6867 * classes.pl: Moved to scripts directory.
6869 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6871 * gnu/gcj/io/MimeTypes.java: New file.
6872 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6874 2000-02-20 Tom Tromey <tromey@cygnus.com>
6876 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6878 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6880 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6883 2000-02-18 Tom Tromey <tromey@cygnus.com>
6885 * include/jvm.h (_Jv_GetJavaVM): Declare.
6886 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6887 (_Jv_MethodBase::get_method): New method.
6888 (_Jv_JNIMethod::set_function): New method.
6889 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6890 (_Jv_JNI_RegisterNatives): New function.
6891 (_Jv_JNIFunctions): Updated for new functions.
6892 (_Jv_GetJavaVM): New function.
6893 (_Jv_JNI_GetJavaVM): Use it. Now static.
6894 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6895 is already a Java thread but does not have a JNIEnv yet.
6897 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6900 2000-02-17 Tom Tromey <tromey@cygnus.com>
6902 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6905 2000-02-16 Tom Tromey <tromey@cygnus.com>
6907 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6909 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6910 (_Jv_JNI_NewObject): Likewise.
6911 (_Jv_JNI_NewObjectA): Likewise.
6912 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6913 as "return" type to _Jv_CallAnyMethodA.
6914 (_Jv_JNI_CallAnyMethodA): Likewise.
6915 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6917 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6920 2000-02-15 Tom Tromey <tromey@cygnus.com>
6922 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6924 (init_cif): Added `rtype_p' argument.
6925 * include/java-interp.h (class _Jv_MethodBase): Added
6927 (class _Jv_InterpMethod): Removed args_raw_size.
6928 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6929 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6930 class pointer as well as the ordinary arguments.
6932 * jni.cc (mangled_name): Skip leading `(' in signature.
6934 * jni.cc (add_char): Added missing `else'.
6936 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6939 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6943 * java/lang/natRuntime.cc (_load): Include library path with
6946 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6949 * java/lang/natThread.cc (dumpStack): Removed.
6950 * java/lang/Thread.java (dumpStack): Implemented.
6952 2000-02-15 Tom Tromey <tromey@cygnus.com>
6954 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6955 with `lib' for loadLibrary. Fixes PR gcj/150.
6957 2000-02-14 Warren Levy <warrenl@cygnus.com>
6959 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6961 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6965 (modPow): Rewritten to not use the naive, slow, brute force approach.
6966 (isProbablePrime): Implemented.
6967 (testBit): Implemented.
6968 (flipBit): Implemented.
6969 (getLowestSetBit): Implemented.
6971 2000-02-16 Anthony Green <green@redhat.com>
6973 * configure.host: Use the same options for i386 and i486 as we do
6976 2000-02-12 Tom Tromey <tromey@cygnus.com>
6978 * java/io/File.java (createTempFile): Use low bits from counter,
6981 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6983 * THANKS: More thanks.
6985 2000-02-11 Tom Tromey <tromey@cygnus.com>
6987 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6988 astore instruction. From Hans Boehm.
6990 2000-02-11 Warren Levy <warrenl@cygnus.com>
6992 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6993 (BigInteger(String)): New constructor.
6994 (not): Rewritten using version from Kawa's BitOps class.
6995 (valueOf): New private methods from Kawa's BitOps class.
7002 (andNot): Implemented.
7003 (clearBit): Implemented.
7004 (setBit): Implemented.
7005 (bitCount): Implemented.
7006 (toByteArray): Implemented.
7008 2000-02-11 Tom Tromey <tromey@cygnus.com>
7010 * java/io/File.java (nextValue): Now synchronized.
7012 2000-02-10 Tom Tromey <tromey@cygnus.com>
7014 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7015 * java/io/FileDescriptor.java (EXCL): New static field.
7016 * java/io/File.java (tmpdir): New static field.
7017 (createTempFile): New method.
7018 (nextValue): New method.
7019 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7022 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7023 (jboolean): Declare as an attributed int, not a bool.
7024 (_Jv_func): Declare differently for C.
7026 * gnu/gcj/jni/natNativeThread.cc: New file.
7027 * gnu/gcj/jni/NativeThread.java: New file.
7028 * java/lang/Thread.java (data): Now a RawData.
7029 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7031 * Makefile.in: Rebuilt.
7032 * Makefile.am (java/lang/Thread.h): New target.
7033 (ordinary_java_source_files): Added NativeThread.java.
7034 (nat_source_files): Added natNativeThread.cc.
7035 * java/lang/natThread.cc: Include <jni.h>
7036 (struct natThread): Added `jni_env' field.
7037 (_Jv_GetCurrentJNIEnv): New function.
7038 (_Jv_SetCurrentJNIEnv): Likewise.
7039 (initialize_native): Initialize jni_env.
7041 * jni.cc (ThreadGroupClass): New define.
7042 (_Jv_JNI_InvokeFunctions): New structure.
7043 (JNI_GetCreatedJavaVMs): New function.
7044 (the_vm): New global.
7045 (JNI_GetDefaultJavaVMInitArgs): New function.
7046 Include NativeThread.h.
7047 (NativeThreadClass): New define.
7048 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7049 (_Jv_JNI_DestroyJavaVM): New function.
7050 (_Jv_JNI_AttachCurrentThread): New function.
7051 (_Jv_JNI_DetachCurrentThread): New function.
7052 (_Jv_JNI_GetEnv): New function.
7053 (JNI_CreateJavaVM): New function.
7054 (_Jv_JNI_GetJavaVM): New function.
7055 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7056 * include/jni.h (JavaVMAttachArgs): New structure.
7057 (JNI_EDETACHED): New define.
7058 (JNI_EVERSION): Likewise.
7059 (JavaVM): Define properly.
7060 (struct JNIInvokeInterface): New structure.
7061 (class _Jv_JavaVM): New class.
7062 (JNI_OnLoad, JNI_OnUnload): Declare.
7063 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7064 JNI_GetCreatedJavaVMs): Declare.
7065 (JavaVMInitArgs): New typedef.
7066 (JavaVMOption): Likewise.
7067 (JNI_ERR): New define.
7070 2000-02-10 Andrew Haley <aph@cygnus.com>
7072 * interpret.cc: Don't include fdlibm.h.
7073 Replace #if with #ifdef throughout.
7074 Declare extern __ieee754_fmod.
7075 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7077 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7078 Search class hierarchy for superclass vtable.
7080 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7081 off the end of a pointer list.
7083 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7087 2000-02-09 Tom Tromey <tromey@cygnus.com>
7089 * java/lang/natRuntime.cc (_load): Call add_library.
7090 (loadLibraryInternal): Likewise.
7092 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7093 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7094 (Output_iconv::finalize): Likewise.
7096 2000-02-08 Tom Tromey <tromey@cygnus.com>
7098 * java/util/Properties.java (setProperty): New method.
7099 (store): New method.
7101 2000-02-07 Tom Tromey <tromey@cygnus.com>
7103 * java/lang/Runtime.java (_load): Declare.
7104 (load, loadLibrary): Wrote in terms of _load.
7105 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7107 (loadLibrary): Likewise.
7109 (_load): New method.
7110 (loadLibrary, load): Removed.
7112 * jni.cc (ThrowableClass): New define.
7113 (_Jv_JNI_Throw): Check argument.
7114 (_Jv_JNI_ThrowNew): Likewise.
7115 (wrap_value): Don't wrap object if it is NULL.
7116 (_Jv_JNI_DefineClass): Use wrap_value.
7117 (_Jv_JNI_FindClass): Likewise.
7118 (_Jv_JNI_GetSuperclass): Likewise.
7119 (_Jv_JNI_ExceptionOccurred): Likewise.
7120 (_Jv_JNI_AllocObject): Likewise.
7121 (_Jv_JNI_GetObjectClass): Likewise.
7122 (_Jv_JNI_NewString): Likewise.
7123 (_Jv_JNI_NewStringUTF): Likewise.
7124 (_Jv_JNI_NewObjectArray): Likewise.
7125 (_Jv_JNI_GetObjectArrayElement): Likewise.
7126 (_Jv_JNI_NewPrimitiveArray): Likewise.
7127 (_Jv_JNI_ToReflectedField): Likewise.
7128 (_Jv_JNI_ToReflectedMethod): Likewise.
7129 (_Jv_JNI_AllocObject): Check argument.
7130 (_Jv_JNI_NewObjectV): Likewise.
7131 (_Jv_JNI_NewObject): Likewise.
7132 (_Jv_JNI_NewObjectA): Likewise.
7133 (_Jv_JNI_GetObjectClass): Likewise.
7134 (_Jv_JNI_GetField): Likewise.
7135 (_Jv_JNI_SetField): Likewise.
7137 * interpret.cc (PUSHL): Don't use expression statement.
7142 * jni.cc (add_char): Conditional on INTERPRETER.
7143 (mangled_name): Likewise.
7145 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7147 (class _Jv_JNIMethod): Likewise.
7149 2000-02-04 Warren Levy <warrenl@cygnus.com>
7151 * Makefile.am: Added MPN.java and BigInteger.java.
7152 * Makefile.in: Rebuilt.
7153 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7155 * java/math/BigInteger.java: New file. Based primarily on
7156 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7158 2000-02-04 Tom Tromey <tromey@cygnus.com>
7160 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7162 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7163 if the method is native.
7164 * resolve.cc (ncode): Don't handle native methods.
7165 (_Jv_JNIMethod::ncode): New method.
7166 (_Jv_PrepareClass): Handle native methods.
7167 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7168 Include AbstractMethodError.h.
7169 (add_char): New function.
7170 (mangled_name): Likewise.
7171 * include/java-interp.h (class _Jv_JNIMethod): New class.
7172 (class _Jv_MethodBase): New class.
7173 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7174 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7177 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7178 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7179 libraries): New globals.
7180 (add_library): New function.
7181 (_Jv_FindSymbolInExecutable): New function.
7183 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7186 2000-02-04 Andrew Haley <aph@cygnus.com>
7188 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7189 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7190 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7191 printStackTrace to printRawStackTrace.
7193 2000-02-03 Tom Tromey <tromey@cygnus.com>
7195 * java/util/Calendar.java (toString): New method.
7196 * java/util/SimpleTimeZone.java (clone): New method.
7197 (toString): New method.
7198 * java/util/TimeZone.java (clone): New method.
7199 * java/text/SimpleDateFormat.java (clone): New method.
7200 * java/text/NumberFormat.java (clone): New method.
7201 (equals): New method.
7202 * java/text/Format.java (clone): New method.
7203 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7205 (clone): New method.
7206 * java/text/DateFormat.java (clone): New method.
7207 * java/text/Collator.java (clone): New method.
7209 2000-02-03 Tom Tromey <tromey@cygnus.com>
7211 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7214 2000-02-01 Tom Tromey <tromey@cygnus.com>
7216 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7217 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7218 constructing the closure if the function is native.
7219 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7220 a template function, #if'd out, or static.
7221 Include <java-interp.h>.
7223 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7225 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7227 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7228 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7230 (wrap_value): New function.
7231 (_Jv_JNI_CallAnyMethodV): Use it.
7232 (_Jv_JNI_CallAnyMethodA): Likewise.
7233 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7234 (_Jv_JNI_GetStaticField): Likewise.
7236 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7237 (_Jv_JNI_GetStaticField): Likewise.
7239 2000-01-31 Tom Tromey <tromey@cygnus.com>
7241 * prims.cc (_Jv_MallocUnchecked): New function.
7242 (main_init): Call _Jv_JNI_Init.
7243 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7244 (_Jv_JNI_Init): Declare.
7245 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7247 (_Jv_JNI_NewGlobalRef): New function.
7248 (_Jv_JNI_DeleteGlobalRef): New function.
7249 (_Jv_JNI_DeleteLocalRef): New function.
7250 (_Jv_JNI_conversion_call): Initialize and clear local reference
7252 (_Jv_JNI_NewLocalRef): New function.
7253 (struct _Jv_JNI_LocalFrame): New structure.
7254 (_Jv_JNI_PushLocalFrame): New function.
7255 (_Jv_JNI_EnsureLocalCapacity): New function.
7256 (FRAME_SIZE): New define.
7257 (_Jv_JNI_GetStringChars): Mark string, not characters.
7258 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7259 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7260 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7262 (_Jv_JNI_DefineClass): Make return value a local ref.
7263 (_Jv_JNI_FindClass): Likewise.
7264 (_Jv_JNI_GetSuperclass): Likewise.
7265 (_Jv_JNI_ExceptionOccurred): Likewise.
7266 (_Jv_JNI_AllocObject): Likewise.
7267 (_Jv_JNI_GetObjectClass): Likewise.
7268 (_Jv_JNI_CallAnyMethodV): Likewise.
7269 (_Jv_JNI_NewString): Likewise.
7270 (_Jv_JNI_NewStringUTF): Likewise.
7271 (_Jv_JNI_NewObjectArray): Likewise.
7272 (_Jv_JNI_GetObjectArrayElement): Likewise.
7273 (_Jv_JNI_ToReflectedField): Likewise.
7274 (_Jv_JNI_ToReflectedMethod): Likewise.
7275 (_Jv_JNIFunctions): Updated table for new functions.
7276 (_Jv_JNI_Init): New function.
7277 (mark_for_gc): Wrote.
7278 (unmark_for_gc): Wrote.
7279 * include/jni.h (struct JNINativeInterface): Removed name from
7280 PopLocalFrame parameter.
7281 (class _Jv_JNIEnv): Added `locals' field.
7283 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7285 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7288 2000-01-30 Tom Tromey <tromey@cygnus.com>
7290 * include/config.h.in: Rebuilt.
7291 * acconfig.h (HAVE_ICONV): Define.
7292 * configure: Rebuilt.
7293 * configure.in: Check for `iconv' function.
7294 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7295 no specific encoder exists.
7296 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7297 no specific encoder exists.
7298 * Makefile.in: Rebuilt.
7299 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7301 (nat_source_files): Added natIconv.cc.
7302 * gnu/gcj/convert/natIconv.cc: New file.
7303 * gnu/gcj/convert/Input_iconv.java: New file.
7304 * gnu/gcj/convert/Output_iconv.java: New file.
7306 2000-01-28 Tom Tromey <tromey@cygnus.com>
7308 * Makefile.in: Rebuilt.
7309 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7311 2000-01-26 Tom Tromey <tromey@cygnus.com>
7313 * gcj/method.h (JvNumMethods): Moved from Class.h.
7314 (JvGetFirstMethod): Likewise.
7315 * java/lang/Class.h (Object): Updated decl of
7316 _Jv_JNI_ToReflectedField.
7317 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7318 * Makefile.in: Rebuilt.
7319 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7320 argument of _Jv_JNI_ToReflectedField.
7321 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7323 (java/lang/reflect/Method.h): Likewise.
7324 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7326 (jweak): New typedef.
7327 (struct JNINativeInterface): Correctly declare remaining entries.
7328 * jni.cc: Include Class.h, ClassLoader.h.
7329 (_Jv_JNI_FindClass): New function.
7330 (_Jv_JNI_DefineClass): New function.
7331 (_Jv_JNI_conversion_call): New function.
7332 (_Jv_JNI_FindClass): Use current class loader to find class.
7333 (_Jv_JNI_ExceptionCheck): New function.
7334 (_Jv_JNI_FromReflectedField): Now static.
7335 (MethodClass): New define.
7336 (_Jv_JNI_FromReflectedMethod): New function.
7337 (_Jv_JNI_ToReflectedMethod): Likewise.
7339 (_Jv_JNI_IsAssignableFrom): Renamed.
7340 (_Jv_JNI_GetStringRegion): New function.
7341 Include StringIndexOutOfBoundsException.h.
7342 (_Jv_JNI_GetStringUTFRegion): New function.
7343 (_Jv_JNIFunctions): Updated for new functions.
7344 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7345 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7346 (_Jv_JNI_GetStringCritical): New function.
7347 (_Jv_JNI_ReleaseStringCritical): Likewise.
7348 (get_throwable): Removed.
7349 (GCJ_JV_JNIENV_FRIEND): Removed.
7350 (__GCJ_JNI_IMPL__): Define.
7353 * resolve.cc (get_ffi_type_from_signature): Handle case where
7356 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7358 * interpret.cc (run): Don't call println.
7359 Don't include PrintStream.h.
7361 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7362 nameIndex. Use "jint" as type for boffset.
7363 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7365 (Class): Likewise. Also changed type of method_count,
7366 vtable_method_count, size_in_bytes, field_count,
7367 static_field_count, interface_count.
7368 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7371 2000-01-21 Tom Tromey <tromey@cygnus.com>
7373 * java/lang/reflect/natConstructor.cc (newInstance): Use
7375 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7376 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7377 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7380 (invoke): Use _Jv_CallAnyMethodA.
7382 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7383 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7385 (struct _Jv_Method): Added getNextMethod method.
7386 (JvNumMethods): New function.
7387 (JvGetFirstMethod): Likewise.
7388 * gcj/field.h (JvGetFirstStaticField): New function.
7389 (JvNumStaticFields): Likewise.
7390 (getNextField): Renamed from getNextInstanceField.
7391 (struct _Jv_Field): New method getClass.
7392 * jni.cc: Wrote many new functions.
7393 * include/jni.h (JNI_TRUE): Define.
7394 (JNI_FALSE): Likewise.
7395 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7396 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7397 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7398 (jfieldID, jmethodID): Likewise.
7399 (JNI_COMMIT, JNI_ABORT): New defines.
7400 (JNINativeMethod): New struct.
7401 (struct JNINativeInterface): Correctly declared more entries.
7402 (class _Jv_JNIEnv): Added `ex' member.
7403 (JNI_VERSION_1_1): New define.
7404 (JNI_VERSION_1_2): Likewise.
7406 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7407 getNextInstanceField.
7409 2000-01-20 Tom Tromey <tromey@cygnus.com>
7411 * resolve.cc (StringClass): Removed.
7412 * defineclass.cc (StringClass): Removed.
7414 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7418 2000-01-19 Tom Tromey <tromey@cygnus.com>
7420 * interpret.cc (PC_REGISTER_ASM): Removed.
7422 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7423 From Bryce McKinlay.
7425 * All files: Updated copyright to reflect Cygnus purchase.
7427 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7429 * configure: Rebuilt.
7430 * configure.in: Recognize --disable-interpreter.
7432 2000-01-18 Andrew Haley <aph@cygnus.com>
7434 * name-finder.cc (lookup): Check for dladdr function.
7435 acconfig.h (HAVE_DLADDR): Add.
7436 configure.in: Check for HAVE_DLADDR
7438 include/config.h.in: Rebuilt.
7440 2000-01-17 Andrew Haley <aph@cygnus.com>
7442 * prims.cc (_Jv_RunMain): Set the name of this executable.
7444 2000-01-17 Tom Tromey <tromey@cygnus.com>
7446 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7447 when backtrace can't be computed.
7449 * configure: Rebuilt.
7450 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7452 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7453 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7454 (_Jv_FindClassInCache): Likewise.
7455 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7456 (findSystemClass): Try to load class from compiled module.
7458 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7459 (loadLibrary): Likewise.
7460 (lt_preloaded_symbols): Define.
7461 (loadLibraryInternal): New method.
7462 * include/config.h.in: Rebuilt.
7463 * acconfig.h (USE_LTDL): Added.
7464 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7465 (INCLUDES): Added $(INCLTDL).
7466 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7467 (libgcj_la_LIBADD): Likewise.
7468 * aclocal.m4, configure: Rebuilt.
7469 * configure.in: Added libltdl support.
7471 2000-01-15 Tom Tromey <tromey@cygnus.com>
7473 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7475 2000-01-14 Andrew Haley <aph@cygnus.com>
7477 * java/lang/natThrowable.cc: New file.
7479 * java/lang/Throwable.java (fillInStackTrace): Make native.
7480 (printStackTrace): Call native method to do this.
7481 (Throwable): Call fillInStackTrace.
7482 (stackTrace): New variable.
7484 * include/jvm.h: Add _Jv_ThisExecutable functions.
7486 * prims.cc: (_Jv_execName): New variable.
7487 (catch_segv): Call fillInStackTrace.
7489 (_Jv_ThisExecutable): New functions.
7490 (JvRunMain): Set the name of this executable.
7492 * Makefile.am: Add java/lang/natThrowable.cc.
7494 * Makefile.in: Rebuilt.
7496 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7498 * configure.in: Force link with __frame_state_for in
7499 FORCELIBGCCSPEC. Add new checks for backtrace.
7500 * include/config.h.in: Rebuilt.
7502 * name-finder.cc: New file.
7503 * include/name-finder.h: New file.
7505 2000-01-16 Anthony Green <green@cygnus.com>
7507 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7510 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7512 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7514 2000-01-13 Tom Tromey <tromey@cygnus.com>
7516 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7517 not system loader, as initiating loader.
7519 2000-01-11 Tom Tromey <tromey@cygnus.com>
7521 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7522 HP/UX. From David Scott Urban.
7524 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7526 * java/lang/natMath.cc (pow): Cast args to `double', not
7529 (IEEEremainder): Likewise.
7530 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7531 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7533 2000-01-09 Anthony Green <green@cygnus.com>
7535 * java/lang/natString.cc (init): Test for overflow condition
7536 during out of bounds check.
7537 (getChars): Throw StringIndexOutOfBoundsException, not
7538 ArrayIndexOutOfBoundsException.
7540 (regionMatches): Obey case option during string comparison.
7542 * configure.host (ligcj_interpreter): New variable. Enable
7543 interpreter by default on IA-32.
7544 * configure.in: Examine libgcj_interpreter.
7545 * configure: Rebuilt.
7547 2000-01-07 Tom Tromey <tromey@cygnus.com>
7549 * mauve-libgcj: Don't disable ClassTest.
7551 * java/lang/natClass.cc (getClasses): Wrote.
7553 2000-01-06 Tom Tromey <tromey@cygnus.com>
7555 * java/lang/natClass.cc (_getConstructors): Correctly check
7556 whether method name is the init name.
7557 (getMethod): Look at accflags on method in `klass', not `this'.
7559 2000-01-05 Tom Tromey <tromey@cygnus.com>
7561 * java/lang/natClass.cc (getMethod): Compute offset relative to
7562 `klass's methods table, not `this's table.
7564 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7565 In unwrapping/widening case, check whether `k' is null, not
7566 whether it is primitive. Initialize `num' from `argelts', not
7567 `paramelts'. Correct create and pass arguments to ffi_call.
7568 Don't let presence of `this' argument affect index used to look in
7570 (COPY): Set appropriate element in `values' vector.
7572 * java/lang/natClass.cc: Include <gcj/method.h>.
7574 * java/lang/Class.h (_getMethods): Correctly declare as private,
7577 * java/lang/Class.h (_getMethods): Declare.
7578 * java/lang/Class.java (_getMethods): Declare.
7579 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7580 (getDeclaredClasses): Always return empty array.
7581 (_getMethods): New method.
7582 (getMethods): Wrote.
7583 (getDeclaredMethod): Return `rmethod'.
7584 (finit_name): New global.
7585 (getDeclaredMethods): Check for finit_name.
7586 (_getMethods): Likewise.
7587 (getMethod): Only return public methods.
7589 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7590 jboolean and select correct ffi type on that basis.
7591 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7592 Constructor call always has `void' return type.
7594 2000-01-04 Tom Tromey <tromey@cygnus.com>
7596 * java/lang/Class.h (getSignature): Updated.
7597 * java/lang/Class.java (getSignature): Updated.
7598 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7600 (getConstructor): Ensure constructor is public.
7601 (_getConstructors): Check for public-ness of constructor when
7602 `declared' is false, not when it is true.
7604 2000-01-04 Warren Levy <warrenl@cygnus.com>
7606 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7608 (receive): Set the sender's address in the DatagramPacket.
7610 2000-01-04 Tom Tromey <tromey@cygnus.com>
7612 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7613 declaring class as return_type argument to
7614 _Jv_CallNonvirtualMethodA.
7615 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7616 constructor case, create object and use it as `this' argument.
7617 * java/lang/Class.h (_getConstructors): Declare.
7618 (_getFields): Declare.
7619 * java/lang/Class.java (getConstructors): Wrote.
7620 (_getConstructors): New native method.
7621 (getDeclaredConstructors): Wrote.
7622 (_getFields): Declare new native method.
7623 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7625 (getMethod): Work correctly when class is primitive.
7626 (getDeclaredMethods): Likewise. Compute offset using `method',
7628 (getDeclaredMethod): Likewise.
7629 (getConstructor): Wrote.
7630 (ConstructorClass): New define.
7631 (getDeclaredConstructor): Wrote.
7632 (_getConstructors): New method.
7633 (_getFields): New method.
7636 * Makefile.in: Rebuilt.
7637 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7639 * prims.cc: Remove `#pragma implementation'.
7640 * gcj/array.h: Remove `#pragma interface'.
7642 * prims.cc (_Jv_equaln): New function.
7643 * java/lang/Class.java (getSignature): Declare.
7644 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7645 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7647 (getSignature): New method.
7648 (getDeclaredMethod): Wrote.
7650 Include StringBuffer.h.
7651 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7652 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7654 (getSignature): Declare.
7655 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7656 (_Jv_equaln): Declare.
7657 (_Jv_CallNonvirtualMethodA): Declare.
7658 * Makefile.in: Rebuilt.
7659 * Makefile.am (nat_source_files): Added natConstructor.cc.
7660 (java/lang/reflect/Constructor.h): New target.
7661 * java/lang/reflect/natConstructor.cc: New file.
7662 * java/lang/reflect/Constructor.java (newInstance): Now native.
7663 (declaringClass): Renamed from decl_class.
7664 (offset): Renamed from index.
7665 (getType): New native method.
7666 (getModifiers): Now native.
7667 (getParameterTypes): Call getType if required.
7668 (hashCode): Include hash code from declaring class.
7669 (modifiers): Removed.
7670 (toString): Call getType if required.
7671 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7672 * java/lang/reflect/natMethod.cc (hack_call): New method.
7673 Removed `#if 0' around FFI code.
7674 Include <gnu/gcj/RawData.h>.
7675 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7676 IllegalArgumentException when argument object and class disagree.
7677 (_Jv_GetTypesFromSignature): New function.
7679 (ObjectClass): New define.
7680 (_Jv_CallNonvirtualMethodA): New function.
7681 * java/lang/reflect/Method.java (hack_trampoline): New method.
7682 (hack_call): New native method.