1 2001-09-21 Richard Henderson <rth@redhat.com>
3 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
4 * java/lang/mprec.c (lo0bits): Fix paren typo.
6 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
9 blocking IO via pthread_kill().
10 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
11 interrupted status flag only if ::write returned an error.
12 (write (jbyteArray, jint, jint): Likewise.
13 (read (jint)): Likewise.
14 (read (jbyteArray, jint, jint): Likewise.
16 2001-09-19 Anthony Green <green@redhat.com>
18 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
21 2001-09-17 Andreas Jaeger <aj@suse.de>
23 * jni.cc (array_from_valist): Use promoted types for va_arg.
25 2001-09-16 Anthony Green <green@redhat.com>
27 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
29 2001-09-14 Tom Tromey <tromey@redhat.com>
31 * java/util/TimeZone.java: Updated list of timezones from
34 * java/lang/CloneNotSupportedException.java: Re-merged with
37 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
39 * java/io/File.java (normalizePath): Use equals() not '==' for string
42 * java/util/Hashtable.java (Enumerator): Ensure that if
43 hasMoreElements() returns true, nextElement() will always return
44 something even if the table has been modified.
46 2001-09-12 Tom Tromey <tromey@redhat.com>
48 * Makefile.in: Rebuilt.
49 * Makefile.am (class-check): New target.
51 2001-09-11 Tom Tromey <tromey@redhat.com>
53 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
55 2001-09-10 Tom Tromey <tromey@redhat.com>
57 * java/util/Properties.java (load): Correctly read \u sequences.
58 Report from Anthony Green.
60 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
62 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
64 * configure: Re-generate.
66 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
68 * include/jvm.h (_Jv_AllocRawObj): New prototype.
69 * boehm.cc (_Jv_AllocRawObj): Implement.
70 * nogc.cc (_Jv_AllocRawObj): Likewise.
71 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
73 2001-09-06 Anthony Green <green@redhat.com>
75 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
76 redundant method calls.
77 (emptyLocale): New private member.
78 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
81 2001-09-06 Tom Tromey <tromey@redhat.com>
83 * java/text/RuleBasedCollator.java (clone): Rewrote.
84 (RuleBasedCollator(RuleBasedCollator)): Removed.
85 * java/text/MessageFormat.java: Re-merged from Classpath.
86 * java/text/DecimalFormat.java: Re-merged from Classpath.
88 2001-09-06 Anthony Green <green@redhat.com>
90 * include/jvm.h: Declare _Jv_RegisterResource.
91 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
92 gnu/gcj/protocol/core/Connection.java,
93 gnu/gcj/protocol/core/Handler.java,
94 gnu/gcj/protocol/core/CoreInputStream.java,
95 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
96 * java/net/URL.java (setURLStreamHandler): Use
97 gnu.gcj.protocol.core.Handler for the core protocol.
98 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
99 end of java.class.path.
100 * Makefile.am (ordinary_java_source_files): Add new java files.
101 (nat_source_files): Add new native code files.
102 * Makefile.in: Rebuilt.
104 2001-09-05 Tom Tromey <tromey@redhat.com>
106 * java/util/Properties.java: Re-merged from Classpath.
108 From Eric Blake, via Classpath:
109 * java/lang/String.java (CaseInsensitiveComparator): New class.
110 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
112 * java/util/Date.java: Re-merged with Classpath.
114 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
116 2001-09-05 Corey Minyard <minyard@acm.org>
117 Tom Tromey <tromey@redhat.com>
119 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
120 (_Jv_RegisterClassHookDefault): Throw error if a class is
123 2001-09-05 Tom Tromey <tromey@redhat.com>
125 * java/lang/natSystem.cc (init_properties): Default locale is
128 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
130 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
131 here, DecimalFormat.applyPattern() does not throw it.
133 2001-09-04 Tom Tromey <tromey@redhat.com>
135 * java/util/AbstractMap.java: Re-merged with Classpath.
136 * java/util/IdentityHashMap.java: Re-merged with Classpath.
138 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
139 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
140 gnu/gcj/text/LocaleData_en_US.java: Removed.
141 * java/text/DateFormatSymbols.java (clone): Use Classpath
143 (equals): Simplified.
144 (DateFormatSymbols): Look in gnu.java.locale for information.
145 (DateFormatSymbols(DateFormatSymbols)): Removed.
146 (safeGetResource): Removed.
147 (DateFormatSymbols): Throws MissingResourceException.
148 (ampmsDefault, erasDefault, localPatternCharsDefault,
149 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
150 weekdaysDefault, zoneStringsDefault): Removed.
151 * java/text/Collator.java (getAvailableLocales): Use modified
152 Classpath implementation.
153 (getInstance): Look in gnu.java.locale for information.
155 * java/text/MessageFormat.java: Reindented.
157 * java/text/FieldPosition.java: Merged with Classpath.
158 * java/text/ParsePosition.java: Merged with Classpath.
159 * java/text/Format.java: Merged with Classpath.
160 * java/text/StringCharacterIterator.java
161 (StringCharacterIterator(StringCharacterIterator,int,int)): New
162 constructor from Classpath.
163 * java/text/Annotation.java,
164 java/text/AttributedCharacterIterator.java,
165 java/text/AttributedString.java,
166 java/text/AttributedStringIterator.java: New from Classpath.
167 * java/text/CharacterIterator.java: Copied from Classpath.
168 * java/text/ChoiceFormat.java: Reindented.
170 * gnu/java/text/BaseBreakIterator.java,
171 gnu/java/text/CharacterBreakIterator.java,
172 gnu/java/text/LineBreakIterator.java,
173 gnu/java/text/LocaleData_en.java,
174 gnu/java/text/LocaleData_en_US.java,
175 gnu/java/text/SentenceBreakIterator.java,
176 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
177 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
179 * java/text/BreakIterator.java (getAvailableLocales): Use
180 Classpath implementation.
181 (getInstance): Look in gnu.java.locale for information.
182 (getCharacterInstance, getLineInstance, getSentenceInstance,
183 getWordInstance): Look in gnu.java.text for implementations.
184 * java/text/DecimalFormatSymbols.java: Reindented
185 (clone): Use Classpath implementation.
186 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
187 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
189 * java/text/DateFormat.java: Merged with Classpath.
190 (getAvailableLocales): Use Classpath implementation.
191 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
192 (computeInstance): Look in gnu.java.locale for information.
193 * java/text/NumberFormat.java: Reindented.
194 (computeInstance): Look in gnu.java.locale for information.
195 (getAvailableLocales): Use implementation from Classpath.
196 (setMaximumIntegerDigits): Likewise.
197 (setMinimumIntegerDigits): Likewise.
198 (setMaximumFractionDigits): Likewise.
200 * java/text/DecimalFormat.java: Reindented.
201 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
202 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
203 * Makefile.in: Rebuilt.
204 * Makefile.am (ordinary_java_source_files): Added all new files.
205 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
206 * java/security/spec/AlgorithmParameterSpec.java,
207 java/security/spec/KeySpec.java: Re-merged with Classpath.
209 Fix for PR libgcj/4213:
210 * Makefile.am (ordinary_java_source_files): Added new file.
211 * gnu/gcj/text/LocaleData.java: New file.
213 2001-09-03 Tom Tromey <tromey@redhat.com>
215 * java/lang/reflect/natField.cc (set): Allow for case when the
216 value is null. Fixes PR libgcj/4208.
218 * gcj/javaprims.h: Regenerated class list.
219 * java/lang/IllegalThreadStateException.java,
220 java/lang/InstantiationException.java: Minor comment tweaks to
221 satisfy libgcj `classes.pl' script.
223 2001-09-01 Tom Tromey <tromey@redhat.com>
225 * Makefile.in: Rebuilt.
226 * Makefile.am (core_java_source_files): Added
227 UnsupportedClassVersionError.
228 * java/lang/UnsupportedClassVersionError.java: New file from
231 * java/io/CharConversionException.java, java/io/EOFException.java,
232 java/io/FileNotFoundException.java, java/io/IOException.java,
233 java/io/InterruptedIOException.java,
234 java/io/ObjectStreamException.java,
235 java/io/OptionalDataException.java,
236 java/io/StreamCorruptedException.java,
237 java/io/SyncFailedException.java,
238 java/io/UTFDataFormatException.java,
239 java/io/UnsupportedEncodingException.java,
240 java/lang/AbstractMethodError.java,
241 java/lang/ArithmeticException.java,
242 java/lang/ArrayIndexOutOfBoundsException.java,
243 java/lang/ArrayStoreException.java,
244 java/lang/ClassCastException.java,
245 java/lang/ClassCircularityError.java,
246 java/lang/ClassFormatError.java,
247 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
248 java/lang/Exception.java,
249 java/lang/ExceptionInInitializerError.java,
250 java/lang/IllegalAccessError.java,
251 java/lang/IllegalAccessException.java,
252 java/lang/IllegalArgumentException.java,
253 java/lang/IllegalMonitorStateException.java,
254 java/lang/IllegalStateException.java,
255 java/lang/IllegalThreadStateException.java,
256 java/lang/IncompatibleClassChangeError.java,
257 java/lang/IndexOutOfBoundsException.java,
258 java/lang/InstantiationError.java,
259 java/lang/InstantiationException.java,
260 java/lang/InternalError.java, java/lang/InterruptedException.java,
261 java/lang/LinkageError.java,
262 java/lang/NegativeArraySizeException.java,
263 java/lang/NoClassDefFoundError.java,
264 java/lang/NoSuchFieldError.java,
265 java/lang/NoSuchFieldException.java,
266 java/lang/NoSuchMethodError.java,
267 java/lang/NoSuchMethodException.java,
268 java/lang/NullPointerException.java,
269 java/lang/NumberFormatException.java,
270 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
271 java/lang/SecurityException.java,
272 java/lang/StackOverflowError.java,
273 java/lang/StringIndexOutOfBoundsException.java,
274 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
275 java/lang/UnsatisfiedLinkError.java,
276 java/lang/UnsupportedOperationException.java,
277 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
278 java/lang/reflect/InvocationTargetException.java,
279 java/net/BindException.java, java/net/ConnectException.java,
280 java/net/MalformedURLException.java,
281 java/net/NoRouteToHostException.java,
282 java/net/ProtocolException.java, java/net/SocketException.java,
283 java/net/UnknownHostException.java,
284 java/net/UnknownServiceException.java,
285 java/text/ParseException.java: Copied from Classpath, thanks to
286 Mark Wielaard who did the merge.
288 * java/lang/System.java (getProperty): Use single argument form of
289 SecurityManager.checkPropertyAccess.
290 * Makefile.in: Rebuilt.
291 * Makefile.am (core_java_source_files): Added VMSecurityManager.
292 * java/lang/VMSecurityManager.java: New file.
293 * java/lang/SecurityManager.java: Merged with Classpath.
295 2001-08-31 Per Bothner <per@bothner.com>
297 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
298 (_Jv_RegisterClassHookDefault): Likewise.
299 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
300 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
301 (_Jv_RegisterClassHookDefault): New.function.
302 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
304 * java/lang/ClassLoader.java (system): Remove static field.
305 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
306 directly instead of using it to set the system field.
307 (loadClass): Use VMClassLoader.instance instead of system field.
308 (findSystemClass): Similar.
309 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
310 than ClassLoader::system which no longer exists.
311 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
313 2001-08-31 Tom Tromey <tromey@redhat.com>
315 * java/io/BufferedReader.java, java/io/ObjectInput.java,
316 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
317 Re-merged with Classpath.
319 Re-merge with Classpath:
320 * java/util/Comparator (equals): Added.
321 * java/io/PipedWriter.java (write): Changed argument to `int'.
323 * java/io/FileDescriptor.java (FileDescriptor()): New
325 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
327 * Makefile.in: Rebuilt.
328 * Makefile.am (ordinary_java_source_files): Removed
329 EnumerationChain, added DoubleEnumeration.
330 (nat_source_files): Added natResourceBundle.cc.
331 * java/util/natResourceBundle.cc: New file.
332 * gnu/java/util/DoubleEnumeration.java: New file.
333 * gnu/gcj/util/EnumerationChain.java: Removed.
334 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
335 * java/util/ResourceBundle.java: Merged with Classpath.
336 * java/util/StringTokenizer.java: Merged with Classpath.
337 * java/util/Locale.java: Merged with Classpath.
338 * java/util/Random.java: Merged with Classpath.
339 * java/util/PropertyResourceBundle.java: Merged with Classpath.
340 * java/util/ListResourceBundle.java: Merged with Classpath.
341 * java/util/ConcurrentModificationException.java: Re-merged with
343 * java/util/EmptyStackException.java: Likewise.
344 * java/util/MissingResourceException.java: Likewise.
345 * java/util/NoSuchElementException.java: Likewise.
346 * java/util/TooManyListenersException.java: Likewise.
348 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
349 * java/io/OptionalDataException.java: Merged with Classpath.
351 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
353 * exception.cc (PERSONALITY_FUNCTION): Simplify
356 2001-08-31 Tom Tromey <tromey@redhat.com>
358 * java/io/ByteArrayInputStream.java: Merged with Classpath.
360 2001-08-30 Tom Tromey <tromey@redhat.com>
362 * java/io/BufferedReader.java: Re-merged with Classpath.
364 2001-08-28 Per Bothner <per@bothner.com>
366 * java/math/BigInteger.java (init(int,Random)): New method.
367 Move body of constructor <init>(int,Random)) here.
368 Re-write it to avoid constructing unneeded temporaries.
369 (<init>(int,int,Random)): Use new init method to avoid constructing
370 extra temporary BigIntegers.
372 2001-08-27 Tom Tromey <tromey@redhat.com>
374 * java/rmi/activation/Activatable.java,
375 java/rmi/activation/ActivateFailedException.java,
376 java/rmi/activation/ActivationDesc.java,
377 java/rmi/activation/ActivationException.java,
378 java/rmi/activation/ActivationGroup.java,
379 java/rmi/activation/ActivationGroupDesc.java,
380 java/rmi/activation/ActivationGroupID.java,
381 java/rmi/activation/ActivationID.java,
382 java/rmi/activation/ActivationInstantiator.java,
383 java/rmi/activation/ActivationMonitor.java,
384 java/rmi/activation/ActivationSystem.java,
385 java/rmi/activation/Activator.java,
386 java/rmi/activation/UnknownGroupException.java,
387 java/rmi/activation/UnknownObjectException.java,
388 java/rmi/AccessException.java,
389 java/rmi/AlreadyBoundException.java,
390 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
391 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
392 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
393 java/rmi/NotBoundException.java,
394 java/rmi/RMISecurityException.java,
395 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
396 java/rmi/RemoteException.java, java/rmi/ServerError.java,
397 java/rmi/ServerException.java,
398 java/rmi/ServerRuntimeException.java,
399 java/rmi/StubNotFoundException.java,
400 java/rmi/UnexpectedException.java,
401 java/rmi/UnknownHostException.java,
402 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
403 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
404 java/rmi/registry/LocateRegistry.java,
405 java/rmi/registry/Registry.java,
406 java/rmi/registry/RegistryHandler.java,
407 java/rmi/server/ExportException.java,
408 java/rmi/server/LoaderHandler.java,
409 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
410 java/rmi/server/Operation.java,
411 java/rmi/server/RMIClassLoader.java,
412 java/rmi/server/RMIClientSocketFactory.java,
413 java/rmi/server/RMIFailureHandler.java,
414 java/rmi/server/RMIServerSocketFactory.java,
415 java/rmi/server/RMISocketFactory.java,
416 java/rmi/server/RemoteCall.java,
417 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
418 java/rmi/server/RemoteServer.java,
419 java/rmi/server/RemoteStub.java,
420 java/rmi/server/ServerCloneException.java,
421 java/rmi/server/ServerNotActiveException.java,
422 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
423 java/rmi/server/SkeletonMismatchException.java,
424 java/rmi/server/SkeletonNotFoundException.java,
425 java/rmi/server/SocketSecurityException.java,
426 java/rmi/server/UID.java,
427 java/rmi/server/UnicastRemoteObject.java,
428 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
429 gnu/java/rmi/dgc/DGCImpl_Skel.java,
430 gnu/java/rmi/dgc/DGCImpl_Stub.java,
431 gnu/java/rmi/registry/RegistryImpl.java,
432 gnu/java/rmi/registry/RegistryImpl_Skel.java,
433 gnu/java/rmi/registry/RegistryImpl_Stub.java,
434 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
435 gnu/java/rmi/server/ProtocolConstants.java,
436 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
437 gnu/java/rmi/server/RMIHashes.java,
438 gnu/java/rmi/server/RMIObjectInputStream.java,
439 gnu/java/rmi/server/RMIObjectOutputStream.java,
440 gnu/java/rmi/server/UnicastConnection.java,
441 gnu/java/rmi/server/UnicastConnectionManager.java,
442 gnu/java/rmi/server/UnicastRef.java,
443 gnu/java/rmi/server/UnicastRemoteCall.java,
444 gnu/java/rmi/server/UnicastRemoteStub.java,
445 gnu/java/rmi/server/UnicastServer.java,
446 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
447 Kaffe. Relabelled classes to fit into Classpath tree.
448 * Makefile.in: Rebuilt.
449 * Makefile.am (rmi_java_source_files): New macro.
450 (ordinary_java_source_files): Reference it.
451 (bin_PROGRAMS): Added rmic and rmiregistry.
452 (rmic_SOURCES): New macro.
453 (EXTRA_rmic_SOURCES): Likewise.
454 (rmic_LDFLAGS): Likewise.
455 (rmic_LINK): Likewise.
456 (rmic_LDADD): Likewise.
457 (rmic_DEPENDENCIES): Likewise.
458 (rmiregistry_SOURCES): New macro.
459 (EXTRA_rmiregistry_SOURCES): Likewise.
460 (rmiregistry_LDFLAGS): Likewise.
461 (rmiregistry_LINK): Likewise.
462 (rmiregistry_LDADD): Likewise.
463 (rmiregistry_DEPENDENCIES): Likewise.
465 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
467 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
469 * Makefile.am: New friends for java/lang/Thread.h.
470 * prims.cc (runFirst): Removed.
471 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
472 (_Jv_RunMain): Now takes either a klass or class name parameter.
473 Create a gnu.gcj.runtime.FirstThread and attach the native thread
474 to that, then run it using _Jv_ThreadRun. Remove special handling of
475 jar files, instead pass is_jar parameter through to FirstThread.
476 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
477 of _Jv_AttachCurrentThread.
478 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
479 (run): New method. Take care of looking up main class manifest
480 attribute and calling forName if neccessary. Then call call_main.
481 (call_main): New native method.
482 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
483 relocated from prims.cc. Look up and call main method.
484 * java/lang/Thread.java (run_): Removed.
485 * java/lang/natThread.cc (run_): Renamed to...
486 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
487 (_Jv_NotifyThreadStart): here. New function.
488 (countStackFrames, destroy, resume, suspend, stop): Throw
489 UnsupportedOperationExceptions rather than JvFail'ing.
490 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
491 Existing version wraps new variant.
494 2001-08-23 Tom Tromey <tromey@redhat.com>
496 * java/lang/reflect/Field.java (toString): Use
497 Method.appendClassName.
498 * java/lang/reflect/Constructor.java (toString): Use
499 Method.appendClassName.
500 * java/lang/reflect/Method.java: Reindented.
501 (appendClassName): New method.
503 * defineclass.cc (handleMethod ): Initialize `throws' field of
505 (read_one_method_attribute): Handle Exceptions attribute.
506 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
507 (ObjectClass): Removed.
508 (getType): Compute `exception_types'.
509 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
511 2001-08-21 Anthony Green <green@redhat.com>
513 * java/lang/natClassLoader.cc (findClass): Search for
514 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
516 2001-08-21 Jeff Sturm <jsturm@one-point.com>
518 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
521 2001-08-20 Tom Tromey <tromey@redhat.com>
523 * java/awt/GridBagConstraints.java: Removed comment.
525 * jni.cc (nathash, nathash_count, nathash_size): New globals.
526 (DELETED_ENTRY): New define.
527 (hash): New function.
528 (nathash_find_slot): Likewise.
529 (natrehash): Likewise.
530 (nathash_add): Likewise.
531 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
533 (nathash_find): New function.
534 (_Jv_LookupJNIMethod): Use it. Synchronize body.
535 (call): Synchronize around assignment.
537 2001-08-17 Jeff Sturm <jsturm@one-point.com>
539 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
540 starting from zero offset.
542 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
544 * boehm.cc: Include gc_local_alloc.h if appropriate.
545 (GC_GENERIC_MALLOC): Don't define.
546 (MAYBE_MARK): Redefine for GC 6.0.
547 (_Jv_MarkObj): Mark class differently.
548 (_Jv_AllocArray): Use GC_generic_malloc.
550 2001-08-17 Mark J Roberts <mjr@anarcast.net>
552 * java/math/BigInteger.java (randBytes): New method.
553 (BigInteger(int,Random)): Use randBytes.
555 2001-08-17 Tom Tromey <tromey@redhat.com>
557 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
559 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
561 * BigInteger.java: fix right shifts by nonzero multiples of 32.
563 2001-08-15 Tom Tromey <tromey@redhat.com>
565 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
566 (local_ref_table, global_ref_table): Now IdentityHashMap.
567 (_Jv_JNI_Init): Updated for new types.
568 (mark_for_gc): Likewise.
569 (unmark_for_gc): Likewise.
570 * gcj/javaprims.h: Rebuilt class list.
571 * Makefile.in: Rebuilt.
572 * Makefile.am (core_java_source_files): Added new file.
573 * java/util/IdentityHashMap.java: New file.
575 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
578 2001-08-09 Tom Tromey <tromey@redhat.com>
580 * java/awt/image/SampleModel.java (getPixel): Set correct array
581 element. From Chris Meyer.
583 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
585 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
586 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
588 2001-08-06 Tom Tromey <tromey@redhat.com>
590 * java/io/InputStreamReader.java (refill): Only call refill on
591 BufferedInputStream when appropriate constraints are met.
593 2001-08-05 Tom Tromey <tromey@redhat.com>
595 * java/io/StringWriter.java: Merged with Classpath.
596 * java/io/InputStream.java: Merged with Classpath.
597 * java/io/OutputStream.java: Merged with Classpath.
598 * java/io/PushbackInputStream.java: Merged with Classpath.
599 * java/io/CharArrayReader.java: Merged with Classpath.
600 * java/io/CharArrayWriter.java: Merged with Classpath.
602 2001-08-02 Tom Tromey <tromey@redhat.com>
604 * prims.cc (JNI_OnLoad): Don't declare.
605 (_JNI_OnLoad): Don't define.
606 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
608 2001-08-02 Tom Tromey <tromey@redhat.com>
610 * java/io/RandomAccessFile.java (seek): Let seek go past end of
612 (skipBytes): Don't fail if seeking past end of file.
613 * java/io/FileInputStream.java (skip): Don't fail if seeking past
615 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
617 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
619 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
621 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
623 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
625 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
626 to initialize global_ref_table/local_ref_table.
628 2001-08-02 Tom Tromey <tromey@redhat.com>
630 * configure: Rebuilt.
631 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
634 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
636 * include/posix.h (_POSIX_PII_SOCKET): Define.
637 * configure.in (HAVE_SOCKLEN_T): Define.
638 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
640 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
641 (java::net::PlainSocketImpl::accept): Use it.
642 Fixes PRs libgcj/3694, libgcj/3696.
644 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
645 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
646 * configure, include/config.h.in: Regenerate.
647 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
648 (mcastGrp): Likewise.
649 (java::net::PlainDatagramSocketImpl::setOption): Guard against
650 missing IPV6_MULTICAST_IF.
651 Fixes PR libgcj/3694.
653 2001-08-01 Jeff Sturm <jsturm@one-point.com>
655 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
657 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
659 * Makefile.in: Rebuilt.
660 * Makefile.am (GCJLINK): Added --tag=GCJ.
663 2001-07-30 Tom Tromey <tromey@redhat.com>
665 * java/util/Date.java: Re-merged with Classpath.
667 2001-07-30 Jeff Sturm <jsturm@one-point.com>
669 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
670 (_Jv_bind): New static function.
671 (bind): Use _Jv_bind.
672 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
673 (_Jv_bind, _Jv_connect): New static functions.
674 (bind): Use _Jv_bind.
675 (connect): Use _Jv_connect.
677 2001-07-30 Tom Tromey <tromey@redhat.com>
678 Corey Minyard <minyard@acm.org>
680 * gnu/gcj/convert/natIconv.cc (done): New methods.
681 * gnu/gcj/convert/Output_iconv.java (done): New method.
682 * gnu/gcj/convert/Input_iconv.java (done): New method.
683 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
685 (getDefaultEncodingClass): Removed.
686 (getDefaultEncoder): Use getEncoder.
688 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
690 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
692 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
694 (getDefaultDecodingClass): Removed.
695 (getDefaultDecoder): Use getDecoder.
696 (getDecoder): Look up decoder in cache.
698 * java/lang/natString.cc (init): Call `done' on converter.
699 (getBytes): Likewise.
701 2001-07-30 Tom Tromey <tromey@redhat.com>
703 * java/lang/Integer.java: Merged with Classpath.
705 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
707 * java/util/GregorianCalendar.java (GregorianCalendar): Call
708 setTimeInMillis() to set the default/current time.
710 2001-07-29 Mark Wielaard <mark@klomp.org>
712 * HACKING: add description on updating namespace
714 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
716 * java/util/Calendar.java (set): Never recompute fields here. They
717 will already be set if someone set time explicitly, and it can cause
718 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
719 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
720 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
722 * java/text/SimpleDateFormat.java (defaultCentury): New field.
723 (readObject): Call set2DigitYearStart if appropriate so that
724 defaultCentury is calculated.
725 (SimpleDateFormat): Don't bother clearing calendar here. Call
726 computeCenturyStart().
727 (set2DigitYearStart): Calculate and set defaultCentury.
728 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
730 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
731 2 numeric digits, use the 80-20 heuristic to parse the value into a
732 default century based on defaultCenturyStart.
733 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
735 2001-07-25 Tom Tromey <tromey@redhat.com>
737 * Makefile.in: Rebuilt.
738 * Makefile.am (libgcj.jar): Correctly fail when bytecode
741 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
743 * prims.cc (_JNI_OnLoad): New function.
744 (JNI_OnLoad): Use it.
745 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
747 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
749 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
750 Makefile.in: Regenerate.
752 2001-07-24 Tom Tromey <tromey@redhat.com>
754 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
757 2001-07-23 Tom Tromey <tromey@redhat.com>
759 * gcj/javaprims.h: Rebuilt class list.
760 * Makefile.in: Rebuilt.
761 * Makefile.am (core_java_source_files): Added VMClassLoader.
762 * java/lang/VMClassLoader.java: New file.
763 * java/lang/Boolean.java: Merged with Classpath.
764 * java/lang/Byte.java: Merged with Classpath.
765 * java/lang/Integer.java: Merged with Classpath.
766 * java/lang/Long.java: Merged with Classpath.
767 * java/lang/Number.java: Merged with Classpath.
768 * java/lang/Short.java: Merged with Classpath.
770 2001-07-22 Jeff Sturm <jsturm@one-point.com>
772 * configure.host: Enable hash synchronization for alpha*-*.
773 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
775 * java/lang/natObject.cc (compare_and_swap, release_set,
776 compare_and_swap_release): Added inline functions for alpha.
778 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
780 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
781 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
782 back to old RFC 2133 variants if missing.
784 2001-07-18 Tom Tromey <tromey@redhat.com>
786 * java/io/natFileWin32.cc (_access): Renamed.
788 * java/io/natFile.cc (_access): Renamed.
790 * java/io/File.java (access, stat): Add leading `_' to name.
793 2001-07-18 Tom Tromey <tromey@redhat.com>
796 * libgcj.spec.in (*lib): Added LIBICONV.
797 * configure: Rebuilt.
798 * configure.in: Call AM_ICONV. Don't check for iconv function.
799 Add parameters to JV_HASH_SYNCHRONIZATION define.
800 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
802 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
804 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
805 not by setting its size field.
807 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
809 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
812 2001-07-12 Tom Tromey <tromey@redhat.com>
813 David Brownell <david-b@pacbell.net>
815 Fix for PR libgcj/3426:
816 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
818 (read): Throw exception if character conversion fails.
819 * java/io/BufferedInputStream.java (refill): Now package-private.
820 * java/io/InputStreamReader.java (ready): Simplified.
821 (refill): New method.
824 2001-07-12 Tom Tromey <tromey@redhat.com>
826 Report from Henner Zeller:
827 * java/io/FileOutputStream.java (FileOutputStream): Throw
828 FileNotFoundException, not IOException.
830 2001-07-10 Anthony Green <green@redhat.com>
832 * Makefile.in: Rebuilt.
833 * Makefile.am: Add new files.
834 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
835 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
836 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
837 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
838 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
839 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
840 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
841 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
842 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
843 org/w3c/dom/ranges/DocumentRange.java,
844 org/w3c/dom/ranges/Range.java,
845 org/w3c/dom/ranges/RangeException.java,
846 org/w3c/dom/traversal/DocumentTraversal.java,
847 org/w3c/dom/traversal/NodeFilter.java,
848 org/w3c/dom/traversal/NodeIterator.java,
849 org/w3c/dom/traversal/TreeWalker.java,
850 org/xml/sax/ext/DeclHandler.java,
851 org/xml/sax/ext/LexicalHandler.java,
852 org/xml/sax/helpers/AttributeListImpl.java,
853 org/xml/sax/helpers/AttributesImpl.java,
854 org/xml/sax/helpers/DefaultHandler.java,
855 org/xml/sax/helpers/LocatorImpl.java,
856 org/xml/sax/helpers/NamespaceSupport.java,
857 org/xml/sax/helpers/ParserAdapter.java,
858 org/xml/sax/helpers/ParserFactory.java,
859 org/xml/sax/helpers/XMLFilterImpl.java,
860 org/xml/sax/helpers/XMLReaderAdapter.java,
861 org/xml/sax/helpers/XMLReaderFactory.java,
862 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
863 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
864 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
865 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
866 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
867 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
868 org/xml/sax/SAXNotRecognizedException.java,
869 org/xml/sax/SAXNotSupportedException.java,
870 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
871 org/xml/sax/XMLReader.java: New files.
873 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
875 * Makefile.am: Added `java/lang/ThreadLocal.java'.
876 * Makefile.in: Regenerate.
877 * java/lang/ThreadLocal.java: Initial import.
879 2001-07-07 Jeff Sturm <jsturm@one-point.com>
881 * Makefile.am (libgcj.jar): Don't recursively make
882 built_java_source_files. Avoid long command lines.
883 Don't change to $(srcdir) to invoke javac.
884 (libgcj.la, libgcjx.la); Avoid long command lines.
885 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
886 * Makefile.in: Rebuilt.
888 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
890 * include/i386-signal.h: Don't do anything with unsigned divide
891 overflow except throw an exception.
893 2001-07-05 Tom Tromey <tromey@redhat.com>
896 * java/lang/Class.h (Class(void)): Now private. Removed
897 implementation. From dmorsberger@sensysdl.com.
899 2001-07-02 Tom Tromey <tromey@redhat.com>
901 Fix for PR bootstrap/3281:
902 * aclocal.m4, configure: Rebuilt.
903 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
904 Correctly compute libgcj_basedir.
905 (mkinstalldirs): Define and subst.
907 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
910 * java/io/LineNumberReader.java (reset): Pass correct arguments to
913 2001-06-27 Tom Tromey <tromey@redhat.com>
915 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
918 2001-06-25 Tom Tromey <tromey@redhat.com>
920 * scripts/encodings.pl: Generate lower-case names. Updated URL
921 for `character-sets' file.
922 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
924 Rebuilt list of aliases.
926 2001-06-25 Tom Tromey <tromey@redhat.com>
928 * java/io/natFileDescriptorPosix.cc (open): Change error message
929 formatting. From David Brownell.
931 2001-06-21 Tom Tromey <tromey@redhat.com>
933 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
936 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
938 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
939 extraneous/malformed sign word.
941 2001-06-15 Tom Tromey <tromey@redhat.com>
943 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
945 2001-06-15 Tom Tromey <tromey@redhat.com>
947 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
948 NULL if no library on the list has the symbol.
949 (init): Call add_library on the program itself.
950 * prims.cc (JvRunMain): Initialize Runtime before searching for
952 (_Jv_RunMain): Likewise.
954 2001-06-15 Tom Tromey <tromey@redhat.com>
956 * jni.cc (ClassClass): Removed; updated all users.
957 (ObjectClass): Likewise.
958 (ThrowableClass): Likewise.
959 (MethodClass): Likewise.
960 (ThreadGroupClass): Likewise.
961 (local_ref_table): Renamed from `ref_table'.
962 (global_ref_table): New global.
963 (_Jv_JNI_Init): Initialize both ref tables.
964 (mark_for_gc): Added `ref_table' parameter.
965 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
967 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
968 (_Jv_JNI_DeleteGlobalRef): Likewise.
969 (_Jv_JNI_DeleteLocalRef): Likewise.
970 (_Jv_JNI_NewLocalRef): Likewise.
971 (_Jv_JNI_PopLocalFrame): Likewise.
972 (_Jv_JNI_GetStringChars): Likewise.
973 (_Jv_JNI_ReleaseStringChars): Likewise.
974 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
975 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
977 2001-06-14 Tom Tromey <tromey@redhat.com>
979 Fix for PR libgcj/3144:
980 * java/util/Date.java: Merged with Classpath.
982 2001-06-12 Tom Tromey <tromey@redhat.com>
984 * aclocal.m4, configure: Rebuilt.
985 * acinclude.m4: Find configure.host in srcdir.
987 2001-06-07 Tom Tromey <tromey@redhat.com>
989 Fix for PR libgcj/3059:
990 * java/lang/natSystem.cc (init_properties): Define `java.home'.
991 * Makefile.in: Rebuilt.
992 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
994 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
996 * exception.cc (cstdlib): Replaces stdlib.h.
997 (_Jv_Throw): Use std::abort().
998 (PERSONALITY_FUNCTION): Likewise.
1000 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1002 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1003 nothing, as in autoconf 2.50.
1004 * aclocal.m4, configure: Rebuilt.
1006 2001-06-08 Tom Tromey <tromey@redhat.com>
1008 * configure: Rebuilt.
1009 * configure.in: Compute new aux dir using `pwd'.
1011 2001-06-07 Tom Tromey <tromey@redhat.com>
1013 For PR bootstrap/3075:
1014 * configure, aclocal.m4, Makefile.am: Rebuilt.
1015 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1016 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1017 relative to libgcj_basedir.
1018 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1019 AC_CANONICAL_SYSTEM here.
1020 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1022 ($(extra_headers)): New target.
1024 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1025 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1027 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1028 table index is within allowed bounds. Ensure that we dont try to access
1029 class itable at a negative offset. Avoid an ancestor table lookup if
1030 source is a primitive type class.
1031 (isInstance): Remove redundant isPrimitive() check.
1033 2001-06-04 Tom Tromey <tromey@redhat.com>
1035 * java/security/PublicKey.java: Extend Key.
1036 * java/security/PrivateKey.java: Extend Key.
1038 2001-06-02 Anthony Green <green@redhat.com>
1040 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1041 alternate when USE_LTDL not defined.
1043 2001-06-02 Anthony Green <green@redhat.com>
1045 * configure: Rebuild.
1046 * configure.in: Remove data_start hack.
1047 * libgcj.spec.in: Ditto.
1048 * Makefile.in: Rebuild.
1049 * Makefile.am: Ditto.
1050 * libgcjdata.c: Remove.
1052 2001-06-02 Anthony Green <green@redhat.com>
1054 * configure: Rebuild.
1055 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1056 --without-libffi option. Tweak --disable-java-net processing.
1057 * Makefile.in: Rebuild.
1058 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1059 * include/config.h.in: Rebuild.
1060 * acconfig.h (USE_LIBFFI): Define.
1061 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1063 2001-06-02 Anthony Green <green@redhat.com>
1065 * configure: Rebuilt.
1066 * configure.in: Test for sigaction on native builds.
1067 * prims.cc: Check HAVE_SIGACTION.
1068 * include/config.h.in: Rebuilt.
1070 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1072 * natFile.cc (get_entry): Removed functions.
1073 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1074 Allocate enough storage for d_name if using readdir_r.
1076 2001-05-31 Tom Tromey <tromey@redhat.com>
1078 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1080 (write): Loop until write completes. From Corey Minyard.
1082 2001-05-29 Laurent Guerby <guerby@acm.org>
1084 * java/awt/geom/Rectangle2D.java: fix doc typo.
1086 2001-05-31 Tom Tromey <tromey@redhat.com>
1088 * java/sql/DriverManager.java (getDrivers): Handle case where
1089 driver's class loader is null. From Corey Minyard.
1091 2001-05-29 Tom Tromey <tromey@redhat.com>
1093 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1095 * configure: Rebuilt.
1096 * configure.in: Only add multilib support code if we just rebuilt
1099 2001-05-29 Andrew Haley <aph@redhat.com>
1101 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1102 pointer: the dwarf unwinder in libgcc will do everything that's
1104 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1105 more than we absolutely need to.
1106 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1107 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1109 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1111 * configure: Rebuilt.
1112 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1114 (SIGNAL_HANDLER): Use siginfo style handler.
1115 (INIT_SEGV): Likewise.
1116 (INIT_FPE): Likewise.
1117 * include/ppc-signal.h: Delete whole file.
1119 2001-05-24 Tom Tromey <tromey@redhat.com>
1121 * java/lang/natString.cc (init): Throw
1122 ArrayIndexOutOfBoundsException.
1123 (getChars): Likewise.
1124 (getBytes): Likewise.
1125 (valueOf): Likewise.
1127 * configure.in: Only allow hash synchronization when POSIX threads
1129 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1130 of sync info object.
1132 2001-05-23 Tom Tromey <tromey@redhat.com>
1134 * Makefile.in: Rebuilt.
1135 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1137 Revert patch of 2001-05-21:
1138 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1139 (libgcj_la_LIBADD): Likewise.
1140 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1141 (libgcjx_la_LIBADD): Likewise.
1143 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1144 * gcj/Makefile.in: Rebuilt.
1145 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1146 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1147 * gcj/libgcj-config.h.in: New file.
1148 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1149 * configure: Rebuilt.
1150 * configure.in: Enable hash synchronization by default on some
1152 (HASH_SYNC_SPEC): New subst.
1153 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1154 Correctly use `test -z' instead of `test -n' in a couple places.
1155 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1157 * configure.host (enable_java_net_default): Initialize.
1158 (enable_hash_synchronization_default): New variable.
1160 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1162 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1163 synchronization in use.
1164 (_Jv_MarkArray): Likewise.
1165 (_Jv_AllocBytes): Don't check return result.
1166 (handle_out_of_memory): New function.
1167 (_Jv_InitGC): Set GC_oom_fn.
1168 (trace_one_vtable): New global.
1169 (_Jv_AllocTraceOne): New function.
1170 * configure.in: Added --enable-hash-synchronization.
1171 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1172 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1173 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1174 (_Jv_AllocArray): Likewise.
1175 (_Jv_AllocBytes): Likewise.
1176 (_Jv_AllocPtrFreeObject): New function.
1177 (_Jv_AllocTraceOne): Likewise.
1178 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1180 (self_cache): New global.
1181 (_Jv_ThreadSelf_out_of_line): New function.
1182 * prims.cc (_Jv_AllocBytesChecked): Removed.
1183 (_Jv_ThrowNoMemory): New function.
1184 (_Jv_AllocObject): Don't check for null return from allocator.
1185 (_Jv_NewObjectArray): Likewise.
1186 (_Jv_AllocPtrFreeObject): New function.
1187 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1188 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1189 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1190 * include/boehm-gc.h (_Jv_AllocObj): Define.
1191 (_Jv_AllocPtrFreeObj): Define.
1192 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1193 (_Jv_ThrowNoMemory): Declare.
1194 (_Jv_AllocTraceOne): Declare.
1195 (_Jv_AllocBytesChecked): Removed.
1196 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1197 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1198 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1200 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1202 * java/lang/Object.h (sync_info): Conditional upon presence of
1203 hash synchronization.
1204 * java/lang/natObject.cc: Much new code to handle thin locks and
1205 hash synchronization.
1206 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1209 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1211 * gij.cc (version): Update copyright year.
1213 2001-05-22 Anthony Green <green@redhat.com>
1215 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1218 2001-05-21 Per Bothner <per@bothner.com>
1220 Implement invocation interface; don't create new thread for main.
1221 * java/lang/Thread.java (gen_name): Make native.
1222 (<init>(Thread,THreadGroup,Runnable,String)): New private
1223 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1224 * java/lang/natThread.cc (gen_name): New implementation.
1225 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1226 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1227 (_Jv_CreateJavaVM): New runtime initialization procedure.
1228 (runFirst): New proecdure - mostly code from old FirstThread::run.
1229 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1230 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1231 JvDetachCurrentThread): New inline wrappers.
1232 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1233 _Jv_DetachCurrentThread): New declarations.
1234 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1235 (getMain): new static method.
1236 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1237 by runFirst in prims.cc.
1238 (java/lang/Thread.h): Update for new invocation interface.
1239 * include/posix-threads.h (_Jv_ThreadRegister,
1240 _Jv_ThreadUnRegister): New declarations.
1241 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1242 (really_start): Use new _Jv_ThreadRegister.
1243 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1244 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1245 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1246 Complain of called when _Jv_OnlyThread already set.
1247 (_Jv_ThreadStart): Always JvFail.
1248 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1249 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1250 * win32-threads.cc (struct starter): Remove objet field -
1251 we use _Jv_Thread_t's new thread_obj field instead.
1252 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1253 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1254 (really_start): Use new _Jv_ThreadRegister.
1255 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1256 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1257 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1258 Removed - no longer needed with new invocation interface.
1259 * Makefile.am: Update for removed/added files.
1261 2001-05-21 Per Bothner <per@bothner.com>
1263 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1264 (libgcj_la_LIBADD): Likewise.
1265 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1267 2001-05-21 Per Bothner <per@bothner.com>
1269 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1270 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1271 taken from old Integer.toString code.
1272 (Integer::valueOf): Use _Jv_FormatInt.
1273 * java/lang/Integer.java (toString): Just use call String.valueOf.
1274 * java/lang/Long.java (toString): Fix typo in comment.
1275 * java/lang/String.java (valueOf(int)): Make native.
1276 * java/lang/StringBuffer.java (append(int)): Make native.
1277 * java/lang/natStringBuffer.cc: New file, for append(jint).
1278 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1280 2001-05-21 Tom Tromey <tromey@redhat.com>
1282 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1284 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1286 * include/dwarf2-signal.h: New file.
1287 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1288 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1289 * configure: Rebuilt.
1291 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1293 * configure.in: Update boehm-gc include dir for new GC version.
1294 * configure: Rebuilt.
1295 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1297 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1298 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1299 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1302 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1304 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1305 (_Jv_MutexInit): Likewise.
1307 2001-05-18 Tom Tromey <tromey@redhat.com>
1309 * Makefile.in: Rebuilt.
1310 * Makefile.am (awt_java_source_files): Added Polygon.java.
1312 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1314 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1315 * gcj/javaprims.h: ... here.
1316 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1318 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1320 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1321 with length of ioffset table.
1322 (_Jv_IsAssignableFrom): Likewise.
1324 2001-05-17 Per Bothner <per@bothner.com>
1326 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1328 2001-05-16 Tom Tromey <tromey@redhat.com>
1330 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1333 2001-05-15 Tom Tromey <tromey@redhat.com>
1335 * java/util/GregorianCalendar.java (computeTime): Only call
1338 2001-05-14 Tom Tromey <tromey@redhat.com>
1340 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1341 ZONE_OFFSET just before computing the time.
1343 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1345 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1346 * Makefile.in: Regenerate (by hand).
1347 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1348 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1350 2001-05-11 Richard Henderson <rth@redhat.com>
1352 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1353 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1355 2001-05-11 Richard Henderson <rth@redhat.com>
1357 * exception.cc: Include unwind-pe.h. Remove all pointer
1360 2001-05-10 Tom Tromey <tromey@redhat.com>
1362 * Makefile.in: Rebuilt.
1363 * Makefile.am (awt_java_source_files): Added Polygon.java.
1364 * java/awt/Polygon.java: New file.
1366 * java/awt/geom/AffineTransform.java
1367 (setToRotation(double,double,double)): New method.
1368 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1369 (setToShear): Likewise.
1371 2001-05-10 Tom Tromey <tromey@redhat.com>
1373 * java/util/GregorianCalendar.java: Imported from Classpath.
1374 * gnu/java/locale/LocaleInformation_nl.java: New file from
1376 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1377 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1378 * gnu/java/locale/LocaleInformation.java: Likewise.
1379 * natGregorianCalendar.cc: Removed.
1380 * Makefile.in: Rebuilt.
1381 * Makefile.am (nat_source_files): Removed
1382 natGregorianCalendar.cc.
1384 2001-05-10 Tom Tromey <tromey@redhat.com>
1386 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1388 (defaultCenturyStart): Use it.
1389 (readObject): Likewise.
1390 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1392 (parse): Copy the calendar before modifying it. Correctly handle
1395 * java/util/Calendar.java (clear): Set field value(s) to 0.
1397 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1399 * Calendar.java (get): Clear areFieldsSet if requested field
1401 (set): Unset fields that depend on new value.
1403 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1405 * java/lang/Class.h (_Jv_Self): New union type.
1406 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1407 Jeff Sturm and Fergus Henderson.
1409 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1411 * java/lang/ClassLoader.java: Remove dead code fragment.
1413 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1415 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1417 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1419 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1421 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1422 * configure.host (EXCEPTIONSPEC): New.
1423 * configure.in (EXCEPTIONSPEC): New.
1424 * configure: Rebuilt.
1426 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1428 * doc/*.texi: Remove generated documentation.
1430 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1432 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1433 (performDelete): Fix #endif placement.
1435 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1437 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1438 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1439 (_Jv_ThreadDestroyData): Use _Jv_Free.
1440 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1443 2001-04-27 Tom Tromey <tromey@redhat.com>
1445 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1447 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1449 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1451 * include/jni.h (struct JNINativeInterface): Fixed types in
1452 Get/Set*ArrayRegion declarations.
1453 (class _Jv_JNIEnv): Likewise.
1455 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1457 * configure.in: Obtain THREADS with `gcc -v'.
1458 * configure: Rebuilt.
1460 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1463 * java/io/ObjectStreamClass.java (setClass): Calculate
1464 serialVersionUID for local class and compare it against the UID
1465 from the Object Stream. Throw InvalidClassException upon mismatch.
1466 (setUID): Renamed to...
1467 (getClassUID): this. Return the calculated class UID rather than
1468 setting uid field directly.
1469 (getDefinedSUID): Removed.
1470 * java/io/ObjectInputStream.java (resolveClass): Use the
1471 three-argument Class.forName().
1472 * java/io/InvalidClassException (toString): Don't include classname in
1473 result if it is null.
1475 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1477 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1478 Wrap use of inet_pton in HAVE_INET6.
1480 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1482 java.security merge and ClassLoader compliance fixes.
1484 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1485 New protectionDomain field.
1486 (forName): Add initialize parameter. Fixes declaration to comply with
1488 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1489 variant. Honour "initialize" flag.
1490 (getProtectionDomain0): New method.
1491 * java/lang/Class.java: Fix forName() declaration.
1492 (getPackage): New method based on Classpath implementation.
1493 (getProtectionDomain0): New native method decl.
1494 (getProtectionDomain): New method.
1495 * java/lang/ClassLoader.java (getParent): Now final.
1496 (definedPackages): New field.
1498 (defineClass): New variant with protectionDomain argument.
1499 (definePackage): New.
1501 (findSystemClass): Now final.
1502 (getSystemResourceAsStream): Remove redundant "final" modifier.
1503 (getSystemResource): Remove redundant "final" modifier.
1504 (getResources): Now final.
1505 (protectionDomainPermission): New static field.
1506 (unknownProtectionDomain): Ditto.
1507 (defaultProtectionDomain): Ditto.
1508 (getSystemClassLoader): Now non-native.
1509 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1510 arguments for Class.forName().
1511 * java/lang/Package.java: New file.
1512 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1513 (instance): Static initialize singleton.
1514 (findClass): Override this, not findSystemClass.
1515 * java/lang/natClassLoader.cc (defineClass0): Set class's
1516 protectionDomain field as specified.
1517 (getSystemClassLoader): Removed.
1518 (findClass): Renamed from findSystemClass. Call the interpreter via
1519 URLClassLoader.findClass if loading class via dlopen fails.
1521 * java/security/*.java: java.security import/merge with Classpath.
1522 * java/security/acl/*.java: Likewise.
1523 * java/security/interfaces/*.java: Likewise.
1524 * java/security/spec/*.java: Likewise.
1525 * java/net/NetPermission.java: Likewise.
1526 * java/net/SocketPermission.java: Likewise.
1527 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1529 * Makefile.am: Add new classes.
1530 * Makefile.in: Rebuilt.
1531 * gcj/javaprims.h: CNI namespace rebuild.
1533 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1535 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1536 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1537 * configure: Rebuilt.
1539 2001-04-21 Tom Tromey <tromey@redhat.com>
1541 * Makefile.in: Rebuilt.
1542 * Makefile.am (awt_java_source_files): Added Line2D.java.
1543 * java/awt/geom/Line2D.java: Wrote.
1545 * java/awt/Menu.java (addNotify): Wrote.
1547 * java/awt/PopupMenu.java (addNotify): Implemented.
1550 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1551 * java/awt/List.java (addNotify): Call super.addNotify.
1552 * java/awt/Label.java (addNotify): Call super.addNotify.
1553 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1554 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1555 * java/awt/Choice.java (addNotify): Call super.addNotify.
1556 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1557 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1559 * java/awt/List.java (replaceItem): Notify peer.
1561 * java/awt/geom/Rectangle2D.java
1562 (Float.setRect(float,float,float,float)): New method.
1564 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1567 * java/awt/RenderingHints.java (Key): Class now public.
1569 * java/awt/Rectangle.java (Rectangle): Now implements
1571 (getPathIterator): Removed.
1573 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1576 * java/awt/FileDialog.java: Wrote.
1578 * java/awt/EventQueue.java (isDispatchThread): Now public.
1579 (invokeLater): Likewise.
1581 * java/awt/Component.java (setCursor): Update peer.
1582 (getFontMetrics): Use peer.
1584 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1587 2001-04-20 Tom Tromey <tromey@redhat.com>
1589 * java/awt/List.java: Wrote.
1590 * java/awt/Dialog.java: Wrote.
1592 2001-04-20 Warren Levy <warrenl@redhat.com>
1594 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1595 * java/text/SimpleDateFormat.java
1596 (indexInArray): Removed private method.
1597 (processYear): Removed private method.
1598 (parseLenient): Removed private method.
1599 (parseLeadingZeros): Removed private method.
1600 (parseStrict): Removed private method.
1601 (expect): Added new private method.
1602 (parse): Reverted to pre-Classpath merge version with minor fixes.
1603 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1606 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1608 * java/io/File.java (normalizePath): New private method.
1609 (File (String)): Use normalizePath().
1610 (File (String, String)): Likewise.
1612 * Makefile.am (libffi_files): Removed.
1613 (libgcj.la): Link libffi as a convenience library instead of
1614 refering to its object files directly.
1615 * Makefile.in: Rebuilt.
1617 2001-04-08 Per Bothner <per@bothner.com>
1619 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1620 Recalculate hash, since Utf8Const's hash is only 16 bits.
1622 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1623 bits of hash to calculate step for chaining.
1625 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1626 when 2/3 full, rather than 3/4 full.
1628 2001-04-06 Tom Tromey <tromey@redhat.com>
1630 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1631 (wrap_value<T*>): New specialization.
1632 (_Jv_JNI_PopLocalFrame): Update env->locals.
1634 2001-04-05 Tom Tromey <tromey@redhat.com>
1636 * libtool-version: Updated current.
1638 2001-04-04 Andreas Jaeger <aj@suse.de>
1640 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1641 * gcj/Makefile.in: Rebuilt.
1642 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1643 * Makefile.in: Rebuilt.
1644 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1645 * testsuite/Makefile.in: Rebuild.
1646 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1647 * include/Makefile.in: Rebuild.
1649 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1651 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1652 compiled test', not 'execution from source compiled test'.
1653 Use UNTESTED, not XFAIL, for tests which are not run because
1654 they depend on a previous test which failed.
1656 2001-04-02 Richard Henderson <rth@redhat.com>
1658 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1659 the same tree as gcc.
1660 * configure: Rebuilt.
1662 * exception.cc (_Jv_Throw): Clarify commentary.
1664 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1666 * jni.cc (wrap_value<jclass>): New specialization.
1668 2001-04-02 Tom Tromey <tromey@redhat.com>
1670 * java/io/PrintStream.java (out): Removed field. Fixes PR
1672 (write): Call flush, not out.flush, per spec.
1673 (close): Flush output stream, per spec. Handle
1674 InterruptedIOException.
1675 (checkError): Likewise.
1676 (flush, print, write): Handle InterruptedIOException per spec.
1677 (PrintStream): Don't create BufferedOutputStream.
1678 (work_bytes): New field.
1679 (writeChars): Use work_bytes. Don't assume `out' is a
1680 BufferedOutputStream.
1682 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1684 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1687 2001-03-30 Tom Tromey <tromey@redhat.com>
1689 * jni.cc (add_char): Correctly encode non-ascii characters.
1690 (add_char): Define even when INTERPRETER not defined.
1691 (mangled_name): Likewise.
1692 (_Jv_GetJNIEnvNewFrame): Likewise.
1693 (_Jv_LookupJNIMethod): Likewise.
1695 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1697 * configure.host: Enable interpreter for PPC.
1699 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1701 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1702 to "file.separator", "path.separator", and "java.io.tmpdir" property
1704 * java/io/File.java: Likewise.
1705 * java/io/natFile.cc (init_native): Likewise.
1706 * java/io/natFileWin32.cc (init_native): Likewise.
1708 2001-04-01 Per Bothner <per@bothner.com>
1710 * java/lang/natString.cc (intern): If string's data does not point to
1711 this String, make a fresh String that does.
1713 * java/lang/natString.cc (unintern): Replace by static function.
1714 * java/lang/String.java (unintern): Remove method.
1716 2001-04-01 Per Bothner <per@bothner.com>
1718 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1719 (finish): def.deflate needs to be called in a loop.
1720 (inbuf, inbufLength): New private fields.
1721 (write(int)): Use inbuf.
1722 (write(byte[],int,int): Check if pending output in inbuf.
1723 * ZipOutputStream.java: Don't use Deflater if stored.
1724 Use a Checksum object directly, not via a CheckedOutputStream.
1725 (uncompressed_size): New field,
1726 (closeEntry): Only write data_directory if needed.
1727 (write): If STORED, write directly.
1728 Always update crc, and uncompressed_size.
1729 (write_entry): Fix lots of protocol erors.
1731 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1733 1.3-Compliant Implementation of java.io.File.
1734 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1735 "path.separator", and "java.io.tmpdir" from the File class, instead
1736 of setting them explicitly.
1737 * java/io/File.java: Do not canonicalize paths for security manager
1738 checks. Call init_native() from static initializer. Do not pass path
1739 argument to native methods. New native method declarations. Some
1740 security manager checks moved to checkWrite().
1741 (equals): Check file system case sensitivity and act appropriatly.
1742 (hashCode): Likewise.
1743 (isHidden): New method implemented.
1744 (performList): Changed prototype. Now takes a class argument specifying
1745 the class of the returned array: Strings or File objects. Also added
1746 FileFilter argument.
1747 (listFiles): New variants with "File" return type implemented.
1748 (createTempFile): Use createNewFile(). Use maxPathLen.
1749 (setReadOnly): New method implemented.
1750 (listRoots): Likewise.
1751 (compareTo): Likewise.
1752 (setLastModified): Likewise.
1753 (checkWrite): New method.
1755 * java/io/natFile.cc: Various functions no longer take canonical path
1757 (stat): Handle ISHIDDEN query.
1758 (isAbsolute): Remove WIN32 cruft.
1759 (performList): New arguments. Handle returning either File[] or String[]
1760 arrays. Check with FileFilter or FilenameFilter arguments as
1761 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1762 (performSetReadOnly): New method implemented.
1763 (performListRoots): Likewise.
1764 (performSetLastModified): Likewise.
1765 (performCreate): Likewise.
1766 (init_native): New initialization function.
1767 * java/io/natFileWin32.cc: Various functions no longer take canonical
1769 (stat): Add FIXME about ISHIDDEN query.
1770 (performList): New arguments. Handle returning either File[] or String[]
1771 arrays. Check with FileFilter or FilenameFilter arguments as
1772 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1773 (performSetReadOnly): New. Stubbed.
1774 (performListRoots): Likewise.
1775 (performSetLastModified): Likewise.
1776 (performCreate): Likewise.
1777 (init_native) New initialization function.
1778 * configure.in: Check for utime() and chmod().
1779 * configure: Rebuilt.
1780 * include/config.h.in: Rebuilt.
1782 Resolves PR libgcj/1759.
1784 2001-03-28 Richard Henderson <rth@redhat.com>
1786 IA-64 ABI Exception Handling:
1787 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1788 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1789 Remove EXCEPTIONSPEC.
1790 * configure.host (libgcj_sjlj): Remove.
1791 * configure.in (EXCEPTIONSPEC): Remove.
1792 (enable-sjlj-exceptions): Detect if not specified.
1793 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1794 what header we're looking for.
1795 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1796 * Makefile.in, configure: Regenerate.
1797 * exception.cc: Don't declare libgcc2 stuff.
1798 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1799 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1800 (win32_get_restart_frame): Remove.
1801 (struct java_exception_header): New.
1802 (__gcj_exception_class): New.
1803 (get_exception_header_from_ue): New.
1804 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1805 (size_of_encoded_value, read_encoded_value): New.
1806 (read_uleb128, read_sleb128, parse_lsda_header): New.
1807 (get_ttype_entry, __gcj_personality_sj0): New.
1808 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1810 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1812 * javax/naming/InitialContext.java (init): Fix typo.
1813 (composeName): Remove unnecessary semicolon.
1814 (addToEnvironment): Remove unnecessary semicolon.
1815 (addToEnvironment): Use put() instead of add().
1817 * javax/naming/InitialContext.java (InitialContext):
1819 (destroySubcontext): Method doesn't return a result.
1820 * javax/naming/Context.java: Import java.util.Hashtable.
1821 * javax/naming/Name.java: Import java.util.Enumeration.
1823 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1825 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1826 objects in subdirectories.
1827 * Makefile.in: Rebuilt.
1829 2001-03-25 Richard Henderson <rth@redhat.com>
1831 * exception.cc (java_eh_info): Make value type jthrowable.
1832 (_Jv_type_matcher): Remove now unneeded cast.
1833 (_Jv_Throw): Make argument type jthrowable. Munge name
1834 for SJLJ_EXCEPTIONS here ...
1835 * gcj/cni.h: ... not here.
1837 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1839 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1840 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1841 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1842 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1843 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1844 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1845 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1846 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1847 java/lang/natDouble.cc, java/lang/natObject.cc,
1848 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1849 java/lang/natString.cc, java/lang/natSystem.cc,
1850 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1851 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1852 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1853 java/util/zip/natInflater.cc:
1854 Use throw, not JvThrow or _Jv_Throw.
1856 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1858 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1859 paramater, bump it to 1.
1860 * java/util/Hashtable.java (Hashtable): Likewise.
1862 2001-03-23 Per Bothner <per@bothner.com>
1864 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1865 check for errors, since we don't want to throw exception on
1866 overflow/underflow. Instead, trim whitespace, and then check that
1867 _strtod_r uses up all the rest of the string.
1869 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1870 ancestors array is invalid for interfaces, so do that *after*
1871 check that the target type is not an interface.
1873 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1875 * prims.cc (_Jv_FindClassFromSignature): Check return of
1876 recursive call. Do not abort on invalid signature; return NULL
1879 2001-03-22 Tom Tromey <tromey@redhat.com>
1881 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1882 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1884 * include/jvm.h (_Jv_ResolveField): Declare.
1885 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1886 * resolve.cc (_Jv_ResolveField): No longer conditional on
1889 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1891 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1892 for libtool hacking.
1893 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1894 to a temporary file, then invoke libtool with the -objectlist
1896 (libgcjx.la): Likewise.
1897 * Makefile.in: Rebuilt.
1899 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1901 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1903 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1905 * jni.cc (add_char): Handle `.' like `/'.
1907 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1909 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1910 initialize if exception_types is null.
1911 * java/lang/reflect/Constructor.java: Likewise.
1912 * java/lang/reflect/natConstructor.cc (getType): Initialize
1913 exception_types to an empty Object array.
1915 2001-03-21 Tom Tromey <tromey@redhat.com>
1917 * configure: Rebuilt.
1918 * configure.in (GCJFLAGS): Subst.
1919 * Makefile.in: Rebuilt.
1920 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1921 (gij_LDFLAGS): Likewise.
1922 (JC1FLAGS): Added GCJFLAGS and removed -g.
1924 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1925 read/write case. Fixes PR libgcj/2338.
1927 2001-03-20 Warren Levy <warrenl@redhat.com>
1929 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1930 and corrected SimpleTimeZone's for the timezones hash table.
1932 2001-03-19 Per Bothner <per@bothner.com>
1934 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1935 "canonicalize" "../../xxx" to "/xxx".
1937 2001-03-19 Mark Wielaard <mark@klomp.org>
1939 * java/util/ArrayList.java: Remove RCS keywords from comments
1940 * java/util/BasicMapEntry.java: idem
1941 * java/util/Dictionary.java: idem
1942 * java/util/HashSet.java: idem
1944 * java/util/EventObject.java: reindent
1945 * java/util/Properties.java: idem
1946 * java/util/SortedMap.java: idem
1948 * java/util/Enumeration.java: Merge with Classpath
1949 * java/util/EventListener.java: idem
1950 * java/util/Observable.java: idem
1951 * java/util/Observer.java: idem
1952 * java/util/Stack.java: idem
1954 2001-03-17 Tom Tromey <tromey@redhat.com>
1956 * java/lang/natString.cc (rehash): Don't bother with memset;
1957 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1959 (UNMASK_PTR): New macro.
1960 (intern): Unmask pointer before returning it. Register finalizer
1962 (unintern): Handle case where
1963 (MASK_PTR): New macro.
1964 (PTR_MAKSED): Likewise.
1965 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1967 2001-03-01 Andrew Haley <aph@redhat.com>
1969 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1970 stackTrace buffer to a correctly aligned pointer array.
1972 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1974 * java/lang/Runtime.java (_exit): Declare new package-private native.
1975 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1976 without a security manager check.
1977 (exit): Call _exit after security check.
1978 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1980 * java/lang/System.java (setSecurityManager): If a security manager
1981 is already in place, call checkPermission.
1982 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1983 throws an exception, try to deal with it gracefully.
1984 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1985 Only try to print the subordinate stack trace if "exception" is set.
1986 Print our class name first.
1988 2001-03-08 Tom Tromey <tromey@redhat.com>
1990 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1991 info for array classes.
1992 Fixes PR libgcj/1971.
1994 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1996 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1999 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2001 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2002 instead of the new JDK1.2 API. This is simpler and makes
2003 back-porting the classes to JDK1.1 trivial.
2004 (readObject): likewise.
2006 2001-03-01 Per Bothner <per@bothner.com>
2008 Changes merged from Kawa's gnu.math.
2009 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2010 (rshift(int[],int[],int,int): Removed - not needed.
2011 (gcd): Use rshift0 rather than rshift.
2012 * java/math/BigInteger.java (setShiftRight): Likewise.
2013 (divide): Simplify by using rshift0.
2014 (divide): Zero-extend results if high-order bit set.
2016 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2018 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2021 2001-02-23 Per Bothner <per@bothner.com>
2023 Change to sometimes include class name in ClassFormatError message.
2024 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2025 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2026 boolean instead of throwing ClassFormatError on failure.
2027 (throw_class_format_error): Change static function to method.
2028 (_Jv_ClassReader): New inline methods verify_identifier,
2029 two overloads of verify_classname, verify_field_signature, and
2030 verify_method_signature
2031 * include/java-interp.h: Update declarations to return bool.
2032 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2033 ClassFormatError since _Jv_VerifyClassName now returns bool.
2035 2001-02-23 Per Bothner <per@bothner.com>
2037 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2038 c++filt to select java-style output.
2040 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2042 Fix for PR java/2040:
2043 * java/util/HashMap.java (HashMap): Don't throw exception for
2044 loadFactor > 1. Add exception messages.
2045 * java/util/Hashtable.java (Hashtable): Likewise.
2047 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2049 Disable libgcjx by default.
2050 * configure.in: Add support for --enable-java-awt configure option.
2051 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2052 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2053 * Makefile.in: Rebuilt.
2054 * configure: Rebuilt.
2056 2001-02-20 Tom Tromey <tromey@redhat.com>
2058 * java/io/PipedWriter.java (flush): Throw exception if stream
2060 * java/io/OutputStreamWriter.java (write): Throw exception if
2062 (writeChars): Don't throw exception if stream closed.
2063 * java/io/CharArrayWriter.java (closed): New field.
2065 (flush): Throw exception if stream closed.
2066 (reset): Synchronize on correct lock. Allow stream to be
2068 (toCharArray, toString, writeTo): Synchronize.
2069 (write): Throwe exception if stream closed.
2070 * java/io/BufferedWriter.java (close): Clear `buffer'.
2071 (flush): Throw IOException if stream is closed.
2074 2001-02-16 Tom Tromey <tromey@cygnus.com>
2076 * java/lang/ThreadGroup.java (activeCount): Only include threads
2078 (enumerate): Likewise.
2080 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2082 * java/lang/Integer.java (getInteger): Return default argument if
2083 property is not set. Don't call decode with null argument.
2084 * java/lang/Long.java (getLong): Likewise.
2086 * java/io/CharArrayReader.java (CharArrayReader): Throw
2087 IllegalArgumentException if constructor arguments are illegal.
2088 (ready): Return false if no more characters can be read.
2089 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2091 2001-02-17 Mark Wielaard <mark@klomp.org>
2093 * java/util/TimerTask.java: New version from Classpath.
2095 2001-02-17 Mark Wielaard <mark@klomp.org>
2097 Remerge with Classpath
2098 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2099 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2100 (readByte): Use convertToByte().
2101 (readChar): Use convertToChar().
2102 (readInt): Use convertToInt().
2103 (readLong): Use convertToLong().
2104 (readShort): Use convertToShort().
2105 (readUnsignedByte): Use convertToUnsignedByte().
2106 (readUnsignedShort): Use convertToUnsignedShort().
2107 (readUTF): Use convertToUTF().
2109 (convertToBoolean): Resurrected.
2110 (convertToByte): Ditto.
2111 (convertToChar): Ditto.
2112 (convertToInt): Ditto.
2113 (convertToLong): Ditto.
2114 (convertToShort): Ditto.
2115 (convertToUnsignedByte): Ditto.
2116 (convertToUnsignedShort): Ditto.
2117 (convertToUTF): Ditto.
2119 2001-02-17 Mark Wielaard <mark@klomp.org>
2123 2001-02-17 Mark Wielaard <mark@klomp.org>
2125 * java/io/DataInputStream.java: update copyright notice
2126 * java/io/PrintWriter.java: idem
2127 * java/io/Reader.java: idem
2128 * java/io/StreamTokenizer.java: idem
2129 * java/io/StringReader.java: idem
2130 * java/lang/reflect/ReflectPermission.java: idem
2132 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2134 * java/util/TreeSet.java (clone): Made subclass safe, use
2135 super.clone(), not new.
2136 * java/util/TreeMap.java (clone): Likewise.
2138 * java/util/TreeMap.java (nil): Made non-final.
2139 (clone): Create new nil node for copy.
2141 * java/util/HashSet.java (clone): Made subclass safe, use
2142 super.clone(), not new.
2144 2001-02-14 Andrew Haley <aph@redhat.com>
2146 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2149 2001-02-15 Anthony Green <green@redhat.com>
2151 * defineclass.cc: Don't include alloca.h.
2152 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2153 * interpret.cc (run_normal): Ditto.
2155 * java/lang/natDouble.cc (parseDouble): Ditto.
2157 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2159 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2161 * java/util/Collections.java (ReverseComparator): New static class.
2162 (reverseOrder): Return static instance of ReverseComparator.
2164 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2165 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2166 Rectangle.clone(), not Object.clone().
2168 * java/util/HashSet.java (clone): Remove try/catch.
2170 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2171 * java/util/Collection.java: Likewise.
2172 * java/util/Comparator.java: Likewise.
2173 * java/util/Dictionary.java: Likewise.
2174 * java/util/Iterator.java: Likewise.
2175 * java/util/ListIterator.java: Likewise.
2176 * java/util/Map.java: Likewise.
2177 * java/util/Set.java: Likewise.
2179 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2181 * java/util/TreeMap.java: New file.
2182 * java/util/TreeSet.java: New file.
2183 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2184 * Makefile.in: Rebuilt.
2185 * java/util/HashSet.java (clone): Use constructor instead of calling
2187 * java/util/SortedSet.java: Sync with classpath.
2188 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2191 * java/lang/natClass.cc (getSignature): Don't try to dereference
2192 param_types if it is null. Instead, take this to mean "no parameters".
2193 * java/lang/TreeMap.java (TreeIterator.next): Throw
2194 NoSuchElementException in preference to ConcurrentModificationException.
2195 (TreeIterator.remove): Throw IllegalStateException in preference to
2196 ConcurrentModificationException.
2197 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2198 throw a NoSuchElementException.
2199 (SubMap.lastKey): Likewise.
2201 2001-02-13 Tom Tromey <tromey@redhat.com>
2203 * java/io/PipedReader.java (ready): Throw IOException if pipe
2205 * java/io/FilterReader.java (close): Don't clear `in'.
2206 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2208 (read, ready, reset, skip): Added exception message.
2209 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2210 Perform checkStatus check inside synchronized block.
2212 2001-02-13 Tom Tromey <tromey@redhat.com>
2214 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2216 2001-02-13 Tom Tromey <tromey@redhat.com>
2218 Fix for PR libgcj/1351:
2219 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2221 Include Thread.h and InterruptedIOException.h.
2223 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2225 * java/io/BlockDataException.java: Removed.
2226 * java/io/ObjectInputStream.java (readObject): Throw
2227 StreamCorruptedException, not BlockDataException.
2228 * Makefile.am: Remove BlockDataException.
2229 * Makefile.in: Rebuild.
2231 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2232 Tom Tromey <tromey@redhat.com>
2234 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2237 2001-02-09 Tom Tromey <tromey@redhat.com>
2239 * java/util/Timer.java: New version from Classpath.
2241 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2243 * java/lang/Double.java (doubleToRawLongBits): Now native.
2244 * java/lang/Float.java (floatToRawIntBits): Likewise.
2245 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2246 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2248 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2250 * java/io/File.java (java.net): Imported.
2251 (getAbsoluteFile): Added.
2252 (getCanonicalPath): Likewise.
2255 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2257 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2258 * java/lang/Integer.java: Likewise.
2259 * java/lang/Long.java: Likewise.
2260 * java/lang/Short.java: Likewise.
2261 * java/lang/Double.java: Likewise.
2262 (doubleToRawLongBits): New method.
2263 * java/lang/Float.java: As above.
2264 (floatToRawIntBits): New method.
2266 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2267 IOException if stream closed.
2269 2001-02-08 Tom Tromey <tromey@redhat.com>
2271 * java/lang/Float.java (parseFloat): New method.
2273 2001-02-08 Tom Tromey <tromey@redhat.com>
2275 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2276 * java/io/InputStreamReader.java (ready, read): Throw IOException
2277 if stream has been closed.
2279 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2281 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2282 Change sources.redhat.com and sourceware.cygnus.com references to
2285 2001-02-07 Tom Tromey <tromey@redhat.com>
2287 Fix for PR libgcj/1906:
2288 * java/text/MessageFormat.java (setLocale): Use named class
2291 (format(Object,StringBuffer,FieldPosition)): Special case if
2292 argument is an Object[].
2294 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2296 * java/util/Arrays.java: Removed "cmp" methods.
2297 (qsort): Don't use "cmp".
2300 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2302 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2303 sort. Fix for PR java/1895.
2305 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2307 * configure.host: Use sjlj-exceptions for Alpha.
2309 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2311 * libgcj.spec.in: Don't force static libgcc into the executable.
2312 * configure.in (FORCELIBGCCSPEC): Removed.
2313 * configure: Rebuilt.
2315 2001-01-31 Tom Tromey <tromey@redhat.com>
2317 * Makefile.in: Rebuilt.
2318 * Makefile.am (LTCXXCOMPILE): New macro.
2320 2001-01-26 Andrew Haley <aph@redhat.com>
2322 (INIT_FPE): Use a direct system call to set the handler.
2324 2001-01-27 Richard Henderson <rth@redhat.com>
2326 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2328 2001-01-27 Tom Tromey <tromey@redhat.com>
2330 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2331 native interface structure.
2333 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2335 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2337 (read (byte[], int, int)): Only call readNextBlock() if the block
2338 buffer would actually be overrun. Increment blockDataPosition.
2339 (callReadMethod): Propagate exceptions from invocation target.
2340 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2341 exceptions from invocation target.
2343 2001-01-26 Tom Tromey <tromey@redhat.com>
2345 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2346 to internal representation.
2347 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2348 _Jv_FindClassFromSignature.
2350 2001-01-26 Warren Levy <warrenl@redhat.com>
2352 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2353 and timezone if they are available on the system.
2355 2001-01-24 Tom Tromey <tromey@redhat.com>
2357 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2359 2001-01-24 Tom Tromey <tromey@redhat.com>
2361 * Makefile.in: Rebuilt.
2362 * Makefile.am (c_source_files): Added sf_fabs.c.
2363 * java/lang/sf_fabs.c: New file.
2365 2001-01-19 Warren Levy <warrenl@redhat.com>
2367 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2368 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2369 correctly. Adjust properly from 0-23 clock hour.
2371 2001-01-17 Mark Wielaard <mark@klomp.org>
2373 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2375 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2377 * java/lang/Class.h (isInterface): Move implementation from
2378 natClass.cc. Declare inline.
2379 (Class): Add default constructor.
2380 * java/lang/Object.h: Update comments.
2381 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2382 initialize superclass, saving a call if super is already initialized.
2384 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2386 * prims.cc (init_prim_class): Deleted.
2387 (DECLARE_PRIM_TYPE): Rewritten.
2388 * java/lang/Class.h (stdio.h): Include removed.
2389 (stddef.h): Included.
2390 (java/lang/reflect/Modifier.h): Likewise.
2391 (Class): Contructor now takes arguments, initializes fields.
2392 (initializePrim): Prototype deleted.
2393 * java/lang/natClass.cc (initializePrim): Deleted.
2395 2001-01-16 Warren Levy <warrenl@redhat.com>
2397 * java/math/BigInteger.java: Update Copyright year.
2399 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2401 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2404 2001-01-14 Mark Wielaard <mark@klomp.org>
2405 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2406 (decode): Merge comments with Classpath, don't throw Exception
2408 2001-01-12 Tom Tromey <tromey@redhat.com>
2410 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2414 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2415 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2416 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2417 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2418 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2420 * java/lang/natSystem.cc: Include locale.h if it exists.
2421 * configure: Rebuilt.
2422 * configure.in: Check for locale.h.
2424 2001-01-11 Tom Tromey <tromey@redhat.com>
2426 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2427 (Cursor(int), getPredefinedCursor): Throw exception if argument
2430 2001-01-03 Tom Tromey <tromey@redhat.com>
2432 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2433 (getLocationOnScreen): Wrote.
2435 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2437 * Makefile.am: Re-enable dependencies.
2438 * Makefile.in: Rebuilt.
2440 2001-01-10 Warren Levy <warrenl@redhat.com>
2442 * java/math/BigDecimal.java (divide): Fixed comment.
2444 2001-01-10 Warren Levy <warrenl@redhat.com>
2446 Fix for PR libgcj/1596:
2447 * java/math/BigDecimal.java (divide): Check newScale for validity.
2448 Ensure that BigInteger.pow() is called with a non-negative value.
2449 (setScale (int)): New public method.
2450 (setScale (int,int)): New public method.
2452 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2454 Fix for PR libgcj/1338:
2455 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2456 commentChar. Fixed typos in comments.
2458 2001-01-08 Warren Levy <warrenl@redhat.com>
2460 Fix for PR libgcj/1411:
2461 * Makefile.am: Removed java/util/natTimeZone.cc.
2462 * Makefile.in: Rebuilt.
2463 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2464 missing localized timezone names.
2465 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2466 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2467 (init_properties): Set user.timezone property.
2468 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2469 default timezone names; removed non-standard ones. Use standard
2471 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2473 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2475 (getDefaultTimeZoneId): Removed.
2477 * java/util/natTimeZone.cc: Removed.
2479 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2481 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2482 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2483 (_Jv_GetArrayClass): New inline function.
2484 (arrayclass): New field.
2485 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2486 _Jv_GetArrayElementFromElementType.
2487 (_Jv_NewPrimArray): Ditto.
2488 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2489 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2490 Set Modifier::ABSTRACT.
2491 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2492 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2493 Now synchronized. Array classes are now referenced from
2494 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2495 Set array classes' accessibility flags correctly. Optimize so that
2496 all array classes share the same IDT.
2497 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2498 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2499 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2500 in superclasses from overwriting classes own fields.
2501 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2502 Modifier::isAbstract().
2503 (null_idt): New static field.
2504 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2506 (_Jv_IndexOf): Made inline.
2507 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2509 2001-01-08 Tom Tromey <tromey@redhat.com>
2511 Fix for PR java/1586:
2512 * Makefile.in: Rebuilt.
2513 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2515 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2517 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2518 from the c++ compiler.
2519 * Makefile.in: Rebuilt.
2521 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2523 All files with updated copyright.
2524 * prims.cc (class _Jv_PrimClass): Removed.
2525 (init_prim_class): New function.
2526 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2527 `_Jv_PrimClass' in primitive type declarations. Assign to the
2528 value returned by `init_prim_class.'
2529 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2530 primitive type declarations.
2531 (JvPrimClass): Cast to `jclass' removed.
2532 * java/lang/Class.h (Class): New constructor.
2533 (Class): New copy constructor.
2534 (initializePrim): New prototype.
2535 (_Jv_PrimClass): Field removed.
2536 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2537 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2538 (class java::lang::Object): `finalize' moved up front.
2539 * java/lang/natClass.cc
2540 (isAssignableFrom): Turned outline.
2541 (isInstance): Likewise.
2542 (isInterface): Likewise, fixed indentation.
2543 (initializePrim): New function.
2545 2001-01-07 Anthony Green <green@redhat.com>
2547 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2549 * Makefile.in: Rebuilt.
2551 * scripts/TexinfoDoclet.java: New file.
2553 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2554 doc/java-awt-color.texi, doc/java-lang.texi,
2555 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2556 doc/java-awt-event.texi, doc/java-net.texi,
2557 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2558 doc/java-awt-image.texi, doc/java-security.texi,
2559 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2560 doc/java-text.texi, doc/java-beans-beancontext.texi,
2561 doc/java-util-jar.texi, doc/java-beans.texi,
2562 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2563 doc/java-lang-ref.texi: New files.
2565 2001-01-07 Anthony Green <green@redhat.com>
2567 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2568 be used for both input and output, so don't clear doInput.
2570 * java/lang/StringBuffer.java: Fix comments.
2572 2001-01-06 Anthony Green <green@redhat.com>
2574 * java/beans/PropertyDescriptor.java: Fix comment.
2575 * java/io/PushbackReader.java: Fix comment.
2576 * java/io/ObjectStreamClass.java: Fix comment.
2577 * java/io/DataInputStream.java: Fix comment.
2578 * java/io/PipedInputStream.java: Fix comments.
2579 * java/io/PipedReader.java: Fix comments.
2580 * java/sql/DatabaseMetaData.java: Fix comments.
2582 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2584 * java/io/PipedReader: Synchronize on "lock" instead of this.
2586 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2588 * java/lang/Thread.java: Update comment.
2590 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2591 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2592 * java/io/PipedReader: New implementation based on new
2594 * java/io/PipedWriter: Updated to match new PipedReader.
2596 2001-01-03 Tom Tromey <tromey@redhat.com>
2598 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2599 (getViewportSize): Insets include scrollbar size.
2600 (doLayout): Finished.
2601 (getScrollPosition): Wrote.
2602 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2604 2001-01-02 Tom Tromey <tromey@redhat.com>
2606 * java/awt/ScrollPane.java: Wrote.
2607 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2610 * java/awt/Panel.java (Panel()): Fixed.
2612 * java/awt/Component.java (isShowing): Return false if no peer
2613 exists, and true if component is visible and no parent exists.
2614 (getLocationOnScreen): Wrote.
2615 (getPreferredSize): Removed FIXME comment.
2616 (getMinimumSize): Likewise.
2617 (getAlignmentX, getAlignmentY): Wrote.
2619 (requestFocus): Wrote.
2620 (transferFocus): Wrote.
2621 (findNextFocusComponent): New method.
2622 (hasFocus()): Wrote.
2623 (checkImage): Wrote.
2624 (enableEvents): Call setEventMask on the peer.
2626 * java/awt/Container.java (list): Use super.list() to print self.
2627 (findNextFocusComponent): New method.
2628 (setLayout): Call invalidate.
2629 (findComponentAt): Wrote.
2631 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2633 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2634 the correct versions of various linuxthreads functions get linked.
2635 * Makefile.in: Rebuilt.
2636 * java/lang/natThread.cc (finalize_native): New static function. Call
2637 _Jv_ThreadDestroyData.
2638 (initialize_native): Register finalizer for "data".
2639 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2640 (_Jv_ThreadDestroyData): New prototype.
2641 * include/win32-threads.h: Ditto.
2642 * include/no-threads.h: Ditto.
2643 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2644 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2645 move mutex and condition variable destroy code from:
2646 (really_start): ...here.
2647 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2648 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2649 (_Jv_ThreadDestroyData): Implemented.
2650 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2651 (_Jv_AllocArray): Ditto.
2653 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2655 * java/sql/DriverManager.java (getConnection): Don't set user/password
2658 2000-12-27 Warren Levy <warrenl@redhat.com>
2660 Fix for PR libgcj/1358:
2661 * java/lang/System.java: Update Copyright date properly.
2662 * java/util/Calendar.java: Fix typo in comment.
2663 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2664 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2665 initialize times. Spec says to set H:M:S values to zero only if
2667 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2668 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2669 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2670 timezones and GMT offsets, being careful to account for units of
2671 milliseconds vs. seconds.
2673 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2675 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2676 not be assigned to Object.
2678 Fix for PR libgcj/1516:
2679 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2681 (can_widen): Declared inline. Remove redundant checks for void
2682 arguments and char->short conversion. Add special case for boolean
2684 (ffi_type): Declared inline.
2685 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2687 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2689 * java/sql/SQLWarning.java: Fixed typo in comment.
2691 2000-12-26 Tom Tromey <tromey@redhat.com>
2693 * java/awt/MenuItem.java (paramString): Now protected.
2695 * java/awt/MenuShortcut.java: Implements Serializable.
2697 * java/awt/MenuBar.java: Rewrote from scratch.
2699 * java/awt/MenuComponent.java (removeNotify): Wrote.
2700 Implements Serializable.
2702 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2705 * java/awt/CheckboxMenuItem.java: Wrote.
2707 2000-12-25 Tom Tromey <tromey@redhat.com>
2709 * java/awt/MenuContainer.java: Fixed typo.
2711 * Makefile.in: Rebuilt.
2712 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2713 * java/awt/SystemColor.java: New file.
2715 * java/awt/Color.java (rgba): Now package-private.
2717 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2719 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2722 * java/awt/MenuItem.java (addNotify): New method.
2723 (MenuItem(String,MenuShortcut)): New constructor.
2724 (setLabel): Notify peer of change.
2725 (setEnabled): Likewise.
2727 * java/awt/GridLayout.java (toString): New method.
2729 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2730 (FlowLayout): Check for LEADING and TRAILING.
2731 (setAlignment): Likewise.
2732 (layoutContainer): Handle component orientation.
2734 * java/awt/Component.java (orientatin): New field.
2735 (setComponentOrientation): Wrote.
2736 (getComponentOrientation): Wrote.
2738 * java/awt/Event.java (Event): Implements Serializable.
2739 (consumed): New field for serialization.
2740 * java/awt/Dimension.java (Dimension): Implements Serializable.
2741 * java/awt/Cursor.java (Cursor): Implements Serializable.
2742 * java/awt/Container.java (Container): No longer abstract.
2744 * java/awt/Choice.java: Wrote.
2745 * java/awt/Checkbox.java: Wrote.
2746 * java/awt/ItemSelectable.java: Documented.
2747 * java/awt/CheckboxGroup.java: Wrote.
2749 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2751 (getSize): Likewise.
2753 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2755 * java/io/FileDescriptor.java: Initialize fd to -1.
2756 Remove default constructor.
2758 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2760 * java/lang/mprec.h: Change C9X reference to refer to C99.
2762 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2764 * java/lang/Throwable.java (trace_enabled): New static field.
2765 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2766 trace_enabled not set.
2767 * prims.cc (main_init): Turn off trace_enabled while creating
2768 default exception objects.
2770 2000-12-21 Tom Tromey <tromey@redhat.com>
2772 * java/beans/PropertyChangeListener.java: Extends EventListener.
2773 * java/beans/VetoableChangeListener.java: Extends EventListener.
2775 * java/util/zip/Deflater.java (update, init): Now private.
2777 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2779 * java/util/BasicMapEntry.java: Re-added.
2780 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2781 (putAll): Test for BasicMapEntry.
2782 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2783 (putAll): Test for BasicMapEntry.
2784 Change references from `HashMap.Entry' to `Entry' in various places.
2785 * Makefile.am: Add BasicMapEntry.java.
2786 * Makefile.in: Rebuilt.
2788 2000-12-18 Warren Levy <warrenl@redhat.com>
2790 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2791 need to set timezone to a valid non-null value. Partial fix for
2794 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2796 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2798 * java/awt/Button.java (addNotify): Likewise.
2799 * java/awt/Label.java (addNotify): Likewise.
2800 * java/awt/Panel.java (addNotify): Likewise.
2801 * java/awt/Scrollbar.java (addNotify): Likewise.
2802 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2803 Remove redundant null checks.
2805 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2807 * COPYING: Update to current
2808 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2809 to 19yy as example year in copyright notice).
2811 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2813 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2814 end-of-stream if avail_in is 0.
2816 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2818 * java/util/ArrayList.java (data): Declare transient.
2819 (serialPersistantFields): Removed.
2820 (readObject): Use defaultReadObject(), not readFields().
2821 (writeObject): Use defaultWriteObject(), not writeFields().
2823 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2825 * java/util/Hashtable.java (put): Remove `last' variable.
2826 Link new entry to head of list.
2827 * java/util/HashMap.java (put): Ditto.
2829 2000-12-15 Tom Tromey <tromey@redhat.com>
2831 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2832 loader to Class.forName.
2834 2000-12-14 Tom Tromey <tromey@redhat.com>
2836 * java/util/ResourceBundle.java
2837 (getBundle(String,Locale,ClassLoader)): New method.
2838 (trySomeGetBundle): Added `loader' argument.
2839 (partialGetBundle): Likewise.
2841 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2842 maximumFractionDigits, maximumIntegerDigits,
2843 minimumFractionDigits, minimumIntegerDigits): Now
2846 * java/lang/Thread.java (checkAccess): Now final.
2848 * java/lang/RuntimePermission.java: Class now final.
2850 * java/io/StringWriter.java (StringWriter(int)): Now public.
2852 * java/io/SerializablePermission.java (legal_names): Now private.
2854 * java/lang/Character.java: Updated UnicodeBlock constants.
2855 * scripts/blocks.pl: Special case private use and surrogate
2858 2000-12-12 Tom Tromey <tromey@redhat.com>
2860 * Makefile.in: Rebuilt.
2861 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2863 (GCJCOMPILE): Use it.
2866 2000-12-11 Tom Tromey <tromey@redhat.com>
2868 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2869 New static final fields.
2871 * scripts/classes.pl (scan): Skip lines with leading `*'.
2872 Fix for PR libgcj/378.
2874 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2876 * configure.in: Remove check for -fuse-divide-subroutine.
2877 * configure: Rebuilt.
2879 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2881 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2883 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2885 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2886 Remove BasicMapEntry.java and Bucket.java.
2887 * Makefile.in: Rebuilt.
2888 * java/util/HashMap.java: Rewritten.
2889 * java/util/HashSet.java: Imported from classpath.
2890 * java/util/WeakHashMap.java: Imported from classpath.
2891 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2892 * java/util/Bucket.java: Deleted.
2893 * java/util/BasicMapEntry.java: Deleted.
2894 * java/util/Collections.java (search): Use a for-loop, not iterator
2896 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2897 of elements in source.
2898 (max): Use a for-loop.
2900 (reverse): Keep track of positions instead of using Iterator's
2901 nextIndex() and previousIndex().
2902 (shuffle(List)): Initialize defaultRandom if required using
2903 double-check thread safety idiom. Call two-argument shuffle method
2904 using defaultRandom.
2905 (defaultRandom): New field.
2906 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2907 using previousIndex() and nextIndex().
2908 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2909 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2910 * java/util/AbstractMap.java (toString): Use StringBuffer.
2911 * java/lang/ref/PhantomReference.java: Imported from classpath.
2912 * java/lang/ref/SoftReference.java: Ditto.
2913 * java/lang/ref/Reference.java: Ditto.
2914 * java/lang/ref/WeakReference.java: Ditto.
2915 * java/lang/ref/ReferenceQueue.java: Ditto.
2917 2000-12-10 Richard Henderson <rth@redhat.com>
2919 * configure.host: Recognize alpha*-*, not alphaev6-*.
2921 2000-12-09 Anthony Green <green@redhat.com>
2923 * configure.host: Enable interpreter for Alpha.
2925 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2927 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2928 (ZIP): Points at fastjar instead of zip.
2929 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2930 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2931 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2932 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2933 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2934 ($(x_java_source_files:.java=.class):): Likewise.
2935 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2937 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2938 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2939 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2940 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2941 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2942 gnu/gcj/runtime/VMClassLoader.h:,
2943 java/io/ObjectInputStream$$GetField.h:,
2944 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2945 (Makefile.in): Rebuilt.
2947 2000-12-08 Tom Tromey <tromey@redhat.com>
2950 * configure: Rebuilt.
2951 * configure.in: Use echo, not `:', to create .d files.
2953 2000-12-08 Warren Levy <warrenl@redhat.com>
2955 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2956 NullPointerException so proper check of offset can be done.
2958 2000-12-08 Warren Levy <warrenl@redhat.com>
2960 * java/io/FileInputStream.java (close): Check if the fd is valid.
2961 * java/io/RandomAccessFile.java (close): Ditto.
2962 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2963 * java/net/PlainSocketImpl.java (close): Ditto.
2965 2000-12-06 Tom Tromey <tromey@redhat.com>
2967 * java/awt/GridBagConstraints.java: Filled in values for static
2970 * java/util/BitSet.java: Updated copyright notice.
2972 * Makefile.in: Rebuilt.
2973 * Makefile.am (awt_java_source_files): Added new file.
2974 * java/awt/GridBagConstraints.java: New file.
2976 2000-12-05 Tom Tromey <tromey@redhat.com>
2978 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2979 Now package-private, not protected.
2980 * java/text/DateFormatSymbols.java (equals): Now private.
2981 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2982 * java/util/BitSet.java: Class no longer final.
2984 2000-12-04 Warren Levy <warrenl@redhat.com>
2986 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2987 out code dependent on compiler and library changes.
2989 2000-12-04 Warren Levy <warrenl@redhat.com>
2991 * java/io/FilePermission.java: Made class final per spec.
2992 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2993 method name to match spec (fixed typo).
2994 * java/util/LinkedList.java: Implements List.
2996 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2998 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2999 Edgar Villanueva <edgarvil@home.com>.
3001 2000-12-03 Tom Tromey <tromey@redhat.com>
3003 * java/awt/geom/Point2D.java: Added protected constructor.
3004 (equals): New method.
3005 (Float.setLocation(float,float)): New method.
3006 * java/awt/geom/Dimension2D.java: Added protected constructor.
3007 * java/awt/geom/AffineTransform.java: Made all constants public.
3008 (concatenate): Fixed typo in name.
3009 * java/awt/event/WindowAdapter.java: Class now abstract.
3010 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3011 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3014 * java/awt/AWTError.java: Extend Error, not
3015 IllegalStateException.
3017 * Makefile.in: Rebuilt.
3018 * Makefile.am (awt_java_source_files): Added new file.
3019 * java/awt/geom/RoundRectangle2D.java: New file.
3021 * Makefile.in: Rebuilt.
3022 * Makefile.am (awt_java_source_files): Added new file.
3023 * java/awt/FlowLayout.java: New file.
3025 * Makefile.in: Rebuilt.
3026 * Makefile.am (awt_java_source_files): Added new file.
3027 * java/awt/GridLayout.java: New file.
3029 2000-12-02 Tom Tromey <tromey@redhat.com>
3031 * Makefile.in: Rebuilt.
3032 * Makefile.am (awt_java_source_files): Added new files.
3033 * java/awt/CardLayout.java: New file.
3034 * java/awt/AWTPermission.java: New file.
3036 2000-12-01 Tom Tromey <tromey@redhat.com>
3038 * java/util/Vector.java (insertElementAt): Unconditionally
3039 increment elementCount.
3040 (removeRange): Clear unused slots in vector.
3042 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3044 * java/lang/natMath.cc: Declare fabsf() function.
3045 * java/lang/mprec.h: Don't include math.h.
3046 * java/lang/dtoa.c: Include string.h.
3047 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3050 From Adam Welc <welc@cs.purdue.edu>:
3051 * java/util/LinkedList.java (removeFirst): Update `first' field.
3052 Handle the last == first case.
3053 (removeLast): Update `last' field. Handle the last == first case.
3055 2000-12-01 Warren Levy <warrenl@cygnus.com>
3057 * Makefile.am: Added entries for new java.sql modules.
3058 * Makefile.in: Rebuilt.
3060 2000-12-01 Warren Levy <warrenl@cygnus.com>
3062 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3063 that aren't quite 1.2 compatible yet.
3065 2000-11-30 Warren Levy <warrenl@cygnus.com>
3067 * java/sql/Array.java: New file from classpath.
3068 * java/sql/BatchUpdateException.java: Ditto.
3069 * java/sql/Blob.java: Ditto.
3070 * java/sql/Clob.java: Ditto.
3071 * java/sql/Ref.java: Ditto.
3072 * java/sql/SQLData.java: Ditto.
3073 * java/sql/SQLInput.java: Ditto.
3074 * java/sql/SQLOutput.java: Ditto.
3075 * java/sql/Struct.java: Ditto.
3076 * java/sql/CallableStatement.java: Merged file from claspath.
3077 * java/sql/Connection.java: Ditto.
3078 * java/sql/DataTruncation.java: Ditto.
3079 * java/sql/DatabaseMetaData.java: Ditto.
3080 * java/sql/DriverManager.java: Ditto.
3081 * java/sql/PreparedStatement.java: Ditto.
3082 * java/sql/ResultSet.java: Ditto.
3083 * java/sql/ResultSetMetaData.java: Ditto.
3084 * java/sql/SQLException.java: Ditto.
3085 * java/sql/SQLWarning.java: Ditto.
3086 * java/sql/Statement.java: Ditto.
3087 * java/sql/Types.java: Ditto.
3089 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3091 * java/lang/natSystem.cc (init_properties): Set user.language and
3093 * configure.in: Check for setlocale.
3094 * configure: Rebuilt.
3095 * include/config.h.in: Rebuilt.
3097 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3098 the infate() call didn't deliver any output. Throw a ZipException if
3099 the needsDictionary() call returns true.
3100 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3101 * java/io/InputStreamReader: Use the default buffer size for the
3102 contained BufferedInputStream.
3104 2000-11-28 Warren Levy <warrenl@cygnus.com>
3106 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3107 more time zone entries.
3108 * java/text/SimpleDateFormat.java (format): Added case for
3111 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3113 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3114 directly rather than read() in all cases. Make primitive read
3115 implementations more efficient, as defined in JDK online docs.
3116 (skipBytes): Behave like the JDK's implementation.
3117 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3118 closed stream with checkStatus() whenever an IOException can be
3120 (checkStatus): New private method.
3122 2000-11-27 Warren Levy <warrenl@cygnus.com>
3124 * Makefile.am: Added natTimeZone.cc.
3125 * Makefile.in: Rebuilt.
3126 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3127 * java/text/DateFormatSymbols.java (ampms): Made package private.
3128 (eras): Made package private.
3129 (months): Made package private.
3130 (shortMonths): Made package private.
3131 (shortWeekdays): Made package private.
3132 (weekdays): Made package private.
3133 (formatPrefixes): New private field.
3134 (localPatternCharsDefault): Made private.
3135 (dateFormats): New package private field.
3136 (timeFormats): New package private field.
3137 (formatsForKey): New private method.
3138 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3139 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3140 * java/text/SimpleDateFormat.java: Merged with Classpath.
3141 * java/util/TimeZone.java: Merged with Classpath.
3142 * java/util/natTimeZone.cc: New file.
3144 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3146 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3147 (addElement): Don't increment elementCount twice. Doh.
3148 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3149 array needs to be expanded.
3151 * java/util/Collections.java (UnmodifiableCollection): Implement
3153 (UnmodifiableList): Throw UnsupportedOperationException from
3154 modification methods. Set `l' from the one-parameter constructor.
3155 (UnmodifiableMap): Implement toString().
3156 (SynchronizedCollection): Ditto.
3157 (SynchronizedList): Set `l' from the one-parameter constructor.
3158 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3159 (SynchronizedMap): Implement toString().
3161 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3163 * javax/naming/NameParser.java,
3164 javax/naming/directory/AttributeInUseException.java,
3165 javax/naming/directory/AttributeModificationException.java,
3166 javax/naming/directory/InvalidAttributeIdentifierException.java,
3167 javax/naming/directory/InvalidAttributesException.java,
3168 javax/naming/directory/InvalidAttributeValueException.java,
3169 javax/naming/directory/InvalidSearchControlsException.java,
3170 javax/naming/directory/InvalidSearchFilterException.java,
3171 javax/naming/directory/NoSuchAttributeException.java,
3172 javax/naming/directory/SchemaViolationException.java: New files.
3174 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3176 * javax/naming/InitialContext.java (rebind): Implement.
3177 (unbind): Implement.
3178 (rename): Implement.
3180 (listBindings): Implement.
3181 (destroySubcontext): Implement.
3182 (createSubcontext): Implement.
3183 (lookupLink): Implement.
3184 (getNameParser): Implement.
3185 (composeName): Implement.
3186 (addToEnvironment): Implement.
3188 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3190 * javax/naming/AuthenticationException.java,
3191 javax/naming/AuthenticationNotSupportedException.java,
3192 javax/naming/CannotProceedException.java,
3193 javax/naming/CommunicationException.java,
3194 javax/naming/ConfigurationException.java,
3195 javax/naming/ContextNotEmptyException.java,
3196 javax/naming/InsufficientResourcesException.java,
3197 javax/naming/InterruptedNamingException.java,
3198 javax/naming/InvalidNameException.java,
3199 javax/naming/LimitExceededException.java,
3200 javax/naming/LinkException.java,
3201 javax/naming/LinkLoopException.java,
3202 javax/naming/MalformedLinkException.java,
3203 javax/naming/NameAlreadyBoundException.java,
3204 javax/naming/NameNotFoundException.java,
3205 javax/naming/NamingSecurityException.java,
3206 javax/naming/NoPermissionException.java,
3207 javax/naming/NotContextException.java,
3208 javax/naming/PartialResultException.java,
3209 javax/naming/ReferralException.java,
3210 javax/naming/ServiceUnavailableException.java,
3211 javax/naming/SizeLimitExceededException.java,
3212 javax/naming/TimeLimitExceededException.java: New files.
3214 * javax/naming/Name.java (clone): New method.
3215 (compareTo): New method.
3216 (isEmpty): New method.
3217 (getAll): New method.
3218 (getPrefix): New method.
3219 (getSuffix): New method.
3220 (startsWith): New method.
3221 (endsWith): New method.
3222 (addAll): New method.
3223 (addAll): New method.
3226 (remove): New method.
3228 * javax/naming/Context.java (lookup): New method.
3229 (rebind): New method.
3230 (unbind): New method.
3231 (rename): New method.
3233 (listBindings): New method.
3234 (destroySubcontext): New method.
3235 (createSubcontext): New method.
3236 (lookupLink): New method.
3237 (getNameParser): New method.
3238 (composeName): New method.
3239 (addToEnvironment): New method.
3240 (removeFromEnvironment): New method.
3241 (getEnvironment): New method.
3242 (close): New method.
3243 (getNameInNamespace): New method.
3245 * javax/naming/InitialContext.java (lookup): New method.
3246 (rebind): New method.
3247 (unbind): New method.
3248 (rename): New method.
3250 (listBindings): New method.
3251 (destroySubcontext): New method.
3252 (createSubcontext): New method.
3253 (lookupLink): New method.
3254 (getNameParser): New method.
3255 (composeName): New method.
3256 (addToEnvironment): New method.
3257 (removeFromEnvironment): New method.
3258 (getEnvironment): New method.
3259 (close): New method.
3260 (getNameInNamespace): New method.
3262 2000-11-26 Tom Tromey <tromey@cygnus.com>
3264 * Makefile.in: Rebuilt.
3265 * Makefile.am (core_java_source_files): Added
3266 RuntimePermission.java.
3267 * java/lang/RuntimePermission.java: Imported from Classpath.
3268 * java/lang/Thread.java (getContextClassLoader): Now
3269 synchronized. Added security code.
3270 (setContextClassLoader): Likewise.
3272 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3273 length field of array.
3274 (_Jv_NewPrimArray): Likewise.
3275 * gcj/array.h (__JArray): `length' field now const. Added
3278 2000-11-26 Anthony Green <green@redhat.com>
3280 * javax/naming/spi/NamingManager.java,
3281 javax/naming/spi/ObjectFactory.java,
3282 javax/naming/spi/InitialContextFactory.java,
3283 javax/naming/spi/InitialContextFactoryBuilder.java,
3284 javax/naming/RefAddr.java, javax/naming/Reference.java,
3285 javax/naming/NamingException.java, javax/naming/Context.java,
3286 javax/naming/Referenceable.java,
3287 javax/naming/directory/InitialDirContext.java,
3288 javax/naming/directory/DirContext.java,
3289 javax/naming/directory/Attributes.java,
3290 javax/naming/directory/Attribute.java,
3291 javax/naming/StringRefAddr.java,
3292 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3293 javax/naming/InitialContext.java,
3294 javax/naming/NoInitialContextException.java: New files.
3296 2000-11-25 Anthony Green <green@redhat.com>
3298 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3299 (_Jv_NewPrimArray): Likewise.
3300 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3301 (class JArray): Removed constructor.
3303 * java/lang/Thread.java (context_class_loader): New private data.
3304 (getContextClassLoader): New method.
3305 (setContextClassLoader): New method.
3306 (Thread): Initialize context_class_loader.
3308 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3309 (getResource): Rename to findResource.
3310 (findResource): New method. Used to be getResource.
3311 (getResourceAsStream): Deleted.
3312 (jarFileize): Extracted logic from URLClassLoader constructor into
3313 this new private method.
3314 (addURL): New protected method.
3315 (URLClassLoader): Call jarFileize. Use addElement instead of
3317 (findResources): New method.
3319 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3320 (getResource): Implement correct logic.
3321 (findResource): New method.
3322 (getResources): New method.
3323 (findClass): Create a ClassNotFoundException with the name of the
3324 class rather than nothing at all.
3325 (defineClass) Only throw ClassFormatError.
3327 * java/lang/Class.java (forName): New method.
3328 * java/lang/Class.h (forName): New method.
3329 * java/lang/natClass.cc (forName): New method.
3331 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3333 * java/lang/System.java (setProperties): Only call init_properties()
3334 if properties is null.
3335 (getProperties): Ditto.
3336 (getProperty): Ditto.
3337 (setProperty): Call init_properties if properties are null.
3338 (prop_init): Remove field.
3339 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3340 method. Check for null properties after synchronizing instead of
3341 prop_init flag. Set the properties field last for thread safety.
3343 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3344 test for gcj.dumpobjects property and enable object stream dumping
3346 (dumpElement): No longer native.
3347 (dumpElementln): Ditto.
3348 (setDump): Do not define.
3349 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3350 (dumpElementln): Removed.
3353 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3355 * configure: Rebuilt.
3356 * Makefile.in: Rebuilt.
3357 * Makefile.am (built_java_source_files): Add Configuration.java.
3358 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3359 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3360 Create `gnu' directory in the build tree.
3361 * gnu/classpath/Configuration.java.in: New file.
3363 2000-11-24 Tom Tromey <tromey@cygnus.com>
3365 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3367 (_Jv_NewPrimArray): Likewise.
3369 * gcj/array.h (__JArray): `length' field now const. Added
3371 (class JArray): Added constructor.
3373 2000-11-23 Mark Wielaard <mark@klomp.org>
3375 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3378 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3380 * java/util/Vector.java: Improve exception messages.
3381 (Vector): Check initialCapacity for IllegalArgumentException.
3382 (tromToSize): Don't check for elementCount == elementData.length
3384 (toArray): Don't try to set null marker if target array is the same
3385 length as the vector.
3387 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3389 * Makefile.in: Rebuilt.
3390 * Makefile.am (core_java_source_files): Added Collections.java.
3391 * java/util/List.java: Merged from classpath.
3392 * java/util/Vector.java: Ditto.
3393 * java/util/Collections.java: From classpath.
3394 * java/util/ArrayList.java (addAll(Collection)): Call
3395 addAll(int,Collection) instead of duplicating code.
3396 (indexOf): Clean up int initialization.
3397 (clear): Set cleared array entries to null, to allow garbage
3399 * java/util/List.java: Minor formatting fixes.
3400 * java/util/SimpleTimeZone.java: ditto.
3402 2000-11-18 Tom Tromey <tromey@cygnus.com>
3404 * Makefile.in: Rebuilt.
3405 * Makefile.am (core_java_source_files): Added new files.
3406 * java/lang/reflect/ReflectPermission.java: New class.
3407 * java/io/FileFilter.java: From Classpath
3408 * java/io/FilePermission.java: From Classpath.
3410 2000-11-17 Tom Tromey <tromey@cygnus.com>
3412 * java/lang/reflect/AccessibleObject.java (isAccessible,
3413 setAccessible): Now public.
3415 * java/lang/natString.cc: Include Locale.h.
3416 (toUpperCase): Added `locale' argument. Handle locale
3418 (toLowerCase): Added `locale' argument. Handle locale
3420 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3421 CAPITAL_I): New defines.
3422 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3425 (toUpperCase, toLowerCase): New methods. Variants which accept
3428 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3431 * java/util/PropertyPermission.java: Re-merged from Classpath.
3433 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3435 * java/text/StringCharacterIterator.java: Reindented.
3436 (setText): New method.
3438 2000-11-17 Mark Wielaard <mark@klomp.org>
3440 Merge with Classpath (changes by Bryce McKinlay)
3441 * java/util/jar/*.java: Reformat all to unofficial standard coding
3442 style. No changes of substance.
3444 2000-11-17 Mark Wielaard <mark@klomp.org>
3446 * java/util/zip/*.java: Javadoc updates.
3448 2000-11-17 Tom Tromey <tromey@cygnus.com>
3450 * java/text/CollationKey.java: Implement Comparable.
3451 (compareTo(Object)): New method.
3452 * java/text/Collator.java (compare(Object,Object)): New method.
3453 Implement Comparator.
3455 * java/util/zip/InflaterInputStream.java (available): New method.
3456 (close): New method.
3457 (read, available, skip, fill): Throw exception if stream closed.
3458 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3459 getNextEntry): Throw exception if closed.
3461 2000-11-16 Tom Tromey <tromey@cygnus.com>
3463 * java/io/PushbackReader.java: Merged with Classpath.
3464 * java/util/Arrays.java: Updated from Classpath.
3466 * scripts/blocks.pl: New file.
3467 * java/lang/Character.java (Subset): New class.
3468 (UnicodeBlock): New class.
3470 * java/lang/Math.java (toDegrees, toRadians): New methods.
3472 * java/lang/Float.java: Implement Comparable.
3473 (compareTo): New methods.
3474 * java/lang/Double.java: Implement Comparable.
3475 (compareTo): New methods.
3477 2000-11-16 Warren Levy <warrenl@cygnus.com>
3479 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3481 (listeners): Made transient.
3482 (source): Renamed from 'bean'.
3483 (children): New field for serialization.
3484 (propertyChangeSupportSerializedDataVersion): Ditto.
3485 (serialVersionUID): Ditto.
3486 (writeObject): New serialization method.
3487 (readObject): New serialization method.
3488 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3490 (listeners): Made transient.
3491 (source): Renamed from 'bean'.
3492 (children): New field for serialization.
3493 (vetoableChangeSupportSerializedDataVersion): Ditto.
3494 (serialVersionUID): Ditto.
3495 (writeObject): New serialization method.
3496 (readObject): New serialization method.
3497 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3498 to allow constructor to have a return type (i.e. the class that the
3499 constructor constructs).
3501 2000-11-14 Tom Tromey <tromey@cygnus.com>
3503 * Makefile.in: Rebuilt.
3504 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3507 2000-11-02 Warren Levy <warrenl@cygnus.com>
3509 * java/io/ObjectInputStream.java (readObject): Added code to
3510 conditionally dump out the serialized data.
3511 Handle ENDBLOCKDATA case a bit more gracefully since the current
3512 behavior doesn't seem to work as expected.
3513 (readStreamHeader): Added code for serialized data dumper.
3514 (readNextBlock): Ditto.
3515 (readFields): Ditto.
3516 (dump): New private static field for turning on/off dumper.
3517 (setDump): New native method.
3518 (dumpElement): New native method.
3519 (dumpElementln): New native method.
3520 * java/io/natObjectInputStream.cc (setDump): New method.
3521 (dumpElement): New method.
3522 (dumpElementln): New method.
3524 2000-11-02 Warren Levy <warrenl@cygnus.com>
3526 * java/net/InetAddress.java (addr): Renamed from 'address'.
3527 (address): New field to match Serialized Form doc.
3528 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3529 (family): New serialization field.
3530 (serialVersionUID): New field.
3531 (readObject): New method.
3532 (writeObject): New method.
3533 (getFamily): New native method.
3534 (InetAddress): Set family.
3535 * java/net/natInetAddress.cc (getFamily): New method.
3536 (addr): Renamed from 'address'.
3537 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3538 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3539 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3541 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3543 * java/util/AbstractList.java (SubList): Make it a top-level private
3545 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3547 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3548 * Makefile.in: Rebuilt.
3550 2000-11-02 Tom Tromey <tromey@cygnus.com>
3552 * Makefile.in: Rebuilt.
3553 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3556 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3558 * java/util/AbstractList.java (remove): Comment out modCount increment
3559 to work around compiler bug.
3562 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3564 * java/util/AbstractList.java: Throw messages with
3565 IndexOutOfBoundsExceptions.
3566 (listIterator()): Call listIterator(0).
3567 (size): New field. Initialize to size().
3568 (hasNext): Test position against size, not size().
3569 (remove): Increment knownMod by one instead of resetting it from
3572 (SubList.upMod): Removed.
3573 (SubList.set): Don't call upMod() or update knownMod.
3574 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3575 (SubList.remove): Ditto.
3576 (SubList.addAll): Don't call backingList.size(). Increment size from
3578 (SubList.iterator): New method. Call listIterator(0).
3579 (SubList.listIterator): New method. Restore code to return an anonymous
3580 listIterator implementation (with some changes).
3581 * java/util/AbstractSequentialList.java: Throw messages with
3582 IndexOutOfBoundsExceptions.
3583 (addAll): Add a specnote.
3584 * java/util/ArrayList.java (removeRange): Get the math right.
3585 (addAll): Increment modCount _before_ creating iterator.
3586 * java/util/LinkedList.java: Rewritten, mostly.
3588 2000-11-01 Tom Tromey <tromey@cygnus.com>
3590 * scripts/encodings.pl: Added `ASCII' alias.
3591 * Makefile.in: Rebuilt.
3592 * Makefile.am (convert_source_files): Added new files.
3593 * gnu/gcj/convert/Input_ASCII.java: New file.
3594 * gnu/gcj/convert/Output_ASCII.java: New file.
3595 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3596 out-of-range characters.
3597 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3598 (read): Swap bytes if required. Treat `count' as character count,
3600 (write): Likewise. Also, handle case where iconv fails on a given
3602 (init): Put encoding into exception.
3603 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3604 (static): Call iconv_init. Rebuilt alias list.
3605 (iconv_init): New private method.
3607 2000-11-01 Tom Tromey <tromey@cygnus.com>
3609 * Makefile.in: Rebuilt.
3610 * Makefile.am (install-exec-hook): Only make a single symlink, and
3611 remove the destination before making the link.
3612 * configure: Rebuilt.
3613 * configure.in: Call AC_PROG_LN_S.
3615 2000-10-31 Warren Levy <warrenl@cygnus.com>
3617 * jni.cc: Added include of java/lang/ThreadGroup.h.
3618 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3619 per change of 2000-10-05.
3621 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3623 * java/util/BitSet.java: Updated @specnote.
3625 * java/io/Reader.java: Merge docs from classpath.
3626 (skip): Synchronize on `lock'.
3627 * java/io/FileReader.java: Import correct implementation from
3629 * java/io/StringReader.java: Merge docs from classpath.
3630 (ready): Throw IOException if stream is closed.
3632 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3634 * java/util/AbstractCollection.java (addAll): Use size() instead of
3635 hasNext() in iterator loop.
3637 (contains): Ditto. Simplify loop.
3638 (containsAll): Ditto.
3643 (toString): Ditto. Use string concatenation operators, not
3645 * java/util/AbstractList.java (addAll): Use size() instead of
3646 hasNext() in iterator loop.
3649 (indexOf): Ditto. Don't take null check outside of the loop.
3650 (iterator): Return an AbstractListItr instead of anonymous class.
3651 (lastIndexOf): Use a for loop bounded by size() instead of
3652 hasPrevious() in iterator loop.
3653 (listIterator): Return an AbstractListItr.
3654 (removeRange): Remove bounds checking code and docs.
3655 (AbstractListItr): New inner class. Code moved here from
3657 (SubList.iterator): Removed. Use default implementation from
3658 AbstractList instead.
3659 (SubList.listIterator): As above.
3660 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3661 instead of hasNext() in iterator loop.
3662 (containsValue): Ditto.
3668 (toString): Ditto. Use string concatenation operators, not
3670 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3671 bounded by size() instead of hasNext() in iterator loop.
3672 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3673 part of normal execution flow. Do an explicit null check instead.
3674 * java/util/ArrayList.java (_iSize): Rename to `size'.
3675 (_arData): Rename to `data'.
3676 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3679 (removeRange): Make protected. Don't check bounds.
3680 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3682 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3684 (addAll (int, Collection)): Check lower bounds. Simplify exception
3686 (clone): Clone the data array too.
3687 (indexOf): Inline doesEqual().
3688 (lastIndexOf): Ditto.
3689 (clear): Don't set array data to null.
3690 (set): Check lower bounds. Simplify exception string.
3691 (toArray): Correct comment.
3692 (trimToSize): Don't update modCount, this is not a structural change.
3695 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3697 (toString): Declare `bit' as long, not int.
3698 (data): Made package-private, not private.
3700 2000-10-27 Warren Levy <warrenl@cygnus.com>
3702 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3703 array elements to true.
3705 2000-10-27 Warren Levy <warrenl@cygnus.com>
3707 * Makefile.am: Added locale files from Classpath.
3708 * Makefile.in: Rebuilt.
3709 * gnu/java/locale/Calendar.java: New file.
3710 * gnu/java/locale/Calendar_de.java: New file.
3711 * gnu/java/locale/Calendar_en.java: New file.
3712 * gnu/java/locale/Calendar_nl.java: New file.
3713 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3714 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3715 serialization compatibility.
3716 (scale): Made private.
3717 (serialVersionUID): New field.
3718 * java/math/BigInteger.java (ival): Made transient.
3719 (words): Made transient.
3720 (bitCount): New serialization field.
3722 (firstNonzeroByteNum): Ditto.
3723 (lowestSetBit): Ditto.
3726 (serialVersionUID): New field.
3727 (readObject): New method.
3728 (writeObject): New method.
3729 * java/util/BitSet.java (serialVersionUID): New field.
3730 * java/util/Calendar.java: Replaced with Classpath file.
3731 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3732 of getDefault() for TimeZone or Locale instead of passing nulls.
3733 * java/util/Locale.java (serialVersionUID): New field.
3734 (writeObject): New method.
3735 (readObject): New method.
3736 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3738 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3740 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3741 (core_java_source_files): Put java.lang, java.io, and java.util here.
3742 (ordinary_java_source_files): Order so that core_java_source_files are
3744 (java_source_files): Reorder so that special_java_source_files are
3746 * configure.in: Don't pass -I flag to gcj.
3747 * Makefile.in: Rebuilt.
3748 * configure: Rebuilt.
3750 2000-10-25 Tom Tromey <tromey@cygnus.com>
3752 * Makefile.in: Rebuilt.
3753 * Makefile.am (install-exec-hook): New target.
3755 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3757 * java/util/EventObject.java: Merged from classpath.
3759 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3762 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3764 * java/util/AbstractSet.java (equals): Re-installed original code.
3766 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3768 * Makefile.am: Added rules for libgcjx library.
3769 * Makefile.in: Rebuilt.
3770 * configure.in: Added check for X.
3771 * configure: Rebuilt.
3772 * gnu/awt/LightweightRedirector.java: New file.
3773 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3774 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3775 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3776 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3777 * gnu/awt/j2d/MappedRaster.java: New file.
3778 * gnu/awt/xlib/XCanvasPeer.java: New file.
3779 * gnu/awt/xlib/XEventLoop.java: New file.
3780 * gnu/awt/xlib/XEventQueue.java: New file.
3781 * gnu/awt/xlib/XFontMetrics.java: New file.
3782 * gnu/awt/xlib/XFramePeer.java: New file.
3783 * gnu/awt/xlib/XGraphics.java: New file.
3784 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3785 * gnu/awt/xlib/XPanelPeer.java: New file.
3786 * gnu/awt/xlib/XToolkit.java: New file.
3787 * gnu/gcj/xlib/Clip.java: New file.
3788 * gnu/gcj/xlib/Colormap.java: New file.
3789 * gnu/gcj/xlib/Display.java: New file.
3790 * gnu/gcj/xlib/Drawable.java: New file.
3791 * gnu/gcj/xlib/Font.java: New file.
3792 * gnu/gcj/xlib/GC.java: New file.
3793 * gnu/gcj/xlib/Pixmap.java: New file.
3794 * gnu/gcj/xlib/Screen.java: New file.
3795 * gnu/gcj/xlib/Visual.java: New file.
3796 * gnu/gcj/xlib/WMSizeHints.java: New file.
3797 * gnu/gcj/xlib/Window.java: New file.
3798 * gnu/gcj/xlib/WindowAttributes.java: New file.
3799 * gnu/gcj/xlib/XAnyEvent.java: New file.
3800 * gnu/gcj/xlib/XButtonEvent.java: New file.
3801 * gnu/gcj/xlib/XColor.java: New file.
3802 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3803 * gnu/gcj/xlib/XConnectException.java: New file.
3804 * gnu/gcj/xlib/XEvent.java: New file.
3805 * gnu/gcj/xlib/XException.java: New file.
3806 * gnu/gcj/xlib/XExposeEvent.java: New file.
3807 * gnu/gcj/xlib/XID.java: New file.
3808 * gnu/gcj/xlib/XImage.java: New file.
3809 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3810 * gnu/gcj/xlib/natClip.cc: New file.
3811 * gnu/gcj/xlib/natColormap.cc: New file.
3812 * gnu/gcj/xlib/natDisplay.cc: New file.
3813 * gnu/gcj/xlib/natDrawable.cc: New file.
3814 * gnu/gcj/xlib/natFont.cc: New file.
3815 * gnu/gcj/xlib/natGC.cc: New file.
3816 * gnu/gcj/xlib/natPixmap.cc: New file.
3817 * gnu/gcj/xlib/natScreen.cc: New file.
3818 * gnu/gcj/xlib/natVisual.cc: New file.
3819 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3820 * gnu/gcj/xlib/natWindow.cc: New file.
3821 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3822 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3823 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3824 * gnu/gcj/xlib/natXColor.cc: New file.
3825 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3826 * gnu/gcj/xlib/natXException.cc: New file.
3827 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3828 * gnu/gcj/xlib/natXImage.cc: New file.
3829 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3830 * java/awt/EventDispatchThread.java: Start thead on creation.
3832 2000-10-20 Tom Tromey <tromey@cygnus.com>
3834 From Arno J. Klaassen:
3835 * interpret.cc: Include <stdlib.h> for alloca.
3836 * defineclass.cc: Include <stdlib.h> for alloca.
3838 * Makefile.in: Rebuilt.
3839 * Makefile.am: Include deps.mk.
3840 (GCJCOMPILE): Added -MD, -MT, and -MF.
3841 ($(javao_files)): Don't depend on libgcj.zip.
3842 (all-recursive): New target.
3843 (%.lo:%.cc): Do dependency tracking.
3844 ($(nat_headers)): Don't depend on libgcj.zip.
3845 * configure: Rebuilt.
3846 * configure.in: Make .d files and deps.mk.
3848 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3850 * exception.cc: Don't #include "exception".
3851 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3853 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3854 * Makefile.in: Updated.
3856 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3858 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3859 * java/awt/peer/ComponentPeer.java (disable): Removed.
3862 (minimumSize): Removed.
3863 (preferredSize): Removed.
3866 * java/awt/peer/ListPeer.java (addItem): Removed.
3868 (minimumSize): Removed.
3869 (preferredSize): Removed.
3870 (setMultipleSelections): Removed.
3871 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3872 (remove): Renamed from removeMenu.
3873 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3875 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3876 (remove): Renamed from removeItem.
3877 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3878 (getMinimumSize): Removed.
3879 (getPreferredSize): Removed.
3880 (minimumSize): Removed.
3881 (preferredSize): Removed.
3882 (replaceText): Removed.
3883 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3884 (preferredSize): Removed.
3885 (getMinimumSize): Removed.
3886 (getPreferredSize): Removed.
3887 (setEchoCharacter): Removed.
3889 2000-10-10 Warren Levy <warrenl@cygnus.com>
3891 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3892 * java/sql/Date.java (serialVersionUID): New field.
3893 * java/sql/Time.java (serialVersionUID): New field.
3894 * java/sql/Timestamp.java (serialVersionUID): New field.
3895 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3896 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3897 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3898 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3899 (readObject): New serialization method.
3900 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3901 (serialVersionOnStream): New field.
3902 (readObject): New serialization method.
3903 (getMonetaryDecimalSeparator): New method.
3904 (setMonetaryDecimalSeparator): New method.
3905 * java/text/NumberFormat.java (maxFractionDigits): New field.
3906 (maxIntegerDigits): New field.
3907 (minFractionDigits): New field.
3908 (minIntegerDigits): New field.
3909 (serialVersionOnStream): New field.
3910 (serialVersionUID): New field.
3911 (readObject): New serialization method.
3912 (writeObject): New serialization method.
3913 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3914 (serialVersionOnStream): New field.
3915 (serialVersionUID): New field.
3916 (readObject): New serialization method.
3918 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3920 * configure.in (GCJ): Avoid bogus error message when looking for
3921 (and not finding) gcj in the build tree.
3922 * configure: Rebuilt.
3924 2000-10-09 Tom Tromey <tromey@cygnus.com>
3926 * configure: Rebuilt.
3927 * configure.in: Include sys/types.h when checking for socklen_t.
3928 From Arno J. Klaassen.
3930 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3932 * include/jvm.h: Enable __builtin_expect().
3934 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3935 the main program. Fix for PR libgcj/341.
3937 2000-10-07 Tom Tromey <tromey@cygnus.com>
3939 * java/util/Properties.java: Merged with Classpath version.
3941 2000-10-05 Tom Tromey <tromey@cygnus.com>
3943 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3944 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3945 * java/lang/Class.h (Object): Added `class$' field.
3946 * java/lang/Object.h (Object): Added `class$' field.
3947 * defineclass.cc (ClassClass): Use `class$' form.
3948 (ClassObject): Likewise.
3949 * resolve.cc (ClassObject): Use `class$' form.
3950 (ObjectClass): Likewise.
3951 * interpret.cc (ClassError): Removed.
3952 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3954 (IntegerClass): Likewise.
3955 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3957 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3958 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3959 SerializableClass): Likewise.
3960 Include Serializable.h, Cloneable.h.
3961 * java/lang/natSystem.cc (SystemClass): Removed.
3962 (init_properties): Use `class$' form.
3963 * java/lang/natObject.cc (CloneableClass): Removed.
3964 (clone): Use `class$' form.
3965 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3966 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3967 ConstructorClass): Likewise.
3968 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3969 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3970 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3971 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3973 (ClassClass): Likewise.
3974 * include/jvm.h (StringClass): Use `class$' form.
3975 * prims.cc (ObjectClass): Removed.
3976 (_Jv_RunMain): Use `class$' form.
3977 (_Jv_AllocObject): Likewise.
3978 * jni.cc (ClassClass): Use `class$' form.
3979 (ThrowableClass): Likewise.
3980 (ObjectClass): Likewise.
3981 (MethodClass): Likewise.
3982 (ThreadGroupClass): Likewise.
3983 (NativeThreadClass): Likewise.
3984 * boehm.cc (ObjectClass): Removed.
3985 (ClassClass): Removed.
3986 (_Jv_MarkObj): Use `class$' form.
3987 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3990 2000-10-05 Warren Levy <warrenl@cygnus.com>
3992 * Makefile.am: Removed java/io/Replaceable.java and
3993 java/io/Resolvable.java.
3994 * Makefile.in: Rebuilt.
3995 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3997 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3999 (processResolution): Handle readResolve method via reflection with
4000 removal of Resolvable interface.
4001 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4002 method via reflection with removal of Replaceable interface.
4003 * java/io/Replaceable.java: Removed.
4004 * java/io/Resolvable.java: Removed.
4005 * java/security/Key.java (serialVersionUID): New field.
4006 * java/security/Provider.java (serialVersionUID): New field.
4007 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4009 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4011 * java/sql/DataTruncation.java (serialVersionUID): New field.
4012 * java/sql/SQLException.java (serialVersionUID): New field.
4013 * java/sql/SQLWarning.java (serialVersionUID): New field.
4014 * java/util/Date.java (serialVersionUID): New field.
4015 (millis): Made transient.
4016 (readObject): New method.
4017 (writeObject): New method.
4019 2000-10-05 Tom Tromey <tromey@cygnus.com>
4021 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4023 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4025 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4026 (JvRunMain): Set _Jv_argv and _Jv_argc.
4027 * java/awt/Component.java: Minor fixes.
4028 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4029 * java/awt/Toolkit.java (systemEventQueue): Removed.
4030 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4031 * java/awt/Window.java (getToolkit): Don't call super.
4032 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4033 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4034 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4035 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4036 * gnu/awt/gtk/GtkFramePeer.java: New file.
4037 * gnu/awt/gtk/GtkMainThread.java: New file.
4038 * gnu/awt/gtk/GtkToolkit.java: New file.
4039 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4040 * gnu/awt/gtk/gtkcommon.cc: New file.
4041 * gnu/awt/gtk/gtkcommon.h: New file.
4042 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4043 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4044 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4045 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4046 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4047 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4049 2000-09-30 Tom Tromey <tromey@cygnus.com>
4051 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4052 interrupted before modifying the cv's wait set.
4055 2000-09-30 Hans Boehm <boehm@acm.org>
4056 Bryce McKinlay <bryce@albatross.co.nz>
4058 Implement bitmap descriptor based marking for Boehm GC.
4060 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4061 * configure: Rebuilt.
4062 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4063 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4064 method get_finalizer().
4065 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4066 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4067 (_Jv_AllocObj): Add new jclass parameter.
4068 (_Jv_AllocArray): Ditto.
4069 (_Jv_BuildGCDescr): New prototype.
4070 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4071 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4072 get_finalizer() instead of direct finalizer vtable offset.
4073 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4074 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4075 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4076 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4077 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4078 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4079 (_Jv_DetermineVTableIndex): Ditto.
4080 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4081 calculations to account for new gc_descr field.
4082 * boehm.cc: #include gc_gcj.h.
4083 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4084 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4085 New commentary from HB. Mark the classes vtable.
4086 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4087 (GC_DEFAULT_DESCR): New #define.
4088 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4089 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4090 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4091 scan conservativly if size is less than min_heap_addr. Set vtable
4092 pointer of new object before returning.
4093 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4094 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4095 allocation for obj_kind_x.
4096 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4097 (_Jv_AllocObj): Set vtable on returned object.
4098 (_Jv_AllocArray): Ditto.
4099 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4100 (_Jv_NewPrimArray): Ditto.
4101 (_Jv_AllocObj): Declare as a friend.
4102 (_Jv_AllocArray): Ditto.
4103 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4104 from &ObjectClass into new array class. Remove offset-by-one
4105 adjustments from `method' size calculations to account for gc_descr
4108 2000-09-26 Tom Tromey <tromey@cygnus.com>
4110 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4111 `remove', not `add'.
4113 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4115 * java/lang/natSystem.cc (file_encoding): Added return statement.
4117 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4119 * Makefile.am: Re-work shell commands that exceeded command-line
4121 * Makefile.in: Rebuilt.
4123 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4125 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4126 * java/lang/natDouble.cc: Likewise.
4127 * java/lang/reflect/natMethod.cc: Likewise.
4128 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4130 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4132 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4134 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4135 * acinclude.m4: Arrange for automake to not bring in a new
4136 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4137 * Makefile.am: Leave it up to automake to subst GCJ.
4138 * aclocal.m4, configure, Makefile.in: Rebuilt.
4140 2000-09-13 Tom Tromey <tromey@cygnus.com>
4142 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4143 (get): Ensure Boolean class is initialized.
4144 * java/lang/reflect/natField.cc (BooleanClass): New define.
4145 (get): Ensure Boolean class is initialized.
4147 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4149 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4150 Initialize with anonymous class.
4151 (compareToIgnoreCase): New method.
4153 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4154 (uncaughtException): Set had_uncaught_exception.
4155 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4156 exit with error status if set.
4157 (_Jv_RunMain): Ditto.
4159 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4161 * configure: Rebuilt with new ../libtool.m4.
4163 2000-09-11 Tom Tromey <tromey@cygnus.com>
4165 * java/lang/reflect/Field.java (toString): Don't rely on
4168 2000-09-08 Tom Tromey <tromey@cygnus.com>
4170 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4171 default decoder use iconv.
4172 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4173 Let default encoder use iconv.
4174 * configure: Rebuilt.
4175 * configure.in: Check for nl_langinfo and <langinfo.h>.
4176 * java/lang/natSystem.cc (file_encoding): New function.
4177 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4179 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4181 * acinclude.m4: Simplify the tests for CC and CXX.
4182 * aclocal.m4, configure: Rebuilt.
4184 * acinclude.m4: Include libtool macros from the source tree.
4185 * aclocal.m4, configure: Rebuilt.
4187 2000-09-08 Warren Levy <warrenl@cygnus.com>
4189 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4190 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4191 * java/io/File.java (writeObject): Added.
4192 (readObject): Added.
4193 (serialVersionUID): Added.
4194 * java/io/ObjectOutputStream.java (writeObject): Initialized
4195 fieldsAlreadyWritten before recursion rather than after.
4196 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4197 * java/io/OptionalDataException.java (serialVersionUID): Added.
4198 (OptionalDataException): Made package private.
4199 * java/io/SyncFailedException.java (SyncFailedException): Removed
4200 default constructor to match spec.
4201 * java/lang/Boolean.java (serialVersionUID): Added.
4202 * java/lang/Byte.java (serialVersionUID): Added.
4203 * java/lang/Character.java (serialVersionUID): Added.
4204 * java/lang/Double.java (serialVersionUID): Added.
4205 * java/lang/Float.java (serialVersionUID): Added.
4206 * java/lang/Integer.java (serialVersionUID): Added.
4207 * java/lang/Long.java (serialVersionUID): Added.
4208 * java/lang/Number.java (serialVersionUID): Added.
4209 * java/lang/Short.java (serialVersionUID): Added.
4210 * java/lang/String.java (serialVersionUID): Added.
4211 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4213 * java/lang/reflect/InvocationTargetException.java
4214 (serialVersionUID): Added.
4215 * java/net/URL.java (handler): Made transient.
4216 (hashCode): Added field for serialization, per spec. and use
4217 cached value if available.
4218 (serialVersionUID): Added.
4219 (URL): Initialize hashCode.
4220 (set): Adjust hashCode.
4221 (readObject): New Method to initialize the protocol handler when
4223 (writeObject): New method.
4224 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4225 * java/text/Collator.java: Removed 'implements Serializable'.
4226 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4227 * java/util/Properties.java (serialVersionUID): Added.
4228 * java/util/Random.java (serialVersionUID): Added.
4229 (seed): Made private.
4230 (nextNextGaussian): Made private.
4231 (haveNextNextGaussian): Made private.
4232 * java/util/Stack.java (serialVersionUID): Added.
4233 * java/util/TimeZone.java (serialVersionUID): Added.
4234 * java/util/Vector.java (serialVersionUID): Added.
4236 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4238 * Makefile.am (Thread.h): Don't be friends with native threads
4240 * Makefile.in: Rebuilt.
4241 * java/lang/Thread.java (interrupt_flag): Make package-private.
4243 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4245 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4246 to avoid long long division.
4248 2000-09-06 Tom Tromey <tromey@cygnus.com>
4250 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4252 * java/lang/reflect/Method.java (toString): Use `getName' for
4255 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4256 `args' if method takes no parameters.
4258 Fix for PR java.lang/339:
4259 * java/lang/natPosixProcess.cc (fail): New function.
4260 (cleanup): New function.
4261 (startProcess): Use them. Create pipe so child can communicate
4262 exec failure back to parent.
4264 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4266 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4268 (send): Undo last patch. Remove the label only.
4270 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4272 * java/net/natInetAdress.cc: Ditto.
4274 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4276 2000-09-05 Tom Tromey <tromey@cygnus.com>
4278 * doc/cni.sgml: Updated from master copy.
4280 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4282 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4284 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4286 * java/lang/fdlibm.h: #undef __P if previously defined.
4287 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4288 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4292 2000-09-04 Tom Tromey <tromey@cygnus.com>
4294 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4297 2000-09-04 Anthony Green <green@redhat.com>
4299 Fix for PR java.io/203:
4300 * java/io/File.java (createTempFile): Obey directory argument.
4301 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4302 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4303 variable to set java.io.tmpdir on non-WIN32 systems.
4305 2000-09-04 Anthony Green <green@redhat.com>
4307 * java/io/File.java (deleteOnExit): New method.
4308 * gnu/gcj/runtime/FileDeleter.java: New class.
4309 * java/lang/natRuntime.cc (exit): Call
4310 FileDeleter.deleteOnExitNow()
4311 * Makefile.am: Add FileDeleter.java.
4312 * Makefile.in: Rebuilt.
4314 2000-09-02 Tom Tromey <tromey@cygnus.com>
4316 * Makefile.in: Rebuilt.
4317 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4318 environment variable.
4320 2000-09-01 Andrew Haley <aph@redhat.com>
4322 * java/io/StreamTokenizer.java: Don't throw a
4323 NumberFormatException if a field is numeric as far as the
4324 StreamTokenizer is concerned but not as far as Double.valueOf() is
4325 concerned: return a zero instead.
4327 2000-08-30 Tom Tromey <tromey@cygnus.com>
4329 * Makefile.in: Rebuilt.
4330 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4332 2000-08-28 Tom Tromey <tromey@cygnus.com>
4334 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4335 gnu/gcj/awt/ComponentDataBlitOp.java,
4336 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4337 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4338 java/awt/color/ICC_ColorSpace.java,
4339 java/awt/color/ICC_Profile.java,
4340 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4341 java/awt/image/ComponentColorModel.java,
4342 java/awt/image/ComponentSampleModel.java,
4343 java/awt/image/DataBuffer.java,
4344 java/awt/image/DataBufferByte.java,
4345 java/awt/image/DataBufferInt.java,
4346 java/awt/image/DataBufferUShort.java,
4347 java/awt/image/DirectColorModel.java,
4348 java/awt/image/IndexColorModel.java,
4349 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4350 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4351 java/awt/image/SinglePixelPackedSampleModel.java,
4352 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4353 Removed Latin-1 copyright symbols.
4354 * java/util/zip/ZipFile.java: Indentation fixes.
4356 2000-08-27 Mark Wielaard <mark@klomp.org>
4358 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4359 constructor, close can delete the file, finalize calls close.
4360 * java/util/jar/JarFile.java: Constructor that takes mode now
4363 2000-08-27 Anthony Green <green@redhat.com>
4365 * java/util/ArrayList.java, java/util/Timer.java,
4366 java/util/LinkedList.java, java/util/TimerTask.java,
4367 java/util/HashMap.java, java/util/AbstractMap.java,
4368 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4369 java/util/SortedSet.java: Imported from GNU Classpath.
4370 * Makefile.in: Rebuilt.
4371 * Makefile.am: Added new files.
4373 2000-08-26 Anthony Green <green@redhat.com>
4375 * Makefile.in: Rebuilt.
4376 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4379 * prims.cc: Include ClassLoader.h.
4380 (_Jv_RunMain): When executing jar files, classpath must be the jar
4381 file only. Lose our reference to the system ClassLoader in order
4382 to get a new one with the correct classpath.
4383 * java/lang/natSystem.cc (init_properties): When executing a jar
4384 file, only use the jar file for java.class.path.
4386 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4387 for bytecode archives.
4389 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4390 exists, but not Main-Class.
4392 2000-08-23 Mark Wielaard <mark@klomp.org>
4394 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4395 return -1 when fill() has no more data for the Inflater.
4397 2000-08-23 Mark Wielaard <mark@klomp.org>
4399 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4400 write(String) already does.
4402 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4404 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4405 to `alive_flag', call `init'.
4406 (init): New native method.
4407 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4410 2000-08-21 Mark Wielaard <mark@klomp.org>
4412 * Makefile.in: Rebuilt.
4413 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4415 (java/lang/reflect/Field.h): Likewise.
4416 (java/lang/reflect/Method.h): Likewise.
4417 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4420 2000-08-21 Tom Tromey <tromey@cygnus.com>
4422 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4425 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4427 * java/lang/natSystem.cc (init_properties): Change sourceware
4428 reference to sources.redhat.com.
4430 * include/java-props.h: Add _Jv_Jar_Class_Path.
4431 * prims.cc: Ditto. Set it from `gij -jar file' option.
4433 * java/lang/natSystem.cc (init_properties): Set java.class.path
4435 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4437 * java/util/PropertyPermission.java: Import from GNU Classpath.
4438 * Makefile.in: Rebuilt.
4439 * Makefile.am: Add java/util/PropertyPermission.java.
4440 * java/lang/System.java: Add setProperty method.
4442 * gij.cc (main): Add -jar option to execute jar files.
4443 (help): Describe -jar option.
4444 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4445 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4446 * gnu/gcj/runtime/FirstThread.java (main): New method.
4448 * java/util/jar/Attributes.java: Correct comment spelling.
4450 2000-08-20 Mark Wielaard <mark@klomp.org>
4452 * java/util/zip/Adler32.java: Make private variables really private
4453 * java/util/zip/CRC32.java: Make private variables really private
4454 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4456 * java/util/zip/InflaterInputStream.java: skip() could skip to
4458 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4459 * java/util/zip/ZipFile.java: size() new 1.2 method
4460 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4461 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4464 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4466 * java/util/jar/JarFile.java: Don't call
4467 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4470 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4472 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4473 Read the entire contents of the class file, not just what is
4476 * java/net/JarURLConnection.java: getEntry doesn't take any
4477 arguments. Return null if element is null.
4479 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4480 size from the archive, not the inflated size.
4482 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4483 java.util.zip.ZipFile.getEntry.
4485 * gij.cc (help): Change sourceware reference to
4488 2000-08-19 Tom Tromey <tromey@cygnus.com>
4490 * java/util/zip/ZipInputStream.java (createZipEntry):
4493 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4495 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4496 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4497 java/util/jar/JarInputStream.java,
4498 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4499 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4500 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4501 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4502 java/security/cert/Certificate.java,
4503 java/security/cert/CertificateEncodingException.java,
4504 java/security/cert/CertificateException.java,
4505 java/security/cert/CertificateExpiredException.java,
4506 java/security/cert/CertificateFactory.java,
4507 java/security/cert/CertificateFactorySpi.java,
4508 java/security/cert/CertificateNotYetValidException.java,
4509 java/security/cert/CertificateParsingException.java,
4510 java/security/cert/X509CRL.java,
4511 java/security/cert/X509CRLEntry.java,
4512 java/security/cert/X509Certificate.java,
4513 java/security/cert/X509Extension.java: Imported from Classpath.
4514 * java/util/Hashtable.java: Imported from Classpath.
4516 * java/util/zip/ZipInputStream.java: Create stub for
4519 * gcj/javaprims.h: Updated class list.
4521 * Makefile.in, gcj/Makefile.in: Rebuilt.
4522 * Makefile.am (ordinary_java_source_files): Add these new classes.
4524 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4526 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4527 * gnu/gcj/awt/GLightweightPeer.java: New file.
4528 * java/awt/BorderLayout.java: Implemented all methods.
4529 * java/awt/Button.java (actionListener, actionCommand): Renamed
4530 and modifier change.
4531 (addNotify): Call super.
4532 (dispatchEventImpl): New method.
4533 (getListeners): New method.
4534 (label): Made package-private, not private.
4535 * java/awt/Canvas.java: Implemented class body.
4536 * java/awt/Color.java (brighter): New method.
4537 (darker): New method.
4538 (hashCode): New method.
4539 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4540 (getGraphicsConfiguration): Delegate to
4541 getGraphicsConfigurationImpl().
4542 (getGraphicsConfigurationImpl): New method.
4543 (getToolkit): Only return value from peer if not null.
4544 (isDisplayable): Check with parent.
4545 (isShowing): No parent implies not showing.
4546 (getForeground): Check parent property if local is null.
4547 (getBackground): Likewise.
4548 (getFont): Likewise.
4549 (setForeground): Inform peer.
4550 (setBackground): Likewise
4551 (setLocale): Invalidate component.
4552 (getColorModel): Implemented.
4553 (setLocation): Invalidate, or ignore if no change.
4554 (setSize): Invalidate, or ignore if no change.
4555 (setBounds): Invalidate, or ignore if no change.
4556 (isOpaque): By default, heavyweight implies opaque.
4557 (isLightweight): Implemented.
4558 (getMaximumSize): Implemented.
4559 (doLayout): Implemented, NOP.
4560 (validate): Implemented, NOP.
4561 (invalidate): Only propagate to parent if parent was valid.
4562 (getGraphics): Implemented.
4563 (getFontMetrics): Implemented.
4564 (update): Implemented.
4565 (paintAll): Implemented.
4566 (repaint): Implemented all repaint methods.
4567 (print): Implemented.
4568 (printAll): Implemented.
4569 (createImage): Implemented.
4570 (dispatchEvent): Give the peer a chance to handle the event.
4571 (dispatchEventImpl): Dispatch paint events.
4572 (enableEvents): Lightweights enable events on parent component.
4573 (coalesceEvents): Coalesce paint events, and select event type
4575 (coalescePaintEvents): New method.
4576 (processEvent): Fix unfortunate ordering of statements, and call
4577 correct method for MOUSE_CLICKED.
4578 (processPaintEvent): New method.
4579 (addNotify): Allow container to notify children before event
4580 mask is set in peer.
4581 (addNotifyContainerChildren): New method.
4582 (removeNotify): Visibility should not change on removeNotify.
4583 (paramString): Implemented.
4584 (list): Implemented two of the list methods.
4585 * Container (myInsets): Removed, insets are managed by peer.
4586 (getInsets): Query peer.
4587 (addImpl): Fix reparenting, enable events for lightweights,
4588 initialize component array.
4589 (validate): Call doLayout in validateTree() instead.
4590 (validateTree): Do nothing if already valid. Call beginValidate(),
4591 endValidate() on peer. Call validateTree() instead of validate()
4592 for children that are containers. Mark valid after validation of
4594 (setFont): Partial implementation.
4595 (paint): Implemented.
4596 (visitChildren): New method.
4597 (visitChild): New method.
4598 (update): Implemented.
4599 (print): Implemented.
4600 (paintComponents): Implemented.
4601 (printComponents): Consider translation and clipping.
4602 (getComponentAt): Ignore invisible children. Return this if no
4604 (addNotify): Call super.
4605 (addNotifyContainerChildren): New method.
4606 (paramString): Implemented.
4607 (list): Implemented.
4608 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4610 (invokeLater): Likewise.
4611 (isDispatchThread): Likewise.
4612 * java/awt/FontMetrics (getLeading): Formula change.
4613 (getDescent): Consider leading also.
4614 (getMaxAscent): Default to getAscent().
4615 (getMaxDescent): Default to getDescent.
4616 (getMaxAdvance): Return value signifying unknown.
4617 (charWidth): Both methods implemented.
4618 (charsWidth): Implemented.
4619 (bytesWidth): Implemented.
4620 (getWidths): Implemented.
4621 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4623 (Frame): Rearragend constuctor chaining to disallow null being
4624 passed as a graphics configuration.
4625 (getTitle): Return empty string if null.
4627 (getIconImage): New method.
4628 (setIconImage): New method.
4629 (finalize): New method.
4630 (setMenuBar): Notify peer.
4631 (isResizable): New method.
4632 (setResizable): New method.
4633 (getState): New method.
4635 (remove): Implemented.
4636 (removeNotify): New method.
4637 (getFrames): New method.
4638 * java/awt/Graphics.java: Implemented body of class.
4639 * java/awt/Graphics2D.java: New file.
4640 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4641 * java/awt/Image.java: Implemented body of class.
4642 * java/awt/Panel.java (Panel): Call correct super constructor.
4643 (addNotify): Implemented.
4644 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4645 * java/awt/RenderingHints.java: New file.
4646 * java/awt/Toolkit.java (createComponent): Implemented.
4647 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4648 * java/awt/Window.java (Window): Two new constructors. Reordered
4649 constructor chaining.
4650 (getGraphicsConfigurationImpl): New method.
4651 (finalize): Call super.
4652 (addNotify): Call super.
4653 (pack): Do layout stuff.
4654 (show): Ensure that peer exists and that component is valid.
4655 (dispose): Dispose owned children.
4656 (getOwner): Simplify code, casting null pointers is valid.
4657 (getGraphicsConfiguration): Ask peer if local value is null.
4658 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4660 * java/awt/image/BufferedImage.java: New file.
4661 * java/awt/image/RasterOp.java: New file.
4662 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4663 More powerfull replacement for getColorModel().
4664 (getColorModel) Removed.
4665 (setEventMask) New method.
4666 * Makefile.am: Added new files.
4667 * Makefile.in: Rebuilt.
4669 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4671 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4672 (finit_leg_name): New global.
4673 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4674 `$finit$'. This is a backward compatibility hack.
4675 (java::lang::Class::_getMethods): Likewise.
4677 2000-08-15 Andrew Haley <aph@cygnus.com>
4679 * include/jvm.h (_Jv_HashCode): New hash code.
4681 2000-08-15 Tom Tromey <tromey@cygnus.com>
4683 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4685 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4687 * THANKS: More thanks.
4689 2000-08-10 Tom Tromey <tromey@cygnus.com>
4691 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4693 (connect): Likewise.
4695 (getOption): Likewise.
4696 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4697 case when errno not set.
4700 (receive): Likewise.
4701 (mcastGrp): Likewise.
4702 (setOption): Likewise.
4703 (getOption): Likewise.
4705 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4706 John Stracke <francis@ecal.com>
4708 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4709 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4711 (disconnect): Don't unset connected flag.
4712 (getHeaderField (String)): Call connect() if not connected.
4713 (getHeaderField (int)): Ditto.
4714 (getHeaderFieldKey): Ditto.
4715 (getHttpHeaders): Don't call connect().
4716 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4717 gotResponseVals): New fields.
4718 (getResponseCode): Call getResponseVals() conditionally.
4719 (getResponseMessage): Ditto.
4720 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4722 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4724 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4725 * Makefile.in: Rebuilt.
4726 * java/awt/Color.java (getTransparency): New method.
4727 * java/awt/Component.java: Various updates.
4728 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4729 after dealing with children.
4730 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4731 * java/awt/Window.java: Various new methods and updates.
4732 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4734 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4735 * java/awt/event/WindowEvent.java (paramString): Ditto.
4736 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4738 * java/awt/geom/Point2D.java (clone): Ditto.
4739 * java/awt/geom/RectangularShape.java (clone): Ditto.
4740 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4741 isAlphaPremultiplied): Make package-private, not private.
4743 2000-08-08 Tom Tromey <tromey@cygnus.com>
4745 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4746 surrogate characters.
4747 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4749 (write): Correct handling of surrogate characters.
4751 2000-08-07 Tom Tromey <tromey@cygnus.com>
4753 * java/lang/reflect/Method.java (hashCode): Use getName().
4754 (toString): Likewise.
4755 * java/lang/reflect/natMethod.cc (getType): Initialize
4758 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4760 * java/lang/reflect/Field.java (toString): Correct formatting.
4763 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4765 (receive): Streamlined.
4767 2000-08-05 Tom Tromey <tromey@cygnus.com>
4769 * java/io/PrintWriter.java: Merged comments from Classpath.
4770 (printlnUnsynchronized): Removed.
4771 (println()): Print the separator.
4772 (println): Call println(), not printlnUnsynchronized.
4773 (out): Now protected, to match spec.
4775 2000-08-04 Tom Tromey <tromey@cygnus.com>
4777 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4778 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4781 2000-08-03 Warren Levy <warrenl@cygnus.com>
4783 * java/io/ObjectInputStream.java (readFields): Turn off
4784 readDataFromBlock while reading via GetField.
4785 (GetField$1.get(String, Object)): Pass Class of default value to
4787 (getField): Allow for null default values.
4789 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4790 (PutField$1.put): Fixed calls of checkType in most of the put
4791 methods to pass the correct parameter.
4792 (PutField$1.put(String, Object)): Allow for null value arg.
4793 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4796 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4797 typo in spec'ed field name.
4798 (getSerialPersistentFields): Changed spelling of method to match
4799 the correct spelling of the spec'ed field name.
4801 2000-08-03 Tom Tromey <tromey@cygnus.com>
4803 * Makefile.in: Rebuilt.
4804 * Makefile.am (awt_java_source_files): Added new files.
4806 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4808 * Makefile.am: Add new AWT stubs.
4809 * java/awt/Canvas.java: New placeholder class.
4810 * java/awt/Checkbox.java: Ditto.
4811 * java/awt/CheckboxMenuItem.java: Ditto.
4812 * java/awt/Choice.java: Ditto.
4813 * java/awt/Dialog.java: Ditto.
4814 * java/awt/FileDialog.java: Ditto.
4815 * java/awt/List.java: Ditto.
4816 * java/awt/ScrollPane.java: Ditto.
4817 * java/awt/TextField.java: Ditto.
4818 * java/awt/datatransfer/Clipboard.java: Ditto.
4819 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4820 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4821 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4822 Some commented out. Partially implemented.
4823 * java/awt/natToolkit.cc: Removed file.
4825 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4827 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4828 Fixes "make -j" builds.
4829 * Makefile.in: Rebuild.
4831 2000-08-02 Tom Tromey <tromey@cygnus.com>
4833 * Makefile.in: Rebuilt.
4834 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4835 * java/net/natPlainSocketImpl.cc: Include posix.h.
4836 (accept): Use _Jv_select.
4837 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4838 (receive): Use _Jv_select.
4839 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4840 (available): Use _Jv_select.
4841 * java/lang/natSystem.cc: Include posix.h.
4842 (currentTimeMillis): Use _Jv_gettimeofday.
4843 * include/posix.h: New file.
4844 * posix.cc: New file.
4846 * scripts/encodings.pl: New file.
4847 * Makefile.in: Rebuilt.
4848 * Makefile.am (convert_source_files): Added IOConverter.java.
4849 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4851 (getDefaultDecodingClass): Canonicalize default encoding name.
4852 (getEncoder): Likewise.
4853 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4855 (getDefaultDecodingClass): Canonicalize default encoding name.
4856 (getDecoder): Likewise.
4857 * gnu/gcj/convert/IOConverter.java: New file.
4859 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4861 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4862 to match C declaration in ffi.h.
4863 * Makefile.am: Add java/awt/Button.java.
4864 * Makefile.in: Rebuilt.
4866 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4868 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4869 cast of the second argument to `ffi_raw_call' changed to match
4872 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4874 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4875 argument to `ffi_raw_call' changed to match prototype.
4877 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4879 * java/awt/Component.java (toString): Implemented.
4880 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4881 dispatchEvent() to dispatch the event.
4882 (removeImpl): Ditto.
4884 2000-07-30 Anthony Green <green@redhat.com>
4886 * java/awt/Component.java: Add treeLock object.
4887 (getTreeLock): Implement.
4888 (isShowing): Implement.
4890 2000-07-30 Tom Tromey <tromey@cygnus.com>
4892 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4894 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4896 * java/awt/Window.java (addNotify): Wrote.
4897 (addWindowListener): Wrote.
4899 (getWarningString): Wrote.
4900 (processEvent): Wrote.
4901 (processWindowEvent): Wrote.
4902 (removeWindowListener): Wrote.
4903 (show): Call validate(), setVisible().
4907 * java/awt/Toolkit.java (createWindow): Declare.
4909 * java/awt/Frame.java (addNotify): Use getToolkit to find
4912 * java/awt/Component.java (invalidate): Wrote.
4914 (getToolkit): Wrote.
4916 * java/awt/Container.java (addContainerListener): Removed
4918 (removeContainerListener): Likewise.
4920 (add(Component)): Use it.
4921 (add(String,Component)): Likewise.
4922 (add(Component,int)): Likewise.
4923 (add(Component,Object)): Likewise.
4924 (add(Component,Object,int)): Likewise.
4926 (getAlignmentX): Wrote.
4927 (getAlignmentY): Wrote.
4928 (getComponentAt): Wrote.
4929 (getMaximumSize): Wrote.
4930 (invalidate): Wrote.
4931 (list(PrintStream,int)): Wrote.
4932 (list(PrintWriter,int)): Wrote.
4933 (getMinimumSize): Wrote.
4934 (getPreferredSize): Wrote.
4935 (printComponents): Wrote.
4936 (processContainerEvent): Look at containerListener, not
4938 (remove): Added event processing and peer destruction.
4939 (removeAll): Use remove.
4940 (removeNotify): Wrote.
4942 (validateTree): Wrote.
4944 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4945 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4946 * java/awt/Container.java (addNotify): Don't create Container
4948 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4950 2000-07-30 Tom Tromey <tromey@cygnus.com>
4952 * java/awt/Container.java (remove(int)): Wrote.
4953 (remove(Component)): Wrote.
4954 (add(Component)): Wrote.
4955 (add(Component,int)): Wrote.
4957 (addNotify): Set our own peer.
4958 * java/awt/Scrollbar.java (listeners): Changed type.
4959 (Scrollbar): Don't initialize listeners.
4961 (setValue): Call setValues.
4962 (setMinimum): Likewise.
4963 (setMaxPriority): Likewise.
4964 (setVisibleAmount): Likewise.
4966 (setUnitIncrement): Forward to peer.
4967 (setLineIncrement): Call setUnitIncrement.
4968 (setPageIncrement): Call setBlockIncrement.
4969 (setBlockIncrement): Forward to peer.
4970 (addAdjustmentListener): Rewrote.
4971 (removeAdjustmentListener): Rewrote.
4972 (processAdjustmentEvent): Rewrote.
4973 (paramString): Wrote.
4974 * Makefile.in: Rebuilt.
4975 * Makefile.am (awt_java_source_files): Added Button.java.
4976 * java/awt/Button.java: New file.
4977 * java/awt/Toolkit.java (createLabel): Declare.
4978 (createButton): Likewise.
4979 (createScrollbar): Likewise.
4980 (createContainer): Likewise.
4981 * java/awt/Label.java (addNotify): Wrote.
4982 (setAlignment): Call setAlignment in the peer.
4983 (setText): Call setText in the peer.
4985 2000-07-28 Warren Levy <warrenl@cygnus.com>
4987 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4988 NotSerializableException with just the class name.
4990 2000-07-26 Andrew Haley <aph@cygnus.com>
4992 * interpret.cc (continue1): Insert missing break into switch.
4994 2000-07-28 Warren Levy <warrenl@cygnus.com>
4996 * java/io/ObjectStreamException.java: Made constructors protected.
4998 2000-07-27 Tom Tromey <tromey@cygnus.com>
5000 * java/io/OutputStreamWriter.java (close): Only flush if not
5003 2000-07-27 Warren Levy <warrenl@cygnus.com>
5005 * mauve-libgcj: Activated serialization tests.
5006 * gcj/field.h (getModifiers): Mask off unknown flags.
5007 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5008 spurious bits don't cause discrepancies.
5009 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5010 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5011 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5012 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5013 * java/lang/Throwable.java (serialVersionUID): New field.
5014 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5015 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5017 * java/lang/reflect/natMethod.cc: Ditto.
5018 * java/security/Key.java (serialVersionUID): Removed field for now.
5019 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5020 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5022 2000-07-22 Tom Tromey <tromey@cygnus.com>
5024 * java/awt/geom/RectangularShape.java (getPathIterator):
5027 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5029 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5030 stub libjava/java/awt/ColorModel.java which was located in the
5032 * libjava/java/awt/image/ComponentColorModel.java: New file.
5033 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5034 * libjava/java/awt/image/DataBuffer.java: New file.
5035 * libjava/java/awt/image/DataBufferByte.java: New file.
5036 * libjava/java/awt/image/DataBufferInt.java: New file.
5037 * libjava/java/awt/image/DataBufferUShort.java: New file.
5038 * libjava/java/awt/image/DirectColorModel.java: New file.
5039 * libjava/java/awt/image/PackedColorModel.java: New file.
5040 * libjava/java/awt/image/Raster.java: New file.
5041 * libjava/java/awt/image/SampleModel.java: New file.
5042 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5044 * libjava/java/awt/image/IndexColorModel.java: New file.
5045 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5046 java.awt.ColorModel stub.
5048 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5049 * gnu/gcj/util/Buffers.java: New file, utility class.
5051 * libjava/Makefile.am: Updated to include new files.
5052 * libjava/Makefile.in: Rebuilt.
5054 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5056 * java/io/StreamTokenizer.java: Merged with classpath.
5058 2000-07-20 Tom Tromey <tromey@cygnus.com>
5060 * Makefile.in: Rebuilt.
5061 * Makefile.am (awt_java_source_files): Updated for new files.
5062 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5063 * java/awt/Label.java: New file.
5064 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5065 (createIntersection, createUnion, getBounds2D): New methods.
5066 * java/awt/Scrollbar.java: New file.
5067 * java/awt/Shape.java: Updated to 1.2.
5068 * java/awt/geom/AffineTransform.java: New file.
5069 * java/awt/geom/Ellipse2D.java: New file.
5070 * java/awt/geom/NoninvertibleTransformException.java: New file.
5071 * java/awt/geom/PathIterator.java: New file.
5072 * java/awt/geom/Rectangle2D.java: New file.
5073 * java/awt/geom/RectangularShape.java: New file.
5074 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5075 * java/awt/geom/IllegalPathStateException.java: New file.
5077 * scripts/showval.java: New file.
5079 * scripts/classes.pl (scan): Print inner classes properly.
5080 * gcj/javaprims.h: Updated class list.
5082 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5083 initialize String fields for interpreted classes. Fixes bug
5084 reported by Hans Boehm.
5086 * java/io/File.java (getParentFile): New method, from Classpath
5087 via Oskar Liljeblad.
5089 * java/util/Vector.java (remove(Object)): Implemented.
5091 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5093 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5094 zero return from backtrace().
5096 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5098 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5100 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5101 before calling notifyAll().
5103 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5105 Add missing files from last check-in:
5106 * java/awt/image/ImageConsumer.java: New file.
5107 * java/awt/image/ImageProducer.java: New file.
5108 * java/awt/image/ImageObserver.java: New file.
5110 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5112 Merged implementation of java.applet from classpath:
5113 * java/applet/Applet.java: New file.
5114 * java/applet/AppletContext.java: New file.
5115 * java/applet/AppletStub.java: New file.
5116 * java/applet/AudioClip.java: New file.
5118 * Makefile.am: Added new java.applet classes.
5119 * Makefile.in: Rebuilt.
5121 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5124 * java/util/ResourceBundle.java (getLocale): stub.
5125 * Makefile.am: Added new AWT classes.
5126 * Makefile.in: Rebuilt.
5127 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5128 constructors. Fix toString() and paramString().
5129 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5130 * java/awt/CheckboxGroup.java: New class.
5131 * java/awt/ColorModel.java: New class.
5132 * java/awt/Component.java: Added stubs for most methods. Implemented
5134 * java/awt/Container.java: ditto.
5135 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5136 * java/awt/Cursor.java: ditto.
5137 * java/awt/Event.java: Fix paramString().
5138 * java/awt/EventQueue.java: New class. Implemented.
5139 * java/awt/Font.java: Added additional stub methods. Implemented
5141 * java/awt/FontMetrics.java: New class. Stubbed.
5142 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5144 * java/awt/Insets.java: New class. Implemented.
5145 * java/awt/Menu.java: Add new methods. Partially implemented.
5146 * java/awt/MenuItem.java: Add new methods and fields. Partially
5148 * java/awt/MenuShortcut.java: New class. Implemented.
5149 * java/awt/Panel.java: New class. Placeholder.
5150 * java/awt/PopupMenu.java: New class. Stubbed.
5151 * java/awt/Rectangle.java: New class. Implemented.
5152 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5153 * java/awt/event/ActionEvent.java: Implement paramString().
5154 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5155 * java/awt/event/ComponentEvent.java: Implement paramString().
5156 * java/awt/event/ContainerEvent.java: Implement paramString().
5157 * java/awt/event/FocusEvent.java: Implement paramString().
5158 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5159 * java/awt/event/HierarchyBoundsListener.java: New class.
5160 * java/awt/event/HierarchyEvent.java: New class.
5161 * java/awt/event/HierarchyListener.java: New class.
5162 * java/awt/event/InputMethodEvent.java: Implement paramString().
5163 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5164 exception if !catchExceptions.
5165 * java/awt/event/ItemEvent.java: Implement paramString().
5166 * java/awt/event/KeyEvent.java: Implement paramString().
5167 * java/awt/event/MouseEvent.java: Implement paramString().
5168 * java/awt/event/PaintEvent.java: Implement paramString().
5169 * java/awt/event/TextEvent.java: Implement paramString().
5170 * java/awt/event/WindowEvent.java: Implement paramString().
5172 AWT Peer interfaces:
5173 * java/awt/peer/ButtonPeer.java: New file.
5174 * java/awt/peer/ListPeer.java: New file.
5175 * java/awt/peer/CanvasPeer.java: New file.
5176 * java/awt/peer/MenuBarPeer.java: New file.
5177 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5178 * java/awt/peer/MenuComponentPeer.java: New file.
5179 * java/awt/peer/CheckboxPeer.java: New file.
5180 * java/awt/peer/MenuItemPeer.java: New file.
5181 * java/awt/peer/ChoicePeer.java: New file.
5182 * java/awt/peer/MenuPeer.java: New file.
5183 * java/awt/peer/ComponentPeer.java: Implemented.
5184 * java/awt/peer/PanelPeer.java: New file.
5185 * java/awt/peer/ContainerPeer.java: Implemented.
5186 * java/awt/peer/PopupMenuPeer.java: New file.
5187 * java/awt/peer/DialogPeer.java: New file.
5188 * java/awt/peer/ScrollPanePeer.java: New file.
5189 * java/awt/peer/FileDialogPeer.java: New file.
5190 * java/awt/peer/ScrollbarPeer.java: New file.
5191 * java/awt/peer/FontPeer.java: New file.
5192 * java/awt/peer/TextAreaPeer.java: New file.
5193 * java/awt/peer/FramePeer.java: Implemented.
5194 * java/awt/peer/TextComponentPeer.java: New file.
5195 * java/awt/peer/LabelPeer.java: New file.
5196 * java/awt/peer/TextFieldPeer.java: New file.
5197 * java/awt/peer/LightweightPeer.java: New file.
5198 * java/awt/peer/WindowPeer.java: Implemented.
5200 2000-07-06 Tom Tromey <tromey@cygnus.com>
5202 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5203 Initialize static final String fields.
5205 2000-07-03 Tom Tromey <tromey@cygnus.com>
5207 * java/io/PrintWriter.java (print): Call write(String), not
5208 print(String). See PR libgcj/277.
5209 (print(String)): Use write, not out.write.
5211 2000-06-30 Tom Tromey <tromey@cygnus.com>
5213 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5215 2000-06-27 Andrew Haley <aph@cygnus.com>
5217 * java/io/File.java (createTempFile): Close the FileDescriptor
5218 used to create a temp file. Fixes some of PR 203.
5219 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5220 collection if we run out of file handles.
5222 2000-06-28 Warren Levy <warrenl@cygnus.com>
5224 * gnu/java/security/provider/Gnu.java: New file.
5225 * gnu/java/security/provider/SHA.java: New file.
5226 * gnu/java/security/provider/SHA1PRNG.java: New file.
5227 * Makefile.am: Added the above files.
5228 * Makefile.in: Rebuilt.
5230 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5232 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5234 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5235 (destroyed_flag): Removed.
5236 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5237 (activeCount): Added spec note.
5239 2000-06-27 Warren Levy <warrenl@cygnus.com>
5241 * java/security/Principal.java: New file.
5242 * Makefile.am: Added Principal.java.
5243 * Makefile.in: Rebuilt.
5245 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5247 * java/awt/event/MouseEvent.java: Fixed coordinate space
5250 2000-06-27 Tom Tromey <tromey@cygnus.com>
5252 * java/io/PushbackInputStream.java (read): If there are characters
5253 in the buffer, don't also call super.read().
5254 * java/io/PushbackReader.java (read): If there are characters in
5255 the buffer, don't also call super.read().
5257 * java/lang/Double.java (valueOf): Call parseDouble().
5259 2000-06-26 Warren Levy <warrenl@cygnus.com>
5261 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5262 (newVal): Renamed to newValue.
5263 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5264 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5265 (revokeNow): Renamed to invalidateRefs.
5266 * java/io/OptionalDataException.java: Updated FIXME.
5267 (eof): New placeholder field.
5269 * java/io/WriteAbortedException.java (message): Made transient.
5270 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5271 * java/lang/Throwable.java (stackTrace): Made transient.
5272 * java/net/InetAddress.java: Made Serializable.
5273 * java/security/KeyPair.java: Made Serializable.
5274 * java/security/Provider.java: Replaced with Classpath version that
5275 implements serialization and proper methods.
5276 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5277 (limits): Renamed to choiceLimits.
5279 2000-06-24 Tom Tromey <tromey@cygnus.com>
5281 * java/lang/natDouble.cc (parseDouble): Renamed from
5283 * java/lang/Double.java (parseDouble): Renamed from
5284 doubleValueOf. Now public.
5286 2000-06-23 Andrew Haley <aph@cygnus.com>
5288 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5289 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5291 2000-06-23 Tom Tromey <tromey@cygnus.com>
5293 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5294 * java/lang/natDouble.cc: Always include <alloca.h>.
5295 Fix for PR libgcj/267.
5297 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5299 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5300 comply with classpath VM spec.
5301 (add(Group)): Rename to addGroup().
5302 * java/lang/Thread.java (Thread): Use addThread().
5303 * java/lang/natThread.cc (finish_): Use removeThread().
5305 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5307 * java/lang/ThreadGroup.java: Merged with classpath.
5308 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5309 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5311 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5312 ThreadGroup.root if Thread.currentThread is null. Honour the
5313 ThreadGroup's max priority setting.
5315 2000-06-18 Tom Tromey <tromey@cygnus.com>
5317 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5318 returned class. For PR gcj/260.
5320 2000-06-16 Tom Tromey <tromey@cygnus.com>
5322 Fix for PR libgcj/261:
5323 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5325 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5326 argument. (This is a patch from long ago that somehow went
5329 2000-06-15 Tom Tromey <tromey@cygnus.com>
5331 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5335 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5337 Fix for PR java.lang/258:
5338 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5339 JV_STATE_DONE, to prevent accidental initialization.
5340 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5341 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5342 interface or an abstract class. Remove redundant initializeClass calls.
5343 Remove duplicate if_idt test.
5344 (_Jv_InterfaceAssignableFrom): New function.
5345 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5347 2000-05-31 Tom Tromey <tromey@cygnus.com>
5349 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5350 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5351 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5352 (NUM_OBJECT_METHODS): New define.
5353 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5354 `array_vtable' parameter. Added assertion.
5355 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5358 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5360 * gcj/cni.h: Include <string.h>.
5361 * defineclass.cc: Include <alloca.h>.
5362 * interpret.cc: Ditto.
5363 * gij.cc: Include <stdlib.h>.
5365 2000-05-30 Tom Tromey <tromey@cygnus.com>
5367 * include/name-finder.h: Include <sys/wait.h>.
5368 (_Jv_name_finder::pid): Now of type `pid_t'.
5369 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5370 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5373 2000-05-24 Warren Levy <warrenl@cygnus.com>
5375 * java/io/ObjectOutputStream.java (writeObject): Use component type
5376 when writing arrays.
5379 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5381 Fix for PR libgcj/226:
5382 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5383 since this is an installed header.
5385 Fix for PR libgcj/228:
5386 * java/util/zip/ZipFile (getInputStream): Create inflater with
5389 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5390 with DataFormatException.
5392 2000-05-20 Tom Tromey <tromey@cygnus.com>
5394 * Makefile.in: Rebuilt.
5395 * Makefile.am (hack1): Removed.
5396 (awto_files): Likewise.
5397 (libgcjawt_la_SOURCES): Likewise.
5398 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5399 (libgcjawt_la_DEPENDENCIES): Likewise.
5400 (libgcjawt_la_LIBADD): Likewise.
5401 (libgcjawt_la_LDFLAGS): Likewise.
5402 (libgcjawt_la_LINK): Likewise.
5403 ($(awt_java_source_files:.java=.class)): Likewise.
5404 (libgcj.zip): Don't depend on AWT files.
5405 (MOSTLYCLEANFILES): Don't include AWT files.
5406 ($(awto_files)): Removed.
5407 (nat_headers): Removed AWT files.
5408 (cond_awt_java_source_files): Removed.
5409 (ordinary_java_source_files): Added awt_java_source_files.
5410 * libgcj.spec.in (*lib): Removed -lgcjawt.
5411 * configure: Rebuilt.
5412 * configure.in: Removed --enable-java-awt option.
5414 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5416 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5417 (ZipEntry): Copy the `name' field.
5418 (clone): Implement JDK1.2 method.
5419 (setCompressedSize): ditto.
5422 2000-05-19 Tom Tromey <tromey@cygnus.com>
5424 * java/io/BufferedWriter.java: Merged with Classpath.
5425 * java/io/BufferedOutputStream.java: Merged with Classpath.
5427 2000-05-16 Andrew Haley <aph@cygnus.com>
5429 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5430 build_ia64_frame_state.
5431 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5434 2000-05-15 Warren Levy <warrenl@cygnus.com>
5436 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5437 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5438 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5439 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5440 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5441 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5442 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5443 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5444 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5445 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5446 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5447 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5448 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5449 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5450 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5451 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5452 * gnu/gcj/io/NullOutputStream.java: Removed.
5453 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5454 * gnu/gcj/lang/ArrayHelper.java: Removed.
5455 * gnu/gcj/lang/ClassHelper.java: Removed.
5456 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5458 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5459 * gnu/java/beans/EmptyBeanInfo.java: New file.
5460 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5461 * gnu/java/beans/IntrospectionIncubator.java: New file.
5462 * gnu/java/beans/editors/ColorEditor.java: New file.
5463 * gnu/java/beans/editors/FontEditor.java: New file.
5464 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5465 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5466 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5467 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5468 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5469 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5470 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5471 * gnu/java/beans/editors/StringEditor.java: New file.
5472 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5473 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5474 * gnu/java/io/NullOutputStream.java: New file.
5475 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5476 * gnu/java/lang/ArrayHelper.java: New file.
5477 * gnu/java/lang/ClassHelper.java: New file.
5478 * gnu/java/lang/reflect/TypeSignature.java: New file.
5480 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5481 namespace back to the original Classpath gnu/java namespace.
5482 * Makefile.in: Rebuilt.
5484 * java/beans/Beans.java: Namespace change.
5485 * java/beans/EventSetDescriptor.java: Namespace change.
5486 * java/beans/Introspector.java: Namespace change.
5487 * java/beans/PropertyEditorManager.java: Namespace change.
5488 * java/io/ObjectInputStream.java: Namespace change.
5489 * java/io/ObjectOutputStream.java: Namespace change.
5490 * java/io/ObjectStreamClass.java: Namespace change.
5491 * java/io/ObjectStreamField.java: Namespace change.
5493 2000-04-21 Warren Levy <warrenl@cygnus.com>
5495 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5496 now that compiler patch is available.
5497 Removed unneeded System.loadLibrary.
5498 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5499 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5501 2000-04-19 Andrew Haley <aph@cygnus.com>
5503 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5504 and target classes have been initialized.
5506 2000-04-19 Andrew Haley <aph@cygnus.com>
5508 * java/lang/String.java: implement Serializable, Comparable.
5509 (compareTo (Object)): New method.
5511 2000-04-19 Warren Levy <warrenl@cygnus.com>
5513 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5514 instead of getField to retrieve non-public field.
5515 (getSerialPersistantFields): Ditto.
5517 2000-04-18 Warren Levy <warrenl@cygnus.com>
5519 * mauve-libgcj: Turned off object serialization tests temporarily
5520 due to compiler error.
5522 2000-04-17 Warren Levy <warrenl@cygnus.com>
5524 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5525 to avoid build problem.
5527 * mauve-libgcj: Turned on object serialization tests.
5529 2000-04-17 Tom Tromey <tromey@cygnus.com>
5531 * libgcj.spec.in (*lib): Added -lgcjawt.
5533 2000-04-17 Andrew Haley <aph@cygnus.com>
5535 * Makefile.am: Add new files:
5536 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5538 * Makefile.in: Rebuilt.
5540 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5541 interface that has no implementations.
5542 Check for an attempt to assign an abstract class to an interface.
5544 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5545 if we fail to find MessageDigest.getInstance ("SHA").
5547 * gnu/gcj/io/SimpleSHSStream.java: New file.
5548 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5549 * gnu/gcj/io/shs.cc: New file.
5550 * gnu/gcj/io/shs.h: new file.
5552 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5555 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5556 punctuation from the classname of an array element.
5558 * gcj/javaprims.h: Add SimpleDigestStream.
5560 2000-04-17 Andrew Haley <aph@cygnus.com>
5562 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5563 to getPrivateField for superclasses.
5565 2000-04-14 Andrew Haley <aph@cygnus.com>
5567 * Makefile.am: Add new files:
5568 java/io/ObjectOutputStream$PutField.h,
5569 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5570 java/io/natObjectOutputStream.cc
5571 * Makefile.in: Rebuilt.
5572 * gcj/Makefile.in: Rebuilt.
5573 * include/Makefile.in: Rebuilt.
5574 * java/lang/Class.h (getPrivateField): New method.
5575 (getPrivateMethod): Ditto.
5576 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5577 and java::io::ObjectStreamClass our friends.
5578 * java/lang/natClass.cc (getPrivateField): New method.
5579 (getPrivateMethod): Ditto.
5580 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5581 * gcj/javaprims.h: Add serialization classes.
5582 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5583 (setByteField): Ditto.
5584 (setCharField): Ditto.
5585 (setDoubleField): Ditto.
5586 (setFloatField): Ditto.
5587 (setIntField): Ditto.
5588 (setLongField): Ditto.
5589 (setShortField): Ditto.
5590 (setObjectField): Ditto.
5591 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5593 (getByteField): Ditto.
5594 (getCharField): Ditto.
5595 (getDoubleField): Ditto.
5596 (getFloatField): Ditto.
5597 (getIntField): Ditto.
5598 (getLongField): Ditto.
5599 (getShortField): Ditto.
5600 (getObjectField): Ditto.
5601 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5603 (getSerialPersistantFields): Ditto.
5604 (getDefinedSUID): Ditto.
5605 * java/io/natObjectOutputStream.cc: New file.
5606 * java/io/natObjectInputStream.cc: New file.
5608 2000-04-13 Warren Levy <warrenl@cygnus.com>
5610 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5611 problems. Revert to previous version to reproduce and when fixed.
5613 2000-04-13 Warren Levy <warrenl@cygnus.com>
5615 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5616 * gnu/gcj/io/NullOutputStream.java: New file.
5617 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5618 * java/io/BlockDataException.java: New file.
5619 * java/io/Externalizable.java: New file.
5620 * java/io/InvalidClassException.java: New file.
5621 * java/io/InvalidObjectException.java: New file.
5622 * java/io/NotActiveException.java: New file.
5623 * java/io/NotSerializableException.java: New file.
5624 * java/io/ObjectInput.java: New file.
5625 * java/io/ObjectInputStream.java: New file.
5626 * java/io/ObjectInputValidation.java: New file.
5627 * java/io/ObjectOutput.java: New file.
5628 * java/io/ObjectOutputStream.java: New file.
5629 * java/io/ObjectStreamClass.java: New file.
5630 * java/io/ObjectStreamConstants.java: New file.
5631 * java/io/ObjectStreamField.java: New file.
5632 * java/io/Replaceable.java: New file.
5633 * java/io/Resolvable.java: New file.
5634 * java/io/SerializablePermission.java: New file.
5635 * java/io/WriteAbortedException.java: New file.
5636 * java/security/BasicPermission.java: New file.
5637 * java/security/DigestOutputStream.java: New file.
5638 * java/security/Guard.java: New file.
5639 * java/security/Permission.java: New file.
5640 * java/security/PermissionCollection.java: New file.
5641 * Makefile.am: Added above files.
5642 * Makefile.in: Rebuilt.
5644 * java/beans/Beans.java (instantiate): Activated serialization code.
5645 * java/lang/SecurityManager.java (checkPermission): New method.
5647 2000-04-12 Warren Levy <warrenl@cygnus.com>
5649 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5650 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5651 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5652 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5653 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5654 * gnu/gcj/beans/editors/FontEditor.java: New file.
5655 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5656 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5657 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5658 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5659 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5660 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5661 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5662 * gnu/gcj/beans/editors/StringEditor.java: New file.
5663 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5664 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5665 * gnu/gcj/lang/ArrayHelper.java: New file.
5666 * gnu/gcj/lang/ClassHelper.java: New file.
5667 * java/beans/BeanDescriptor.java: New file.
5668 * java/beans/BeanInfo.java: New file.
5669 * java/beans/Beans.java: New file.
5670 * java/beans/Customizer.java: New file.
5671 * java/beans/DesignMode.java: New file.
5672 * java/beans/EventSetDescriptor.java: New file.
5673 * java/beans/FeatureDescriptor.java: New file.
5674 * java/beans/IndexedPropertyDescriptor.java: New file.
5675 * java/beans/IntrospectionException.java: New file.
5676 * java/beans/Introspector.java: New file.
5677 * java/beans/MethodDescriptor.java: New file.
5678 * java/beans/ParameterDescriptor.java: New file.
5679 * java/beans/PropertyChangeEvent.java: New file.
5680 * java/beans/PropertyChangeListener.java: New file.
5681 * java/beans/PropertyChangeSupport.java: New file.
5682 * java/beans/PropertyDescriptor.java: New file.
5683 * java/beans/PropertyEditor.java: New file.
5684 * java/beans/PropertyEditorManager.java: New file.
5685 * java/beans/PropertyEditorSupport.java: New file.
5686 * java/beans/PropertyVetoException.java: New file.
5687 * java/beans/SimpleBeanInfo.java: New file.
5688 * java/beans/VetoableChangeListener.java: New file.
5689 * java/beans/VetoableChangeSupport.java: New file.
5690 * java/beans/Visibility.java: New file.
5691 * java/beans/beancontext/BeanContext.java: New file.
5692 * java/beans/beancontext/BeanContextChild.java: New file.
5693 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5694 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5695 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5696 * java/beans/beancontext/BeanContextEvent.java: New file.
5697 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5698 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5699 * java/beans/beancontext/BeanContextProxy.java: New file.
5700 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5702 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5703 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5705 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5706 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5708 * java/beans/beancontext/BeanContextServices.java: New file.
5709 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5710 * java/util/AbstractCollection.java: New file.
5711 * java/util/AbstractList.java: New file.
5712 * java/util/Arrays.java: New file.
5713 * Makefile.am: Added above files.
5714 * Makefile.in: Rebuilt.
5716 2000-04-11 Warren Levy <warrenl@cygnus.com>
5718 * java/awt/AWTError.java: New file.
5719 * java/awt/AWTEvent.java: New file.
5720 * java/awt/AWTException.java: New file.
5721 * java/awt/ActiveEvent.java: New file.
5722 * java/awt/Adjustable.java: New file.
5723 * java/awt/BorderLayout.java: New file.
5724 * java/awt/Color.java: New file.
5725 * java/awt/Component.java: New file.
5726 * java/awt/Container.java: New file.
5727 * java/awt/Dimension.java: New file.
5728 * java/awt/Event.java: New file.
5729 * java/awt/Font.java: New file.
5730 * java/awt/Frame.java: New file.
5731 * java/awt/Graphics.java: New file.
5732 * java/awt/IllegalComponentStateException.java: New file.
5733 * java/awt/Image.java: New file.
5734 * java/awt/ItemSelectable.java: New file.
5735 * java/awt/LayoutManager.java: New file.
5736 * java/awt/LayoutManager2.java: New file.
5737 * java/awt/Menu.java: New file.
5738 * java/awt/MenuBar.java: New file.
5739 * java/awt/MenuComponent.java: New file.
5740 * java/awt/MenuContainer.java: New file.
5741 * java/awt/MenuItem.java: New file.
5742 * java/awt/Paint.java: New file.
5743 * java/awt/PaintContext.java: New file.
5744 * java/awt/Point.java: New file.
5745 * java/awt/Rectangle.java: New file.
5746 * java/awt/Shape.java: New file.
5747 * java/awt/TextArea.java: New file.
5748 * java/awt/TextComponent.java: New file.
5749 * java/awt/Toolkit.java: New file.
5750 * java/awt/Transparency.java: New file.
5751 * java/awt/Window.java: New file.
5752 * java/awt/natToolkit.cc: New file.
5753 * java/awt/event/AWTEventListener.java: New file.
5754 * java/awt/event/ActionEvent.java: New file.
5755 * java/awt/event/ActionListener.java: New file.
5756 * java/awt/event/AdjustmentEvent.java: New file.
5757 * java/awt/event/AdjustmentListener.java: New file.
5758 * java/awt/event/ComponentAdapter.java: New file.
5759 * java/awt/event/ComponentEvent.java: New file.
5760 * java/awt/event/ComponentListener.java: New file.
5761 * java/awt/event/ContainerAdapter.java: New file.
5762 * java/awt/event/ContainerEvent.java: New file.
5763 * java/awt/event/ContainerListener.java: New file.
5764 * java/awt/event/FocusAdapter.java: New file.
5765 * java/awt/event/FocusEvent.java: New file.
5766 * java/awt/event/FocusListener.java: New file.
5767 * java/awt/event/InputEvent.java: New file.
5768 * java/awt/event/InputMethodEvent.java: New file.
5769 * java/awt/event/InputMethodListener.java: New file.
5770 * java/awt/event/InvocationEvent.java: New file.
5771 * java/awt/event/ItemEvent.java: New file.
5772 * java/awt/event/ItemListener.java: New file.
5773 * java/awt/event/KeyAdapter.java: New file.
5774 * java/awt/event/KeyEvent.java: New file.
5775 * java/awt/event/KeyListener.java: New file.
5776 * java/awt/event/MouseAdapter.java: New file.
5777 * java/awt/event/MouseEvent.java: New file.
5778 * java/awt/event/MouseListener.java: New file.
5779 * java/awt/event/MouseMotionAdapter.java: New file.
5780 * java/awt/event/MouseMotionListener.java: New file.
5781 * java/awt/event/PaintEvent.java: New file.
5782 * java/awt/event/TextEvent.java: New file.
5783 * java/awt/event/TextListener.java: New file.
5784 * java/awt/event/WindowAdapter.java: New file.
5785 * java/awt/event/WindowEvent.java: New file.
5786 * java/awt/event/WindowListener.java: New file.
5787 * java/awt/geom/Dimension2D.java: New file.
5788 * java/awt/geom/Point2D.java: New file.
5789 * java/awt/peer/ComponentPeer.java: New file.
5790 * java/awt/peer/ContainerPeer.java: New file.
5791 * java/awt/peer/FramePeer.java: New file.
5792 * java/awt/peer/WindowPeer.java: New file.
5793 * java/util/Collection.java: New file.
5794 * java/util/Comparator.java: New file.
5795 * java/util/Iterator.java: New file.
5796 * java/util/List.java: New file.
5797 * java/util/ListIterator.java: New file.
5798 * Makefile.am: Added above files.
5799 * Makefile.in: Rebuilt.
5801 2000-04-10 Warren Levy <warrenl@cygnus.com>
5803 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5804 * java/lang/FirstThread.java: Ditto.
5805 * java/lang/StringBuffer.java: Ditto.
5806 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5808 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5809 Special case handled in java.math.BigInteger.
5810 * java/math/BigInteger.java (divide): Handle the special case when
5811 dividing by 1 and the high bit of the dividend is set.
5812 (setShiftRight): Handle case when count == 0.
5814 2000-04-05 Andrew Haley <aph@cygnus.com>
5816 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5819 2000-04-05 Andrew Haley <aph@cygnus.com>
5821 * sysdep/ia64.c (rse_address_add): Delete.
5822 (IS_NaT_COLLECTION_ADDR): Delete.
5823 (ia64_backtrace_helper): check for null unwind_info.
5825 * sysdep/ia64-frame.h: add calc_caller_bsp.
5827 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5830 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5831 (_Jv_remI): Likewise.
5832 (_Jv_divJ): Likewise.
5833 (_Jv_remJ): Likewise.
5835 * interpret.cc (continue1): Use divide subroutines to guarantee
5836 correct Java standard behaviour.
5837 Floating-point division should not abort; make it so.
5839 2000-03-29 Tom Tromey <tromey@cygnus.com>
5841 * configure: Rebuilt.
5842 * configure.in: Test against `libgcj_sjlj', not
5843 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5844 to be set even when using sjlj.
5846 2000-03-24 Andrew Haley <aph@cygnus.com>
5848 * Makefile.am: Add file addr2name.awk.
5849 * Makefile.in: Rebuilt.
5850 * addr2name.awk: New file.
5851 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5853 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5856 2000-03-22 Andrew Haley <aph@cygnus.com>
5858 * configure.host: Add -funwind-tables for IA64.
5859 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5860 * Makefile.in: Rebuilt.
5861 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5862 * sysdep/ia64.c: New file.
5863 * sysdep/ia64-frame.h: New file.
5864 * configure.in: Add sysdep/ia64.c for ia64.
5865 * configure: Rebuilt.
5867 2000-03-17 Andrew Haley <aph@cygnus.com>
5869 * java/lang/natString.cc: Remove `register' keyword.
5870 interpret.cc: ditto.
5872 2000-03-16 Andrew Haley <aph@cygnus.com>
5874 * configure.host (ia64): Enable interpreter.
5876 2000-03-14 Hans Boehm <boehm@acm.org>
5878 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5880 2000-03-14 Andrew Haley <aph@cygnus.com>
5882 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5885 2000-03-10 Andrew Haley <aph@cygnus.com>
5887 * java/lang/ieeefp.h: Import latest version from fdlibm.
5889 2000-03-14 Andrew Haley <aph@cygnus.com>
5891 * prims.cc (_Jv_ThrowSignal): New function.
5892 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5894 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5895 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5896 * include/ppc-signal.h: New file.
5898 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5900 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5901 * java/lang/natThread.java (initialize_native): Cast `data' to
5903 * gnu/gcj/RawData.java: Clarify documentation.
5905 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5906 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5907 `jarFile', not `jarFileURL'.
5909 2000-05-15 Andrew Haley <aph@cygnus.com>
5911 * include/ppc-signal.h: New file.
5913 2000-05-11 Tom Tromey <tromey@cygnus.com>
5915 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5916 file headers, don't include `size' in the skip call.
5918 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5920 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5921 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5923 (replace): Reimplemented. Fix javadoc.
5924 (reverse): Call ensureCapacity_unsynchronized().
5925 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5927 (replace): Calculate length for arraycopy() correctly.
5929 2000-05-09 Tom Tromey <tromey@cygnus.com>
5931 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5933 (insert(int,char[],int,int): New method.
5934 (delete): New method from Classpath.
5935 (deleteCharAt): Likewise.
5936 (substring): Likewise.
5937 (shared): No longer private.
5938 Added JavaDoc comments from Classpath.
5939 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5942 2000-05-07 Tom Tromey <tromey@cygnus.com>
5944 * Makefile.in: Rebuilt.
5945 * Makefile.am (LIBLINK): New macro.
5946 (libgcj_la_LINK): Use it.
5947 (libgcjawt_la_LINK): Likewise.
5949 2000-05-06 Tom Tromey <tromey@cygnus.com>
5951 * Makefile.in: Rebuilt.
5952 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5954 2000-05-05 Tom Tromey <tromey@cygnus.com>
5956 Fix for PR libgcj/220:
5957 * Makefile.in: Rebuilt.
5958 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5959 (jv_convert_LDFLAGS): Likewise.
5960 (libgcj_la_LDFLAGS): Likewise.
5961 (GCJLINK): New macro.
5962 (jv_convert_LINK): Use it.
5963 (gij_LINK): Likewise.
5964 (libgcj_la_LINK): New macro.
5965 (libgcjawt_la_LINK): Likewise.
5967 2000-05-04 Tom Tromey <tromey@cygnus.com>
5969 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5971 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5975 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5977 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5978 (_Jv_IsAssignableFrom): Ditto.
5979 (_Jv_IsInstanceOf): Ditto.
5980 (_Jv_CheckCast): Ditto.
5981 (_Jv_CheckArrayStore): Ditto.
5982 * java/lang/Class.h (_Jv_InitClass): Ditto.
5983 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5988 (_Jv_MonitorExit): Ditto.
5989 * boehm.cc (_Jv_MarkObj): Ditto.
5990 (_Jv_MarkObj): Ditto.
5991 (_Jv_MarkArray): Ditto.
5992 * prims.cc (_Jv_AllocObject): Ditto.
5993 (_Jv_NewObjectArray): Ditto.
5994 (_Jv_NewPrimArray): Ditto.
5995 (_Jv_Malloc): Ditto.
5996 (_Jv_Realloc): Ditto.
5997 (_Jv_MallocUnchecked): Ditto.
6003 2000-05-04 Tom Tromey <tromey@cygnus.com>
6005 * java/util/Locale.java (Locale): Don't explicitly check for
6007 * java/util/Hashtable.java (containsKey): Don't explicitly check
6010 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6012 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6014 * java/text/StringCharacterIterator.java
6015 (StringCharacterIterator): Don't check for null.
6016 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6018 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6019 check for null pointer.
6020 (leaveGroup): Likewise.
6021 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6023 (setData): Likewise.
6024 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6027 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6029 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6030 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6031 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6032 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6033 -rpath for in-gcc builds.
6034 * Makefile.in: Rebuilt.
6036 2000-04-28 Tom Tromey <tromey@cygnus.com>
6038 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6041 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6043 * libjava/java/lang/String.java (toString): Remove `final' hack.
6045 2000-04-05 Tom Tromey <tromey@cygnus.com>
6047 Runtime support for PR gcj/2:
6048 * prims.cc (_Jv_ThrowNullPointerException): New function.
6049 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6051 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6053 * prims.cc (_Jv_NewObjectArray): Fix typo.
6055 2000-04-26 Tom Tromey <tromey@cygnus.com>
6057 * Makefile.in: Rebuilt.
6058 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6060 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6062 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6065 2000-04-22 Anthony Green <green@cygnus.com>
6067 * include/jvm.h (__builtin_expect): Define as unused for now.
6068 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6072 (_Jv_MonitorExit): Ditto.
6073 * boehm.cc (_Jv_MarkObj): Ditto.
6074 (_Jv_MarkObj): Ditto.
6075 (_Jv_MarkArray): Ditto.
6076 (_Jv_AllocBytes): Ditto.
6077 * prims.cc (_Jv_AllocObject): Ditto.
6078 (_Jv_NewObjectArray): Ditto.
6079 (_Jv_NewPrimArray): Ditto.
6080 (_Jv_Malloc): Ditto.
6081 (_Jv_Realloc): Ditto.
6082 (_Jv_MallocUnchecked): Ditto.
6088 * include/Makefile.in: Rebuilt.
6089 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6091 2000-04-21 Tom Tromey <tromey@cygnus.com>
6093 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6094 Yet another new version from Classpath.
6096 Fix for PR libgcj/15:
6097 * java/util/natGregorianCalendar.cc (_REENTRANT,
6098 _POSIX_PTHREAD_SEMANTICS): Don't define.
6099 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6100 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6102 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6104 * configure: Rebuilt.
6105 * configure.in: If using POSIX threads, define _REENTRANT if
6106 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6107 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6109 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6110 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6111 version from Classpath.
6113 Fix for PR libgcj/213:
6114 * Makefile.in: Rebuilt.
6115 * Makefile.am (gij_SOURCES): Added gij.cc.
6116 (EXTRA_gij_SOURCES): Removed.
6117 (gij_LDADD): Removed gij.lo.
6118 (gij_DEPENDENCIES): Likewise.
6119 ($(gij_OBJECTS)): Depend on nat_headers.
6121 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6122 `setURL', not `url.set'.
6124 2000-04-20 Tom Tromey <tromey@cygnus.com>
6126 Fix for PR java.io/204:
6127 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6128 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6131 Fix for PR libgcj/212:
6132 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6133 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6134 * java/lang/Class.h (_Jv_word): Declare.
6136 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6138 2000-04-19 Tom Tromey <tromey@cygnus.com>
6140 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6141 doesn't have a loader.
6143 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6145 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6146 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6148 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6150 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6152 (available): Initialize `where' to prevent bogus compiler warning.
6154 2000-04-12 Tom Tromey <tromey@cygnus.com>
6156 * java/lang/natString.cc (intern): Temporarily disable finalizer
6159 * java/lang/natString.cc (unintern): Added `obj' argument.
6160 (intern): Register finalizer for string.
6161 * java/lang/String.java (unintern): Now static; added obj
6164 2000-04-11 Tom Tromey <tromey@cygnus.com>
6166 * java/util/Vector.java (VectorEnumeration): Now `final'.
6167 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6168 (HashtableEnumeration): Likewise.
6169 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6170 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6172 2000-04-10 Warren Levy <warrenl@cygnus.com>
6174 * java/io/ObjectStreamException.java: New file.
6175 * java/io/OptionalDataException.java: New file.
6176 * java/io/StreamCorruptedException.java: New file.
6177 * java/math/BigDecimal.java: New file.
6178 * java/sql/CallableStatement.java: New file.
6179 * java/sql/Connection.java: New file.
6180 * java/sql/DataTruncation.java: New file.
6181 * java/sql/DatabaseMetaData.java: New file.
6182 * java/sql/Date.java: New file.
6183 * java/sql/Driver.java: New file.
6184 * java/sql/DriverManager.java: New file.
6185 * java/sql/DriverPropertyInfo.java: New file.
6186 * java/sql/PreparedStatement.java: New file.
6187 * java/sql/ResultSet.java: New file.
6188 * java/sql/ResultSetMetaData.java: New file.
6189 * java/sql/SQLException.java: New file.
6190 * java/sql/SQLWarning.java: New file.
6191 * java/sql/Statement.java: New file.
6192 * java/sql/Time.java: New file.
6193 * java/sql/Timestamp.java: New file.
6194 * java/sql/Types.java: New file.
6195 * Makefile.am: Added above new files.
6196 * Makefile.in: Rebuilt.
6198 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6199 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6200 DatagramSocket constructor instead of null.
6202 2000-04-08 Anthony Green <green@cygnus.com>
6204 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6207 2000-04-08 Anthony Green <green@cygnus.com>
6209 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6210 (_Jv_MutexUnlock): Ditto.
6211 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6212 (_Jv_MutexUnlock): Ditto.
6214 2000-04-08 Anthony Green <green@cygnus.com>
6216 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6217 (ensureCapacity_unsynchronized): New private method.
6218 (append): Use ensureCapacity_unsynchronized.
6220 2000-04-08 Tom Tromey <tromey@cygnus.com>
6222 * Makefile.in: Rebuilt.
6223 * Makefile.am (awt_java_source_files): Added new files.
6224 * java/awt/IllegalComponentStateException.java: New file.
6225 * java/awt/ItemSelectable.java: New file.
6226 * java/awt/event/WindowEvent.java: Finished.
6227 * java/awt/event/TextEvent.java: Finished.
6228 * java/awt/event/ContainerEvent.java: New file.
6229 * java/awt/Component.java (getX, getY): New methods.
6230 * java/awt/event/PaintEvent.java: New file.
6231 * java/awt/event/MouseEvent.java: New file.
6232 * java/awt/ActiveEvent.java: New file.
6233 * java/awt/event/KeyEvent.java: Finished.
6234 * java/awt/event/ItemEvent.java: New file.
6235 * java/awt/Adjustable.java: New file.
6236 * java/awt/event/InputMethodEvent.java: New file.
6237 * java/awt/event/InputEvent.java: Finished.
6238 * java/awt/event/FocusEvent.java: New file.
6239 * java/awt/event/MouseMotionAdapter.java: New file.
6240 * java/awt/event/MouseAdapter.java: New file.
6241 * java/awt/event/KeyAdapter.java: New file.
6242 * java/awt/event/FocusAdapter.java: New file.
6243 * java/awt/event/ContainerAdapter.java: New file.
6244 * java/awt/event/ComponentEvent.java: Finished.
6245 * java/awt/event/AdjustmentEvent.java: New file.
6246 * java/awt/event/ComponentAdapter.java: New file.
6247 * java/awt/event/ActionEvent.java: Finished.
6248 * java/awt/event/MouseMotionListener.java: New file.
6249 * java/awt/event/MouseListener.java: New file.
6250 * java/awt/event/ItemListener.java: New file.
6251 * java/awt/event/InputMethodListener.java: New file.
6252 * java/awt/event/ContainerListener.java: New file.
6253 * java/awt/event/FocusListener.java: New file.
6254 * java/awt/event/ComponentListener.java: New file.
6255 * java/awt/event/AWTEventListener.java: New file.
6256 * java/awt/event/AdjustmentListener.java: New file.
6258 2000-04-08 Anthony Green <green@cygnus.com>
6260 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6261 check when we have to.
6263 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6266 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6269 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6270 inline hasMoreElements.
6272 2000-04-05 Tom Tromey <tromey@cygnus.com>
6274 * configure: Rebuilt.
6275 * configure.in: Recognize --enable-java-awt.
6276 (AWT): New conditional.
6277 * Makefile.in: Rebuilt.
6278 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6280 (libgcjawt_la_SOURCES): New macro.
6281 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6282 (libgcjawt_la_DEPENDENCIES): Likewise.
6283 (libgcjawt_la_LIBADD): Likewise.
6284 (libgcjawt_la_LDFLAGS): Likewise.
6285 (libgcj.zip): Depend on cond_java_awt_source_files
6286 (cond_awt_java_source_files): New macro.
6287 (MOSTLYCLEANFILES): Added awto_files.
6288 (awto_files): New macro. Use where javao_files used.
6289 (nat_headers): Use cond_awt_java_source_files.
6291 2000-04-04 Tom Tromey <tromey@cygnus.com>
6293 * Makefile.in: Rebuilt.
6294 * Makefile.am (awt_java_source_files): Added AWTException.java.
6295 * java/awt/AWTException.java: New file.
6297 2000-04-03 Tom Tromey <tromey@cygnus.com>
6299 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6300 commentary from Alex.
6302 * Makefile.in: Rebuilt.
6303 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6306 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6308 * configure: Rebuilt.
6309 * configure.in: Add --disable-jvmpi.
6310 * include/config.h.in: Rebuilt.
6311 * acconfig.h: Add ENABLE_JVMPI.
6313 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6314 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6315 (_Jv_JVMPI_Notify_THREAD_END): New define.
6316 (_Jv_JVMPI_Notify_THREAD_END): New define.
6317 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6318 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6319 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6321 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6324 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6325 (finish_): Generate JVMPI thread end events.
6326 (run_): Generate JVMPI thread start events.
6327 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6328 preloaded JNI library.
6329 Include JVMPI headers if necessary.
6330 (run): Generate JVMPI thread start events.
6332 * boehm.cc: Define GC_disable and GC_enable.
6333 (_Jv_DisableGC): New function.
6334 (_Jv_EnableGC): New function.
6335 (disable_gc_mutex): Declare.
6336 * nogc.cc (_Jv_DisableGC): New function.
6337 (_Jv_EnableGC): New function.
6339 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6340 (_Jv_JVMPI_Interface): Define.
6341 (jvmpiEnableEvent): New function.
6342 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6344 * include/jvmpi.h: New file.
6346 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6348 * Makefile.in: New #defines and friends for Thread.h.
6349 * Makefile.am: Ditto.
6350 * posix-threads.cc: (struct starter): Remove `object'.
6351 (_Jv_CondWait): Use interruptable condition variables and new
6352 recursive mutexes. New return codes on interrupt or non-ownership
6354 (_Jv_CondNotify): Ditto.
6355 (_Jv_CondNotifyAll): Ditto.
6356 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6357 the target thread by signaling its wait condition.
6358 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6359 not the starter struct. Initialize wait_mutex and wait_cond.
6360 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6362 (_Jv_MutexUnlock): Ditto.
6363 (really_start): Set info->data->thread from pthread_self() to work
6364 around a race condition. Destroy wait_mutex and wait_cond when run()
6366 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6367 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6369 startable_flag: New private field.
6370 (Thread): Initialize `startable_flag'.
6371 (toString): Check for null thread group.
6372 * java/lang/natThread.cc: (struct natThread): New fields
6373 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6374 (class locker): Removed.
6375 (initialize_native): Initialize `join_cond' and `join_mutex'.
6376 (interrupt): Now just calls _Jv_ThreadInterrupt().
6377 (join): Simplified. Just wait on the target thread's join condition.
6378 (finish_): Remove join list code. Unset thread group. Signal
6379 potential joiners by notifying the dying threads join_cond.
6380 (start): Check for illegal restarts.
6381 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6383 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6384 #defines and #ifdefs.
6385 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6386 `wait_mutex', `next'.
6387 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6388 directly mapping to pthread_cond_t.
6389 (struct _Jv_Mutex_t): New recursive implementation.
6390 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6391 _Jv_HaveCondDestroy: Never define this for posix-threads.
6392 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6393 (_Jv_CondNotifyAll): Ditto.
6394 (_Jv_MutexLock): Ditto.
6395 (_Jv_MutexUnlock): Ditto.
6396 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6397 (_Jv_MutexDestroy): Ditto.
6398 (_Jv_CondDestroy): Removed.
6399 (_Jv_PthreadGetMutex): Removed.
6400 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6401 error. Add a FIXME about this.
6402 (_Jv_CondNotifyAll): Ditto.
6403 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6404 _JV_NOT_OWNER on other errors. Add FIXME.
6406 2000-03-26 Tom Tromey <tromey@cygnus.com>
6408 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6410 (call): Don't throw exception here.
6412 2000-03-26 Tom Tromey <tromey@cygnus.com>
6414 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6415 * interpret.cc: Use SIZEOF_VOID_P.
6416 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6417 (_Jv_loadLong): Likewise.
6418 (_Jv_storeDouble): Likewise.
6419 * configure: Rebuilt.
6420 * configure.in: Check size of void*.
6422 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6424 2000-03-26 Hans Boehm <boehm@acm.org>
6426 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6427 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6429 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6430 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6431 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6432 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6434 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6435 (FFI_RAW_SIZE): Likewise.
6436 (_Jv_InterpMethod::ncode): Use them.
6437 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6438 STORED): Define differently on a 64 bit machine.
6439 (continue1): Use ffi_java_raw_call when appropriate.
6441 2000-03-24 Warren Levy <warrenl@cygnus.com>
6443 * java/math/BigInteger.java(divide): Handle the special case when
6444 dividing by 1 and the high bit of the dividend is set.
6445 (setShiftRight): Handle case when count == 0.
6447 2000-03-24 Warren Levy <warrenl@cygnus.com>
6449 * java/awt/Font.java(isBold): Fix syntax error.
6451 * java/awt/Frame.java(postEvent): ditto.
6452 * java/awt/Menu.java(postEvent): ditto.
6453 * java/awt/MenuBar.java(postEvent): ditto.
6454 * java/awt/Toolkit.java(init): Included a stub.
6456 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6458 * java/awt/Event.java: Add all the event type constants.
6459 (Event): Implemented constructors.
6460 (controlDown): Implemented.
6461 (metaDown): Implemented.
6462 (paramString): Stubbed.
6463 (shiftDown): Implemented.
6464 (toString): Implemented.
6465 (translate): Implemented.
6467 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6469 * java/lang/natClass.cc (isInstance): Initialize `this'.
6470 (isAssignableFrom): Initialize `this' and `klass'.
6471 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6472 implemented by any loaded class, so return false.
6473 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6474 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6476 2000-03-19 Warren Levy <warrenl@cygnus.com>
6478 * java/awt/Color.java: Specified java.io for Serializable.
6479 * java/awt/Toolkit.java: Imported java.net.URL.
6481 2000-03-19 Warren Levy <warrenl@cygnus.com>
6483 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6485 2000-03-16 Warren Levy <warrenl@cygnus.com>
6487 * java/awt/Color.java: New file.
6488 * java/awt/Graphics.java: New file.
6489 * java/awt/Image.java: New file.
6490 * java/awt/Paint.java: New file.
6491 * java/awt/PaintContext.java: New file.
6492 * java/awt/Transparency.java: New file.
6493 * java/util/Collection.java: New file.
6494 * java/util/Comparator.java: New file.
6495 * java/util/Iterator.java: New file.
6496 * java/util/List.java: New file.
6497 * java/util/ListIterator.java: New file.
6498 * Makefile.am: Added above new files.
6499 * Makefile.in: Rebuilt.
6501 * java/awt/Font.java (PLAIN): New field.
6503 (ITALIC): New field.
6504 (ROMAN_BASELINE): New field.
6505 (CENTER_BASELINE): New field.
6506 (HANGING_BASELINE): New field.
6510 (pointSize): New field.
6511 (Font): Implemented constructor.
6512 (isPlain): Implemented method.
6513 (isBold): Implemented method.
6514 (isItalic): Implemented method.
6515 (getName): Implemented method.
6516 (getStyle): Implemented method.
6517 (getSize): Implemented method.
6518 (getSize2D): Implemented method.
6520 * java/awt/Frame.java (getFont): Stubbed.
6521 (postEvent): Stubbed.
6523 * java/awt/Menu.java (postEvent): Stubbed.
6524 * java/awt/MenuBar.java (getFont): Stubbed.
6525 (postEvent): Stubbed.
6526 * java/awt/Toolkit.java (getImage): Added abstract method.
6528 2000-03-15 Tom Tromey <tromey@cygnus.com>
6530 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6532 * prims.cc (win32_exception_handler): Reformatted.
6534 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6535 (_Jv_HaveMutexDestroy): Likewise.
6537 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6539 * java/io/natFileDescriptorWin32.cc: New file.
6540 * java/io/natFileWin32.cc: New file.
6541 * java/net/natInetAddress.cc: Added conditional inclusion of
6542 Windows / Winsock headers.
6543 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6544 inclusion of Windows / Winsock headers.
6545 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6546 Windows / Winsock headers.
6547 * include/win32-signal.h: New file.
6548 * include/win32-threads.h: New file.
6549 * win32-threads.cc: New file.
6550 * exception.cc (win32_get_restart_frame): New function.
6551 * prims.cc (win32_exception_handler): New function.
6552 (main_init) Performs Winsock initialisation.
6553 (main_init) Installs exeception handler.
6555 2000-03-14 Tom Tromey <tromey@cygnus.com>
6557 * jni.cc (mangled_name): Fixed assertion.
6558 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6559 turned assert into actual failure.
6561 2000-03-09 Warren Levy <warrenl@cygnus.com>
6563 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6564 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6565 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6567 2000-03-09 Warren Levy <warrenl@cygnus.com>
6569 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6570 * java/security/DigestException.java: New file.
6571 * java/security/GeneralSecurityException.java: New file.
6572 * java/security/InvalidAlgorithmParameterException.java: New file.
6573 * java/security/InvalidKeyException.java: New file.
6574 * java/security/InvalidParameterException.java: New file.
6575 * java/security/Key.java: New file.
6576 * java/security/KeyException.java: New file.
6577 * java/security/KeyPair.java: New file.
6578 * java/security/KeyPairGenerator.java: New file.
6579 * java/security/KeyPairGeneratorSpi.java: New file.
6580 * java/security/NoSuchProviderException.java: New file.
6581 * java/security/PrivateKey.java: New file.
6582 * java/security/Provider.java: New file.
6583 * java/security/PublicKey.java: New file.
6584 * java/security/SecureRandom.java: New file.
6585 * java/security/Security.java: New file.
6586 * java/security/Signature.java: New file.
6587 * java/security/SignatureException.java: New file.
6588 * java/security/interfaces/DSAKey.java: New file.
6589 * java/security/interfaces/DSAParams.java: New file.
6590 * java/security/interfaces/DSAPrivateKey.java: New file.
6591 * java/security/interfaces/DSAPublicKey.java: New file.
6592 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6593 * java/security/interfaces/RSAPrivateKey.java: New file.
6594 * java/security/interfaces/RSAPublicKey.java: New file.
6595 * java/security/spec/AlgorithmParameterSpec.java: New file.
6596 * java/security/spec/InvalidKeySpecException.java: New file.
6597 * java/security/spec/InvalidParameterSpecException.java: New file.
6598 * java/security/spec/KeySpec.java: New file.
6599 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6600 * java/security/spec/RSAPrivateKeySpec.java: New file.
6601 * java/security/spec/RSAPublicKeySpec.java: New file.
6602 * Makefile.am: Added above java.security files.
6603 * Makefile.in: Rebuilt.
6605 * java/security/MessageDigest.java: Rewritten.
6606 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6608 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6612 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6614 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6615 _Jv_PrepareConstantTimeTables.
6616 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6617 classes should have an IDT, so don't return if klass is an array
6620 2000-03-08 Tom Tromey <tromey@cygnus.com>
6622 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6623 of `void' to be created.
6625 2000-03-08 Warren Levy <warrenl@cygnus.com>
6627 * java/math/BigInteger.java(signum): Handle zero properly.
6629 2000-03-07 Tom Tromey <tromey@cygnus.com>
6631 * All files: Updated copyright information.
6632 * COPYING: New file.
6633 * COPYING.LIB: Removed.
6634 * LIBGCJ_LICENSE: We now use GPL + special exception.
6636 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6638 * resolve.cc (_Jv_SearchMethodInClass): New function.
6639 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6640 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6642 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6644 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6645 (struct _Jv_ifaces): New declaration.
6646 JV_CLASS: New macro definition.
6647 (getComponentType): Relocate below isArray() for inlining.
6648 (getModifiers): Declare `inline'.
6649 (getSuperclass): Ditto.
6651 (isPrimitive): Ditto.
6652 (_Jv_IsAssignableFrom): New prototype.
6653 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6655 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6656 Check for JV_STATE_DONE before invoking initializeClass().
6657 (_Jv_PrepareConstantTimeTables): New prototype.
6658 (_Jv_GetInterfaces): Ditto.
6659 (_Jv_GenerateITable): Ditto.
6660 (_Jv_GetMethodString): Ditto.
6661 (_Jv_AppendPartialITable): Ditto.
6662 (_Jv_FindIIndex): Ditto.
6663 depth, ancestors, idt: New class fields.
6665 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6666 inline function `_Jv_IsAssignableFrom'. Use that function.
6667 (isInstance): Declare `inline'.
6668 (initializeClass): Get lock on class before checking `state'. Unlock
6669 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6671 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6672 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6673 class->depth and ancestor table.
6674 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6675 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6676 _Jv_IsAssignableFrom.
6677 (_Jv_CheckArrayStore): Ditto.
6678 (_Jv_LookupInterfaceMethodIdx): New function.
6679 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6680 (_Jv_PrepareConstantTimeTables): New function.
6681 (_Jv_IndexOf): Ditto.
6682 (_Jv_GetInterfaces): Ditto.
6683 (_Jv_GenerateITable): Ditto.
6684 (_Jv_GetMethodString): Ditto.
6685 (_Jv_AppendPartialITable): Ditto.
6686 iindex_mutex, iindex_mutex_initialized: New static fields.
6687 (_Jv_FindIIndex): New function.
6689 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6691 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6692 (_Jv_CheckArrayStore): Ditto.
6693 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6694 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6695 Moved to gcj/array.h.
6696 (_Jv_Realloc): New function.
6698 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6700 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6701 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6702 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6703 JvNewDoubleArray): Implementations moved from prims.cc and
6706 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6708 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6710 2000-03-06 Tom Tromey <tromey@cygnus.com>
6712 * jni.cc (MARK_NONE): New define.
6713 (MARK_USER): Likewise.
6714 (MARK_SYSTEM): Likewise.
6715 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6717 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6718 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6719 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6720 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6722 (call): Use MARK_SYSTEM.
6723 (_Jv_GetJNIEnvNewFrame): New function.
6724 (_Jv_LookupJNIMethod): New function.
6725 (_Jv_JNI_PopSystemFrame): New function.
6726 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6728 2000-03-05 Tom Tromey <tromey@cygnus.com>
6730 Fix for PR libgcj/43:
6731 * include/Makefile.in: Rebuilt.
6732 * include/Makefile.am (include_HEADERS): New define.
6734 2000-03-05 Anthony Green <green@redhat.com>
6736 * gcj/javaprims.h ("Java"): Remove FirstThread.
6738 * configure.host: Fix __NO_MATH_INLNES botch.
6740 * Makefile.in: Rebuilt.
6741 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6742 (gnu/gcj/runtime/FirstThread.h): Moved.
6743 (ordinary_java_source_files): Move FirstThread.java.
6744 * prims.cc: Deal with FirstThread movement.
6746 (_Jv_RunMain): Ditto.
6748 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6749 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6751 2000-03-05 Warren Levy <warrenl@cygnus.com>
6753 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6754 Handle null addresses.
6756 2000-03-04 Anthony Green <green@redhat.com>
6758 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6761 2000-03-04 Anthony Green <green@redhat.com>
6763 * configure: Rebuilt.
6764 * configure.in (ZLIBTESTSPEC): New macro.
6765 (GCTESTSPEC): New macro.
6766 (LIBGCJTESTSPEC): New macro.
6767 * libgcj-test.spec.in: New file.
6769 2000-03-02 Tom Tromey <tromey@cygnus.com>
6771 * include/java-interp.h: Don't include MethodInvocation.h.
6772 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6773 * Makefile.in: Rebuilt.
6774 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6775 (ordinary_java_source_files): Don't mention
6776 MethodInvocation.java.
6777 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6778 * interpret.cc (MethodInvocation::continue1): Removed.
6779 (run): Handle exceptions here.
6780 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6782 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6784 (defineClass2): Removed.
6786 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6788 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6790 (hack_call): Removed.
6792 * java/lang/Class.h (Class): Removed hackRunInitializers,
6794 * java/lang/natClass.cc (hackRunInitializers): Removed.
6795 (initializeClass): Catch exceptions here.
6796 Include ExceptionInInitializerError.h.
6797 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6800 * java/lang/Object.h (Object): Don't mention hack12_6.
6801 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6803 * java/lang/Object.java (hack12_6): Removed.
6805 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6806 (start): Use run_, not run__.
6807 * java/lang/Thread.java (run_): Renamed from run__; old run_
6810 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6811 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6812 (_Jv_JNI_DefineClass): Likewise.
6813 (_Jv_JNI_ThrowNew): Likewise.
6814 (_Jv_JNI_AllocObject): Likewise.
6815 (_Jv_JNI_GetAnyMethodID): Likewise.
6816 (_Jv_JNI_CallAnyMethodV): Likewise.
6817 (_Jv_JNI_CallAnyMethodA): Likewise.
6818 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6819 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6820 (_Jv_JNI_GetAnyFieldID): Likewise.
6821 (_Jv_JNI_NewString): Likewise.
6822 (_Jv_JNI_NewStringUTF): Likewise.
6823 (_Jv_JNI_GetStringUTFChars): Likewise.
6824 (_Jv_JNI_NewObjectArray): Likewise.
6825 (_Jv_JNI_NewPrimitiveArray): Likewise.
6826 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6827 (_Jv_JNI_GetStringRegion): Likewise.
6828 (_Jv_JNI_GetStringUTFRegion): Likewise.
6829 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6830 (_Jv_JNI_MonitorEnter): Likewise.
6831 (_Jv_JNI_MonitorExit): Likewise.
6832 (_Jv_JNI_ToReflectedField): Likewise.
6833 (_Jv_JNI_ToReflectedMethod): Likewise.
6834 (_Jv_JNI_RegisterNatives): Likewise.
6835 (_Jv_JNI_AttachCurrentThread): Likewise.
6836 (_Jv_JNI_DestroyJavaVM): Likewise.
6838 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6840 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6841 error caused by the incorrect casting of a long to an int.
6843 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6845 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6846 SIGSEV caused by use of the wrong instance variable.
6848 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6850 * java/io/File.java (File(String, String)): For dirPath, treat an
6851 empty String the same as `null'.
6853 2000-02-26 Anthony Green <green@cygnus.com>
6855 * gnu/gcj/io/MimeTypes.java: Test for null.
6857 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6858 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6860 * java/net/URLConnection.java: Update copyright notice.
6862 2000-02-25 Tom Tromey <tromey@cygnus.com>
6864 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6867 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6869 * java/net/URLConnection.java (initializeDateFormats): New
6871 (getHeaderFieldDate): Call initializeDateFormats if required.
6872 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6874 Fix for PR libgcj/38.
6876 2000-02-24 Warren Levy <warrenl@cygnus.com>
6878 * java/math/BigInteger.java(ival): Made private.
6882 2000-02-20 Anthony Green <green@cygnus.com>
6884 * Makefile.in: Rebuilt.
6885 * Makefile.am (ordinary_java_source_files): Add
6886 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6888 * scripts/MakeDefaultMimeTypes.java: New file.
6889 * scripts/mime.types: New file.
6890 * scripts/classes.pl: Moved from top level.
6891 * classes.pl: Moved to scripts directory.
6893 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6895 * gnu/gcj/io/MimeTypes.java: New file.
6896 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6898 2000-02-20 Tom Tromey <tromey@cygnus.com>
6900 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6902 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6904 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6907 2000-02-18 Tom Tromey <tromey@cygnus.com>
6909 * include/jvm.h (_Jv_GetJavaVM): Declare.
6910 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6911 (_Jv_MethodBase::get_method): New method.
6912 (_Jv_JNIMethod::set_function): New method.
6913 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6914 (_Jv_JNI_RegisterNatives): New function.
6915 (_Jv_JNIFunctions): Updated for new functions.
6916 (_Jv_GetJavaVM): New function.
6917 (_Jv_JNI_GetJavaVM): Use it. Now static.
6918 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6919 is already a Java thread but does not have a JNIEnv yet.
6921 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6924 2000-02-17 Tom Tromey <tromey@cygnus.com>
6926 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6929 2000-02-16 Tom Tromey <tromey@cygnus.com>
6931 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6933 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6934 (_Jv_JNI_NewObject): Likewise.
6935 (_Jv_JNI_NewObjectA): Likewise.
6936 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6937 as "return" type to _Jv_CallAnyMethodA.
6938 (_Jv_JNI_CallAnyMethodA): Likewise.
6939 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6941 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6944 2000-02-15 Tom Tromey <tromey@cygnus.com>
6946 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6948 (init_cif): Added `rtype_p' argument.
6949 * include/java-interp.h (class _Jv_MethodBase): Added
6951 (class _Jv_InterpMethod): Removed args_raw_size.
6952 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6953 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6954 class pointer as well as the ordinary arguments.
6956 * jni.cc (mangled_name): Skip leading `(' in signature.
6958 * jni.cc (add_char): Added missing `else'.
6960 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6963 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6967 * java/lang/natRuntime.cc (_load): Include library path with
6970 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6973 * java/lang/natThread.cc (dumpStack): Removed.
6974 * java/lang/Thread.java (dumpStack): Implemented.
6976 2000-02-15 Tom Tromey <tromey@cygnus.com>
6978 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6979 with `lib' for loadLibrary. Fixes PR gcj/150.
6981 2000-02-14 Warren Levy <warrenl@cygnus.com>
6983 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6985 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6989 (modPow): Rewritten to not use the naive, slow, brute force approach.
6990 (isProbablePrime): Implemented.
6991 (testBit): Implemented.
6992 (flipBit): Implemented.
6993 (getLowestSetBit): Implemented.
6995 2000-02-16 Anthony Green <green@redhat.com>
6997 * configure.host: Use the same options for i386 and i486 as we do
7000 2000-02-12 Tom Tromey <tromey@cygnus.com>
7002 * java/io/File.java (createTempFile): Use low bits from counter,
7005 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7007 * THANKS: More thanks.
7009 2000-02-11 Tom Tromey <tromey@cygnus.com>
7011 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7012 astore instruction. From Hans Boehm.
7014 2000-02-11 Warren Levy <warrenl@cygnus.com>
7016 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7017 (BigInteger(String)): New constructor.
7018 (not): Rewritten using version from Kawa's BitOps class.
7019 (valueOf): New private methods from Kawa's BitOps class.
7026 (andNot): Implemented.
7027 (clearBit): Implemented.
7028 (setBit): Implemented.
7029 (bitCount): Implemented.
7030 (toByteArray): Implemented.
7032 2000-02-11 Tom Tromey <tromey@cygnus.com>
7034 * java/io/File.java (nextValue): Now synchronized.
7036 2000-02-10 Tom Tromey <tromey@cygnus.com>
7038 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7039 * java/io/FileDescriptor.java (EXCL): New static field.
7040 * java/io/File.java (tmpdir): New static field.
7041 (createTempFile): New method.
7042 (nextValue): New method.
7043 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7046 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7047 (jboolean): Declare as an attributed int, not a bool.
7048 (_Jv_func): Declare differently for C.
7050 * gnu/gcj/jni/natNativeThread.cc: New file.
7051 * gnu/gcj/jni/NativeThread.java: New file.
7052 * java/lang/Thread.java (data): Now a RawData.
7053 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7055 * Makefile.in: Rebuilt.
7056 * Makefile.am (java/lang/Thread.h): New target.
7057 (ordinary_java_source_files): Added NativeThread.java.
7058 (nat_source_files): Added natNativeThread.cc.
7059 * java/lang/natThread.cc: Include <jni.h>
7060 (struct natThread): Added `jni_env' field.
7061 (_Jv_GetCurrentJNIEnv): New function.
7062 (_Jv_SetCurrentJNIEnv): Likewise.
7063 (initialize_native): Initialize jni_env.
7065 * jni.cc (ThreadGroupClass): New define.
7066 (_Jv_JNI_InvokeFunctions): New structure.
7067 (JNI_GetCreatedJavaVMs): New function.
7068 (the_vm): New global.
7069 (JNI_GetDefaultJavaVMInitArgs): New function.
7070 Include NativeThread.h.
7071 (NativeThreadClass): New define.
7072 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7073 (_Jv_JNI_DestroyJavaVM): New function.
7074 (_Jv_JNI_AttachCurrentThread): New function.
7075 (_Jv_JNI_DetachCurrentThread): New function.
7076 (_Jv_JNI_GetEnv): New function.
7077 (JNI_CreateJavaVM): New function.
7078 (_Jv_JNI_GetJavaVM): New function.
7079 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7080 * include/jni.h (JavaVMAttachArgs): New structure.
7081 (JNI_EDETACHED): New define.
7082 (JNI_EVERSION): Likewise.
7083 (JavaVM): Define properly.
7084 (struct JNIInvokeInterface): New structure.
7085 (class _Jv_JavaVM): New class.
7086 (JNI_OnLoad, JNI_OnUnload): Declare.
7087 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7088 JNI_GetCreatedJavaVMs): Declare.
7089 (JavaVMInitArgs): New typedef.
7090 (JavaVMOption): Likewise.
7091 (JNI_ERR): New define.
7094 2000-02-10 Andrew Haley <aph@cygnus.com>
7096 * interpret.cc: Don't include fdlibm.h.
7097 Replace #if with #ifdef throughout.
7098 Declare extern __ieee754_fmod.
7099 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7101 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7102 Search class hierarchy for superclass vtable.
7104 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7105 off the end of a pointer list.
7107 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7111 2000-02-09 Tom Tromey <tromey@cygnus.com>
7113 * java/lang/natRuntime.cc (_load): Call add_library.
7114 (loadLibraryInternal): Likewise.
7116 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7117 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7118 (Output_iconv::finalize): Likewise.
7120 2000-02-08 Tom Tromey <tromey@cygnus.com>
7122 * java/util/Properties.java (setProperty): New method.
7123 (store): New method.
7125 2000-02-07 Tom Tromey <tromey@cygnus.com>
7127 * java/lang/Runtime.java (_load): Declare.
7128 (load, loadLibrary): Wrote in terms of _load.
7129 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7131 (loadLibrary): Likewise.
7133 (_load): New method.
7134 (loadLibrary, load): Removed.
7136 * jni.cc (ThrowableClass): New define.
7137 (_Jv_JNI_Throw): Check argument.
7138 (_Jv_JNI_ThrowNew): Likewise.
7139 (wrap_value): Don't wrap object if it is NULL.
7140 (_Jv_JNI_DefineClass): Use wrap_value.
7141 (_Jv_JNI_FindClass): Likewise.
7142 (_Jv_JNI_GetSuperclass): Likewise.
7143 (_Jv_JNI_ExceptionOccurred): Likewise.
7144 (_Jv_JNI_AllocObject): Likewise.
7145 (_Jv_JNI_GetObjectClass): Likewise.
7146 (_Jv_JNI_NewString): Likewise.
7147 (_Jv_JNI_NewStringUTF): Likewise.
7148 (_Jv_JNI_NewObjectArray): Likewise.
7149 (_Jv_JNI_GetObjectArrayElement): Likewise.
7150 (_Jv_JNI_NewPrimitiveArray): Likewise.
7151 (_Jv_JNI_ToReflectedField): Likewise.
7152 (_Jv_JNI_ToReflectedMethod): Likewise.
7153 (_Jv_JNI_AllocObject): Check argument.
7154 (_Jv_JNI_NewObjectV): Likewise.
7155 (_Jv_JNI_NewObject): Likewise.
7156 (_Jv_JNI_NewObjectA): Likewise.
7157 (_Jv_JNI_GetObjectClass): Likewise.
7158 (_Jv_JNI_GetField): Likewise.
7159 (_Jv_JNI_SetField): Likewise.
7161 * interpret.cc (PUSHL): Don't use expression statement.
7166 * jni.cc (add_char): Conditional on INTERPRETER.
7167 (mangled_name): Likewise.
7169 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7171 (class _Jv_JNIMethod): Likewise.
7173 2000-02-04 Warren Levy <warrenl@cygnus.com>
7175 * Makefile.am: Added MPN.java and BigInteger.java.
7176 * Makefile.in: Rebuilt.
7177 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7179 * java/math/BigInteger.java: New file. Based primarily on
7180 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7182 2000-02-04 Tom Tromey <tromey@cygnus.com>
7184 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7186 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7187 if the method is native.
7188 * resolve.cc (ncode): Don't handle native methods.
7189 (_Jv_JNIMethod::ncode): New method.
7190 (_Jv_PrepareClass): Handle native methods.
7191 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7192 Include AbstractMethodError.h.
7193 (add_char): New function.
7194 (mangled_name): Likewise.
7195 * include/java-interp.h (class _Jv_JNIMethod): New class.
7196 (class _Jv_MethodBase): New class.
7197 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7198 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7201 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7202 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7203 libraries): New globals.
7204 (add_library): New function.
7205 (_Jv_FindSymbolInExecutable): New function.
7207 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7210 2000-02-04 Andrew Haley <aph@cygnus.com>
7212 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7213 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7214 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7215 printStackTrace to printRawStackTrace.
7217 2000-02-03 Tom Tromey <tromey@cygnus.com>
7219 * java/util/Calendar.java (toString): New method.
7220 * java/util/SimpleTimeZone.java (clone): New method.
7221 (toString): New method.
7222 * java/util/TimeZone.java (clone): New method.
7223 * java/text/SimpleDateFormat.java (clone): New method.
7224 * java/text/NumberFormat.java (clone): New method.
7225 (equals): New method.
7226 * java/text/Format.java (clone): New method.
7227 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7229 (clone): New method.
7230 * java/text/DateFormat.java (clone): New method.
7231 * java/text/Collator.java (clone): New method.
7233 2000-02-03 Tom Tromey <tromey@cygnus.com>
7235 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7238 2000-02-01 Tom Tromey <tromey@cygnus.com>
7240 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7241 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7242 constructing the closure if the function is native.
7243 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7244 a template function, #if'd out, or static.
7245 Include <java-interp.h>.
7247 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7249 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7251 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7252 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7254 (wrap_value): New function.
7255 (_Jv_JNI_CallAnyMethodV): Use it.
7256 (_Jv_JNI_CallAnyMethodA): Likewise.
7257 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7258 (_Jv_JNI_GetStaticField): Likewise.
7260 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7261 (_Jv_JNI_GetStaticField): Likewise.
7263 2000-01-31 Tom Tromey <tromey@cygnus.com>
7265 * prims.cc (_Jv_MallocUnchecked): New function.
7266 (main_init): Call _Jv_JNI_Init.
7267 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7268 (_Jv_JNI_Init): Declare.
7269 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7271 (_Jv_JNI_NewGlobalRef): New function.
7272 (_Jv_JNI_DeleteGlobalRef): New function.
7273 (_Jv_JNI_DeleteLocalRef): New function.
7274 (_Jv_JNI_conversion_call): Initialize and clear local reference
7276 (_Jv_JNI_NewLocalRef): New function.
7277 (struct _Jv_JNI_LocalFrame): New structure.
7278 (_Jv_JNI_PushLocalFrame): New function.
7279 (_Jv_JNI_EnsureLocalCapacity): New function.
7280 (FRAME_SIZE): New define.
7281 (_Jv_JNI_GetStringChars): Mark string, not characters.
7282 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7283 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7284 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7286 (_Jv_JNI_DefineClass): Make return value a local ref.
7287 (_Jv_JNI_FindClass): Likewise.
7288 (_Jv_JNI_GetSuperclass): Likewise.
7289 (_Jv_JNI_ExceptionOccurred): Likewise.
7290 (_Jv_JNI_AllocObject): Likewise.
7291 (_Jv_JNI_GetObjectClass): Likewise.
7292 (_Jv_JNI_CallAnyMethodV): Likewise.
7293 (_Jv_JNI_NewString): Likewise.
7294 (_Jv_JNI_NewStringUTF): Likewise.
7295 (_Jv_JNI_NewObjectArray): Likewise.
7296 (_Jv_JNI_GetObjectArrayElement): Likewise.
7297 (_Jv_JNI_ToReflectedField): Likewise.
7298 (_Jv_JNI_ToReflectedMethod): Likewise.
7299 (_Jv_JNIFunctions): Updated table for new functions.
7300 (_Jv_JNI_Init): New function.
7301 (mark_for_gc): Wrote.
7302 (unmark_for_gc): Wrote.
7303 * include/jni.h (struct JNINativeInterface): Removed name from
7304 PopLocalFrame parameter.
7305 (class _Jv_JNIEnv): Added `locals' field.
7307 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7309 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7312 2000-01-30 Tom Tromey <tromey@cygnus.com>
7314 * include/config.h.in: Rebuilt.
7315 * acconfig.h (HAVE_ICONV): Define.
7316 * configure: Rebuilt.
7317 * configure.in: Check for `iconv' function.
7318 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7319 no specific encoder exists.
7320 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7321 no specific encoder exists.
7322 * Makefile.in: Rebuilt.
7323 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7325 (nat_source_files): Added natIconv.cc.
7326 * gnu/gcj/convert/natIconv.cc: New file.
7327 * gnu/gcj/convert/Input_iconv.java: New file.
7328 * gnu/gcj/convert/Output_iconv.java: New file.
7330 2000-01-28 Tom Tromey <tromey@cygnus.com>
7332 * Makefile.in: Rebuilt.
7333 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7335 2000-01-26 Tom Tromey <tromey@cygnus.com>
7337 * gcj/method.h (JvNumMethods): Moved from Class.h.
7338 (JvGetFirstMethod): Likewise.
7339 * java/lang/Class.h (Object): Updated decl of
7340 _Jv_JNI_ToReflectedField.
7341 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7342 * Makefile.in: Rebuilt.
7343 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7344 argument of _Jv_JNI_ToReflectedField.
7345 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7347 (java/lang/reflect/Method.h): Likewise.
7348 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7350 (jweak): New typedef.
7351 (struct JNINativeInterface): Correctly declare remaining entries.
7352 * jni.cc: Include Class.h, ClassLoader.h.
7353 (_Jv_JNI_FindClass): New function.
7354 (_Jv_JNI_DefineClass): New function.
7355 (_Jv_JNI_conversion_call): New function.
7356 (_Jv_JNI_FindClass): Use current class loader to find class.
7357 (_Jv_JNI_ExceptionCheck): New function.
7358 (_Jv_JNI_FromReflectedField): Now static.
7359 (MethodClass): New define.
7360 (_Jv_JNI_FromReflectedMethod): New function.
7361 (_Jv_JNI_ToReflectedMethod): Likewise.
7363 (_Jv_JNI_IsAssignableFrom): Renamed.
7364 (_Jv_JNI_GetStringRegion): New function.
7365 Include StringIndexOutOfBoundsException.h.
7366 (_Jv_JNI_GetStringUTFRegion): New function.
7367 (_Jv_JNIFunctions): Updated for new functions.
7368 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7369 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7370 (_Jv_JNI_GetStringCritical): New function.
7371 (_Jv_JNI_ReleaseStringCritical): Likewise.
7372 (get_throwable): Removed.
7373 (GCJ_JV_JNIENV_FRIEND): Removed.
7374 (__GCJ_JNI_IMPL__): Define.
7377 * resolve.cc (get_ffi_type_from_signature): Handle case where
7380 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7382 * interpret.cc (run): Don't call println.
7383 Don't include PrintStream.h.
7385 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7386 nameIndex. Use "jint" as type for boffset.
7387 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7389 (Class): Likewise. Also changed type of method_count,
7390 vtable_method_count, size_in_bytes, field_count,
7391 static_field_count, interface_count.
7392 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7395 2000-01-21 Tom Tromey <tromey@cygnus.com>
7397 * java/lang/reflect/natConstructor.cc (newInstance): Use
7399 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7400 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7401 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7404 (invoke): Use _Jv_CallAnyMethodA.
7406 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7407 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7409 (struct _Jv_Method): Added getNextMethod method.
7410 (JvNumMethods): New function.
7411 (JvGetFirstMethod): Likewise.
7412 * gcj/field.h (JvGetFirstStaticField): New function.
7413 (JvNumStaticFields): Likewise.
7414 (getNextField): Renamed from getNextInstanceField.
7415 (struct _Jv_Field): New method getClass.
7416 * jni.cc: Wrote many new functions.
7417 * include/jni.h (JNI_TRUE): Define.
7418 (JNI_FALSE): Likewise.
7419 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7420 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7421 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7422 (jfieldID, jmethodID): Likewise.
7423 (JNI_COMMIT, JNI_ABORT): New defines.
7424 (JNINativeMethod): New struct.
7425 (struct JNINativeInterface): Correctly declared more entries.
7426 (class _Jv_JNIEnv): Added `ex' member.
7427 (JNI_VERSION_1_1): New define.
7428 (JNI_VERSION_1_2): Likewise.
7430 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7431 getNextInstanceField.
7433 2000-01-20 Tom Tromey <tromey@cygnus.com>
7435 * resolve.cc (StringClass): Removed.
7436 * defineclass.cc (StringClass): Removed.
7438 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7442 2000-01-19 Tom Tromey <tromey@cygnus.com>
7444 * interpret.cc (PC_REGISTER_ASM): Removed.
7446 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7447 From Bryce McKinlay.
7449 * All files: Updated copyright to reflect Cygnus purchase.
7451 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7453 * configure: Rebuilt.
7454 * configure.in: Recognize --disable-interpreter.
7456 2000-01-18 Andrew Haley <aph@cygnus.com>
7458 * name-finder.cc (lookup): Check for dladdr function.
7459 acconfig.h (HAVE_DLADDR): Add.
7460 configure.in: Check for HAVE_DLADDR
7462 include/config.h.in: Rebuilt.
7464 2000-01-17 Andrew Haley <aph@cygnus.com>
7466 * prims.cc (_Jv_RunMain): Set the name of this executable.
7468 2000-01-17 Tom Tromey <tromey@cygnus.com>
7470 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7471 when backtrace can't be computed.
7473 * configure: Rebuilt.
7474 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7476 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7477 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7478 (_Jv_FindClassInCache): Likewise.
7479 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7480 (findSystemClass): Try to load class from compiled module.
7482 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7483 (loadLibrary): Likewise.
7484 (lt_preloaded_symbols): Define.
7485 (loadLibraryInternal): New method.
7486 * include/config.h.in: Rebuilt.
7487 * acconfig.h (USE_LTDL): Added.
7488 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7489 (INCLUDES): Added $(INCLTDL).
7490 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7491 (libgcj_la_LIBADD): Likewise.
7492 * aclocal.m4, configure: Rebuilt.
7493 * configure.in: Added libltdl support.
7495 2000-01-15 Tom Tromey <tromey@cygnus.com>
7497 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7499 2000-01-14 Andrew Haley <aph@cygnus.com>
7501 * java/lang/natThrowable.cc: New file.
7503 * java/lang/Throwable.java (fillInStackTrace): Make native.
7504 (printStackTrace): Call native method to do this.
7505 (Throwable): Call fillInStackTrace.
7506 (stackTrace): New variable.
7508 * include/jvm.h: Add _Jv_ThisExecutable functions.
7510 * prims.cc: (_Jv_execName): New variable.
7511 (catch_segv): Call fillInStackTrace.
7513 (_Jv_ThisExecutable): New functions.
7514 (JvRunMain): Set the name of this executable.
7516 * Makefile.am: Add java/lang/natThrowable.cc.
7518 * Makefile.in: Rebuilt.
7520 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7522 * configure.in: Force link with __frame_state_for in
7523 FORCELIBGCCSPEC. Add new checks for backtrace.
7524 * include/config.h.in: Rebuilt.
7526 * name-finder.cc: New file.
7527 * include/name-finder.h: New file.
7529 2000-01-16 Anthony Green <green@cygnus.com>
7531 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7534 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7536 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7538 2000-01-13 Tom Tromey <tromey@cygnus.com>
7540 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7541 not system loader, as initiating loader.
7543 2000-01-11 Tom Tromey <tromey@cygnus.com>
7545 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7546 HP/UX. From David Scott Urban.
7548 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7550 * java/lang/natMath.cc (pow): Cast args to `double', not
7553 (IEEEremainder): Likewise.
7554 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7555 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7557 2000-01-09 Anthony Green <green@cygnus.com>
7559 * java/lang/natString.cc (init): Test for overflow condition
7560 during out of bounds check.
7561 (getChars): Throw StringIndexOutOfBoundsException, not
7562 ArrayIndexOutOfBoundsException.
7564 (regionMatches): Obey case option during string comparison.
7566 * configure.host (ligcj_interpreter): New variable. Enable
7567 interpreter by default on IA-32.
7568 * configure.in: Examine libgcj_interpreter.
7569 * configure: Rebuilt.
7571 2000-01-07 Tom Tromey <tromey@cygnus.com>
7573 * mauve-libgcj: Don't disable ClassTest.
7575 * java/lang/natClass.cc (getClasses): Wrote.
7577 2000-01-06 Tom Tromey <tromey@cygnus.com>
7579 * java/lang/natClass.cc (_getConstructors): Correctly check
7580 whether method name is the init name.
7581 (getMethod): Look at accflags on method in `klass', not `this'.
7583 2000-01-05 Tom Tromey <tromey@cygnus.com>
7585 * java/lang/natClass.cc (getMethod): Compute offset relative to
7586 `klass's methods table, not `this's table.
7588 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7589 In unwrapping/widening case, check whether `k' is null, not
7590 whether it is primitive. Initialize `num' from `argelts', not
7591 `paramelts'. Correct create and pass arguments to ffi_call.
7592 Don't let presence of `this' argument affect index used to look in
7594 (COPY): Set appropriate element in `values' vector.
7596 * java/lang/natClass.cc: Include <gcj/method.h>.
7598 * java/lang/Class.h (_getMethods): Correctly declare as private,
7601 * java/lang/Class.h (_getMethods): Declare.
7602 * java/lang/Class.java (_getMethods): Declare.
7603 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7604 (getDeclaredClasses): Always return empty array.
7605 (_getMethods): New method.
7606 (getMethods): Wrote.
7607 (getDeclaredMethod): Return `rmethod'.
7608 (finit_name): New global.
7609 (getDeclaredMethods): Check for finit_name.
7610 (_getMethods): Likewise.
7611 (getMethod): Only return public methods.
7613 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7614 jboolean and select correct ffi type on that basis.
7615 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7616 Constructor call always has `void' return type.
7618 2000-01-04 Tom Tromey <tromey@cygnus.com>
7620 * java/lang/Class.h (getSignature): Updated.
7621 * java/lang/Class.java (getSignature): Updated.
7622 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7624 (getConstructor): Ensure constructor is public.
7625 (_getConstructors): Check for public-ness of constructor when
7626 `declared' is false, not when it is true.
7628 2000-01-04 Warren Levy <warrenl@cygnus.com>
7630 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7632 (receive): Set the sender's address in the DatagramPacket.
7634 2000-01-04 Tom Tromey <tromey@cygnus.com>
7636 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7637 declaring class as return_type argument to
7638 _Jv_CallNonvirtualMethodA.
7639 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7640 constructor case, create object and use it as `this' argument.
7641 * java/lang/Class.h (_getConstructors): Declare.
7642 (_getFields): Declare.
7643 * java/lang/Class.java (getConstructors): Wrote.
7644 (_getConstructors): New native method.
7645 (getDeclaredConstructors): Wrote.
7646 (_getFields): Declare new native method.
7647 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7649 (getMethod): Work correctly when class is primitive.
7650 (getDeclaredMethods): Likewise. Compute offset using `method',
7652 (getDeclaredMethod): Likewise.
7653 (getConstructor): Wrote.
7654 (ConstructorClass): New define.
7655 (getDeclaredConstructor): Wrote.
7656 (_getConstructors): New method.
7657 (_getFields): New method.
7660 * Makefile.in: Rebuilt.
7661 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7663 * prims.cc: Remove `#pragma implementation'.
7664 * gcj/array.h: Remove `#pragma interface'.
7666 * prims.cc (_Jv_equaln): New function.
7667 * java/lang/Class.java (getSignature): Declare.
7668 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7669 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7671 (getSignature): New method.
7672 (getDeclaredMethod): Wrote.
7674 Include StringBuffer.h.
7675 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7676 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7678 (getSignature): Declare.
7679 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7680 (_Jv_equaln): Declare.
7681 (_Jv_CallNonvirtualMethodA): Declare.
7682 * Makefile.in: Rebuilt.
7683 * Makefile.am (nat_source_files): Added natConstructor.cc.
7684 (java/lang/reflect/Constructor.h): New target.
7685 * java/lang/reflect/natConstructor.cc: New file.
7686 * java/lang/reflect/Constructor.java (newInstance): Now native.
7687 (declaringClass): Renamed from decl_class.
7688 (offset): Renamed from index.
7689 (getType): New native method.
7690 (getModifiers): Now native.
7691 (getParameterTypes): Call getType if required.
7692 (hashCode): Include hash code from declaring class.
7693 (modifiers): Removed.
7694 (toString): Call getType if required.
7695 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7696 * java/lang/reflect/natMethod.cc (hack_call): New method.
7697 Removed `#if 0' around FFI code.
7698 Include <gnu/gcj/RawData.h>.
7699 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7700 IllegalArgumentException when argument object and class disagree.
7701 (_Jv_GetTypesFromSignature): New function.
7703 (ObjectClass): New define.
7704 (_Jv_CallNonvirtualMethodA): New function.
7705 * java/lang/reflect/Method.java (hack_trampoline): New method.
7706 (hack_call): New native method.