1 2001-09-05 Tom Tromey <tromey@redhat.com>
3 From Eric Blake, via Classpath:
4 * java/lang/String.java (CaseInsensitiveComparator): New class.
5 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
7 * java/util/Date.java: Re-merged with Classpath.
9 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
11 2001-09-05 Corey Minyard <minyard@acm.org>
12 Tom Tromey <tromey@redhat.com>
14 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
15 (_Jv_RegisterClassHookDefault): Throw error if a class is
18 2001-09-05 Tom Tromey <tromey@redhat.com>
20 * java/lang/natSystem.cc (init_properties): Default locale is
23 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
25 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
26 here, DecimalFormat.applyPattern() does not throw it.
28 2001-09-04 Tom Tromey <tromey@redhat.com>
30 * java/util/AbstractMap.java: Re-merged with Classpath.
31 * java/util/IdentityHashMap.java: Re-merged with Classpath.
33 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
34 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
35 gnu/gcj/text/LocaleData_en_US.java: Removed.
36 * java/text/DateFormatSymbols.java (clone): Use Classpath
39 (DateFormatSymbols): Look in gnu.java.locale for information.
40 (DateFormatSymbols(DateFormatSymbols)): Removed.
41 (safeGetResource): Removed.
42 (DateFormatSymbols): Throws MissingResourceException.
43 (ampmsDefault, erasDefault, localPatternCharsDefault,
44 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
45 weekdaysDefault, zoneStringsDefault): Removed.
46 * java/text/Collator.java (getAvailableLocales): Use modified
47 Classpath implementation.
48 (getInstance): Look in gnu.java.locale for information.
50 * java/text/MessageFormat.java: Reindented.
52 * java/text/FieldPosition.java: Merged with Classpath.
53 * java/text/ParsePosition.java: Merged with Classpath.
54 * java/text/Format.java: Merged with Classpath.
55 * java/text/StringCharacterIterator.java
56 (StringCharacterIterator(StringCharacterIterator,int,int)): New
57 constructor from Classpath.
58 * java/text/Annotation.java,
59 java/text/AttributedCharacterIterator.java,
60 java/text/AttributedString.java,
61 java/text/AttributedStringIterator.java: New from Classpath.
62 * java/text/CharacterIterator.java: Copied from Classpath.
63 * java/text/ChoiceFormat.java: Reindented.
65 * gnu/java/text/BaseBreakIterator.java,
66 gnu/java/text/CharacterBreakIterator.java,
67 gnu/java/text/LineBreakIterator.java,
68 gnu/java/text/LocaleData_en.java,
69 gnu/java/text/LocaleData_en_US.java,
70 gnu/java/text/SentenceBreakIterator.java,
71 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
72 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
74 * java/text/BreakIterator.java (getAvailableLocales): Use
75 Classpath implementation.
76 (getInstance): Look in gnu.java.locale for information.
77 (getCharacterInstance, getLineInstance, getSentenceInstance,
78 getWordInstance): Look in gnu.java.text for implementations.
79 * java/text/DecimalFormatSymbols.java: Reindented
80 (clone): Use Classpath implementation.
81 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
82 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
84 * java/text/DateFormat.java: Merged with Classpath.
85 (getAvailableLocales): Use Classpath implementation.
86 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
87 (computeInstance): Look in gnu.java.locale for information.
88 * java/text/NumberFormat.java: Reindented.
89 (computeInstance): Look in gnu.java.locale for information.
90 (getAvailableLocales): Use implementation from Classpath.
91 (setMaximumIntegerDigits): Likewise.
92 (setMinimumIntegerDigits): Likewise.
93 (setMaximumFractionDigits): Likewise.
95 * java/text/DecimalFormat.java: Reindented.
96 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
97 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
98 * Makefile.in: Rebuilt.
99 * Makefile.am (ordinary_java_source_files): Added all new files.
100 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
101 * java/security/spec/AlgorithmParameterSpec.java,
102 java/security/spec/KeySpec.java: Re-merged with Classpath.
104 Fix for PR libgcj/4213:
105 * Makefile.am (ordinary_java_source_files): Added new file.
106 * gnu/gcj/text/LocaleData.java: New file.
108 2001-09-03 Tom Tromey <tromey@redhat.com>
110 * java/lang/reflect/natField.cc (set): Allow for case when the
111 value is null. Fixes PR libgcj/4208.
113 * gcj/javaprims.h: Regenerated class list.
114 * java/lang/IllegalThreadStateException.java,
115 java/lang/InstantiationException.java: Minor comment tweaks to
116 satisfy libgcj `classes.pl' script.
118 2001-09-01 Tom Tromey <tromey@redhat.com>
120 * Makefile.in: Rebuilt.
121 * Makefile.am (core_java_source_files): Added
122 UnsupportedClassVersionError.
123 * java/lang/UnsupportedClassVersionError.java: New file from
126 * java/io/CharConversionException.java, java/io/EOFException.java,
127 java/io/FileNotFoundException.java, java/io/IOException.java,
128 java/io/InterruptedIOException.java,
129 java/io/ObjectStreamException.java,
130 java/io/OptionalDataException.java,
131 java/io/StreamCorruptedException.java,
132 java/io/SyncFailedException.java,
133 java/io/UTFDataFormatException.java,
134 java/io/UnsupportedEncodingException.java,
135 java/lang/AbstractMethodError.java,
136 java/lang/ArithmeticException.java,
137 java/lang/ArrayIndexOutOfBoundsException.java,
138 java/lang/ArrayStoreException.java,
139 java/lang/ClassCastException.java,
140 java/lang/ClassCircularityError.java,
141 java/lang/ClassFormatError.java,
142 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
143 java/lang/Exception.java,
144 java/lang/ExceptionInInitializerError.java,
145 java/lang/IllegalAccessError.java,
146 java/lang/IllegalAccessException.java,
147 java/lang/IllegalArgumentException.java,
148 java/lang/IllegalMonitorStateException.java,
149 java/lang/IllegalStateException.java,
150 java/lang/IllegalThreadStateException.java,
151 java/lang/IncompatibleClassChangeError.java,
152 java/lang/IndexOutOfBoundsException.java,
153 java/lang/InstantiationError.java,
154 java/lang/InstantiationException.java,
155 java/lang/InternalError.java, java/lang/InterruptedException.java,
156 java/lang/LinkageError.java,
157 java/lang/NegativeArraySizeException.java,
158 java/lang/NoClassDefFoundError.java,
159 java/lang/NoSuchFieldError.java,
160 java/lang/NoSuchFieldException.java,
161 java/lang/NoSuchMethodError.java,
162 java/lang/NoSuchMethodException.java,
163 java/lang/NullPointerException.java,
164 java/lang/NumberFormatException.java,
165 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
166 java/lang/SecurityException.java,
167 java/lang/StackOverflowError.java,
168 java/lang/StringIndexOutOfBoundsException.java,
169 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
170 java/lang/UnsatisfiedLinkError.java,
171 java/lang/UnsupportedOperationException.java,
172 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
173 java/lang/reflect/InvocationTargetException.java,
174 java/net/BindException.java, java/net/ConnectException.java,
175 java/net/MalformedURLException.java,
176 java/net/NoRouteToHostException.java,
177 java/net/ProtocolException.java, java/net/SocketException.java,
178 java/net/UnknownHostException.java,
179 java/net/UnknownServiceException.java,
180 java/text/ParseException.java: Copied from Classpath, thanks to
181 Mark Wielaard who did the merge.
183 * java/lang/System.java (getProperty): Use single argument form of
184 SecurityManager.checkPropertyAccess.
185 * Makefile.in: Rebuilt.
186 * Makefile.am (core_java_source_files): Added VMSecurityManager.
187 * java/lang/VMSecurityManager.java: New file.
188 * java/lang/SecurityManager.java: Merged with Classpath.
190 2001-08-31 Per Bothner <per@bothner.com>
192 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
193 (_Jv_RegisterClassHookDefault): Likewise.
194 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
195 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
196 (_Jv_RegisterClassHookDefault): New.function.
197 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
199 * java/lang/ClassLoader.java (system): Remove static field.
200 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
201 directly instead of using it to set the system field.
202 (loadClass): Use VMClassLoader.instance instead of system field.
203 (findSystemClass): Similar.
204 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
205 than ClassLoader::system which no longer exists.
206 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
208 2001-08-31 Tom Tromey <tromey@redhat.com>
210 * java/io/BufferedReader.java, java/io/ObjectInput.java,
211 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
212 Re-merged with Classpath.
214 Re-merge with Classpath:
215 * java/util/Comparator (equals): Added.
216 * java/io/PipedWriter.java (write): Changed argument to `int'.
218 * java/io/FileDescriptor.java (FileDescriptor()): New
220 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
222 * Makefile.in: Rebuilt.
223 * Makefile.am (ordinary_java_source_files): Removed
224 EnumerationChain, added DoubleEnumeration.
225 (nat_source_files): Added natResourceBundle.cc.
226 * java/util/natResourceBundle.cc: New file.
227 * gnu/java/util/DoubleEnumeration.java: New file.
228 * gnu/gcj/util/EnumerationChain.java: Removed.
229 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
230 * java/util/ResourceBundle.java: Merged with Classpath.
231 * java/util/StringTokenizer.java: Merged with Classpath.
232 * java/util/Locale.java: Merged with Classpath.
233 * java/util/Random.java: Merged with Classpath.
234 * java/util/PropertyResourceBundle.java: Merged with Classpath.
235 * java/util/ListResourceBundle.java: Merged with Classpath.
236 * java/util/ConcurrentModificationException.java: Re-merged with
238 * java/util/EmptyStackException.java: Likewise.
239 * java/util/MissingResourceException.java: Likewise.
240 * java/util/NoSuchElementException.java: Likewise.
241 * java/util/TooManyListenersException.java: Likewise.
243 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
244 * java/io/OptionalDataException.java: Merged with Classpath.
246 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
248 * exception.cc (PERSONALITY_FUNCTION): Simplify
251 2001-08-31 Tom Tromey <tromey@redhat.com>
253 * java/io/ByteArrayInputStream.java: Merged with Classpath.
255 2001-08-30 Tom Tromey <tromey@redhat.com>
257 * java/io/BufferedReader.java: Re-merged with Classpath.
259 2001-08-28 Per Bothner <per@bothner.com>
261 * java/math/BigInteger.java (init(int,Random)): New method.
262 Move body of constructor <init>(int,Random)) here.
263 Re-write it to avoid constructing unneeded temporaries.
264 (<init>(int,int,Random)): Use new init method to avoid constructing
265 extra temporary BigIntegers.
267 2001-08-27 Tom Tromey <tromey@redhat.com>
269 * java/rmi/activation/Activatable.java,
270 java/rmi/activation/ActivateFailedException.java,
271 java/rmi/activation/ActivationDesc.java,
272 java/rmi/activation/ActivationException.java,
273 java/rmi/activation/ActivationGroup.java,
274 java/rmi/activation/ActivationGroupDesc.java,
275 java/rmi/activation/ActivationGroupID.java,
276 java/rmi/activation/ActivationID.java,
277 java/rmi/activation/ActivationInstantiator.java,
278 java/rmi/activation/ActivationMonitor.java,
279 java/rmi/activation/ActivationSystem.java,
280 java/rmi/activation/Activator.java,
281 java/rmi/activation/UnknownGroupException.java,
282 java/rmi/activation/UnknownObjectException.java,
283 java/rmi/AccessException.java,
284 java/rmi/AlreadyBoundException.java,
285 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
286 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
287 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
288 java/rmi/NotBoundException.java,
289 java/rmi/RMISecurityException.java,
290 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
291 java/rmi/RemoteException.java, java/rmi/ServerError.java,
292 java/rmi/ServerException.java,
293 java/rmi/ServerRuntimeException.java,
294 java/rmi/StubNotFoundException.java,
295 java/rmi/UnexpectedException.java,
296 java/rmi/UnknownHostException.java,
297 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
298 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
299 java/rmi/registry/LocateRegistry.java,
300 java/rmi/registry/Registry.java,
301 java/rmi/registry/RegistryHandler.java,
302 java/rmi/server/ExportException.java,
303 java/rmi/server/LoaderHandler.java,
304 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
305 java/rmi/server/Operation.java,
306 java/rmi/server/RMIClassLoader.java,
307 java/rmi/server/RMIClientSocketFactory.java,
308 java/rmi/server/RMIFailureHandler.java,
309 java/rmi/server/RMIServerSocketFactory.java,
310 java/rmi/server/RMISocketFactory.java,
311 java/rmi/server/RemoteCall.java,
312 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
313 java/rmi/server/RemoteServer.java,
314 java/rmi/server/RemoteStub.java,
315 java/rmi/server/ServerCloneException.java,
316 java/rmi/server/ServerNotActiveException.java,
317 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
318 java/rmi/server/SkeletonMismatchException.java,
319 java/rmi/server/SkeletonNotFoundException.java,
320 java/rmi/server/SocketSecurityException.java,
321 java/rmi/server/UID.java,
322 java/rmi/server/UnicastRemoteObject.java,
323 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
324 gnu/java/rmi/dgc/DGCImpl_Skel.java,
325 gnu/java/rmi/dgc/DGCImpl_Stub.java,
326 gnu/java/rmi/registry/RegistryImpl.java,
327 gnu/java/rmi/registry/RegistryImpl_Skel.java,
328 gnu/java/rmi/registry/RegistryImpl_Stub.java,
329 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
330 gnu/java/rmi/server/ProtocolConstants.java,
331 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
332 gnu/java/rmi/server/RMIHashes.java,
333 gnu/java/rmi/server/RMIObjectInputStream.java,
334 gnu/java/rmi/server/RMIObjectOutputStream.java,
335 gnu/java/rmi/server/UnicastConnection.java,
336 gnu/java/rmi/server/UnicastConnectionManager.java,
337 gnu/java/rmi/server/UnicastRef.java,
338 gnu/java/rmi/server/UnicastRemoteCall.java,
339 gnu/java/rmi/server/UnicastRemoteStub.java,
340 gnu/java/rmi/server/UnicastServer.java,
341 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
342 Kaffe. Relabelled classes to fit into Classpath tree.
343 * Makefile.in: Rebuilt.
344 * Makefile.am (rmi_java_source_files): New macro.
345 (ordinary_java_source_files): Reference it.
346 (bin_PROGRAMS): Added rmic and rmiregistry.
347 (rmic_SOURCES): New macro.
348 (EXTRA_rmic_SOURCES): Likewise.
349 (rmic_LDFLAGS): Likewise.
350 (rmic_LINK): Likewise.
351 (rmic_LDADD): Likewise.
352 (rmic_DEPENDENCIES): Likewise.
353 (rmiregistry_SOURCES): New macro.
354 (EXTRA_rmiregistry_SOURCES): Likewise.
355 (rmiregistry_LDFLAGS): Likewise.
356 (rmiregistry_LINK): Likewise.
357 (rmiregistry_LDADD): Likewise.
358 (rmiregistry_DEPENDENCIES): Likewise.
360 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
362 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
364 * Makefile.am: New friends for java/lang/Thread.h.
365 * prims.cc (runFirst): Removed.
366 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
367 (_Jv_RunMain): Now takes either a klass or class name parameter.
368 Create a gnu.gcj.runtime.FirstThread and attach the native thread
369 to that, then run it using _Jv_ThreadRun. Remove special handling of
370 jar files, instead pass is_jar parameter through to FirstThread.
371 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
372 of _Jv_AttachCurrentThread.
373 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
374 (run): New method. Take care of looking up main class manifest
375 attribute and calling forName if neccessary. Then call call_main.
376 (call_main): New native method.
377 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
378 relocated from prims.cc. Look up and call main method.
379 * java/lang/Thread.java (run_): Removed.
380 * java/lang/natThread.cc (run_): Renamed to...
381 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
382 (_Jv_NotifyThreadStart): here. New function.
383 (countStackFrames, destroy, resume, suspend, stop): Throw
384 UnsupportedOperationExceptions rather than JvFail'ing.
385 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
386 Existing version wraps new variant.
389 2001-08-23 Tom Tromey <tromey@redhat.com>
391 * java/lang/reflect/Field.java (toString): Use
392 Method.appendClassName.
393 * java/lang/reflect/Constructor.java (toString): Use
394 Method.appendClassName.
395 * java/lang/reflect/Method.java: Reindented.
396 (appendClassName): New method.
398 * defineclass.cc (handleMethod ): Initialize `throws' field of
400 (read_one_method_attribute): Handle Exceptions attribute.
401 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
402 (ObjectClass): Removed.
403 (getType): Compute `exception_types'.
404 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
406 2001-08-21 Anthony Green <green@redhat.com>
408 * java/lang/natClassLoader.cc (findClass): Search for
409 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
411 2001-08-21 Jeff Sturm <jsturm@one-point.com>
413 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
416 2001-08-20 Tom Tromey <tromey@redhat.com>
418 * java/awt/GridBagConstraints.java: Removed comment.
420 * jni.cc (nathash, nathash_count, nathash_size): New globals.
421 (DELETED_ENTRY): New define.
422 (hash): New function.
423 (nathash_find_slot): Likewise.
424 (natrehash): Likewise.
425 (nathash_add): Likewise.
426 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
428 (nathash_find): New function.
429 (_Jv_LookupJNIMethod): Use it. Synchronize body.
430 (call): Synchronize around assignment.
432 2001-08-17 Jeff Sturm <jsturm@one-point.com>
434 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
435 starting from zero offset.
437 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
439 * boehm.cc: Include gc_local_alloc.h if appropriate.
440 (GC_GENERIC_MALLOC): Don't define.
441 (MAYBE_MARK): Redefine for GC 6.0.
442 (_Jv_MarkObj): Mark class differently.
443 (_Jv_AllocArray): Use GC_generic_malloc.
445 2001-08-17 Mark J Roberts <mjr@anarcast.net>
447 * java/math/BigInteger.java (randBytes): New method.
448 (BigInteger(int,Random)): Use randBytes.
450 2001-08-17 Tom Tromey <tromey@redhat.com>
452 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
454 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
456 * BigInteger.java: fix right shifts by nonzero multiples of 32.
458 2001-08-15 Tom Tromey <tromey@redhat.com>
460 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
461 (local_ref_table, global_ref_table): Now IdentityHashMap.
462 (_Jv_JNI_Init): Updated for new types.
463 (mark_for_gc): Likewise.
464 (unmark_for_gc): Likewise.
465 * gcj/javaprims.h: Rebuilt class list.
466 * Makefile.in: Rebuilt.
467 * Makefile.am (core_java_source_files): Added new file.
468 * java/util/IdentityHashMap.java: New file.
470 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
473 2001-08-09 Tom Tromey <tromey@redhat.com>
475 * java/awt/image/SampleModel.java (getPixel): Set correct array
476 element. From Chris Meyer.
478 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
480 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
481 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
483 2001-08-06 Tom Tromey <tromey@redhat.com>
485 * java/io/InputStreamReader.java (refill): Only call refill on
486 BufferedInputStream when appropriate constraints are met.
488 2001-08-05 Tom Tromey <tromey@redhat.com>
490 * java/io/StringWriter.java: Merged with Classpath.
491 * java/io/InputStream.java: Merged with Classpath.
492 * java/io/OutputStream.java: Merged with Classpath.
493 * java/io/PushbackInputStream.java: Merged with Classpath.
494 * java/io/CharArrayReader.java: Merged with Classpath.
495 * java/io/CharArrayWriter.java: Merged with Classpath.
497 2001-08-02 Tom Tromey <tromey@redhat.com>
499 * prims.cc (JNI_OnLoad): Don't declare.
500 (_JNI_OnLoad): Don't define.
501 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
503 2001-08-02 Tom Tromey <tromey@redhat.com>
505 * java/io/RandomAccessFile.java (seek): Let seek go past end of
507 (skipBytes): Don't fail if seeking past end of file.
508 * java/io/FileInputStream.java (skip): Don't fail if seeking past
510 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
512 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
514 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
516 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
518 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
520 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
521 to initialize global_ref_table/local_ref_table.
523 2001-08-02 Tom Tromey <tromey@redhat.com>
525 * configure: Rebuilt.
526 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
529 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
531 * include/posix.h (_POSIX_PII_SOCKET): Define.
532 * configure.in (HAVE_SOCKLEN_T): Define.
533 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
535 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
536 (java::net::PlainSocketImpl::accept): Use it.
537 Fixes PRs libgcj/3694, libgcj/3696.
539 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
540 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
541 * configure, include/config.h.in: Regenerate.
542 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
543 (mcastGrp): Likewise.
544 (java::net::PlainDatagramSocketImpl::setOption): Guard against
545 missing IPV6_MULTICAST_IF.
546 Fixes PR libgcj/3694.
548 2001-08-01 Jeff Sturm <jsturm@one-point.com>
550 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
552 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
554 * Makefile.in: Rebuilt.
555 * Makefile.am (GCJLINK): Added --tag=GCJ.
558 2001-07-30 Tom Tromey <tromey@redhat.com>
560 * java/util/Date.java: Re-merged with Classpath.
562 2001-07-30 Jeff Sturm <jsturm@one-point.com>
564 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
565 (_Jv_bind): New static function.
566 (bind): Use _Jv_bind.
567 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
568 (_Jv_bind, _Jv_connect): New static functions.
569 (bind): Use _Jv_bind.
570 (connect): Use _Jv_connect.
572 2001-07-30 Tom Tromey <tromey@redhat.com>
573 Corey Minyard <minyard@acm.org>
575 * gnu/gcj/convert/natIconv.cc (done): New methods.
576 * gnu/gcj/convert/Output_iconv.java (done): New method.
577 * gnu/gcj/convert/Input_iconv.java (done): New method.
578 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
580 (getDefaultEncodingClass): Removed.
581 (getDefaultEncoder): Use getEncoder.
583 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
585 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
587 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
589 (getDefaultDecodingClass): Removed.
590 (getDefaultDecoder): Use getDecoder.
591 (getDecoder): Look up decoder in cache.
593 * java/lang/natString.cc (init): Call `done' on converter.
594 (getBytes): Likewise.
596 2001-07-30 Tom Tromey <tromey@redhat.com>
598 * java/lang/Integer.java: Merged with Classpath.
600 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
602 * java/util/GregorianCalendar.java (GregorianCalendar): Call
603 setTimeInMillis() to set the default/current time.
605 2001-07-29 Mark Wielaard <mark@klomp.org>
607 * HACKING: add description on updating namespace
609 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
611 * java/util/Calendar.java (set): Never recompute fields here. They
612 will already be set if someone set time explicitly, and it can cause
613 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
614 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
615 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
617 * java/text/SimpleDateFormat.java (defaultCentury): New field.
618 (readObject): Call set2DigitYearStart if appropriate so that
619 defaultCentury is calculated.
620 (SimpleDateFormat): Don't bother clearing calendar here. Call
621 computeCenturyStart().
622 (set2DigitYearStart): Calculate and set defaultCentury.
623 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
625 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
626 2 numeric digits, use the 80-20 heuristic to parse the value into a
627 default century based on defaultCenturyStart.
628 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
630 2001-07-25 Tom Tromey <tromey@redhat.com>
632 * Makefile.in: Rebuilt.
633 * Makefile.am (libgcj.jar): Correctly fail when bytecode
636 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
638 * prims.cc (_JNI_OnLoad): New function.
639 (JNI_OnLoad): Use it.
640 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
642 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
644 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
645 Makefile.in: Regenerate.
647 2001-07-24 Tom Tromey <tromey@redhat.com>
649 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
652 2001-07-23 Tom Tromey <tromey@redhat.com>
654 * gcj/javaprims.h: Rebuilt class list.
655 * Makefile.in: Rebuilt.
656 * Makefile.am (core_java_source_files): Added VMClassLoader.
657 * java/lang/VMClassLoader.java: New file.
658 * java/lang/Boolean.java: Merged with Classpath.
659 * java/lang/Byte.java: Merged with Classpath.
660 * java/lang/Integer.java: Merged with Classpath.
661 * java/lang/Long.java: Merged with Classpath.
662 * java/lang/Number.java: Merged with Classpath.
663 * java/lang/Short.java: Merged with Classpath.
665 2001-07-22 Jeff Sturm <jsturm@one-point.com>
667 * configure.host: Enable hash synchronization for alpha*-*.
668 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
670 * java/lang/natObject.cc (compare_and_swap, release_set,
671 compare_and_swap_release): Added inline functions for alpha.
673 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
675 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
676 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
677 back to old RFC 2133 variants if missing.
679 2001-07-18 Tom Tromey <tromey@redhat.com>
681 * java/io/natFileWin32.cc (_access): Renamed.
683 * java/io/natFile.cc (_access): Renamed.
685 * java/io/File.java (access, stat): Add leading `_' to name.
688 2001-07-18 Tom Tromey <tromey@redhat.com>
691 * libgcj.spec.in (*lib): Added LIBICONV.
692 * configure: Rebuilt.
693 * configure.in: Call AM_ICONV. Don't check for iconv function.
694 Add parameters to JV_HASH_SYNCHRONIZATION define.
695 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
697 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
699 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
700 not by setting its size field.
702 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
704 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
707 2001-07-12 Tom Tromey <tromey@redhat.com>
708 David Brownell <david-b@pacbell.net>
710 Fix for PR libgcj/3426:
711 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
713 (read): Throw exception if character conversion fails.
714 * java/io/BufferedInputStream.java (refill): Now package-private.
715 * java/io/InputStreamReader.java (ready): Simplified.
716 (refill): New method.
719 2001-07-12 Tom Tromey <tromey@redhat.com>
721 Report from Henner Zeller:
722 * java/io/FileOutputStream.java (FileOutputStream): Throw
723 FileNotFoundException, not IOException.
725 2001-07-10 Anthony Green <green@redhat.com>
727 * Makefile.in: Rebuilt.
728 * Makefile.am: Add new files.
729 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
730 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
731 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
732 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
733 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
734 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
735 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
736 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
737 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
738 org/w3c/dom/ranges/DocumentRange.java,
739 org/w3c/dom/ranges/Range.java,
740 org/w3c/dom/ranges/RangeException.java,
741 org/w3c/dom/traversal/DocumentTraversal.java,
742 org/w3c/dom/traversal/NodeFilter.java,
743 org/w3c/dom/traversal/NodeIterator.java,
744 org/w3c/dom/traversal/TreeWalker.java,
745 org/xml/sax/ext/DeclHandler.java,
746 org/xml/sax/ext/LexicalHandler.java,
747 org/xml/sax/helpers/AttributeListImpl.java,
748 org/xml/sax/helpers/AttributesImpl.java,
749 org/xml/sax/helpers/DefaultHandler.java,
750 org/xml/sax/helpers/LocatorImpl.java,
751 org/xml/sax/helpers/NamespaceSupport.java,
752 org/xml/sax/helpers/ParserAdapter.java,
753 org/xml/sax/helpers/ParserFactory.java,
754 org/xml/sax/helpers/XMLFilterImpl.java,
755 org/xml/sax/helpers/XMLReaderAdapter.java,
756 org/xml/sax/helpers/XMLReaderFactory.java,
757 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
758 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
759 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
760 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
761 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
762 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
763 org/xml/sax/SAXNotRecognizedException.java,
764 org/xml/sax/SAXNotSupportedException.java,
765 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
766 org/xml/sax/XMLReader.java: New files.
768 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
770 * Makefile.am: Added `java/lang/ThreadLocal.java'.
771 * Makefile.in: Regenerate.
772 * java/lang/ThreadLocal.java: Initial import.
774 2001-07-07 Jeff Sturm <jsturm@one-point.com>
776 * Makefile.am (libgcj.jar): Don't recursively make
777 built_java_source_files. Avoid long command lines.
778 Don't change to $(srcdir) to invoke javac.
779 (libgcj.la, libgcjx.la); Avoid long command lines.
780 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
781 * Makefile.in: Rebuilt.
783 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
785 * include/i386-signal.h: Don't do anything with unsigned divide
786 overflow except throw an exception.
788 2001-07-05 Tom Tromey <tromey@redhat.com>
791 * java/lang/Class.h (Class(void)): Now private. Removed
792 implementation. From dmorsberger@sensysdl.com.
794 2001-07-02 Tom Tromey <tromey@redhat.com>
796 Fix for PR bootstrap/3281:
797 * aclocal.m4, configure: Rebuilt.
798 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
799 Correctly compute libgcj_basedir.
800 (mkinstalldirs): Define and subst.
802 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
805 * java/io/LineNumberReader.java (reset): Pass correct arguments to
808 2001-06-27 Tom Tromey <tromey@redhat.com>
810 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
813 2001-06-25 Tom Tromey <tromey@redhat.com>
815 * scripts/encodings.pl: Generate lower-case names. Updated URL
816 for `character-sets' file.
817 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
819 Rebuilt list of aliases.
821 2001-06-25 Tom Tromey <tromey@redhat.com>
823 * java/io/natFileDescriptorPosix.cc (open): Change error message
824 formatting. From David Brownell.
826 2001-06-21 Tom Tromey <tromey@redhat.com>
828 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
831 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
833 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
834 extraneous/malformed sign word.
836 2001-06-15 Tom Tromey <tromey@redhat.com>
838 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
840 2001-06-15 Tom Tromey <tromey@redhat.com>
842 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
843 NULL if no library on the list has the symbol.
844 (init): Call add_library on the program itself.
845 * prims.cc (JvRunMain): Initialize Runtime before searching for
847 (_Jv_RunMain): Likewise.
849 2001-06-15 Tom Tromey <tromey@redhat.com>
851 * jni.cc (ClassClass): Removed; updated all users.
852 (ObjectClass): Likewise.
853 (ThrowableClass): Likewise.
854 (MethodClass): Likewise.
855 (ThreadGroupClass): Likewise.
856 (local_ref_table): Renamed from `ref_table'.
857 (global_ref_table): New global.
858 (_Jv_JNI_Init): Initialize both ref tables.
859 (mark_for_gc): Added `ref_table' parameter.
860 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
862 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
863 (_Jv_JNI_DeleteGlobalRef): Likewise.
864 (_Jv_JNI_DeleteLocalRef): Likewise.
865 (_Jv_JNI_NewLocalRef): Likewise.
866 (_Jv_JNI_PopLocalFrame): Likewise.
867 (_Jv_JNI_GetStringChars): Likewise.
868 (_Jv_JNI_ReleaseStringChars): Likewise.
869 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
870 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
872 2001-06-14 Tom Tromey <tromey@redhat.com>
874 Fix for PR libgcj/3144:
875 * java/util/Date.java: Merged with Classpath.
877 2001-06-12 Tom Tromey <tromey@redhat.com>
879 * aclocal.m4, configure: Rebuilt.
880 * acinclude.m4: Find configure.host in srcdir.
882 2001-06-07 Tom Tromey <tromey@redhat.com>
884 Fix for PR libgcj/3059:
885 * java/lang/natSystem.cc (init_properties): Define `java.home'.
886 * Makefile.in: Rebuilt.
887 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
889 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
891 * exception.cc (cstdlib): Replaces stdlib.h.
892 (_Jv_Throw): Use std::abort().
893 (PERSONALITY_FUNCTION): Likewise.
895 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
897 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
898 nothing, as in autoconf 2.50.
899 * aclocal.m4, configure: Rebuilt.
901 2001-06-08 Tom Tromey <tromey@redhat.com>
903 * configure: Rebuilt.
904 * configure.in: Compute new aux dir using `pwd'.
906 2001-06-07 Tom Tromey <tromey@redhat.com>
908 For PR bootstrap/3075:
909 * configure, aclocal.m4, Makefile.am: Rebuilt.
910 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
911 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
912 relative to libgcj_basedir.
913 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
914 AC_CANONICAL_SYSTEM here.
915 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
917 ($(extra_headers)): New target.
919 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
920 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
922 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
923 table index is within allowed bounds. Ensure that we dont try to access
924 class itable at a negative offset. Avoid an ancestor table lookup if
925 source is a primitive type class.
926 (isInstance): Remove redundant isPrimitive() check.
928 2001-06-04 Tom Tromey <tromey@redhat.com>
930 * java/security/PublicKey.java: Extend Key.
931 * java/security/PrivateKey.java: Extend Key.
933 2001-06-02 Anthony Green <green@redhat.com>
935 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
936 alternate when USE_LTDL not defined.
938 2001-06-02 Anthony Green <green@redhat.com>
940 * configure: Rebuild.
941 * configure.in: Remove data_start hack.
942 * libgcj.spec.in: Ditto.
943 * Makefile.in: Rebuild.
944 * Makefile.am: Ditto.
945 * libgcjdata.c: Remove.
947 2001-06-02 Anthony Green <green@redhat.com>
949 * configure: Rebuild.
950 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
951 --without-libffi option. Tweak --disable-java-net processing.
952 * Makefile.in: Rebuild.
953 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
954 * include/config.h.in: Rebuild.
955 * acconfig.h (USE_LIBFFI): Define.
956 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
958 2001-06-02 Anthony Green <green@redhat.com>
960 * configure: Rebuilt.
961 * configure.in: Test for sigaction on native builds.
962 * prims.cc: Check HAVE_SIGACTION.
963 * include/config.h.in: Rebuilt.
965 2001-05-31 Jeff Sturm <jsturm@one-point.com>
967 * natFile.cc (get_entry): Removed functions.
968 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
969 Allocate enough storage for d_name if using readdir_r.
971 2001-05-31 Tom Tromey <tromey@redhat.com>
973 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
975 (write): Loop until write completes. From Corey Minyard.
977 2001-05-29 Laurent Guerby <guerby@acm.org>
979 * java/awt/geom/Rectangle2D.java: fix doc typo.
981 2001-05-31 Tom Tromey <tromey@redhat.com>
983 * java/sql/DriverManager.java (getDrivers): Handle case where
984 driver's class loader is null. From Corey Minyard.
986 2001-05-29 Tom Tromey <tromey@redhat.com>
988 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
990 * configure: Rebuilt.
991 * configure.in: Only add multilib support code if we just rebuilt
994 2001-05-29 Andrew Haley <aph@redhat.com>
996 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
997 pointer: the dwarf unwinder in libgcc will do everything that's
999 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1000 more than we absolutely need to.
1001 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1002 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1004 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1006 * configure: Rebuilt.
1007 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1009 (SIGNAL_HANDLER): Use siginfo style handler.
1010 (INIT_SEGV): Likewise.
1011 (INIT_FPE): Likewise.
1012 * include/ppc-signal.h: Delete whole file.
1014 2001-05-24 Tom Tromey <tromey@redhat.com>
1016 * java/lang/natString.cc (init): Throw
1017 ArrayIndexOutOfBoundsException.
1018 (getChars): Likewise.
1019 (getBytes): Likewise.
1020 (valueOf): Likewise.
1022 * configure.in: Only allow hash synchronization when POSIX threads
1024 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1025 of sync info object.
1027 2001-05-23 Tom Tromey <tromey@redhat.com>
1029 * Makefile.in: Rebuilt.
1030 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1032 Revert patch of 2001-05-21:
1033 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1034 (libgcj_la_LIBADD): Likewise.
1035 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1036 (libgcjx_la_LIBADD): Likewise.
1038 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1039 * gcj/Makefile.in: Rebuilt.
1040 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1041 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1042 * gcj/libgcj-config.h.in: New file.
1043 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1044 * configure: Rebuilt.
1045 * configure.in: Enable hash synchronization by default on some
1047 (HASH_SYNC_SPEC): New subst.
1048 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1049 Correctly use `test -z' instead of `test -n' in a couple places.
1050 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1052 * configure.host (enable_java_net_default): Initialize.
1053 (enable_hash_synchronization_default): New variable.
1055 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1057 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1058 synchronization in use.
1059 (_Jv_MarkArray): Likewise.
1060 (_Jv_AllocBytes): Don't check return result.
1061 (handle_out_of_memory): New function.
1062 (_Jv_InitGC): Set GC_oom_fn.
1063 (trace_one_vtable): New global.
1064 (_Jv_AllocTraceOne): New function.
1065 * configure.in: Added --enable-hash-synchronization.
1066 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1067 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1068 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1069 (_Jv_AllocArray): Likewise.
1070 (_Jv_AllocBytes): Likewise.
1071 (_Jv_AllocPtrFreeObject): New function.
1072 (_Jv_AllocTraceOne): Likewise.
1073 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1075 (self_cache): New global.
1076 (_Jv_ThreadSelf_out_of_line): New function.
1077 * prims.cc (_Jv_AllocBytesChecked): Removed.
1078 (_Jv_ThrowNoMemory): New function.
1079 (_Jv_AllocObject): Don't check for null return from allocator.
1080 (_Jv_NewObjectArray): Likewise.
1081 (_Jv_AllocPtrFreeObject): New function.
1082 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1083 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1084 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1085 * include/boehm-gc.h (_Jv_AllocObj): Define.
1086 (_Jv_AllocPtrFreeObj): Define.
1087 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1088 (_Jv_ThrowNoMemory): Declare.
1089 (_Jv_AllocTraceOne): Declare.
1090 (_Jv_AllocBytesChecked): Removed.
1091 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1092 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1093 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1095 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1097 * java/lang/Object.h (sync_info): Conditional upon presence of
1098 hash synchronization.
1099 * java/lang/natObject.cc: Much new code to handle thin locks and
1100 hash synchronization.
1101 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1104 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1106 * gij.cc (version): Update copyright year.
1108 2001-05-22 Anthony Green <green@redhat.com>
1110 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1113 2001-05-21 Per Bothner <per@bothner.com>
1115 Implement invocation interface; don't create new thread for main.
1116 * java/lang/Thread.java (gen_name): Make native.
1117 (<init>(Thread,THreadGroup,Runnable,String)): New private
1118 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1119 * java/lang/natThread.cc (gen_name): New implementation.
1120 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1121 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1122 (_Jv_CreateJavaVM): New runtime initialization procedure.
1123 (runFirst): New proecdure - mostly code from old FirstThread::run.
1124 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1125 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1126 JvDetachCurrentThread): New inline wrappers.
1127 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1128 _Jv_DetachCurrentThread): New declarations.
1129 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1130 (getMain): new static method.
1131 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1132 by runFirst in prims.cc.
1133 (java/lang/Thread.h): Update for new invocation interface.
1134 * include/posix-threads.h (_Jv_ThreadRegister,
1135 _Jv_ThreadUnRegister): New declarations.
1136 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1137 (really_start): Use new _Jv_ThreadRegister.
1138 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1139 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1140 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1141 Complain of called when _Jv_OnlyThread already set.
1142 (_Jv_ThreadStart): Always JvFail.
1143 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1144 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1145 * win32-threads.cc (struct starter): Remove objet field -
1146 we use _Jv_Thread_t's new thread_obj field instead.
1147 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1148 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1149 (really_start): Use new _Jv_ThreadRegister.
1150 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1151 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1152 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1153 Removed - no longer needed with new invocation interface.
1154 * Makefile.am: Update for removed/added files.
1156 2001-05-21 Per Bothner <per@bothner.com>
1158 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1159 (libgcj_la_LIBADD): Likewise.
1160 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1162 2001-05-21 Per Bothner <per@bothner.com>
1164 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1165 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1166 taken from old Integer.toString code.
1167 (Integer::valueOf): Use _Jv_FormatInt.
1168 * java/lang/Integer.java (toString): Just use call String.valueOf.
1169 * java/lang/Long.java (toString): Fix typo in comment.
1170 * java/lang/String.java (valueOf(int)): Make native.
1171 * java/lang/StringBuffer.java (append(int)): Make native.
1172 * java/lang/natStringBuffer.cc: New file, for append(jint).
1173 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1175 2001-05-21 Tom Tromey <tromey@redhat.com>
1177 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1179 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1181 * include/dwarf2-signal.h: New file.
1182 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1183 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1184 * configure: Rebuilt.
1186 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1188 * configure.in: Update boehm-gc include dir for new GC version.
1189 * configure: Rebuilt.
1190 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1192 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1193 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1194 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1197 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1199 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1200 (_Jv_MutexInit): Likewise.
1202 2001-05-18 Tom Tromey <tromey@redhat.com>
1204 * Makefile.in: Rebuilt.
1205 * Makefile.am (awt_java_source_files): Added Polygon.java.
1207 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1209 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1210 * gcj/javaprims.h: ... here.
1211 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1213 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1215 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1216 with length of ioffset table.
1217 (_Jv_IsAssignableFrom): Likewise.
1219 2001-05-17 Per Bothner <per@bothner.com>
1221 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1223 2001-05-16 Tom Tromey <tromey@redhat.com>
1225 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1228 2001-05-15 Tom Tromey <tromey@redhat.com>
1230 * java/util/GregorianCalendar.java (computeTime): Only call
1233 2001-05-14 Tom Tromey <tromey@redhat.com>
1235 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1236 ZONE_OFFSET just before computing the time.
1238 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1240 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1241 * Makefile.in: Regenerate (by hand).
1242 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1243 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1245 2001-05-11 Richard Henderson <rth@redhat.com>
1247 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1248 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1250 2001-05-11 Richard Henderson <rth@redhat.com>
1252 * exception.cc: Include unwind-pe.h. Remove all pointer
1255 2001-05-10 Tom Tromey <tromey@redhat.com>
1257 * Makefile.in: Rebuilt.
1258 * Makefile.am (awt_java_source_files): Added Polygon.java.
1259 * java/awt/Polygon.java: New file.
1261 * java/awt/geom/AffineTransform.java
1262 (setToRotation(double,double,double)): New method.
1263 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1264 (setToShear): Likewise.
1266 2001-05-10 Tom Tromey <tromey@redhat.com>
1268 * java/util/GregorianCalendar.java: Imported from Classpath.
1269 * gnu/java/locale/LocaleInformation_nl.java: New file from
1271 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1272 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1273 * gnu/java/locale/LocaleInformation.java: Likewise.
1274 * natGregorianCalendar.cc: Removed.
1275 * Makefile.in: Rebuilt.
1276 * Makefile.am (nat_source_files): Removed
1277 natGregorianCalendar.cc.
1279 2001-05-10 Tom Tromey <tromey@redhat.com>
1281 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1283 (defaultCenturyStart): Use it.
1284 (readObject): Likewise.
1285 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1287 (parse): Copy the calendar before modifying it. Correctly handle
1290 * java/util/Calendar.java (clear): Set field value(s) to 0.
1292 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1294 * Calendar.java (get): Clear areFieldsSet if requested field
1296 (set): Unset fields that depend on new value.
1298 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1300 * java/lang/Class.h (_Jv_Self): New union type.
1301 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1302 Jeff Sturm and Fergus Henderson.
1304 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1306 * java/lang/ClassLoader.java: Remove dead code fragment.
1308 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1310 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1312 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1314 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1316 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1317 * configure.host (EXCEPTIONSPEC): New.
1318 * configure.in (EXCEPTIONSPEC): New.
1319 * configure: Rebuilt.
1321 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1323 * doc/*.texi: Remove generated documentation.
1325 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1327 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1328 (performDelete): Fix #endif placement.
1330 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1332 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1333 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1334 (_Jv_ThreadDestroyData): Use _Jv_Free.
1335 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1338 2001-04-27 Tom Tromey <tromey@redhat.com>
1340 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1342 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1344 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1346 * include/jni.h (struct JNINativeInterface): Fixed types in
1347 Get/Set*ArrayRegion declarations.
1348 (class _Jv_JNIEnv): Likewise.
1350 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1352 * configure.in: Obtain THREADS with `gcc -v'.
1353 * configure: Rebuilt.
1355 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1358 * java/io/ObjectStreamClass.java (setClass): Calculate
1359 serialVersionUID for local class and compare it against the UID
1360 from the Object Stream. Throw InvalidClassException upon mismatch.
1361 (setUID): Renamed to...
1362 (getClassUID): this. Return the calculated class UID rather than
1363 setting uid field directly.
1364 (getDefinedSUID): Removed.
1365 * java/io/ObjectInputStream.java (resolveClass): Use the
1366 three-argument Class.forName().
1367 * java/io/InvalidClassException (toString): Don't include classname in
1368 result if it is null.
1370 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1372 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1373 Wrap use of inet_pton in HAVE_INET6.
1375 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1377 java.security merge and ClassLoader compliance fixes.
1379 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1380 New protectionDomain field.
1381 (forName): Add initialize parameter. Fixes declaration to comply with
1383 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1384 variant. Honour "initialize" flag.
1385 (getProtectionDomain0): New method.
1386 * java/lang/Class.java: Fix forName() declaration.
1387 (getPackage): New method based on Classpath implementation.
1388 (getProtectionDomain0): New native method decl.
1389 (getProtectionDomain): New method.
1390 * java/lang/ClassLoader.java (getParent): Now final.
1391 (definedPackages): New field.
1393 (defineClass): New variant with protectionDomain argument.
1394 (definePackage): New.
1396 (findSystemClass): Now final.
1397 (getSystemResourceAsStream): Remove redundant "final" modifier.
1398 (getSystemResource): Remove redundant "final" modifier.
1399 (getResources): Now final.
1400 (protectionDomainPermission): New static field.
1401 (unknownProtectionDomain): Ditto.
1402 (defaultProtectionDomain): Ditto.
1403 (getSystemClassLoader): Now non-native.
1404 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1405 arguments for Class.forName().
1406 * java/lang/Package.java: New file.
1407 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1408 (instance): Static initialize singleton.
1409 (findClass): Override this, not findSystemClass.
1410 * java/lang/natClassLoader.cc (defineClass0): Set class's
1411 protectionDomain field as specified.
1412 (getSystemClassLoader): Removed.
1413 (findClass): Renamed from findSystemClass. Call the interpreter via
1414 URLClassLoader.findClass if loading class via dlopen fails.
1416 * java/security/*.java: java.security import/merge with Classpath.
1417 * java/security/acl/*.java: Likewise.
1418 * java/security/interfaces/*.java: Likewise.
1419 * java/security/spec/*.java: Likewise.
1420 * java/net/NetPermission.java: Likewise.
1421 * java/net/SocketPermission.java: Likewise.
1422 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1424 * Makefile.am: Add new classes.
1425 * Makefile.in: Rebuilt.
1426 * gcj/javaprims.h: CNI namespace rebuild.
1428 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1430 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1431 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1432 * configure: Rebuilt.
1434 2001-04-21 Tom Tromey <tromey@redhat.com>
1436 * Makefile.in: Rebuilt.
1437 * Makefile.am (awt_java_source_files): Added Line2D.java.
1438 * java/awt/geom/Line2D.java: Wrote.
1440 * java/awt/Menu.java (addNotify): Wrote.
1442 * java/awt/PopupMenu.java (addNotify): Implemented.
1445 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1446 * java/awt/List.java (addNotify): Call super.addNotify.
1447 * java/awt/Label.java (addNotify): Call super.addNotify.
1448 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1449 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1450 * java/awt/Choice.java (addNotify): Call super.addNotify.
1451 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1452 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1454 * java/awt/List.java (replaceItem): Notify peer.
1456 * java/awt/geom/Rectangle2D.java
1457 (Float.setRect(float,float,float,float)): New method.
1459 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1462 * java/awt/RenderingHints.java (Key): Class now public.
1464 * java/awt/Rectangle.java (Rectangle): Now implements
1466 (getPathIterator): Removed.
1468 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1471 * java/awt/FileDialog.java: Wrote.
1473 * java/awt/EventQueue.java (isDispatchThread): Now public.
1474 (invokeLater): Likewise.
1476 * java/awt/Component.java (setCursor): Update peer.
1477 (getFontMetrics): Use peer.
1479 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1482 2001-04-20 Tom Tromey <tromey@redhat.com>
1484 * java/awt/List.java: Wrote.
1485 * java/awt/Dialog.java: Wrote.
1487 2001-04-20 Warren Levy <warrenl@redhat.com>
1489 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1490 * java/text/SimpleDateFormat.java
1491 (indexInArray): Removed private method.
1492 (processYear): Removed private method.
1493 (parseLenient): Removed private method.
1494 (parseLeadingZeros): Removed private method.
1495 (parseStrict): Removed private method.
1496 (expect): Added new private method.
1497 (parse): Reverted to pre-Classpath merge version with minor fixes.
1498 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1501 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1503 * java/io/File.java (normalizePath): New private method.
1504 (File (String)): Use normalizePath().
1505 (File (String, String)): Likewise.
1507 * Makefile.am (libffi_files): Removed.
1508 (libgcj.la): Link libffi as a convenience library instead of
1509 refering to its object files directly.
1510 * Makefile.in: Rebuilt.
1512 2001-04-08 Per Bothner <per@bothner.com>
1514 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1515 Recalculate hash, since Utf8Const's hash is only 16 bits.
1517 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1518 bits of hash to calculate step for chaining.
1520 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1521 when 2/3 full, rather than 3/4 full.
1523 2001-04-06 Tom Tromey <tromey@redhat.com>
1525 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1526 (wrap_value<T*>): New specialization.
1527 (_Jv_JNI_PopLocalFrame): Update env->locals.
1529 2001-04-05 Tom Tromey <tromey@redhat.com>
1531 * libtool-version: Updated current.
1533 2001-04-04 Andreas Jaeger <aj@suse.de>
1535 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1536 * gcj/Makefile.in: Rebuilt.
1537 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1538 * Makefile.in: Rebuilt.
1539 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1540 * testsuite/Makefile.in: Rebuild.
1541 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1542 * include/Makefile.in: Rebuild.
1544 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1546 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1547 compiled test', not 'execution from source compiled test'.
1548 Use UNTESTED, not XFAIL, for tests which are not run because
1549 they depend on a previous test which failed.
1551 2001-04-02 Richard Henderson <rth@redhat.com>
1553 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1554 the same tree as gcc.
1555 * configure: Rebuilt.
1557 * exception.cc (_Jv_Throw): Clarify commentary.
1559 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1561 * jni.cc (wrap_value<jclass>): New specialization.
1563 2001-04-02 Tom Tromey <tromey@redhat.com>
1565 * java/io/PrintStream.java (out): Removed field. Fixes PR
1567 (write): Call flush, not out.flush, per spec.
1568 (close): Flush output stream, per spec. Handle
1569 InterruptedIOException.
1570 (checkError): Likewise.
1571 (flush, print, write): Handle InterruptedIOException per spec.
1572 (PrintStream): Don't create BufferedOutputStream.
1573 (work_bytes): New field.
1574 (writeChars): Use work_bytes. Don't assume `out' is a
1575 BufferedOutputStream.
1577 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1579 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1582 2001-03-30 Tom Tromey <tromey@redhat.com>
1584 * jni.cc (add_char): Correctly encode non-ascii characters.
1585 (add_char): Define even when INTERPRETER not defined.
1586 (mangled_name): Likewise.
1587 (_Jv_GetJNIEnvNewFrame): Likewise.
1588 (_Jv_LookupJNIMethod): Likewise.
1590 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1592 * configure.host: Enable interpreter for PPC.
1594 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1596 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1597 to "file.separator", "path.separator", and "java.io.tmpdir" property
1599 * java/io/File.java: Likewise.
1600 * java/io/natFile.cc (init_native): Likewise.
1601 * java/io/natFileWin32.cc (init_native): Likewise.
1603 2001-04-01 Per Bothner <per@bothner.com>
1605 * java/lang/natString.cc (intern): If string's data does not point to
1606 this String, make a fresh String that does.
1608 * java/lang/natString.cc (unintern): Replace by static function.
1609 * java/lang/String.java (unintern): Remove method.
1611 2001-04-01 Per Bothner <per@bothner.com>
1613 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1614 (finish): def.deflate needs to be called in a loop.
1615 (inbuf, inbufLength): New private fields.
1616 (write(int)): Use inbuf.
1617 (write(byte[],int,int): Check if pending output in inbuf.
1618 * ZipOutputStream.java: Don't use Deflater if stored.
1619 Use a Checksum object directly, not via a CheckedOutputStream.
1620 (uncompressed_size): New field,
1621 (closeEntry): Only write data_directory if needed.
1622 (write): If STORED, write directly.
1623 Always update crc, and uncompressed_size.
1624 (write_entry): Fix lots of protocol erors.
1626 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1628 1.3-Compliant Implementation of java.io.File.
1629 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1630 "path.separator", and "java.io.tmpdir" from the File class, instead
1631 of setting them explicitly.
1632 * java/io/File.java: Do not canonicalize paths for security manager
1633 checks. Call init_native() from static initializer. Do not pass path
1634 argument to native methods. New native method declarations. Some
1635 security manager checks moved to checkWrite().
1636 (equals): Check file system case sensitivity and act appropriatly.
1637 (hashCode): Likewise.
1638 (isHidden): New method implemented.
1639 (performList): Changed prototype. Now takes a class argument specifying
1640 the class of the returned array: Strings or File objects. Also added
1641 FileFilter argument.
1642 (listFiles): New variants with "File" return type implemented.
1643 (createTempFile): Use createNewFile(). Use maxPathLen.
1644 (setReadOnly): New method implemented.
1645 (listRoots): Likewise.
1646 (compareTo): Likewise.
1647 (setLastModified): Likewise.
1648 (checkWrite): New method.
1650 * java/io/natFile.cc: Various functions no longer take canonical path
1652 (stat): Handle ISHIDDEN query.
1653 (isAbsolute): Remove WIN32 cruft.
1654 (performList): New arguments. Handle returning either File[] or String[]
1655 arrays. Check with FileFilter or FilenameFilter arguments as
1656 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1657 (performSetReadOnly): New method implemented.
1658 (performListRoots): Likewise.
1659 (performSetLastModified): Likewise.
1660 (performCreate): Likewise.
1661 (init_native): New initialization function.
1662 * java/io/natFileWin32.cc: Various functions no longer take canonical
1664 (stat): Add FIXME about ISHIDDEN query.
1665 (performList): New arguments. Handle returning either File[] or String[]
1666 arrays. Check with FileFilter or FilenameFilter arguments as
1667 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1668 (performSetReadOnly): New. Stubbed.
1669 (performListRoots): Likewise.
1670 (performSetLastModified): Likewise.
1671 (performCreate): Likewise.
1672 (init_native) New initialization function.
1673 * configure.in: Check for utime() and chmod().
1674 * configure: Rebuilt.
1675 * include/config.h.in: Rebuilt.
1677 Resolves PR libgcj/1759.
1679 2001-03-28 Richard Henderson <rth@redhat.com>
1681 IA-64 ABI Exception Handling:
1682 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1683 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1684 Remove EXCEPTIONSPEC.
1685 * configure.host (libgcj_sjlj): Remove.
1686 * configure.in (EXCEPTIONSPEC): Remove.
1687 (enable-sjlj-exceptions): Detect if not specified.
1688 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1689 what header we're looking for.
1690 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1691 * Makefile.in, configure: Regenerate.
1692 * exception.cc: Don't declare libgcc2 stuff.
1693 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1694 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1695 (win32_get_restart_frame): Remove.
1696 (struct java_exception_header): New.
1697 (__gcj_exception_class): New.
1698 (get_exception_header_from_ue): New.
1699 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1700 (size_of_encoded_value, read_encoded_value): New.
1701 (read_uleb128, read_sleb128, parse_lsda_header): New.
1702 (get_ttype_entry, __gcj_personality_sj0): New.
1703 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1705 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1707 * javax/naming/InitialContext.java (init): Fix typo.
1708 (composeName): Remove unnecessary semicolon.
1709 (addToEnvironment): Remove unnecessary semicolon.
1710 (addToEnvironment): Use put() instead of add().
1712 * javax/naming/InitialContext.java (InitialContext):
1714 (destroySubcontext): Method doesn't return a result.
1715 * javax/naming/Context.java: Import java.util.Hashtable.
1716 * javax/naming/Name.java: Import java.util.Enumeration.
1718 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1720 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1721 objects in subdirectories.
1722 * Makefile.in: Rebuilt.
1724 2001-03-25 Richard Henderson <rth@redhat.com>
1726 * exception.cc (java_eh_info): Make value type jthrowable.
1727 (_Jv_type_matcher): Remove now unneeded cast.
1728 (_Jv_Throw): Make argument type jthrowable. Munge name
1729 for SJLJ_EXCEPTIONS here ...
1730 * gcj/cni.h: ... not here.
1732 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1734 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1735 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1736 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1737 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1738 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1739 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1740 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1741 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1742 java/lang/natDouble.cc, java/lang/natObject.cc,
1743 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1744 java/lang/natString.cc, java/lang/natSystem.cc,
1745 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1746 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1747 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1748 java/util/zip/natInflater.cc:
1749 Use throw, not JvThrow or _Jv_Throw.
1751 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1753 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1754 paramater, bump it to 1.
1755 * java/util/Hashtable.java (Hashtable): Likewise.
1757 2001-03-23 Per Bothner <per@bothner.com>
1759 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1760 check for errors, since we don't want to throw exception on
1761 overflow/underflow. Instead, trim whitespace, and then check that
1762 _strtod_r uses up all the rest of the string.
1764 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1765 ancestors array is invalid for interfaces, so do that *after*
1766 check that the target type is not an interface.
1768 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1770 * prims.cc (_Jv_FindClassFromSignature): Check return of
1771 recursive call. Do not abort on invalid signature; return NULL
1774 2001-03-22 Tom Tromey <tromey@redhat.com>
1776 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1777 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1779 * include/jvm.h (_Jv_ResolveField): Declare.
1780 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1781 * resolve.cc (_Jv_ResolveField): No longer conditional on
1784 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1786 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1787 for libtool hacking.
1788 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1789 to a temporary file, then invoke libtool with the -objectlist
1791 (libgcjx.la): Likewise.
1792 * Makefile.in: Rebuilt.
1794 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1796 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1798 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1800 * jni.cc (add_char): Handle `.' like `/'.
1802 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1804 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1805 initialize if exception_types is null.
1806 * java/lang/reflect/Constructor.java: Likewise.
1807 * java/lang/reflect/natConstructor.cc (getType): Initialize
1808 exception_types to an empty Object array.
1810 2001-03-21 Tom Tromey <tromey@redhat.com>
1812 * configure: Rebuilt.
1813 * configure.in (GCJFLAGS): Subst.
1814 * Makefile.in: Rebuilt.
1815 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1816 (gij_LDFLAGS): Likewise.
1817 (JC1FLAGS): Added GCJFLAGS and removed -g.
1819 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1820 read/write case. Fixes PR libgcj/2338.
1822 2001-03-20 Warren Levy <warrenl@redhat.com>
1824 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1825 and corrected SimpleTimeZone's for the timezones hash table.
1827 2001-03-19 Per Bothner <per@bothner.com>
1829 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1830 "canonicalize" "../../xxx" to "/xxx".
1832 2001-03-19 Mark Wielaard <mark@klomp.org>
1834 * java/util/ArrayList.java: Remove RCS keywords from comments
1835 * java/util/BasicMapEntry.java: idem
1836 * java/util/Dictionary.java: idem
1837 * java/util/HashSet.java: idem
1839 * java/util/EventObject.java: reindent
1840 * java/util/Properties.java: idem
1841 * java/util/SortedMap.java: idem
1843 * java/util/Enumeration.java: Merge with Classpath
1844 * java/util/EventListener.java: idem
1845 * java/util/Observable.java: idem
1846 * java/util/Observer.java: idem
1847 * java/util/Stack.java: idem
1849 2001-03-17 Tom Tromey <tromey@redhat.com>
1851 * java/lang/natString.cc (rehash): Don't bother with memset;
1852 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1854 (UNMASK_PTR): New macro.
1855 (intern): Unmask pointer before returning it. Register finalizer
1857 (unintern): Handle case where
1858 (MASK_PTR): New macro.
1859 (PTR_MAKSED): Likewise.
1860 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1862 2001-03-01 Andrew Haley <aph@redhat.com>
1864 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1865 stackTrace buffer to a correctly aligned pointer array.
1867 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/lang/Runtime.java (_exit): Declare new package-private native.
1870 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1871 without a security manager check.
1872 (exit): Call _exit after security check.
1873 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1875 * java/lang/System.java (setSecurityManager): If a security manager
1876 is already in place, call checkPermission.
1877 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1878 throws an exception, try to deal with it gracefully.
1879 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1880 Only try to print the subordinate stack trace if "exception" is set.
1881 Print our class name first.
1883 2001-03-08 Tom Tromey <tromey@redhat.com>
1885 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1886 info for array classes.
1887 Fixes PR libgcj/1971.
1889 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1891 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1894 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1896 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1897 instead of the new JDK1.2 API. This is simpler and makes
1898 back-porting the classes to JDK1.1 trivial.
1899 (readObject): likewise.
1901 2001-03-01 Per Bothner <per@bothner.com>
1903 Changes merged from Kawa's gnu.math.
1904 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1905 (rshift(int[],int[],int,int): Removed - not needed.
1906 (gcd): Use rshift0 rather than rshift.
1907 * java/math/BigInteger.java (setShiftRight): Likewise.
1908 (divide): Simplify by using rshift0.
1909 (divide): Zero-extend results if high-order bit set.
1911 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1913 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1916 2001-02-23 Per Bothner <per@bothner.com>
1918 Change to sometimes include class name in ClassFormatError message.
1919 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1920 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1921 boolean instead of throwing ClassFormatError on failure.
1922 (throw_class_format_error): Change static function to method.
1923 (_Jv_ClassReader): New inline methods verify_identifier,
1924 two overloads of verify_classname, verify_field_signature, and
1925 verify_method_signature
1926 * include/java-interp.h: Update declarations to return bool.
1927 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1928 ClassFormatError since _Jv_VerifyClassName now returns bool.
1930 2001-02-23 Per Bothner <per@bothner.com>
1932 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1933 c++filt to select java-style output.
1935 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1937 Fix for PR java/2040:
1938 * java/util/HashMap.java (HashMap): Don't throw exception for
1939 loadFactor > 1. Add exception messages.
1940 * java/util/Hashtable.java (Hashtable): Likewise.
1942 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1944 Disable libgcjx by default.
1945 * configure.in: Add support for --enable-java-awt configure option.
1946 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1947 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1948 * Makefile.in: Rebuilt.
1949 * configure: Rebuilt.
1951 2001-02-20 Tom Tromey <tromey@redhat.com>
1953 * java/io/PipedWriter.java (flush): Throw exception if stream
1955 * java/io/OutputStreamWriter.java (write): Throw exception if
1957 (writeChars): Don't throw exception if stream closed.
1958 * java/io/CharArrayWriter.java (closed): New field.
1960 (flush): Throw exception if stream closed.
1961 (reset): Synchronize on correct lock. Allow stream to be
1963 (toCharArray, toString, writeTo): Synchronize.
1964 (write): Throwe exception if stream closed.
1965 * java/io/BufferedWriter.java (close): Clear `buffer'.
1966 (flush): Throw IOException if stream is closed.
1969 2001-02-16 Tom Tromey <tromey@cygnus.com>
1971 * java/lang/ThreadGroup.java (activeCount): Only include threads
1973 (enumerate): Likewise.
1975 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1977 * java/lang/Integer.java (getInteger): Return default argument if
1978 property is not set. Don't call decode with null argument.
1979 * java/lang/Long.java (getLong): Likewise.
1981 * java/io/CharArrayReader.java (CharArrayReader): Throw
1982 IllegalArgumentException if constructor arguments are illegal.
1983 (ready): Return false if no more characters can be read.
1984 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1986 2001-02-17 Mark Wielaard <mark@klomp.org>
1988 * java/util/TimerTask.java: New version from Classpath.
1990 2001-02-17 Mark Wielaard <mark@klomp.org>
1992 Remerge with Classpath
1993 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1994 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1995 (readByte): Use convertToByte().
1996 (readChar): Use convertToChar().
1997 (readInt): Use convertToInt().
1998 (readLong): Use convertToLong().
1999 (readShort): Use convertToShort().
2000 (readUnsignedByte): Use convertToUnsignedByte().
2001 (readUnsignedShort): Use convertToUnsignedShort().
2002 (readUTF): Use convertToUTF().
2004 (convertToBoolean): Resurrected.
2005 (convertToByte): Ditto.
2006 (convertToChar): Ditto.
2007 (convertToInt): Ditto.
2008 (convertToLong): Ditto.
2009 (convertToShort): Ditto.
2010 (convertToUnsignedByte): Ditto.
2011 (convertToUnsignedShort): Ditto.
2012 (convertToUTF): Ditto.
2014 2001-02-17 Mark Wielaard <mark@klomp.org>
2018 2001-02-17 Mark Wielaard <mark@klomp.org>
2020 * java/io/DataInputStream.java: update copyright notice
2021 * java/io/PrintWriter.java: idem
2022 * java/io/Reader.java: idem
2023 * java/io/StreamTokenizer.java: idem
2024 * java/io/StringReader.java: idem
2025 * java/lang/reflect/ReflectPermission.java: idem
2027 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2029 * java/util/TreeSet.java (clone): Made subclass safe, use
2030 super.clone(), not new.
2031 * java/util/TreeMap.java (clone): Likewise.
2033 * java/util/TreeMap.java (nil): Made non-final.
2034 (clone): Create new nil node for copy.
2036 * java/util/HashSet.java (clone): Made subclass safe, use
2037 super.clone(), not new.
2039 2001-02-14 Andrew Haley <aph@redhat.com>
2041 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2044 2001-02-15 Anthony Green <green@redhat.com>
2046 * defineclass.cc: Don't include alloca.h.
2047 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2048 * interpret.cc (run_normal): Ditto.
2050 * java/lang/natDouble.cc (parseDouble): Ditto.
2052 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2054 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2056 * java/util/Collections.java (ReverseComparator): New static class.
2057 (reverseOrder): Return static instance of ReverseComparator.
2059 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2060 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2061 Rectangle.clone(), not Object.clone().
2063 * java/util/HashSet.java (clone): Remove try/catch.
2065 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2066 * java/util/Collection.java: Likewise.
2067 * java/util/Comparator.java: Likewise.
2068 * java/util/Dictionary.java: Likewise.
2069 * java/util/Iterator.java: Likewise.
2070 * java/util/ListIterator.java: Likewise.
2071 * java/util/Map.java: Likewise.
2072 * java/util/Set.java: Likewise.
2074 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2076 * java/util/TreeMap.java: New file.
2077 * java/util/TreeSet.java: New file.
2078 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2079 * Makefile.in: Rebuilt.
2080 * java/util/HashSet.java (clone): Use constructor instead of calling
2082 * java/util/SortedSet.java: Sync with classpath.
2083 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2086 * java/lang/natClass.cc (getSignature): Don't try to dereference
2087 param_types if it is null. Instead, take this to mean "no parameters".
2088 * java/lang/TreeMap.java (TreeIterator.next): Throw
2089 NoSuchElementException in preference to ConcurrentModificationException.
2090 (TreeIterator.remove): Throw IllegalStateException in preference to
2091 ConcurrentModificationException.
2092 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2093 throw a NoSuchElementException.
2094 (SubMap.lastKey): Likewise.
2096 2001-02-13 Tom Tromey <tromey@redhat.com>
2098 * java/io/PipedReader.java (ready): Throw IOException if pipe
2100 * java/io/FilterReader.java (close): Don't clear `in'.
2101 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2103 (read, ready, reset, skip): Added exception message.
2104 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2105 Perform checkStatus check inside synchronized block.
2107 2001-02-13 Tom Tromey <tromey@redhat.com>
2109 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2111 2001-02-13 Tom Tromey <tromey@redhat.com>
2113 Fix for PR libgcj/1351:
2114 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2116 Include Thread.h and InterruptedIOException.h.
2118 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2120 * java/io/BlockDataException.java: Removed.
2121 * java/io/ObjectInputStream.java (readObject): Throw
2122 StreamCorruptedException, not BlockDataException.
2123 * Makefile.am: Remove BlockDataException.
2124 * Makefile.in: Rebuild.
2126 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2127 Tom Tromey <tromey@redhat.com>
2129 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2132 2001-02-09 Tom Tromey <tromey@redhat.com>
2134 * java/util/Timer.java: New version from Classpath.
2136 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2138 * java/lang/Double.java (doubleToRawLongBits): Now native.
2139 * java/lang/Float.java (floatToRawIntBits): Likewise.
2140 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2141 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2143 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2145 * java/io/File.java (java.net): Imported.
2146 (getAbsoluteFile): Added.
2147 (getCanonicalPath): Likewise.
2150 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2152 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2153 * java/lang/Integer.java: Likewise.
2154 * java/lang/Long.java: Likewise.
2155 * java/lang/Short.java: Likewise.
2156 * java/lang/Double.java: Likewise.
2157 (doubleToRawLongBits): New method.
2158 * java/lang/Float.java: As above.
2159 (floatToRawIntBits): New method.
2161 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2162 IOException if stream closed.
2164 2001-02-08 Tom Tromey <tromey@redhat.com>
2166 * java/lang/Float.java (parseFloat): New method.
2168 2001-02-08 Tom Tromey <tromey@redhat.com>
2170 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2171 * java/io/InputStreamReader.java (ready, read): Throw IOException
2172 if stream has been closed.
2174 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2176 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2177 Change sources.redhat.com and sourceware.cygnus.com references to
2180 2001-02-07 Tom Tromey <tromey@redhat.com>
2182 Fix for PR libgcj/1906:
2183 * java/text/MessageFormat.java (setLocale): Use named class
2186 (format(Object,StringBuffer,FieldPosition)): Special case if
2187 argument is an Object[].
2189 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2191 * java/util/Arrays.java: Removed "cmp" methods.
2192 (qsort): Don't use "cmp".
2195 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2197 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2198 sort. Fix for PR java/1895.
2200 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2202 * configure.host: Use sjlj-exceptions for Alpha.
2204 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2206 * libgcj.spec.in: Don't force static libgcc into the executable.
2207 * configure.in (FORCELIBGCCSPEC): Removed.
2208 * configure: Rebuilt.
2210 2001-01-31 Tom Tromey <tromey@redhat.com>
2212 * Makefile.in: Rebuilt.
2213 * Makefile.am (LTCXXCOMPILE): New macro.
2215 2001-01-26 Andrew Haley <aph@redhat.com>
2217 (INIT_FPE): Use a direct system call to set the handler.
2219 2001-01-27 Richard Henderson <rth@redhat.com>
2221 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2223 2001-01-27 Tom Tromey <tromey@redhat.com>
2225 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2226 native interface structure.
2228 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2230 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2232 (read (byte[], int, int)): Only call readNextBlock() if the block
2233 buffer would actually be overrun. Increment blockDataPosition.
2234 (callReadMethod): Propagate exceptions from invocation target.
2235 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2236 exceptions from invocation target.
2238 2001-01-26 Tom Tromey <tromey@redhat.com>
2240 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2241 to internal representation.
2242 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2243 _Jv_FindClassFromSignature.
2245 2001-01-26 Warren Levy <warrenl@redhat.com>
2247 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2248 and timezone if they are available on the system.
2250 2001-01-24 Tom Tromey <tromey@redhat.com>
2252 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2254 2001-01-24 Tom Tromey <tromey@redhat.com>
2256 * Makefile.in: Rebuilt.
2257 * Makefile.am (c_source_files): Added sf_fabs.c.
2258 * java/lang/sf_fabs.c: New file.
2260 2001-01-19 Warren Levy <warrenl@redhat.com>
2262 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2263 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2264 correctly. Adjust properly from 0-23 clock hour.
2266 2001-01-17 Mark Wielaard <mark@klomp.org>
2268 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2270 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2272 * java/lang/Class.h (isInterface): Move implementation from
2273 natClass.cc. Declare inline.
2274 (Class): Add default constructor.
2275 * java/lang/Object.h: Update comments.
2276 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2277 initialize superclass, saving a call if super is already initialized.
2279 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2281 * prims.cc (init_prim_class): Deleted.
2282 (DECLARE_PRIM_TYPE): Rewritten.
2283 * java/lang/Class.h (stdio.h): Include removed.
2284 (stddef.h): Included.
2285 (java/lang/reflect/Modifier.h): Likewise.
2286 (Class): Contructor now takes arguments, initializes fields.
2287 (initializePrim): Prototype deleted.
2288 * java/lang/natClass.cc (initializePrim): Deleted.
2290 2001-01-16 Warren Levy <warrenl@redhat.com>
2292 * java/math/BigInteger.java: Update Copyright year.
2294 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2296 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2299 2001-01-14 Mark Wielaard <mark@klomp.org>
2300 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2301 (decode): Merge comments with Classpath, don't throw Exception
2303 2001-01-12 Tom Tromey <tromey@redhat.com>
2305 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2309 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2310 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2311 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2312 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2313 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2315 * java/lang/natSystem.cc: Include locale.h if it exists.
2316 * configure: Rebuilt.
2317 * configure.in: Check for locale.h.
2319 2001-01-11 Tom Tromey <tromey@redhat.com>
2321 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2322 (Cursor(int), getPredefinedCursor): Throw exception if argument
2325 2001-01-03 Tom Tromey <tromey@redhat.com>
2327 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2328 (getLocationOnScreen): Wrote.
2330 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2332 * Makefile.am: Re-enable dependencies.
2333 * Makefile.in: Rebuilt.
2335 2001-01-10 Warren Levy <warrenl@redhat.com>
2337 * java/math/BigDecimal.java (divide): Fixed comment.
2339 2001-01-10 Warren Levy <warrenl@redhat.com>
2341 Fix for PR libgcj/1596:
2342 * java/math/BigDecimal.java (divide): Check newScale for validity.
2343 Ensure that BigInteger.pow() is called with a non-negative value.
2344 (setScale (int)): New public method.
2345 (setScale (int,int)): New public method.
2347 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2349 Fix for PR libgcj/1338:
2350 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2351 commentChar. Fixed typos in comments.
2353 2001-01-08 Warren Levy <warrenl@redhat.com>
2355 Fix for PR libgcj/1411:
2356 * Makefile.am: Removed java/util/natTimeZone.cc.
2357 * Makefile.in: Rebuilt.
2358 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2359 missing localized timezone names.
2360 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2361 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2362 (init_properties): Set user.timezone property.
2363 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2364 default timezone names; removed non-standard ones. Use standard
2366 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2368 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2370 (getDefaultTimeZoneId): Removed.
2372 * java/util/natTimeZone.cc: Removed.
2374 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2376 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2377 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2378 (_Jv_GetArrayClass): New inline function.
2379 (arrayclass): New field.
2380 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2381 _Jv_GetArrayElementFromElementType.
2382 (_Jv_NewPrimArray): Ditto.
2383 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2384 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2385 Set Modifier::ABSTRACT.
2386 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2387 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2388 Now synchronized. Array classes are now referenced from
2389 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2390 Set array classes' accessibility flags correctly. Optimize so that
2391 all array classes share the same IDT.
2392 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2393 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2394 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2395 in superclasses from overwriting classes own fields.
2396 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2397 Modifier::isAbstract().
2398 (null_idt): New static field.
2399 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2401 (_Jv_IndexOf): Made inline.
2402 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2404 2001-01-08 Tom Tromey <tromey@redhat.com>
2406 Fix for PR java/1586:
2407 * Makefile.in: Rebuilt.
2408 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2410 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2412 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2413 from the c++ compiler.
2414 * Makefile.in: Rebuilt.
2416 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2418 All files with updated copyright.
2419 * prims.cc (class _Jv_PrimClass): Removed.
2420 (init_prim_class): New function.
2421 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2422 `_Jv_PrimClass' in primitive type declarations. Assign to the
2423 value returned by `init_prim_class.'
2424 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2425 primitive type declarations.
2426 (JvPrimClass): Cast to `jclass' removed.
2427 * java/lang/Class.h (Class): New constructor.
2428 (Class): New copy constructor.
2429 (initializePrim): New prototype.
2430 (_Jv_PrimClass): Field removed.
2431 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2432 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2433 (class java::lang::Object): `finalize' moved up front.
2434 * java/lang/natClass.cc
2435 (isAssignableFrom): Turned outline.
2436 (isInstance): Likewise.
2437 (isInterface): Likewise, fixed indentation.
2438 (initializePrim): New function.
2440 2001-01-07 Anthony Green <green@redhat.com>
2442 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2444 * Makefile.in: Rebuilt.
2446 * scripts/TexinfoDoclet.java: New file.
2448 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2449 doc/java-awt-color.texi, doc/java-lang.texi,
2450 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2451 doc/java-awt-event.texi, doc/java-net.texi,
2452 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2453 doc/java-awt-image.texi, doc/java-security.texi,
2454 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2455 doc/java-text.texi, doc/java-beans-beancontext.texi,
2456 doc/java-util-jar.texi, doc/java-beans.texi,
2457 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2458 doc/java-lang-ref.texi: New files.
2460 2001-01-07 Anthony Green <green@redhat.com>
2462 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2463 be used for both input and output, so don't clear doInput.
2465 * java/lang/StringBuffer.java: Fix comments.
2467 2001-01-06 Anthony Green <green@redhat.com>
2469 * java/beans/PropertyDescriptor.java: Fix comment.
2470 * java/io/PushbackReader.java: Fix comment.
2471 * java/io/ObjectStreamClass.java: Fix comment.
2472 * java/io/DataInputStream.java: Fix comment.
2473 * java/io/PipedInputStream.java: Fix comments.
2474 * java/io/PipedReader.java: Fix comments.
2475 * java/sql/DatabaseMetaData.java: Fix comments.
2477 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2479 * java/io/PipedReader: Synchronize on "lock" instead of this.
2481 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2483 * java/lang/Thread.java: Update comment.
2485 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2486 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2487 * java/io/PipedReader: New implementation based on new
2489 * java/io/PipedWriter: Updated to match new PipedReader.
2491 2001-01-03 Tom Tromey <tromey@redhat.com>
2493 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2494 (getViewportSize): Insets include scrollbar size.
2495 (doLayout): Finished.
2496 (getScrollPosition): Wrote.
2497 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2499 2001-01-02 Tom Tromey <tromey@redhat.com>
2501 * java/awt/ScrollPane.java: Wrote.
2502 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2505 * java/awt/Panel.java (Panel()): Fixed.
2507 * java/awt/Component.java (isShowing): Return false if no peer
2508 exists, and true if component is visible and no parent exists.
2509 (getLocationOnScreen): Wrote.
2510 (getPreferredSize): Removed FIXME comment.
2511 (getMinimumSize): Likewise.
2512 (getAlignmentX, getAlignmentY): Wrote.
2514 (requestFocus): Wrote.
2515 (transferFocus): Wrote.
2516 (findNextFocusComponent): New method.
2517 (hasFocus()): Wrote.
2518 (checkImage): Wrote.
2519 (enableEvents): Call setEventMask on the peer.
2521 * java/awt/Container.java (list): Use super.list() to print self.
2522 (findNextFocusComponent): New method.
2523 (setLayout): Call invalidate.
2524 (findComponentAt): Wrote.
2526 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2528 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2529 the correct versions of various linuxthreads functions get linked.
2530 * Makefile.in: Rebuilt.
2531 * java/lang/natThread.cc (finalize_native): New static function. Call
2532 _Jv_ThreadDestroyData.
2533 (initialize_native): Register finalizer for "data".
2534 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2535 (_Jv_ThreadDestroyData): New prototype.
2536 * include/win32-threads.h: Ditto.
2537 * include/no-threads.h: Ditto.
2538 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2539 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2540 move mutex and condition variable destroy code from:
2541 (really_start): ...here.
2542 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2543 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2544 (_Jv_ThreadDestroyData): Implemented.
2545 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2546 (_Jv_AllocArray): Ditto.
2548 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2550 * java/sql/DriverManager.java (getConnection): Don't set user/password
2553 2000-12-27 Warren Levy <warrenl@redhat.com>
2555 Fix for PR libgcj/1358:
2556 * java/lang/System.java: Update Copyright date properly.
2557 * java/util/Calendar.java: Fix typo in comment.
2558 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2559 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2560 initialize times. Spec says to set H:M:S values to zero only if
2562 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2563 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2564 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2565 timezones and GMT offsets, being careful to account for units of
2566 milliseconds vs. seconds.
2568 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2570 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2571 not be assigned to Object.
2573 Fix for PR libgcj/1516:
2574 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2576 (can_widen): Declared inline. Remove redundant checks for void
2577 arguments and char->short conversion. Add special case for boolean
2579 (ffi_type): Declared inline.
2580 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2582 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2584 * java/sql/SQLWarning.java: Fixed typo in comment.
2586 2000-12-26 Tom Tromey <tromey@redhat.com>
2588 * java/awt/MenuItem.java (paramString): Now protected.
2590 * java/awt/MenuShortcut.java: Implements Serializable.
2592 * java/awt/MenuBar.java: Rewrote from scratch.
2594 * java/awt/MenuComponent.java (removeNotify): Wrote.
2595 Implements Serializable.
2597 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2600 * java/awt/CheckboxMenuItem.java: Wrote.
2602 2000-12-25 Tom Tromey <tromey@redhat.com>
2604 * java/awt/MenuContainer.java: Fixed typo.
2606 * Makefile.in: Rebuilt.
2607 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2608 * java/awt/SystemColor.java: New file.
2610 * java/awt/Color.java (rgba): Now package-private.
2612 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2614 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2617 * java/awt/MenuItem.java (addNotify): New method.
2618 (MenuItem(String,MenuShortcut)): New constructor.
2619 (setLabel): Notify peer of change.
2620 (setEnabled): Likewise.
2622 * java/awt/GridLayout.java (toString): New method.
2624 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2625 (FlowLayout): Check for LEADING and TRAILING.
2626 (setAlignment): Likewise.
2627 (layoutContainer): Handle component orientation.
2629 * java/awt/Component.java (orientatin): New field.
2630 (setComponentOrientation): Wrote.
2631 (getComponentOrientation): Wrote.
2633 * java/awt/Event.java (Event): Implements Serializable.
2634 (consumed): New field for serialization.
2635 * java/awt/Dimension.java (Dimension): Implements Serializable.
2636 * java/awt/Cursor.java (Cursor): Implements Serializable.
2637 * java/awt/Container.java (Container): No longer abstract.
2639 * java/awt/Choice.java: Wrote.
2640 * java/awt/Checkbox.java: Wrote.
2641 * java/awt/ItemSelectable.java: Documented.
2642 * java/awt/CheckboxGroup.java: Wrote.
2644 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2646 (getSize): Likewise.
2648 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2650 * java/io/FileDescriptor.java: Initialize fd to -1.
2651 Remove default constructor.
2653 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2655 * java/lang/mprec.h: Change C9X reference to refer to C99.
2657 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2659 * java/lang/Throwable.java (trace_enabled): New static field.
2660 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2661 trace_enabled not set.
2662 * prims.cc (main_init): Turn off trace_enabled while creating
2663 default exception objects.
2665 2000-12-21 Tom Tromey <tromey@redhat.com>
2667 * java/beans/PropertyChangeListener.java: Extends EventListener.
2668 * java/beans/VetoableChangeListener.java: Extends EventListener.
2670 * java/util/zip/Deflater.java (update, init): Now private.
2672 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2674 * java/util/BasicMapEntry.java: Re-added.
2675 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2676 (putAll): Test for BasicMapEntry.
2677 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2678 (putAll): Test for BasicMapEntry.
2679 Change references from `HashMap.Entry' to `Entry' in various places.
2680 * Makefile.am: Add BasicMapEntry.java.
2681 * Makefile.in: Rebuilt.
2683 2000-12-18 Warren Levy <warrenl@redhat.com>
2685 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2686 need to set timezone to a valid non-null value. Partial fix for
2689 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2691 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2693 * java/awt/Button.java (addNotify): Likewise.
2694 * java/awt/Label.java (addNotify): Likewise.
2695 * java/awt/Panel.java (addNotify): Likewise.
2696 * java/awt/Scrollbar.java (addNotify): Likewise.
2697 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2698 Remove redundant null checks.
2700 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2702 * COPYING: Update to current
2703 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2704 to 19yy as example year in copyright notice).
2706 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2708 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2709 end-of-stream if avail_in is 0.
2711 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2713 * java/util/ArrayList.java (data): Declare transient.
2714 (serialPersistantFields): Removed.
2715 (readObject): Use defaultReadObject(), not readFields().
2716 (writeObject): Use defaultWriteObject(), not writeFields().
2718 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2720 * java/util/Hashtable.java (put): Remove `last' variable.
2721 Link new entry to head of list.
2722 * java/util/HashMap.java (put): Ditto.
2724 2000-12-15 Tom Tromey <tromey@redhat.com>
2726 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2727 loader to Class.forName.
2729 2000-12-14 Tom Tromey <tromey@redhat.com>
2731 * java/util/ResourceBundle.java
2732 (getBundle(String,Locale,ClassLoader)): New method.
2733 (trySomeGetBundle): Added `loader' argument.
2734 (partialGetBundle): Likewise.
2736 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2737 maximumFractionDigits, maximumIntegerDigits,
2738 minimumFractionDigits, minimumIntegerDigits): Now
2741 * java/lang/Thread.java (checkAccess): Now final.
2743 * java/lang/RuntimePermission.java: Class now final.
2745 * java/io/StringWriter.java (StringWriter(int)): Now public.
2747 * java/io/SerializablePermission.java (legal_names): Now private.
2749 * java/lang/Character.java: Updated UnicodeBlock constants.
2750 * scripts/blocks.pl: Special case private use and surrogate
2753 2000-12-12 Tom Tromey <tromey@redhat.com>
2755 * Makefile.in: Rebuilt.
2756 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2758 (GCJCOMPILE): Use it.
2761 2000-12-11 Tom Tromey <tromey@redhat.com>
2763 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2764 New static final fields.
2766 * scripts/classes.pl (scan): Skip lines with leading `*'.
2767 Fix for PR libgcj/378.
2769 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2771 * configure.in: Remove check for -fuse-divide-subroutine.
2772 * configure: Rebuilt.
2774 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2776 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2778 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2780 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2781 Remove BasicMapEntry.java and Bucket.java.
2782 * Makefile.in: Rebuilt.
2783 * java/util/HashMap.java: Rewritten.
2784 * java/util/HashSet.java: Imported from classpath.
2785 * java/util/WeakHashMap.java: Imported from classpath.
2786 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2787 * java/util/Bucket.java: Deleted.
2788 * java/util/BasicMapEntry.java: Deleted.
2789 * java/util/Collections.java (search): Use a for-loop, not iterator
2791 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2792 of elements in source.
2793 (max): Use a for-loop.
2795 (reverse): Keep track of positions instead of using Iterator's
2796 nextIndex() and previousIndex().
2797 (shuffle(List)): Initialize defaultRandom if required using
2798 double-check thread safety idiom. Call two-argument shuffle method
2799 using defaultRandom.
2800 (defaultRandom): New field.
2801 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2802 using previousIndex() and nextIndex().
2803 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2804 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2805 * java/util/AbstractMap.java (toString): Use StringBuffer.
2806 * java/lang/ref/PhantomReference.java: Imported from classpath.
2807 * java/lang/ref/SoftReference.java: Ditto.
2808 * java/lang/ref/Reference.java: Ditto.
2809 * java/lang/ref/WeakReference.java: Ditto.
2810 * java/lang/ref/ReferenceQueue.java: Ditto.
2812 2000-12-10 Richard Henderson <rth@redhat.com>
2814 * configure.host: Recognize alpha*-*, not alphaev6-*.
2816 2000-12-09 Anthony Green <green@redhat.com>
2818 * configure.host: Enable interpreter for Alpha.
2820 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2822 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2823 (ZIP): Points at fastjar instead of zip.
2824 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2825 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2826 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2827 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2828 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2829 ($(x_java_source_files:.java=.class):): Likewise.
2830 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2832 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2833 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2834 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2835 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2836 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2837 gnu/gcj/runtime/VMClassLoader.h:,
2838 java/io/ObjectInputStream$$GetField.h:,
2839 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2840 (Makefile.in): Rebuilt.
2842 2000-12-08 Tom Tromey <tromey@redhat.com>
2845 * configure: Rebuilt.
2846 * configure.in: Use echo, not `:', to create .d files.
2848 2000-12-08 Warren Levy <warrenl@redhat.com>
2850 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2851 NullPointerException so proper check of offset can be done.
2853 2000-12-08 Warren Levy <warrenl@redhat.com>
2855 * java/io/FileInputStream.java (close): Check if the fd is valid.
2856 * java/io/RandomAccessFile.java (close): Ditto.
2857 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2858 * java/net/PlainSocketImpl.java (close): Ditto.
2860 2000-12-06 Tom Tromey <tromey@redhat.com>
2862 * java/awt/GridBagConstraints.java: Filled in values for static
2865 * java/util/BitSet.java: Updated copyright notice.
2867 * Makefile.in: Rebuilt.
2868 * Makefile.am (awt_java_source_files): Added new file.
2869 * java/awt/GridBagConstraints.java: New file.
2871 2000-12-05 Tom Tromey <tromey@redhat.com>
2873 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2874 Now package-private, not protected.
2875 * java/text/DateFormatSymbols.java (equals): Now private.
2876 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2877 * java/util/BitSet.java: Class no longer final.
2879 2000-12-04 Warren Levy <warrenl@redhat.com>
2881 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2882 out code dependent on compiler and library changes.
2884 2000-12-04 Warren Levy <warrenl@redhat.com>
2886 * java/io/FilePermission.java: Made class final per spec.
2887 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2888 method name to match spec (fixed typo).
2889 * java/util/LinkedList.java: Implements List.
2891 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2893 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2894 Edgar Villanueva <edgarvil@home.com>.
2896 2000-12-03 Tom Tromey <tromey@redhat.com>
2898 * java/awt/geom/Point2D.java: Added protected constructor.
2899 (equals): New method.
2900 (Float.setLocation(float,float)): New method.
2901 * java/awt/geom/Dimension2D.java: Added protected constructor.
2902 * java/awt/geom/AffineTransform.java: Made all constants public.
2903 (concatenate): Fixed typo in name.
2904 * java/awt/event/WindowAdapter.java: Class now abstract.
2905 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2906 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2909 * java/awt/AWTError.java: Extend Error, not
2910 IllegalStateException.
2912 * Makefile.in: Rebuilt.
2913 * Makefile.am (awt_java_source_files): Added new file.
2914 * java/awt/geom/RoundRectangle2D.java: New file.
2916 * Makefile.in: Rebuilt.
2917 * Makefile.am (awt_java_source_files): Added new file.
2918 * java/awt/FlowLayout.java: New file.
2920 * Makefile.in: Rebuilt.
2921 * Makefile.am (awt_java_source_files): Added new file.
2922 * java/awt/GridLayout.java: New file.
2924 2000-12-02 Tom Tromey <tromey@redhat.com>
2926 * Makefile.in: Rebuilt.
2927 * Makefile.am (awt_java_source_files): Added new files.
2928 * java/awt/CardLayout.java: New file.
2929 * java/awt/AWTPermission.java: New file.
2931 2000-12-01 Tom Tromey <tromey@redhat.com>
2933 * java/util/Vector.java (insertElementAt): Unconditionally
2934 increment elementCount.
2935 (removeRange): Clear unused slots in vector.
2937 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2939 * java/lang/natMath.cc: Declare fabsf() function.
2940 * java/lang/mprec.h: Don't include math.h.
2941 * java/lang/dtoa.c: Include string.h.
2942 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2945 From Adam Welc <welc@cs.purdue.edu>:
2946 * java/util/LinkedList.java (removeFirst): Update `first' field.
2947 Handle the last == first case.
2948 (removeLast): Update `last' field. Handle the last == first case.
2950 2000-12-01 Warren Levy <warrenl@cygnus.com>
2952 * Makefile.am: Added entries for new java.sql modules.
2953 * Makefile.in: Rebuilt.
2955 2000-12-01 Warren Levy <warrenl@cygnus.com>
2957 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2958 that aren't quite 1.2 compatible yet.
2960 2000-11-30 Warren Levy <warrenl@cygnus.com>
2962 * java/sql/Array.java: New file from classpath.
2963 * java/sql/BatchUpdateException.java: Ditto.
2964 * java/sql/Blob.java: Ditto.
2965 * java/sql/Clob.java: Ditto.
2966 * java/sql/Ref.java: Ditto.
2967 * java/sql/SQLData.java: Ditto.
2968 * java/sql/SQLInput.java: Ditto.
2969 * java/sql/SQLOutput.java: Ditto.
2970 * java/sql/Struct.java: Ditto.
2971 * java/sql/CallableStatement.java: Merged file from claspath.
2972 * java/sql/Connection.java: Ditto.
2973 * java/sql/DataTruncation.java: Ditto.
2974 * java/sql/DatabaseMetaData.java: Ditto.
2975 * java/sql/DriverManager.java: Ditto.
2976 * java/sql/PreparedStatement.java: Ditto.
2977 * java/sql/ResultSet.java: Ditto.
2978 * java/sql/ResultSetMetaData.java: Ditto.
2979 * java/sql/SQLException.java: Ditto.
2980 * java/sql/SQLWarning.java: Ditto.
2981 * java/sql/Statement.java: Ditto.
2982 * java/sql/Types.java: Ditto.
2984 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2986 * java/lang/natSystem.cc (init_properties): Set user.language and
2988 * configure.in: Check for setlocale.
2989 * configure: Rebuilt.
2990 * include/config.h.in: Rebuilt.
2992 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2993 the infate() call didn't deliver any output. Throw a ZipException if
2994 the needsDictionary() call returns true.
2995 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2996 * java/io/InputStreamReader: Use the default buffer size for the
2997 contained BufferedInputStream.
2999 2000-11-28 Warren Levy <warrenl@cygnus.com>
3001 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3002 more time zone entries.
3003 * java/text/SimpleDateFormat.java (format): Added case for
3006 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3008 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3009 directly rather than read() in all cases. Make primitive read
3010 implementations more efficient, as defined in JDK online docs.
3011 (skipBytes): Behave like the JDK's implementation.
3012 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3013 closed stream with checkStatus() whenever an IOException can be
3015 (checkStatus): New private method.
3017 2000-11-27 Warren Levy <warrenl@cygnus.com>
3019 * Makefile.am: Added natTimeZone.cc.
3020 * Makefile.in: Rebuilt.
3021 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3022 * java/text/DateFormatSymbols.java (ampms): Made package private.
3023 (eras): Made package private.
3024 (months): Made package private.
3025 (shortMonths): Made package private.
3026 (shortWeekdays): Made package private.
3027 (weekdays): Made package private.
3028 (formatPrefixes): New private field.
3029 (localPatternCharsDefault): Made private.
3030 (dateFormats): New package private field.
3031 (timeFormats): New package private field.
3032 (formatsForKey): New private method.
3033 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3034 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3035 * java/text/SimpleDateFormat.java: Merged with Classpath.
3036 * java/util/TimeZone.java: Merged with Classpath.
3037 * java/util/natTimeZone.cc: New file.
3039 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3041 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3042 (addElement): Don't increment elementCount twice. Doh.
3043 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3044 array needs to be expanded.
3046 * java/util/Collections.java (UnmodifiableCollection): Implement
3048 (UnmodifiableList): Throw UnsupportedOperationException from
3049 modification methods. Set `l' from the one-parameter constructor.
3050 (UnmodifiableMap): Implement toString().
3051 (SynchronizedCollection): Ditto.
3052 (SynchronizedList): Set `l' from the one-parameter constructor.
3053 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3054 (SynchronizedMap): Implement toString().
3056 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3058 * javax/naming/NameParser.java,
3059 javax/naming/directory/AttributeInUseException.java,
3060 javax/naming/directory/AttributeModificationException.java,
3061 javax/naming/directory/InvalidAttributeIdentifierException.java,
3062 javax/naming/directory/InvalidAttributesException.java,
3063 javax/naming/directory/InvalidAttributeValueException.java,
3064 javax/naming/directory/InvalidSearchControlsException.java,
3065 javax/naming/directory/InvalidSearchFilterException.java,
3066 javax/naming/directory/NoSuchAttributeException.java,
3067 javax/naming/directory/SchemaViolationException.java: New files.
3069 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3071 * javax/naming/InitialContext.java (rebind): Implement.
3072 (unbind): Implement.
3073 (rename): Implement.
3075 (listBindings): Implement.
3076 (destroySubcontext): Implement.
3077 (createSubcontext): Implement.
3078 (lookupLink): Implement.
3079 (getNameParser): Implement.
3080 (composeName): Implement.
3081 (addToEnvironment): Implement.
3083 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3085 * javax/naming/AuthenticationException.java,
3086 javax/naming/AuthenticationNotSupportedException.java,
3087 javax/naming/CannotProceedException.java,
3088 javax/naming/CommunicationException.java,
3089 javax/naming/ConfigurationException.java,
3090 javax/naming/ContextNotEmptyException.java,
3091 javax/naming/InsufficientResourcesException.java,
3092 javax/naming/InterruptedNamingException.java,
3093 javax/naming/InvalidNameException.java,
3094 javax/naming/LimitExceededException.java,
3095 javax/naming/LinkException.java,
3096 javax/naming/LinkLoopException.java,
3097 javax/naming/MalformedLinkException.java,
3098 javax/naming/NameAlreadyBoundException.java,
3099 javax/naming/NameNotFoundException.java,
3100 javax/naming/NamingSecurityException.java,
3101 javax/naming/NoPermissionException.java,
3102 javax/naming/NotContextException.java,
3103 javax/naming/PartialResultException.java,
3104 javax/naming/ReferralException.java,
3105 javax/naming/ServiceUnavailableException.java,
3106 javax/naming/SizeLimitExceededException.java,
3107 javax/naming/TimeLimitExceededException.java: New files.
3109 * javax/naming/Name.java (clone): New method.
3110 (compareTo): New method.
3111 (isEmpty): New method.
3112 (getAll): New method.
3113 (getPrefix): New method.
3114 (getSuffix): New method.
3115 (startsWith): New method.
3116 (endsWith): New method.
3117 (addAll): New method.
3118 (addAll): New method.
3121 (remove): New method.
3123 * javax/naming/Context.java (lookup): New method.
3124 (rebind): New method.
3125 (unbind): New method.
3126 (rename): New method.
3128 (listBindings): New method.
3129 (destroySubcontext): New method.
3130 (createSubcontext): New method.
3131 (lookupLink): New method.
3132 (getNameParser): New method.
3133 (composeName): New method.
3134 (addToEnvironment): New method.
3135 (removeFromEnvironment): New method.
3136 (getEnvironment): New method.
3137 (close): New method.
3138 (getNameInNamespace): New method.
3140 * javax/naming/InitialContext.java (lookup): New method.
3141 (rebind): New method.
3142 (unbind): New method.
3143 (rename): New method.
3145 (listBindings): New method.
3146 (destroySubcontext): New method.
3147 (createSubcontext): New method.
3148 (lookupLink): New method.
3149 (getNameParser): New method.
3150 (composeName): New method.
3151 (addToEnvironment): New method.
3152 (removeFromEnvironment): New method.
3153 (getEnvironment): New method.
3154 (close): New method.
3155 (getNameInNamespace): New method.
3157 2000-11-26 Tom Tromey <tromey@cygnus.com>
3159 * Makefile.in: Rebuilt.
3160 * Makefile.am (core_java_source_files): Added
3161 RuntimePermission.java.
3162 * java/lang/RuntimePermission.java: Imported from Classpath.
3163 * java/lang/Thread.java (getContextClassLoader): Now
3164 synchronized. Added security code.
3165 (setContextClassLoader): Likewise.
3167 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3168 length field of array.
3169 (_Jv_NewPrimArray): Likewise.
3170 * gcj/array.h (__JArray): `length' field now const. Added
3173 2000-11-26 Anthony Green <green@redhat.com>
3175 * javax/naming/spi/NamingManager.java,
3176 javax/naming/spi/ObjectFactory.java,
3177 javax/naming/spi/InitialContextFactory.java,
3178 javax/naming/spi/InitialContextFactoryBuilder.java,
3179 javax/naming/RefAddr.java, javax/naming/Reference.java,
3180 javax/naming/NamingException.java, javax/naming/Context.java,
3181 javax/naming/Referenceable.java,
3182 javax/naming/directory/InitialDirContext.java,
3183 javax/naming/directory/DirContext.java,
3184 javax/naming/directory/Attributes.java,
3185 javax/naming/directory/Attribute.java,
3186 javax/naming/StringRefAddr.java,
3187 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3188 javax/naming/InitialContext.java,
3189 javax/naming/NoInitialContextException.java: New files.
3191 2000-11-25 Anthony Green <green@redhat.com>
3193 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3194 (_Jv_NewPrimArray): Likewise.
3195 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3196 (class JArray): Removed constructor.
3198 * java/lang/Thread.java (context_class_loader): New private data.
3199 (getContextClassLoader): New method.
3200 (setContextClassLoader): New method.
3201 (Thread): Initialize context_class_loader.
3203 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3204 (getResource): Rename to findResource.
3205 (findResource): New method. Used to be getResource.
3206 (getResourceAsStream): Deleted.
3207 (jarFileize): Extracted logic from URLClassLoader constructor into
3208 this new private method.
3209 (addURL): New protected method.
3210 (URLClassLoader): Call jarFileize. Use addElement instead of
3212 (findResources): New method.
3214 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3215 (getResource): Implement correct logic.
3216 (findResource): New method.
3217 (getResources): New method.
3218 (findClass): Create a ClassNotFoundException with the name of the
3219 class rather than nothing at all.
3220 (defineClass) Only throw ClassFormatError.
3222 * java/lang/Class.java (forName): New method.
3223 * java/lang/Class.h (forName): New method.
3224 * java/lang/natClass.cc (forName): New method.
3226 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3228 * java/lang/System.java (setProperties): Only call init_properties()
3229 if properties is null.
3230 (getProperties): Ditto.
3231 (getProperty): Ditto.
3232 (setProperty): Call init_properties if properties are null.
3233 (prop_init): Remove field.
3234 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3235 method. Check for null properties after synchronizing instead of
3236 prop_init flag. Set the properties field last for thread safety.
3238 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3239 test for gcj.dumpobjects property and enable object stream dumping
3241 (dumpElement): No longer native.
3242 (dumpElementln): Ditto.
3243 (setDump): Do not define.
3244 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3245 (dumpElementln): Removed.
3248 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3250 * configure: Rebuilt.
3251 * Makefile.in: Rebuilt.
3252 * Makefile.am (built_java_source_files): Add Configuration.java.
3253 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3254 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3255 Create `gnu' directory in the build tree.
3256 * gnu/classpath/Configuration.java.in: New file.
3258 2000-11-24 Tom Tromey <tromey@cygnus.com>
3260 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3262 (_Jv_NewPrimArray): Likewise.
3264 * gcj/array.h (__JArray): `length' field now const. Added
3266 (class JArray): Added constructor.
3268 2000-11-23 Mark Wielaard <mark@klomp.org>
3270 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3273 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3275 * java/util/Vector.java: Improve exception messages.
3276 (Vector): Check initialCapacity for IllegalArgumentException.
3277 (tromToSize): Don't check for elementCount == elementData.length
3279 (toArray): Don't try to set null marker if target array is the same
3280 length as the vector.
3282 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3284 * Makefile.in: Rebuilt.
3285 * Makefile.am (core_java_source_files): Added Collections.java.
3286 * java/util/List.java: Merged from classpath.
3287 * java/util/Vector.java: Ditto.
3288 * java/util/Collections.java: From classpath.
3289 * java/util/ArrayList.java (addAll(Collection)): Call
3290 addAll(int,Collection) instead of duplicating code.
3291 (indexOf): Clean up int initialization.
3292 (clear): Set cleared array entries to null, to allow garbage
3294 * java/util/List.java: Minor formatting fixes.
3295 * java/util/SimpleTimeZone.java: ditto.
3297 2000-11-18 Tom Tromey <tromey@cygnus.com>
3299 * Makefile.in: Rebuilt.
3300 * Makefile.am (core_java_source_files): Added new files.
3301 * java/lang/reflect/ReflectPermission.java: New class.
3302 * java/io/FileFilter.java: From Classpath
3303 * java/io/FilePermission.java: From Classpath.
3305 2000-11-17 Tom Tromey <tromey@cygnus.com>
3307 * java/lang/reflect/AccessibleObject.java (isAccessible,
3308 setAccessible): Now public.
3310 * java/lang/natString.cc: Include Locale.h.
3311 (toUpperCase): Added `locale' argument. Handle locale
3313 (toLowerCase): Added `locale' argument. Handle locale
3315 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3316 CAPITAL_I): New defines.
3317 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3320 (toUpperCase, toLowerCase): New methods. Variants which accept
3323 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3326 * java/util/PropertyPermission.java: Re-merged from Classpath.
3328 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3330 * java/text/StringCharacterIterator.java: Reindented.
3331 (setText): New method.
3333 2000-11-17 Mark Wielaard <mark@klomp.org>
3335 Merge with Classpath (changes by Bryce McKinlay)
3336 * java/util/jar/*.java: Reformat all to unofficial standard coding
3337 style. No changes of substance.
3339 2000-11-17 Mark Wielaard <mark@klomp.org>
3341 * java/util/zip/*.java: Javadoc updates.
3343 2000-11-17 Tom Tromey <tromey@cygnus.com>
3345 * java/text/CollationKey.java: Implement Comparable.
3346 (compareTo(Object)): New method.
3347 * java/text/Collator.java (compare(Object,Object)): New method.
3348 Implement Comparator.
3350 * java/util/zip/InflaterInputStream.java (available): New method.
3351 (close): New method.
3352 (read, available, skip, fill): Throw exception if stream closed.
3353 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3354 getNextEntry): Throw exception if closed.
3356 2000-11-16 Tom Tromey <tromey@cygnus.com>
3358 * java/io/PushbackReader.java: Merged with Classpath.
3359 * java/util/Arrays.java: Updated from Classpath.
3361 * scripts/blocks.pl: New file.
3362 * java/lang/Character.java (Subset): New class.
3363 (UnicodeBlock): New class.
3365 * java/lang/Math.java (toDegrees, toRadians): New methods.
3367 * java/lang/Float.java: Implement Comparable.
3368 (compareTo): New methods.
3369 * java/lang/Double.java: Implement Comparable.
3370 (compareTo): New methods.
3372 2000-11-16 Warren Levy <warrenl@cygnus.com>
3374 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3376 (listeners): Made transient.
3377 (source): Renamed from 'bean'.
3378 (children): New field for serialization.
3379 (propertyChangeSupportSerializedDataVersion): Ditto.
3380 (serialVersionUID): Ditto.
3381 (writeObject): New serialization method.
3382 (readObject): New serialization method.
3383 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3385 (listeners): Made transient.
3386 (source): Renamed from 'bean'.
3387 (children): New field for serialization.
3388 (vetoableChangeSupportSerializedDataVersion): Ditto.
3389 (serialVersionUID): Ditto.
3390 (writeObject): New serialization method.
3391 (readObject): New serialization method.
3392 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3393 to allow constructor to have a return type (i.e. the class that the
3394 constructor constructs).
3396 2000-11-14 Tom Tromey <tromey@cygnus.com>
3398 * Makefile.in: Rebuilt.
3399 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3402 2000-11-02 Warren Levy <warrenl@cygnus.com>
3404 * java/io/ObjectInputStream.java (readObject): Added code to
3405 conditionally dump out the serialized data.
3406 Handle ENDBLOCKDATA case a bit more gracefully since the current
3407 behavior doesn't seem to work as expected.
3408 (readStreamHeader): Added code for serialized data dumper.
3409 (readNextBlock): Ditto.
3410 (readFields): Ditto.
3411 (dump): New private static field for turning on/off dumper.
3412 (setDump): New native method.
3413 (dumpElement): New native method.
3414 (dumpElementln): New native method.
3415 * java/io/natObjectInputStream.cc (setDump): New method.
3416 (dumpElement): New method.
3417 (dumpElementln): New method.
3419 2000-11-02 Warren Levy <warrenl@cygnus.com>
3421 * java/net/InetAddress.java (addr): Renamed from 'address'.
3422 (address): New field to match Serialized Form doc.
3423 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3424 (family): New serialization field.
3425 (serialVersionUID): New field.
3426 (readObject): New method.
3427 (writeObject): New method.
3428 (getFamily): New native method.
3429 (InetAddress): Set family.
3430 * java/net/natInetAddress.cc (getFamily): New method.
3431 (addr): Renamed from 'address'.
3432 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3433 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3434 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3436 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3438 * java/util/AbstractList.java (SubList): Make it a top-level private
3440 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3442 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3443 * Makefile.in: Rebuilt.
3445 2000-11-02 Tom Tromey <tromey@cygnus.com>
3447 * Makefile.in: Rebuilt.
3448 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3451 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3453 * java/util/AbstractList.java (remove): Comment out modCount increment
3454 to work around compiler bug.
3457 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3459 * java/util/AbstractList.java: Throw messages with
3460 IndexOutOfBoundsExceptions.
3461 (listIterator()): Call listIterator(0).
3462 (size): New field. Initialize to size().
3463 (hasNext): Test position against size, not size().
3464 (remove): Increment knownMod by one instead of resetting it from
3467 (SubList.upMod): Removed.
3468 (SubList.set): Don't call upMod() or update knownMod.
3469 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3470 (SubList.remove): Ditto.
3471 (SubList.addAll): Don't call backingList.size(). Increment size from
3473 (SubList.iterator): New method. Call listIterator(0).
3474 (SubList.listIterator): New method. Restore code to return an anonymous
3475 listIterator implementation (with some changes).
3476 * java/util/AbstractSequentialList.java: Throw messages with
3477 IndexOutOfBoundsExceptions.
3478 (addAll): Add a specnote.
3479 * java/util/ArrayList.java (removeRange): Get the math right.
3480 (addAll): Increment modCount _before_ creating iterator.
3481 * java/util/LinkedList.java: Rewritten, mostly.
3483 2000-11-01 Tom Tromey <tromey@cygnus.com>
3485 * scripts/encodings.pl: Added `ASCII' alias.
3486 * Makefile.in: Rebuilt.
3487 * Makefile.am (convert_source_files): Added new files.
3488 * gnu/gcj/convert/Input_ASCII.java: New file.
3489 * gnu/gcj/convert/Output_ASCII.java: New file.
3490 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3491 out-of-range characters.
3492 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3493 (read): Swap bytes if required. Treat `count' as character count,
3495 (write): Likewise. Also, handle case where iconv fails on a given
3497 (init): Put encoding into exception.
3498 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3499 (static): Call iconv_init. Rebuilt alias list.
3500 (iconv_init): New private method.
3502 2000-11-01 Tom Tromey <tromey@cygnus.com>
3504 * Makefile.in: Rebuilt.
3505 * Makefile.am (install-exec-hook): Only make a single symlink, and
3506 remove the destination before making the link.
3507 * configure: Rebuilt.
3508 * configure.in: Call AC_PROG_LN_S.
3510 2000-10-31 Warren Levy <warrenl@cygnus.com>
3512 * jni.cc: Added include of java/lang/ThreadGroup.h.
3513 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3514 per change of 2000-10-05.
3516 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3518 * java/util/BitSet.java: Updated @specnote.
3520 * java/io/Reader.java: Merge docs from classpath.
3521 (skip): Synchronize on `lock'.
3522 * java/io/FileReader.java: Import correct implementation from
3524 * java/io/StringReader.java: Merge docs from classpath.
3525 (ready): Throw IOException if stream is closed.
3527 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3529 * java/util/AbstractCollection.java (addAll): Use size() instead of
3530 hasNext() in iterator loop.
3532 (contains): Ditto. Simplify loop.
3533 (containsAll): Ditto.
3538 (toString): Ditto. Use string concatenation operators, not
3540 * java/util/AbstractList.java (addAll): Use size() instead of
3541 hasNext() in iterator loop.
3544 (indexOf): Ditto. Don't take null check outside of the loop.
3545 (iterator): Return an AbstractListItr instead of anonymous class.
3546 (lastIndexOf): Use a for loop bounded by size() instead of
3547 hasPrevious() in iterator loop.
3548 (listIterator): Return an AbstractListItr.
3549 (removeRange): Remove bounds checking code and docs.
3550 (AbstractListItr): New inner class. Code moved here from
3552 (SubList.iterator): Removed. Use default implementation from
3553 AbstractList instead.
3554 (SubList.listIterator): As above.
3555 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3556 instead of hasNext() in iterator loop.
3557 (containsValue): Ditto.
3563 (toString): Ditto. Use string concatenation operators, not
3565 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3566 bounded by size() instead of hasNext() in iterator loop.
3567 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3568 part of normal execution flow. Do an explicit null check instead.
3569 * java/util/ArrayList.java (_iSize): Rename to `size'.
3570 (_arData): Rename to `data'.
3571 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3574 (removeRange): Make protected. Don't check bounds.
3575 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3577 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3579 (addAll (int, Collection)): Check lower bounds. Simplify exception
3581 (clone): Clone the data array too.
3582 (indexOf): Inline doesEqual().
3583 (lastIndexOf): Ditto.
3584 (clear): Don't set array data to null.
3585 (set): Check lower bounds. Simplify exception string.
3586 (toArray): Correct comment.
3587 (trimToSize): Don't update modCount, this is not a structural change.
3590 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3592 (toString): Declare `bit' as long, not int.
3593 (data): Made package-private, not private.
3595 2000-10-27 Warren Levy <warrenl@cygnus.com>
3597 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3598 array elements to true.
3600 2000-10-27 Warren Levy <warrenl@cygnus.com>
3602 * Makefile.am: Added locale files from Classpath.
3603 * Makefile.in: Rebuilt.
3604 * gnu/java/locale/Calendar.java: New file.
3605 * gnu/java/locale/Calendar_de.java: New file.
3606 * gnu/java/locale/Calendar_en.java: New file.
3607 * gnu/java/locale/Calendar_nl.java: New file.
3608 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3609 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3610 serialization compatibility.
3611 (scale): Made private.
3612 (serialVersionUID): New field.
3613 * java/math/BigInteger.java (ival): Made transient.
3614 (words): Made transient.
3615 (bitCount): New serialization field.
3617 (firstNonzeroByteNum): Ditto.
3618 (lowestSetBit): Ditto.
3621 (serialVersionUID): New field.
3622 (readObject): New method.
3623 (writeObject): New method.
3624 * java/util/BitSet.java (serialVersionUID): New field.
3625 * java/util/Calendar.java: Replaced with Classpath file.
3626 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3627 of getDefault() for TimeZone or Locale instead of passing nulls.
3628 * java/util/Locale.java (serialVersionUID): New field.
3629 (writeObject): New method.
3630 (readObject): New method.
3631 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3633 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3635 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3636 (core_java_source_files): Put java.lang, java.io, and java.util here.
3637 (ordinary_java_source_files): Order so that core_java_source_files are
3639 (java_source_files): Reorder so that special_java_source_files are
3641 * configure.in: Don't pass -I flag to gcj.
3642 * Makefile.in: Rebuilt.
3643 * configure: Rebuilt.
3645 2000-10-25 Tom Tromey <tromey@cygnus.com>
3647 * Makefile.in: Rebuilt.
3648 * Makefile.am (install-exec-hook): New target.
3650 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3652 * java/util/EventObject.java: Merged from classpath.
3654 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3657 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3659 * java/util/AbstractSet.java (equals): Re-installed original code.
3661 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3663 * Makefile.am: Added rules for libgcjx library.
3664 * Makefile.in: Rebuilt.
3665 * configure.in: Added check for X.
3666 * configure: Rebuilt.
3667 * gnu/awt/LightweightRedirector.java: New file.
3668 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3669 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3670 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3671 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3672 * gnu/awt/j2d/MappedRaster.java: New file.
3673 * gnu/awt/xlib/XCanvasPeer.java: New file.
3674 * gnu/awt/xlib/XEventLoop.java: New file.
3675 * gnu/awt/xlib/XEventQueue.java: New file.
3676 * gnu/awt/xlib/XFontMetrics.java: New file.
3677 * gnu/awt/xlib/XFramePeer.java: New file.
3678 * gnu/awt/xlib/XGraphics.java: New file.
3679 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3680 * gnu/awt/xlib/XPanelPeer.java: New file.
3681 * gnu/awt/xlib/XToolkit.java: New file.
3682 * gnu/gcj/xlib/Clip.java: New file.
3683 * gnu/gcj/xlib/Colormap.java: New file.
3684 * gnu/gcj/xlib/Display.java: New file.
3685 * gnu/gcj/xlib/Drawable.java: New file.
3686 * gnu/gcj/xlib/Font.java: New file.
3687 * gnu/gcj/xlib/GC.java: New file.
3688 * gnu/gcj/xlib/Pixmap.java: New file.
3689 * gnu/gcj/xlib/Screen.java: New file.
3690 * gnu/gcj/xlib/Visual.java: New file.
3691 * gnu/gcj/xlib/WMSizeHints.java: New file.
3692 * gnu/gcj/xlib/Window.java: New file.
3693 * gnu/gcj/xlib/WindowAttributes.java: New file.
3694 * gnu/gcj/xlib/XAnyEvent.java: New file.
3695 * gnu/gcj/xlib/XButtonEvent.java: New file.
3696 * gnu/gcj/xlib/XColor.java: New file.
3697 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3698 * gnu/gcj/xlib/XConnectException.java: New file.
3699 * gnu/gcj/xlib/XEvent.java: New file.
3700 * gnu/gcj/xlib/XException.java: New file.
3701 * gnu/gcj/xlib/XExposeEvent.java: New file.
3702 * gnu/gcj/xlib/XID.java: New file.
3703 * gnu/gcj/xlib/XImage.java: New file.
3704 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3705 * gnu/gcj/xlib/natClip.cc: New file.
3706 * gnu/gcj/xlib/natColormap.cc: New file.
3707 * gnu/gcj/xlib/natDisplay.cc: New file.
3708 * gnu/gcj/xlib/natDrawable.cc: New file.
3709 * gnu/gcj/xlib/natFont.cc: New file.
3710 * gnu/gcj/xlib/natGC.cc: New file.
3711 * gnu/gcj/xlib/natPixmap.cc: New file.
3712 * gnu/gcj/xlib/natScreen.cc: New file.
3713 * gnu/gcj/xlib/natVisual.cc: New file.
3714 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3715 * gnu/gcj/xlib/natWindow.cc: New file.
3716 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3717 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3718 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3719 * gnu/gcj/xlib/natXColor.cc: New file.
3720 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3721 * gnu/gcj/xlib/natXException.cc: New file.
3722 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3723 * gnu/gcj/xlib/natXImage.cc: New file.
3724 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3725 * java/awt/EventDispatchThread.java: Start thead on creation.
3727 2000-10-20 Tom Tromey <tromey@cygnus.com>
3729 From Arno J. Klaassen:
3730 * interpret.cc: Include <stdlib.h> for alloca.
3731 * defineclass.cc: Include <stdlib.h> for alloca.
3733 * Makefile.in: Rebuilt.
3734 * Makefile.am: Include deps.mk.
3735 (GCJCOMPILE): Added -MD, -MT, and -MF.
3736 ($(javao_files)): Don't depend on libgcj.zip.
3737 (all-recursive): New target.
3738 (%.lo:%.cc): Do dependency tracking.
3739 ($(nat_headers)): Don't depend on libgcj.zip.
3740 * configure: Rebuilt.
3741 * configure.in: Make .d files and deps.mk.
3743 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3745 * exception.cc: Don't #include "exception".
3746 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3748 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3749 * Makefile.in: Updated.
3751 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3753 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3754 * java/awt/peer/ComponentPeer.java (disable): Removed.
3757 (minimumSize): Removed.
3758 (preferredSize): Removed.
3761 * java/awt/peer/ListPeer.java (addItem): Removed.
3763 (minimumSize): Removed.
3764 (preferredSize): Removed.
3765 (setMultipleSelections): Removed.
3766 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3767 (remove): Renamed from removeMenu.
3768 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3770 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3771 (remove): Renamed from removeItem.
3772 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3773 (getMinimumSize): Removed.
3774 (getPreferredSize): Removed.
3775 (minimumSize): Removed.
3776 (preferredSize): Removed.
3777 (replaceText): Removed.
3778 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3779 (preferredSize): Removed.
3780 (getMinimumSize): Removed.
3781 (getPreferredSize): Removed.
3782 (setEchoCharacter): Removed.
3784 2000-10-10 Warren Levy <warrenl@cygnus.com>
3786 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3787 * java/sql/Date.java (serialVersionUID): New field.
3788 * java/sql/Time.java (serialVersionUID): New field.
3789 * java/sql/Timestamp.java (serialVersionUID): New field.
3790 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3791 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3792 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3793 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3794 (readObject): New serialization method.
3795 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3796 (serialVersionOnStream): New field.
3797 (readObject): New serialization method.
3798 (getMonetaryDecimalSeparator): New method.
3799 (setMonetaryDecimalSeparator): New method.
3800 * java/text/NumberFormat.java (maxFractionDigits): New field.
3801 (maxIntegerDigits): New field.
3802 (minFractionDigits): New field.
3803 (minIntegerDigits): New field.
3804 (serialVersionOnStream): New field.
3805 (serialVersionUID): New field.
3806 (readObject): New serialization method.
3807 (writeObject): New serialization method.
3808 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3809 (serialVersionOnStream): New field.
3810 (serialVersionUID): New field.
3811 (readObject): New serialization method.
3813 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3815 * configure.in (GCJ): Avoid bogus error message when looking for
3816 (and not finding) gcj in the build tree.
3817 * configure: Rebuilt.
3819 2000-10-09 Tom Tromey <tromey@cygnus.com>
3821 * configure: Rebuilt.
3822 * configure.in: Include sys/types.h when checking for socklen_t.
3823 From Arno J. Klaassen.
3825 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3827 * include/jvm.h: Enable __builtin_expect().
3829 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3830 the main program. Fix for PR libgcj/341.
3832 2000-10-07 Tom Tromey <tromey@cygnus.com>
3834 * java/util/Properties.java: Merged with Classpath version.
3836 2000-10-05 Tom Tromey <tromey@cygnus.com>
3838 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3839 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3840 * java/lang/Class.h (Object): Added `class$' field.
3841 * java/lang/Object.h (Object): Added `class$' field.
3842 * defineclass.cc (ClassClass): Use `class$' form.
3843 (ClassObject): Likewise.
3844 * resolve.cc (ClassObject): Use `class$' form.
3845 (ObjectClass): Likewise.
3846 * interpret.cc (ClassError): Removed.
3847 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3849 (IntegerClass): Likewise.
3850 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3852 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3853 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3854 SerializableClass): Likewise.
3855 Include Serializable.h, Cloneable.h.
3856 * java/lang/natSystem.cc (SystemClass): Removed.
3857 (init_properties): Use `class$' form.
3858 * java/lang/natObject.cc (CloneableClass): Removed.
3859 (clone): Use `class$' form.
3860 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3861 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3862 ConstructorClass): Likewise.
3863 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3864 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3865 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3866 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3868 (ClassClass): Likewise.
3869 * include/jvm.h (StringClass): Use `class$' form.
3870 * prims.cc (ObjectClass): Removed.
3871 (_Jv_RunMain): Use `class$' form.
3872 (_Jv_AllocObject): Likewise.
3873 * jni.cc (ClassClass): Use `class$' form.
3874 (ThrowableClass): Likewise.
3875 (ObjectClass): Likewise.
3876 (MethodClass): Likewise.
3877 (ThreadGroupClass): Likewise.
3878 (NativeThreadClass): Likewise.
3879 * boehm.cc (ObjectClass): Removed.
3880 (ClassClass): Removed.
3881 (_Jv_MarkObj): Use `class$' form.
3882 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3885 2000-10-05 Warren Levy <warrenl@cygnus.com>
3887 * Makefile.am: Removed java/io/Replaceable.java and
3888 java/io/Resolvable.java.
3889 * Makefile.in: Rebuilt.
3890 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3892 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3894 (processResolution): Handle readResolve method via reflection with
3895 removal of Resolvable interface.
3896 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3897 method via reflection with removal of Replaceable interface.
3898 * java/io/Replaceable.java: Removed.
3899 * java/io/Resolvable.java: Removed.
3900 * java/security/Key.java (serialVersionUID): New field.
3901 * java/security/Provider.java (serialVersionUID): New field.
3902 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3904 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3906 * java/sql/DataTruncation.java (serialVersionUID): New field.
3907 * java/sql/SQLException.java (serialVersionUID): New field.
3908 * java/sql/SQLWarning.java (serialVersionUID): New field.
3909 * java/util/Date.java (serialVersionUID): New field.
3910 (millis): Made transient.
3911 (readObject): New method.
3912 (writeObject): New method.
3914 2000-10-05 Tom Tromey <tromey@cygnus.com>
3916 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3918 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3920 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3921 (JvRunMain): Set _Jv_argv and _Jv_argc.
3922 * java/awt/Component.java: Minor fixes.
3923 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3924 * java/awt/Toolkit.java (systemEventQueue): Removed.
3925 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3926 * java/awt/Window.java (getToolkit): Don't call super.
3927 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3928 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3929 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3930 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3931 * gnu/awt/gtk/GtkFramePeer.java: New file.
3932 * gnu/awt/gtk/GtkMainThread.java: New file.
3933 * gnu/awt/gtk/GtkToolkit.java: New file.
3934 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3935 * gnu/awt/gtk/gtkcommon.cc: New file.
3936 * gnu/awt/gtk/gtkcommon.h: New file.
3937 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3938 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3939 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3940 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3941 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3942 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3944 2000-09-30 Tom Tromey <tromey@cygnus.com>
3946 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3947 interrupted before modifying the cv's wait set.
3950 2000-09-30 Hans Boehm <boehm@acm.org>
3951 Bryce McKinlay <bryce@albatross.co.nz>
3953 Implement bitmap descriptor based marking for Boehm GC.
3955 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3956 * configure: Rebuilt.
3957 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3958 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3959 method get_finalizer().
3960 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3961 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3962 (_Jv_AllocObj): Add new jclass parameter.
3963 (_Jv_AllocArray): Ditto.
3964 (_Jv_BuildGCDescr): New prototype.
3965 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3966 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3967 get_finalizer() instead of direct finalizer vtable offset.
3968 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3969 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3970 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3971 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3972 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3973 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3974 (_Jv_DetermineVTableIndex): Ditto.
3975 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3976 calculations to account for new gc_descr field.
3977 * boehm.cc: #include gc_gcj.h.
3978 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3979 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3980 New commentary from HB. Mark the classes vtable.
3981 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3982 (GC_DEFAULT_DESCR): New #define.
3983 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3984 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3985 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3986 scan conservativly if size is less than min_heap_addr. Set vtable
3987 pointer of new object before returning.
3988 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3989 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3990 allocation for obj_kind_x.
3991 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3992 (_Jv_AllocObj): Set vtable on returned object.
3993 (_Jv_AllocArray): Ditto.
3994 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3995 (_Jv_NewPrimArray): Ditto.
3996 (_Jv_AllocObj): Declare as a friend.
3997 (_Jv_AllocArray): Ditto.
3998 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3999 from &ObjectClass into new array class. Remove offset-by-one
4000 adjustments from `method' size calculations to account for gc_descr
4003 2000-09-26 Tom Tromey <tromey@cygnus.com>
4005 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4006 `remove', not `add'.
4008 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4010 * java/lang/natSystem.cc (file_encoding): Added return statement.
4012 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4014 * Makefile.am: Re-work shell commands that exceeded command-line
4016 * Makefile.in: Rebuilt.
4018 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4020 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4021 * java/lang/natDouble.cc: Likewise.
4022 * java/lang/reflect/natMethod.cc: Likewise.
4023 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4025 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4027 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4029 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4030 * acinclude.m4: Arrange for automake to not bring in a new
4031 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4032 * Makefile.am: Leave it up to automake to subst GCJ.
4033 * aclocal.m4, configure, Makefile.in: Rebuilt.
4035 2000-09-13 Tom Tromey <tromey@cygnus.com>
4037 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4038 (get): Ensure Boolean class is initialized.
4039 * java/lang/reflect/natField.cc (BooleanClass): New define.
4040 (get): Ensure Boolean class is initialized.
4042 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4044 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4045 Initialize with anonymous class.
4046 (compareToIgnoreCase): New method.
4048 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4049 (uncaughtException): Set had_uncaught_exception.
4050 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4051 exit with error status if set.
4052 (_Jv_RunMain): Ditto.
4054 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4056 * configure: Rebuilt with new ../libtool.m4.
4058 2000-09-11 Tom Tromey <tromey@cygnus.com>
4060 * java/lang/reflect/Field.java (toString): Don't rely on
4063 2000-09-08 Tom Tromey <tromey@cygnus.com>
4065 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4066 default decoder use iconv.
4067 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4068 Let default encoder use iconv.
4069 * configure: Rebuilt.
4070 * configure.in: Check for nl_langinfo and <langinfo.h>.
4071 * java/lang/natSystem.cc (file_encoding): New function.
4072 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4074 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4076 * acinclude.m4: Simplify the tests for CC and CXX.
4077 * aclocal.m4, configure: Rebuilt.
4079 * acinclude.m4: Include libtool macros from the source tree.
4080 * aclocal.m4, configure: Rebuilt.
4082 2000-09-08 Warren Levy <warrenl@cygnus.com>
4084 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4085 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4086 * java/io/File.java (writeObject): Added.
4087 (readObject): Added.
4088 (serialVersionUID): Added.
4089 * java/io/ObjectOutputStream.java (writeObject): Initialized
4090 fieldsAlreadyWritten before recursion rather than after.
4091 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4092 * java/io/OptionalDataException.java (serialVersionUID): Added.
4093 (OptionalDataException): Made package private.
4094 * java/io/SyncFailedException.java (SyncFailedException): Removed
4095 default constructor to match spec.
4096 * java/lang/Boolean.java (serialVersionUID): Added.
4097 * java/lang/Byte.java (serialVersionUID): Added.
4098 * java/lang/Character.java (serialVersionUID): Added.
4099 * java/lang/Double.java (serialVersionUID): Added.
4100 * java/lang/Float.java (serialVersionUID): Added.
4101 * java/lang/Integer.java (serialVersionUID): Added.
4102 * java/lang/Long.java (serialVersionUID): Added.
4103 * java/lang/Number.java (serialVersionUID): Added.
4104 * java/lang/Short.java (serialVersionUID): Added.
4105 * java/lang/String.java (serialVersionUID): Added.
4106 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4108 * java/lang/reflect/InvocationTargetException.java
4109 (serialVersionUID): Added.
4110 * java/net/URL.java (handler): Made transient.
4111 (hashCode): Added field for serialization, per spec. and use
4112 cached value if available.
4113 (serialVersionUID): Added.
4114 (URL): Initialize hashCode.
4115 (set): Adjust hashCode.
4116 (readObject): New Method to initialize the protocol handler when
4118 (writeObject): New method.
4119 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4120 * java/text/Collator.java: Removed 'implements Serializable'.
4121 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4122 * java/util/Properties.java (serialVersionUID): Added.
4123 * java/util/Random.java (serialVersionUID): Added.
4124 (seed): Made private.
4125 (nextNextGaussian): Made private.
4126 (haveNextNextGaussian): Made private.
4127 * java/util/Stack.java (serialVersionUID): Added.
4128 * java/util/TimeZone.java (serialVersionUID): Added.
4129 * java/util/Vector.java (serialVersionUID): Added.
4131 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4133 * Makefile.am (Thread.h): Don't be friends with native threads
4135 * Makefile.in: Rebuilt.
4136 * java/lang/Thread.java (interrupt_flag): Make package-private.
4138 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4140 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4141 to avoid long long division.
4143 2000-09-06 Tom Tromey <tromey@cygnus.com>
4145 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4147 * java/lang/reflect/Method.java (toString): Use `getName' for
4150 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4151 `args' if method takes no parameters.
4153 Fix for PR java.lang/339:
4154 * java/lang/natPosixProcess.cc (fail): New function.
4155 (cleanup): New function.
4156 (startProcess): Use them. Create pipe so child can communicate
4157 exec failure back to parent.
4159 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4161 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4163 (send): Undo last patch. Remove the label only.
4165 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4167 * java/net/natInetAdress.cc: Ditto.
4169 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4171 2000-09-05 Tom Tromey <tromey@cygnus.com>
4173 * doc/cni.sgml: Updated from master copy.
4175 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4177 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4179 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4181 * java/lang/fdlibm.h: #undef __P if previously defined.
4182 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4183 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4187 2000-09-04 Tom Tromey <tromey@cygnus.com>
4189 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4192 2000-09-04 Anthony Green <green@redhat.com>
4194 Fix for PR java.io/203:
4195 * java/io/File.java (createTempFile): Obey directory argument.
4196 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4197 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4198 variable to set java.io.tmpdir on non-WIN32 systems.
4200 2000-09-04 Anthony Green <green@redhat.com>
4202 * java/io/File.java (deleteOnExit): New method.
4203 * gnu/gcj/runtime/FileDeleter.java: New class.
4204 * java/lang/natRuntime.cc (exit): Call
4205 FileDeleter.deleteOnExitNow()
4206 * Makefile.am: Add FileDeleter.java.
4207 * Makefile.in: Rebuilt.
4209 2000-09-02 Tom Tromey <tromey@cygnus.com>
4211 * Makefile.in: Rebuilt.
4212 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4213 environment variable.
4215 2000-09-01 Andrew Haley <aph@redhat.com>
4217 * java/io/StreamTokenizer.java: Don't throw a
4218 NumberFormatException if a field is numeric as far as the
4219 StreamTokenizer is concerned but not as far as Double.valueOf() is
4220 concerned: return a zero instead.
4222 2000-08-30 Tom Tromey <tromey@cygnus.com>
4224 * Makefile.in: Rebuilt.
4225 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4227 2000-08-28 Tom Tromey <tromey@cygnus.com>
4229 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4230 gnu/gcj/awt/ComponentDataBlitOp.java,
4231 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4232 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4233 java/awt/color/ICC_ColorSpace.java,
4234 java/awt/color/ICC_Profile.java,
4235 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4236 java/awt/image/ComponentColorModel.java,
4237 java/awt/image/ComponentSampleModel.java,
4238 java/awt/image/DataBuffer.java,
4239 java/awt/image/DataBufferByte.java,
4240 java/awt/image/DataBufferInt.java,
4241 java/awt/image/DataBufferUShort.java,
4242 java/awt/image/DirectColorModel.java,
4243 java/awt/image/IndexColorModel.java,
4244 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4245 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4246 java/awt/image/SinglePixelPackedSampleModel.java,
4247 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4248 Removed Latin-1 copyright symbols.
4249 * java/util/zip/ZipFile.java: Indentation fixes.
4251 2000-08-27 Mark Wielaard <mark@klomp.org>
4253 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4254 constructor, close can delete the file, finalize calls close.
4255 * java/util/jar/JarFile.java: Constructor that takes mode now
4258 2000-08-27 Anthony Green <green@redhat.com>
4260 * java/util/ArrayList.java, java/util/Timer.java,
4261 java/util/LinkedList.java, java/util/TimerTask.java,
4262 java/util/HashMap.java, java/util/AbstractMap.java,
4263 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4264 java/util/SortedSet.java: Imported from GNU Classpath.
4265 * Makefile.in: Rebuilt.
4266 * Makefile.am: Added new files.
4268 2000-08-26 Anthony Green <green@redhat.com>
4270 * Makefile.in: Rebuilt.
4271 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4274 * prims.cc: Include ClassLoader.h.
4275 (_Jv_RunMain): When executing jar files, classpath must be the jar
4276 file only. Lose our reference to the system ClassLoader in order
4277 to get a new one with the correct classpath.
4278 * java/lang/natSystem.cc (init_properties): When executing a jar
4279 file, only use the jar file for java.class.path.
4281 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4282 for bytecode archives.
4284 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4285 exists, but not Main-Class.
4287 2000-08-23 Mark Wielaard <mark@klomp.org>
4289 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4290 return -1 when fill() has no more data for the Inflater.
4292 2000-08-23 Mark Wielaard <mark@klomp.org>
4294 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4295 write(String) already does.
4297 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4299 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4300 to `alive_flag', call `init'.
4301 (init): New native method.
4302 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4305 2000-08-21 Mark Wielaard <mark@klomp.org>
4307 * Makefile.in: Rebuilt.
4308 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4310 (java/lang/reflect/Field.h): Likewise.
4311 (java/lang/reflect/Method.h): Likewise.
4312 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4315 2000-08-21 Tom Tromey <tromey@cygnus.com>
4317 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4320 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4322 * java/lang/natSystem.cc (init_properties): Change sourceware
4323 reference to sources.redhat.com.
4325 * include/java-props.h: Add _Jv_Jar_Class_Path.
4326 * prims.cc: Ditto. Set it from `gij -jar file' option.
4328 * java/lang/natSystem.cc (init_properties): Set java.class.path
4330 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4332 * java/util/PropertyPermission.java: Import from GNU Classpath.
4333 * Makefile.in: Rebuilt.
4334 * Makefile.am: Add java/util/PropertyPermission.java.
4335 * java/lang/System.java: Add setProperty method.
4337 * gij.cc (main): Add -jar option to execute jar files.
4338 (help): Describe -jar option.
4339 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4340 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4341 * gnu/gcj/runtime/FirstThread.java (main): New method.
4343 * java/util/jar/Attributes.java: Correct comment spelling.
4345 2000-08-20 Mark Wielaard <mark@klomp.org>
4347 * java/util/zip/Adler32.java: Make private variables really private
4348 * java/util/zip/CRC32.java: Make private variables really private
4349 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4351 * java/util/zip/InflaterInputStream.java: skip() could skip to
4353 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4354 * java/util/zip/ZipFile.java: size() new 1.2 method
4355 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4356 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4359 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4361 * java/util/jar/JarFile.java: Don't call
4362 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4365 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4367 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4368 Read the entire contents of the class file, not just what is
4371 * java/net/JarURLConnection.java: getEntry doesn't take any
4372 arguments. Return null if element is null.
4374 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4375 size from the archive, not the inflated size.
4377 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4378 java.util.zip.ZipFile.getEntry.
4380 * gij.cc (help): Change sourceware reference to
4383 2000-08-19 Tom Tromey <tromey@cygnus.com>
4385 * java/util/zip/ZipInputStream.java (createZipEntry):
4388 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4390 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4391 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4392 java/util/jar/JarInputStream.java,
4393 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4394 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4395 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4396 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4397 java/security/cert/Certificate.java,
4398 java/security/cert/CertificateEncodingException.java,
4399 java/security/cert/CertificateException.java,
4400 java/security/cert/CertificateExpiredException.java,
4401 java/security/cert/CertificateFactory.java,
4402 java/security/cert/CertificateFactorySpi.java,
4403 java/security/cert/CertificateNotYetValidException.java,
4404 java/security/cert/CertificateParsingException.java,
4405 java/security/cert/X509CRL.java,
4406 java/security/cert/X509CRLEntry.java,
4407 java/security/cert/X509Certificate.java,
4408 java/security/cert/X509Extension.java: Imported from Classpath.
4409 * java/util/Hashtable.java: Imported from Classpath.
4411 * java/util/zip/ZipInputStream.java: Create stub for
4414 * gcj/javaprims.h: Updated class list.
4416 * Makefile.in, gcj/Makefile.in: Rebuilt.
4417 * Makefile.am (ordinary_java_source_files): Add these new classes.
4419 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4421 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4422 * gnu/gcj/awt/GLightweightPeer.java: New file.
4423 * java/awt/BorderLayout.java: Implemented all methods.
4424 * java/awt/Button.java (actionListener, actionCommand): Renamed
4425 and modifier change.
4426 (addNotify): Call super.
4427 (dispatchEventImpl): New method.
4428 (getListeners): New method.
4429 (label): Made package-private, not private.
4430 * java/awt/Canvas.java: Implemented class body.
4431 * java/awt/Color.java (brighter): New method.
4432 (darker): New method.
4433 (hashCode): New method.
4434 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4435 (getGraphicsConfiguration): Delegate to
4436 getGraphicsConfigurationImpl().
4437 (getGraphicsConfigurationImpl): New method.
4438 (getToolkit): Only return value from peer if not null.
4439 (isDisplayable): Check with parent.
4440 (isShowing): No parent implies not showing.
4441 (getForeground): Check parent property if local is null.
4442 (getBackground): Likewise.
4443 (getFont): Likewise.
4444 (setForeground): Inform peer.
4445 (setBackground): Likewise
4446 (setLocale): Invalidate component.
4447 (getColorModel): Implemented.
4448 (setLocation): Invalidate, or ignore if no change.
4449 (setSize): Invalidate, or ignore if no change.
4450 (setBounds): Invalidate, or ignore if no change.
4451 (isOpaque): By default, heavyweight implies opaque.
4452 (isLightweight): Implemented.
4453 (getMaximumSize): Implemented.
4454 (doLayout): Implemented, NOP.
4455 (validate): Implemented, NOP.
4456 (invalidate): Only propagate to parent if parent was valid.
4457 (getGraphics): Implemented.
4458 (getFontMetrics): Implemented.
4459 (update): Implemented.
4460 (paintAll): Implemented.
4461 (repaint): Implemented all repaint methods.
4462 (print): Implemented.
4463 (printAll): Implemented.
4464 (createImage): Implemented.
4465 (dispatchEvent): Give the peer a chance to handle the event.
4466 (dispatchEventImpl): Dispatch paint events.
4467 (enableEvents): Lightweights enable events on parent component.
4468 (coalesceEvents): Coalesce paint events, and select event type
4470 (coalescePaintEvents): New method.
4471 (processEvent): Fix unfortunate ordering of statements, and call
4472 correct method for MOUSE_CLICKED.
4473 (processPaintEvent): New method.
4474 (addNotify): Allow container to notify children before event
4475 mask is set in peer.
4476 (addNotifyContainerChildren): New method.
4477 (removeNotify): Visibility should not change on removeNotify.
4478 (paramString): Implemented.
4479 (list): Implemented two of the list methods.
4480 * Container (myInsets): Removed, insets are managed by peer.
4481 (getInsets): Query peer.
4482 (addImpl): Fix reparenting, enable events for lightweights,
4483 initialize component array.
4484 (validate): Call doLayout in validateTree() instead.
4485 (validateTree): Do nothing if already valid. Call beginValidate(),
4486 endValidate() on peer. Call validateTree() instead of validate()
4487 for children that are containers. Mark valid after validation of
4489 (setFont): Partial implementation.
4490 (paint): Implemented.
4491 (visitChildren): New method.
4492 (visitChild): New method.
4493 (update): Implemented.
4494 (print): Implemented.
4495 (paintComponents): Implemented.
4496 (printComponents): Consider translation and clipping.
4497 (getComponentAt): Ignore invisible children. Return this if no
4499 (addNotify): Call super.
4500 (addNotifyContainerChildren): New method.
4501 (paramString): Implemented.
4502 (list): Implemented.
4503 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4505 (invokeLater): Likewise.
4506 (isDispatchThread): Likewise.
4507 * java/awt/FontMetrics (getLeading): Formula change.
4508 (getDescent): Consider leading also.
4509 (getMaxAscent): Default to getAscent().
4510 (getMaxDescent): Default to getDescent.
4511 (getMaxAdvance): Return value signifying unknown.
4512 (charWidth): Both methods implemented.
4513 (charsWidth): Implemented.
4514 (bytesWidth): Implemented.
4515 (getWidths): Implemented.
4516 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4518 (Frame): Rearragend constuctor chaining to disallow null being
4519 passed as a graphics configuration.
4520 (getTitle): Return empty string if null.
4522 (getIconImage): New method.
4523 (setIconImage): New method.
4524 (finalize): New method.
4525 (setMenuBar): Notify peer.
4526 (isResizable): New method.
4527 (setResizable): New method.
4528 (getState): New method.
4530 (remove): Implemented.
4531 (removeNotify): New method.
4532 (getFrames): New method.
4533 * java/awt/Graphics.java: Implemented body of class.
4534 * java/awt/Graphics2D.java: New file.
4535 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4536 * java/awt/Image.java: Implemented body of class.
4537 * java/awt/Panel.java (Panel): Call correct super constructor.
4538 (addNotify): Implemented.
4539 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4540 * java/awt/RenderingHints.java: New file.
4541 * java/awt/Toolkit.java (createComponent): Implemented.
4542 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4543 * java/awt/Window.java (Window): Two new constructors. Reordered
4544 constructor chaining.
4545 (getGraphicsConfigurationImpl): New method.
4546 (finalize): Call super.
4547 (addNotify): Call super.
4548 (pack): Do layout stuff.
4549 (show): Ensure that peer exists and that component is valid.
4550 (dispose): Dispose owned children.
4551 (getOwner): Simplify code, casting null pointers is valid.
4552 (getGraphicsConfiguration): Ask peer if local value is null.
4553 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4555 * java/awt/image/BufferedImage.java: New file.
4556 * java/awt/image/RasterOp.java: New file.
4557 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4558 More powerfull replacement for getColorModel().
4559 (getColorModel) Removed.
4560 (setEventMask) New method.
4561 * Makefile.am: Added new files.
4562 * Makefile.in: Rebuilt.
4564 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4566 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4567 (finit_leg_name): New global.
4568 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4569 `$finit$'. This is a backward compatibility hack.
4570 (java::lang::Class::_getMethods): Likewise.
4572 2000-08-15 Andrew Haley <aph@cygnus.com>
4574 * include/jvm.h (_Jv_HashCode): New hash code.
4576 2000-08-15 Tom Tromey <tromey@cygnus.com>
4578 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4580 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4582 * THANKS: More thanks.
4584 2000-08-10 Tom Tromey <tromey@cygnus.com>
4586 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4588 (connect): Likewise.
4590 (getOption): Likewise.
4591 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4592 case when errno not set.
4595 (receive): Likewise.
4596 (mcastGrp): Likewise.
4597 (setOption): Likewise.
4598 (getOption): Likewise.
4600 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4601 John Stracke <francis@ecal.com>
4603 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4604 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4606 (disconnect): Don't unset connected flag.
4607 (getHeaderField (String)): Call connect() if not connected.
4608 (getHeaderField (int)): Ditto.
4609 (getHeaderFieldKey): Ditto.
4610 (getHttpHeaders): Don't call connect().
4611 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4612 gotResponseVals): New fields.
4613 (getResponseCode): Call getResponseVals() conditionally.
4614 (getResponseMessage): Ditto.
4615 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4617 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4619 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4620 * Makefile.in: Rebuilt.
4621 * java/awt/Color.java (getTransparency): New method.
4622 * java/awt/Component.java: Various updates.
4623 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4624 after dealing with children.
4625 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4626 * java/awt/Window.java: Various new methods and updates.
4627 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4629 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4630 * java/awt/event/WindowEvent.java (paramString): Ditto.
4631 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4633 * java/awt/geom/Point2D.java (clone): Ditto.
4634 * java/awt/geom/RectangularShape.java (clone): Ditto.
4635 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4636 isAlphaPremultiplied): Make package-private, not private.
4638 2000-08-08 Tom Tromey <tromey@cygnus.com>
4640 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4641 surrogate characters.
4642 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4644 (write): Correct handling of surrogate characters.
4646 2000-08-07 Tom Tromey <tromey@cygnus.com>
4648 * java/lang/reflect/Method.java (hashCode): Use getName().
4649 (toString): Likewise.
4650 * java/lang/reflect/natMethod.cc (getType): Initialize
4653 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4655 * java/lang/reflect/Field.java (toString): Correct formatting.
4658 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4660 (receive): Streamlined.
4662 2000-08-05 Tom Tromey <tromey@cygnus.com>
4664 * java/io/PrintWriter.java: Merged comments from Classpath.
4665 (printlnUnsynchronized): Removed.
4666 (println()): Print the separator.
4667 (println): Call println(), not printlnUnsynchronized.
4668 (out): Now protected, to match spec.
4670 2000-08-04 Tom Tromey <tromey@cygnus.com>
4672 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4673 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4676 2000-08-03 Warren Levy <warrenl@cygnus.com>
4678 * java/io/ObjectInputStream.java (readFields): Turn off
4679 readDataFromBlock while reading via GetField.
4680 (GetField$1.get(String, Object)): Pass Class of default value to
4682 (getField): Allow for null default values.
4684 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4685 (PutField$1.put): Fixed calls of checkType in most of the put
4686 methods to pass the correct parameter.
4687 (PutField$1.put(String, Object)): Allow for null value arg.
4688 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4691 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4692 typo in spec'ed field name.
4693 (getSerialPersistentFields): Changed spelling of method to match
4694 the correct spelling of the spec'ed field name.
4696 2000-08-03 Tom Tromey <tromey@cygnus.com>
4698 * Makefile.in: Rebuilt.
4699 * Makefile.am (awt_java_source_files): Added new files.
4701 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4703 * Makefile.am: Add new AWT stubs.
4704 * java/awt/Canvas.java: New placeholder class.
4705 * java/awt/Checkbox.java: Ditto.
4706 * java/awt/CheckboxMenuItem.java: Ditto.
4707 * java/awt/Choice.java: Ditto.
4708 * java/awt/Dialog.java: Ditto.
4709 * java/awt/FileDialog.java: Ditto.
4710 * java/awt/List.java: Ditto.
4711 * java/awt/ScrollPane.java: Ditto.
4712 * java/awt/TextField.java: Ditto.
4713 * java/awt/datatransfer/Clipboard.java: Ditto.
4714 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4715 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4716 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4717 Some commented out. Partially implemented.
4718 * java/awt/natToolkit.cc: Removed file.
4720 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4722 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4723 Fixes "make -j" builds.
4724 * Makefile.in: Rebuild.
4726 2000-08-02 Tom Tromey <tromey@cygnus.com>
4728 * Makefile.in: Rebuilt.
4729 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4730 * java/net/natPlainSocketImpl.cc: Include posix.h.
4731 (accept): Use _Jv_select.
4732 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4733 (receive): Use _Jv_select.
4734 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4735 (available): Use _Jv_select.
4736 * java/lang/natSystem.cc: Include posix.h.
4737 (currentTimeMillis): Use _Jv_gettimeofday.
4738 * include/posix.h: New file.
4739 * posix.cc: New file.
4741 * scripts/encodings.pl: New file.
4742 * Makefile.in: Rebuilt.
4743 * Makefile.am (convert_source_files): Added IOConverter.java.
4744 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4746 (getDefaultDecodingClass): Canonicalize default encoding name.
4747 (getEncoder): Likewise.
4748 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4750 (getDefaultDecodingClass): Canonicalize default encoding name.
4751 (getDecoder): Likewise.
4752 * gnu/gcj/convert/IOConverter.java: New file.
4754 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4756 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4757 to match C declaration in ffi.h.
4758 * Makefile.am: Add java/awt/Button.java.
4759 * Makefile.in: Rebuilt.
4761 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4763 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4764 cast of the second argument to `ffi_raw_call' changed to match
4767 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4769 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4770 argument to `ffi_raw_call' changed to match prototype.
4772 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4774 * java/awt/Component.java (toString): Implemented.
4775 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4776 dispatchEvent() to dispatch the event.
4777 (removeImpl): Ditto.
4779 2000-07-30 Anthony Green <green@redhat.com>
4781 * java/awt/Component.java: Add treeLock object.
4782 (getTreeLock): Implement.
4783 (isShowing): Implement.
4785 2000-07-30 Tom Tromey <tromey@cygnus.com>
4787 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4789 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4791 * java/awt/Window.java (addNotify): Wrote.
4792 (addWindowListener): Wrote.
4794 (getWarningString): Wrote.
4795 (processEvent): Wrote.
4796 (processWindowEvent): Wrote.
4797 (removeWindowListener): Wrote.
4798 (show): Call validate(), setVisible().
4802 * java/awt/Toolkit.java (createWindow): Declare.
4804 * java/awt/Frame.java (addNotify): Use getToolkit to find
4807 * java/awt/Component.java (invalidate): Wrote.
4809 (getToolkit): Wrote.
4811 * java/awt/Container.java (addContainerListener): Removed
4813 (removeContainerListener): Likewise.
4815 (add(Component)): Use it.
4816 (add(String,Component)): Likewise.
4817 (add(Component,int)): Likewise.
4818 (add(Component,Object)): Likewise.
4819 (add(Component,Object,int)): Likewise.
4821 (getAlignmentX): Wrote.
4822 (getAlignmentY): Wrote.
4823 (getComponentAt): Wrote.
4824 (getMaximumSize): Wrote.
4825 (invalidate): Wrote.
4826 (list(PrintStream,int)): Wrote.
4827 (list(PrintWriter,int)): Wrote.
4828 (getMinimumSize): Wrote.
4829 (getPreferredSize): Wrote.
4830 (printComponents): Wrote.
4831 (processContainerEvent): Look at containerListener, not
4833 (remove): Added event processing and peer destruction.
4834 (removeAll): Use remove.
4835 (removeNotify): Wrote.
4837 (validateTree): Wrote.
4839 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4840 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4841 * java/awt/Container.java (addNotify): Don't create Container
4843 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4845 2000-07-30 Tom Tromey <tromey@cygnus.com>
4847 * java/awt/Container.java (remove(int)): Wrote.
4848 (remove(Component)): Wrote.
4849 (add(Component)): Wrote.
4850 (add(Component,int)): Wrote.
4852 (addNotify): Set our own peer.
4853 * java/awt/Scrollbar.java (listeners): Changed type.
4854 (Scrollbar): Don't initialize listeners.
4856 (setValue): Call setValues.
4857 (setMinimum): Likewise.
4858 (setMaxPriority): Likewise.
4859 (setVisibleAmount): Likewise.
4861 (setUnitIncrement): Forward to peer.
4862 (setLineIncrement): Call setUnitIncrement.
4863 (setPageIncrement): Call setBlockIncrement.
4864 (setBlockIncrement): Forward to peer.
4865 (addAdjustmentListener): Rewrote.
4866 (removeAdjustmentListener): Rewrote.
4867 (processAdjustmentEvent): Rewrote.
4868 (paramString): Wrote.
4869 * Makefile.in: Rebuilt.
4870 * Makefile.am (awt_java_source_files): Added Button.java.
4871 * java/awt/Button.java: New file.
4872 * java/awt/Toolkit.java (createLabel): Declare.
4873 (createButton): Likewise.
4874 (createScrollbar): Likewise.
4875 (createContainer): Likewise.
4876 * java/awt/Label.java (addNotify): Wrote.
4877 (setAlignment): Call setAlignment in the peer.
4878 (setText): Call setText in the peer.
4880 2000-07-28 Warren Levy <warrenl@cygnus.com>
4882 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4883 NotSerializableException with just the class name.
4885 2000-07-26 Andrew Haley <aph@cygnus.com>
4887 * interpret.cc (continue1): Insert missing break into switch.
4889 2000-07-28 Warren Levy <warrenl@cygnus.com>
4891 * java/io/ObjectStreamException.java: Made constructors protected.
4893 2000-07-27 Tom Tromey <tromey@cygnus.com>
4895 * java/io/OutputStreamWriter.java (close): Only flush if not
4898 2000-07-27 Warren Levy <warrenl@cygnus.com>
4900 * mauve-libgcj: Activated serialization tests.
4901 * gcj/field.h (getModifiers): Mask off unknown flags.
4902 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4903 spurious bits don't cause discrepancies.
4904 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4905 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4906 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4907 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4908 * java/lang/Throwable.java (serialVersionUID): New field.
4909 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4910 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4912 * java/lang/reflect/natMethod.cc: Ditto.
4913 * java/security/Key.java (serialVersionUID): Removed field for now.
4914 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4915 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4917 2000-07-22 Tom Tromey <tromey@cygnus.com>
4919 * java/awt/geom/RectangularShape.java (getPathIterator):
4922 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4924 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4925 stub libjava/java/awt/ColorModel.java which was located in the
4927 * libjava/java/awt/image/ComponentColorModel.java: New file.
4928 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4929 * libjava/java/awt/image/DataBuffer.java: New file.
4930 * libjava/java/awt/image/DataBufferByte.java: New file.
4931 * libjava/java/awt/image/DataBufferInt.java: New file.
4932 * libjava/java/awt/image/DataBufferUShort.java: New file.
4933 * libjava/java/awt/image/DirectColorModel.java: New file.
4934 * libjava/java/awt/image/PackedColorModel.java: New file.
4935 * libjava/java/awt/image/Raster.java: New file.
4936 * libjava/java/awt/image/SampleModel.java: New file.
4937 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4939 * libjava/java/awt/image/IndexColorModel.java: New file.
4940 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4941 java.awt.ColorModel stub.
4943 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4944 * gnu/gcj/util/Buffers.java: New file, utility class.
4946 * libjava/Makefile.am: Updated to include new files.
4947 * libjava/Makefile.in: Rebuilt.
4949 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4951 * java/io/StreamTokenizer.java: Merged with classpath.
4953 2000-07-20 Tom Tromey <tromey@cygnus.com>
4955 * Makefile.in: Rebuilt.
4956 * Makefile.am (awt_java_source_files): Updated for new files.
4957 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4958 * java/awt/Label.java: New file.
4959 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4960 (createIntersection, createUnion, getBounds2D): New methods.
4961 * java/awt/Scrollbar.java: New file.
4962 * java/awt/Shape.java: Updated to 1.2.
4963 * java/awt/geom/AffineTransform.java: New file.
4964 * java/awt/geom/Ellipse2D.java: New file.
4965 * java/awt/geom/NoninvertibleTransformException.java: New file.
4966 * java/awt/geom/PathIterator.java: New file.
4967 * java/awt/geom/Rectangle2D.java: New file.
4968 * java/awt/geom/RectangularShape.java: New file.
4969 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4970 * java/awt/geom/IllegalPathStateException.java: New file.
4972 * scripts/showval.java: New file.
4974 * scripts/classes.pl (scan): Print inner classes properly.
4975 * gcj/javaprims.h: Updated class list.
4977 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4978 initialize String fields for interpreted classes. Fixes bug
4979 reported by Hans Boehm.
4981 * java/io/File.java (getParentFile): New method, from Classpath
4982 via Oskar Liljeblad.
4984 * java/util/Vector.java (remove(Object)): Implemented.
4986 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4988 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4989 zero return from backtrace().
4991 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4993 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4995 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4996 before calling notifyAll().
4998 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5000 Add missing files from last check-in:
5001 * java/awt/image/ImageConsumer.java: New file.
5002 * java/awt/image/ImageProducer.java: New file.
5003 * java/awt/image/ImageObserver.java: New file.
5005 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5007 Merged implementation of java.applet from classpath:
5008 * java/applet/Applet.java: New file.
5009 * java/applet/AppletContext.java: New file.
5010 * java/applet/AppletStub.java: New file.
5011 * java/applet/AudioClip.java: New file.
5013 * Makefile.am: Added new java.applet classes.
5014 * Makefile.in: Rebuilt.
5016 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5019 * java/util/ResourceBundle.java (getLocale): stub.
5020 * Makefile.am: Added new AWT classes.
5021 * Makefile.in: Rebuilt.
5022 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5023 constructors. Fix toString() and paramString().
5024 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5025 * java/awt/CheckboxGroup.java: New class.
5026 * java/awt/ColorModel.java: New class.
5027 * java/awt/Component.java: Added stubs for most methods. Implemented
5029 * java/awt/Container.java: ditto.
5030 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5031 * java/awt/Cursor.java: ditto.
5032 * java/awt/Event.java: Fix paramString().
5033 * java/awt/EventQueue.java: New class. Implemented.
5034 * java/awt/Font.java: Added additional stub methods. Implemented
5036 * java/awt/FontMetrics.java: New class. Stubbed.
5037 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5039 * java/awt/Insets.java: New class. Implemented.
5040 * java/awt/Menu.java: Add new methods. Partially implemented.
5041 * java/awt/MenuItem.java: Add new methods and fields. Partially
5043 * java/awt/MenuShortcut.java: New class. Implemented.
5044 * java/awt/Panel.java: New class. Placeholder.
5045 * java/awt/PopupMenu.java: New class. Stubbed.
5046 * java/awt/Rectangle.java: New class. Implemented.
5047 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5048 * java/awt/event/ActionEvent.java: Implement paramString().
5049 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5050 * java/awt/event/ComponentEvent.java: Implement paramString().
5051 * java/awt/event/ContainerEvent.java: Implement paramString().
5052 * java/awt/event/FocusEvent.java: Implement paramString().
5053 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5054 * java/awt/event/HierarchyBoundsListener.java: New class.
5055 * java/awt/event/HierarchyEvent.java: New class.
5056 * java/awt/event/HierarchyListener.java: New class.
5057 * java/awt/event/InputMethodEvent.java: Implement paramString().
5058 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5059 exception if !catchExceptions.
5060 * java/awt/event/ItemEvent.java: Implement paramString().
5061 * java/awt/event/KeyEvent.java: Implement paramString().
5062 * java/awt/event/MouseEvent.java: Implement paramString().
5063 * java/awt/event/PaintEvent.java: Implement paramString().
5064 * java/awt/event/TextEvent.java: Implement paramString().
5065 * java/awt/event/WindowEvent.java: Implement paramString().
5067 AWT Peer interfaces:
5068 * java/awt/peer/ButtonPeer.java: New file.
5069 * java/awt/peer/ListPeer.java: New file.
5070 * java/awt/peer/CanvasPeer.java: New file.
5071 * java/awt/peer/MenuBarPeer.java: New file.
5072 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5073 * java/awt/peer/MenuComponentPeer.java: New file.
5074 * java/awt/peer/CheckboxPeer.java: New file.
5075 * java/awt/peer/MenuItemPeer.java: New file.
5076 * java/awt/peer/ChoicePeer.java: New file.
5077 * java/awt/peer/MenuPeer.java: New file.
5078 * java/awt/peer/ComponentPeer.java: Implemented.
5079 * java/awt/peer/PanelPeer.java: New file.
5080 * java/awt/peer/ContainerPeer.java: Implemented.
5081 * java/awt/peer/PopupMenuPeer.java: New file.
5082 * java/awt/peer/DialogPeer.java: New file.
5083 * java/awt/peer/ScrollPanePeer.java: New file.
5084 * java/awt/peer/FileDialogPeer.java: New file.
5085 * java/awt/peer/ScrollbarPeer.java: New file.
5086 * java/awt/peer/FontPeer.java: New file.
5087 * java/awt/peer/TextAreaPeer.java: New file.
5088 * java/awt/peer/FramePeer.java: Implemented.
5089 * java/awt/peer/TextComponentPeer.java: New file.
5090 * java/awt/peer/LabelPeer.java: New file.
5091 * java/awt/peer/TextFieldPeer.java: New file.
5092 * java/awt/peer/LightweightPeer.java: New file.
5093 * java/awt/peer/WindowPeer.java: Implemented.
5095 2000-07-06 Tom Tromey <tromey@cygnus.com>
5097 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5098 Initialize static final String fields.
5100 2000-07-03 Tom Tromey <tromey@cygnus.com>
5102 * java/io/PrintWriter.java (print): Call write(String), not
5103 print(String). See PR libgcj/277.
5104 (print(String)): Use write, not out.write.
5106 2000-06-30 Tom Tromey <tromey@cygnus.com>
5108 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5110 2000-06-27 Andrew Haley <aph@cygnus.com>
5112 * java/io/File.java (createTempFile): Close the FileDescriptor
5113 used to create a temp file. Fixes some of PR 203.
5114 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5115 collection if we run out of file handles.
5117 2000-06-28 Warren Levy <warrenl@cygnus.com>
5119 * gnu/java/security/provider/Gnu.java: New file.
5120 * gnu/java/security/provider/SHA.java: New file.
5121 * gnu/java/security/provider/SHA1PRNG.java: New file.
5122 * Makefile.am: Added the above files.
5123 * Makefile.in: Rebuilt.
5125 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5127 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5129 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5130 (destroyed_flag): Removed.
5131 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5132 (activeCount): Added spec note.
5134 2000-06-27 Warren Levy <warrenl@cygnus.com>
5136 * java/security/Principal.java: New file.
5137 * Makefile.am: Added Principal.java.
5138 * Makefile.in: Rebuilt.
5140 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5142 * java/awt/event/MouseEvent.java: Fixed coordinate space
5145 2000-06-27 Tom Tromey <tromey@cygnus.com>
5147 * java/io/PushbackInputStream.java (read): If there are characters
5148 in the buffer, don't also call super.read().
5149 * java/io/PushbackReader.java (read): If there are characters in
5150 the buffer, don't also call super.read().
5152 * java/lang/Double.java (valueOf): Call parseDouble().
5154 2000-06-26 Warren Levy <warrenl@cygnus.com>
5156 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5157 (newVal): Renamed to newValue.
5158 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5159 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5160 (revokeNow): Renamed to invalidateRefs.
5161 * java/io/OptionalDataException.java: Updated FIXME.
5162 (eof): New placeholder field.
5164 * java/io/WriteAbortedException.java (message): Made transient.
5165 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5166 * java/lang/Throwable.java (stackTrace): Made transient.
5167 * java/net/InetAddress.java: Made Serializable.
5168 * java/security/KeyPair.java: Made Serializable.
5169 * java/security/Provider.java: Replaced with Classpath version that
5170 implements serialization and proper methods.
5171 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5172 (limits): Renamed to choiceLimits.
5174 2000-06-24 Tom Tromey <tromey@cygnus.com>
5176 * java/lang/natDouble.cc (parseDouble): Renamed from
5178 * java/lang/Double.java (parseDouble): Renamed from
5179 doubleValueOf. Now public.
5181 2000-06-23 Andrew Haley <aph@cygnus.com>
5183 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5184 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5186 2000-06-23 Tom Tromey <tromey@cygnus.com>
5188 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5189 * java/lang/natDouble.cc: Always include <alloca.h>.
5190 Fix for PR libgcj/267.
5192 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5194 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5195 comply with classpath VM spec.
5196 (add(Group)): Rename to addGroup().
5197 * java/lang/Thread.java (Thread): Use addThread().
5198 * java/lang/natThread.cc (finish_): Use removeThread().
5200 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5202 * java/lang/ThreadGroup.java: Merged with classpath.
5203 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5204 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5206 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5207 ThreadGroup.root if Thread.currentThread is null. Honour the
5208 ThreadGroup's max priority setting.
5210 2000-06-18 Tom Tromey <tromey@cygnus.com>
5212 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5213 returned class. For PR gcj/260.
5215 2000-06-16 Tom Tromey <tromey@cygnus.com>
5217 Fix for PR libgcj/261:
5218 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5220 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5221 argument. (This is a patch from long ago that somehow went
5224 2000-06-15 Tom Tromey <tromey@cygnus.com>
5226 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5230 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5232 Fix for PR java.lang/258:
5233 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5234 JV_STATE_DONE, to prevent accidental initialization.
5235 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5236 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5237 interface or an abstract class. Remove redundant initializeClass calls.
5238 Remove duplicate if_idt test.
5239 (_Jv_InterfaceAssignableFrom): New function.
5240 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5242 2000-05-31 Tom Tromey <tromey@cygnus.com>
5244 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5245 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5246 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5247 (NUM_OBJECT_METHODS): New define.
5248 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5249 `array_vtable' parameter. Added assertion.
5250 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5253 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5255 * gcj/cni.h: Include <string.h>.
5256 * defineclass.cc: Include <alloca.h>.
5257 * interpret.cc: Ditto.
5258 * gij.cc: Include <stdlib.h>.
5260 2000-05-30 Tom Tromey <tromey@cygnus.com>
5262 * include/name-finder.h: Include <sys/wait.h>.
5263 (_Jv_name_finder::pid): Now of type `pid_t'.
5264 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5265 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5268 2000-05-24 Warren Levy <warrenl@cygnus.com>
5270 * java/io/ObjectOutputStream.java (writeObject): Use component type
5271 when writing arrays.
5274 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5276 Fix for PR libgcj/226:
5277 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5278 since this is an installed header.
5280 Fix for PR libgcj/228:
5281 * java/util/zip/ZipFile (getInputStream): Create inflater with
5284 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5285 with DataFormatException.
5287 2000-05-20 Tom Tromey <tromey@cygnus.com>
5289 * Makefile.in: Rebuilt.
5290 * Makefile.am (hack1): Removed.
5291 (awto_files): Likewise.
5292 (libgcjawt_la_SOURCES): Likewise.
5293 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5294 (libgcjawt_la_DEPENDENCIES): Likewise.
5295 (libgcjawt_la_LIBADD): Likewise.
5296 (libgcjawt_la_LDFLAGS): Likewise.
5297 (libgcjawt_la_LINK): Likewise.
5298 ($(awt_java_source_files:.java=.class)): Likewise.
5299 (libgcj.zip): Don't depend on AWT files.
5300 (MOSTLYCLEANFILES): Don't include AWT files.
5301 ($(awto_files)): Removed.
5302 (nat_headers): Removed AWT files.
5303 (cond_awt_java_source_files): Removed.
5304 (ordinary_java_source_files): Added awt_java_source_files.
5305 * libgcj.spec.in (*lib): Removed -lgcjawt.
5306 * configure: Rebuilt.
5307 * configure.in: Removed --enable-java-awt option.
5309 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5311 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5312 (ZipEntry): Copy the `name' field.
5313 (clone): Implement JDK1.2 method.
5314 (setCompressedSize): ditto.
5317 2000-05-19 Tom Tromey <tromey@cygnus.com>
5319 * java/io/BufferedWriter.java: Merged with Classpath.
5320 * java/io/BufferedOutputStream.java: Merged with Classpath.
5322 2000-05-16 Andrew Haley <aph@cygnus.com>
5324 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5325 build_ia64_frame_state.
5326 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5329 2000-05-15 Warren Levy <warrenl@cygnus.com>
5331 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5332 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5333 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5334 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5335 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5336 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5337 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5338 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5339 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5340 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5341 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5342 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5343 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5344 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5345 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5346 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5347 * gnu/gcj/io/NullOutputStream.java: Removed.
5348 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5349 * gnu/gcj/lang/ArrayHelper.java: Removed.
5350 * gnu/gcj/lang/ClassHelper.java: Removed.
5351 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5353 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5354 * gnu/java/beans/EmptyBeanInfo.java: New file.
5355 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5356 * gnu/java/beans/IntrospectionIncubator.java: New file.
5357 * gnu/java/beans/editors/ColorEditor.java: New file.
5358 * gnu/java/beans/editors/FontEditor.java: New file.
5359 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5360 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5361 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5362 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5363 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5364 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5365 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5366 * gnu/java/beans/editors/StringEditor.java: New file.
5367 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5368 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5369 * gnu/java/io/NullOutputStream.java: New file.
5370 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5371 * gnu/java/lang/ArrayHelper.java: New file.
5372 * gnu/java/lang/ClassHelper.java: New file.
5373 * gnu/java/lang/reflect/TypeSignature.java: New file.
5375 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5376 namespace back to the original Classpath gnu/java namespace.
5377 * Makefile.in: Rebuilt.
5379 * java/beans/Beans.java: Namespace change.
5380 * java/beans/EventSetDescriptor.java: Namespace change.
5381 * java/beans/Introspector.java: Namespace change.
5382 * java/beans/PropertyEditorManager.java: Namespace change.
5383 * java/io/ObjectInputStream.java: Namespace change.
5384 * java/io/ObjectOutputStream.java: Namespace change.
5385 * java/io/ObjectStreamClass.java: Namespace change.
5386 * java/io/ObjectStreamField.java: Namespace change.
5388 2000-04-21 Warren Levy <warrenl@cygnus.com>
5390 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5391 now that compiler patch is available.
5392 Removed unneeded System.loadLibrary.
5393 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5394 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5396 2000-04-19 Andrew Haley <aph@cygnus.com>
5398 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5399 and target classes have been initialized.
5401 2000-04-19 Andrew Haley <aph@cygnus.com>
5403 * java/lang/String.java: implement Serializable, Comparable.
5404 (compareTo (Object)): New method.
5406 2000-04-19 Warren Levy <warrenl@cygnus.com>
5408 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5409 instead of getField to retrieve non-public field.
5410 (getSerialPersistantFields): Ditto.
5412 2000-04-18 Warren Levy <warrenl@cygnus.com>
5414 * mauve-libgcj: Turned off object serialization tests temporarily
5415 due to compiler error.
5417 2000-04-17 Warren Levy <warrenl@cygnus.com>
5419 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5420 to avoid build problem.
5422 * mauve-libgcj: Turned on object serialization tests.
5424 2000-04-17 Tom Tromey <tromey@cygnus.com>
5426 * libgcj.spec.in (*lib): Added -lgcjawt.
5428 2000-04-17 Andrew Haley <aph@cygnus.com>
5430 * Makefile.am: Add new files:
5431 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5433 * Makefile.in: Rebuilt.
5435 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5436 interface that has no implementations.
5437 Check for an attempt to assign an abstract class to an interface.
5439 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5440 if we fail to find MessageDigest.getInstance ("SHA").
5442 * gnu/gcj/io/SimpleSHSStream.java: New file.
5443 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5444 * gnu/gcj/io/shs.cc: New file.
5445 * gnu/gcj/io/shs.h: new file.
5447 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5450 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5451 punctuation from the classname of an array element.
5453 * gcj/javaprims.h: Add SimpleDigestStream.
5455 2000-04-17 Andrew Haley <aph@cygnus.com>
5457 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5458 to getPrivateField for superclasses.
5460 2000-04-14 Andrew Haley <aph@cygnus.com>
5462 * Makefile.am: Add new files:
5463 java/io/ObjectOutputStream$PutField.h,
5464 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5465 java/io/natObjectOutputStream.cc
5466 * Makefile.in: Rebuilt.
5467 * gcj/Makefile.in: Rebuilt.
5468 * include/Makefile.in: Rebuilt.
5469 * java/lang/Class.h (getPrivateField): New method.
5470 (getPrivateMethod): Ditto.
5471 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5472 and java::io::ObjectStreamClass our friends.
5473 * java/lang/natClass.cc (getPrivateField): New method.
5474 (getPrivateMethod): Ditto.
5475 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5476 * gcj/javaprims.h: Add serialization classes.
5477 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5478 (setByteField): Ditto.
5479 (setCharField): Ditto.
5480 (setDoubleField): Ditto.
5481 (setFloatField): Ditto.
5482 (setIntField): Ditto.
5483 (setLongField): Ditto.
5484 (setShortField): Ditto.
5485 (setObjectField): Ditto.
5486 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5488 (getByteField): Ditto.
5489 (getCharField): Ditto.
5490 (getDoubleField): Ditto.
5491 (getFloatField): Ditto.
5492 (getIntField): Ditto.
5493 (getLongField): Ditto.
5494 (getShortField): Ditto.
5495 (getObjectField): Ditto.
5496 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5498 (getSerialPersistantFields): Ditto.
5499 (getDefinedSUID): Ditto.
5500 * java/io/natObjectOutputStream.cc: New file.
5501 * java/io/natObjectInputStream.cc: New file.
5503 2000-04-13 Warren Levy <warrenl@cygnus.com>
5505 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5506 problems. Revert to previous version to reproduce and when fixed.
5508 2000-04-13 Warren Levy <warrenl@cygnus.com>
5510 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5511 * gnu/gcj/io/NullOutputStream.java: New file.
5512 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5513 * java/io/BlockDataException.java: New file.
5514 * java/io/Externalizable.java: New file.
5515 * java/io/InvalidClassException.java: New file.
5516 * java/io/InvalidObjectException.java: New file.
5517 * java/io/NotActiveException.java: New file.
5518 * java/io/NotSerializableException.java: New file.
5519 * java/io/ObjectInput.java: New file.
5520 * java/io/ObjectInputStream.java: New file.
5521 * java/io/ObjectInputValidation.java: New file.
5522 * java/io/ObjectOutput.java: New file.
5523 * java/io/ObjectOutputStream.java: New file.
5524 * java/io/ObjectStreamClass.java: New file.
5525 * java/io/ObjectStreamConstants.java: New file.
5526 * java/io/ObjectStreamField.java: New file.
5527 * java/io/Replaceable.java: New file.
5528 * java/io/Resolvable.java: New file.
5529 * java/io/SerializablePermission.java: New file.
5530 * java/io/WriteAbortedException.java: New file.
5531 * java/security/BasicPermission.java: New file.
5532 * java/security/DigestOutputStream.java: New file.
5533 * java/security/Guard.java: New file.
5534 * java/security/Permission.java: New file.
5535 * java/security/PermissionCollection.java: New file.
5536 * Makefile.am: Added above files.
5537 * Makefile.in: Rebuilt.
5539 * java/beans/Beans.java (instantiate): Activated serialization code.
5540 * java/lang/SecurityManager.java (checkPermission): New method.
5542 2000-04-12 Warren Levy <warrenl@cygnus.com>
5544 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5545 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5546 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5547 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5548 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5549 * gnu/gcj/beans/editors/FontEditor.java: New file.
5550 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5551 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5552 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5553 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5554 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5555 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5556 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5557 * gnu/gcj/beans/editors/StringEditor.java: New file.
5558 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5559 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5560 * gnu/gcj/lang/ArrayHelper.java: New file.
5561 * gnu/gcj/lang/ClassHelper.java: New file.
5562 * java/beans/BeanDescriptor.java: New file.
5563 * java/beans/BeanInfo.java: New file.
5564 * java/beans/Beans.java: New file.
5565 * java/beans/Customizer.java: New file.
5566 * java/beans/DesignMode.java: New file.
5567 * java/beans/EventSetDescriptor.java: New file.
5568 * java/beans/FeatureDescriptor.java: New file.
5569 * java/beans/IndexedPropertyDescriptor.java: New file.
5570 * java/beans/IntrospectionException.java: New file.
5571 * java/beans/Introspector.java: New file.
5572 * java/beans/MethodDescriptor.java: New file.
5573 * java/beans/ParameterDescriptor.java: New file.
5574 * java/beans/PropertyChangeEvent.java: New file.
5575 * java/beans/PropertyChangeListener.java: New file.
5576 * java/beans/PropertyChangeSupport.java: New file.
5577 * java/beans/PropertyDescriptor.java: New file.
5578 * java/beans/PropertyEditor.java: New file.
5579 * java/beans/PropertyEditorManager.java: New file.
5580 * java/beans/PropertyEditorSupport.java: New file.
5581 * java/beans/PropertyVetoException.java: New file.
5582 * java/beans/SimpleBeanInfo.java: New file.
5583 * java/beans/VetoableChangeListener.java: New file.
5584 * java/beans/VetoableChangeSupport.java: New file.
5585 * java/beans/Visibility.java: New file.
5586 * java/beans/beancontext/BeanContext.java: New file.
5587 * java/beans/beancontext/BeanContextChild.java: New file.
5588 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5589 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5590 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5591 * java/beans/beancontext/BeanContextEvent.java: New file.
5592 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5593 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5594 * java/beans/beancontext/BeanContextProxy.java: New file.
5595 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5597 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5598 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5600 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5601 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5603 * java/beans/beancontext/BeanContextServices.java: New file.
5604 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5605 * java/util/AbstractCollection.java: New file.
5606 * java/util/AbstractList.java: New file.
5607 * java/util/Arrays.java: New file.
5608 * Makefile.am: Added above files.
5609 * Makefile.in: Rebuilt.
5611 2000-04-11 Warren Levy <warrenl@cygnus.com>
5613 * java/awt/AWTError.java: New file.
5614 * java/awt/AWTEvent.java: New file.
5615 * java/awt/AWTException.java: New file.
5616 * java/awt/ActiveEvent.java: New file.
5617 * java/awt/Adjustable.java: New file.
5618 * java/awt/BorderLayout.java: New file.
5619 * java/awt/Color.java: New file.
5620 * java/awt/Component.java: New file.
5621 * java/awt/Container.java: New file.
5622 * java/awt/Dimension.java: New file.
5623 * java/awt/Event.java: New file.
5624 * java/awt/Font.java: New file.
5625 * java/awt/Frame.java: New file.
5626 * java/awt/Graphics.java: New file.
5627 * java/awt/IllegalComponentStateException.java: New file.
5628 * java/awt/Image.java: New file.
5629 * java/awt/ItemSelectable.java: New file.
5630 * java/awt/LayoutManager.java: New file.
5631 * java/awt/LayoutManager2.java: New file.
5632 * java/awt/Menu.java: New file.
5633 * java/awt/MenuBar.java: New file.
5634 * java/awt/MenuComponent.java: New file.
5635 * java/awt/MenuContainer.java: New file.
5636 * java/awt/MenuItem.java: New file.
5637 * java/awt/Paint.java: New file.
5638 * java/awt/PaintContext.java: New file.
5639 * java/awt/Point.java: New file.
5640 * java/awt/Rectangle.java: New file.
5641 * java/awt/Shape.java: New file.
5642 * java/awt/TextArea.java: New file.
5643 * java/awt/TextComponent.java: New file.
5644 * java/awt/Toolkit.java: New file.
5645 * java/awt/Transparency.java: New file.
5646 * java/awt/Window.java: New file.
5647 * java/awt/natToolkit.cc: New file.
5648 * java/awt/event/AWTEventListener.java: New file.
5649 * java/awt/event/ActionEvent.java: New file.
5650 * java/awt/event/ActionListener.java: New file.
5651 * java/awt/event/AdjustmentEvent.java: New file.
5652 * java/awt/event/AdjustmentListener.java: New file.
5653 * java/awt/event/ComponentAdapter.java: New file.
5654 * java/awt/event/ComponentEvent.java: New file.
5655 * java/awt/event/ComponentListener.java: New file.
5656 * java/awt/event/ContainerAdapter.java: New file.
5657 * java/awt/event/ContainerEvent.java: New file.
5658 * java/awt/event/ContainerListener.java: New file.
5659 * java/awt/event/FocusAdapter.java: New file.
5660 * java/awt/event/FocusEvent.java: New file.
5661 * java/awt/event/FocusListener.java: New file.
5662 * java/awt/event/InputEvent.java: New file.
5663 * java/awt/event/InputMethodEvent.java: New file.
5664 * java/awt/event/InputMethodListener.java: New file.
5665 * java/awt/event/InvocationEvent.java: New file.
5666 * java/awt/event/ItemEvent.java: New file.
5667 * java/awt/event/ItemListener.java: New file.
5668 * java/awt/event/KeyAdapter.java: New file.
5669 * java/awt/event/KeyEvent.java: New file.
5670 * java/awt/event/KeyListener.java: New file.
5671 * java/awt/event/MouseAdapter.java: New file.
5672 * java/awt/event/MouseEvent.java: New file.
5673 * java/awt/event/MouseListener.java: New file.
5674 * java/awt/event/MouseMotionAdapter.java: New file.
5675 * java/awt/event/MouseMotionListener.java: New file.
5676 * java/awt/event/PaintEvent.java: New file.
5677 * java/awt/event/TextEvent.java: New file.
5678 * java/awt/event/TextListener.java: New file.
5679 * java/awt/event/WindowAdapter.java: New file.
5680 * java/awt/event/WindowEvent.java: New file.
5681 * java/awt/event/WindowListener.java: New file.
5682 * java/awt/geom/Dimension2D.java: New file.
5683 * java/awt/geom/Point2D.java: New file.
5684 * java/awt/peer/ComponentPeer.java: New file.
5685 * java/awt/peer/ContainerPeer.java: New file.
5686 * java/awt/peer/FramePeer.java: New file.
5687 * java/awt/peer/WindowPeer.java: New file.
5688 * java/util/Collection.java: New file.
5689 * java/util/Comparator.java: New file.
5690 * java/util/Iterator.java: New file.
5691 * java/util/List.java: New file.
5692 * java/util/ListIterator.java: New file.
5693 * Makefile.am: Added above files.
5694 * Makefile.in: Rebuilt.
5696 2000-04-10 Warren Levy <warrenl@cygnus.com>
5698 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5699 * java/lang/FirstThread.java: Ditto.
5700 * java/lang/StringBuffer.java: Ditto.
5701 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5703 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5704 Special case handled in java.math.BigInteger.
5705 * java/math/BigInteger.java (divide): Handle the special case when
5706 dividing by 1 and the high bit of the dividend is set.
5707 (setShiftRight): Handle case when count == 0.
5709 2000-04-05 Andrew Haley <aph@cygnus.com>
5711 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5714 2000-04-05 Andrew Haley <aph@cygnus.com>
5716 * sysdep/ia64.c (rse_address_add): Delete.
5717 (IS_NaT_COLLECTION_ADDR): Delete.
5718 (ia64_backtrace_helper): check for null unwind_info.
5720 * sysdep/ia64-frame.h: add calc_caller_bsp.
5722 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5725 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5726 (_Jv_remI): Likewise.
5727 (_Jv_divJ): Likewise.
5728 (_Jv_remJ): Likewise.
5730 * interpret.cc (continue1): Use divide subroutines to guarantee
5731 correct Java standard behaviour.
5732 Floating-point division should not abort; make it so.
5734 2000-03-29 Tom Tromey <tromey@cygnus.com>
5736 * configure: Rebuilt.
5737 * configure.in: Test against `libgcj_sjlj', not
5738 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5739 to be set even when using sjlj.
5741 2000-03-24 Andrew Haley <aph@cygnus.com>
5743 * Makefile.am: Add file addr2name.awk.
5744 * Makefile.in: Rebuilt.
5745 * addr2name.awk: New file.
5746 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5748 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5751 2000-03-22 Andrew Haley <aph@cygnus.com>
5753 * configure.host: Add -funwind-tables for IA64.
5754 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5755 * Makefile.in: Rebuilt.
5756 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5757 * sysdep/ia64.c: New file.
5758 * sysdep/ia64-frame.h: New file.
5759 * configure.in: Add sysdep/ia64.c for ia64.
5760 * configure: Rebuilt.
5762 2000-03-17 Andrew Haley <aph@cygnus.com>
5764 * java/lang/natString.cc: Remove `register' keyword.
5765 interpret.cc: ditto.
5767 2000-03-16 Andrew Haley <aph@cygnus.com>
5769 * configure.host (ia64): Enable interpreter.
5771 2000-03-14 Hans Boehm <boehm@acm.org>
5773 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5775 2000-03-14 Andrew Haley <aph@cygnus.com>
5777 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5780 2000-03-10 Andrew Haley <aph@cygnus.com>
5782 * java/lang/ieeefp.h: Import latest version from fdlibm.
5784 2000-03-14 Andrew Haley <aph@cygnus.com>
5786 * prims.cc (_Jv_ThrowSignal): New function.
5787 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5789 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5790 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5791 * include/ppc-signal.h: New file.
5793 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5795 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5796 * java/lang/natThread.java (initialize_native): Cast `data' to
5798 * gnu/gcj/RawData.java: Clarify documentation.
5800 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5801 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5802 `jarFile', not `jarFileURL'.
5804 2000-05-15 Andrew Haley <aph@cygnus.com>
5806 * include/ppc-signal.h: New file.
5808 2000-05-11 Tom Tromey <tromey@cygnus.com>
5810 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5811 file headers, don't include `size' in the skip call.
5813 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5815 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5816 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5818 (replace): Reimplemented. Fix javadoc.
5819 (reverse): Call ensureCapacity_unsynchronized().
5820 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5822 (replace): Calculate length for arraycopy() correctly.
5824 2000-05-09 Tom Tromey <tromey@cygnus.com>
5826 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5828 (insert(int,char[],int,int): New method.
5829 (delete): New method from Classpath.
5830 (deleteCharAt): Likewise.
5831 (substring): Likewise.
5832 (shared): No longer private.
5833 Added JavaDoc comments from Classpath.
5834 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5837 2000-05-07 Tom Tromey <tromey@cygnus.com>
5839 * Makefile.in: Rebuilt.
5840 * Makefile.am (LIBLINK): New macro.
5841 (libgcj_la_LINK): Use it.
5842 (libgcjawt_la_LINK): Likewise.
5844 2000-05-06 Tom Tromey <tromey@cygnus.com>
5846 * Makefile.in: Rebuilt.
5847 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5849 2000-05-05 Tom Tromey <tromey@cygnus.com>
5851 Fix for PR libgcj/220:
5852 * Makefile.in: Rebuilt.
5853 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5854 (jv_convert_LDFLAGS): Likewise.
5855 (libgcj_la_LDFLAGS): Likewise.
5856 (GCJLINK): New macro.
5857 (jv_convert_LINK): Use it.
5858 (gij_LINK): Likewise.
5859 (libgcj_la_LINK): New macro.
5860 (libgcjawt_la_LINK): Likewise.
5862 2000-05-04 Tom Tromey <tromey@cygnus.com>
5864 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5866 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5870 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5872 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5873 (_Jv_IsAssignableFrom): Ditto.
5874 (_Jv_IsInstanceOf): Ditto.
5875 (_Jv_CheckCast): Ditto.
5876 (_Jv_CheckArrayStore): Ditto.
5877 * java/lang/Class.h (_Jv_InitClass): Ditto.
5878 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5883 (_Jv_MonitorExit): Ditto.
5884 * boehm.cc (_Jv_MarkObj): Ditto.
5885 (_Jv_MarkObj): Ditto.
5886 (_Jv_MarkArray): Ditto.
5887 * prims.cc (_Jv_AllocObject): Ditto.
5888 (_Jv_NewObjectArray): Ditto.
5889 (_Jv_NewPrimArray): Ditto.
5890 (_Jv_Malloc): Ditto.
5891 (_Jv_Realloc): Ditto.
5892 (_Jv_MallocUnchecked): Ditto.
5898 2000-05-04 Tom Tromey <tromey@cygnus.com>
5900 * java/util/Locale.java (Locale): Don't explicitly check for
5902 * java/util/Hashtable.java (containsKey): Don't explicitly check
5905 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5907 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5909 * java/text/StringCharacterIterator.java
5910 (StringCharacterIterator): Don't check for null.
5911 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5913 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5914 check for null pointer.
5915 (leaveGroup): Likewise.
5916 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5918 (setData): Likewise.
5919 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5922 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5924 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5925 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5926 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5927 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5928 -rpath for in-gcc builds.
5929 * Makefile.in: Rebuilt.
5931 2000-04-28 Tom Tromey <tromey@cygnus.com>
5933 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5936 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5938 * libjava/java/lang/String.java (toString): Remove `final' hack.
5940 2000-04-05 Tom Tromey <tromey@cygnus.com>
5942 Runtime support for PR gcj/2:
5943 * prims.cc (_Jv_ThrowNullPointerException): New function.
5944 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5946 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5948 * prims.cc (_Jv_NewObjectArray): Fix typo.
5950 2000-04-26 Tom Tromey <tromey@cygnus.com>
5952 * Makefile.in: Rebuilt.
5953 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5955 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5957 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5960 2000-04-22 Anthony Green <green@cygnus.com>
5962 * include/jvm.h (__builtin_expect): Define as unused for now.
5963 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5967 (_Jv_MonitorExit): Ditto.
5968 * boehm.cc (_Jv_MarkObj): Ditto.
5969 (_Jv_MarkObj): Ditto.
5970 (_Jv_MarkArray): Ditto.
5971 (_Jv_AllocBytes): Ditto.
5972 * prims.cc (_Jv_AllocObject): Ditto.
5973 (_Jv_NewObjectArray): Ditto.
5974 (_Jv_NewPrimArray): Ditto.
5975 (_Jv_Malloc): Ditto.
5976 (_Jv_Realloc): Ditto.
5977 (_Jv_MallocUnchecked): Ditto.
5983 * include/Makefile.in: Rebuilt.
5984 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5986 2000-04-21 Tom Tromey <tromey@cygnus.com>
5988 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5989 Yet another new version from Classpath.
5991 Fix for PR libgcj/15:
5992 * java/util/natGregorianCalendar.cc (_REENTRANT,
5993 _POSIX_PTHREAD_SEMANTICS): Don't define.
5994 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5995 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5997 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5999 * configure: Rebuilt.
6000 * configure.in: If using POSIX threads, define _REENTRANT if
6001 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6002 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6004 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6005 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6006 version from Classpath.
6008 Fix for PR libgcj/213:
6009 * Makefile.in: Rebuilt.
6010 * Makefile.am (gij_SOURCES): Added gij.cc.
6011 (EXTRA_gij_SOURCES): Removed.
6012 (gij_LDADD): Removed gij.lo.
6013 (gij_DEPENDENCIES): Likewise.
6014 ($(gij_OBJECTS)): Depend on nat_headers.
6016 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6017 `setURL', not `url.set'.
6019 2000-04-20 Tom Tromey <tromey@cygnus.com>
6021 Fix for PR java.io/204:
6022 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6023 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6026 Fix for PR libgcj/212:
6027 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6028 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6029 * java/lang/Class.h (_Jv_word): Declare.
6031 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6033 2000-04-19 Tom Tromey <tromey@cygnus.com>
6035 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6036 doesn't have a loader.
6038 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6040 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6041 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6043 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6045 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6047 (available): Initialize `where' to prevent bogus compiler warning.
6049 2000-04-12 Tom Tromey <tromey@cygnus.com>
6051 * java/lang/natString.cc (intern): Temporarily disable finalizer
6054 * java/lang/natString.cc (unintern): Added `obj' argument.
6055 (intern): Register finalizer for string.
6056 * java/lang/String.java (unintern): Now static; added obj
6059 2000-04-11 Tom Tromey <tromey@cygnus.com>
6061 * java/util/Vector.java (VectorEnumeration): Now `final'.
6062 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6063 (HashtableEnumeration): Likewise.
6064 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6065 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6067 2000-04-10 Warren Levy <warrenl@cygnus.com>
6069 * java/io/ObjectStreamException.java: New file.
6070 * java/io/OptionalDataException.java: New file.
6071 * java/io/StreamCorruptedException.java: New file.
6072 * java/math/BigDecimal.java: New file.
6073 * java/sql/CallableStatement.java: New file.
6074 * java/sql/Connection.java: New file.
6075 * java/sql/DataTruncation.java: New file.
6076 * java/sql/DatabaseMetaData.java: New file.
6077 * java/sql/Date.java: New file.
6078 * java/sql/Driver.java: New file.
6079 * java/sql/DriverManager.java: New file.
6080 * java/sql/DriverPropertyInfo.java: New file.
6081 * java/sql/PreparedStatement.java: New file.
6082 * java/sql/ResultSet.java: New file.
6083 * java/sql/ResultSetMetaData.java: New file.
6084 * java/sql/SQLException.java: New file.
6085 * java/sql/SQLWarning.java: New file.
6086 * java/sql/Statement.java: New file.
6087 * java/sql/Time.java: New file.
6088 * java/sql/Timestamp.java: New file.
6089 * java/sql/Types.java: New file.
6090 * Makefile.am: Added above new files.
6091 * Makefile.in: Rebuilt.
6093 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6094 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6095 DatagramSocket constructor instead of null.
6097 2000-04-08 Anthony Green <green@cygnus.com>
6099 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6102 2000-04-08 Anthony Green <green@cygnus.com>
6104 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6105 (_Jv_MutexUnlock): Ditto.
6106 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6107 (_Jv_MutexUnlock): Ditto.
6109 2000-04-08 Anthony Green <green@cygnus.com>
6111 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6112 (ensureCapacity_unsynchronized): New private method.
6113 (append): Use ensureCapacity_unsynchronized.
6115 2000-04-08 Tom Tromey <tromey@cygnus.com>
6117 * Makefile.in: Rebuilt.
6118 * Makefile.am (awt_java_source_files): Added new files.
6119 * java/awt/IllegalComponentStateException.java: New file.
6120 * java/awt/ItemSelectable.java: New file.
6121 * java/awt/event/WindowEvent.java: Finished.
6122 * java/awt/event/TextEvent.java: Finished.
6123 * java/awt/event/ContainerEvent.java: New file.
6124 * java/awt/Component.java (getX, getY): New methods.
6125 * java/awt/event/PaintEvent.java: New file.
6126 * java/awt/event/MouseEvent.java: New file.
6127 * java/awt/ActiveEvent.java: New file.
6128 * java/awt/event/KeyEvent.java: Finished.
6129 * java/awt/event/ItemEvent.java: New file.
6130 * java/awt/Adjustable.java: New file.
6131 * java/awt/event/InputMethodEvent.java: New file.
6132 * java/awt/event/InputEvent.java: Finished.
6133 * java/awt/event/FocusEvent.java: New file.
6134 * java/awt/event/MouseMotionAdapter.java: New file.
6135 * java/awt/event/MouseAdapter.java: New file.
6136 * java/awt/event/KeyAdapter.java: New file.
6137 * java/awt/event/FocusAdapter.java: New file.
6138 * java/awt/event/ContainerAdapter.java: New file.
6139 * java/awt/event/ComponentEvent.java: Finished.
6140 * java/awt/event/AdjustmentEvent.java: New file.
6141 * java/awt/event/ComponentAdapter.java: New file.
6142 * java/awt/event/ActionEvent.java: Finished.
6143 * java/awt/event/MouseMotionListener.java: New file.
6144 * java/awt/event/MouseListener.java: New file.
6145 * java/awt/event/ItemListener.java: New file.
6146 * java/awt/event/InputMethodListener.java: New file.
6147 * java/awt/event/ContainerListener.java: New file.
6148 * java/awt/event/FocusListener.java: New file.
6149 * java/awt/event/ComponentListener.java: New file.
6150 * java/awt/event/AWTEventListener.java: New file.
6151 * java/awt/event/AdjustmentListener.java: New file.
6153 2000-04-08 Anthony Green <green@cygnus.com>
6155 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6156 check when we have to.
6158 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6161 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6164 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6165 inline hasMoreElements.
6167 2000-04-05 Tom Tromey <tromey@cygnus.com>
6169 * configure: Rebuilt.
6170 * configure.in: Recognize --enable-java-awt.
6171 (AWT): New conditional.
6172 * Makefile.in: Rebuilt.
6173 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6175 (libgcjawt_la_SOURCES): New macro.
6176 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6177 (libgcjawt_la_DEPENDENCIES): Likewise.
6178 (libgcjawt_la_LIBADD): Likewise.
6179 (libgcjawt_la_LDFLAGS): Likewise.
6180 (libgcj.zip): Depend on cond_java_awt_source_files
6181 (cond_awt_java_source_files): New macro.
6182 (MOSTLYCLEANFILES): Added awto_files.
6183 (awto_files): New macro. Use where javao_files used.
6184 (nat_headers): Use cond_awt_java_source_files.
6186 2000-04-04 Tom Tromey <tromey@cygnus.com>
6188 * Makefile.in: Rebuilt.
6189 * Makefile.am (awt_java_source_files): Added AWTException.java.
6190 * java/awt/AWTException.java: New file.
6192 2000-04-03 Tom Tromey <tromey@cygnus.com>
6194 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6195 commentary from Alex.
6197 * Makefile.in: Rebuilt.
6198 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6201 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6203 * configure: Rebuilt.
6204 * configure.in: Add --disable-jvmpi.
6205 * include/config.h.in: Rebuilt.
6206 * acconfig.h: Add ENABLE_JVMPI.
6208 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6209 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6210 (_Jv_JVMPI_Notify_THREAD_END): New define.
6211 (_Jv_JVMPI_Notify_THREAD_END): New define.
6212 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6213 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6214 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6216 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6219 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6220 (finish_): Generate JVMPI thread end events.
6221 (run_): Generate JVMPI thread start events.
6222 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6223 preloaded JNI library.
6224 Include JVMPI headers if necessary.
6225 (run): Generate JVMPI thread start events.
6227 * boehm.cc: Define GC_disable and GC_enable.
6228 (_Jv_DisableGC): New function.
6229 (_Jv_EnableGC): New function.
6230 (disable_gc_mutex): Declare.
6231 * nogc.cc (_Jv_DisableGC): New function.
6232 (_Jv_EnableGC): New function.
6234 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6235 (_Jv_JVMPI_Interface): Define.
6236 (jvmpiEnableEvent): New function.
6237 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6239 * include/jvmpi.h: New file.
6241 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6243 * Makefile.in: New #defines and friends for Thread.h.
6244 * Makefile.am: Ditto.
6245 * posix-threads.cc: (struct starter): Remove `object'.
6246 (_Jv_CondWait): Use interruptable condition variables and new
6247 recursive mutexes. New return codes on interrupt or non-ownership
6249 (_Jv_CondNotify): Ditto.
6250 (_Jv_CondNotifyAll): Ditto.
6251 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6252 the target thread by signaling its wait condition.
6253 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6254 not the starter struct. Initialize wait_mutex and wait_cond.
6255 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6257 (_Jv_MutexUnlock): Ditto.
6258 (really_start): Set info->data->thread from pthread_self() to work
6259 around a race condition. Destroy wait_mutex and wait_cond when run()
6261 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6262 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6264 startable_flag: New private field.
6265 (Thread): Initialize `startable_flag'.
6266 (toString): Check for null thread group.
6267 * java/lang/natThread.cc: (struct natThread): New fields
6268 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6269 (class locker): Removed.
6270 (initialize_native): Initialize `join_cond' and `join_mutex'.
6271 (interrupt): Now just calls _Jv_ThreadInterrupt().
6272 (join): Simplified. Just wait on the target thread's join condition.
6273 (finish_): Remove join list code. Unset thread group. Signal
6274 potential joiners by notifying the dying threads join_cond.
6275 (start): Check for illegal restarts.
6276 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6278 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6279 #defines and #ifdefs.
6280 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6281 `wait_mutex', `next'.
6282 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6283 directly mapping to pthread_cond_t.
6284 (struct _Jv_Mutex_t): New recursive implementation.
6285 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6286 _Jv_HaveCondDestroy: Never define this for posix-threads.
6287 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6288 (_Jv_CondNotifyAll): Ditto.
6289 (_Jv_MutexLock): Ditto.
6290 (_Jv_MutexUnlock): Ditto.
6291 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6292 (_Jv_MutexDestroy): Ditto.
6293 (_Jv_CondDestroy): Removed.
6294 (_Jv_PthreadGetMutex): Removed.
6295 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6296 error. Add a FIXME about this.
6297 (_Jv_CondNotifyAll): Ditto.
6298 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6299 _JV_NOT_OWNER on other errors. Add FIXME.
6301 2000-03-26 Tom Tromey <tromey@cygnus.com>
6303 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6305 (call): Don't throw exception here.
6307 2000-03-26 Tom Tromey <tromey@cygnus.com>
6309 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6310 * interpret.cc: Use SIZEOF_VOID_P.
6311 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6312 (_Jv_loadLong): Likewise.
6313 (_Jv_storeDouble): Likewise.
6314 * configure: Rebuilt.
6315 * configure.in: Check size of void*.
6317 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6319 2000-03-26 Hans Boehm <boehm@acm.org>
6321 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6322 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6324 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6325 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6326 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6327 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6329 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6330 (FFI_RAW_SIZE): Likewise.
6331 (_Jv_InterpMethod::ncode): Use them.
6332 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6333 STORED): Define differently on a 64 bit machine.
6334 (continue1): Use ffi_java_raw_call when appropriate.
6336 2000-03-24 Warren Levy <warrenl@cygnus.com>
6338 * java/math/BigInteger.java(divide): Handle the special case when
6339 dividing by 1 and the high bit of the dividend is set.
6340 (setShiftRight): Handle case when count == 0.
6342 2000-03-24 Warren Levy <warrenl@cygnus.com>
6344 * java/awt/Font.java(isBold): Fix syntax error.
6346 * java/awt/Frame.java(postEvent): ditto.
6347 * java/awt/Menu.java(postEvent): ditto.
6348 * java/awt/MenuBar.java(postEvent): ditto.
6349 * java/awt/Toolkit.java(init): Included a stub.
6351 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6353 * java/awt/Event.java: Add all the event type constants.
6354 (Event): Implemented constructors.
6355 (controlDown): Implemented.
6356 (metaDown): Implemented.
6357 (paramString): Stubbed.
6358 (shiftDown): Implemented.
6359 (toString): Implemented.
6360 (translate): Implemented.
6362 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6364 * java/lang/natClass.cc (isInstance): Initialize `this'.
6365 (isAssignableFrom): Initialize `this' and `klass'.
6366 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6367 implemented by any loaded class, so return false.
6368 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6369 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6371 2000-03-19 Warren Levy <warrenl@cygnus.com>
6373 * java/awt/Color.java: Specified java.io for Serializable.
6374 * java/awt/Toolkit.java: Imported java.net.URL.
6376 2000-03-19 Warren Levy <warrenl@cygnus.com>
6378 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6380 2000-03-16 Warren Levy <warrenl@cygnus.com>
6382 * java/awt/Color.java: New file.
6383 * java/awt/Graphics.java: New file.
6384 * java/awt/Image.java: New file.
6385 * java/awt/Paint.java: New file.
6386 * java/awt/PaintContext.java: New file.
6387 * java/awt/Transparency.java: New file.
6388 * java/util/Collection.java: New file.
6389 * java/util/Comparator.java: New file.
6390 * java/util/Iterator.java: New file.
6391 * java/util/List.java: New file.
6392 * java/util/ListIterator.java: New file.
6393 * Makefile.am: Added above new files.
6394 * Makefile.in: Rebuilt.
6396 * java/awt/Font.java (PLAIN): New field.
6398 (ITALIC): New field.
6399 (ROMAN_BASELINE): New field.
6400 (CENTER_BASELINE): New field.
6401 (HANGING_BASELINE): New field.
6405 (pointSize): New field.
6406 (Font): Implemented constructor.
6407 (isPlain): Implemented method.
6408 (isBold): Implemented method.
6409 (isItalic): Implemented method.
6410 (getName): Implemented method.
6411 (getStyle): Implemented method.
6412 (getSize): Implemented method.
6413 (getSize2D): Implemented method.
6415 * java/awt/Frame.java (getFont): Stubbed.
6416 (postEvent): Stubbed.
6418 * java/awt/Menu.java (postEvent): Stubbed.
6419 * java/awt/MenuBar.java (getFont): Stubbed.
6420 (postEvent): Stubbed.
6421 * java/awt/Toolkit.java (getImage): Added abstract method.
6423 2000-03-15 Tom Tromey <tromey@cygnus.com>
6425 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6427 * prims.cc (win32_exception_handler): Reformatted.
6429 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6430 (_Jv_HaveMutexDestroy): Likewise.
6432 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6434 * java/io/natFileDescriptorWin32.cc: New file.
6435 * java/io/natFileWin32.cc: New file.
6436 * java/net/natInetAddress.cc: Added conditional inclusion of
6437 Windows / Winsock headers.
6438 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6439 inclusion of Windows / Winsock headers.
6440 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6441 Windows / Winsock headers.
6442 * include/win32-signal.h: New file.
6443 * include/win32-threads.h: New file.
6444 * win32-threads.cc: New file.
6445 * exception.cc (win32_get_restart_frame): New function.
6446 * prims.cc (win32_exception_handler): New function.
6447 (main_init) Performs Winsock initialisation.
6448 (main_init) Installs exeception handler.
6450 2000-03-14 Tom Tromey <tromey@cygnus.com>
6452 * jni.cc (mangled_name): Fixed assertion.
6453 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6454 turned assert into actual failure.
6456 2000-03-09 Warren Levy <warrenl@cygnus.com>
6458 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6459 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6460 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6462 2000-03-09 Warren Levy <warrenl@cygnus.com>
6464 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6465 * java/security/DigestException.java: New file.
6466 * java/security/GeneralSecurityException.java: New file.
6467 * java/security/InvalidAlgorithmParameterException.java: New file.
6468 * java/security/InvalidKeyException.java: New file.
6469 * java/security/InvalidParameterException.java: New file.
6470 * java/security/Key.java: New file.
6471 * java/security/KeyException.java: New file.
6472 * java/security/KeyPair.java: New file.
6473 * java/security/KeyPairGenerator.java: New file.
6474 * java/security/KeyPairGeneratorSpi.java: New file.
6475 * java/security/NoSuchProviderException.java: New file.
6476 * java/security/PrivateKey.java: New file.
6477 * java/security/Provider.java: New file.
6478 * java/security/PublicKey.java: New file.
6479 * java/security/SecureRandom.java: New file.
6480 * java/security/Security.java: New file.
6481 * java/security/Signature.java: New file.
6482 * java/security/SignatureException.java: New file.
6483 * java/security/interfaces/DSAKey.java: New file.
6484 * java/security/interfaces/DSAParams.java: New file.
6485 * java/security/interfaces/DSAPrivateKey.java: New file.
6486 * java/security/interfaces/DSAPublicKey.java: New file.
6487 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6488 * java/security/interfaces/RSAPrivateKey.java: New file.
6489 * java/security/interfaces/RSAPublicKey.java: New file.
6490 * java/security/spec/AlgorithmParameterSpec.java: New file.
6491 * java/security/spec/InvalidKeySpecException.java: New file.
6492 * java/security/spec/InvalidParameterSpecException.java: New file.
6493 * java/security/spec/KeySpec.java: New file.
6494 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6495 * java/security/spec/RSAPrivateKeySpec.java: New file.
6496 * java/security/spec/RSAPublicKeySpec.java: New file.
6497 * Makefile.am: Added above java.security files.
6498 * Makefile.in: Rebuilt.
6500 * java/security/MessageDigest.java: Rewritten.
6501 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6503 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6507 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6509 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6510 _Jv_PrepareConstantTimeTables.
6511 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6512 classes should have an IDT, so don't return if klass is an array
6515 2000-03-08 Tom Tromey <tromey@cygnus.com>
6517 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6518 of `void' to be created.
6520 2000-03-08 Warren Levy <warrenl@cygnus.com>
6522 * java/math/BigInteger.java(signum): Handle zero properly.
6524 2000-03-07 Tom Tromey <tromey@cygnus.com>
6526 * All files: Updated copyright information.
6527 * COPYING: New file.
6528 * COPYING.LIB: Removed.
6529 * LIBGCJ_LICENSE: We now use GPL + special exception.
6531 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6533 * resolve.cc (_Jv_SearchMethodInClass): New function.
6534 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6535 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6537 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6539 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6540 (struct _Jv_ifaces): New declaration.
6541 JV_CLASS: New macro definition.
6542 (getComponentType): Relocate below isArray() for inlining.
6543 (getModifiers): Declare `inline'.
6544 (getSuperclass): Ditto.
6546 (isPrimitive): Ditto.
6547 (_Jv_IsAssignableFrom): New prototype.
6548 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6550 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6551 Check for JV_STATE_DONE before invoking initializeClass().
6552 (_Jv_PrepareConstantTimeTables): New prototype.
6553 (_Jv_GetInterfaces): Ditto.
6554 (_Jv_GenerateITable): Ditto.
6555 (_Jv_GetMethodString): Ditto.
6556 (_Jv_AppendPartialITable): Ditto.
6557 (_Jv_FindIIndex): Ditto.
6558 depth, ancestors, idt: New class fields.
6560 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6561 inline function `_Jv_IsAssignableFrom'. Use that function.
6562 (isInstance): Declare `inline'.
6563 (initializeClass): Get lock on class before checking `state'. Unlock
6564 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6566 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6567 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6568 class->depth and ancestor table.
6569 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6570 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6571 _Jv_IsAssignableFrom.
6572 (_Jv_CheckArrayStore): Ditto.
6573 (_Jv_LookupInterfaceMethodIdx): New function.
6574 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6575 (_Jv_PrepareConstantTimeTables): New function.
6576 (_Jv_IndexOf): Ditto.
6577 (_Jv_GetInterfaces): Ditto.
6578 (_Jv_GenerateITable): Ditto.
6579 (_Jv_GetMethodString): Ditto.
6580 (_Jv_AppendPartialITable): Ditto.
6581 iindex_mutex, iindex_mutex_initialized: New static fields.
6582 (_Jv_FindIIndex): New function.
6584 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6586 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6587 (_Jv_CheckArrayStore): Ditto.
6588 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6589 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6590 Moved to gcj/array.h.
6591 (_Jv_Realloc): New function.
6593 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6595 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6596 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6597 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6598 JvNewDoubleArray): Implementations moved from prims.cc and
6601 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6603 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6605 2000-03-06 Tom Tromey <tromey@cygnus.com>
6607 * jni.cc (MARK_NONE): New define.
6608 (MARK_USER): Likewise.
6609 (MARK_SYSTEM): Likewise.
6610 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6612 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6613 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6614 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6615 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6617 (call): Use MARK_SYSTEM.
6618 (_Jv_GetJNIEnvNewFrame): New function.
6619 (_Jv_LookupJNIMethod): New function.
6620 (_Jv_JNI_PopSystemFrame): New function.
6621 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6623 2000-03-05 Tom Tromey <tromey@cygnus.com>
6625 Fix for PR libgcj/43:
6626 * include/Makefile.in: Rebuilt.
6627 * include/Makefile.am (include_HEADERS): New define.
6629 2000-03-05 Anthony Green <green@redhat.com>
6631 * gcj/javaprims.h ("Java"): Remove FirstThread.
6633 * configure.host: Fix __NO_MATH_INLNES botch.
6635 * Makefile.in: Rebuilt.
6636 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6637 (gnu/gcj/runtime/FirstThread.h): Moved.
6638 (ordinary_java_source_files): Move FirstThread.java.
6639 * prims.cc: Deal with FirstThread movement.
6641 (_Jv_RunMain): Ditto.
6643 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6644 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6646 2000-03-05 Warren Levy <warrenl@cygnus.com>
6648 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6649 Handle null addresses.
6651 2000-03-04 Anthony Green <green@redhat.com>
6653 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6656 2000-03-04 Anthony Green <green@redhat.com>
6658 * configure: Rebuilt.
6659 * configure.in (ZLIBTESTSPEC): New macro.
6660 (GCTESTSPEC): New macro.
6661 (LIBGCJTESTSPEC): New macro.
6662 * libgcj-test.spec.in: New file.
6664 2000-03-02 Tom Tromey <tromey@cygnus.com>
6666 * include/java-interp.h: Don't include MethodInvocation.h.
6667 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6668 * Makefile.in: Rebuilt.
6669 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6670 (ordinary_java_source_files): Don't mention
6671 MethodInvocation.java.
6672 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6673 * interpret.cc (MethodInvocation::continue1): Removed.
6674 (run): Handle exceptions here.
6675 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6677 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6679 (defineClass2): Removed.
6681 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6683 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6685 (hack_call): Removed.
6687 * java/lang/Class.h (Class): Removed hackRunInitializers,
6689 * java/lang/natClass.cc (hackRunInitializers): Removed.
6690 (initializeClass): Catch exceptions here.
6691 Include ExceptionInInitializerError.h.
6692 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6695 * java/lang/Object.h (Object): Don't mention hack12_6.
6696 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6698 * java/lang/Object.java (hack12_6): Removed.
6700 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6701 (start): Use run_, not run__.
6702 * java/lang/Thread.java (run_): Renamed from run__; old run_
6705 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6706 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6707 (_Jv_JNI_DefineClass): Likewise.
6708 (_Jv_JNI_ThrowNew): Likewise.
6709 (_Jv_JNI_AllocObject): Likewise.
6710 (_Jv_JNI_GetAnyMethodID): Likewise.
6711 (_Jv_JNI_CallAnyMethodV): Likewise.
6712 (_Jv_JNI_CallAnyMethodA): Likewise.
6713 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6714 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6715 (_Jv_JNI_GetAnyFieldID): Likewise.
6716 (_Jv_JNI_NewString): Likewise.
6717 (_Jv_JNI_NewStringUTF): Likewise.
6718 (_Jv_JNI_GetStringUTFChars): Likewise.
6719 (_Jv_JNI_NewObjectArray): Likewise.
6720 (_Jv_JNI_NewPrimitiveArray): Likewise.
6721 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6722 (_Jv_JNI_GetStringRegion): Likewise.
6723 (_Jv_JNI_GetStringUTFRegion): Likewise.
6724 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6725 (_Jv_JNI_MonitorEnter): Likewise.
6726 (_Jv_JNI_MonitorExit): Likewise.
6727 (_Jv_JNI_ToReflectedField): Likewise.
6728 (_Jv_JNI_ToReflectedMethod): Likewise.
6729 (_Jv_JNI_RegisterNatives): Likewise.
6730 (_Jv_JNI_AttachCurrentThread): Likewise.
6731 (_Jv_JNI_DestroyJavaVM): Likewise.
6733 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6735 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6736 error caused by the incorrect casting of a long to an int.
6738 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6740 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6741 SIGSEV caused by use of the wrong instance variable.
6743 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6745 * java/io/File.java (File(String, String)): For dirPath, treat an
6746 empty String the same as `null'.
6748 2000-02-26 Anthony Green <green@cygnus.com>
6750 * gnu/gcj/io/MimeTypes.java: Test for null.
6752 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6753 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6755 * java/net/URLConnection.java: Update copyright notice.
6757 2000-02-25 Tom Tromey <tromey@cygnus.com>
6759 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6762 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6764 * java/net/URLConnection.java (initializeDateFormats): New
6766 (getHeaderFieldDate): Call initializeDateFormats if required.
6767 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6769 Fix for PR libgcj/38.
6771 2000-02-24 Warren Levy <warrenl@cygnus.com>
6773 * java/math/BigInteger.java(ival): Made private.
6777 2000-02-20 Anthony Green <green@cygnus.com>
6779 * Makefile.in: Rebuilt.
6780 * Makefile.am (ordinary_java_source_files): Add
6781 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6783 * scripts/MakeDefaultMimeTypes.java: New file.
6784 * scripts/mime.types: New file.
6785 * scripts/classes.pl: Moved from top level.
6786 * classes.pl: Moved to scripts directory.
6788 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6790 * gnu/gcj/io/MimeTypes.java: New file.
6791 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6793 2000-02-20 Tom Tromey <tromey@cygnus.com>
6795 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6797 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6799 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6802 2000-02-18 Tom Tromey <tromey@cygnus.com>
6804 * include/jvm.h (_Jv_GetJavaVM): Declare.
6805 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6806 (_Jv_MethodBase::get_method): New method.
6807 (_Jv_JNIMethod::set_function): New method.
6808 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6809 (_Jv_JNI_RegisterNatives): New function.
6810 (_Jv_JNIFunctions): Updated for new functions.
6811 (_Jv_GetJavaVM): New function.
6812 (_Jv_JNI_GetJavaVM): Use it. Now static.
6813 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6814 is already a Java thread but does not have a JNIEnv yet.
6816 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6819 2000-02-17 Tom Tromey <tromey@cygnus.com>
6821 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6824 2000-02-16 Tom Tromey <tromey@cygnus.com>
6826 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6828 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6829 (_Jv_JNI_NewObject): Likewise.
6830 (_Jv_JNI_NewObjectA): Likewise.
6831 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6832 as "return" type to _Jv_CallAnyMethodA.
6833 (_Jv_JNI_CallAnyMethodA): Likewise.
6834 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6836 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6839 2000-02-15 Tom Tromey <tromey@cygnus.com>
6841 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6843 (init_cif): Added `rtype_p' argument.
6844 * include/java-interp.h (class _Jv_MethodBase): Added
6846 (class _Jv_InterpMethod): Removed args_raw_size.
6847 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6848 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6849 class pointer as well as the ordinary arguments.
6851 * jni.cc (mangled_name): Skip leading `(' in signature.
6853 * jni.cc (add_char): Added missing `else'.
6855 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6858 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6862 * java/lang/natRuntime.cc (_load): Include library path with
6865 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6868 * java/lang/natThread.cc (dumpStack): Removed.
6869 * java/lang/Thread.java (dumpStack): Implemented.
6871 2000-02-15 Tom Tromey <tromey@cygnus.com>
6873 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6874 with `lib' for loadLibrary. Fixes PR gcj/150.
6876 2000-02-14 Warren Levy <warrenl@cygnus.com>
6878 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6880 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6884 (modPow): Rewritten to not use the naive, slow, brute force approach.
6885 (isProbablePrime): Implemented.
6886 (testBit): Implemented.
6887 (flipBit): Implemented.
6888 (getLowestSetBit): Implemented.
6890 2000-02-16 Anthony Green <green@redhat.com>
6892 * configure.host: Use the same options for i386 and i486 as we do
6895 2000-02-12 Tom Tromey <tromey@cygnus.com>
6897 * java/io/File.java (createTempFile): Use low bits from counter,
6900 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6902 * THANKS: More thanks.
6904 2000-02-11 Tom Tromey <tromey@cygnus.com>
6906 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6907 astore instruction. From Hans Boehm.
6909 2000-02-11 Warren Levy <warrenl@cygnus.com>
6911 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6912 (BigInteger(String)): New constructor.
6913 (not): Rewritten using version from Kawa's BitOps class.
6914 (valueOf): New private methods from Kawa's BitOps class.
6921 (andNot): Implemented.
6922 (clearBit): Implemented.
6923 (setBit): Implemented.
6924 (bitCount): Implemented.
6925 (toByteArray): Implemented.
6927 2000-02-11 Tom Tromey <tromey@cygnus.com>
6929 * java/io/File.java (nextValue): Now synchronized.
6931 2000-02-10 Tom Tromey <tromey@cygnus.com>
6933 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6934 * java/io/FileDescriptor.java (EXCL): New static field.
6935 * java/io/File.java (tmpdir): New static field.
6936 (createTempFile): New method.
6937 (nextValue): New method.
6938 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6941 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6942 (jboolean): Declare as an attributed int, not a bool.
6943 (_Jv_func): Declare differently for C.
6945 * gnu/gcj/jni/natNativeThread.cc: New file.
6946 * gnu/gcj/jni/NativeThread.java: New file.
6947 * java/lang/Thread.java (data): Now a RawData.
6948 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6950 * Makefile.in: Rebuilt.
6951 * Makefile.am (java/lang/Thread.h): New target.
6952 (ordinary_java_source_files): Added NativeThread.java.
6953 (nat_source_files): Added natNativeThread.cc.
6954 * java/lang/natThread.cc: Include <jni.h>
6955 (struct natThread): Added `jni_env' field.
6956 (_Jv_GetCurrentJNIEnv): New function.
6957 (_Jv_SetCurrentJNIEnv): Likewise.
6958 (initialize_native): Initialize jni_env.
6960 * jni.cc (ThreadGroupClass): New define.
6961 (_Jv_JNI_InvokeFunctions): New structure.
6962 (JNI_GetCreatedJavaVMs): New function.
6963 (the_vm): New global.
6964 (JNI_GetDefaultJavaVMInitArgs): New function.
6965 Include NativeThread.h.
6966 (NativeThreadClass): New define.
6967 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6968 (_Jv_JNI_DestroyJavaVM): New function.
6969 (_Jv_JNI_AttachCurrentThread): New function.
6970 (_Jv_JNI_DetachCurrentThread): New function.
6971 (_Jv_JNI_GetEnv): New function.
6972 (JNI_CreateJavaVM): New function.
6973 (_Jv_JNI_GetJavaVM): New function.
6974 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6975 * include/jni.h (JavaVMAttachArgs): New structure.
6976 (JNI_EDETACHED): New define.
6977 (JNI_EVERSION): Likewise.
6978 (JavaVM): Define properly.
6979 (struct JNIInvokeInterface): New structure.
6980 (class _Jv_JavaVM): New class.
6981 (JNI_OnLoad, JNI_OnUnload): Declare.
6982 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6983 JNI_GetCreatedJavaVMs): Declare.
6984 (JavaVMInitArgs): New typedef.
6985 (JavaVMOption): Likewise.
6986 (JNI_ERR): New define.
6989 2000-02-10 Andrew Haley <aph@cygnus.com>
6991 * interpret.cc: Don't include fdlibm.h.
6992 Replace #if with #ifdef throughout.
6993 Declare extern __ieee754_fmod.
6994 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6996 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6997 Search class hierarchy for superclass vtable.
6999 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7000 off the end of a pointer list.
7002 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7006 2000-02-09 Tom Tromey <tromey@cygnus.com>
7008 * java/lang/natRuntime.cc (_load): Call add_library.
7009 (loadLibraryInternal): Likewise.
7011 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7012 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7013 (Output_iconv::finalize): Likewise.
7015 2000-02-08 Tom Tromey <tromey@cygnus.com>
7017 * java/util/Properties.java (setProperty): New method.
7018 (store): New method.
7020 2000-02-07 Tom Tromey <tromey@cygnus.com>
7022 * java/lang/Runtime.java (_load): Declare.
7023 (load, loadLibrary): Wrote in terms of _load.
7024 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7026 (loadLibrary): Likewise.
7028 (_load): New method.
7029 (loadLibrary, load): Removed.
7031 * jni.cc (ThrowableClass): New define.
7032 (_Jv_JNI_Throw): Check argument.
7033 (_Jv_JNI_ThrowNew): Likewise.
7034 (wrap_value): Don't wrap object if it is NULL.
7035 (_Jv_JNI_DefineClass): Use wrap_value.
7036 (_Jv_JNI_FindClass): Likewise.
7037 (_Jv_JNI_GetSuperclass): Likewise.
7038 (_Jv_JNI_ExceptionOccurred): Likewise.
7039 (_Jv_JNI_AllocObject): Likewise.
7040 (_Jv_JNI_GetObjectClass): Likewise.
7041 (_Jv_JNI_NewString): Likewise.
7042 (_Jv_JNI_NewStringUTF): Likewise.
7043 (_Jv_JNI_NewObjectArray): Likewise.
7044 (_Jv_JNI_GetObjectArrayElement): Likewise.
7045 (_Jv_JNI_NewPrimitiveArray): Likewise.
7046 (_Jv_JNI_ToReflectedField): Likewise.
7047 (_Jv_JNI_ToReflectedMethod): Likewise.
7048 (_Jv_JNI_AllocObject): Check argument.
7049 (_Jv_JNI_NewObjectV): Likewise.
7050 (_Jv_JNI_NewObject): Likewise.
7051 (_Jv_JNI_NewObjectA): Likewise.
7052 (_Jv_JNI_GetObjectClass): Likewise.
7053 (_Jv_JNI_GetField): Likewise.
7054 (_Jv_JNI_SetField): Likewise.
7056 * interpret.cc (PUSHL): Don't use expression statement.
7061 * jni.cc (add_char): Conditional on INTERPRETER.
7062 (mangled_name): Likewise.
7064 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7066 (class _Jv_JNIMethod): Likewise.
7068 2000-02-04 Warren Levy <warrenl@cygnus.com>
7070 * Makefile.am: Added MPN.java and BigInteger.java.
7071 * Makefile.in: Rebuilt.
7072 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7074 * java/math/BigInteger.java: New file. Based primarily on
7075 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7077 2000-02-04 Tom Tromey <tromey@cygnus.com>
7079 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7081 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7082 if the method is native.
7083 * resolve.cc (ncode): Don't handle native methods.
7084 (_Jv_JNIMethod::ncode): New method.
7085 (_Jv_PrepareClass): Handle native methods.
7086 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7087 Include AbstractMethodError.h.
7088 (add_char): New function.
7089 (mangled_name): Likewise.
7090 * include/java-interp.h (class _Jv_JNIMethod): New class.
7091 (class _Jv_MethodBase): New class.
7092 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7093 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7096 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7097 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7098 libraries): New globals.
7099 (add_library): New function.
7100 (_Jv_FindSymbolInExecutable): New function.
7102 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7105 2000-02-04 Andrew Haley <aph@cygnus.com>
7107 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7108 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7109 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7110 printStackTrace to printRawStackTrace.
7112 2000-02-03 Tom Tromey <tromey@cygnus.com>
7114 * java/util/Calendar.java (toString): New method.
7115 * java/util/SimpleTimeZone.java (clone): New method.
7116 (toString): New method.
7117 * java/util/TimeZone.java (clone): New method.
7118 * java/text/SimpleDateFormat.java (clone): New method.
7119 * java/text/NumberFormat.java (clone): New method.
7120 (equals): New method.
7121 * java/text/Format.java (clone): New method.
7122 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7124 (clone): New method.
7125 * java/text/DateFormat.java (clone): New method.
7126 * java/text/Collator.java (clone): New method.
7128 2000-02-03 Tom Tromey <tromey@cygnus.com>
7130 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7133 2000-02-01 Tom Tromey <tromey@cygnus.com>
7135 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7136 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7137 constructing the closure if the function is native.
7138 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7139 a template function, #if'd out, or static.
7140 Include <java-interp.h>.
7142 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7144 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7146 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7147 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7149 (wrap_value): New function.
7150 (_Jv_JNI_CallAnyMethodV): Use it.
7151 (_Jv_JNI_CallAnyMethodA): Likewise.
7152 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7153 (_Jv_JNI_GetStaticField): Likewise.
7155 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7156 (_Jv_JNI_GetStaticField): Likewise.
7158 2000-01-31 Tom Tromey <tromey@cygnus.com>
7160 * prims.cc (_Jv_MallocUnchecked): New function.
7161 (main_init): Call _Jv_JNI_Init.
7162 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7163 (_Jv_JNI_Init): Declare.
7164 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7166 (_Jv_JNI_NewGlobalRef): New function.
7167 (_Jv_JNI_DeleteGlobalRef): New function.
7168 (_Jv_JNI_DeleteLocalRef): New function.
7169 (_Jv_JNI_conversion_call): Initialize and clear local reference
7171 (_Jv_JNI_NewLocalRef): New function.
7172 (struct _Jv_JNI_LocalFrame): New structure.
7173 (_Jv_JNI_PushLocalFrame): New function.
7174 (_Jv_JNI_EnsureLocalCapacity): New function.
7175 (FRAME_SIZE): New define.
7176 (_Jv_JNI_GetStringChars): Mark string, not characters.
7177 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7178 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7179 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7181 (_Jv_JNI_DefineClass): Make return value a local ref.
7182 (_Jv_JNI_FindClass): Likewise.
7183 (_Jv_JNI_GetSuperclass): Likewise.
7184 (_Jv_JNI_ExceptionOccurred): Likewise.
7185 (_Jv_JNI_AllocObject): Likewise.
7186 (_Jv_JNI_GetObjectClass): Likewise.
7187 (_Jv_JNI_CallAnyMethodV): Likewise.
7188 (_Jv_JNI_NewString): Likewise.
7189 (_Jv_JNI_NewStringUTF): Likewise.
7190 (_Jv_JNI_NewObjectArray): Likewise.
7191 (_Jv_JNI_GetObjectArrayElement): Likewise.
7192 (_Jv_JNI_ToReflectedField): Likewise.
7193 (_Jv_JNI_ToReflectedMethod): Likewise.
7194 (_Jv_JNIFunctions): Updated table for new functions.
7195 (_Jv_JNI_Init): New function.
7196 (mark_for_gc): Wrote.
7197 (unmark_for_gc): Wrote.
7198 * include/jni.h (struct JNINativeInterface): Removed name from
7199 PopLocalFrame parameter.
7200 (class _Jv_JNIEnv): Added `locals' field.
7202 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7204 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7207 2000-01-30 Tom Tromey <tromey@cygnus.com>
7209 * include/config.h.in: Rebuilt.
7210 * acconfig.h (HAVE_ICONV): Define.
7211 * configure: Rebuilt.
7212 * configure.in: Check for `iconv' function.
7213 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7214 no specific encoder exists.
7215 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7216 no specific encoder exists.
7217 * Makefile.in: Rebuilt.
7218 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7220 (nat_source_files): Added natIconv.cc.
7221 * gnu/gcj/convert/natIconv.cc: New file.
7222 * gnu/gcj/convert/Input_iconv.java: New file.
7223 * gnu/gcj/convert/Output_iconv.java: New file.
7225 2000-01-28 Tom Tromey <tromey@cygnus.com>
7227 * Makefile.in: Rebuilt.
7228 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7230 2000-01-26 Tom Tromey <tromey@cygnus.com>
7232 * gcj/method.h (JvNumMethods): Moved from Class.h.
7233 (JvGetFirstMethod): Likewise.
7234 * java/lang/Class.h (Object): Updated decl of
7235 _Jv_JNI_ToReflectedField.
7236 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7237 * Makefile.in: Rebuilt.
7238 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7239 argument of _Jv_JNI_ToReflectedField.
7240 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7242 (java/lang/reflect/Method.h): Likewise.
7243 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7245 (jweak): New typedef.
7246 (struct JNINativeInterface): Correctly declare remaining entries.
7247 * jni.cc: Include Class.h, ClassLoader.h.
7248 (_Jv_JNI_FindClass): New function.
7249 (_Jv_JNI_DefineClass): New function.
7250 (_Jv_JNI_conversion_call): New function.
7251 (_Jv_JNI_FindClass): Use current class loader to find class.
7252 (_Jv_JNI_ExceptionCheck): New function.
7253 (_Jv_JNI_FromReflectedField): Now static.
7254 (MethodClass): New define.
7255 (_Jv_JNI_FromReflectedMethod): New function.
7256 (_Jv_JNI_ToReflectedMethod): Likewise.
7258 (_Jv_JNI_IsAssignableFrom): Renamed.
7259 (_Jv_JNI_GetStringRegion): New function.
7260 Include StringIndexOutOfBoundsException.h.
7261 (_Jv_JNI_GetStringUTFRegion): New function.
7262 (_Jv_JNIFunctions): Updated for new functions.
7263 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7264 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7265 (_Jv_JNI_GetStringCritical): New function.
7266 (_Jv_JNI_ReleaseStringCritical): Likewise.
7267 (get_throwable): Removed.
7268 (GCJ_JV_JNIENV_FRIEND): Removed.
7269 (__GCJ_JNI_IMPL__): Define.
7272 * resolve.cc (get_ffi_type_from_signature): Handle case where
7275 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7277 * interpret.cc (run): Don't call println.
7278 Don't include PrintStream.h.
7280 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7281 nameIndex. Use "jint" as type for boffset.
7282 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7284 (Class): Likewise. Also changed type of method_count,
7285 vtable_method_count, size_in_bytes, field_count,
7286 static_field_count, interface_count.
7287 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7290 2000-01-21 Tom Tromey <tromey@cygnus.com>
7292 * java/lang/reflect/natConstructor.cc (newInstance): Use
7294 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7295 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7296 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7299 (invoke): Use _Jv_CallAnyMethodA.
7301 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7302 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7304 (struct _Jv_Method): Added getNextMethod method.
7305 (JvNumMethods): New function.
7306 (JvGetFirstMethod): Likewise.
7307 * gcj/field.h (JvGetFirstStaticField): New function.
7308 (JvNumStaticFields): Likewise.
7309 (getNextField): Renamed from getNextInstanceField.
7310 (struct _Jv_Field): New method getClass.
7311 * jni.cc: Wrote many new functions.
7312 * include/jni.h (JNI_TRUE): Define.
7313 (JNI_FALSE): Likewise.
7314 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7315 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7316 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7317 (jfieldID, jmethodID): Likewise.
7318 (JNI_COMMIT, JNI_ABORT): New defines.
7319 (JNINativeMethod): New struct.
7320 (struct JNINativeInterface): Correctly declared more entries.
7321 (class _Jv_JNIEnv): Added `ex' member.
7322 (JNI_VERSION_1_1): New define.
7323 (JNI_VERSION_1_2): Likewise.
7325 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7326 getNextInstanceField.
7328 2000-01-20 Tom Tromey <tromey@cygnus.com>
7330 * resolve.cc (StringClass): Removed.
7331 * defineclass.cc (StringClass): Removed.
7333 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7337 2000-01-19 Tom Tromey <tromey@cygnus.com>
7339 * interpret.cc (PC_REGISTER_ASM): Removed.
7341 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7342 From Bryce McKinlay.
7344 * All files: Updated copyright to reflect Cygnus purchase.
7346 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7348 * configure: Rebuilt.
7349 * configure.in: Recognize --disable-interpreter.
7351 2000-01-18 Andrew Haley <aph@cygnus.com>
7353 * name-finder.cc (lookup): Check for dladdr function.
7354 acconfig.h (HAVE_DLADDR): Add.
7355 configure.in: Check for HAVE_DLADDR
7357 include/config.h.in: Rebuilt.
7359 2000-01-17 Andrew Haley <aph@cygnus.com>
7361 * prims.cc (_Jv_RunMain): Set the name of this executable.
7363 2000-01-17 Tom Tromey <tromey@cygnus.com>
7365 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7366 when backtrace can't be computed.
7368 * configure: Rebuilt.
7369 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7371 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7372 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7373 (_Jv_FindClassInCache): Likewise.
7374 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7375 (findSystemClass): Try to load class from compiled module.
7377 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7378 (loadLibrary): Likewise.
7379 (lt_preloaded_symbols): Define.
7380 (loadLibraryInternal): New method.
7381 * include/config.h.in: Rebuilt.
7382 * acconfig.h (USE_LTDL): Added.
7383 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7384 (INCLUDES): Added $(INCLTDL).
7385 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7386 (libgcj_la_LIBADD): Likewise.
7387 * aclocal.m4, configure: Rebuilt.
7388 * configure.in: Added libltdl support.
7390 2000-01-15 Tom Tromey <tromey@cygnus.com>
7392 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7394 2000-01-14 Andrew Haley <aph@cygnus.com>
7396 * java/lang/natThrowable.cc: New file.
7398 * java/lang/Throwable.java (fillInStackTrace): Make native.
7399 (printStackTrace): Call native method to do this.
7400 (Throwable): Call fillInStackTrace.
7401 (stackTrace): New variable.
7403 * include/jvm.h: Add _Jv_ThisExecutable functions.
7405 * prims.cc: (_Jv_execName): New variable.
7406 (catch_segv): Call fillInStackTrace.
7408 (_Jv_ThisExecutable): New functions.
7409 (JvRunMain): Set the name of this executable.
7411 * Makefile.am: Add java/lang/natThrowable.cc.
7413 * Makefile.in: Rebuilt.
7415 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7417 * configure.in: Force link with __frame_state_for in
7418 FORCELIBGCCSPEC. Add new checks for backtrace.
7419 * include/config.h.in: Rebuilt.
7421 * name-finder.cc: New file.
7422 * include/name-finder.h: New file.
7424 2000-01-16 Anthony Green <green@cygnus.com>
7426 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7429 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7431 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7433 2000-01-13 Tom Tromey <tromey@cygnus.com>
7435 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7436 not system loader, as initiating loader.
7438 2000-01-11 Tom Tromey <tromey@cygnus.com>
7440 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7441 HP/UX. From David Scott Urban.
7443 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7445 * java/lang/natMath.cc (pow): Cast args to `double', not
7448 (IEEEremainder): Likewise.
7449 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7450 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7452 2000-01-09 Anthony Green <green@cygnus.com>
7454 * java/lang/natString.cc (init): Test for overflow condition
7455 during out of bounds check.
7456 (getChars): Throw StringIndexOutOfBoundsException, not
7457 ArrayIndexOutOfBoundsException.
7459 (regionMatches): Obey case option during string comparison.
7461 * configure.host (ligcj_interpreter): New variable. Enable
7462 interpreter by default on IA-32.
7463 * configure.in: Examine libgcj_interpreter.
7464 * configure: Rebuilt.
7466 2000-01-07 Tom Tromey <tromey@cygnus.com>
7468 * mauve-libgcj: Don't disable ClassTest.
7470 * java/lang/natClass.cc (getClasses): Wrote.
7472 2000-01-06 Tom Tromey <tromey@cygnus.com>
7474 * java/lang/natClass.cc (_getConstructors): Correctly check
7475 whether method name is the init name.
7476 (getMethod): Look at accflags on method in `klass', not `this'.
7478 2000-01-05 Tom Tromey <tromey@cygnus.com>
7480 * java/lang/natClass.cc (getMethod): Compute offset relative to
7481 `klass's methods table, not `this's table.
7483 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7484 In unwrapping/widening case, check whether `k' is null, not
7485 whether it is primitive. Initialize `num' from `argelts', not
7486 `paramelts'. Correct create and pass arguments to ffi_call.
7487 Don't let presence of `this' argument affect index used to look in
7489 (COPY): Set appropriate element in `values' vector.
7491 * java/lang/natClass.cc: Include <gcj/method.h>.
7493 * java/lang/Class.h (_getMethods): Correctly declare as private,
7496 * java/lang/Class.h (_getMethods): Declare.
7497 * java/lang/Class.java (_getMethods): Declare.
7498 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7499 (getDeclaredClasses): Always return empty array.
7500 (_getMethods): New method.
7501 (getMethods): Wrote.
7502 (getDeclaredMethod): Return `rmethod'.
7503 (finit_name): New global.
7504 (getDeclaredMethods): Check for finit_name.
7505 (_getMethods): Likewise.
7506 (getMethod): Only return public methods.
7508 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7509 jboolean and select correct ffi type on that basis.
7510 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7511 Constructor call always has `void' return type.
7513 2000-01-04 Tom Tromey <tromey@cygnus.com>
7515 * java/lang/Class.h (getSignature): Updated.
7516 * java/lang/Class.java (getSignature): Updated.
7517 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7519 (getConstructor): Ensure constructor is public.
7520 (_getConstructors): Check for public-ness of constructor when
7521 `declared' is false, not when it is true.
7523 2000-01-04 Warren Levy <warrenl@cygnus.com>
7525 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7527 (receive): Set the sender's address in the DatagramPacket.
7529 2000-01-04 Tom Tromey <tromey@cygnus.com>
7531 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7532 declaring class as return_type argument to
7533 _Jv_CallNonvirtualMethodA.
7534 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7535 constructor case, create object and use it as `this' argument.
7536 * java/lang/Class.h (_getConstructors): Declare.
7537 (_getFields): Declare.
7538 * java/lang/Class.java (getConstructors): Wrote.
7539 (_getConstructors): New native method.
7540 (getDeclaredConstructors): Wrote.
7541 (_getFields): Declare new native method.
7542 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7544 (getMethod): Work correctly when class is primitive.
7545 (getDeclaredMethods): Likewise. Compute offset using `method',
7547 (getDeclaredMethod): Likewise.
7548 (getConstructor): Wrote.
7549 (ConstructorClass): New define.
7550 (getDeclaredConstructor): Wrote.
7551 (_getConstructors): New method.
7552 (_getFields): New method.
7555 * Makefile.in: Rebuilt.
7556 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7558 * prims.cc: Remove `#pragma implementation'.
7559 * gcj/array.h: Remove `#pragma interface'.
7561 * prims.cc (_Jv_equaln): New function.
7562 * java/lang/Class.java (getSignature): Declare.
7563 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7564 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7566 (getSignature): New method.
7567 (getDeclaredMethod): Wrote.
7569 Include StringBuffer.h.
7570 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7571 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7573 (getSignature): Declare.
7574 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7575 (_Jv_equaln): Declare.
7576 (_Jv_CallNonvirtualMethodA): Declare.
7577 * Makefile.in: Rebuilt.
7578 * Makefile.am (nat_source_files): Added natConstructor.cc.
7579 (java/lang/reflect/Constructor.h): New target.
7580 * java/lang/reflect/natConstructor.cc: New file.
7581 * java/lang/reflect/Constructor.java (newInstance): Now native.
7582 (declaringClass): Renamed from decl_class.
7583 (offset): Renamed from index.
7584 (getType): New native method.
7585 (getModifiers): Now native.
7586 (getParameterTypes): Call getType if required.
7587 (hashCode): Include hash code from declaring class.
7588 (modifiers): Removed.
7589 (toString): Call getType if required.
7590 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7591 * java/lang/reflect/natMethod.cc (hack_call): New method.
7592 Removed `#if 0' around FFI code.
7593 Include <gnu/gcj/RawData.h>.
7594 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7595 IllegalArgumentException when argument object and class disagree.
7596 (_Jv_GetTypesFromSignature): New function.
7598 (ObjectClass): New define.
7599 (_Jv_CallNonvirtualMethodA): New function.
7600 * java/lang/reflect/Method.java (hack_trampoline): New method.
7601 (hack_call): New native method.