1 2001-09-26 Tom Tromey <tromey@redhat.com>
3 * java/io/DataInputStream.java (readChar): Use readFully.
7 (readUnsignedShort): Likewise.
9 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
12 IllegalThreadStateException if process hasn't exited yet.
13 * java/lang/natPosixProcess.cc (exitValue): Removed.
14 (waitFor): Only check thread interrupted status if waitpid() returned
15 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
18 * java/security/cert/X509Extension.java: Merge from classpath.
20 2001-09-22 Anthony Green <green@redhat.com>
22 * java/security/DummyKeyPairGenerator.java (initialize): New
23 method (with AlgorithmParameterSpec argument).
25 2001-09-22 Anthony Green <green@redhat.com>
27 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
29 * gnu/java/security/provider/SHA1PRNG.java: Extend from
31 (engineNextBytes): Fix order of memory copies.
33 2001-09-21 Richard Henderson <rth@redhat.com>
35 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
36 add get_method, set_method, vtable_elt_size, new_vtable.
37 (_Jv_ArrayVTable): Derive from _Jv_VTable.
38 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
39 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
40 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
42 2001-09-21 Richard Henderson <rth@redhat.com>
44 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
45 * java/lang/mprec.c (lo0bits): Fix paren typo.
47 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
49 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
50 blocking IO via pthread_kill().
51 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
52 interrupted status flag only if ::write returned an error.
53 (write (jbyteArray, jint, jint): Likewise.
54 (read (jint)): Likewise.
55 (read (jbyteArray, jint, jint): Likewise.
57 2001-09-19 Anthony Green <green@redhat.com>
59 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
62 2001-09-17 Andreas Jaeger <aj@suse.de>
64 * jni.cc (array_from_valist): Use promoted types for va_arg.
66 2001-09-16 Anthony Green <green@redhat.com>
68 * gnu/java/locale/LocaleInformation.java: Extend
69 LocaleInformation_en_US, not LocaleInformation_en.
71 2001-09-16 Anthony Green <green@redhat.com>
73 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
75 2001-09-14 Tom Tromey <tromey@redhat.com>
77 * java/util/TimeZone.java: Updated list of timezones from
80 * java/lang/CloneNotSupportedException.java: Re-merged with
83 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
85 * java/io/File.java (normalizePath): Use equals() not '==' for string
88 * java/util/Hashtable.java (Enumerator): Ensure that if
89 hasMoreElements() returns true, nextElement() will always return
90 something even if the table has been modified.
92 2001-09-12 Tom Tromey <tromey@redhat.com>
94 * Makefile.in: Rebuilt.
95 * Makefile.am (class-check): New target.
97 2001-09-11 Tom Tromey <tromey@redhat.com>
99 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
101 2001-09-10 Tom Tromey <tromey@redhat.com>
103 * java/util/Properties.java (load): Correctly read \u sequences.
104 Report from Anthony Green.
106 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
108 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
109 and $(MULTIBUILDTOP).
110 * configure: Re-generate.
112 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
114 * include/jvm.h (_Jv_AllocRawObj): New prototype.
115 * boehm.cc (_Jv_AllocRawObj): Implement.
116 * nogc.cc (_Jv_AllocRawObj): Likewise.
117 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
119 2001-09-06 Anthony Green <green@redhat.com>
121 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
122 redundant method calls.
123 (emptyLocale): New private member.
124 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
127 2001-09-06 Tom Tromey <tromey@redhat.com>
129 * java/text/RuleBasedCollator.java (clone): Rewrote.
130 (RuleBasedCollator(RuleBasedCollator)): Removed.
131 * java/text/MessageFormat.java: Re-merged from Classpath.
132 * java/text/DecimalFormat.java: Re-merged from Classpath.
134 2001-09-06 Anthony Green <green@redhat.com>
136 * include/jvm.h: Declare _Jv_RegisterResource.
137 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
138 gnu/gcj/protocol/core/Connection.java,
139 gnu/gcj/protocol/core/Handler.java,
140 gnu/gcj/protocol/core/CoreInputStream.java,
141 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
142 * java/net/URL.java (setURLStreamHandler): Use
143 gnu.gcj.protocol.core.Handler for the core protocol.
144 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
145 end of java.class.path.
146 * Makefile.am (ordinary_java_source_files): Add new java files.
147 (nat_source_files): Add new native code files.
148 * Makefile.in: Rebuilt.
150 2001-09-05 Tom Tromey <tromey@redhat.com>
152 * java/util/Properties.java: Re-merged from Classpath.
154 From Eric Blake, via Classpath:
155 * java/lang/String.java (CaseInsensitiveComparator): New class.
156 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
158 * java/util/Date.java: Re-merged with Classpath.
160 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
162 2001-09-05 Corey Minyard <minyard@acm.org>
163 Tom Tromey <tromey@redhat.com>
165 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
166 (_Jv_RegisterClassHookDefault): Throw error if a class is
169 2001-09-05 Tom Tromey <tromey@redhat.com>
171 * java/lang/natSystem.cc (init_properties): Default locale is
174 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
176 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
177 here, DecimalFormat.applyPattern() does not throw it.
179 2001-09-04 Tom Tromey <tromey@redhat.com>
181 * java/util/AbstractMap.java: Re-merged with Classpath.
182 * java/util/IdentityHashMap.java: Re-merged with Classpath.
184 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
185 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
186 gnu/gcj/text/LocaleData_en_US.java: Removed.
187 * java/text/DateFormatSymbols.java (clone): Use Classpath
189 (equals): Simplified.
190 (DateFormatSymbols): Look in gnu.java.locale for information.
191 (DateFormatSymbols(DateFormatSymbols)): Removed.
192 (safeGetResource): Removed.
193 (DateFormatSymbols): Throws MissingResourceException.
194 (ampmsDefault, erasDefault, localPatternCharsDefault,
195 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
196 weekdaysDefault, zoneStringsDefault): Removed.
197 * java/text/Collator.java (getAvailableLocales): Use modified
198 Classpath implementation.
199 (getInstance): Look in gnu.java.locale for information.
201 * java/text/MessageFormat.java: Reindented.
203 * java/text/FieldPosition.java: Merged with Classpath.
204 * java/text/ParsePosition.java: Merged with Classpath.
205 * java/text/Format.java: Merged with Classpath.
206 * java/text/StringCharacterIterator.java
207 (StringCharacterIterator(StringCharacterIterator,int,int)): New
208 constructor from Classpath.
209 * java/text/Annotation.java,
210 java/text/AttributedCharacterIterator.java,
211 java/text/AttributedString.java,
212 java/text/AttributedStringIterator.java: New from Classpath.
213 * java/text/CharacterIterator.java: Copied from Classpath.
214 * java/text/ChoiceFormat.java: Reindented.
216 * gnu/java/text/BaseBreakIterator.java,
217 gnu/java/text/CharacterBreakIterator.java,
218 gnu/java/text/LineBreakIterator.java,
219 gnu/java/text/LocaleData_en.java,
220 gnu/java/text/LocaleData_en_US.java,
221 gnu/java/text/SentenceBreakIterator.java,
222 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
223 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
225 * java/text/BreakIterator.java (getAvailableLocales): Use
226 Classpath implementation.
227 (getInstance): Look in gnu.java.locale for information.
228 (getCharacterInstance, getLineInstance, getSentenceInstance,
229 getWordInstance): Look in gnu.java.text for implementations.
230 * java/text/DecimalFormatSymbols.java: Reindented
231 (clone): Use Classpath implementation.
232 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
233 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
235 * java/text/DateFormat.java: Merged with Classpath.
236 (getAvailableLocales): Use Classpath implementation.
237 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
238 (computeInstance): Look in gnu.java.locale for information.
239 * java/text/NumberFormat.java: Reindented.
240 (computeInstance): Look in gnu.java.locale for information.
241 (getAvailableLocales): Use implementation from Classpath.
242 (setMaximumIntegerDigits): Likewise.
243 (setMinimumIntegerDigits): Likewise.
244 (setMaximumFractionDigits): Likewise.
246 * java/text/DecimalFormat.java: Reindented.
247 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
248 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
249 * Makefile.in: Rebuilt.
250 * Makefile.am (ordinary_java_source_files): Added all new files.
251 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
252 * java/security/spec/AlgorithmParameterSpec.java,
253 java/security/spec/KeySpec.java: Re-merged with Classpath.
255 Fix for PR libgcj/4213:
256 * Makefile.am (ordinary_java_source_files): Added new file.
257 * gnu/gcj/text/LocaleData.java: New file.
259 2001-09-03 Tom Tromey <tromey@redhat.com>
261 * java/lang/reflect/natField.cc (set): Allow for case when the
262 value is null. Fixes PR libgcj/4208.
264 * gcj/javaprims.h: Regenerated class list.
265 * java/lang/IllegalThreadStateException.java,
266 java/lang/InstantiationException.java: Minor comment tweaks to
267 satisfy libgcj `classes.pl' script.
269 2001-09-01 Tom Tromey <tromey@redhat.com>
271 * Makefile.in: Rebuilt.
272 * Makefile.am (core_java_source_files): Added
273 UnsupportedClassVersionError.
274 * java/lang/UnsupportedClassVersionError.java: New file from
277 * java/io/CharConversionException.java, java/io/EOFException.java,
278 java/io/FileNotFoundException.java, java/io/IOException.java,
279 java/io/InterruptedIOException.java,
280 java/io/ObjectStreamException.java,
281 java/io/OptionalDataException.java,
282 java/io/StreamCorruptedException.java,
283 java/io/SyncFailedException.java,
284 java/io/UTFDataFormatException.java,
285 java/io/UnsupportedEncodingException.java,
286 java/lang/AbstractMethodError.java,
287 java/lang/ArithmeticException.java,
288 java/lang/ArrayIndexOutOfBoundsException.java,
289 java/lang/ArrayStoreException.java,
290 java/lang/ClassCastException.java,
291 java/lang/ClassCircularityError.java,
292 java/lang/ClassFormatError.java,
293 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
294 java/lang/Exception.java,
295 java/lang/ExceptionInInitializerError.java,
296 java/lang/IllegalAccessError.java,
297 java/lang/IllegalAccessException.java,
298 java/lang/IllegalArgumentException.java,
299 java/lang/IllegalMonitorStateException.java,
300 java/lang/IllegalStateException.java,
301 java/lang/IllegalThreadStateException.java,
302 java/lang/IncompatibleClassChangeError.java,
303 java/lang/IndexOutOfBoundsException.java,
304 java/lang/InstantiationError.java,
305 java/lang/InstantiationException.java,
306 java/lang/InternalError.java, java/lang/InterruptedException.java,
307 java/lang/LinkageError.java,
308 java/lang/NegativeArraySizeException.java,
309 java/lang/NoClassDefFoundError.java,
310 java/lang/NoSuchFieldError.java,
311 java/lang/NoSuchFieldException.java,
312 java/lang/NoSuchMethodError.java,
313 java/lang/NoSuchMethodException.java,
314 java/lang/NullPointerException.java,
315 java/lang/NumberFormatException.java,
316 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
317 java/lang/SecurityException.java,
318 java/lang/StackOverflowError.java,
319 java/lang/StringIndexOutOfBoundsException.java,
320 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
321 java/lang/UnsatisfiedLinkError.java,
322 java/lang/UnsupportedOperationException.java,
323 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
324 java/lang/reflect/InvocationTargetException.java,
325 java/net/BindException.java, java/net/ConnectException.java,
326 java/net/MalformedURLException.java,
327 java/net/NoRouteToHostException.java,
328 java/net/ProtocolException.java, java/net/SocketException.java,
329 java/net/UnknownHostException.java,
330 java/net/UnknownServiceException.java,
331 java/text/ParseException.java: Copied from Classpath, thanks to
332 Mark Wielaard who did the merge.
334 * java/lang/System.java (getProperty): Use single argument form of
335 SecurityManager.checkPropertyAccess.
336 * Makefile.in: Rebuilt.
337 * Makefile.am (core_java_source_files): Added VMSecurityManager.
338 * java/lang/VMSecurityManager.java: New file.
339 * java/lang/SecurityManager.java: Merged with Classpath.
341 2001-08-31 Per Bothner <per@bothner.com>
343 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
344 (_Jv_RegisterClassHookDefault): Likewise.
345 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
346 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
347 (_Jv_RegisterClassHookDefault): New.function.
348 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
350 * java/lang/ClassLoader.java (system): Remove static field.
351 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
352 directly instead of using it to set the system field.
353 (loadClass): Use VMClassLoader.instance instead of system field.
354 (findSystemClass): Similar.
355 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
356 than ClassLoader::system which no longer exists.
357 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
359 2001-08-31 Tom Tromey <tromey@redhat.com>
361 * java/io/BufferedReader.java, java/io/ObjectInput.java,
362 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
363 Re-merged with Classpath.
365 Re-merge with Classpath:
366 * java/util/Comparator (equals): Added.
367 * java/io/PipedWriter.java (write): Changed argument to `int'.
369 * java/io/FileDescriptor.java (FileDescriptor()): New
371 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
373 * Makefile.in: Rebuilt.
374 * Makefile.am (ordinary_java_source_files): Removed
375 EnumerationChain, added DoubleEnumeration.
376 (nat_source_files): Added natResourceBundle.cc.
377 * java/util/natResourceBundle.cc: New file.
378 * gnu/java/util/DoubleEnumeration.java: New file.
379 * gnu/gcj/util/EnumerationChain.java: Removed.
380 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
381 * java/util/ResourceBundle.java: Merged with Classpath.
382 * java/util/StringTokenizer.java: Merged with Classpath.
383 * java/util/Locale.java: Merged with Classpath.
384 * java/util/Random.java: Merged with Classpath.
385 * java/util/PropertyResourceBundle.java: Merged with Classpath.
386 * java/util/ListResourceBundle.java: Merged with Classpath.
387 * java/util/ConcurrentModificationException.java: Re-merged with
389 * java/util/EmptyStackException.java: Likewise.
390 * java/util/MissingResourceException.java: Likewise.
391 * java/util/NoSuchElementException.java: Likewise.
392 * java/util/TooManyListenersException.java: Likewise.
394 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
395 * java/io/OptionalDataException.java: Merged with Classpath.
397 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
399 * exception.cc (PERSONALITY_FUNCTION): Simplify
402 2001-08-31 Tom Tromey <tromey@redhat.com>
404 * java/io/ByteArrayInputStream.java: Merged with Classpath.
406 2001-08-30 Tom Tromey <tromey@redhat.com>
408 * java/io/BufferedReader.java: Re-merged with Classpath.
410 2001-08-28 Per Bothner <per@bothner.com>
412 * java/math/BigInteger.java (init(int,Random)): New method.
413 Move body of constructor <init>(int,Random)) here.
414 Re-write it to avoid constructing unneeded temporaries.
415 (<init>(int,int,Random)): Use new init method to avoid constructing
416 extra temporary BigIntegers.
418 2001-08-27 Tom Tromey <tromey@redhat.com>
420 * java/rmi/activation/Activatable.java,
421 java/rmi/activation/ActivateFailedException.java,
422 java/rmi/activation/ActivationDesc.java,
423 java/rmi/activation/ActivationException.java,
424 java/rmi/activation/ActivationGroup.java,
425 java/rmi/activation/ActivationGroupDesc.java,
426 java/rmi/activation/ActivationGroupID.java,
427 java/rmi/activation/ActivationID.java,
428 java/rmi/activation/ActivationInstantiator.java,
429 java/rmi/activation/ActivationMonitor.java,
430 java/rmi/activation/ActivationSystem.java,
431 java/rmi/activation/Activator.java,
432 java/rmi/activation/UnknownGroupException.java,
433 java/rmi/activation/UnknownObjectException.java,
434 java/rmi/AccessException.java,
435 java/rmi/AlreadyBoundException.java,
436 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
437 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
438 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
439 java/rmi/NotBoundException.java,
440 java/rmi/RMISecurityException.java,
441 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
442 java/rmi/RemoteException.java, java/rmi/ServerError.java,
443 java/rmi/ServerException.java,
444 java/rmi/ServerRuntimeException.java,
445 java/rmi/StubNotFoundException.java,
446 java/rmi/UnexpectedException.java,
447 java/rmi/UnknownHostException.java,
448 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
449 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
450 java/rmi/registry/LocateRegistry.java,
451 java/rmi/registry/Registry.java,
452 java/rmi/registry/RegistryHandler.java,
453 java/rmi/server/ExportException.java,
454 java/rmi/server/LoaderHandler.java,
455 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
456 java/rmi/server/Operation.java,
457 java/rmi/server/RMIClassLoader.java,
458 java/rmi/server/RMIClientSocketFactory.java,
459 java/rmi/server/RMIFailureHandler.java,
460 java/rmi/server/RMIServerSocketFactory.java,
461 java/rmi/server/RMISocketFactory.java,
462 java/rmi/server/RemoteCall.java,
463 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
464 java/rmi/server/RemoteServer.java,
465 java/rmi/server/RemoteStub.java,
466 java/rmi/server/ServerCloneException.java,
467 java/rmi/server/ServerNotActiveException.java,
468 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
469 java/rmi/server/SkeletonMismatchException.java,
470 java/rmi/server/SkeletonNotFoundException.java,
471 java/rmi/server/SocketSecurityException.java,
472 java/rmi/server/UID.java,
473 java/rmi/server/UnicastRemoteObject.java,
474 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
475 gnu/java/rmi/dgc/DGCImpl_Skel.java,
476 gnu/java/rmi/dgc/DGCImpl_Stub.java,
477 gnu/java/rmi/registry/RegistryImpl.java,
478 gnu/java/rmi/registry/RegistryImpl_Skel.java,
479 gnu/java/rmi/registry/RegistryImpl_Stub.java,
480 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
481 gnu/java/rmi/server/ProtocolConstants.java,
482 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
483 gnu/java/rmi/server/RMIHashes.java,
484 gnu/java/rmi/server/RMIObjectInputStream.java,
485 gnu/java/rmi/server/RMIObjectOutputStream.java,
486 gnu/java/rmi/server/UnicastConnection.java,
487 gnu/java/rmi/server/UnicastConnectionManager.java,
488 gnu/java/rmi/server/UnicastRef.java,
489 gnu/java/rmi/server/UnicastRemoteCall.java,
490 gnu/java/rmi/server/UnicastRemoteStub.java,
491 gnu/java/rmi/server/UnicastServer.java,
492 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
493 Kaffe. Relabelled classes to fit into Classpath tree.
494 * Makefile.in: Rebuilt.
495 * Makefile.am (rmi_java_source_files): New macro.
496 (ordinary_java_source_files): Reference it.
497 (bin_PROGRAMS): Added rmic and rmiregistry.
498 (rmic_SOURCES): New macro.
499 (EXTRA_rmic_SOURCES): Likewise.
500 (rmic_LDFLAGS): Likewise.
501 (rmic_LINK): Likewise.
502 (rmic_LDADD): Likewise.
503 (rmic_DEPENDENCIES): Likewise.
504 (rmiregistry_SOURCES): New macro.
505 (EXTRA_rmiregistry_SOURCES): Likewise.
506 (rmiregistry_LDFLAGS): Likewise.
507 (rmiregistry_LINK): Likewise.
508 (rmiregistry_LDADD): Likewise.
509 (rmiregistry_DEPENDENCIES): Likewise.
511 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
513 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
515 * Makefile.am: New friends for java/lang/Thread.h.
516 * prims.cc (runFirst): Removed.
517 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
518 (_Jv_RunMain): Now takes either a klass or class name parameter.
519 Create a gnu.gcj.runtime.FirstThread and attach the native thread
520 to that, then run it using _Jv_ThreadRun. Remove special handling of
521 jar files, instead pass is_jar parameter through to FirstThread.
522 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
523 of _Jv_AttachCurrentThread.
524 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
525 (run): New method. Take care of looking up main class manifest
526 attribute and calling forName if neccessary. Then call call_main.
527 (call_main): New native method.
528 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
529 relocated from prims.cc. Look up and call main method.
530 * java/lang/Thread.java (run_): Removed.
531 * java/lang/natThread.cc (run_): Renamed to...
532 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
533 (_Jv_NotifyThreadStart): here. New function.
534 (countStackFrames, destroy, resume, suspend, stop): Throw
535 UnsupportedOperationExceptions rather than JvFail'ing.
536 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
537 Existing version wraps new variant.
540 2001-08-23 Tom Tromey <tromey@redhat.com>
542 * java/lang/reflect/Field.java (toString): Use
543 Method.appendClassName.
544 * java/lang/reflect/Constructor.java (toString): Use
545 Method.appendClassName.
546 * java/lang/reflect/Method.java: Reindented.
547 (appendClassName): New method.
549 * defineclass.cc (handleMethod ): Initialize `throws' field of
551 (read_one_method_attribute): Handle Exceptions attribute.
552 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
553 (ObjectClass): Removed.
554 (getType): Compute `exception_types'.
555 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
557 2001-08-21 Anthony Green <green@redhat.com>
559 * java/lang/natClassLoader.cc (findClass): Search for
560 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
562 2001-08-21 Jeff Sturm <jsturm@one-point.com>
564 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
567 2001-08-20 Tom Tromey <tromey@redhat.com>
569 * java/awt/GridBagConstraints.java: Removed comment.
571 * jni.cc (nathash, nathash_count, nathash_size): New globals.
572 (DELETED_ENTRY): New define.
573 (hash): New function.
574 (nathash_find_slot): Likewise.
575 (natrehash): Likewise.
576 (nathash_add): Likewise.
577 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
579 (nathash_find): New function.
580 (_Jv_LookupJNIMethod): Use it. Synchronize body.
581 (call): Synchronize around assignment.
583 2001-08-17 Jeff Sturm <jsturm@one-point.com>
585 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
586 starting from zero offset.
588 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
590 * boehm.cc: Include gc_local_alloc.h if appropriate.
591 (GC_GENERIC_MALLOC): Don't define.
592 (MAYBE_MARK): Redefine for GC 6.0.
593 (_Jv_MarkObj): Mark class differently.
594 (_Jv_AllocArray): Use GC_generic_malloc.
596 2001-08-17 Mark J Roberts <mjr@anarcast.net>
598 * java/math/BigInteger.java (randBytes): New method.
599 (BigInteger(int,Random)): Use randBytes.
601 2001-08-17 Tom Tromey <tromey@redhat.com>
603 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
605 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
607 * BigInteger.java: fix right shifts by nonzero multiples of 32.
609 2001-08-15 Tom Tromey <tromey@redhat.com>
611 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
612 (local_ref_table, global_ref_table): Now IdentityHashMap.
613 (_Jv_JNI_Init): Updated for new types.
614 (mark_for_gc): Likewise.
615 (unmark_for_gc): Likewise.
616 * gcj/javaprims.h: Rebuilt class list.
617 * Makefile.in: Rebuilt.
618 * Makefile.am (core_java_source_files): Added new file.
619 * java/util/IdentityHashMap.java: New file.
621 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
624 2001-08-09 Tom Tromey <tromey@redhat.com>
626 * java/awt/image/SampleModel.java (getPixel): Set correct array
627 element. From Chris Meyer.
629 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
631 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
632 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
634 2001-08-06 Tom Tromey <tromey@redhat.com>
636 * java/io/InputStreamReader.java (refill): Only call refill on
637 BufferedInputStream when appropriate constraints are met.
639 2001-08-05 Tom Tromey <tromey@redhat.com>
641 * java/io/StringWriter.java: Merged with Classpath.
642 * java/io/InputStream.java: Merged with Classpath.
643 * java/io/OutputStream.java: Merged with Classpath.
644 * java/io/PushbackInputStream.java: Merged with Classpath.
645 * java/io/CharArrayReader.java: Merged with Classpath.
646 * java/io/CharArrayWriter.java: Merged with Classpath.
648 2001-08-02 Tom Tromey <tromey@redhat.com>
650 * prims.cc (JNI_OnLoad): Don't declare.
651 (_JNI_OnLoad): Don't define.
652 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
654 2001-08-02 Tom Tromey <tromey@redhat.com>
656 * java/io/RandomAccessFile.java (seek): Let seek go past end of
658 (skipBytes): Don't fail if seeking past end of file.
659 * java/io/FileInputStream.java (skip): Don't fail if seeking past
661 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
663 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
665 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
667 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
669 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
671 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
672 to initialize global_ref_table/local_ref_table.
674 2001-08-02 Tom Tromey <tromey@redhat.com>
676 * configure: Rebuilt.
677 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
680 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
682 * include/posix.h (_POSIX_PII_SOCKET): Define.
683 * configure.in (HAVE_SOCKLEN_T): Define.
684 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
686 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
687 (java::net::PlainSocketImpl::accept): Use it.
688 Fixes PRs libgcj/3694, libgcj/3696.
690 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
691 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
692 * configure, include/config.h.in: Regenerate.
693 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
694 (mcastGrp): Likewise.
695 (java::net::PlainDatagramSocketImpl::setOption): Guard against
696 missing IPV6_MULTICAST_IF.
697 Fixes PR libgcj/3694.
699 2001-08-01 Jeff Sturm <jsturm@one-point.com>
701 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
703 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
705 * Makefile.in: Rebuilt.
706 * Makefile.am (GCJLINK): Added --tag=GCJ.
709 2001-07-30 Tom Tromey <tromey@redhat.com>
711 * java/util/Date.java: Re-merged with Classpath.
713 2001-07-30 Jeff Sturm <jsturm@one-point.com>
715 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
716 (_Jv_bind): New static function.
717 (bind): Use _Jv_bind.
718 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
719 (_Jv_bind, _Jv_connect): New static functions.
720 (bind): Use _Jv_bind.
721 (connect): Use _Jv_connect.
723 2001-07-30 Tom Tromey <tromey@redhat.com>
724 Corey Minyard <minyard@acm.org>
726 * gnu/gcj/convert/natIconv.cc (done): New methods.
727 * gnu/gcj/convert/Output_iconv.java (done): New method.
728 * gnu/gcj/convert/Input_iconv.java (done): New method.
729 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
731 (getDefaultEncodingClass): Removed.
732 (getDefaultEncoder): Use getEncoder.
734 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
736 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
738 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
740 (getDefaultDecodingClass): Removed.
741 (getDefaultDecoder): Use getDecoder.
742 (getDecoder): Look up decoder in cache.
744 * java/lang/natString.cc (init): Call `done' on converter.
745 (getBytes): Likewise.
747 2001-07-30 Tom Tromey <tromey@redhat.com>
749 * java/lang/Integer.java: Merged with Classpath.
751 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
753 * java/util/GregorianCalendar.java (GregorianCalendar): Call
754 setTimeInMillis() to set the default/current time.
756 2001-07-29 Mark Wielaard <mark@klomp.org>
758 * HACKING: add description on updating namespace
760 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
762 * java/util/Calendar.java (set): Never recompute fields here. They
763 will already be set if someone set time explicitly, and it can cause
764 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
765 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
766 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
768 * java/text/SimpleDateFormat.java (defaultCentury): New field.
769 (readObject): Call set2DigitYearStart if appropriate so that
770 defaultCentury is calculated.
771 (SimpleDateFormat): Don't bother clearing calendar here. Call
772 computeCenturyStart().
773 (set2DigitYearStart): Calculate and set defaultCentury.
774 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
776 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
777 2 numeric digits, use the 80-20 heuristic to parse the value into a
778 default century based on defaultCenturyStart.
779 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
781 2001-07-25 Tom Tromey <tromey@redhat.com>
783 * Makefile.in: Rebuilt.
784 * Makefile.am (libgcj.jar): Correctly fail when bytecode
787 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
789 * prims.cc (_JNI_OnLoad): New function.
790 (JNI_OnLoad): Use it.
791 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
793 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
795 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
796 Makefile.in: Regenerate.
798 2001-07-24 Tom Tromey <tromey@redhat.com>
800 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
803 2001-07-23 Tom Tromey <tromey@redhat.com>
805 * gcj/javaprims.h: Rebuilt class list.
806 * Makefile.in: Rebuilt.
807 * Makefile.am (core_java_source_files): Added VMClassLoader.
808 * java/lang/VMClassLoader.java: New file.
809 * java/lang/Boolean.java: Merged with Classpath.
810 * java/lang/Byte.java: Merged with Classpath.
811 * java/lang/Integer.java: Merged with Classpath.
812 * java/lang/Long.java: Merged with Classpath.
813 * java/lang/Number.java: Merged with Classpath.
814 * java/lang/Short.java: Merged with Classpath.
816 2001-07-22 Jeff Sturm <jsturm@one-point.com>
818 * configure.host: Enable hash synchronization for alpha*-*.
819 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
821 * java/lang/natObject.cc (compare_and_swap, release_set,
822 compare_and_swap_release): Added inline functions for alpha.
824 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
826 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
827 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
828 back to old RFC 2133 variants if missing.
830 2001-07-18 Tom Tromey <tromey@redhat.com>
832 * java/io/natFileWin32.cc (_access): Renamed.
834 * java/io/natFile.cc (_access): Renamed.
836 * java/io/File.java (access, stat): Add leading `_' to name.
839 2001-07-18 Tom Tromey <tromey@redhat.com>
842 * libgcj.spec.in (*lib): Added LIBICONV.
843 * configure: Rebuilt.
844 * configure.in: Call AM_ICONV. Don't check for iconv function.
845 Add parameters to JV_HASH_SYNCHRONIZATION define.
846 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
848 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
850 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
851 not by setting its size field.
853 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
855 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
858 2001-07-12 Tom Tromey <tromey@redhat.com>
859 David Brownell <david-b@pacbell.net>
861 Fix for PR libgcj/3426:
862 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
864 (read): Throw exception if character conversion fails.
865 * java/io/BufferedInputStream.java (refill): Now package-private.
866 * java/io/InputStreamReader.java (ready): Simplified.
867 (refill): New method.
870 2001-07-12 Tom Tromey <tromey@redhat.com>
872 Report from Henner Zeller:
873 * java/io/FileOutputStream.java (FileOutputStream): Throw
874 FileNotFoundException, not IOException.
876 2001-07-10 Anthony Green <green@redhat.com>
878 * Makefile.in: Rebuilt.
879 * Makefile.am: Add new files.
880 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
881 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
882 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
883 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
884 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
885 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
886 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
887 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
888 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
889 org/w3c/dom/ranges/DocumentRange.java,
890 org/w3c/dom/ranges/Range.java,
891 org/w3c/dom/ranges/RangeException.java,
892 org/w3c/dom/traversal/DocumentTraversal.java,
893 org/w3c/dom/traversal/NodeFilter.java,
894 org/w3c/dom/traversal/NodeIterator.java,
895 org/w3c/dom/traversal/TreeWalker.java,
896 org/xml/sax/ext/DeclHandler.java,
897 org/xml/sax/ext/LexicalHandler.java,
898 org/xml/sax/helpers/AttributeListImpl.java,
899 org/xml/sax/helpers/AttributesImpl.java,
900 org/xml/sax/helpers/DefaultHandler.java,
901 org/xml/sax/helpers/LocatorImpl.java,
902 org/xml/sax/helpers/NamespaceSupport.java,
903 org/xml/sax/helpers/ParserAdapter.java,
904 org/xml/sax/helpers/ParserFactory.java,
905 org/xml/sax/helpers/XMLFilterImpl.java,
906 org/xml/sax/helpers/XMLReaderAdapter.java,
907 org/xml/sax/helpers/XMLReaderFactory.java,
908 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
909 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
910 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
911 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
912 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
913 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
914 org/xml/sax/SAXNotRecognizedException.java,
915 org/xml/sax/SAXNotSupportedException.java,
916 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
917 org/xml/sax/XMLReader.java: New files.
919 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
921 * Makefile.am: Added `java/lang/ThreadLocal.java'.
922 * Makefile.in: Regenerate.
923 * java/lang/ThreadLocal.java: Initial import.
925 2001-07-07 Jeff Sturm <jsturm@one-point.com>
927 * Makefile.am (libgcj.jar): Don't recursively make
928 built_java_source_files. Avoid long command lines.
929 Don't change to $(srcdir) to invoke javac.
930 (libgcj.la, libgcjx.la); Avoid long command lines.
931 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
932 * Makefile.in: Rebuilt.
934 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
936 * include/i386-signal.h: Don't do anything with unsigned divide
937 overflow except throw an exception.
939 2001-07-05 Tom Tromey <tromey@redhat.com>
942 * java/lang/Class.h (Class(void)): Now private. Removed
943 implementation. From dmorsberger@sensysdl.com.
945 2001-07-02 Tom Tromey <tromey@redhat.com>
947 Fix for PR bootstrap/3281:
948 * aclocal.m4, configure: Rebuilt.
949 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
950 Correctly compute libgcj_basedir.
951 (mkinstalldirs): Define and subst.
953 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
956 * java/io/LineNumberReader.java (reset): Pass correct arguments to
959 2001-06-27 Tom Tromey <tromey@redhat.com>
961 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
964 2001-06-25 Tom Tromey <tromey@redhat.com>
966 * scripts/encodings.pl: Generate lower-case names. Updated URL
967 for `character-sets' file.
968 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
970 Rebuilt list of aliases.
972 2001-06-25 Tom Tromey <tromey@redhat.com>
974 * java/io/natFileDescriptorPosix.cc (open): Change error message
975 formatting. From David Brownell.
977 2001-06-21 Tom Tromey <tromey@redhat.com>
979 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
982 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
984 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
985 extraneous/malformed sign word.
987 2001-06-15 Tom Tromey <tromey@redhat.com>
989 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
991 2001-06-15 Tom Tromey <tromey@redhat.com>
993 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
994 NULL if no library on the list has the symbol.
995 (init): Call add_library on the program itself.
996 * prims.cc (JvRunMain): Initialize Runtime before searching for
998 (_Jv_RunMain): Likewise.
1000 2001-06-15 Tom Tromey <tromey@redhat.com>
1002 * jni.cc (ClassClass): Removed; updated all users.
1003 (ObjectClass): Likewise.
1004 (ThrowableClass): Likewise.
1005 (MethodClass): Likewise.
1006 (ThreadGroupClass): Likewise.
1007 (local_ref_table): Renamed from `ref_table'.
1008 (global_ref_table): New global.
1009 (_Jv_JNI_Init): Initialize both ref tables.
1010 (mark_for_gc): Added `ref_table' parameter.
1011 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1013 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1014 (_Jv_JNI_DeleteGlobalRef): Likewise.
1015 (_Jv_JNI_DeleteLocalRef): Likewise.
1016 (_Jv_JNI_NewLocalRef): Likewise.
1017 (_Jv_JNI_PopLocalFrame): Likewise.
1018 (_Jv_JNI_GetStringChars): Likewise.
1019 (_Jv_JNI_ReleaseStringChars): Likewise.
1020 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1021 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1023 2001-06-14 Tom Tromey <tromey@redhat.com>
1025 Fix for PR libgcj/3144:
1026 * java/util/Date.java: Merged with Classpath.
1028 2001-06-12 Tom Tromey <tromey@redhat.com>
1030 * aclocal.m4, configure: Rebuilt.
1031 * acinclude.m4: Find configure.host in srcdir.
1033 2001-06-07 Tom Tromey <tromey@redhat.com>
1035 Fix for PR libgcj/3059:
1036 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1037 * Makefile.in: Rebuilt.
1038 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1040 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1042 * exception.cc (cstdlib): Replaces stdlib.h.
1043 (_Jv_Throw): Use std::abort().
1044 (PERSONALITY_FUNCTION): Likewise.
1046 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1048 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1049 nothing, as in autoconf 2.50.
1050 * aclocal.m4, configure: Rebuilt.
1052 2001-06-08 Tom Tromey <tromey@redhat.com>
1054 * configure: Rebuilt.
1055 * configure.in: Compute new aux dir using `pwd'.
1057 2001-06-07 Tom Tromey <tromey@redhat.com>
1059 For PR bootstrap/3075:
1060 * configure, aclocal.m4, Makefile.am: Rebuilt.
1061 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1062 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1063 relative to libgcj_basedir.
1064 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1065 AC_CANONICAL_SYSTEM here.
1066 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1068 ($(extra_headers)): New target.
1070 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1071 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1073 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1074 table index is within allowed bounds. Ensure that we dont try to access
1075 class itable at a negative offset. Avoid an ancestor table lookup if
1076 source is a primitive type class.
1077 (isInstance): Remove redundant isPrimitive() check.
1079 2001-06-04 Tom Tromey <tromey@redhat.com>
1081 * java/security/PublicKey.java: Extend Key.
1082 * java/security/PrivateKey.java: Extend Key.
1084 2001-06-02 Anthony Green <green@redhat.com>
1086 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1087 alternate when USE_LTDL not defined.
1089 2001-06-02 Anthony Green <green@redhat.com>
1091 * configure: Rebuild.
1092 * configure.in: Remove data_start hack.
1093 * libgcj.spec.in: Ditto.
1094 * Makefile.in: Rebuild.
1095 * Makefile.am: Ditto.
1096 * libgcjdata.c: Remove.
1098 2001-06-02 Anthony Green <green@redhat.com>
1100 * configure: Rebuild.
1101 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1102 --without-libffi option. Tweak --disable-java-net processing.
1103 * Makefile.in: Rebuild.
1104 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1105 * include/config.h.in: Rebuild.
1106 * acconfig.h (USE_LIBFFI): Define.
1107 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1109 2001-06-02 Anthony Green <green@redhat.com>
1111 * configure: Rebuilt.
1112 * configure.in: Test for sigaction on native builds.
1113 * prims.cc: Check HAVE_SIGACTION.
1114 * include/config.h.in: Rebuilt.
1116 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1118 * natFile.cc (get_entry): Removed functions.
1119 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1120 Allocate enough storage for d_name if using readdir_r.
1122 2001-05-31 Tom Tromey <tromey@redhat.com>
1124 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1126 (write): Loop until write completes. From Corey Minyard.
1128 2001-05-29 Laurent Guerby <guerby@acm.org>
1130 * java/awt/geom/Rectangle2D.java: fix doc typo.
1132 2001-05-31 Tom Tromey <tromey@redhat.com>
1134 * java/sql/DriverManager.java (getDrivers): Handle case where
1135 driver's class loader is null. From Corey Minyard.
1137 2001-05-29 Tom Tromey <tromey@redhat.com>
1139 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1141 * configure: Rebuilt.
1142 * configure.in: Only add multilib support code if we just rebuilt
1145 2001-05-29 Andrew Haley <aph@redhat.com>
1147 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1148 pointer: the dwarf unwinder in libgcc will do everything that's
1150 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1151 more than we absolutely need to.
1152 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1153 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1155 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1157 * configure: Rebuilt.
1158 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1160 (SIGNAL_HANDLER): Use siginfo style handler.
1161 (INIT_SEGV): Likewise.
1162 (INIT_FPE): Likewise.
1163 * include/ppc-signal.h: Delete whole file.
1165 2001-05-24 Tom Tromey <tromey@redhat.com>
1167 * java/lang/natString.cc (init): Throw
1168 ArrayIndexOutOfBoundsException.
1169 (getChars): Likewise.
1170 (getBytes): Likewise.
1171 (valueOf): Likewise.
1173 * configure.in: Only allow hash synchronization when POSIX threads
1175 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1176 of sync info object.
1178 2001-05-23 Tom Tromey <tromey@redhat.com>
1180 * Makefile.in: Rebuilt.
1181 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1183 Revert patch of 2001-05-21:
1184 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1185 (libgcj_la_LIBADD): Likewise.
1186 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1187 (libgcjx_la_LIBADD): Likewise.
1189 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1190 * gcj/Makefile.in: Rebuilt.
1191 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1192 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1193 * gcj/libgcj-config.h.in: New file.
1194 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1195 * configure: Rebuilt.
1196 * configure.in: Enable hash synchronization by default on some
1198 (HASH_SYNC_SPEC): New subst.
1199 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1200 Correctly use `test -z' instead of `test -n' in a couple places.
1201 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1203 * configure.host (enable_java_net_default): Initialize.
1204 (enable_hash_synchronization_default): New variable.
1206 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1208 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1209 synchronization in use.
1210 (_Jv_MarkArray): Likewise.
1211 (_Jv_AllocBytes): Don't check return result.
1212 (handle_out_of_memory): New function.
1213 (_Jv_InitGC): Set GC_oom_fn.
1214 (trace_one_vtable): New global.
1215 (_Jv_AllocTraceOne): New function.
1216 * configure.in: Added --enable-hash-synchronization.
1217 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1218 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1219 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1220 (_Jv_AllocArray): Likewise.
1221 (_Jv_AllocBytes): Likewise.
1222 (_Jv_AllocPtrFreeObject): New function.
1223 (_Jv_AllocTraceOne): Likewise.
1224 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1226 (self_cache): New global.
1227 (_Jv_ThreadSelf_out_of_line): New function.
1228 * prims.cc (_Jv_AllocBytesChecked): Removed.
1229 (_Jv_ThrowNoMemory): New function.
1230 (_Jv_AllocObject): Don't check for null return from allocator.
1231 (_Jv_NewObjectArray): Likewise.
1232 (_Jv_AllocPtrFreeObject): New function.
1233 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1234 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1235 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1236 * include/boehm-gc.h (_Jv_AllocObj): Define.
1237 (_Jv_AllocPtrFreeObj): Define.
1238 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1239 (_Jv_ThrowNoMemory): Declare.
1240 (_Jv_AllocTraceOne): Declare.
1241 (_Jv_AllocBytesChecked): Removed.
1242 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1243 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1244 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1246 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1248 * java/lang/Object.h (sync_info): Conditional upon presence of
1249 hash synchronization.
1250 * java/lang/natObject.cc: Much new code to handle thin locks and
1251 hash synchronization.
1252 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1255 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1257 * gij.cc (version): Update copyright year.
1259 2001-05-22 Anthony Green <green@redhat.com>
1261 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1264 2001-05-21 Per Bothner <per@bothner.com>
1266 Implement invocation interface; don't create new thread for main.
1267 * java/lang/Thread.java (gen_name): Make native.
1268 (<init>(Thread,THreadGroup,Runnable,String)): New private
1269 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1270 * java/lang/natThread.cc (gen_name): New implementation.
1271 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1272 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1273 (_Jv_CreateJavaVM): New runtime initialization procedure.
1274 (runFirst): New proecdure - mostly code from old FirstThread::run.
1275 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1276 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1277 JvDetachCurrentThread): New inline wrappers.
1278 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1279 _Jv_DetachCurrentThread): New declarations.
1280 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1281 (getMain): new static method.
1282 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1283 by runFirst in prims.cc.
1284 (java/lang/Thread.h): Update for new invocation interface.
1285 * include/posix-threads.h (_Jv_ThreadRegister,
1286 _Jv_ThreadUnRegister): New declarations.
1287 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1288 (really_start): Use new _Jv_ThreadRegister.
1289 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1290 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1291 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1292 Complain of called when _Jv_OnlyThread already set.
1293 (_Jv_ThreadStart): Always JvFail.
1294 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1295 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1296 * win32-threads.cc (struct starter): Remove objet field -
1297 we use _Jv_Thread_t's new thread_obj field instead.
1298 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1299 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1300 (really_start): Use new _Jv_ThreadRegister.
1301 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1302 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1303 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1304 Removed - no longer needed with new invocation interface.
1305 * Makefile.am: Update for removed/added files.
1307 2001-05-21 Per Bothner <per@bothner.com>
1309 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1310 (libgcj_la_LIBADD): Likewise.
1311 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1313 2001-05-21 Per Bothner <per@bothner.com>
1315 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1316 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1317 taken from old Integer.toString code.
1318 (Integer::valueOf): Use _Jv_FormatInt.
1319 * java/lang/Integer.java (toString): Just use call String.valueOf.
1320 * java/lang/Long.java (toString): Fix typo in comment.
1321 * java/lang/String.java (valueOf(int)): Make native.
1322 * java/lang/StringBuffer.java (append(int)): Make native.
1323 * java/lang/natStringBuffer.cc: New file, for append(jint).
1324 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1326 2001-05-21 Tom Tromey <tromey@redhat.com>
1328 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1330 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1332 * include/dwarf2-signal.h: New file.
1333 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1334 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1335 * configure: Rebuilt.
1337 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1339 * configure.in: Update boehm-gc include dir for new GC version.
1340 * configure: Rebuilt.
1341 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1343 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1344 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1345 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1348 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1350 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1351 (_Jv_MutexInit): Likewise.
1353 2001-05-18 Tom Tromey <tromey@redhat.com>
1355 * Makefile.in: Rebuilt.
1356 * Makefile.am (awt_java_source_files): Added Polygon.java.
1358 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1360 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1361 * gcj/javaprims.h: ... here.
1362 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1364 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1366 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1367 with length of ioffset table.
1368 (_Jv_IsAssignableFrom): Likewise.
1370 2001-05-17 Per Bothner <per@bothner.com>
1372 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1374 2001-05-16 Tom Tromey <tromey@redhat.com>
1376 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1379 2001-05-15 Tom Tromey <tromey@redhat.com>
1381 * java/util/GregorianCalendar.java (computeTime): Only call
1384 2001-05-14 Tom Tromey <tromey@redhat.com>
1386 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1387 ZONE_OFFSET just before computing the time.
1389 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1391 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1392 * Makefile.in: Regenerate (by hand).
1393 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1394 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1396 2001-05-11 Richard Henderson <rth@redhat.com>
1398 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1399 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1401 2001-05-11 Richard Henderson <rth@redhat.com>
1403 * exception.cc: Include unwind-pe.h. Remove all pointer
1406 2001-05-10 Tom Tromey <tromey@redhat.com>
1408 * Makefile.in: Rebuilt.
1409 * Makefile.am (awt_java_source_files): Added Polygon.java.
1410 * java/awt/Polygon.java: New file.
1412 * java/awt/geom/AffineTransform.java
1413 (setToRotation(double,double,double)): New method.
1414 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1415 (setToShear): Likewise.
1417 2001-05-10 Tom Tromey <tromey@redhat.com>
1419 * java/util/GregorianCalendar.java: Imported from Classpath.
1420 * gnu/java/locale/LocaleInformation_nl.java: New file from
1422 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1423 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1424 * gnu/java/locale/LocaleInformation.java: Likewise.
1425 * natGregorianCalendar.cc: Removed.
1426 * Makefile.in: Rebuilt.
1427 * Makefile.am (nat_source_files): Removed
1428 natGregorianCalendar.cc.
1430 2001-05-10 Tom Tromey <tromey@redhat.com>
1432 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1434 (defaultCenturyStart): Use it.
1435 (readObject): Likewise.
1436 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1438 (parse): Copy the calendar before modifying it. Correctly handle
1441 * java/util/Calendar.java (clear): Set field value(s) to 0.
1443 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1445 * Calendar.java (get): Clear areFieldsSet if requested field
1447 (set): Unset fields that depend on new value.
1449 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1451 * java/lang/Class.h (_Jv_Self): New union type.
1452 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1453 Jeff Sturm and Fergus Henderson.
1455 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1457 * java/lang/ClassLoader.java: Remove dead code fragment.
1459 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1461 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1463 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1465 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1467 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1468 * configure.host (EXCEPTIONSPEC): New.
1469 * configure.in (EXCEPTIONSPEC): New.
1470 * configure: Rebuilt.
1472 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1474 * doc/*.texi: Remove generated documentation.
1476 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1478 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1479 (performDelete): Fix #endif placement.
1481 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1483 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1484 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1485 (_Jv_ThreadDestroyData): Use _Jv_Free.
1486 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1489 2001-04-27 Tom Tromey <tromey@redhat.com>
1491 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1493 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1495 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1497 * include/jni.h (struct JNINativeInterface): Fixed types in
1498 Get/Set*ArrayRegion declarations.
1499 (class _Jv_JNIEnv): Likewise.
1501 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1503 * configure.in: Obtain THREADS with `gcc -v'.
1504 * configure: Rebuilt.
1506 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1509 * java/io/ObjectStreamClass.java (setClass): Calculate
1510 serialVersionUID for local class and compare it against the UID
1511 from the Object Stream. Throw InvalidClassException upon mismatch.
1512 (setUID): Renamed to...
1513 (getClassUID): this. Return the calculated class UID rather than
1514 setting uid field directly.
1515 (getDefinedSUID): Removed.
1516 * java/io/ObjectInputStream.java (resolveClass): Use the
1517 three-argument Class.forName().
1518 * java/io/InvalidClassException (toString): Don't include classname in
1519 result if it is null.
1521 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1523 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1524 Wrap use of inet_pton in HAVE_INET6.
1526 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1528 java.security merge and ClassLoader compliance fixes.
1530 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1531 New protectionDomain field.
1532 (forName): Add initialize parameter. Fixes declaration to comply with
1534 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1535 variant. Honour "initialize" flag.
1536 (getProtectionDomain0): New method.
1537 * java/lang/Class.java: Fix forName() declaration.
1538 (getPackage): New method based on Classpath implementation.
1539 (getProtectionDomain0): New native method decl.
1540 (getProtectionDomain): New method.
1541 * java/lang/ClassLoader.java (getParent): Now final.
1542 (definedPackages): New field.
1544 (defineClass): New variant with protectionDomain argument.
1545 (definePackage): New.
1547 (findSystemClass): Now final.
1548 (getSystemResourceAsStream): Remove redundant "final" modifier.
1549 (getSystemResource): Remove redundant "final" modifier.
1550 (getResources): Now final.
1551 (protectionDomainPermission): New static field.
1552 (unknownProtectionDomain): Ditto.
1553 (defaultProtectionDomain): Ditto.
1554 (getSystemClassLoader): Now non-native.
1555 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1556 arguments for Class.forName().
1557 * java/lang/Package.java: New file.
1558 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1559 (instance): Static initialize singleton.
1560 (findClass): Override this, not findSystemClass.
1561 * java/lang/natClassLoader.cc (defineClass0): Set class's
1562 protectionDomain field as specified.
1563 (getSystemClassLoader): Removed.
1564 (findClass): Renamed from findSystemClass. Call the interpreter via
1565 URLClassLoader.findClass if loading class via dlopen fails.
1567 * java/security/*.java: java.security import/merge with Classpath.
1568 * java/security/acl/*.java: Likewise.
1569 * java/security/interfaces/*.java: Likewise.
1570 * java/security/spec/*.java: Likewise.
1571 * java/net/NetPermission.java: Likewise.
1572 * java/net/SocketPermission.java: Likewise.
1573 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1575 * Makefile.am: Add new classes.
1576 * Makefile.in: Rebuilt.
1577 * gcj/javaprims.h: CNI namespace rebuild.
1579 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1581 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1582 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1583 * configure: Rebuilt.
1585 2001-04-21 Tom Tromey <tromey@redhat.com>
1587 * Makefile.in: Rebuilt.
1588 * Makefile.am (awt_java_source_files): Added Line2D.java.
1589 * java/awt/geom/Line2D.java: Wrote.
1591 * java/awt/Menu.java (addNotify): Wrote.
1593 * java/awt/PopupMenu.java (addNotify): Implemented.
1596 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1597 * java/awt/List.java (addNotify): Call super.addNotify.
1598 * java/awt/Label.java (addNotify): Call super.addNotify.
1599 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1600 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1601 * java/awt/Choice.java (addNotify): Call super.addNotify.
1602 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1603 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1605 * java/awt/List.java (replaceItem): Notify peer.
1607 * java/awt/geom/Rectangle2D.java
1608 (Float.setRect(float,float,float,float)): New method.
1610 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1613 * java/awt/RenderingHints.java (Key): Class now public.
1615 * java/awt/Rectangle.java (Rectangle): Now implements
1617 (getPathIterator): Removed.
1619 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1622 * java/awt/FileDialog.java: Wrote.
1624 * java/awt/EventQueue.java (isDispatchThread): Now public.
1625 (invokeLater): Likewise.
1627 * java/awt/Component.java (setCursor): Update peer.
1628 (getFontMetrics): Use peer.
1630 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1633 2001-04-20 Tom Tromey <tromey@redhat.com>
1635 * java/awt/List.java: Wrote.
1636 * java/awt/Dialog.java: Wrote.
1638 2001-04-20 Warren Levy <warrenl@redhat.com>
1640 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1641 * java/text/SimpleDateFormat.java
1642 (indexInArray): Removed private method.
1643 (processYear): Removed private method.
1644 (parseLenient): Removed private method.
1645 (parseLeadingZeros): Removed private method.
1646 (parseStrict): Removed private method.
1647 (expect): Added new private method.
1648 (parse): Reverted to pre-Classpath merge version with minor fixes.
1649 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1652 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1654 * java/io/File.java (normalizePath): New private method.
1655 (File (String)): Use normalizePath().
1656 (File (String, String)): Likewise.
1658 * Makefile.am (libffi_files): Removed.
1659 (libgcj.la): Link libffi as a convenience library instead of
1660 refering to its object files directly.
1661 * Makefile.in: Rebuilt.
1663 2001-04-08 Per Bothner <per@bothner.com>
1665 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1666 Recalculate hash, since Utf8Const's hash is only 16 bits.
1668 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1669 bits of hash to calculate step for chaining.
1671 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1672 when 2/3 full, rather than 3/4 full.
1674 2001-04-06 Tom Tromey <tromey@redhat.com>
1676 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1677 (wrap_value<T*>): New specialization.
1678 (_Jv_JNI_PopLocalFrame): Update env->locals.
1680 2001-04-05 Tom Tromey <tromey@redhat.com>
1682 * libtool-version: Updated current.
1684 2001-04-04 Andreas Jaeger <aj@suse.de>
1686 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1687 * gcj/Makefile.in: Rebuilt.
1688 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1689 * Makefile.in: Rebuilt.
1690 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1691 * testsuite/Makefile.in: Rebuild.
1692 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1693 * include/Makefile.in: Rebuild.
1695 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1697 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1698 compiled test', not 'execution from source compiled test'.
1699 Use UNTESTED, not XFAIL, for tests which are not run because
1700 they depend on a previous test which failed.
1702 2001-04-02 Richard Henderson <rth@redhat.com>
1704 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1705 the same tree as gcc.
1706 * configure: Rebuilt.
1708 * exception.cc (_Jv_Throw): Clarify commentary.
1710 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1712 * jni.cc (wrap_value<jclass>): New specialization.
1714 2001-04-02 Tom Tromey <tromey@redhat.com>
1716 * java/io/PrintStream.java (out): Removed field. Fixes PR
1718 (write): Call flush, not out.flush, per spec.
1719 (close): Flush output stream, per spec. Handle
1720 InterruptedIOException.
1721 (checkError): Likewise.
1722 (flush, print, write): Handle InterruptedIOException per spec.
1723 (PrintStream): Don't create BufferedOutputStream.
1724 (work_bytes): New field.
1725 (writeChars): Use work_bytes. Don't assume `out' is a
1726 BufferedOutputStream.
1728 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1730 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1733 2001-03-30 Tom Tromey <tromey@redhat.com>
1735 * jni.cc (add_char): Correctly encode non-ascii characters.
1736 (add_char): Define even when INTERPRETER not defined.
1737 (mangled_name): Likewise.
1738 (_Jv_GetJNIEnvNewFrame): Likewise.
1739 (_Jv_LookupJNIMethod): Likewise.
1741 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1743 * configure.host: Enable interpreter for PPC.
1745 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1747 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1748 to "file.separator", "path.separator", and "java.io.tmpdir" property
1750 * java/io/File.java: Likewise.
1751 * java/io/natFile.cc (init_native): Likewise.
1752 * java/io/natFileWin32.cc (init_native): Likewise.
1754 2001-04-01 Per Bothner <per@bothner.com>
1756 * java/lang/natString.cc (intern): If string's data does not point to
1757 this String, make a fresh String that does.
1759 * java/lang/natString.cc (unintern): Replace by static function.
1760 * java/lang/String.java (unintern): Remove method.
1762 2001-04-01 Per Bothner <per@bothner.com>
1764 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1765 (finish): def.deflate needs to be called in a loop.
1766 (inbuf, inbufLength): New private fields.
1767 (write(int)): Use inbuf.
1768 (write(byte[],int,int): Check if pending output in inbuf.
1769 * ZipOutputStream.java: Don't use Deflater if stored.
1770 Use a Checksum object directly, not via a CheckedOutputStream.
1771 (uncompressed_size): New field,
1772 (closeEntry): Only write data_directory if needed.
1773 (write): If STORED, write directly.
1774 Always update crc, and uncompressed_size.
1775 (write_entry): Fix lots of protocol erors.
1777 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1779 1.3-Compliant Implementation of java.io.File.
1780 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1781 "path.separator", and "java.io.tmpdir" from the File class, instead
1782 of setting them explicitly.
1783 * java/io/File.java: Do not canonicalize paths for security manager
1784 checks. Call init_native() from static initializer. Do not pass path
1785 argument to native methods. New native method declarations. Some
1786 security manager checks moved to checkWrite().
1787 (equals): Check file system case sensitivity and act appropriatly.
1788 (hashCode): Likewise.
1789 (isHidden): New method implemented.
1790 (performList): Changed prototype. Now takes a class argument specifying
1791 the class of the returned array: Strings or File objects. Also added
1792 FileFilter argument.
1793 (listFiles): New variants with "File" return type implemented.
1794 (createTempFile): Use createNewFile(). Use maxPathLen.
1795 (setReadOnly): New method implemented.
1796 (listRoots): Likewise.
1797 (compareTo): Likewise.
1798 (setLastModified): Likewise.
1799 (checkWrite): New method.
1801 * java/io/natFile.cc: Various functions no longer take canonical path
1803 (stat): Handle ISHIDDEN query.
1804 (isAbsolute): Remove WIN32 cruft.
1805 (performList): New arguments. Handle returning either File[] or String[]
1806 arrays. Check with FileFilter or FilenameFilter arguments as
1807 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1808 (performSetReadOnly): New method implemented.
1809 (performListRoots): Likewise.
1810 (performSetLastModified): Likewise.
1811 (performCreate): Likewise.
1812 (init_native): New initialization function.
1813 * java/io/natFileWin32.cc: Various functions no longer take canonical
1815 (stat): Add FIXME about ISHIDDEN query.
1816 (performList): New arguments. Handle returning either File[] or String[]
1817 arrays. Check with FileFilter or FilenameFilter arguments as
1818 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1819 (performSetReadOnly): New. Stubbed.
1820 (performListRoots): Likewise.
1821 (performSetLastModified): Likewise.
1822 (performCreate): Likewise.
1823 (init_native) New initialization function.
1824 * configure.in: Check for utime() and chmod().
1825 * configure: Rebuilt.
1826 * include/config.h.in: Rebuilt.
1828 Resolves PR libgcj/1759.
1830 2001-03-28 Richard Henderson <rth@redhat.com>
1832 IA-64 ABI Exception Handling:
1833 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1834 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1835 Remove EXCEPTIONSPEC.
1836 * configure.host (libgcj_sjlj): Remove.
1837 * configure.in (EXCEPTIONSPEC): Remove.
1838 (enable-sjlj-exceptions): Detect if not specified.
1839 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1840 what header we're looking for.
1841 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1842 * Makefile.in, configure: Regenerate.
1843 * exception.cc: Don't declare libgcc2 stuff.
1844 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1845 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1846 (win32_get_restart_frame): Remove.
1847 (struct java_exception_header): New.
1848 (__gcj_exception_class): New.
1849 (get_exception_header_from_ue): New.
1850 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1851 (size_of_encoded_value, read_encoded_value): New.
1852 (read_uleb128, read_sleb128, parse_lsda_header): New.
1853 (get_ttype_entry, __gcj_personality_sj0): New.
1854 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1856 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1858 * javax/naming/InitialContext.java (init): Fix typo.
1859 (composeName): Remove unnecessary semicolon.
1860 (addToEnvironment): Remove unnecessary semicolon.
1861 (addToEnvironment): Use put() instead of add().
1863 * javax/naming/InitialContext.java (InitialContext):
1865 (destroySubcontext): Method doesn't return a result.
1866 * javax/naming/Context.java: Import java.util.Hashtable.
1867 * javax/naming/Name.java: Import java.util.Enumeration.
1869 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1871 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1872 objects in subdirectories.
1873 * Makefile.in: Rebuilt.
1875 2001-03-25 Richard Henderson <rth@redhat.com>
1877 * exception.cc (java_eh_info): Make value type jthrowable.
1878 (_Jv_type_matcher): Remove now unneeded cast.
1879 (_Jv_Throw): Make argument type jthrowable. Munge name
1880 for SJLJ_EXCEPTIONS here ...
1881 * gcj/cni.h: ... not here.
1883 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1885 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1886 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1887 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1888 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1889 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1890 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1891 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1892 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1893 java/lang/natDouble.cc, java/lang/natObject.cc,
1894 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1895 java/lang/natString.cc, java/lang/natSystem.cc,
1896 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1897 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1898 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1899 java/util/zip/natInflater.cc:
1900 Use throw, not JvThrow or _Jv_Throw.
1902 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1904 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1905 paramater, bump it to 1.
1906 * java/util/Hashtable.java (Hashtable): Likewise.
1908 2001-03-23 Per Bothner <per@bothner.com>
1910 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1911 check for errors, since we don't want to throw exception on
1912 overflow/underflow. Instead, trim whitespace, and then check that
1913 _strtod_r uses up all the rest of the string.
1915 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1916 ancestors array is invalid for interfaces, so do that *after*
1917 check that the target type is not an interface.
1919 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1921 * prims.cc (_Jv_FindClassFromSignature): Check return of
1922 recursive call. Do not abort on invalid signature; return NULL
1925 2001-03-22 Tom Tromey <tromey@redhat.com>
1927 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1928 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1930 * include/jvm.h (_Jv_ResolveField): Declare.
1931 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1932 * resolve.cc (_Jv_ResolveField): No longer conditional on
1935 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1937 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1938 for libtool hacking.
1939 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1940 to a temporary file, then invoke libtool with the -objectlist
1942 (libgcjx.la): Likewise.
1943 * Makefile.in: Rebuilt.
1945 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1947 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1949 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1951 * jni.cc (add_char): Handle `.' like `/'.
1953 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1955 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1956 initialize if exception_types is null.
1957 * java/lang/reflect/Constructor.java: Likewise.
1958 * java/lang/reflect/natConstructor.cc (getType): Initialize
1959 exception_types to an empty Object array.
1961 2001-03-21 Tom Tromey <tromey@redhat.com>
1963 * configure: Rebuilt.
1964 * configure.in (GCJFLAGS): Subst.
1965 * Makefile.in: Rebuilt.
1966 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1967 (gij_LDFLAGS): Likewise.
1968 (JC1FLAGS): Added GCJFLAGS and removed -g.
1970 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1971 read/write case. Fixes PR libgcj/2338.
1973 2001-03-20 Warren Levy <warrenl@redhat.com>
1975 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1976 and corrected SimpleTimeZone's for the timezones hash table.
1978 2001-03-19 Per Bothner <per@bothner.com>
1980 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1981 "canonicalize" "../../xxx" to "/xxx".
1983 2001-03-19 Mark Wielaard <mark@klomp.org>
1985 * java/util/ArrayList.java: Remove RCS keywords from comments
1986 * java/util/BasicMapEntry.java: idem
1987 * java/util/Dictionary.java: idem
1988 * java/util/HashSet.java: idem
1990 * java/util/EventObject.java: reindent
1991 * java/util/Properties.java: idem
1992 * java/util/SortedMap.java: idem
1994 * java/util/Enumeration.java: Merge with Classpath
1995 * java/util/EventListener.java: idem
1996 * java/util/Observable.java: idem
1997 * java/util/Observer.java: idem
1998 * java/util/Stack.java: idem
2000 2001-03-17 Tom Tromey <tromey@redhat.com>
2002 * java/lang/natString.cc (rehash): Don't bother with memset;
2003 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2005 (UNMASK_PTR): New macro.
2006 (intern): Unmask pointer before returning it. Register finalizer
2008 (unintern): Handle case where
2009 (MASK_PTR): New macro.
2010 (PTR_MAKSED): Likewise.
2011 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2013 2001-03-01 Andrew Haley <aph@redhat.com>
2015 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2016 stackTrace buffer to a correctly aligned pointer array.
2018 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2020 * java/lang/Runtime.java (_exit): Declare new package-private native.
2021 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2022 without a security manager check.
2023 (exit): Call _exit after security check.
2024 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2026 * java/lang/System.java (setSecurityManager): If a security manager
2027 is already in place, call checkPermission.
2028 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2029 throws an exception, try to deal with it gracefully.
2030 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2031 Only try to print the subordinate stack trace if "exception" is set.
2032 Print our class name first.
2034 2001-03-08 Tom Tromey <tromey@redhat.com>
2036 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2037 info for array classes.
2038 Fixes PR libgcj/1971.
2040 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2042 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2045 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2047 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2048 instead of the new JDK1.2 API. This is simpler and makes
2049 back-porting the classes to JDK1.1 trivial.
2050 (readObject): likewise.
2052 2001-03-01 Per Bothner <per@bothner.com>
2054 Changes merged from Kawa's gnu.math.
2055 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2056 (rshift(int[],int[],int,int): Removed - not needed.
2057 (gcd): Use rshift0 rather than rshift.
2058 * java/math/BigInteger.java (setShiftRight): Likewise.
2059 (divide): Simplify by using rshift0.
2060 (divide): Zero-extend results if high-order bit set.
2062 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2064 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2067 2001-02-23 Per Bothner <per@bothner.com>
2069 Change to sometimes include class name in ClassFormatError message.
2070 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2071 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2072 boolean instead of throwing ClassFormatError on failure.
2073 (throw_class_format_error): Change static function to method.
2074 (_Jv_ClassReader): New inline methods verify_identifier,
2075 two overloads of verify_classname, verify_field_signature, and
2076 verify_method_signature
2077 * include/java-interp.h: Update declarations to return bool.
2078 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2079 ClassFormatError since _Jv_VerifyClassName now returns bool.
2081 2001-02-23 Per Bothner <per@bothner.com>
2083 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2084 c++filt to select java-style output.
2086 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2088 Fix for PR java/2040:
2089 * java/util/HashMap.java (HashMap): Don't throw exception for
2090 loadFactor > 1. Add exception messages.
2091 * java/util/Hashtable.java (Hashtable): Likewise.
2093 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2095 Disable libgcjx by default.
2096 * configure.in: Add support for --enable-java-awt configure option.
2097 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2098 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2099 * Makefile.in: Rebuilt.
2100 * configure: Rebuilt.
2102 2001-02-20 Tom Tromey <tromey@redhat.com>
2104 * java/io/PipedWriter.java (flush): Throw exception if stream
2106 * java/io/OutputStreamWriter.java (write): Throw exception if
2108 (writeChars): Don't throw exception if stream closed.
2109 * java/io/CharArrayWriter.java (closed): New field.
2111 (flush): Throw exception if stream closed.
2112 (reset): Synchronize on correct lock. Allow stream to be
2114 (toCharArray, toString, writeTo): Synchronize.
2115 (write): Throwe exception if stream closed.
2116 * java/io/BufferedWriter.java (close): Clear `buffer'.
2117 (flush): Throw IOException if stream is closed.
2120 2001-02-16 Tom Tromey <tromey@cygnus.com>
2122 * java/lang/ThreadGroup.java (activeCount): Only include threads
2124 (enumerate): Likewise.
2126 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2128 * java/lang/Integer.java (getInteger): Return default argument if
2129 property is not set. Don't call decode with null argument.
2130 * java/lang/Long.java (getLong): Likewise.
2132 * java/io/CharArrayReader.java (CharArrayReader): Throw
2133 IllegalArgumentException if constructor arguments are illegal.
2134 (ready): Return false if no more characters can be read.
2135 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2137 2001-02-17 Mark Wielaard <mark@klomp.org>
2139 * java/util/TimerTask.java: New version from Classpath.
2141 2001-02-17 Mark Wielaard <mark@klomp.org>
2143 Remerge with Classpath
2144 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2145 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2146 (readByte): Use convertToByte().
2147 (readChar): Use convertToChar().
2148 (readInt): Use convertToInt().
2149 (readLong): Use convertToLong().
2150 (readShort): Use convertToShort().
2151 (readUnsignedByte): Use convertToUnsignedByte().
2152 (readUnsignedShort): Use convertToUnsignedShort().
2153 (readUTF): Use convertToUTF().
2155 (convertToBoolean): Resurrected.
2156 (convertToByte): Ditto.
2157 (convertToChar): Ditto.
2158 (convertToInt): Ditto.
2159 (convertToLong): Ditto.
2160 (convertToShort): Ditto.
2161 (convertToUnsignedByte): Ditto.
2162 (convertToUnsignedShort): Ditto.
2163 (convertToUTF): Ditto.
2165 2001-02-17 Mark Wielaard <mark@klomp.org>
2169 2001-02-17 Mark Wielaard <mark@klomp.org>
2171 * java/io/DataInputStream.java: update copyright notice
2172 * java/io/PrintWriter.java: idem
2173 * java/io/Reader.java: idem
2174 * java/io/StreamTokenizer.java: idem
2175 * java/io/StringReader.java: idem
2176 * java/lang/reflect/ReflectPermission.java: idem
2178 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2180 * java/util/TreeSet.java (clone): Made subclass safe, use
2181 super.clone(), not new.
2182 * java/util/TreeMap.java (clone): Likewise.
2184 * java/util/TreeMap.java (nil): Made non-final.
2185 (clone): Create new nil node for copy.
2187 * java/util/HashSet.java (clone): Made subclass safe, use
2188 super.clone(), not new.
2190 2001-02-14 Andrew Haley <aph@redhat.com>
2192 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2195 2001-02-15 Anthony Green <green@redhat.com>
2197 * defineclass.cc: Don't include alloca.h.
2198 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2199 * interpret.cc (run_normal): Ditto.
2201 * java/lang/natDouble.cc (parseDouble): Ditto.
2203 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2205 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2207 * java/util/Collections.java (ReverseComparator): New static class.
2208 (reverseOrder): Return static instance of ReverseComparator.
2210 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2211 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2212 Rectangle.clone(), not Object.clone().
2214 * java/util/HashSet.java (clone): Remove try/catch.
2216 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2217 * java/util/Collection.java: Likewise.
2218 * java/util/Comparator.java: Likewise.
2219 * java/util/Dictionary.java: Likewise.
2220 * java/util/Iterator.java: Likewise.
2221 * java/util/ListIterator.java: Likewise.
2222 * java/util/Map.java: Likewise.
2223 * java/util/Set.java: Likewise.
2225 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2227 * java/util/TreeMap.java: New file.
2228 * java/util/TreeSet.java: New file.
2229 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2230 * Makefile.in: Rebuilt.
2231 * java/util/HashSet.java (clone): Use constructor instead of calling
2233 * java/util/SortedSet.java: Sync with classpath.
2234 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2237 * java/lang/natClass.cc (getSignature): Don't try to dereference
2238 param_types if it is null. Instead, take this to mean "no parameters".
2239 * java/lang/TreeMap.java (TreeIterator.next): Throw
2240 NoSuchElementException in preference to ConcurrentModificationException.
2241 (TreeIterator.remove): Throw IllegalStateException in preference to
2242 ConcurrentModificationException.
2243 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2244 throw a NoSuchElementException.
2245 (SubMap.lastKey): Likewise.
2247 2001-02-13 Tom Tromey <tromey@redhat.com>
2249 * java/io/PipedReader.java (ready): Throw IOException if pipe
2251 * java/io/FilterReader.java (close): Don't clear `in'.
2252 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2254 (read, ready, reset, skip): Added exception message.
2255 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2256 Perform checkStatus check inside synchronized block.
2258 2001-02-13 Tom Tromey <tromey@redhat.com>
2260 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2262 2001-02-13 Tom Tromey <tromey@redhat.com>
2264 Fix for PR libgcj/1351:
2265 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2267 Include Thread.h and InterruptedIOException.h.
2269 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2271 * java/io/BlockDataException.java: Removed.
2272 * java/io/ObjectInputStream.java (readObject): Throw
2273 StreamCorruptedException, not BlockDataException.
2274 * Makefile.am: Remove BlockDataException.
2275 * Makefile.in: Rebuild.
2277 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2278 Tom Tromey <tromey@redhat.com>
2280 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2283 2001-02-09 Tom Tromey <tromey@redhat.com>
2285 * java/util/Timer.java: New version from Classpath.
2287 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2289 * java/lang/Double.java (doubleToRawLongBits): Now native.
2290 * java/lang/Float.java (floatToRawIntBits): Likewise.
2291 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2292 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2294 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2296 * java/io/File.java (java.net): Imported.
2297 (getAbsoluteFile): Added.
2298 (getCanonicalPath): Likewise.
2301 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2303 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2304 * java/lang/Integer.java: Likewise.
2305 * java/lang/Long.java: Likewise.
2306 * java/lang/Short.java: Likewise.
2307 * java/lang/Double.java: Likewise.
2308 (doubleToRawLongBits): New method.
2309 * java/lang/Float.java: As above.
2310 (floatToRawIntBits): New method.
2312 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2313 IOException if stream closed.
2315 2001-02-08 Tom Tromey <tromey@redhat.com>
2317 * java/lang/Float.java (parseFloat): New method.
2319 2001-02-08 Tom Tromey <tromey@redhat.com>
2321 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2322 * java/io/InputStreamReader.java (ready, read): Throw IOException
2323 if stream has been closed.
2325 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2327 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2328 Change sources.redhat.com and sourceware.cygnus.com references to
2331 2001-02-07 Tom Tromey <tromey@redhat.com>
2333 Fix for PR libgcj/1906:
2334 * java/text/MessageFormat.java (setLocale): Use named class
2337 (format(Object,StringBuffer,FieldPosition)): Special case if
2338 argument is an Object[].
2340 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2342 * java/util/Arrays.java: Removed "cmp" methods.
2343 (qsort): Don't use "cmp".
2346 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2348 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2349 sort. Fix for PR java/1895.
2351 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2353 * configure.host: Use sjlj-exceptions for Alpha.
2355 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2357 * libgcj.spec.in: Don't force static libgcc into the executable.
2358 * configure.in (FORCELIBGCCSPEC): Removed.
2359 * configure: Rebuilt.
2361 2001-01-31 Tom Tromey <tromey@redhat.com>
2363 * Makefile.in: Rebuilt.
2364 * Makefile.am (LTCXXCOMPILE): New macro.
2366 2001-01-26 Andrew Haley <aph@redhat.com>
2368 (INIT_FPE): Use a direct system call to set the handler.
2370 2001-01-27 Richard Henderson <rth@redhat.com>
2372 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2374 2001-01-27 Tom Tromey <tromey@redhat.com>
2376 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2377 native interface structure.
2379 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2381 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2383 (read (byte[], int, int)): Only call readNextBlock() if the block
2384 buffer would actually be overrun. Increment blockDataPosition.
2385 (callReadMethod): Propagate exceptions from invocation target.
2386 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2387 exceptions from invocation target.
2389 2001-01-26 Tom Tromey <tromey@redhat.com>
2391 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2392 to internal representation.
2393 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2394 _Jv_FindClassFromSignature.
2396 2001-01-26 Warren Levy <warrenl@redhat.com>
2398 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2399 and timezone if they are available on the system.
2401 2001-01-24 Tom Tromey <tromey@redhat.com>
2403 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2405 2001-01-24 Tom Tromey <tromey@redhat.com>
2407 * Makefile.in: Rebuilt.
2408 * Makefile.am (c_source_files): Added sf_fabs.c.
2409 * java/lang/sf_fabs.c: New file.
2411 2001-01-19 Warren Levy <warrenl@redhat.com>
2413 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2414 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2415 correctly. Adjust properly from 0-23 clock hour.
2417 2001-01-17 Mark Wielaard <mark@klomp.org>
2419 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2421 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2423 * java/lang/Class.h (isInterface): Move implementation from
2424 natClass.cc. Declare inline.
2425 (Class): Add default constructor.
2426 * java/lang/Object.h: Update comments.
2427 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2428 initialize superclass, saving a call if super is already initialized.
2430 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2432 * prims.cc (init_prim_class): Deleted.
2433 (DECLARE_PRIM_TYPE): Rewritten.
2434 * java/lang/Class.h (stdio.h): Include removed.
2435 (stddef.h): Included.
2436 (java/lang/reflect/Modifier.h): Likewise.
2437 (Class): Contructor now takes arguments, initializes fields.
2438 (initializePrim): Prototype deleted.
2439 * java/lang/natClass.cc (initializePrim): Deleted.
2441 2001-01-16 Warren Levy <warrenl@redhat.com>
2443 * java/math/BigInteger.java: Update Copyright year.
2445 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2447 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2450 2001-01-14 Mark Wielaard <mark@klomp.org>
2451 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2452 (decode): Merge comments with Classpath, don't throw Exception
2454 2001-01-12 Tom Tromey <tromey@redhat.com>
2456 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2460 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2461 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2462 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2463 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2464 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2466 * java/lang/natSystem.cc: Include locale.h if it exists.
2467 * configure: Rebuilt.
2468 * configure.in: Check for locale.h.
2470 2001-01-11 Tom Tromey <tromey@redhat.com>
2472 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2473 (Cursor(int), getPredefinedCursor): Throw exception if argument
2476 2001-01-03 Tom Tromey <tromey@redhat.com>
2478 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2479 (getLocationOnScreen): Wrote.
2481 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2483 * Makefile.am: Re-enable dependencies.
2484 * Makefile.in: Rebuilt.
2486 2001-01-10 Warren Levy <warrenl@redhat.com>
2488 * java/math/BigDecimal.java (divide): Fixed comment.
2490 2001-01-10 Warren Levy <warrenl@redhat.com>
2492 Fix for PR libgcj/1596:
2493 * java/math/BigDecimal.java (divide): Check newScale for validity.
2494 Ensure that BigInteger.pow() is called with a non-negative value.
2495 (setScale (int)): New public method.
2496 (setScale (int,int)): New public method.
2498 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2500 Fix for PR libgcj/1338:
2501 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2502 commentChar. Fixed typos in comments.
2504 2001-01-08 Warren Levy <warrenl@redhat.com>
2506 Fix for PR libgcj/1411:
2507 * Makefile.am: Removed java/util/natTimeZone.cc.
2508 * Makefile.in: Rebuilt.
2509 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2510 missing localized timezone names.
2511 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2512 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2513 (init_properties): Set user.timezone property.
2514 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2515 default timezone names; removed non-standard ones. Use standard
2517 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2519 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2521 (getDefaultTimeZoneId): Removed.
2523 * java/util/natTimeZone.cc: Removed.
2525 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2527 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2528 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2529 (_Jv_GetArrayClass): New inline function.
2530 (arrayclass): New field.
2531 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2532 _Jv_GetArrayElementFromElementType.
2533 (_Jv_NewPrimArray): Ditto.
2534 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2535 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2536 Set Modifier::ABSTRACT.
2537 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2538 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2539 Now synchronized. Array classes are now referenced from
2540 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2541 Set array classes' accessibility flags correctly. Optimize so that
2542 all array classes share the same IDT.
2543 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2544 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2545 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2546 in superclasses from overwriting classes own fields.
2547 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2548 Modifier::isAbstract().
2549 (null_idt): New static field.
2550 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2552 (_Jv_IndexOf): Made inline.
2553 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2555 2001-01-08 Tom Tromey <tromey@redhat.com>
2557 Fix for PR java/1586:
2558 * Makefile.in: Rebuilt.
2559 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2561 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2563 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2564 from the c++ compiler.
2565 * Makefile.in: Rebuilt.
2567 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2569 All files with updated copyright.
2570 * prims.cc (class _Jv_PrimClass): Removed.
2571 (init_prim_class): New function.
2572 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2573 `_Jv_PrimClass' in primitive type declarations. Assign to the
2574 value returned by `init_prim_class.'
2575 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2576 primitive type declarations.
2577 (JvPrimClass): Cast to `jclass' removed.
2578 * java/lang/Class.h (Class): New constructor.
2579 (Class): New copy constructor.
2580 (initializePrim): New prototype.
2581 (_Jv_PrimClass): Field removed.
2582 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2583 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2584 (class java::lang::Object): `finalize' moved up front.
2585 * java/lang/natClass.cc
2586 (isAssignableFrom): Turned outline.
2587 (isInstance): Likewise.
2588 (isInterface): Likewise, fixed indentation.
2589 (initializePrim): New function.
2591 2001-01-07 Anthony Green <green@redhat.com>
2593 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2595 * Makefile.in: Rebuilt.
2597 * scripts/TexinfoDoclet.java: New file.
2599 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2600 doc/java-awt-color.texi, doc/java-lang.texi,
2601 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2602 doc/java-awt-event.texi, doc/java-net.texi,
2603 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2604 doc/java-awt-image.texi, doc/java-security.texi,
2605 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2606 doc/java-text.texi, doc/java-beans-beancontext.texi,
2607 doc/java-util-jar.texi, doc/java-beans.texi,
2608 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2609 doc/java-lang-ref.texi: New files.
2611 2001-01-07 Anthony Green <green@redhat.com>
2613 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2614 be used for both input and output, so don't clear doInput.
2616 * java/lang/StringBuffer.java: Fix comments.
2618 2001-01-06 Anthony Green <green@redhat.com>
2620 * java/beans/PropertyDescriptor.java: Fix comment.
2621 * java/io/PushbackReader.java: Fix comment.
2622 * java/io/ObjectStreamClass.java: Fix comment.
2623 * java/io/DataInputStream.java: Fix comment.
2624 * java/io/PipedInputStream.java: Fix comments.
2625 * java/io/PipedReader.java: Fix comments.
2626 * java/sql/DatabaseMetaData.java: Fix comments.
2628 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2630 * java/io/PipedReader: Synchronize on "lock" instead of this.
2632 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2634 * java/lang/Thread.java: Update comment.
2636 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2637 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2638 * java/io/PipedReader: New implementation based on new
2640 * java/io/PipedWriter: Updated to match new PipedReader.
2642 2001-01-03 Tom Tromey <tromey@redhat.com>
2644 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2645 (getViewportSize): Insets include scrollbar size.
2646 (doLayout): Finished.
2647 (getScrollPosition): Wrote.
2648 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2650 2001-01-02 Tom Tromey <tromey@redhat.com>
2652 * java/awt/ScrollPane.java: Wrote.
2653 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2656 * java/awt/Panel.java (Panel()): Fixed.
2658 * java/awt/Component.java (isShowing): Return false if no peer
2659 exists, and true if component is visible and no parent exists.
2660 (getLocationOnScreen): Wrote.
2661 (getPreferredSize): Removed FIXME comment.
2662 (getMinimumSize): Likewise.
2663 (getAlignmentX, getAlignmentY): Wrote.
2665 (requestFocus): Wrote.
2666 (transferFocus): Wrote.
2667 (findNextFocusComponent): New method.
2668 (hasFocus()): Wrote.
2669 (checkImage): Wrote.
2670 (enableEvents): Call setEventMask on the peer.
2672 * java/awt/Container.java (list): Use super.list() to print self.
2673 (findNextFocusComponent): New method.
2674 (setLayout): Call invalidate.
2675 (findComponentAt): Wrote.
2677 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2679 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2680 the correct versions of various linuxthreads functions get linked.
2681 * Makefile.in: Rebuilt.
2682 * java/lang/natThread.cc (finalize_native): New static function. Call
2683 _Jv_ThreadDestroyData.
2684 (initialize_native): Register finalizer for "data".
2685 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2686 (_Jv_ThreadDestroyData): New prototype.
2687 * include/win32-threads.h: Ditto.
2688 * include/no-threads.h: Ditto.
2689 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2690 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2691 move mutex and condition variable destroy code from:
2692 (really_start): ...here.
2693 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2694 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2695 (_Jv_ThreadDestroyData): Implemented.
2696 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2697 (_Jv_AllocArray): Ditto.
2699 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2701 * java/sql/DriverManager.java (getConnection): Don't set user/password
2704 2000-12-27 Warren Levy <warrenl@redhat.com>
2706 Fix for PR libgcj/1358:
2707 * java/lang/System.java: Update Copyright date properly.
2708 * java/util/Calendar.java: Fix typo in comment.
2709 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2710 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2711 initialize times. Spec says to set H:M:S values to zero only if
2713 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2714 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2715 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2716 timezones and GMT offsets, being careful to account for units of
2717 milliseconds vs. seconds.
2719 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2721 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2722 not be assigned to Object.
2724 Fix for PR libgcj/1516:
2725 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2727 (can_widen): Declared inline. Remove redundant checks for void
2728 arguments and char->short conversion. Add special case for boolean
2730 (ffi_type): Declared inline.
2731 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2733 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2735 * java/sql/SQLWarning.java: Fixed typo in comment.
2737 2000-12-26 Tom Tromey <tromey@redhat.com>
2739 * java/awt/MenuItem.java (paramString): Now protected.
2741 * java/awt/MenuShortcut.java: Implements Serializable.
2743 * java/awt/MenuBar.java: Rewrote from scratch.
2745 * java/awt/MenuComponent.java (removeNotify): Wrote.
2746 Implements Serializable.
2748 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2751 * java/awt/CheckboxMenuItem.java: Wrote.
2753 2000-12-25 Tom Tromey <tromey@redhat.com>
2755 * java/awt/MenuContainer.java: Fixed typo.
2757 * Makefile.in: Rebuilt.
2758 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2759 * java/awt/SystemColor.java: New file.
2761 * java/awt/Color.java (rgba): Now package-private.
2763 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2765 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2768 * java/awt/MenuItem.java (addNotify): New method.
2769 (MenuItem(String,MenuShortcut)): New constructor.
2770 (setLabel): Notify peer of change.
2771 (setEnabled): Likewise.
2773 * java/awt/GridLayout.java (toString): New method.
2775 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2776 (FlowLayout): Check for LEADING and TRAILING.
2777 (setAlignment): Likewise.
2778 (layoutContainer): Handle component orientation.
2780 * java/awt/Component.java (orientatin): New field.
2781 (setComponentOrientation): Wrote.
2782 (getComponentOrientation): Wrote.
2784 * java/awt/Event.java (Event): Implements Serializable.
2785 (consumed): New field for serialization.
2786 * java/awt/Dimension.java (Dimension): Implements Serializable.
2787 * java/awt/Cursor.java (Cursor): Implements Serializable.
2788 * java/awt/Container.java (Container): No longer abstract.
2790 * java/awt/Choice.java: Wrote.
2791 * java/awt/Checkbox.java: Wrote.
2792 * java/awt/ItemSelectable.java: Documented.
2793 * java/awt/CheckboxGroup.java: Wrote.
2795 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2797 (getSize): Likewise.
2799 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2801 * java/io/FileDescriptor.java: Initialize fd to -1.
2802 Remove default constructor.
2804 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2806 * java/lang/mprec.h: Change C9X reference to refer to C99.
2808 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2810 * java/lang/Throwable.java (trace_enabled): New static field.
2811 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2812 trace_enabled not set.
2813 * prims.cc (main_init): Turn off trace_enabled while creating
2814 default exception objects.
2816 2000-12-21 Tom Tromey <tromey@redhat.com>
2818 * java/beans/PropertyChangeListener.java: Extends EventListener.
2819 * java/beans/VetoableChangeListener.java: Extends EventListener.
2821 * java/util/zip/Deflater.java (update, init): Now private.
2823 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2825 * java/util/BasicMapEntry.java: Re-added.
2826 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2827 (putAll): Test for BasicMapEntry.
2828 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2829 (putAll): Test for BasicMapEntry.
2830 Change references from `HashMap.Entry' to `Entry' in various places.
2831 * Makefile.am: Add BasicMapEntry.java.
2832 * Makefile.in: Rebuilt.
2834 2000-12-18 Warren Levy <warrenl@redhat.com>
2836 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2837 need to set timezone to a valid non-null value. Partial fix for
2840 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2842 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2844 * java/awt/Button.java (addNotify): Likewise.
2845 * java/awt/Label.java (addNotify): Likewise.
2846 * java/awt/Panel.java (addNotify): Likewise.
2847 * java/awt/Scrollbar.java (addNotify): Likewise.
2848 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2849 Remove redundant null checks.
2851 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2853 * COPYING: Update to current
2854 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2855 to 19yy as example year in copyright notice).
2857 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2859 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2860 end-of-stream if avail_in is 0.
2862 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2864 * java/util/ArrayList.java (data): Declare transient.
2865 (serialPersistantFields): Removed.
2866 (readObject): Use defaultReadObject(), not readFields().
2867 (writeObject): Use defaultWriteObject(), not writeFields().
2869 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2871 * java/util/Hashtable.java (put): Remove `last' variable.
2872 Link new entry to head of list.
2873 * java/util/HashMap.java (put): Ditto.
2875 2000-12-15 Tom Tromey <tromey@redhat.com>
2877 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2878 loader to Class.forName.
2880 2000-12-14 Tom Tromey <tromey@redhat.com>
2882 * java/util/ResourceBundle.java
2883 (getBundle(String,Locale,ClassLoader)): New method.
2884 (trySomeGetBundle): Added `loader' argument.
2885 (partialGetBundle): Likewise.
2887 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2888 maximumFractionDigits, maximumIntegerDigits,
2889 minimumFractionDigits, minimumIntegerDigits): Now
2892 * java/lang/Thread.java (checkAccess): Now final.
2894 * java/lang/RuntimePermission.java: Class now final.
2896 * java/io/StringWriter.java (StringWriter(int)): Now public.
2898 * java/io/SerializablePermission.java (legal_names): Now private.
2900 * java/lang/Character.java: Updated UnicodeBlock constants.
2901 * scripts/blocks.pl: Special case private use and surrogate
2904 2000-12-12 Tom Tromey <tromey@redhat.com>
2906 * Makefile.in: Rebuilt.
2907 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2909 (GCJCOMPILE): Use it.
2912 2000-12-11 Tom Tromey <tromey@redhat.com>
2914 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2915 New static final fields.
2917 * scripts/classes.pl (scan): Skip lines with leading `*'.
2918 Fix for PR libgcj/378.
2920 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2922 * configure.in: Remove check for -fuse-divide-subroutine.
2923 * configure: Rebuilt.
2925 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2927 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2929 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2931 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2932 Remove BasicMapEntry.java and Bucket.java.
2933 * Makefile.in: Rebuilt.
2934 * java/util/HashMap.java: Rewritten.
2935 * java/util/HashSet.java: Imported from classpath.
2936 * java/util/WeakHashMap.java: Imported from classpath.
2937 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2938 * java/util/Bucket.java: Deleted.
2939 * java/util/BasicMapEntry.java: Deleted.
2940 * java/util/Collections.java (search): Use a for-loop, not iterator
2942 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2943 of elements in source.
2944 (max): Use a for-loop.
2946 (reverse): Keep track of positions instead of using Iterator's
2947 nextIndex() and previousIndex().
2948 (shuffle(List)): Initialize defaultRandom if required using
2949 double-check thread safety idiom. Call two-argument shuffle method
2950 using defaultRandom.
2951 (defaultRandom): New field.
2952 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2953 using previousIndex() and nextIndex().
2954 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2955 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2956 * java/util/AbstractMap.java (toString): Use StringBuffer.
2957 * java/lang/ref/PhantomReference.java: Imported from classpath.
2958 * java/lang/ref/SoftReference.java: Ditto.
2959 * java/lang/ref/Reference.java: Ditto.
2960 * java/lang/ref/WeakReference.java: Ditto.
2961 * java/lang/ref/ReferenceQueue.java: Ditto.
2963 2000-12-10 Richard Henderson <rth@redhat.com>
2965 * configure.host: Recognize alpha*-*, not alphaev6-*.
2967 2000-12-09 Anthony Green <green@redhat.com>
2969 * configure.host: Enable interpreter for Alpha.
2971 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2973 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2974 (ZIP): Points at fastjar instead of zip.
2975 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2976 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2977 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2978 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2979 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2980 ($(x_java_source_files:.java=.class):): Likewise.
2981 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2983 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2984 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2985 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2986 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2987 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2988 gnu/gcj/runtime/VMClassLoader.h:,
2989 java/io/ObjectInputStream$$GetField.h:,
2990 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2991 (Makefile.in): Rebuilt.
2993 2000-12-08 Tom Tromey <tromey@redhat.com>
2996 * configure: Rebuilt.
2997 * configure.in: Use echo, not `:', to create .d files.
2999 2000-12-08 Warren Levy <warrenl@redhat.com>
3001 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3002 NullPointerException so proper check of offset can be done.
3004 2000-12-08 Warren Levy <warrenl@redhat.com>
3006 * java/io/FileInputStream.java (close): Check if the fd is valid.
3007 * java/io/RandomAccessFile.java (close): Ditto.
3008 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3009 * java/net/PlainSocketImpl.java (close): Ditto.
3011 2000-12-06 Tom Tromey <tromey@redhat.com>
3013 * java/awt/GridBagConstraints.java: Filled in values for static
3016 * java/util/BitSet.java: Updated copyright notice.
3018 * Makefile.in: Rebuilt.
3019 * Makefile.am (awt_java_source_files): Added new file.
3020 * java/awt/GridBagConstraints.java: New file.
3022 2000-12-05 Tom Tromey <tromey@redhat.com>
3024 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3025 Now package-private, not protected.
3026 * java/text/DateFormatSymbols.java (equals): Now private.
3027 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3028 * java/util/BitSet.java: Class no longer final.
3030 2000-12-04 Warren Levy <warrenl@redhat.com>
3032 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3033 out code dependent on compiler and library changes.
3035 2000-12-04 Warren Levy <warrenl@redhat.com>
3037 * java/io/FilePermission.java: Made class final per spec.
3038 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3039 method name to match spec (fixed typo).
3040 * java/util/LinkedList.java: Implements List.
3042 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3044 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3045 Edgar Villanueva <edgarvil@home.com>.
3047 2000-12-03 Tom Tromey <tromey@redhat.com>
3049 * java/awt/geom/Point2D.java: Added protected constructor.
3050 (equals): New method.
3051 (Float.setLocation(float,float)): New method.
3052 * java/awt/geom/Dimension2D.java: Added protected constructor.
3053 * java/awt/geom/AffineTransform.java: Made all constants public.
3054 (concatenate): Fixed typo in name.
3055 * java/awt/event/WindowAdapter.java: Class now abstract.
3056 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3057 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3060 * java/awt/AWTError.java: Extend Error, not
3061 IllegalStateException.
3063 * Makefile.in: Rebuilt.
3064 * Makefile.am (awt_java_source_files): Added new file.
3065 * java/awt/geom/RoundRectangle2D.java: New file.
3067 * Makefile.in: Rebuilt.
3068 * Makefile.am (awt_java_source_files): Added new file.
3069 * java/awt/FlowLayout.java: New file.
3071 * Makefile.in: Rebuilt.
3072 * Makefile.am (awt_java_source_files): Added new file.
3073 * java/awt/GridLayout.java: New file.
3075 2000-12-02 Tom Tromey <tromey@redhat.com>
3077 * Makefile.in: Rebuilt.
3078 * Makefile.am (awt_java_source_files): Added new files.
3079 * java/awt/CardLayout.java: New file.
3080 * java/awt/AWTPermission.java: New file.
3082 2000-12-01 Tom Tromey <tromey@redhat.com>
3084 * java/util/Vector.java (insertElementAt): Unconditionally
3085 increment elementCount.
3086 (removeRange): Clear unused slots in vector.
3088 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3090 * java/lang/natMath.cc: Declare fabsf() function.
3091 * java/lang/mprec.h: Don't include math.h.
3092 * java/lang/dtoa.c: Include string.h.
3093 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3096 From Adam Welc <welc@cs.purdue.edu>:
3097 * java/util/LinkedList.java (removeFirst): Update `first' field.
3098 Handle the last == first case.
3099 (removeLast): Update `last' field. Handle the last == first case.
3101 2000-12-01 Warren Levy <warrenl@cygnus.com>
3103 * Makefile.am: Added entries for new java.sql modules.
3104 * Makefile.in: Rebuilt.
3106 2000-12-01 Warren Levy <warrenl@cygnus.com>
3108 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3109 that aren't quite 1.2 compatible yet.
3111 2000-11-30 Warren Levy <warrenl@cygnus.com>
3113 * java/sql/Array.java: New file from classpath.
3114 * java/sql/BatchUpdateException.java: Ditto.
3115 * java/sql/Blob.java: Ditto.
3116 * java/sql/Clob.java: Ditto.
3117 * java/sql/Ref.java: Ditto.
3118 * java/sql/SQLData.java: Ditto.
3119 * java/sql/SQLInput.java: Ditto.
3120 * java/sql/SQLOutput.java: Ditto.
3121 * java/sql/Struct.java: Ditto.
3122 * java/sql/CallableStatement.java: Merged file from claspath.
3123 * java/sql/Connection.java: Ditto.
3124 * java/sql/DataTruncation.java: Ditto.
3125 * java/sql/DatabaseMetaData.java: Ditto.
3126 * java/sql/DriverManager.java: Ditto.
3127 * java/sql/PreparedStatement.java: Ditto.
3128 * java/sql/ResultSet.java: Ditto.
3129 * java/sql/ResultSetMetaData.java: Ditto.
3130 * java/sql/SQLException.java: Ditto.
3131 * java/sql/SQLWarning.java: Ditto.
3132 * java/sql/Statement.java: Ditto.
3133 * java/sql/Types.java: Ditto.
3135 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3137 * java/lang/natSystem.cc (init_properties): Set user.language and
3139 * configure.in: Check for setlocale.
3140 * configure: Rebuilt.
3141 * include/config.h.in: Rebuilt.
3143 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3144 the infate() call didn't deliver any output. Throw a ZipException if
3145 the needsDictionary() call returns true.
3146 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3147 * java/io/InputStreamReader: Use the default buffer size for the
3148 contained BufferedInputStream.
3150 2000-11-28 Warren Levy <warrenl@cygnus.com>
3152 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3153 more time zone entries.
3154 * java/text/SimpleDateFormat.java (format): Added case for
3157 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3159 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3160 directly rather than read() in all cases. Make primitive read
3161 implementations more efficient, as defined in JDK online docs.
3162 (skipBytes): Behave like the JDK's implementation.
3163 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3164 closed stream with checkStatus() whenever an IOException can be
3166 (checkStatus): New private method.
3168 2000-11-27 Warren Levy <warrenl@cygnus.com>
3170 * Makefile.am: Added natTimeZone.cc.
3171 * Makefile.in: Rebuilt.
3172 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3173 * java/text/DateFormatSymbols.java (ampms): Made package private.
3174 (eras): Made package private.
3175 (months): Made package private.
3176 (shortMonths): Made package private.
3177 (shortWeekdays): Made package private.
3178 (weekdays): Made package private.
3179 (formatPrefixes): New private field.
3180 (localPatternCharsDefault): Made private.
3181 (dateFormats): New package private field.
3182 (timeFormats): New package private field.
3183 (formatsForKey): New private method.
3184 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3185 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3186 * java/text/SimpleDateFormat.java: Merged with Classpath.
3187 * java/util/TimeZone.java: Merged with Classpath.
3188 * java/util/natTimeZone.cc: New file.
3190 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3192 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3193 (addElement): Don't increment elementCount twice. Doh.
3194 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3195 array needs to be expanded.
3197 * java/util/Collections.java (UnmodifiableCollection): Implement
3199 (UnmodifiableList): Throw UnsupportedOperationException from
3200 modification methods. Set `l' from the one-parameter constructor.
3201 (UnmodifiableMap): Implement toString().
3202 (SynchronizedCollection): Ditto.
3203 (SynchronizedList): Set `l' from the one-parameter constructor.
3204 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3205 (SynchronizedMap): Implement toString().
3207 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3209 * javax/naming/NameParser.java,
3210 javax/naming/directory/AttributeInUseException.java,
3211 javax/naming/directory/AttributeModificationException.java,
3212 javax/naming/directory/InvalidAttributeIdentifierException.java,
3213 javax/naming/directory/InvalidAttributesException.java,
3214 javax/naming/directory/InvalidAttributeValueException.java,
3215 javax/naming/directory/InvalidSearchControlsException.java,
3216 javax/naming/directory/InvalidSearchFilterException.java,
3217 javax/naming/directory/NoSuchAttributeException.java,
3218 javax/naming/directory/SchemaViolationException.java: New files.
3220 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3222 * javax/naming/InitialContext.java (rebind): Implement.
3223 (unbind): Implement.
3224 (rename): Implement.
3226 (listBindings): Implement.
3227 (destroySubcontext): Implement.
3228 (createSubcontext): Implement.
3229 (lookupLink): Implement.
3230 (getNameParser): Implement.
3231 (composeName): Implement.
3232 (addToEnvironment): Implement.
3234 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3236 * javax/naming/AuthenticationException.java,
3237 javax/naming/AuthenticationNotSupportedException.java,
3238 javax/naming/CannotProceedException.java,
3239 javax/naming/CommunicationException.java,
3240 javax/naming/ConfigurationException.java,
3241 javax/naming/ContextNotEmptyException.java,
3242 javax/naming/InsufficientResourcesException.java,
3243 javax/naming/InterruptedNamingException.java,
3244 javax/naming/InvalidNameException.java,
3245 javax/naming/LimitExceededException.java,
3246 javax/naming/LinkException.java,
3247 javax/naming/LinkLoopException.java,
3248 javax/naming/MalformedLinkException.java,
3249 javax/naming/NameAlreadyBoundException.java,
3250 javax/naming/NameNotFoundException.java,
3251 javax/naming/NamingSecurityException.java,
3252 javax/naming/NoPermissionException.java,
3253 javax/naming/NotContextException.java,
3254 javax/naming/PartialResultException.java,
3255 javax/naming/ReferralException.java,
3256 javax/naming/ServiceUnavailableException.java,
3257 javax/naming/SizeLimitExceededException.java,
3258 javax/naming/TimeLimitExceededException.java: New files.
3260 * javax/naming/Name.java (clone): New method.
3261 (compareTo): New method.
3262 (isEmpty): New method.
3263 (getAll): New method.
3264 (getPrefix): New method.
3265 (getSuffix): New method.
3266 (startsWith): New method.
3267 (endsWith): New method.
3268 (addAll): New method.
3269 (addAll): New method.
3272 (remove): New method.
3274 * javax/naming/Context.java (lookup): New method.
3275 (rebind): New method.
3276 (unbind): New method.
3277 (rename): New method.
3279 (listBindings): New method.
3280 (destroySubcontext): New method.
3281 (createSubcontext): New method.
3282 (lookupLink): New method.
3283 (getNameParser): New method.
3284 (composeName): New method.
3285 (addToEnvironment): New method.
3286 (removeFromEnvironment): New method.
3287 (getEnvironment): New method.
3288 (close): New method.
3289 (getNameInNamespace): New method.
3291 * javax/naming/InitialContext.java (lookup): New method.
3292 (rebind): New method.
3293 (unbind): New method.
3294 (rename): New method.
3296 (listBindings): New method.
3297 (destroySubcontext): New method.
3298 (createSubcontext): New method.
3299 (lookupLink): New method.
3300 (getNameParser): New method.
3301 (composeName): New method.
3302 (addToEnvironment): New method.
3303 (removeFromEnvironment): New method.
3304 (getEnvironment): New method.
3305 (close): New method.
3306 (getNameInNamespace): New method.
3308 2000-11-26 Tom Tromey <tromey@cygnus.com>
3310 * Makefile.in: Rebuilt.
3311 * Makefile.am (core_java_source_files): Added
3312 RuntimePermission.java.
3313 * java/lang/RuntimePermission.java: Imported from Classpath.
3314 * java/lang/Thread.java (getContextClassLoader): Now
3315 synchronized. Added security code.
3316 (setContextClassLoader): Likewise.
3318 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3319 length field of array.
3320 (_Jv_NewPrimArray): Likewise.
3321 * gcj/array.h (__JArray): `length' field now const. Added
3324 2000-11-26 Anthony Green <green@redhat.com>
3326 * javax/naming/spi/NamingManager.java,
3327 javax/naming/spi/ObjectFactory.java,
3328 javax/naming/spi/InitialContextFactory.java,
3329 javax/naming/spi/InitialContextFactoryBuilder.java,
3330 javax/naming/RefAddr.java, javax/naming/Reference.java,
3331 javax/naming/NamingException.java, javax/naming/Context.java,
3332 javax/naming/Referenceable.java,
3333 javax/naming/directory/InitialDirContext.java,
3334 javax/naming/directory/DirContext.java,
3335 javax/naming/directory/Attributes.java,
3336 javax/naming/directory/Attribute.java,
3337 javax/naming/StringRefAddr.java,
3338 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3339 javax/naming/InitialContext.java,
3340 javax/naming/NoInitialContextException.java: New files.
3342 2000-11-25 Anthony Green <green@redhat.com>
3344 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3345 (_Jv_NewPrimArray): Likewise.
3346 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3347 (class JArray): Removed constructor.
3349 * java/lang/Thread.java (context_class_loader): New private data.
3350 (getContextClassLoader): New method.
3351 (setContextClassLoader): New method.
3352 (Thread): Initialize context_class_loader.
3354 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3355 (getResource): Rename to findResource.
3356 (findResource): New method. Used to be getResource.
3357 (getResourceAsStream): Deleted.
3358 (jarFileize): Extracted logic from URLClassLoader constructor into
3359 this new private method.
3360 (addURL): New protected method.
3361 (URLClassLoader): Call jarFileize. Use addElement instead of
3363 (findResources): New method.
3365 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3366 (getResource): Implement correct logic.
3367 (findResource): New method.
3368 (getResources): New method.
3369 (findClass): Create a ClassNotFoundException with the name of the
3370 class rather than nothing at all.
3371 (defineClass) Only throw ClassFormatError.
3373 * java/lang/Class.java (forName): New method.
3374 * java/lang/Class.h (forName): New method.
3375 * java/lang/natClass.cc (forName): New method.
3377 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3379 * java/lang/System.java (setProperties): Only call init_properties()
3380 if properties is null.
3381 (getProperties): Ditto.
3382 (getProperty): Ditto.
3383 (setProperty): Call init_properties if properties are null.
3384 (prop_init): Remove field.
3385 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3386 method. Check for null properties after synchronizing instead of
3387 prop_init flag. Set the properties field last for thread safety.
3389 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3390 test for gcj.dumpobjects property and enable object stream dumping
3392 (dumpElement): No longer native.
3393 (dumpElementln): Ditto.
3394 (setDump): Do not define.
3395 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3396 (dumpElementln): Removed.
3399 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3401 * configure: Rebuilt.
3402 * Makefile.in: Rebuilt.
3403 * Makefile.am (built_java_source_files): Add Configuration.java.
3404 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3405 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3406 Create `gnu' directory in the build tree.
3407 * gnu/classpath/Configuration.java.in: New file.
3409 2000-11-24 Tom Tromey <tromey@cygnus.com>
3411 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3413 (_Jv_NewPrimArray): Likewise.
3415 * gcj/array.h (__JArray): `length' field now const. Added
3417 (class JArray): Added constructor.
3419 2000-11-23 Mark Wielaard <mark@klomp.org>
3421 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3424 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3426 * java/util/Vector.java: Improve exception messages.
3427 (Vector): Check initialCapacity for IllegalArgumentException.
3428 (tromToSize): Don't check for elementCount == elementData.length
3430 (toArray): Don't try to set null marker if target array is the same
3431 length as the vector.
3433 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3435 * Makefile.in: Rebuilt.
3436 * Makefile.am (core_java_source_files): Added Collections.java.
3437 * java/util/List.java: Merged from classpath.
3438 * java/util/Vector.java: Ditto.
3439 * java/util/Collections.java: From classpath.
3440 * java/util/ArrayList.java (addAll(Collection)): Call
3441 addAll(int,Collection) instead of duplicating code.
3442 (indexOf): Clean up int initialization.
3443 (clear): Set cleared array entries to null, to allow garbage
3445 * java/util/List.java: Minor formatting fixes.
3446 * java/util/SimpleTimeZone.java: ditto.
3448 2000-11-18 Tom Tromey <tromey@cygnus.com>
3450 * Makefile.in: Rebuilt.
3451 * Makefile.am (core_java_source_files): Added new files.
3452 * java/lang/reflect/ReflectPermission.java: New class.
3453 * java/io/FileFilter.java: From Classpath
3454 * java/io/FilePermission.java: From Classpath.
3456 2000-11-17 Tom Tromey <tromey@cygnus.com>
3458 * java/lang/reflect/AccessibleObject.java (isAccessible,
3459 setAccessible): Now public.
3461 * java/lang/natString.cc: Include Locale.h.
3462 (toUpperCase): Added `locale' argument. Handle locale
3464 (toLowerCase): Added `locale' argument. Handle locale
3466 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3467 CAPITAL_I): New defines.
3468 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3471 (toUpperCase, toLowerCase): New methods. Variants which accept
3474 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3477 * java/util/PropertyPermission.java: Re-merged from Classpath.
3479 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3481 * java/text/StringCharacterIterator.java: Reindented.
3482 (setText): New method.
3484 2000-11-17 Mark Wielaard <mark@klomp.org>
3486 Merge with Classpath (changes by Bryce McKinlay)
3487 * java/util/jar/*.java: Reformat all to unofficial standard coding
3488 style. No changes of substance.
3490 2000-11-17 Mark Wielaard <mark@klomp.org>
3492 * java/util/zip/*.java: Javadoc updates.
3494 2000-11-17 Tom Tromey <tromey@cygnus.com>
3496 * java/text/CollationKey.java: Implement Comparable.
3497 (compareTo(Object)): New method.
3498 * java/text/Collator.java (compare(Object,Object)): New method.
3499 Implement Comparator.
3501 * java/util/zip/InflaterInputStream.java (available): New method.
3502 (close): New method.
3503 (read, available, skip, fill): Throw exception if stream closed.
3504 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3505 getNextEntry): Throw exception if closed.
3507 2000-11-16 Tom Tromey <tromey@cygnus.com>
3509 * java/io/PushbackReader.java: Merged with Classpath.
3510 * java/util/Arrays.java: Updated from Classpath.
3512 * scripts/blocks.pl: New file.
3513 * java/lang/Character.java (Subset): New class.
3514 (UnicodeBlock): New class.
3516 * java/lang/Math.java (toDegrees, toRadians): New methods.
3518 * java/lang/Float.java: Implement Comparable.
3519 (compareTo): New methods.
3520 * java/lang/Double.java: Implement Comparable.
3521 (compareTo): New methods.
3523 2000-11-16 Warren Levy <warrenl@cygnus.com>
3525 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3527 (listeners): Made transient.
3528 (source): Renamed from 'bean'.
3529 (children): New field for serialization.
3530 (propertyChangeSupportSerializedDataVersion): Ditto.
3531 (serialVersionUID): Ditto.
3532 (writeObject): New serialization method.
3533 (readObject): New serialization method.
3534 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3536 (listeners): Made transient.
3537 (source): Renamed from 'bean'.
3538 (children): New field for serialization.
3539 (vetoableChangeSupportSerializedDataVersion): Ditto.
3540 (serialVersionUID): Ditto.
3541 (writeObject): New serialization method.
3542 (readObject): New serialization method.
3543 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3544 to allow constructor to have a return type (i.e. the class that the
3545 constructor constructs).
3547 2000-11-14 Tom Tromey <tromey@cygnus.com>
3549 * Makefile.in: Rebuilt.
3550 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3553 2000-11-02 Warren Levy <warrenl@cygnus.com>
3555 * java/io/ObjectInputStream.java (readObject): Added code to
3556 conditionally dump out the serialized data.
3557 Handle ENDBLOCKDATA case a bit more gracefully since the current
3558 behavior doesn't seem to work as expected.
3559 (readStreamHeader): Added code for serialized data dumper.
3560 (readNextBlock): Ditto.
3561 (readFields): Ditto.
3562 (dump): New private static field for turning on/off dumper.
3563 (setDump): New native method.
3564 (dumpElement): New native method.
3565 (dumpElementln): New native method.
3566 * java/io/natObjectInputStream.cc (setDump): New method.
3567 (dumpElement): New method.
3568 (dumpElementln): New method.
3570 2000-11-02 Warren Levy <warrenl@cygnus.com>
3572 * java/net/InetAddress.java (addr): Renamed from 'address'.
3573 (address): New field to match Serialized Form doc.
3574 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3575 (family): New serialization field.
3576 (serialVersionUID): New field.
3577 (readObject): New method.
3578 (writeObject): New method.
3579 (getFamily): New native method.
3580 (InetAddress): Set family.
3581 * java/net/natInetAddress.cc (getFamily): New method.
3582 (addr): Renamed from 'address'.
3583 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3584 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3585 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3587 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3589 * java/util/AbstractList.java (SubList): Make it a top-level private
3591 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3593 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3594 * Makefile.in: Rebuilt.
3596 2000-11-02 Tom Tromey <tromey@cygnus.com>
3598 * Makefile.in: Rebuilt.
3599 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3602 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3604 * java/util/AbstractList.java (remove): Comment out modCount increment
3605 to work around compiler bug.
3608 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3610 * java/util/AbstractList.java: Throw messages with
3611 IndexOutOfBoundsExceptions.
3612 (listIterator()): Call listIterator(0).
3613 (size): New field. Initialize to size().
3614 (hasNext): Test position against size, not size().
3615 (remove): Increment knownMod by one instead of resetting it from
3618 (SubList.upMod): Removed.
3619 (SubList.set): Don't call upMod() or update knownMod.
3620 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3621 (SubList.remove): Ditto.
3622 (SubList.addAll): Don't call backingList.size(). Increment size from
3624 (SubList.iterator): New method. Call listIterator(0).
3625 (SubList.listIterator): New method. Restore code to return an anonymous
3626 listIterator implementation (with some changes).
3627 * java/util/AbstractSequentialList.java: Throw messages with
3628 IndexOutOfBoundsExceptions.
3629 (addAll): Add a specnote.
3630 * java/util/ArrayList.java (removeRange): Get the math right.
3631 (addAll): Increment modCount _before_ creating iterator.
3632 * java/util/LinkedList.java: Rewritten, mostly.
3634 2000-11-01 Tom Tromey <tromey@cygnus.com>
3636 * scripts/encodings.pl: Added `ASCII' alias.
3637 * Makefile.in: Rebuilt.
3638 * Makefile.am (convert_source_files): Added new files.
3639 * gnu/gcj/convert/Input_ASCII.java: New file.
3640 * gnu/gcj/convert/Output_ASCII.java: New file.
3641 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3642 out-of-range characters.
3643 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3644 (read): Swap bytes if required. Treat `count' as character count,
3646 (write): Likewise. Also, handle case where iconv fails on a given
3648 (init): Put encoding into exception.
3649 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3650 (static): Call iconv_init. Rebuilt alias list.
3651 (iconv_init): New private method.
3653 2000-11-01 Tom Tromey <tromey@cygnus.com>
3655 * Makefile.in: Rebuilt.
3656 * Makefile.am (install-exec-hook): Only make a single symlink, and
3657 remove the destination before making the link.
3658 * configure: Rebuilt.
3659 * configure.in: Call AC_PROG_LN_S.
3661 2000-10-31 Warren Levy <warrenl@cygnus.com>
3663 * jni.cc: Added include of java/lang/ThreadGroup.h.
3664 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3665 per change of 2000-10-05.
3667 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3669 * java/util/BitSet.java: Updated @specnote.
3671 * java/io/Reader.java: Merge docs from classpath.
3672 (skip): Synchronize on `lock'.
3673 * java/io/FileReader.java: Import correct implementation from
3675 * java/io/StringReader.java: Merge docs from classpath.
3676 (ready): Throw IOException if stream is closed.
3678 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3680 * java/util/AbstractCollection.java (addAll): Use size() instead of
3681 hasNext() in iterator loop.
3683 (contains): Ditto. Simplify loop.
3684 (containsAll): Ditto.
3689 (toString): Ditto. Use string concatenation operators, not
3691 * java/util/AbstractList.java (addAll): Use size() instead of
3692 hasNext() in iterator loop.
3695 (indexOf): Ditto. Don't take null check outside of the loop.
3696 (iterator): Return an AbstractListItr instead of anonymous class.
3697 (lastIndexOf): Use a for loop bounded by size() instead of
3698 hasPrevious() in iterator loop.
3699 (listIterator): Return an AbstractListItr.
3700 (removeRange): Remove bounds checking code and docs.
3701 (AbstractListItr): New inner class. Code moved here from
3703 (SubList.iterator): Removed. Use default implementation from
3704 AbstractList instead.
3705 (SubList.listIterator): As above.
3706 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3707 instead of hasNext() in iterator loop.
3708 (containsValue): Ditto.
3714 (toString): Ditto. Use string concatenation operators, not
3716 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3717 bounded by size() instead of hasNext() in iterator loop.
3718 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3719 part of normal execution flow. Do an explicit null check instead.
3720 * java/util/ArrayList.java (_iSize): Rename to `size'.
3721 (_arData): Rename to `data'.
3722 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3725 (removeRange): Make protected. Don't check bounds.
3726 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3728 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3730 (addAll (int, Collection)): Check lower bounds. Simplify exception
3732 (clone): Clone the data array too.
3733 (indexOf): Inline doesEqual().
3734 (lastIndexOf): Ditto.
3735 (clear): Don't set array data to null.
3736 (set): Check lower bounds. Simplify exception string.
3737 (toArray): Correct comment.
3738 (trimToSize): Don't update modCount, this is not a structural change.
3741 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3743 (toString): Declare `bit' as long, not int.
3744 (data): Made package-private, not private.
3746 2000-10-27 Warren Levy <warrenl@cygnus.com>
3748 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3749 array elements to true.
3751 2000-10-27 Warren Levy <warrenl@cygnus.com>
3753 * Makefile.am: Added locale files from Classpath.
3754 * Makefile.in: Rebuilt.
3755 * gnu/java/locale/Calendar.java: New file.
3756 * gnu/java/locale/Calendar_de.java: New file.
3757 * gnu/java/locale/Calendar_en.java: New file.
3758 * gnu/java/locale/Calendar_nl.java: New file.
3759 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3760 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3761 serialization compatibility.
3762 (scale): Made private.
3763 (serialVersionUID): New field.
3764 * java/math/BigInteger.java (ival): Made transient.
3765 (words): Made transient.
3766 (bitCount): New serialization field.
3768 (firstNonzeroByteNum): Ditto.
3769 (lowestSetBit): Ditto.
3772 (serialVersionUID): New field.
3773 (readObject): New method.
3774 (writeObject): New method.
3775 * java/util/BitSet.java (serialVersionUID): New field.
3776 * java/util/Calendar.java: Replaced with Classpath file.
3777 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3778 of getDefault() for TimeZone or Locale instead of passing nulls.
3779 * java/util/Locale.java (serialVersionUID): New field.
3780 (writeObject): New method.
3781 (readObject): New method.
3782 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3784 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3786 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3787 (core_java_source_files): Put java.lang, java.io, and java.util here.
3788 (ordinary_java_source_files): Order so that core_java_source_files are
3790 (java_source_files): Reorder so that special_java_source_files are
3792 * configure.in: Don't pass -I flag to gcj.
3793 * Makefile.in: Rebuilt.
3794 * configure: Rebuilt.
3796 2000-10-25 Tom Tromey <tromey@cygnus.com>
3798 * Makefile.in: Rebuilt.
3799 * Makefile.am (install-exec-hook): New target.
3801 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3803 * java/util/EventObject.java: Merged from classpath.
3805 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3808 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3810 * java/util/AbstractSet.java (equals): Re-installed original code.
3812 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3814 * Makefile.am: Added rules for libgcjx library.
3815 * Makefile.in: Rebuilt.
3816 * configure.in: Added check for X.
3817 * configure: Rebuilt.
3818 * gnu/awt/LightweightRedirector.java: New file.
3819 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3820 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3821 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3822 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3823 * gnu/awt/j2d/MappedRaster.java: New file.
3824 * gnu/awt/xlib/XCanvasPeer.java: New file.
3825 * gnu/awt/xlib/XEventLoop.java: New file.
3826 * gnu/awt/xlib/XEventQueue.java: New file.
3827 * gnu/awt/xlib/XFontMetrics.java: New file.
3828 * gnu/awt/xlib/XFramePeer.java: New file.
3829 * gnu/awt/xlib/XGraphics.java: New file.
3830 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3831 * gnu/awt/xlib/XPanelPeer.java: New file.
3832 * gnu/awt/xlib/XToolkit.java: New file.
3833 * gnu/gcj/xlib/Clip.java: New file.
3834 * gnu/gcj/xlib/Colormap.java: New file.
3835 * gnu/gcj/xlib/Display.java: New file.
3836 * gnu/gcj/xlib/Drawable.java: New file.
3837 * gnu/gcj/xlib/Font.java: New file.
3838 * gnu/gcj/xlib/GC.java: New file.
3839 * gnu/gcj/xlib/Pixmap.java: New file.
3840 * gnu/gcj/xlib/Screen.java: New file.
3841 * gnu/gcj/xlib/Visual.java: New file.
3842 * gnu/gcj/xlib/WMSizeHints.java: New file.
3843 * gnu/gcj/xlib/Window.java: New file.
3844 * gnu/gcj/xlib/WindowAttributes.java: New file.
3845 * gnu/gcj/xlib/XAnyEvent.java: New file.
3846 * gnu/gcj/xlib/XButtonEvent.java: New file.
3847 * gnu/gcj/xlib/XColor.java: New file.
3848 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3849 * gnu/gcj/xlib/XConnectException.java: New file.
3850 * gnu/gcj/xlib/XEvent.java: New file.
3851 * gnu/gcj/xlib/XException.java: New file.
3852 * gnu/gcj/xlib/XExposeEvent.java: New file.
3853 * gnu/gcj/xlib/XID.java: New file.
3854 * gnu/gcj/xlib/XImage.java: New file.
3855 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3856 * gnu/gcj/xlib/natClip.cc: New file.
3857 * gnu/gcj/xlib/natColormap.cc: New file.
3858 * gnu/gcj/xlib/natDisplay.cc: New file.
3859 * gnu/gcj/xlib/natDrawable.cc: New file.
3860 * gnu/gcj/xlib/natFont.cc: New file.
3861 * gnu/gcj/xlib/natGC.cc: New file.
3862 * gnu/gcj/xlib/natPixmap.cc: New file.
3863 * gnu/gcj/xlib/natScreen.cc: New file.
3864 * gnu/gcj/xlib/natVisual.cc: New file.
3865 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3866 * gnu/gcj/xlib/natWindow.cc: New file.
3867 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3868 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3869 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3870 * gnu/gcj/xlib/natXColor.cc: New file.
3871 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3872 * gnu/gcj/xlib/natXException.cc: New file.
3873 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3874 * gnu/gcj/xlib/natXImage.cc: New file.
3875 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3876 * java/awt/EventDispatchThread.java: Start thead on creation.
3878 2000-10-20 Tom Tromey <tromey@cygnus.com>
3880 From Arno J. Klaassen:
3881 * interpret.cc: Include <stdlib.h> for alloca.
3882 * defineclass.cc: Include <stdlib.h> for alloca.
3884 * Makefile.in: Rebuilt.
3885 * Makefile.am: Include deps.mk.
3886 (GCJCOMPILE): Added -MD, -MT, and -MF.
3887 ($(javao_files)): Don't depend on libgcj.zip.
3888 (all-recursive): New target.
3889 (%.lo:%.cc): Do dependency tracking.
3890 ($(nat_headers)): Don't depend on libgcj.zip.
3891 * configure: Rebuilt.
3892 * configure.in: Make .d files and deps.mk.
3894 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3896 * exception.cc: Don't #include "exception".
3897 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3899 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3900 * Makefile.in: Updated.
3902 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3904 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3905 * java/awt/peer/ComponentPeer.java (disable): Removed.
3908 (minimumSize): Removed.
3909 (preferredSize): Removed.
3912 * java/awt/peer/ListPeer.java (addItem): Removed.
3914 (minimumSize): Removed.
3915 (preferredSize): Removed.
3916 (setMultipleSelections): Removed.
3917 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3918 (remove): Renamed from removeMenu.
3919 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3921 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3922 (remove): Renamed from removeItem.
3923 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3924 (getMinimumSize): Removed.
3925 (getPreferredSize): Removed.
3926 (minimumSize): Removed.
3927 (preferredSize): Removed.
3928 (replaceText): Removed.
3929 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3930 (preferredSize): Removed.
3931 (getMinimumSize): Removed.
3932 (getPreferredSize): Removed.
3933 (setEchoCharacter): Removed.
3935 2000-10-10 Warren Levy <warrenl@cygnus.com>
3937 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3938 * java/sql/Date.java (serialVersionUID): New field.
3939 * java/sql/Time.java (serialVersionUID): New field.
3940 * java/sql/Timestamp.java (serialVersionUID): New field.
3941 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3942 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3943 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3944 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3945 (readObject): New serialization method.
3946 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3947 (serialVersionOnStream): New field.
3948 (readObject): New serialization method.
3949 (getMonetaryDecimalSeparator): New method.
3950 (setMonetaryDecimalSeparator): New method.
3951 * java/text/NumberFormat.java (maxFractionDigits): New field.
3952 (maxIntegerDigits): New field.
3953 (minFractionDigits): New field.
3954 (minIntegerDigits): New field.
3955 (serialVersionOnStream): New field.
3956 (serialVersionUID): New field.
3957 (readObject): New serialization method.
3958 (writeObject): New serialization method.
3959 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3960 (serialVersionOnStream): New field.
3961 (serialVersionUID): New field.
3962 (readObject): New serialization method.
3964 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3966 * configure.in (GCJ): Avoid bogus error message when looking for
3967 (and not finding) gcj in the build tree.
3968 * configure: Rebuilt.
3970 2000-10-09 Tom Tromey <tromey@cygnus.com>
3972 * configure: Rebuilt.
3973 * configure.in: Include sys/types.h when checking for socklen_t.
3974 From Arno J. Klaassen.
3976 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3978 * include/jvm.h: Enable __builtin_expect().
3980 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3981 the main program. Fix for PR libgcj/341.
3983 2000-10-07 Tom Tromey <tromey@cygnus.com>
3985 * java/util/Properties.java: Merged with Classpath version.
3987 2000-10-05 Tom Tromey <tromey@cygnus.com>
3989 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3990 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3991 * java/lang/Class.h (Object): Added `class$' field.
3992 * java/lang/Object.h (Object): Added `class$' field.
3993 * defineclass.cc (ClassClass): Use `class$' form.
3994 (ClassObject): Likewise.
3995 * resolve.cc (ClassObject): Use `class$' form.
3996 (ObjectClass): Likewise.
3997 * interpret.cc (ClassError): Removed.
3998 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4000 (IntegerClass): Likewise.
4001 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4003 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4004 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4005 SerializableClass): Likewise.
4006 Include Serializable.h, Cloneable.h.
4007 * java/lang/natSystem.cc (SystemClass): Removed.
4008 (init_properties): Use `class$' form.
4009 * java/lang/natObject.cc (CloneableClass): Removed.
4010 (clone): Use `class$' form.
4011 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4012 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4013 ConstructorClass): Likewise.
4014 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4015 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4016 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4017 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4019 (ClassClass): Likewise.
4020 * include/jvm.h (StringClass): Use `class$' form.
4021 * prims.cc (ObjectClass): Removed.
4022 (_Jv_RunMain): Use `class$' form.
4023 (_Jv_AllocObject): Likewise.
4024 * jni.cc (ClassClass): Use `class$' form.
4025 (ThrowableClass): Likewise.
4026 (ObjectClass): Likewise.
4027 (MethodClass): Likewise.
4028 (ThreadGroupClass): Likewise.
4029 (NativeThreadClass): Likewise.
4030 * boehm.cc (ObjectClass): Removed.
4031 (ClassClass): Removed.
4032 (_Jv_MarkObj): Use `class$' form.
4033 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4036 2000-10-05 Warren Levy <warrenl@cygnus.com>
4038 * Makefile.am: Removed java/io/Replaceable.java and
4039 java/io/Resolvable.java.
4040 * Makefile.in: Rebuilt.
4041 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4043 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4045 (processResolution): Handle readResolve method via reflection with
4046 removal of Resolvable interface.
4047 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4048 method via reflection with removal of Replaceable interface.
4049 * java/io/Replaceable.java: Removed.
4050 * java/io/Resolvable.java: Removed.
4051 * java/security/Key.java (serialVersionUID): New field.
4052 * java/security/Provider.java (serialVersionUID): New field.
4053 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4055 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4057 * java/sql/DataTruncation.java (serialVersionUID): New field.
4058 * java/sql/SQLException.java (serialVersionUID): New field.
4059 * java/sql/SQLWarning.java (serialVersionUID): New field.
4060 * java/util/Date.java (serialVersionUID): New field.
4061 (millis): Made transient.
4062 (readObject): New method.
4063 (writeObject): New method.
4065 2000-10-05 Tom Tromey <tromey@cygnus.com>
4067 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4069 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4071 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4072 (JvRunMain): Set _Jv_argv and _Jv_argc.
4073 * java/awt/Component.java: Minor fixes.
4074 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4075 * java/awt/Toolkit.java (systemEventQueue): Removed.
4076 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4077 * java/awt/Window.java (getToolkit): Don't call super.
4078 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4079 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4080 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4081 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4082 * gnu/awt/gtk/GtkFramePeer.java: New file.
4083 * gnu/awt/gtk/GtkMainThread.java: New file.
4084 * gnu/awt/gtk/GtkToolkit.java: New file.
4085 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4086 * gnu/awt/gtk/gtkcommon.cc: New file.
4087 * gnu/awt/gtk/gtkcommon.h: New file.
4088 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4089 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4090 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4091 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4092 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4093 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4095 2000-09-30 Tom Tromey <tromey@cygnus.com>
4097 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4098 interrupted before modifying the cv's wait set.
4101 2000-09-30 Hans Boehm <boehm@acm.org>
4102 Bryce McKinlay <bryce@albatross.co.nz>
4104 Implement bitmap descriptor based marking for Boehm GC.
4106 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4107 * configure: Rebuilt.
4108 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4109 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4110 method get_finalizer().
4111 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4112 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4113 (_Jv_AllocObj): Add new jclass parameter.
4114 (_Jv_AllocArray): Ditto.
4115 (_Jv_BuildGCDescr): New prototype.
4116 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4117 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4118 get_finalizer() instead of direct finalizer vtable offset.
4119 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4120 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4121 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4122 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4123 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4124 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4125 (_Jv_DetermineVTableIndex): Ditto.
4126 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4127 calculations to account for new gc_descr field.
4128 * boehm.cc: #include gc_gcj.h.
4129 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4130 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4131 New commentary from HB. Mark the classes vtable.
4132 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4133 (GC_DEFAULT_DESCR): New #define.
4134 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4135 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4136 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4137 scan conservativly if size is less than min_heap_addr. Set vtable
4138 pointer of new object before returning.
4139 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4140 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4141 allocation for obj_kind_x.
4142 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4143 (_Jv_AllocObj): Set vtable on returned object.
4144 (_Jv_AllocArray): Ditto.
4145 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4146 (_Jv_NewPrimArray): Ditto.
4147 (_Jv_AllocObj): Declare as a friend.
4148 (_Jv_AllocArray): Ditto.
4149 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4150 from &ObjectClass into new array class. Remove offset-by-one
4151 adjustments from `method' size calculations to account for gc_descr
4154 2000-09-26 Tom Tromey <tromey@cygnus.com>
4156 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4157 `remove', not `add'.
4159 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4161 * java/lang/natSystem.cc (file_encoding): Added return statement.
4163 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4165 * Makefile.am: Re-work shell commands that exceeded command-line
4167 * Makefile.in: Rebuilt.
4169 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4171 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4172 * java/lang/natDouble.cc: Likewise.
4173 * java/lang/reflect/natMethod.cc: Likewise.
4174 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4176 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4178 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4180 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4181 * acinclude.m4: Arrange for automake to not bring in a new
4182 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4183 * Makefile.am: Leave it up to automake to subst GCJ.
4184 * aclocal.m4, configure, Makefile.in: Rebuilt.
4186 2000-09-13 Tom Tromey <tromey@cygnus.com>
4188 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4189 (get): Ensure Boolean class is initialized.
4190 * java/lang/reflect/natField.cc (BooleanClass): New define.
4191 (get): Ensure Boolean class is initialized.
4193 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4195 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4196 Initialize with anonymous class.
4197 (compareToIgnoreCase): New method.
4199 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4200 (uncaughtException): Set had_uncaught_exception.
4201 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4202 exit with error status if set.
4203 (_Jv_RunMain): Ditto.
4205 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4207 * configure: Rebuilt with new ../libtool.m4.
4209 2000-09-11 Tom Tromey <tromey@cygnus.com>
4211 * java/lang/reflect/Field.java (toString): Don't rely on
4214 2000-09-08 Tom Tromey <tromey@cygnus.com>
4216 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4217 default decoder use iconv.
4218 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4219 Let default encoder use iconv.
4220 * configure: Rebuilt.
4221 * configure.in: Check for nl_langinfo and <langinfo.h>.
4222 * java/lang/natSystem.cc (file_encoding): New function.
4223 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4225 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4227 * acinclude.m4: Simplify the tests for CC and CXX.
4228 * aclocal.m4, configure: Rebuilt.
4230 * acinclude.m4: Include libtool macros from the source tree.
4231 * aclocal.m4, configure: Rebuilt.
4233 2000-09-08 Warren Levy <warrenl@cygnus.com>
4235 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4236 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4237 * java/io/File.java (writeObject): Added.
4238 (readObject): Added.
4239 (serialVersionUID): Added.
4240 * java/io/ObjectOutputStream.java (writeObject): Initialized
4241 fieldsAlreadyWritten before recursion rather than after.
4242 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4243 * java/io/OptionalDataException.java (serialVersionUID): Added.
4244 (OptionalDataException): Made package private.
4245 * java/io/SyncFailedException.java (SyncFailedException): Removed
4246 default constructor to match spec.
4247 * java/lang/Boolean.java (serialVersionUID): Added.
4248 * java/lang/Byte.java (serialVersionUID): Added.
4249 * java/lang/Character.java (serialVersionUID): Added.
4250 * java/lang/Double.java (serialVersionUID): Added.
4251 * java/lang/Float.java (serialVersionUID): Added.
4252 * java/lang/Integer.java (serialVersionUID): Added.
4253 * java/lang/Long.java (serialVersionUID): Added.
4254 * java/lang/Number.java (serialVersionUID): Added.
4255 * java/lang/Short.java (serialVersionUID): Added.
4256 * java/lang/String.java (serialVersionUID): Added.
4257 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4259 * java/lang/reflect/InvocationTargetException.java
4260 (serialVersionUID): Added.
4261 * java/net/URL.java (handler): Made transient.
4262 (hashCode): Added field for serialization, per spec. and use
4263 cached value if available.
4264 (serialVersionUID): Added.
4265 (URL): Initialize hashCode.
4266 (set): Adjust hashCode.
4267 (readObject): New Method to initialize the protocol handler when
4269 (writeObject): New method.
4270 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4271 * java/text/Collator.java: Removed 'implements Serializable'.
4272 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4273 * java/util/Properties.java (serialVersionUID): Added.
4274 * java/util/Random.java (serialVersionUID): Added.
4275 (seed): Made private.
4276 (nextNextGaussian): Made private.
4277 (haveNextNextGaussian): Made private.
4278 * java/util/Stack.java (serialVersionUID): Added.
4279 * java/util/TimeZone.java (serialVersionUID): Added.
4280 * java/util/Vector.java (serialVersionUID): Added.
4282 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4284 * Makefile.am (Thread.h): Don't be friends with native threads
4286 * Makefile.in: Rebuilt.
4287 * java/lang/Thread.java (interrupt_flag): Make package-private.
4289 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4291 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4292 to avoid long long division.
4294 2000-09-06 Tom Tromey <tromey@cygnus.com>
4296 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4298 * java/lang/reflect/Method.java (toString): Use `getName' for
4301 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4302 `args' if method takes no parameters.
4304 Fix for PR java.lang/339:
4305 * java/lang/natPosixProcess.cc (fail): New function.
4306 (cleanup): New function.
4307 (startProcess): Use them. Create pipe so child can communicate
4308 exec failure back to parent.
4310 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4312 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4314 (send): Undo last patch. Remove the label only.
4316 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4318 * java/net/natInetAdress.cc: Ditto.
4320 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4322 2000-09-05 Tom Tromey <tromey@cygnus.com>
4324 * doc/cni.sgml: Updated from master copy.
4326 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4328 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4330 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4332 * java/lang/fdlibm.h: #undef __P if previously defined.
4333 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4334 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4338 2000-09-04 Tom Tromey <tromey@cygnus.com>
4340 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4343 2000-09-04 Anthony Green <green@redhat.com>
4345 Fix for PR java.io/203:
4346 * java/io/File.java (createTempFile): Obey directory argument.
4347 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4348 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4349 variable to set java.io.tmpdir on non-WIN32 systems.
4351 2000-09-04 Anthony Green <green@redhat.com>
4353 * java/io/File.java (deleteOnExit): New method.
4354 * gnu/gcj/runtime/FileDeleter.java: New class.
4355 * java/lang/natRuntime.cc (exit): Call
4356 FileDeleter.deleteOnExitNow()
4357 * Makefile.am: Add FileDeleter.java.
4358 * Makefile.in: Rebuilt.
4360 2000-09-02 Tom Tromey <tromey@cygnus.com>
4362 * Makefile.in: Rebuilt.
4363 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4364 environment variable.
4366 2000-09-01 Andrew Haley <aph@redhat.com>
4368 * java/io/StreamTokenizer.java: Don't throw a
4369 NumberFormatException if a field is numeric as far as the
4370 StreamTokenizer is concerned but not as far as Double.valueOf() is
4371 concerned: return a zero instead.
4373 2000-08-30 Tom Tromey <tromey@cygnus.com>
4375 * Makefile.in: Rebuilt.
4376 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4378 2000-08-28 Tom Tromey <tromey@cygnus.com>
4380 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4381 gnu/gcj/awt/ComponentDataBlitOp.java,
4382 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4383 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4384 java/awt/color/ICC_ColorSpace.java,
4385 java/awt/color/ICC_Profile.java,
4386 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4387 java/awt/image/ComponentColorModel.java,
4388 java/awt/image/ComponentSampleModel.java,
4389 java/awt/image/DataBuffer.java,
4390 java/awt/image/DataBufferByte.java,
4391 java/awt/image/DataBufferInt.java,
4392 java/awt/image/DataBufferUShort.java,
4393 java/awt/image/DirectColorModel.java,
4394 java/awt/image/IndexColorModel.java,
4395 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4396 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4397 java/awt/image/SinglePixelPackedSampleModel.java,
4398 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4399 Removed Latin-1 copyright symbols.
4400 * java/util/zip/ZipFile.java: Indentation fixes.
4402 2000-08-27 Mark Wielaard <mark@klomp.org>
4404 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4405 constructor, close can delete the file, finalize calls close.
4406 * java/util/jar/JarFile.java: Constructor that takes mode now
4409 2000-08-27 Anthony Green <green@redhat.com>
4411 * java/util/ArrayList.java, java/util/Timer.java,
4412 java/util/LinkedList.java, java/util/TimerTask.java,
4413 java/util/HashMap.java, java/util/AbstractMap.java,
4414 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4415 java/util/SortedSet.java: Imported from GNU Classpath.
4416 * Makefile.in: Rebuilt.
4417 * Makefile.am: Added new files.
4419 2000-08-26 Anthony Green <green@redhat.com>
4421 * Makefile.in: Rebuilt.
4422 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4425 * prims.cc: Include ClassLoader.h.
4426 (_Jv_RunMain): When executing jar files, classpath must be the jar
4427 file only. Lose our reference to the system ClassLoader in order
4428 to get a new one with the correct classpath.
4429 * java/lang/natSystem.cc (init_properties): When executing a jar
4430 file, only use the jar file for java.class.path.
4432 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4433 for bytecode archives.
4435 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4436 exists, but not Main-Class.
4438 2000-08-23 Mark Wielaard <mark@klomp.org>
4440 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4441 return -1 when fill() has no more data for the Inflater.
4443 2000-08-23 Mark Wielaard <mark@klomp.org>
4445 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4446 write(String) already does.
4448 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4450 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4451 to `alive_flag', call `init'.
4452 (init): New native method.
4453 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4456 2000-08-21 Mark Wielaard <mark@klomp.org>
4458 * Makefile.in: Rebuilt.
4459 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4461 (java/lang/reflect/Field.h): Likewise.
4462 (java/lang/reflect/Method.h): Likewise.
4463 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4466 2000-08-21 Tom Tromey <tromey@cygnus.com>
4468 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4471 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4473 * java/lang/natSystem.cc (init_properties): Change sourceware
4474 reference to sources.redhat.com.
4476 * include/java-props.h: Add _Jv_Jar_Class_Path.
4477 * prims.cc: Ditto. Set it from `gij -jar file' option.
4479 * java/lang/natSystem.cc (init_properties): Set java.class.path
4481 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4483 * java/util/PropertyPermission.java: Import from GNU Classpath.
4484 * Makefile.in: Rebuilt.
4485 * Makefile.am: Add java/util/PropertyPermission.java.
4486 * java/lang/System.java: Add setProperty method.
4488 * gij.cc (main): Add -jar option to execute jar files.
4489 (help): Describe -jar option.
4490 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4491 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4492 * gnu/gcj/runtime/FirstThread.java (main): New method.
4494 * java/util/jar/Attributes.java: Correct comment spelling.
4496 2000-08-20 Mark Wielaard <mark@klomp.org>
4498 * java/util/zip/Adler32.java: Make private variables really private
4499 * java/util/zip/CRC32.java: Make private variables really private
4500 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4502 * java/util/zip/InflaterInputStream.java: skip() could skip to
4504 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4505 * java/util/zip/ZipFile.java: size() new 1.2 method
4506 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4507 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4510 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4512 * java/util/jar/JarFile.java: Don't call
4513 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4516 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4518 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4519 Read the entire contents of the class file, not just what is
4522 * java/net/JarURLConnection.java: getEntry doesn't take any
4523 arguments. Return null if element is null.
4525 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4526 size from the archive, not the inflated size.
4528 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4529 java.util.zip.ZipFile.getEntry.
4531 * gij.cc (help): Change sourceware reference to
4534 2000-08-19 Tom Tromey <tromey@cygnus.com>
4536 * java/util/zip/ZipInputStream.java (createZipEntry):
4539 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4541 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4542 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4543 java/util/jar/JarInputStream.java,
4544 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4545 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4546 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4547 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4548 java/security/cert/Certificate.java,
4549 java/security/cert/CertificateEncodingException.java,
4550 java/security/cert/CertificateException.java,
4551 java/security/cert/CertificateExpiredException.java,
4552 java/security/cert/CertificateFactory.java,
4553 java/security/cert/CertificateFactorySpi.java,
4554 java/security/cert/CertificateNotYetValidException.java,
4555 java/security/cert/CertificateParsingException.java,
4556 java/security/cert/X509CRL.java,
4557 java/security/cert/X509CRLEntry.java,
4558 java/security/cert/X509Certificate.java,
4559 java/security/cert/X509Extension.java: Imported from Classpath.
4560 * java/util/Hashtable.java: Imported from Classpath.
4562 * java/util/zip/ZipInputStream.java: Create stub for
4565 * gcj/javaprims.h: Updated class list.
4567 * Makefile.in, gcj/Makefile.in: Rebuilt.
4568 * Makefile.am (ordinary_java_source_files): Add these new classes.
4570 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4572 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4573 * gnu/gcj/awt/GLightweightPeer.java: New file.
4574 * java/awt/BorderLayout.java: Implemented all methods.
4575 * java/awt/Button.java (actionListener, actionCommand): Renamed
4576 and modifier change.
4577 (addNotify): Call super.
4578 (dispatchEventImpl): New method.
4579 (getListeners): New method.
4580 (label): Made package-private, not private.
4581 * java/awt/Canvas.java: Implemented class body.
4582 * java/awt/Color.java (brighter): New method.
4583 (darker): New method.
4584 (hashCode): New method.
4585 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4586 (getGraphicsConfiguration): Delegate to
4587 getGraphicsConfigurationImpl().
4588 (getGraphicsConfigurationImpl): New method.
4589 (getToolkit): Only return value from peer if not null.
4590 (isDisplayable): Check with parent.
4591 (isShowing): No parent implies not showing.
4592 (getForeground): Check parent property if local is null.
4593 (getBackground): Likewise.
4594 (getFont): Likewise.
4595 (setForeground): Inform peer.
4596 (setBackground): Likewise
4597 (setLocale): Invalidate component.
4598 (getColorModel): Implemented.
4599 (setLocation): Invalidate, or ignore if no change.
4600 (setSize): Invalidate, or ignore if no change.
4601 (setBounds): Invalidate, or ignore if no change.
4602 (isOpaque): By default, heavyweight implies opaque.
4603 (isLightweight): Implemented.
4604 (getMaximumSize): Implemented.
4605 (doLayout): Implemented, NOP.
4606 (validate): Implemented, NOP.
4607 (invalidate): Only propagate to parent if parent was valid.
4608 (getGraphics): Implemented.
4609 (getFontMetrics): Implemented.
4610 (update): Implemented.
4611 (paintAll): Implemented.
4612 (repaint): Implemented all repaint methods.
4613 (print): Implemented.
4614 (printAll): Implemented.
4615 (createImage): Implemented.
4616 (dispatchEvent): Give the peer a chance to handle the event.
4617 (dispatchEventImpl): Dispatch paint events.
4618 (enableEvents): Lightweights enable events on parent component.
4619 (coalesceEvents): Coalesce paint events, and select event type
4621 (coalescePaintEvents): New method.
4622 (processEvent): Fix unfortunate ordering of statements, and call
4623 correct method for MOUSE_CLICKED.
4624 (processPaintEvent): New method.
4625 (addNotify): Allow container to notify children before event
4626 mask is set in peer.
4627 (addNotifyContainerChildren): New method.
4628 (removeNotify): Visibility should not change on removeNotify.
4629 (paramString): Implemented.
4630 (list): Implemented two of the list methods.
4631 * Container (myInsets): Removed, insets are managed by peer.
4632 (getInsets): Query peer.
4633 (addImpl): Fix reparenting, enable events for lightweights,
4634 initialize component array.
4635 (validate): Call doLayout in validateTree() instead.
4636 (validateTree): Do nothing if already valid. Call beginValidate(),
4637 endValidate() on peer. Call validateTree() instead of validate()
4638 for children that are containers. Mark valid after validation of
4640 (setFont): Partial implementation.
4641 (paint): Implemented.
4642 (visitChildren): New method.
4643 (visitChild): New method.
4644 (update): Implemented.
4645 (print): Implemented.
4646 (paintComponents): Implemented.
4647 (printComponents): Consider translation and clipping.
4648 (getComponentAt): Ignore invisible children. Return this if no
4650 (addNotify): Call super.
4651 (addNotifyContainerChildren): New method.
4652 (paramString): Implemented.
4653 (list): Implemented.
4654 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4656 (invokeLater): Likewise.
4657 (isDispatchThread): Likewise.
4658 * java/awt/FontMetrics (getLeading): Formula change.
4659 (getDescent): Consider leading also.
4660 (getMaxAscent): Default to getAscent().
4661 (getMaxDescent): Default to getDescent.
4662 (getMaxAdvance): Return value signifying unknown.
4663 (charWidth): Both methods implemented.
4664 (charsWidth): Implemented.
4665 (bytesWidth): Implemented.
4666 (getWidths): Implemented.
4667 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4669 (Frame): Rearragend constuctor chaining to disallow null being
4670 passed as a graphics configuration.
4671 (getTitle): Return empty string if null.
4673 (getIconImage): New method.
4674 (setIconImage): New method.
4675 (finalize): New method.
4676 (setMenuBar): Notify peer.
4677 (isResizable): New method.
4678 (setResizable): New method.
4679 (getState): New method.
4681 (remove): Implemented.
4682 (removeNotify): New method.
4683 (getFrames): New method.
4684 * java/awt/Graphics.java: Implemented body of class.
4685 * java/awt/Graphics2D.java: New file.
4686 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4687 * java/awt/Image.java: Implemented body of class.
4688 * java/awt/Panel.java (Panel): Call correct super constructor.
4689 (addNotify): Implemented.
4690 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4691 * java/awt/RenderingHints.java: New file.
4692 * java/awt/Toolkit.java (createComponent): Implemented.
4693 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4694 * java/awt/Window.java (Window): Two new constructors. Reordered
4695 constructor chaining.
4696 (getGraphicsConfigurationImpl): New method.
4697 (finalize): Call super.
4698 (addNotify): Call super.
4699 (pack): Do layout stuff.
4700 (show): Ensure that peer exists and that component is valid.
4701 (dispose): Dispose owned children.
4702 (getOwner): Simplify code, casting null pointers is valid.
4703 (getGraphicsConfiguration): Ask peer if local value is null.
4704 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4706 * java/awt/image/BufferedImage.java: New file.
4707 * java/awt/image/RasterOp.java: New file.
4708 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4709 More powerfull replacement for getColorModel().
4710 (getColorModel) Removed.
4711 (setEventMask) New method.
4712 * Makefile.am: Added new files.
4713 * Makefile.in: Rebuilt.
4715 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4717 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4718 (finit_leg_name): New global.
4719 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4720 `$finit$'. This is a backward compatibility hack.
4721 (java::lang::Class::_getMethods): Likewise.
4723 2000-08-15 Andrew Haley <aph@cygnus.com>
4725 * include/jvm.h (_Jv_HashCode): New hash code.
4727 2000-08-15 Tom Tromey <tromey@cygnus.com>
4729 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4731 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4733 * THANKS: More thanks.
4735 2000-08-10 Tom Tromey <tromey@cygnus.com>
4737 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4739 (connect): Likewise.
4741 (getOption): Likewise.
4742 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4743 case when errno not set.
4746 (receive): Likewise.
4747 (mcastGrp): Likewise.
4748 (setOption): Likewise.
4749 (getOption): Likewise.
4751 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4752 John Stracke <francis@ecal.com>
4754 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4755 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4757 (disconnect): Don't unset connected flag.
4758 (getHeaderField (String)): Call connect() if not connected.
4759 (getHeaderField (int)): Ditto.
4760 (getHeaderFieldKey): Ditto.
4761 (getHttpHeaders): Don't call connect().
4762 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4763 gotResponseVals): New fields.
4764 (getResponseCode): Call getResponseVals() conditionally.
4765 (getResponseMessage): Ditto.
4766 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4768 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4770 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4771 * Makefile.in: Rebuilt.
4772 * java/awt/Color.java (getTransparency): New method.
4773 * java/awt/Component.java: Various updates.
4774 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4775 after dealing with children.
4776 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4777 * java/awt/Window.java: Various new methods and updates.
4778 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4780 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4781 * java/awt/event/WindowEvent.java (paramString): Ditto.
4782 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4784 * java/awt/geom/Point2D.java (clone): Ditto.
4785 * java/awt/geom/RectangularShape.java (clone): Ditto.
4786 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4787 isAlphaPremultiplied): Make package-private, not private.
4789 2000-08-08 Tom Tromey <tromey@cygnus.com>
4791 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4792 surrogate characters.
4793 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4795 (write): Correct handling of surrogate characters.
4797 2000-08-07 Tom Tromey <tromey@cygnus.com>
4799 * java/lang/reflect/Method.java (hashCode): Use getName().
4800 (toString): Likewise.
4801 * java/lang/reflect/natMethod.cc (getType): Initialize
4804 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4806 * java/lang/reflect/Field.java (toString): Correct formatting.
4809 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4811 (receive): Streamlined.
4813 2000-08-05 Tom Tromey <tromey@cygnus.com>
4815 * java/io/PrintWriter.java: Merged comments from Classpath.
4816 (printlnUnsynchronized): Removed.
4817 (println()): Print the separator.
4818 (println): Call println(), not printlnUnsynchronized.
4819 (out): Now protected, to match spec.
4821 2000-08-04 Tom Tromey <tromey@cygnus.com>
4823 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4824 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4827 2000-08-03 Warren Levy <warrenl@cygnus.com>
4829 * java/io/ObjectInputStream.java (readFields): Turn off
4830 readDataFromBlock while reading via GetField.
4831 (GetField$1.get(String, Object)): Pass Class of default value to
4833 (getField): Allow for null default values.
4835 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4836 (PutField$1.put): Fixed calls of checkType in most of the put
4837 methods to pass the correct parameter.
4838 (PutField$1.put(String, Object)): Allow for null value arg.
4839 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4842 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4843 typo in spec'ed field name.
4844 (getSerialPersistentFields): Changed spelling of method to match
4845 the correct spelling of the spec'ed field name.
4847 2000-08-03 Tom Tromey <tromey@cygnus.com>
4849 * Makefile.in: Rebuilt.
4850 * Makefile.am (awt_java_source_files): Added new files.
4852 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4854 * Makefile.am: Add new AWT stubs.
4855 * java/awt/Canvas.java: New placeholder class.
4856 * java/awt/Checkbox.java: Ditto.
4857 * java/awt/CheckboxMenuItem.java: Ditto.
4858 * java/awt/Choice.java: Ditto.
4859 * java/awt/Dialog.java: Ditto.
4860 * java/awt/FileDialog.java: Ditto.
4861 * java/awt/List.java: Ditto.
4862 * java/awt/ScrollPane.java: Ditto.
4863 * java/awt/TextField.java: Ditto.
4864 * java/awt/datatransfer/Clipboard.java: Ditto.
4865 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4866 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4867 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4868 Some commented out. Partially implemented.
4869 * java/awt/natToolkit.cc: Removed file.
4871 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4873 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4874 Fixes "make -j" builds.
4875 * Makefile.in: Rebuild.
4877 2000-08-02 Tom Tromey <tromey@cygnus.com>
4879 * Makefile.in: Rebuilt.
4880 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4881 * java/net/natPlainSocketImpl.cc: Include posix.h.
4882 (accept): Use _Jv_select.
4883 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4884 (receive): Use _Jv_select.
4885 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4886 (available): Use _Jv_select.
4887 * java/lang/natSystem.cc: Include posix.h.
4888 (currentTimeMillis): Use _Jv_gettimeofday.
4889 * include/posix.h: New file.
4890 * posix.cc: New file.
4892 * scripts/encodings.pl: New file.
4893 * Makefile.in: Rebuilt.
4894 * Makefile.am (convert_source_files): Added IOConverter.java.
4895 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4897 (getDefaultDecodingClass): Canonicalize default encoding name.
4898 (getEncoder): Likewise.
4899 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4901 (getDefaultDecodingClass): Canonicalize default encoding name.
4902 (getDecoder): Likewise.
4903 * gnu/gcj/convert/IOConverter.java: New file.
4905 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4907 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4908 to match C declaration in ffi.h.
4909 * Makefile.am: Add java/awt/Button.java.
4910 * Makefile.in: Rebuilt.
4912 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4914 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4915 cast of the second argument to `ffi_raw_call' changed to match
4918 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4920 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4921 argument to `ffi_raw_call' changed to match prototype.
4923 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4925 * java/awt/Component.java (toString): Implemented.
4926 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4927 dispatchEvent() to dispatch the event.
4928 (removeImpl): Ditto.
4930 2000-07-30 Anthony Green <green@redhat.com>
4932 * java/awt/Component.java: Add treeLock object.
4933 (getTreeLock): Implement.
4934 (isShowing): Implement.
4936 2000-07-30 Tom Tromey <tromey@cygnus.com>
4938 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4940 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4942 * java/awt/Window.java (addNotify): Wrote.
4943 (addWindowListener): Wrote.
4945 (getWarningString): Wrote.
4946 (processEvent): Wrote.
4947 (processWindowEvent): Wrote.
4948 (removeWindowListener): Wrote.
4949 (show): Call validate(), setVisible().
4953 * java/awt/Toolkit.java (createWindow): Declare.
4955 * java/awt/Frame.java (addNotify): Use getToolkit to find
4958 * java/awt/Component.java (invalidate): Wrote.
4960 (getToolkit): Wrote.
4962 * java/awt/Container.java (addContainerListener): Removed
4964 (removeContainerListener): Likewise.
4966 (add(Component)): Use it.
4967 (add(String,Component)): Likewise.
4968 (add(Component,int)): Likewise.
4969 (add(Component,Object)): Likewise.
4970 (add(Component,Object,int)): Likewise.
4972 (getAlignmentX): Wrote.
4973 (getAlignmentY): Wrote.
4974 (getComponentAt): Wrote.
4975 (getMaximumSize): Wrote.
4976 (invalidate): Wrote.
4977 (list(PrintStream,int)): Wrote.
4978 (list(PrintWriter,int)): Wrote.
4979 (getMinimumSize): Wrote.
4980 (getPreferredSize): Wrote.
4981 (printComponents): Wrote.
4982 (processContainerEvent): Look at containerListener, not
4984 (remove): Added event processing and peer destruction.
4985 (removeAll): Use remove.
4986 (removeNotify): Wrote.
4988 (validateTree): Wrote.
4990 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4991 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4992 * java/awt/Container.java (addNotify): Don't create Container
4994 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4996 2000-07-30 Tom Tromey <tromey@cygnus.com>
4998 * java/awt/Container.java (remove(int)): Wrote.
4999 (remove(Component)): Wrote.
5000 (add(Component)): Wrote.
5001 (add(Component,int)): Wrote.
5003 (addNotify): Set our own peer.
5004 * java/awt/Scrollbar.java (listeners): Changed type.
5005 (Scrollbar): Don't initialize listeners.
5007 (setValue): Call setValues.
5008 (setMinimum): Likewise.
5009 (setMaxPriority): Likewise.
5010 (setVisibleAmount): Likewise.
5012 (setUnitIncrement): Forward to peer.
5013 (setLineIncrement): Call setUnitIncrement.
5014 (setPageIncrement): Call setBlockIncrement.
5015 (setBlockIncrement): Forward to peer.
5016 (addAdjustmentListener): Rewrote.
5017 (removeAdjustmentListener): Rewrote.
5018 (processAdjustmentEvent): Rewrote.
5019 (paramString): Wrote.
5020 * Makefile.in: Rebuilt.
5021 * Makefile.am (awt_java_source_files): Added Button.java.
5022 * java/awt/Button.java: New file.
5023 * java/awt/Toolkit.java (createLabel): Declare.
5024 (createButton): Likewise.
5025 (createScrollbar): Likewise.
5026 (createContainer): Likewise.
5027 * java/awt/Label.java (addNotify): Wrote.
5028 (setAlignment): Call setAlignment in the peer.
5029 (setText): Call setText in the peer.
5031 2000-07-28 Warren Levy <warrenl@cygnus.com>
5033 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5034 NotSerializableException with just the class name.
5036 2000-07-26 Andrew Haley <aph@cygnus.com>
5038 * interpret.cc (continue1): Insert missing break into switch.
5040 2000-07-28 Warren Levy <warrenl@cygnus.com>
5042 * java/io/ObjectStreamException.java: Made constructors protected.
5044 2000-07-27 Tom Tromey <tromey@cygnus.com>
5046 * java/io/OutputStreamWriter.java (close): Only flush if not
5049 2000-07-27 Warren Levy <warrenl@cygnus.com>
5051 * mauve-libgcj: Activated serialization tests.
5052 * gcj/field.h (getModifiers): Mask off unknown flags.
5053 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5054 spurious bits don't cause discrepancies.
5055 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5056 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5057 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5058 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5059 * java/lang/Throwable.java (serialVersionUID): New field.
5060 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5061 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5063 * java/lang/reflect/natMethod.cc: Ditto.
5064 * java/security/Key.java (serialVersionUID): Removed field for now.
5065 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5066 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5068 2000-07-22 Tom Tromey <tromey@cygnus.com>
5070 * java/awt/geom/RectangularShape.java (getPathIterator):
5073 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5075 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5076 stub libjava/java/awt/ColorModel.java which was located in the
5078 * libjava/java/awt/image/ComponentColorModel.java: New file.
5079 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5080 * libjava/java/awt/image/DataBuffer.java: New file.
5081 * libjava/java/awt/image/DataBufferByte.java: New file.
5082 * libjava/java/awt/image/DataBufferInt.java: New file.
5083 * libjava/java/awt/image/DataBufferUShort.java: New file.
5084 * libjava/java/awt/image/DirectColorModel.java: New file.
5085 * libjava/java/awt/image/PackedColorModel.java: New file.
5086 * libjava/java/awt/image/Raster.java: New file.
5087 * libjava/java/awt/image/SampleModel.java: New file.
5088 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5090 * libjava/java/awt/image/IndexColorModel.java: New file.
5091 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5092 java.awt.ColorModel stub.
5094 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5095 * gnu/gcj/util/Buffers.java: New file, utility class.
5097 * libjava/Makefile.am: Updated to include new files.
5098 * libjava/Makefile.in: Rebuilt.
5100 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5102 * java/io/StreamTokenizer.java: Merged with classpath.
5104 2000-07-20 Tom Tromey <tromey@cygnus.com>
5106 * Makefile.in: Rebuilt.
5107 * Makefile.am (awt_java_source_files): Updated for new files.
5108 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5109 * java/awt/Label.java: New file.
5110 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5111 (createIntersection, createUnion, getBounds2D): New methods.
5112 * java/awt/Scrollbar.java: New file.
5113 * java/awt/Shape.java: Updated to 1.2.
5114 * java/awt/geom/AffineTransform.java: New file.
5115 * java/awt/geom/Ellipse2D.java: New file.
5116 * java/awt/geom/NoninvertibleTransformException.java: New file.
5117 * java/awt/geom/PathIterator.java: New file.
5118 * java/awt/geom/Rectangle2D.java: New file.
5119 * java/awt/geom/RectangularShape.java: New file.
5120 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5121 * java/awt/geom/IllegalPathStateException.java: New file.
5123 * scripts/showval.java: New file.
5125 * scripts/classes.pl (scan): Print inner classes properly.
5126 * gcj/javaprims.h: Updated class list.
5128 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5129 initialize String fields for interpreted classes. Fixes bug
5130 reported by Hans Boehm.
5132 * java/io/File.java (getParentFile): New method, from Classpath
5133 via Oskar Liljeblad.
5135 * java/util/Vector.java (remove(Object)): Implemented.
5137 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5139 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5140 zero return from backtrace().
5142 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5144 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5146 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5147 before calling notifyAll().
5149 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5151 Add missing files from last check-in:
5152 * java/awt/image/ImageConsumer.java: New file.
5153 * java/awt/image/ImageProducer.java: New file.
5154 * java/awt/image/ImageObserver.java: New file.
5156 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5158 Merged implementation of java.applet from classpath:
5159 * java/applet/Applet.java: New file.
5160 * java/applet/AppletContext.java: New file.
5161 * java/applet/AppletStub.java: New file.
5162 * java/applet/AudioClip.java: New file.
5164 * Makefile.am: Added new java.applet classes.
5165 * Makefile.in: Rebuilt.
5167 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5170 * java/util/ResourceBundle.java (getLocale): stub.
5171 * Makefile.am: Added new AWT classes.
5172 * Makefile.in: Rebuilt.
5173 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5174 constructors. Fix toString() and paramString().
5175 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5176 * java/awt/CheckboxGroup.java: New class.
5177 * java/awt/ColorModel.java: New class.
5178 * java/awt/Component.java: Added stubs for most methods. Implemented
5180 * java/awt/Container.java: ditto.
5181 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5182 * java/awt/Cursor.java: ditto.
5183 * java/awt/Event.java: Fix paramString().
5184 * java/awt/EventQueue.java: New class. Implemented.
5185 * java/awt/Font.java: Added additional stub methods. Implemented
5187 * java/awt/FontMetrics.java: New class. Stubbed.
5188 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5190 * java/awt/Insets.java: New class. Implemented.
5191 * java/awt/Menu.java: Add new methods. Partially implemented.
5192 * java/awt/MenuItem.java: Add new methods and fields. Partially
5194 * java/awt/MenuShortcut.java: New class. Implemented.
5195 * java/awt/Panel.java: New class. Placeholder.
5196 * java/awt/PopupMenu.java: New class. Stubbed.
5197 * java/awt/Rectangle.java: New class. Implemented.
5198 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5199 * java/awt/event/ActionEvent.java: Implement paramString().
5200 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5201 * java/awt/event/ComponentEvent.java: Implement paramString().
5202 * java/awt/event/ContainerEvent.java: Implement paramString().
5203 * java/awt/event/FocusEvent.java: Implement paramString().
5204 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5205 * java/awt/event/HierarchyBoundsListener.java: New class.
5206 * java/awt/event/HierarchyEvent.java: New class.
5207 * java/awt/event/HierarchyListener.java: New class.
5208 * java/awt/event/InputMethodEvent.java: Implement paramString().
5209 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5210 exception if !catchExceptions.
5211 * java/awt/event/ItemEvent.java: Implement paramString().
5212 * java/awt/event/KeyEvent.java: Implement paramString().
5213 * java/awt/event/MouseEvent.java: Implement paramString().
5214 * java/awt/event/PaintEvent.java: Implement paramString().
5215 * java/awt/event/TextEvent.java: Implement paramString().
5216 * java/awt/event/WindowEvent.java: Implement paramString().
5218 AWT Peer interfaces:
5219 * java/awt/peer/ButtonPeer.java: New file.
5220 * java/awt/peer/ListPeer.java: New file.
5221 * java/awt/peer/CanvasPeer.java: New file.
5222 * java/awt/peer/MenuBarPeer.java: New file.
5223 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5224 * java/awt/peer/MenuComponentPeer.java: New file.
5225 * java/awt/peer/CheckboxPeer.java: New file.
5226 * java/awt/peer/MenuItemPeer.java: New file.
5227 * java/awt/peer/ChoicePeer.java: New file.
5228 * java/awt/peer/MenuPeer.java: New file.
5229 * java/awt/peer/ComponentPeer.java: Implemented.
5230 * java/awt/peer/PanelPeer.java: New file.
5231 * java/awt/peer/ContainerPeer.java: Implemented.
5232 * java/awt/peer/PopupMenuPeer.java: New file.
5233 * java/awt/peer/DialogPeer.java: New file.
5234 * java/awt/peer/ScrollPanePeer.java: New file.
5235 * java/awt/peer/FileDialogPeer.java: New file.
5236 * java/awt/peer/ScrollbarPeer.java: New file.
5237 * java/awt/peer/FontPeer.java: New file.
5238 * java/awt/peer/TextAreaPeer.java: New file.
5239 * java/awt/peer/FramePeer.java: Implemented.
5240 * java/awt/peer/TextComponentPeer.java: New file.
5241 * java/awt/peer/LabelPeer.java: New file.
5242 * java/awt/peer/TextFieldPeer.java: New file.
5243 * java/awt/peer/LightweightPeer.java: New file.
5244 * java/awt/peer/WindowPeer.java: Implemented.
5246 2000-07-06 Tom Tromey <tromey@cygnus.com>
5248 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5249 Initialize static final String fields.
5251 2000-07-03 Tom Tromey <tromey@cygnus.com>
5253 * java/io/PrintWriter.java (print): Call write(String), not
5254 print(String). See PR libgcj/277.
5255 (print(String)): Use write, not out.write.
5257 2000-06-30 Tom Tromey <tromey@cygnus.com>
5259 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5261 2000-06-27 Andrew Haley <aph@cygnus.com>
5263 * java/io/File.java (createTempFile): Close the FileDescriptor
5264 used to create a temp file. Fixes some of PR 203.
5265 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5266 collection if we run out of file handles.
5268 2000-06-28 Warren Levy <warrenl@cygnus.com>
5270 * gnu/java/security/provider/Gnu.java: New file.
5271 * gnu/java/security/provider/SHA.java: New file.
5272 * gnu/java/security/provider/SHA1PRNG.java: New file.
5273 * Makefile.am: Added the above files.
5274 * Makefile.in: Rebuilt.
5276 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5278 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5280 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5281 (destroyed_flag): Removed.
5282 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5283 (activeCount): Added spec note.
5285 2000-06-27 Warren Levy <warrenl@cygnus.com>
5287 * java/security/Principal.java: New file.
5288 * Makefile.am: Added Principal.java.
5289 * Makefile.in: Rebuilt.
5291 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5293 * java/awt/event/MouseEvent.java: Fixed coordinate space
5296 2000-06-27 Tom Tromey <tromey@cygnus.com>
5298 * java/io/PushbackInputStream.java (read): If there are characters
5299 in the buffer, don't also call super.read().
5300 * java/io/PushbackReader.java (read): If there are characters in
5301 the buffer, don't also call super.read().
5303 * java/lang/Double.java (valueOf): Call parseDouble().
5305 2000-06-26 Warren Levy <warrenl@cygnus.com>
5307 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5308 (newVal): Renamed to newValue.
5309 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5310 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5311 (revokeNow): Renamed to invalidateRefs.
5312 * java/io/OptionalDataException.java: Updated FIXME.
5313 (eof): New placeholder field.
5315 * java/io/WriteAbortedException.java (message): Made transient.
5316 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5317 * java/lang/Throwable.java (stackTrace): Made transient.
5318 * java/net/InetAddress.java: Made Serializable.
5319 * java/security/KeyPair.java: Made Serializable.
5320 * java/security/Provider.java: Replaced with Classpath version that
5321 implements serialization and proper methods.
5322 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5323 (limits): Renamed to choiceLimits.
5325 2000-06-24 Tom Tromey <tromey@cygnus.com>
5327 * java/lang/natDouble.cc (parseDouble): Renamed from
5329 * java/lang/Double.java (parseDouble): Renamed from
5330 doubleValueOf. Now public.
5332 2000-06-23 Andrew Haley <aph@cygnus.com>
5334 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5335 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5337 2000-06-23 Tom Tromey <tromey@cygnus.com>
5339 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5340 * java/lang/natDouble.cc: Always include <alloca.h>.
5341 Fix for PR libgcj/267.
5343 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5345 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5346 comply with classpath VM spec.
5347 (add(Group)): Rename to addGroup().
5348 * java/lang/Thread.java (Thread): Use addThread().
5349 * java/lang/natThread.cc (finish_): Use removeThread().
5351 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5353 * java/lang/ThreadGroup.java: Merged with classpath.
5354 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5355 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5357 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5358 ThreadGroup.root if Thread.currentThread is null. Honour the
5359 ThreadGroup's max priority setting.
5361 2000-06-18 Tom Tromey <tromey@cygnus.com>
5363 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5364 returned class. For PR gcj/260.
5366 2000-06-16 Tom Tromey <tromey@cygnus.com>
5368 Fix for PR libgcj/261:
5369 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5371 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5372 argument. (This is a patch from long ago that somehow went
5375 2000-06-15 Tom Tromey <tromey@cygnus.com>
5377 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5381 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5383 Fix for PR java.lang/258:
5384 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5385 JV_STATE_DONE, to prevent accidental initialization.
5386 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5387 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5388 interface or an abstract class. Remove redundant initializeClass calls.
5389 Remove duplicate if_idt test.
5390 (_Jv_InterfaceAssignableFrom): New function.
5391 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5393 2000-05-31 Tom Tromey <tromey@cygnus.com>
5395 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5396 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5397 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5398 (NUM_OBJECT_METHODS): New define.
5399 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5400 `array_vtable' parameter. Added assertion.
5401 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5404 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5406 * gcj/cni.h: Include <string.h>.
5407 * defineclass.cc: Include <alloca.h>.
5408 * interpret.cc: Ditto.
5409 * gij.cc: Include <stdlib.h>.
5411 2000-05-30 Tom Tromey <tromey@cygnus.com>
5413 * include/name-finder.h: Include <sys/wait.h>.
5414 (_Jv_name_finder::pid): Now of type `pid_t'.
5415 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5416 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5419 2000-05-24 Warren Levy <warrenl@cygnus.com>
5421 * java/io/ObjectOutputStream.java (writeObject): Use component type
5422 when writing arrays.
5425 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5427 Fix for PR libgcj/226:
5428 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5429 since this is an installed header.
5431 Fix for PR libgcj/228:
5432 * java/util/zip/ZipFile (getInputStream): Create inflater with
5435 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5436 with DataFormatException.
5438 2000-05-20 Tom Tromey <tromey@cygnus.com>
5440 * Makefile.in: Rebuilt.
5441 * Makefile.am (hack1): Removed.
5442 (awto_files): Likewise.
5443 (libgcjawt_la_SOURCES): Likewise.
5444 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5445 (libgcjawt_la_DEPENDENCIES): Likewise.
5446 (libgcjawt_la_LIBADD): Likewise.
5447 (libgcjawt_la_LDFLAGS): Likewise.
5448 (libgcjawt_la_LINK): Likewise.
5449 ($(awt_java_source_files:.java=.class)): Likewise.
5450 (libgcj.zip): Don't depend on AWT files.
5451 (MOSTLYCLEANFILES): Don't include AWT files.
5452 ($(awto_files)): Removed.
5453 (nat_headers): Removed AWT files.
5454 (cond_awt_java_source_files): Removed.
5455 (ordinary_java_source_files): Added awt_java_source_files.
5456 * libgcj.spec.in (*lib): Removed -lgcjawt.
5457 * configure: Rebuilt.
5458 * configure.in: Removed --enable-java-awt option.
5460 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5462 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5463 (ZipEntry): Copy the `name' field.
5464 (clone): Implement JDK1.2 method.
5465 (setCompressedSize): ditto.
5468 2000-05-19 Tom Tromey <tromey@cygnus.com>
5470 * java/io/BufferedWriter.java: Merged with Classpath.
5471 * java/io/BufferedOutputStream.java: Merged with Classpath.
5473 2000-05-16 Andrew Haley <aph@cygnus.com>
5475 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5476 build_ia64_frame_state.
5477 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5480 2000-05-15 Warren Levy <warrenl@cygnus.com>
5482 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5483 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5484 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5485 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5486 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5487 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5488 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5489 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5490 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5491 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5492 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5493 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5494 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5495 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5496 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5497 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5498 * gnu/gcj/io/NullOutputStream.java: Removed.
5499 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5500 * gnu/gcj/lang/ArrayHelper.java: Removed.
5501 * gnu/gcj/lang/ClassHelper.java: Removed.
5502 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5504 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5505 * gnu/java/beans/EmptyBeanInfo.java: New file.
5506 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5507 * gnu/java/beans/IntrospectionIncubator.java: New file.
5508 * gnu/java/beans/editors/ColorEditor.java: New file.
5509 * gnu/java/beans/editors/FontEditor.java: New file.
5510 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5511 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5512 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5513 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5514 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5515 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5516 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5517 * gnu/java/beans/editors/StringEditor.java: New file.
5518 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5519 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5520 * gnu/java/io/NullOutputStream.java: New file.
5521 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5522 * gnu/java/lang/ArrayHelper.java: New file.
5523 * gnu/java/lang/ClassHelper.java: New file.
5524 * gnu/java/lang/reflect/TypeSignature.java: New file.
5526 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5527 namespace back to the original Classpath gnu/java namespace.
5528 * Makefile.in: Rebuilt.
5530 * java/beans/Beans.java: Namespace change.
5531 * java/beans/EventSetDescriptor.java: Namespace change.
5532 * java/beans/Introspector.java: Namespace change.
5533 * java/beans/PropertyEditorManager.java: Namespace change.
5534 * java/io/ObjectInputStream.java: Namespace change.
5535 * java/io/ObjectOutputStream.java: Namespace change.
5536 * java/io/ObjectStreamClass.java: Namespace change.
5537 * java/io/ObjectStreamField.java: Namespace change.
5539 2000-04-21 Warren Levy <warrenl@cygnus.com>
5541 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5542 now that compiler patch is available.
5543 Removed unneeded System.loadLibrary.
5544 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5545 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5547 2000-04-19 Andrew Haley <aph@cygnus.com>
5549 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5550 and target classes have been initialized.
5552 2000-04-19 Andrew Haley <aph@cygnus.com>
5554 * java/lang/String.java: implement Serializable, Comparable.
5555 (compareTo (Object)): New method.
5557 2000-04-19 Warren Levy <warrenl@cygnus.com>
5559 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5560 instead of getField to retrieve non-public field.
5561 (getSerialPersistantFields): Ditto.
5563 2000-04-18 Warren Levy <warrenl@cygnus.com>
5565 * mauve-libgcj: Turned off object serialization tests temporarily
5566 due to compiler error.
5568 2000-04-17 Warren Levy <warrenl@cygnus.com>
5570 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5571 to avoid build problem.
5573 * mauve-libgcj: Turned on object serialization tests.
5575 2000-04-17 Tom Tromey <tromey@cygnus.com>
5577 * libgcj.spec.in (*lib): Added -lgcjawt.
5579 2000-04-17 Andrew Haley <aph@cygnus.com>
5581 * Makefile.am: Add new files:
5582 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5584 * Makefile.in: Rebuilt.
5586 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5587 interface that has no implementations.
5588 Check for an attempt to assign an abstract class to an interface.
5590 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5591 if we fail to find MessageDigest.getInstance ("SHA").
5593 * gnu/gcj/io/SimpleSHSStream.java: New file.
5594 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5595 * gnu/gcj/io/shs.cc: New file.
5596 * gnu/gcj/io/shs.h: new file.
5598 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5601 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5602 punctuation from the classname of an array element.
5604 * gcj/javaprims.h: Add SimpleDigestStream.
5606 2000-04-17 Andrew Haley <aph@cygnus.com>
5608 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5609 to getPrivateField for superclasses.
5611 2000-04-14 Andrew Haley <aph@cygnus.com>
5613 * Makefile.am: Add new files:
5614 java/io/ObjectOutputStream$PutField.h,
5615 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5616 java/io/natObjectOutputStream.cc
5617 * Makefile.in: Rebuilt.
5618 * gcj/Makefile.in: Rebuilt.
5619 * include/Makefile.in: Rebuilt.
5620 * java/lang/Class.h (getPrivateField): New method.
5621 (getPrivateMethod): Ditto.
5622 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5623 and java::io::ObjectStreamClass our friends.
5624 * java/lang/natClass.cc (getPrivateField): New method.
5625 (getPrivateMethod): Ditto.
5626 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5627 * gcj/javaprims.h: Add serialization classes.
5628 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5629 (setByteField): Ditto.
5630 (setCharField): Ditto.
5631 (setDoubleField): Ditto.
5632 (setFloatField): Ditto.
5633 (setIntField): Ditto.
5634 (setLongField): Ditto.
5635 (setShortField): Ditto.
5636 (setObjectField): Ditto.
5637 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5639 (getByteField): Ditto.
5640 (getCharField): Ditto.
5641 (getDoubleField): Ditto.
5642 (getFloatField): Ditto.
5643 (getIntField): Ditto.
5644 (getLongField): Ditto.
5645 (getShortField): Ditto.
5646 (getObjectField): Ditto.
5647 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5649 (getSerialPersistantFields): Ditto.
5650 (getDefinedSUID): Ditto.
5651 * java/io/natObjectOutputStream.cc: New file.
5652 * java/io/natObjectInputStream.cc: New file.
5654 2000-04-13 Warren Levy <warrenl@cygnus.com>
5656 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5657 problems. Revert to previous version to reproduce and when fixed.
5659 2000-04-13 Warren Levy <warrenl@cygnus.com>
5661 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5662 * gnu/gcj/io/NullOutputStream.java: New file.
5663 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5664 * java/io/BlockDataException.java: New file.
5665 * java/io/Externalizable.java: New file.
5666 * java/io/InvalidClassException.java: New file.
5667 * java/io/InvalidObjectException.java: New file.
5668 * java/io/NotActiveException.java: New file.
5669 * java/io/NotSerializableException.java: New file.
5670 * java/io/ObjectInput.java: New file.
5671 * java/io/ObjectInputStream.java: New file.
5672 * java/io/ObjectInputValidation.java: New file.
5673 * java/io/ObjectOutput.java: New file.
5674 * java/io/ObjectOutputStream.java: New file.
5675 * java/io/ObjectStreamClass.java: New file.
5676 * java/io/ObjectStreamConstants.java: New file.
5677 * java/io/ObjectStreamField.java: New file.
5678 * java/io/Replaceable.java: New file.
5679 * java/io/Resolvable.java: New file.
5680 * java/io/SerializablePermission.java: New file.
5681 * java/io/WriteAbortedException.java: New file.
5682 * java/security/BasicPermission.java: New file.
5683 * java/security/DigestOutputStream.java: New file.
5684 * java/security/Guard.java: New file.
5685 * java/security/Permission.java: New file.
5686 * java/security/PermissionCollection.java: New file.
5687 * Makefile.am: Added above files.
5688 * Makefile.in: Rebuilt.
5690 * java/beans/Beans.java (instantiate): Activated serialization code.
5691 * java/lang/SecurityManager.java (checkPermission): New method.
5693 2000-04-12 Warren Levy <warrenl@cygnus.com>
5695 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5696 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5697 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5698 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5699 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5700 * gnu/gcj/beans/editors/FontEditor.java: New file.
5701 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5702 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5703 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5704 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5705 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5706 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5707 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5708 * gnu/gcj/beans/editors/StringEditor.java: New file.
5709 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5710 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5711 * gnu/gcj/lang/ArrayHelper.java: New file.
5712 * gnu/gcj/lang/ClassHelper.java: New file.
5713 * java/beans/BeanDescriptor.java: New file.
5714 * java/beans/BeanInfo.java: New file.
5715 * java/beans/Beans.java: New file.
5716 * java/beans/Customizer.java: New file.
5717 * java/beans/DesignMode.java: New file.
5718 * java/beans/EventSetDescriptor.java: New file.
5719 * java/beans/FeatureDescriptor.java: New file.
5720 * java/beans/IndexedPropertyDescriptor.java: New file.
5721 * java/beans/IntrospectionException.java: New file.
5722 * java/beans/Introspector.java: New file.
5723 * java/beans/MethodDescriptor.java: New file.
5724 * java/beans/ParameterDescriptor.java: New file.
5725 * java/beans/PropertyChangeEvent.java: New file.
5726 * java/beans/PropertyChangeListener.java: New file.
5727 * java/beans/PropertyChangeSupport.java: New file.
5728 * java/beans/PropertyDescriptor.java: New file.
5729 * java/beans/PropertyEditor.java: New file.
5730 * java/beans/PropertyEditorManager.java: New file.
5731 * java/beans/PropertyEditorSupport.java: New file.
5732 * java/beans/PropertyVetoException.java: New file.
5733 * java/beans/SimpleBeanInfo.java: New file.
5734 * java/beans/VetoableChangeListener.java: New file.
5735 * java/beans/VetoableChangeSupport.java: New file.
5736 * java/beans/Visibility.java: New file.
5737 * java/beans/beancontext/BeanContext.java: New file.
5738 * java/beans/beancontext/BeanContextChild.java: New file.
5739 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5740 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5741 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5742 * java/beans/beancontext/BeanContextEvent.java: New file.
5743 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5744 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5745 * java/beans/beancontext/BeanContextProxy.java: New file.
5746 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5748 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5749 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5751 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5752 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5754 * java/beans/beancontext/BeanContextServices.java: New file.
5755 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5756 * java/util/AbstractCollection.java: New file.
5757 * java/util/AbstractList.java: New file.
5758 * java/util/Arrays.java: New file.
5759 * Makefile.am: Added above files.
5760 * Makefile.in: Rebuilt.
5762 2000-04-11 Warren Levy <warrenl@cygnus.com>
5764 * java/awt/AWTError.java: New file.
5765 * java/awt/AWTEvent.java: New file.
5766 * java/awt/AWTException.java: New file.
5767 * java/awt/ActiveEvent.java: New file.
5768 * java/awt/Adjustable.java: New file.
5769 * java/awt/BorderLayout.java: New file.
5770 * java/awt/Color.java: New file.
5771 * java/awt/Component.java: New file.
5772 * java/awt/Container.java: New file.
5773 * java/awt/Dimension.java: New file.
5774 * java/awt/Event.java: New file.
5775 * java/awt/Font.java: New file.
5776 * java/awt/Frame.java: New file.
5777 * java/awt/Graphics.java: New file.
5778 * java/awt/IllegalComponentStateException.java: New file.
5779 * java/awt/Image.java: New file.
5780 * java/awt/ItemSelectable.java: New file.
5781 * java/awt/LayoutManager.java: New file.
5782 * java/awt/LayoutManager2.java: New file.
5783 * java/awt/Menu.java: New file.
5784 * java/awt/MenuBar.java: New file.
5785 * java/awt/MenuComponent.java: New file.
5786 * java/awt/MenuContainer.java: New file.
5787 * java/awt/MenuItem.java: New file.
5788 * java/awt/Paint.java: New file.
5789 * java/awt/PaintContext.java: New file.
5790 * java/awt/Point.java: New file.
5791 * java/awt/Rectangle.java: New file.
5792 * java/awt/Shape.java: New file.
5793 * java/awt/TextArea.java: New file.
5794 * java/awt/TextComponent.java: New file.
5795 * java/awt/Toolkit.java: New file.
5796 * java/awt/Transparency.java: New file.
5797 * java/awt/Window.java: New file.
5798 * java/awt/natToolkit.cc: New file.
5799 * java/awt/event/AWTEventListener.java: New file.
5800 * java/awt/event/ActionEvent.java: New file.
5801 * java/awt/event/ActionListener.java: New file.
5802 * java/awt/event/AdjustmentEvent.java: New file.
5803 * java/awt/event/AdjustmentListener.java: New file.
5804 * java/awt/event/ComponentAdapter.java: New file.
5805 * java/awt/event/ComponentEvent.java: New file.
5806 * java/awt/event/ComponentListener.java: New file.
5807 * java/awt/event/ContainerAdapter.java: New file.
5808 * java/awt/event/ContainerEvent.java: New file.
5809 * java/awt/event/ContainerListener.java: New file.
5810 * java/awt/event/FocusAdapter.java: New file.
5811 * java/awt/event/FocusEvent.java: New file.
5812 * java/awt/event/FocusListener.java: New file.
5813 * java/awt/event/InputEvent.java: New file.
5814 * java/awt/event/InputMethodEvent.java: New file.
5815 * java/awt/event/InputMethodListener.java: New file.
5816 * java/awt/event/InvocationEvent.java: New file.
5817 * java/awt/event/ItemEvent.java: New file.
5818 * java/awt/event/ItemListener.java: New file.
5819 * java/awt/event/KeyAdapter.java: New file.
5820 * java/awt/event/KeyEvent.java: New file.
5821 * java/awt/event/KeyListener.java: New file.
5822 * java/awt/event/MouseAdapter.java: New file.
5823 * java/awt/event/MouseEvent.java: New file.
5824 * java/awt/event/MouseListener.java: New file.
5825 * java/awt/event/MouseMotionAdapter.java: New file.
5826 * java/awt/event/MouseMotionListener.java: New file.
5827 * java/awt/event/PaintEvent.java: New file.
5828 * java/awt/event/TextEvent.java: New file.
5829 * java/awt/event/TextListener.java: New file.
5830 * java/awt/event/WindowAdapter.java: New file.
5831 * java/awt/event/WindowEvent.java: New file.
5832 * java/awt/event/WindowListener.java: New file.
5833 * java/awt/geom/Dimension2D.java: New file.
5834 * java/awt/geom/Point2D.java: New file.
5835 * java/awt/peer/ComponentPeer.java: New file.
5836 * java/awt/peer/ContainerPeer.java: New file.
5837 * java/awt/peer/FramePeer.java: New file.
5838 * java/awt/peer/WindowPeer.java: New file.
5839 * java/util/Collection.java: New file.
5840 * java/util/Comparator.java: New file.
5841 * java/util/Iterator.java: New file.
5842 * java/util/List.java: New file.
5843 * java/util/ListIterator.java: New file.
5844 * Makefile.am: Added above files.
5845 * Makefile.in: Rebuilt.
5847 2000-04-10 Warren Levy <warrenl@cygnus.com>
5849 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5850 * java/lang/FirstThread.java: Ditto.
5851 * java/lang/StringBuffer.java: Ditto.
5852 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5854 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5855 Special case handled in java.math.BigInteger.
5856 * java/math/BigInteger.java (divide): Handle the special case when
5857 dividing by 1 and the high bit of the dividend is set.
5858 (setShiftRight): Handle case when count == 0.
5860 2000-04-05 Andrew Haley <aph@cygnus.com>
5862 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5865 2000-04-05 Andrew Haley <aph@cygnus.com>
5867 * sysdep/ia64.c (rse_address_add): Delete.
5868 (IS_NaT_COLLECTION_ADDR): Delete.
5869 (ia64_backtrace_helper): check for null unwind_info.
5871 * sysdep/ia64-frame.h: add calc_caller_bsp.
5873 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5876 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5877 (_Jv_remI): Likewise.
5878 (_Jv_divJ): Likewise.
5879 (_Jv_remJ): Likewise.
5881 * interpret.cc (continue1): Use divide subroutines to guarantee
5882 correct Java standard behaviour.
5883 Floating-point division should not abort; make it so.
5885 2000-03-29 Tom Tromey <tromey@cygnus.com>
5887 * configure: Rebuilt.
5888 * configure.in: Test against `libgcj_sjlj', not
5889 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5890 to be set even when using sjlj.
5892 2000-03-24 Andrew Haley <aph@cygnus.com>
5894 * Makefile.am: Add file addr2name.awk.
5895 * Makefile.in: Rebuilt.
5896 * addr2name.awk: New file.
5897 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5899 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5902 2000-03-22 Andrew Haley <aph@cygnus.com>
5904 * configure.host: Add -funwind-tables for IA64.
5905 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5906 * Makefile.in: Rebuilt.
5907 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5908 * sysdep/ia64.c: New file.
5909 * sysdep/ia64-frame.h: New file.
5910 * configure.in: Add sysdep/ia64.c for ia64.
5911 * configure: Rebuilt.
5913 2000-03-17 Andrew Haley <aph@cygnus.com>
5915 * java/lang/natString.cc: Remove `register' keyword.
5916 interpret.cc: ditto.
5918 2000-03-16 Andrew Haley <aph@cygnus.com>
5920 * configure.host (ia64): Enable interpreter.
5922 2000-03-14 Hans Boehm <boehm@acm.org>
5924 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5926 2000-03-14 Andrew Haley <aph@cygnus.com>
5928 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5931 2000-03-10 Andrew Haley <aph@cygnus.com>
5933 * java/lang/ieeefp.h: Import latest version from fdlibm.
5935 2000-03-14 Andrew Haley <aph@cygnus.com>
5937 * prims.cc (_Jv_ThrowSignal): New function.
5938 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5940 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5941 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5942 * include/ppc-signal.h: New file.
5944 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5946 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5947 * java/lang/natThread.java (initialize_native): Cast `data' to
5949 * gnu/gcj/RawData.java: Clarify documentation.
5951 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5952 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5953 `jarFile', not `jarFileURL'.
5955 2000-05-15 Andrew Haley <aph@cygnus.com>
5957 * include/ppc-signal.h: New file.
5959 2000-05-11 Tom Tromey <tromey@cygnus.com>
5961 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5962 file headers, don't include `size' in the skip call.
5964 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5966 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5967 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5969 (replace): Reimplemented. Fix javadoc.
5970 (reverse): Call ensureCapacity_unsynchronized().
5971 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5973 (replace): Calculate length for arraycopy() correctly.
5975 2000-05-09 Tom Tromey <tromey@cygnus.com>
5977 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5979 (insert(int,char[],int,int): New method.
5980 (delete): New method from Classpath.
5981 (deleteCharAt): Likewise.
5982 (substring): Likewise.
5983 (shared): No longer private.
5984 Added JavaDoc comments from Classpath.
5985 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5988 2000-05-07 Tom Tromey <tromey@cygnus.com>
5990 * Makefile.in: Rebuilt.
5991 * Makefile.am (LIBLINK): New macro.
5992 (libgcj_la_LINK): Use it.
5993 (libgcjawt_la_LINK): Likewise.
5995 2000-05-06 Tom Tromey <tromey@cygnus.com>
5997 * Makefile.in: Rebuilt.
5998 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6000 2000-05-05 Tom Tromey <tromey@cygnus.com>
6002 Fix for PR libgcj/220:
6003 * Makefile.in: Rebuilt.
6004 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6005 (jv_convert_LDFLAGS): Likewise.
6006 (libgcj_la_LDFLAGS): Likewise.
6007 (GCJLINK): New macro.
6008 (jv_convert_LINK): Use it.
6009 (gij_LINK): Likewise.
6010 (libgcj_la_LINK): New macro.
6011 (libgcjawt_la_LINK): Likewise.
6013 2000-05-04 Tom Tromey <tromey@cygnus.com>
6015 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6017 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6021 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6023 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6024 (_Jv_IsAssignableFrom): Ditto.
6025 (_Jv_IsInstanceOf): Ditto.
6026 (_Jv_CheckCast): Ditto.
6027 (_Jv_CheckArrayStore): Ditto.
6028 * java/lang/Class.h (_Jv_InitClass): Ditto.
6029 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6034 (_Jv_MonitorExit): Ditto.
6035 * boehm.cc (_Jv_MarkObj): Ditto.
6036 (_Jv_MarkObj): Ditto.
6037 (_Jv_MarkArray): Ditto.
6038 * prims.cc (_Jv_AllocObject): Ditto.
6039 (_Jv_NewObjectArray): Ditto.
6040 (_Jv_NewPrimArray): Ditto.
6041 (_Jv_Malloc): Ditto.
6042 (_Jv_Realloc): Ditto.
6043 (_Jv_MallocUnchecked): Ditto.
6049 2000-05-04 Tom Tromey <tromey@cygnus.com>
6051 * java/util/Locale.java (Locale): Don't explicitly check for
6053 * java/util/Hashtable.java (containsKey): Don't explicitly check
6056 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6058 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6060 * java/text/StringCharacterIterator.java
6061 (StringCharacterIterator): Don't check for null.
6062 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6064 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6065 check for null pointer.
6066 (leaveGroup): Likewise.
6067 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6069 (setData): Likewise.
6070 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6073 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6075 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6076 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6077 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6078 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6079 -rpath for in-gcc builds.
6080 * Makefile.in: Rebuilt.
6082 2000-04-28 Tom Tromey <tromey@cygnus.com>
6084 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6087 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6089 * libjava/java/lang/String.java (toString): Remove `final' hack.
6091 2000-04-05 Tom Tromey <tromey@cygnus.com>
6093 Runtime support for PR gcj/2:
6094 * prims.cc (_Jv_ThrowNullPointerException): New function.
6095 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6097 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6099 * prims.cc (_Jv_NewObjectArray): Fix typo.
6101 2000-04-26 Tom Tromey <tromey@cygnus.com>
6103 * Makefile.in: Rebuilt.
6104 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6106 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6108 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6111 2000-04-22 Anthony Green <green@cygnus.com>
6113 * include/jvm.h (__builtin_expect): Define as unused for now.
6114 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6118 (_Jv_MonitorExit): Ditto.
6119 * boehm.cc (_Jv_MarkObj): Ditto.
6120 (_Jv_MarkObj): Ditto.
6121 (_Jv_MarkArray): Ditto.
6122 (_Jv_AllocBytes): Ditto.
6123 * prims.cc (_Jv_AllocObject): Ditto.
6124 (_Jv_NewObjectArray): Ditto.
6125 (_Jv_NewPrimArray): Ditto.
6126 (_Jv_Malloc): Ditto.
6127 (_Jv_Realloc): Ditto.
6128 (_Jv_MallocUnchecked): Ditto.
6134 * include/Makefile.in: Rebuilt.
6135 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6137 2000-04-21 Tom Tromey <tromey@cygnus.com>
6139 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6140 Yet another new version from Classpath.
6142 Fix for PR libgcj/15:
6143 * java/util/natGregorianCalendar.cc (_REENTRANT,
6144 _POSIX_PTHREAD_SEMANTICS): Don't define.
6145 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6146 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6148 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6150 * configure: Rebuilt.
6151 * configure.in: If using POSIX threads, define _REENTRANT if
6152 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6153 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6155 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6156 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6157 version from Classpath.
6159 Fix for PR libgcj/213:
6160 * Makefile.in: Rebuilt.
6161 * Makefile.am (gij_SOURCES): Added gij.cc.
6162 (EXTRA_gij_SOURCES): Removed.
6163 (gij_LDADD): Removed gij.lo.
6164 (gij_DEPENDENCIES): Likewise.
6165 ($(gij_OBJECTS)): Depend on nat_headers.
6167 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6168 `setURL', not `url.set'.
6170 2000-04-20 Tom Tromey <tromey@cygnus.com>
6172 Fix for PR java.io/204:
6173 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6174 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6177 Fix for PR libgcj/212:
6178 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6179 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6180 * java/lang/Class.h (_Jv_word): Declare.
6182 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6184 2000-04-19 Tom Tromey <tromey@cygnus.com>
6186 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6187 doesn't have a loader.
6189 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6191 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6192 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6194 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6196 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6198 (available): Initialize `where' to prevent bogus compiler warning.
6200 2000-04-12 Tom Tromey <tromey@cygnus.com>
6202 * java/lang/natString.cc (intern): Temporarily disable finalizer
6205 * java/lang/natString.cc (unintern): Added `obj' argument.
6206 (intern): Register finalizer for string.
6207 * java/lang/String.java (unintern): Now static; added obj
6210 2000-04-11 Tom Tromey <tromey@cygnus.com>
6212 * java/util/Vector.java (VectorEnumeration): Now `final'.
6213 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6214 (HashtableEnumeration): Likewise.
6215 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6216 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6218 2000-04-10 Warren Levy <warrenl@cygnus.com>
6220 * java/io/ObjectStreamException.java: New file.
6221 * java/io/OptionalDataException.java: New file.
6222 * java/io/StreamCorruptedException.java: New file.
6223 * java/math/BigDecimal.java: New file.
6224 * java/sql/CallableStatement.java: New file.
6225 * java/sql/Connection.java: New file.
6226 * java/sql/DataTruncation.java: New file.
6227 * java/sql/DatabaseMetaData.java: New file.
6228 * java/sql/Date.java: New file.
6229 * java/sql/Driver.java: New file.
6230 * java/sql/DriverManager.java: New file.
6231 * java/sql/DriverPropertyInfo.java: New file.
6232 * java/sql/PreparedStatement.java: New file.
6233 * java/sql/ResultSet.java: New file.
6234 * java/sql/ResultSetMetaData.java: New file.
6235 * java/sql/SQLException.java: New file.
6236 * java/sql/SQLWarning.java: New file.
6237 * java/sql/Statement.java: New file.
6238 * java/sql/Time.java: New file.
6239 * java/sql/Timestamp.java: New file.
6240 * java/sql/Types.java: New file.
6241 * Makefile.am: Added above new files.
6242 * Makefile.in: Rebuilt.
6244 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6245 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6246 DatagramSocket constructor instead of null.
6248 2000-04-08 Anthony Green <green@cygnus.com>
6250 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6253 2000-04-08 Anthony Green <green@cygnus.com>
6255 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6256 (_Jv_MutexUnlock): Ditto.
6257 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6258 (_Jv_MutexUnlock): Ditto.
6260 2000-04-08 Anthony Green <green@cygnus.com>
6262 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6263 (ensureCapacity_unsynchronized): New private method.
6264 (append): Use ensureCapacity_unsynchronized.
6266 2000-04-08 Tom Tromey <tromey@cygnus.com>
6268 * Makefile.in: Rebuilt.
6269 * Makefile.am (awt_java_source_files): Added new files.
6270 * java/awt/IllegalComponentStateException.java: New file.
6271 * java/awt/ItemSelectable.java: New file.
6272 * java/awt/event/WindowEvent.java: Finished.
6273 * java/awt/event/TextEvent.java: Finished.
6274 * java/awt/event/ContainerEvent.java: New file.
6275 * java/awt/Component.java (getX, getY): New methods.
6276 * java/awt/event/PaintEvent.java: New file.
6277 * java/awt/event/MouseEvent.java: New file.
6278 * java/awt/ActiveEvent.java: New file.
6279 * java/awt/event/KeyEvent.java: Finished.
6280 * java/awt/event/ItemEvent.java: New file.
6281 * java/awt/Adjustable.java: New file.
6282 * java/awt/event/InputMethodEvent.java: New file.
6283 * java/awt/event/InputEvent.java: Finished.
6284 * java/awt/event/FocusEvent.java: New file.
6285 * java/awt/event/MouseMotionAdapter.java: New file.
6286 * java/awt/event/MouseAdapter.java: New file.
6287 * java/awt/event/KeyAdapter.java: New file.
6288 * java/awt/event/FocusAdapter.java: New file.
6289 * java/awt/event/ContainerAdapter.java: New file.
6290 * java/awt/event/ComponentEvent.java: Finished.
6291 * java/awt/event/AdjustmentEvent.java: New file.
6292 * java/awt/event/ComponentAdapter.java: New file.
6293 * java/awt/event/ActionEvent.java: Finished.
6294 * java/awt/event/MouseMotionListener.java: New file.
6295 * java/awt/event/MouseListener.java: New file.
6296 * java/awt/event/ItemListener.java: New file.
6297 * java/awt/event/InputMethodListener.java: New file.
6298 * java/awt/event/ContainerListener.java: New file.
6299 * java/awt/event/FocusListener.java: New file.
6300 * java/awt/event/ComponentListener.java: New file.
6301 * java/awt/event/AWTEventListener.java: New file.
6302 * java/awt/event/AdjustmentListener.java: New file.
6304 2000-04-08 Anthony Green <green@cygnus.com>
6306 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6307 check when we have to.
6309 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6312 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6315 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6316 inline hasMoreElements.
6318 2000-04-05 Tom Tromey <tromey@cygnus.com>
6320 * configure: Rebuilt.
6321 * configure.in: Recognize --enable-java-awt.
6322 (AWT): New conditional.
6323 * Makefile.in: Rebuilt.
6324 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6326 (libgcjawt_la_SOURCES): New macro.
6327 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6328 (libgcjawt_la_DEPENDENCIES): Likewise.
6329 (libgcjawt_la_LIBADD): Likewise.
6330 (libgcjawt_la_LDFLAGS): Likewise.
6331 (libgcj.zip): Depend on cond_java_awt_source_files
6332 (cond_awt_java_source_files): New macro.
6333 (MOSTLYCLEANFILES): Added awto_files.
6334 (awto_files): New macro. Use where javao_files used.
6335 (nat_headers): Use cond_awt_java_source_files.
6337 2000-04-04 Tom Tromey <tromey@cygnus.com>
6339 * Makefile.in: Rebuilt.
6340 * Makefile.am (awt_java_source_files): Added AWTException.java.
6341 * java/awt/AWTException.java: New file.
6343 2000-04-03 Tom Tromey <tromey@cygnus.com>
6345 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6346 commentary from Alex.
6348 * Makefile.in: Rebuilt.
6349 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6352 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6354 * configure: Rebuilt.
6355 * configure.in: Add --disable-jvmpi.
6356 * include/config.h.in: Rebuilt.
6357 * acconfig.h: Add ENABLE_JVMPI.
6359 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6360 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6361 (_Jv_JVMPI_Notify_THREAD_END): New define.
6362 (_Jv_JVMPI_Notify_THREAD_END): New define.
6363 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6364 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6365 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6367 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6370 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6371 (finish_): Generate JVMPI thread end events.
6372 (run_): Generate JVMPI thread start events.
6373 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6374 preloaded JNI library.
6375 Include JVMPI headers if necessary.
6376 (run): Generate JVMPI thread start events.
6378 * boehm.cc: Define GC_disable and GC_enable.
6379 (_Jv_DisableGC): New function.
6380 (_Jv_EnableGC): New function.
6381 (disable_gc_mutex): Declare.
6382 * nogc.cc (_Jv_DisableGC): New function.
6383 (_Jv_EnableGC): New function.
6385 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6386 (_Jv_JVMPI_Interface): Define.
6387 (jvmpiEnableEvent): New function.
6388 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6390 * include/jvmpi.h: New file.
6392 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6394 * Makefile.in: New #defines and friends for Thread.h.
6395 * Makefile.am: Ditto.
6396 * posix-threads.cc: (struct starter): Remove `object'.
6397 (_Jv_CondWait): Use interruptable condition variables and new
6398 recursive mutexes. New return codes on interrupt or non-ownership
6400 (_Jv_CondNotify): Ditto.
6401 (_Jv_CondNotifyAll): Ditto.
6402 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6403 the target thread by signaling its wait condition.
6404 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6405 not the starter struct. Initialize wait_mutex and wait_cond.
6406 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6408 (_Jv_MutexUnlock): Ditto.
6409 (really_start): Set info->data->thread from pthread_self() to work
6410 around a race condition. Destroy wait_mutex and wait_cond when run()
6412 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6413 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6415 startable_flag: New private field.
6416 (Thread): Initialize `startable_flag'.
6417 (toString): Check for null thread group.
6418 * java/lang/natThread.cc: (struct natThread): New fields
6419 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6420 (class locker): Removed.
6421 (initialize_native): Initialize `join_cond' and `join_mutex'.
6422 (interrupt): Now just calls _Jv_ThreadInterrupt().
6423 (join): Simplified. Just wait on the target thread's join condition.
6424 (finish_): Remove join list code. Unset thread group. Signal
6425 potential joiners by notifying the dying threads join_cond.
6426 (start): Check for illegal restarts.
6427 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6429 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6430 #defines and #ifdefs.
6431 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6432 `wait_mutex', `next'.
6433 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6434 directly mapping to pthread_cond_t.
6435 (struct _Jv_Mutex_t): New recursive implementation.
6436 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6437 _Jv_HaveCondDestroy: Never define this for posix-threads.
6438 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6439 (_Jv_CondNotifyAll): Ditto.
6440 (_Jv_MutexLock): Ditto.
6441 (_Jv_MutexUnlock): Ditto.
6442 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6443 (_Jv_MutexDestroy): Ditto.
6444 (_Jv_CondDestroy): Removed.
6445 (_Jv_PthreadGetMutex): Removed.
6446 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6447 error. Add a FIXME about this.
6448 (_Jv_CondNotifyAll): Ditto.
6449 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6450 _JV_NOT_OWNER on other errors. Add FIXME.
6452 2000-03-26 Tom Tromey <tromey@cygnus.com>
6454 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6456 (call): Don't throw exception here.
6458 2000-03-26 Tom Tromey <tromey@cygnus.com>
6460 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6461 * interpret.cc: Use SIZEOF_VOID_P.
6462 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6463 (_Jv_loadLong): Likewise.
6464 (_Jv_storeDouble): Likewise.
6465 * configure: Rebuilt.
6466 * configure.in: Check size of void*.
6468 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6470 2000-03-26 Hans Boehm <boehm@acm.org>
6472 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6473 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6475 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6476 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6477 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6478 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6480 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6481 (FFI_RAW_SIZE): Likewise.
6482 (_Jv_InterpMethod::ncode): Use them.
6483 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6484 STORED): Define differently on a 64 bit machine.
6485 (continue1): Use ffi_java_raw_call when appropriate.
6487 2000-03-24 Warren Levy <warrenl@cygnus.com>
6489 * java/math/BigInteger.java(divide): Handle the special case when
6490 dividing by 1 and the high bit of the dividend is set.
6491 (setShiftRight): Handle case when count == 0.
6493 2000-03-24 Warren Levy <warrenl@cygnus.com>
6495 * java/awt/Font.java(isBold): Fix syntax error.
6497 * java/awt/Frame.java(postEvent): ditto.
6498 * java/awt/Menu.java(postEvent): ditto.
6499 * java/awt/MenuBar.java(postEvent): ditto.
6500 * java/awt/Toolkit.java(init): Included a stub.
6502 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6504 * java/awt/Event.java: Add all the event type constants.
6505 (Event): Implemented constructors.
6506 (controlDown): Implemented.
6507 (metaDown): Implemented.
6508 (paramString): Stubbed.
6509 (shiftDown): Implemented.
6510 (toString): Implemented.
6511 (translate): Implemented.
6513 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6515 * java/lang/natClass.cc (isInstance): Initialize `this'.
6516 (isAssignableFrom): Initialize `this' and `klass'.
6517 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6518 implemented by any loaded class, so return false.
6519 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6520 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6522 2000-03-19 Warren Levy <warrenl@cygnus.com>
6524 * java/awt/Color.java: Specified java.io for Serializable.
6525 * java/awt/Toolkit.java: Imported java.net.URL.
6527 2000-03-19 Warren Levy <warrenl@cygnus.com>
6529 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6531 2000-03-16 Warren Levy <warrenl@cygnus.com>
6533 * java/awt/Color.java: New file.
6534 * java/awt/Graphics.java: New file.
6535 * java/awt/Image.java: New file.
6536 * java/awt/Paint.java: New file.
6537 * java/awt/PaintContext.java: New file.
6538 * java/awt/Transparency.java: New file.
6539 * java/util/Collection.java: New file.
6540 * java/util/Comparator.java: New file.
6541 * java/util/Iterator.java: New file.
6542 * java/util/List.java: New file.
6543 * java/util/ListIterator.java: New file.
6544 * Makefile.am: Added above new files.
6545 * Makefile.in: Rebuilt.
6547 * java/awt/Font.java (PLAIN): New field.
6549 (ITALIC): New field.
6550 (ROMAN_BASELINE): New field.
6551 (CENTER_BASELINE): New field.
6552 (HANGING_BASELINE): New field.
6556 (pointSize): New field.
6557 (Font): Implemented constructor.
6558 (isPlain): Implemented method.
6559 (isBold): Implemented method.
6560 (isItalic): Implemented method.
6561 (getName): Implemented method.
6562 (getStyle): Implemented method.
6563 (getSize): Implemented method.
6564 (getSize2D): Implemented method.
6566 * java/awt/Frame.java (getFont): Stubbed.
6567 (postEvent): Stubbed.
6569 * java/awt/Menu.java (postEvent): Stubbed.
6570 * java/awt/MenuBar.java (getFont): Stubbed.
6571 (postEvent): Stubbed.
6572 * java/awt/Toolkit.java (getImage): Added abstract method.
6574 2000-03-15 Tom Tromey <tromey@cygnus.com>
6576 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6578 * prims.cc (win32_exception_handler): Reformatted.
6580 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6581 (_Jv_HaveMutexDestroy): Likewise.
6583 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6585 * java/io/natFileDescriptorWin32.cc: New file.
6586 * java/io/natFileWin32.cc: New file.
6587 * java/net/natInetAddress.cc: Added conditional inclusion of
6588 Windows / Winsock headers.
6589 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6590 inclusion of Windows / Winsock headers.
6591 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6592 Windows / Winsock headers.
6593 * include/win32-signal.h: New file.
6594 * include/win32-threads.h: New file.
6595 * win32-threads.cc: New file.
6596 * exception.cc (win32_get_restart_frame): New function.
6597 * prims.cc (win32_exception_handler): New function.
6598 (main_init) Performs Winsock initialisation.
6599 (main_init) Installs exeception handler.
6601 2000-03-14 Tom Tromey <tromey@cygnus.com>
6603 * jni.cc (mangled_name): Fixed assertion.
6604 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6605 turned assert into actual failure.
6607 2000-03-09 Warren Levy <warrenl@cygnus.com>
6609 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6610 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6611 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6613 2000-03-09 Warren Levy <warrenl@cygnus.com>
6615 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6616 * java/security/DigestException.java: New file.
6617 * java/security/GeneralSecurityException.java: New file.
6618 * java/security/InvalidAlgorithmParameterException.java: New file.
6619 * java/security/InvalidKeyException.java: New file.
6620 * java/security/InvalidParameterException.java: New file.
6621 * java/security/Key.java: New file.
6622 * java/security/KeyException.java: New file.
6623 * java/security/KeyPair.java: New file.
6624 * java/security/KeyPairGenerator.java: New file.
6625 * java/security/KeyPairGeneratorSpi.java: New file.
6626 * java/security/NoSuchProviderException.java: New file.
6627 * java/security/PrivateKey.java: New file.
6628 * java/security/Provider.java: New file.
6629 * java/security/PublicKey.java: New file.
6630 * java/security/SecureRandom.java: New file.
6631 * java/security/Security.java: New file.
6632 * java/security/Signature.java: New file.
6633 * java/security/SignatureException.java: New file.
6634 * java/security/interfaces/DSAKey.java: New file.
6635 * java/security/interfaces/DSAParams.java: New file.
6636 * java/security/interfaces/DSAPrivateKey.java: New file.
6637 * java/security/interfaces/DSAPublicKey.java: New file.
6638 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6639 * java/security/interfaces/RSAPrivateKey.java: New file.
6640 * java/security/interfaces/RSAPublicKey.java: New file.
6641 * java/security/spec/AlgorithmParameterSpec.java: New file.
6642 * java/security/spec/InvalidKeySpecException.java: New file.
6643 * java/security/spec/InvalidParameterSpecException.java: New file.
6644 * java/security/spec/KeySpec.java: New file.
6645 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6646 * java/security/spec/RSAPrivateKeySpec.java: New file.
6647 * java/security/spec/RSAPublicKeySpec.java: New file.
6648 * Makefile.am: Added above java.security files.
6649 * Makefile.in: Rebuilt.
6651 * java/security/MessageDigest.java: Rewritten.
6652 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6654 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6658 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6660 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6661 _Jv_PrepareConstantTimeTables.
6662 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6663 classes should have an IDT, so don't return if klass is an array
6666 2000-03-08 Tom Tromey <tromey@cygnus.com>
6668 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6669 of `void' to be created.
6671 2000-03-08 Warren Levy <warrenl@cygnus.com>
6673 * java/math/BigInteger.java(signum): Handle zero properly.
6675 2000-03-07 Tom Tromey <tromey@cygnus.com>
6677 * All files: Updated copyright information.
6678 * COPYING: New file.
6679 * COPYING.LIB: Removed.
6680 * LIBGCJ_LICENSE: We now use GPL + special exception.
6682 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6684 * resolve.cc (_Jv_SearchMethodInClass): New function.
6685 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6686 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6688 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6690 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6691 (struct _Jv_ifaces): New declaration.
6692 JV_CLASS: New macro definition.
6693 (getComponentType): Relocate below isArray() for inlining.
6694 (getModifiers): Declare `inline'.
6695 (getSuperclass): Ditto.
6697 (isPrimitive): Ditto.
6698 (_Jv_IsAssignableFrom): New prototype.
6699 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6701 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6702 Check for JV_STATE_DONE before invoking initializeClass().
6703 (_Jv_PrepareConstantTimeTables): New prototype.
6704 (_Jv_GetInterfaces): Ditto.
6705 (_Jv_GenerateITable): Ditto.
6706 (_Jv_GetMethodString): Ditto.
6707 (_Jv_AppendPartialITable): Ditto.
6708 (_Jv_FindIIndex): Ditto.
6709 depth, ancestors, idt: New class fields.
6711 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6712 inline function `_Jv_IsAssignableFrom'. Use that function.
6713 (isInstance): Declare `inline'.
6714 (initializeClass): Get lock on class before checking `state'. Unlock
6715 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6717 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6718 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6719 class->depth and ancestor table.
6720 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6721 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6722 _Jv_IsAssignableFrom.
6723 (_Jv_CheckArrayStore): Ditto.
6724 (_Jv_LookupInterfaceMethodIdx): New function.
6725 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6726 (_Jv_PrepareConstantTimeTables): New function.
6727 (_Jv_IndexOf): Ditto.
6728 (_Jv_GetInterfaces): Ditto.
6729 (_Jv_GenerateITable): Ditto.
6730 (_Jv_GetMethodString): Ditto.
6731 (_Jv_AppendPartialITable): Ditto.
6732 iindex_mutex, iindex_mutex_initialized: New static fields.
6733 (_Jv_FindIIndex): New function.
6735 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6737 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6738 (_Jv_CheckArrayStore): Ditto.
6739 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6740 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6741 Moved to gcj/array.h.
6742 (_Jv_Realloc): New function.
6744 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6746 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6747 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6748 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6749 JvNewDoubleArray): Implementations moved from prims.cc and
6752 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6754 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6756 2000-03-06 Tom Tromey <tromey@cygnus.com>
6758 * jni.cc (MARK_NONE): New define.
6759 (MARK_USER): Likewise.
6760 (MARK_SYSTEM): Likewise.
6761 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6763 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6764 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6765 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6766 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6768 (call): Use MARK_SYSTEM.
6769 (_Jv_GetJNIEnvNewFrame): New function.
6770 (_Jv_LookupJNIMethod): New function.
6771 (_Jv_JNI_PopSystemFrame): New function.
6772 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6774 2000-03-05 Tom Tromey <tromey@cygnus.com>
6776 Fix for PR libgcj/43:
6777 * include/Makefile.in: Rebuilt.
6778 * include/Makefile.am (include_HEADERS): New define.
6780 2000-03-05 Anthony Green <green@redhat.com>
6782 * gcj/javaprims.h ("Java"): Remove FirstThread.
6784 * configure.host: Fix __NO_MATH_INLNES botch.
6786 * Makefile.in: Rebuilt.
6787 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6788 (gnu/gcj/runtime/FirstThread.h): Moved.
6789 (ordinary_java_source_files): Move FirstThread.java.
6790 * prims.cc: Deal with FirstThread movement.
6792 (_Jv_RunMain): Ditto.
6794 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6795 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6797 2000-03-05 Warren Levy <warrenl@cygnus.com>
6799 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6800 Handle null addresses.
6802 2000-03-04 Anthony Green <green@redhat.com>
6804 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6807 2000-03-04 Anthony Green <green@redhat.com>
6809 * configure: Rebuilt.
6810 * configure.in (ZLIBTESTSPEC): New macro.
6811 (GCTESTSPEC): New macro.
6812 (LIBGCJTESTSPEC): New macro.
6813 * libgcj-test.spec.in: New file.
6815 2000-03-02 Tom Tromey <tromey@cygnus.com>
6817 * include/java-interp.h: Don't include MethodInvocation.h.
6818 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6819 * Makefile.in: Rebuilt.
6820 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6821 (ordinary_java_source_files): Don't mention
6822 MethodInvocation.java.
6823 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6824 * interpret.cc (MethodInvocation::continue1): Removed.
6825 (run): Handle exceptions here.
6826 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6828 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6830 (defineClass2): Removed.
6832 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6834 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6836 (hack_call): Removed.
6838 * java/lang/Class.h (Class): Removed hackRunInitializers,
6840 * java/lang/natClass.cc (hackRunInitializers): Removed.
6841 (initializeClass): Catch exceptions here.
6842 Include ExceptionInInitializerError.h.
6843 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6846 * java/lang/Object.h (Object): Don't mention hack12_6.
6847 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6849 * java/lang/Object.java (hack12_6): Removed.
6851 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6852 (start): Use run_, not run__.
6853 * java/lang/Thread.java (run_): Renamed from run__; old run_
6856 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6857 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6858 (_Jv_JNI_DefineClass): Likewise.
6859 (_Jv_JNI_ThrowNew): Likewise.
6860 (_Jv_JNI_AllocObject): Likewise.
6861 (_Jv_JNI_GetAnyMethodID): Likewise.
6862 (_Jv_JNI_CallAnyMethodV): Likewise.
6863 (_Jv_JNI_CallAnyMethodA): Likewise.
6864 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6865 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6866 (_Jv_JNI_GetAnyFieldID): Likewise.
6867 (_Jv_JNI_NewString): Likewise.
6868 (_Jv_JNI_NewStringUTF): Likewise.
6869 (_Jv_JNI_GetStringUTFChars): Likewise.
6870 (_Jv_JNI_NewObjectArray): Likewise.
6871 (_Jv_JNI_NewPrimitiveArray): Likewise.
6872 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6873 (_Jv_JNI_GetStringRegion): Likewise.
6874 (_Jv_JNI_GetStringUTFRegion): Likewise.
6875 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6876 (_Jv_JNI_MonitorEnter): Likewise.
6877 (_Jv_JNI_MonitorExit): Likewise.
6878 (_Jv_JNI_ToReflectedField): Likewise.
6879 (_Jv_JNI_ToReflectedMethod): Likewise.
6880 (_Jv_JNI_RegisterNatives): Likewise.
6881 (_Jv_JNI_AttachCurrentThread): Likewise.
6882 (_Jv_JNI_DestroyJavaVM): Likewise.
6884 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6886 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6887 error caused by the incorrect casting of a long to an int.
6889 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6891 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6892 SIGSEV caused by use of the wrong instance variable.
6894 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6896 * java/io/File.java (File(String, String)): For dirPath, treat an
6897 empty String the same as `null'.
6899 2000-02-26 Anthony Green <green@cygnus.com>
6901 * gnu/gcj/io/MimeTypes.java: Test for null.
6903 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6904 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6906 * java/net/URLConnection.java: Update copyright notice.
6908 2000-02-25 Tom Tromey <tromey@cygnus.com>
6910 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6913 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6915 * java/net/URLConnection.java (initializeDateFormats): New
6917 (getHeaderFieldDate): Call initializeDateFormats if required.
6918 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6920 Fix for PR libgcj/38.
6922 2000-02-24 Warren Levy <warrenl@cygnus.com>
6924 * java/math/BigInteger.java(ival): Made private.
6928 2000-02-20 Anthony Green <green@cygnus.com>
6930 * Makefile.in: Rebuilt.
6931 * Makefile.am (ordinary_java_source_files): Add
6932 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6934 * scripts/MakeDefaultMimeTypes.java: New file.
6935 * scripts/mime.types: New file.
6936 * scripts/classes.pl: Moved from top level.
6937 * classes.pl: Moved to scripts directory.
6939 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6941 * gnu/gcj/io/MimeTypes.java: New file.
6942 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6944 2000-02-20 Tom Tromey <tromey@cygnus.com>
6946 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6948 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6950 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6953 2000-02-18 Tom Tromey <tromey@cygnus.com>
6955 * include/jvm.h (_Jv_GetJavaVM): Declare.
6956 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6957 (_Jv_MethodBase::get_method): New method.
6958 (_Jv_JNIMethod::set_function): New method.
6959 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6960 (_Jv_JNI_RegisterNatives): New function.
6961 (_Jv_JNIFunctions): Updated for new functions.
6962 (_Jv_GetJavaVM): New function.
6963 (_Jv_JNI_GetJavaVM): Use it. Now static.
6964 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6965 is already a Java thread but does not have a JNIEnv yet.
6967 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6970 2000-02-17 Tom Tromey <tromey@cygnus.com>
6972 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6975 2000-02-16 Tom Tromey <tromey@cygnus.com>
6977 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6979 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6980 (_Jv_JNI_NewObject): Likewise.
6981 (_Jv_JNI_NewObjectA): Likewise.
6982 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6983 as "return" type to _Jv_CallAnyMethodA.
6984 (_Jv_JNI_CallAnyMethodA): Likewise.
6985 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6987 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6990 2000-02-15 Tom Tromey <tromey@cygnus.com>
6992 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6994 (init_cif): Added `rtype_p' argument.
6995 * include/java-interp.h (class _Jv_MethodBase): Added
6997 (class _Jv_InterpMethod): Removed args_raw_size.
6998 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6999 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7000 class pointer as well as the ordinary arguments.
7002 * jni.cc (mangled_name): Skip leading `(' in signature.
7004 * jni.cc (add_char): Added missing `else'.
7006 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7009 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7013 * java/lang/natRuntime.cc (_load): Include library path with
7016 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7019 * java/lang/natThread.cc (dumpStack): Removed.
7020 * java/lang/Thread.java (dumpStack): Implemented.
7022 2000-02-15 Tom Tromey <tromey@cygnus.com>
7024 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7025 with `lib' for loadLibrary. Fixes PR gcj/150.
7027 2000-02-14 Warren Levy <warrenl@cygnus.com>
7029 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7031 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7035 (modPow): Rewritten to not use the naive, slow, brute force approach.
7036 (isProbablePrime): Implemented.
7037 (testBit): Implemented.
7038 (flipBit): Implemented.
7039 (getLowestSetBit): Implemented.
7041 2000-02-16 Anthony Green <green@redhat.com>
7043 * configure.host: Use the same options for i386 and i486 as we do
7046 2000-02-12 Tom Tromey <tromey@cygnus.com>
7048 * java/io/File.java (createTempFile): Use low bits from counter,
7051 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7053 * THANKS: More thanks.
7055 2000-02-11 Tom Tromey <tromey@cygnus.com>
7057 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7058 astore instruction. From Hans Boehm.
7060 2000-02-11 Warren Levy <warrenl@cygnus.com>
7062 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7063 (BigInteger(String)): New constructor.
7064 (not): Rewritten using version from Kawa's BitOps class.
7065 (valueOf): New private methods from Kawa's BitOps class.
7072 (andNot): Implemented.
7073 (clearBit): Implemented.
7074 (setBit): Implemented.
7075 (bitCount): Implemented.
7076 (toByteArray): Implemented.
7078 2000-02-11 Tom Tromey <tromey@cygnus.com>
7080 * java/io/File.java (nextValue): Now synchronized.
7082 2000-02-10 Tom Tromey <tromey@cygnus.com>
7084 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7085 * java/io/FileDescriptor.java (EXCL): New static field.
7086 * java/io/File.java (tmpdir): New static field.
7087 (createTempFile): New method.
7088 (nextValue): New method.
7089 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7092 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7093 (jboolean): Declare as an attributed int, not a bool.
7094 (_Jv_func): Declare differently for C.
7096 * gnu/gcj/jni/natNativeThread.cc: New file.
7097 * gnu/gcj/jni/NativeThread.java: New file.
7098 * java/lang/Thread.java (data): Now a RawData.
7099 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7101 * Makefile.in: Rebuilt.
7102 * Makefile.am (java/lang/Thread.h): New target.
7103 (ordinary_java_source_files): Added NativeThread.java.
7104 (nat_source_files): Added natNativeThread.cc.
7105 * java/lang/natThread.cc: Include <jni.h>
7106 (struct natThread): Added `jni_env' field.
7107 (_Jv_GetCurrentJNIEnv): New function.
7108 (_Jv_SetCurrentJNIEnv): Likewise.
7109 (initialize_native): Initialize jni_env.
7111 * jni.cc (ThreadGroupClass): New define.
7112 (_Jv_JNI_InvokeFunctions): New structure.
7113 (JNI_GetCreatedJavaVMs): New function.
7114 (the_vm): New global.
7115 (JNI_GetDefaultJavaVMInitArgs): New function.
7116 Include NativeThread.h.
7117 (NativeThreadClass): New define.
7118 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7119 (_Jv_JNI_DestroyJavaVM): New function.
7120 (_Jv_JNI_AttachCurrentThread): New function.
7121 (_Jv_JNI_DetachCurrentThread): New function.
7122 (_Jv_JNI_GetEnv): New function.
7123 (JNI_CreateJavaVM): New function.
7124 (_Jv_JNI_GetJavaVM): New function.
7125 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7126 * include/jni.h (JavaVMAttachArgs): New structure.
7127 (JNI_EDETACHED): New define.
7128 (JNI_EVERSION): Likewise.
7129 (JavaVM): Define properly.
7130 (struct JNIInvokeInterface): New structure.
7131 (class _Jv_JavaVM): New class.
7132 (JNI_OnLoad, JNI_OnUnload): Declare.
7133 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7134 JNI_GetCreatedJavaVMs): Declare.
7135 (JavaVMInitArgs): New typedef.
7136 (JavaVMOption): Likewise.
7137 (JNI_ERR): New define.
7140 2000-02-10 Andrew Haley <aph@cygnus.com>
7142 * interpret.cc: Don't include fdlibm.h.
7143 Replace #if with #ifdef throughout.
7144 Declare extern __ieee754_fmod.
7145 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7147 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7148 Search class hierarchy for superclass vtable.
7150 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7151 off the end of a pointer list.
7153 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7157 2000-02-09 Tom Tromey <tromey@cygnus.com>
7159 * java/lang/natRuntime.cc (_load): Call add_library.
7160 (loadLibraryInternal): Likewise.
7162 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7163 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7164 (Output_iconv::finalize): Likewise.
7166 2000-02-08 Tom Tromey <tromey@cygnus.com>
7168 * java/util/Properties.java (setProperty): New method.
7169 (store): New method.
7171 2000-02-07 Tom Tromey <tromey@cygnus.com>
7173 * java/lang/Runtime.java (_load): Declare.
7174 (load, loadLibrary): Wrote in terms of _load.
7175 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7177 (loadLibrary): Likewise.
7179 (_load): New method.
7180 (loadLibrary, load): Removed.
7182 * jni.cc (ThrowableClass): New define.
7183 (_Jv_JNI_Throw): Check argument.
7184 (_Jv_JNI_ThrowNew): Likewise.
7185 (wrap_value): Don't wrap object if it is NULL.
7186 (_Jv_JNI_DefineClass): Use wrap_value.
7187 (_Jv_JNI_FindClass): Likewise.
7188 (_Jv_JNI_GetSuperclass): Likewise.
7189 (_Jv_JNI_ExceptionOccurred): Likewise.
7190 (_Jv_JNI_AllocObject): Likewise.
7191 (_Jv_JNI_GetObjectClass): Likewise.
7192 (_Jv_JNI_NewString): Likewise.
7193 (_Jv_JNI_NewStringUTF): Likewise.
7194 (_Jv_JNI_NewObjectArray): Likewise.
7195 (_Jv_JNI_GetObjectArrayElement): Likewise.
7196 (_Jv_JNI_NewPrimitiveArray): Likewise.
7197 (_Jv_JNI_ToReflectedField): Likewise.
7198 (_Jv_JNI_ToReflectedMethod): Likewise.
7199 (_Jv_JNI_AllocObject): Check argument.
7200 (_Jv_JNI_NewObjectV): Likewise.
7201 (_Jv_JNI_NewObject): Likewise.
7202 (_Jv_JNI_NewObjectA): Likewise.
7203 (_Jv_JNI_GetObjectClass): Likewise.
7204 (_Jv_JNI_GetField): Likewise.
7205 (_Jv_JNI_SetField): Likewise.
7207 * interpret.cc (PUSHL): Don't use expression statement.
7212 * jni.cc (add_char): Conditional on INTERPRETER.
7213 (mangled_name): Likewise.
7215 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7217 (class _Jv_JNIMethod): Likewise.
7219 2000-02-04 Warren Levy <warrenl@cygnus.com>
7221 * Makefile.am: Added MPN.java and BigInteger.java.
7222 * Makefile.in: Rebuilt.
7223 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7225 * java/math/BigInteger.java: New file. Based primarily on
7226 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7228 2000-02-04 Tom Tromey <tromey@cygnus.com>
7230 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7232 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7233 if the method is native.
7234 * resolve.cc (ncode): Don't handle native methods.
7235 (_Jv_JNIMethod::ncode): New method.
7236 (_Jv_PrepareClass): Handle native methods.
7237 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7238 Include AbstractMethodError.h.
7239 (add_char): New function.
7240 (mangled_name): Likewise.
7241 * include/java-interp.h (class _Jv_JNIMethod): New class.
7242 (class _Jv_MethodBase): New class.
7243 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7244 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7247 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7248 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7249 libraries): New globals.
7250 (add_library): New function.
7251 (_Jv_FindSymbolInExecutable): New function.
7253 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7256 2000-02-04 Andrew Haley <aph@cygnus.com>
7258 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7259 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7260 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7261 printStackTrace to printRawStackTrace.
7263 2000-02-03 Tom Tromey <tromey@cygnus.com>
7265 * java/util/Calendar.java (toString): New method.
7266 * java/util/SimpleTimeZone.java (clone): New method.
7267 (toString): New method.
7268 * java/util/TimeZone.java (clone): New method.
7269 * java/text/SimpleDateFormat.java (clone): New method.
7270 * java/text/NumberFormat.java (clone): New method.
7271 (equals): New method.
7272 * java/text/Format.java (clone): New method.
7273 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7275 (clone): New method.
7276 * java/text/DateFormat.java (clone): New method.
7277 * java/text/Collator.java (clone): New method.
7279 2000-02-03 Tom Tromey <tromey@cygnus.com>
7281 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7284 2000-02-01 Tom Tromey <tromey@cygnus.com>
7286 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7287 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7288 constructing the closure if the function is native.
7289 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7290 a template function, #if'd out, or static.
7291 Include <java-interp.h>.
7293 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7295 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7297 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7298 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7300 (wrap_value): New function.
7301 (_Jv_JNI_CallAnyMethodV): Use it.
7302 (_Jv_JNI_CallAnyMethodA): Likewise.
7303 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7304 (_Jv_JNI_GetStaticField): Likewise.
7306 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7307 (_Jv_JNI_GetStaticField): Likewise.
7309 2000-01-31 Tom Tromey <tromey@cygnus.com>
7311 * prims.cc (_Jv_MallocUnchecked): New function.
7312 (main_init): Call _Jv_JNI_Init.
7313 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7314 (_Jv_JNI_Init): Declare.
7315 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7317 (_Jv_JNI_NewGlobalRef): New function.
7318 (_Jv_JNI_DeleteGlobalRef): New function.
7319 (_Jv_JNI_DeleteLocalRef): New function.
7320 (_Jv_JNI_conversion_call): Initialize and clear local reference
7322 (_Jv_JNI_NewLocalRef): New function.
7323 (struct _Jv_JNI_LocalFrame): New structure.
7324 (_Jv_JNI_PushLocalFrame): New function.
7325 (_Jv_JNI_EnsureLocalCapacity): New function.
7326 (FRAME_SIZE): New define.
7327 (_Jv_JNI_GetStringChars): Mark string, not characters.
7328 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7329 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7330 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7332 (_Jv_JNI_DefineClass): Make return value a local ref.
7333 (_Jv_JNI_FindClass): Likewise.
7334 (_Jv_JNI_GetSuperclass): Likewise.
7335 (_Jv_JNI_ExceptionOccurred): Likewise.
7336 (_Jv_JNI_AllocObject): Likewise.
7337 (_Jv_JNI_GetObjectClass): Likewise.
7338 (_Jv_JNI_CallAnyMethodV): Likewise.
7339 (_Jv_JNI_NewString): Likewise.
7340 (_Jv_JNI_NewStringUTF): Likewise.
7341 (_Jv_JNI_NewObjectArray): Likewise.
7342 (_Jv_JNI_GetObjectArrayElement): Likewise.
7343 (_Jv_JNI_ToReflectedField): Likewise.
7344 (_Jv_JNI_ToReflectedMethod): Likewise.
7345 (_Jv_JNIFunctions): Updated table for new functions.
7346 (_Jv_JNI_Init): New function.
7347 (mark_for_gc): Wrote.
7348 (unmark_for_gc): Wrote.
7349 * include/jni.h (struct JNINativeInterface): Removed name from
7350 PopLocalFrame parameter.
7351 (class _Jv_JNIEnv): Added `locals' field.
7353 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7355 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7358 2000-01-30 Tom Tromey <tromey@cygnus.com>
7360 * include/config.h.in: Rebuilt.
7361 * acconfig.h (HAVE_ICONV): Define.
7362 * configure: Rebuilt.
7363 * configure.in: Check for `iconv' function.
7364 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7365 no specific encoder exists.
7366 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7367 no specific encoder exists.
7368 * Makefile.in: Rebuilt.
7369 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7371 (nat_source_files): Added natIconv.cc.
7372 * gnu/gcj/convert/natIconv.cc: New file.
7373 * gnu/gcj/convert/Input_iconv.java: New file.
7374 * gnu/gcj/convert/Output_iconv.java: New file.
7376 2000-01-28 Tom Tromey <tromey@cygnus.com>
7378 * Makefile.in: Rebuilt.
7379 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7381 2000-01-26 Tom Tromey <tromey@cygnus.com>
7383 * gcj/method.h (JvNumMethods): Moved from Class.h.
7384 (JvGetFirstMethod): Likewise.
7385 * java/lang/Class.h (Object): Updated decl of
7386 _Jv_JNI_ToReflectedField.
7387 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7388 * Makefile.in: Rebuilt.
7389 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7390 argument of _Jv_JNI_ToReflectedField.
7391 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7393 (java/lang/reflect/Method.h): Likewise.
7394 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7396 (jweak): New typedef.
7397 (struct JNINativeInterface): Correctly declare remaining entries.
7398 * jni.cc: Include Class.h, ClassLoader.h.
7399 (_Jv_JNI_FindClass): New function.
7400 (_Jv_JNI_DefineClass): New function.
7401 (_Jv_JNI_conversion_call): New function.
7402 (_Jv_JNI_FindClass): Use current class loader to find class.
7403 (_Jv_JNI_ExceptionCheck): New function.
7404 (_Jv_JNI_FromReflectedField): Now static.
7405 (MethodClass): New define.
7406 (_Jv_JNI_FromReflectedMethod): New function.
7407 (_Jv_JNI_ToReflectedMethod): Likewise.
7409 (_Jv_JNI_IsAssignableFrom): Renamed.
7410 (_Jv_JNI_GetStringRegion): New function.
7411 Include StringIndexOutOfBoundsException.h.
7412 (_Jv_JNI_GetStringUTFRegion): New function.
7413 (_Jv_JNIFunctions): Updated for new functions.
7414 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7415 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7416 (_Jv_JNI_GetStringCritical): New function.
7417 (_Jv_JNI_ReleaseStringCritical): Likewise.
7418 (get_throwable): Removed.
7419 (GCJ_JV_JNIENV_FRIEND): Removed.
7420 (__GCJ_JNI_IMPL__): Define.
7423 * resolve.cc (get_ffi_type_from_signature): Handle case where
7426 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7428 * interpret.cc (run): Don't call println.
7429 Don't include PrintStream.h.
7431 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7432 nameIndex. Use "jint" as type for boffset.
7433 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7435 (Class): Likewise. Also changed type of method_count,
7436 vtable_method_count, size_in_bytes, field_count,
7437 static_field_count, interface_count.
7438 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7441 2000-01-21 Tom Tromey <tromey@cygnus.com>
7443 * java/lang/reflect/natConstructor.cc (newInstance): Use
7445 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7446 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7447 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7450 (invoke): Use _Jv_CallAnyMethodA.
7452 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7453 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7455 (struct _Jv_Method): Added getNextMethod method.
7456 (JvNumMethods): New function.
7457 (JvGetFirstMethod): Likewise.
7458 * gcj/field.h (JvGetFirstStaticField): New function.
7459 (JvNumStaticFields): Likewise.
7460 (getNextField): Renamed from getNextInstanceField.
7461 (struct _Jv_Field): New method getClass.
7462 * jni.cc: Wrote many new functions.
7463 * include/jni.h (JNI_TRUE): Define.
7464 (JNI_FALSE): Likewise.
7465 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7466 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7467 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7468 (jfieldID, jmethodID): Likewise.
7469 (JNI_COMMIT, JNI_ABORT): New defines.
7470 (JNINativeMethod): New struct.
7471 (struct JNINativeInterface): Correctly declared more entries.
7472 (class _Jv_JNIEnv): Added `ex' member.
7473 (JNI_VERSION_1_1): New define.
7474 (JNI_VERSION_1_2): Likewise.
7476 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7477 getNextInstanceField.
7479 2000-01-20 Tom Tromey <tromey@cygnus.com>
7481 * resolve.cc (StringClass): Removed.
7482 * defineclass.cc (StringClass): Removed.
7484 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7488 2000-01-19 Tom Tromey <tromey@cygnus.com>
7490 * interpret.cc (PC_REGISTER_ASM): Removed.
7492 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7493 From Bryce McKinlay.
7495 * All files: Updated copyright to reflect Cygnus purchase.
7497 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7499 * configure: Rebuilt.
7500 * configure.in: Recognize --disable-interpreter.
7502 2000-01-18 Andrew Haley <aph@cygnus.com>
7504 * name-finder.cc (lookup): Check for dladdr function.
7505 acconfig.h (HAVE_DLADDR): Add.
7506 configure.in: Check for HAVE_DLADDR
7508 include/config.h.in: Rebuilt.
7510 2000-01-17 Andrew Haley <aph@cygnus.com>
7512 * prims.cc (_Jv_RunMain): Set the name of this executable.
7514 2000-01-17 Tom Tromey <tromey@cygnus.com>
7516 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7517 when backtrace can't be computed.
7519 * configure: Rebuilt.
7520 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7522 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7523 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7524 (_Jv_FindClassInCache): Likewise.
7525 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7526 (findSystemClass): Try to load class from compiled module.
7528 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7529 (loadLibrary): Likewise.
7530 (lt_preloaded_symbols): Define.
7531 (loadLibraryInternal): New method.
7532 * include/config.h.in: Rebuilt.
7533 * acconfig.h (USE_LTDL): Added.
7534 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7535 (INCLUDES): Added $(INCLTDL).
7536 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7537 (libgcj_la_LIBADD): Likewise.
7538 * aclocal.m4, configure: Rebuilt.
7539 * configure.in: Added libltdl support.
7541 2000-01-15 Tom Tromey <tromey@cygnus.com>
7543 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7545 2000-01-14 Andrew Haley <aph@cygnus.com>
7547 * java/lang/natThrowable.cc: New file.
7549 * java/lang/Throwable.java (fillInStackTrace): Make native.
7550 (printStackTrace): Call native method to do this.
7551 (Throwable): Call fillInStackTrace.
7552 (stackTrace): New variable.
7554 * include/jvm.h: Add _Jv_ThisExecutable functions.
7556 * prims.cc: (_Jv_execName): New variable.
7557 (catch_segv): Call fillInStackTrace.
7559 (_Jv_ThisExecutable): New functions.
7560 (JvRunMain): Set the name of this executable.
7562 * Makefile.am: Add java/lang/natThrowable.cc.
7564 * Makefile.in: Rebuilt.
7566 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7568 * configure.in: Force link with __frame_state_for in
7569 FORCELIBGCCSPEC. Add new checks for backtrace.
7570 * include/config.h.in: Rebuilt.
7572 * name-finder.cc: New file.
7573 * include/name-finder.h: New file.
7575 2000-01-16 Anthony Green <green@cygnus.com>
7577 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7580 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7582 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7584 2000-01-13 Tom Tromey <tromey@cygnus.com>
7586 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7587 not system loader, as initiating loader.
7589 2000-01-11 Tom Tromey <tromey@cygnus.com>
7591 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7592 HP/UX. From David Scott Urban.
7594 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7596 * java/lang/natMath.cc (pow): Cast args to `double', not
7599 (IEEEremainder): Likewise.
7600 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7601 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7603 2000-01-09 Anthony Green <green@cygnus.com>
7605 * java/lang/natString.cc (init): Test for overflow condition
7606 during out of bounds check.
7607 (getChars): Throw StringIndexOutOfBoundsException, not
7608 ArrayIndexOutOfBoundsException.
7610 (regionMatches): Obey case option during string comparison.
7612 * configure.host (ligcj_interpreter): New variable. Enable
7613 interpreter by default on IA-32.
7614 * configure.in: Examine libgcj_interpreter.
7615 * configure: Rebuilt.
7617 2000-01-07 Tom Tromey <tromey@cygnus.com>
7619 * mauve-libgcj: Don't disable ClassTest.
7621 * java/lang/natClass.cc (getClasses): Wrote.
7623 2000-01-06 Tom Tromey <tromey@cygnus.com>
7625 * java/lang/natClass.cc (_getConstructors): Correctly check
7626 whether method name is the init name.
7627 (getMethod): Look at accflags on method in `klass', not `this'.
7629 2000-01-05 Tom Tromey <tromey@cygnus.com>
7631 * java/lang/natClass.cc (getMethod): Compute offset relative to
7632 `klass's methods table, not `this's table.
7634 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7635 In unwrapping/widening case, check whether `k' is null, not
7636 whether it is primitive. Initialize `num' from `argelts', not
7637 `paramelts'. Correct create and pass arguments to ffi_call.
7638 Don't let presence of `this' argument affect index used to look in
7640 (COPY): Set appropriate element in `values' vector.
7642 * java/lang/natClass.cc: Include <gcj/method.h>.
7644 * java/lang/Class.h (_getMethods): Correctly declare as private,
7647 * java/lang/Class.h (_getMethods): Declare.
7648 * java/lang/Class.java (_getMethods): Declare.
7649 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7650 (getDeclaredClasses): Always return empty array.
7651 (_getMethods): New method.
7652 (getMethods): Wrote.
7653 (getDeclaredMethod): Return `rmethod'.
7654 (finit_name): New global.
7655 (getDeclaredMethods): Check for finit_name.
7656 (_getMethods): Likewise.
7657 (getMethod): Only return public methods.
7659 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7660 jboolean and select correct ffi type on that basis.
7661 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7662 Constructor call always has `void' return type.
7664 2000-01-04 Tom Tromey <tromey@cygnus.com>
7666 * java/lang/Class.h (getSignature): Updated.
7667 * java/lang/Class.java (getSignature): Updated.
7668 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7670 (getConstructor): Ensure constructor is public.
7671 (_getConstructors): Check for public-ness of constructor when
7672 `declared' is false, not when it is true.
7674 2000-01-04 Warren Levy <warrenl@cygnus.com>
7676 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7678 (receive): Set the sender's address in the DatagramPacket.
7680 2000-01-04 Tom Tromey <tromey@cygnus.com>
7682 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7683 declaring class as return_type argument to
7684 _Jv_CallNonvirtualMethodA.
7685 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7686 constructor case, create object and use it as `this' argument.
7687 * java/lang/Class.h (_getConstructors): Declare.
7688 (_getFields): Declare.
7689 * java/lang/Class.java (getConstructors): Wrote.
7690 (_getConstructors): New native method.
7691 (getDeclaredConstructors): Wrote.
7692 (_getFields): Declare new native method.
7693 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7695 (getMethod): Work correctly when class is primitive.
7696 (getDeclaredMethods): Likewise. Compute offset using `method',
7698 (getDeclaredMethod): Likewise.
7699 (getConstructor): Wrote.
7700 (ConstructorClass): New define.
7701 (getDeclaredConstructor): Wrote.
7702 (_getConstructors): New method.
7703 (_getFields): New method.
7706 * Makefile.in: Rebuilt.
7707 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7709 * prims.cc: Remove `#pragma implementation'.
7710 * gcj/array.h: Remove `#pragma interface'.
7712 * prims.cc (_Jv_equaln): New function.
7713 * java/lang/Class.java (getSignature): Declare.
7714 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7715 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7717 (getSignature): New method.
7718 (getDeclaredMethod): Wrote.
7720 Include StringBuffer.h.
7721 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7722 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7724 (getSignature): Declare.
7725 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7726 (_Jv_equaln): Declare.
7727 (_Jv_CallNonvirtualMethodA): Declare.
7728 * Makefile.in: Rebuilt.
7729 * Makefile.am (nat_source_files): Added natConstructor.cc.
7730 (java/lang/reflect/Constructor.h): New target.
7731 * java/lang/reflect/natConstructor.cc: New file.
7732 * java/lang/reflect/Constructor.java (newInstance): Now native.
7733 (declaringClass): Renamed from decl_class.
7734 (offset): Renamed from index.
7735 (getType): New native method.
7736 (getModifiers): Now native.
7737 (getParameterTypes): Call getType if required.
7738 (hashCode): Include hash code from declaring class.
7739 (modifiers): Removed.
7740 (toString): Call getType if required.
7741 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7742 * java/lang/reflect/natMethod.cc (hack_call): New method.
7743 Removed `#if 0' around FFI code.
7744 Include <gnu/gcj/RawData.h>.
7745 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7746 IllegalArgumentException when argument object and class disagree.
7747 (_Jv_GetTypesFromSignature): New function.
7749 (ObjectClass): New define.
7750 (_Jv_CallNonvirtualMethodA): New function.
7751 * java/lang/reflect/Method.java (hack_trampoline): New method.
7752 (hack_call): New native method.