1 2001-09-05 Tom Tromey <tromey@redhat.com>
3 * java/util/Date.java: Re-merged with Classpath.
5 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
7 2001-09-05 Corey Minyard <minyard@acm.org>
8 Tom Tromey <tromey@redhat.com>
10 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
11 (_Jv_RegisterClassHookDefault): Throw error if a class is
14 2001-09-05 Tom Tromey <tromey@redhat.com>
16 * java/lang/natSystem.cc (init_properties): Default locale is
19 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
21 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
22 here, DecimalFormat.applyPattern() does not throw it.
24 2001-09-04 Tom Tromey <tromey@redhat.com>
26 * java/util/AbstractMap.java: Re-merged with Classpath.
27 * java/util/IdentityHashMap.java: Re-merged with Classpath.
29 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
30 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
31 gnu/gcj/text/LocaleData_en_US.java: Removed.
32 * java/text/DateFormatSymbols.java (clone): Use Classpath
35 (DateFormatSymbols): Look in gnu.java.locale for information.
36 (DateFormatSymbols(DateFormatSymbols)): Removed.
37 (safeGetResource): Removed.
38 (DateFormatSymbols): Throws MissingResourceException.
39 (ampmsDefault, erasDefault, localPatternCharsDefault,
40 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
41 weekdaysDefault, zoneStringsDefault): Removed.
42 * java/text/Collator.java (getAvailableLocales): Use modified
43 Classpath implementation.
44 (getInstance): Look in gnu.java.locale for information.
46 * java/text/MessageFormat.java: Reindented.
48 * java/text/FieldPosition.java: Merged with Classpath.
49 * java/text/ParsePosition.java: Merged with Classpath.
50 * java/text/Format.java: Merged with Classpath.
51 * java/text/StringCharacterIterator.java
52 (StringCharacterIterator(StringCharacterIterator,int,int)): New
53 constructor from Classpath.
54 * java/text/Annotation.java,
55 java/text/AttributedCharacterIterator.java,
56 java/text/AttributedString.java,
57 java/text/AttributedStringIterator.java: New from Classpath.
58 * java/text/CharacterIterator.java: Copied from Classpath.
59 * java/text/ChoiceFormat.java: Reindented.
61 * gnu/java/text/BaseBreakIterator.java,
62 gnu/java/text/CharacterBreakIterator.java,
63 gnu/java/text/LineBreakIterator.java,
64 gnu/java/text/LocaleData_en.java,
65 gnu/java/text/LocaleData_en_US.java,
66 gnu/java/text/SentenceBreakIterator.java,
67 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
68 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
70 * java/text/BreakIterator.java (getAvailableLocales): Use
71 Classpath implementation.
72 (getInstance): Look in gnu.java.locale for information.
73 (getCharacterInstance, getLineInstance, getSentenceInstance,
74 getWordInstance): Look in gnu.java.text for implementations.
75 * java/text/DecimalFormatSymbols.java: Reindented
76 (clone): Use Classpath implementation.
77 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
78 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
80 * java/text/DateFormat.java: Merged with Classpath.
81 (getAvailableLocales): Use Classpath implementation.
82 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
83 (computeInstance): Look in gnu.java.locale for information.
84 * java/text/NumberFormat.java: Reindented.
85 (computeInstance): Look in gnu.java.locale for information.
86 (getAvailableLocales): Use implementation from Classpath.
87 (setMaximumIntegerDigits): Likewise.
88 (setMinimumIntegerDigits): Likewise.
89 (setMaximumFractionDigits): Likewise.
91 * java/text/DecimalFormat.java: Reindented.
92 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
93 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
94 * Makefile.in: Rebuilt.
95 * Makefile.am (ordinary_java_source_files): Added all new files.
96 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
97 * java/security/spec/AlgorithmParameterSpec.java,
98 java/security/spec/KeySpec.java: Re-merged with Classpath.
100 Fix for PR libgcj/4213:
101 * Makefile.am (ordinary_java_source_files): Added new file.
102 * gnu/gcj/text/LocaleData.java: New file.
104 2001-09-03 Tom Tromey <tromey@redhat.com>
106 * java/lang/reflect/natField.cc (set): Allow for case when the
107 value is null. Fixes PR libgcj/4208.
109 * gcj/javaprims.h: Regenerated class list.
110 * java/lang/IllegalThreadStateException.java,
111 java/lang/InstantiationException.java: Minor comment tweaks to
112 satisfy libgcj `classes.pl' script.
114 2001-09-01 Tom Tromey <tromey@redhat.com>
116 * Makefile.in: Rebuilt.
117 * Makefile.am (core_java_source_files): Added
118 UnsupportedClassVersionError.
119 * java/lang/UnsupportedClassVersionError.java: New file from
122 * java/io/CharConversionException.java, java/io/EOFException.java,
123 java/io/FileNotFoundException.java, java/io/IOException.java,
124 java/io/InterruptedIOException.java,
125 java/io/ObjectStreamException.java,
126 java/io/OptionalDataException.java,
127 java/io/StreamCorruptedException.java,
128 java/io/SyncFailedException.java,
129 java/io/UTFDataFormatException.java,
130 java/io/UnsupportedEncodingException.java,
131 java/lang/AbstractMethodError.java,
132 java/lang/ArithmeticException.java,
133 java/lang/ArrayIndexOutOfBoundsException.java,
134 java/lang/ArrayStoreException.java,
135 java/lang/ClassCastException.java,
136 java/lang/ClassCircularityError.java,
137 java/lang/ClassFormatError.java,
138 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
139 java/lang/Exception.java,
140 java/lang/ExceptionInInitializerError.java,
141 java/lang/IllegalAccessError.java,
142 java/lang/IllegalAccessException.java,
143 java/lang/IllegalArgumentException.java,
144 java/lang/IllegalMonitorStateException.java,
145 java/lang/IllegalStateException.java,
146 java/lang/IllegalThreadStateException.java,
147 java/lang/IncompatibleClassChangeError.java,
148 java/lang/IndexOutOfBoundsException.java,
149 java/lang/InstantiationError.java,
150 java/lang/InstantiationException.java,
151 java/lang/InternalError.java, java/lang/InterruptedException.java,
152 java/lang/LinkageError.java,
153 java/lang/NegativeArraySizeException.java,
154 java/lang/NoClassDefFoundError.java,
155 java/lang/NoSuchFieldError.java,
156 java/lang/NoSuchFieldException.java,
157 java/lang/NoSuchMethodError.java,
158 java/lang/NoSuchMethodException.java,
159 java/lang/NullPointerException.java,
160 java/lang/NumberFormatException.java,
161 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
162 java/lang/SecurityException.java,
163 java/lang/StackOverflowError.java,
164 java/lang/StringIndexOutOfBoundsException.java,
165 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
166 java/lang/UnsatisfiedLinkError.java,
167 java/lang/UnsupportedOperationException.java,
168 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
169 java/lang/reflect/InvocationTargetException.java,
170 java/net/BindException.java, java/net/ConnectException.java,
171 java/net/MalformedURLException.java,
172 java/net/NoRouteToHostException.java,
173 java/net/ProtocolException.java, java/net/SocketException.java,
174 java/net/UnknownHostException.java,
175 java/net/UnknownServiceException.java,
176 java/text/ParseException.java: Copied from Classpath, thanks to
177 Mark Wielaard who did the merge.
179 * java/lang/System.java (getProperty): Use single argument form of
180 SecurityManager.checkPropertyAccess.
181 * Makefile.in: Rebuilt.
182 * Makefile.am (core_java_source_files): Added VMSecurityManager.
183 * java/lang/VMSecurityManager.java: New file.
184 * java/lang/SecurityManager.java: Merged with Classpath.
186 2001-08-31 Per Bothner <per@bothner.com>
188 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
189 (_Jv_RegisterClassHookDefault): Likewise.
190 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
191 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
192 (_Jv_RegisterClassHookDefault): New.function.
193 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
195 * java/lang/ClassLoader.java (system): Remove static field.
196 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
197 directly instead of using it to set the system field.
198 (loadClass): Use VMClassLoader.instance instead of system field.
199 (findSystemClass): Similar.
200 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
201 than ClassLoader::system which no longer exists.
202 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
204 2001-08-31 Tom Tromey <tromey@redhat.com>
206 * java/io/BufferedReader.java, java/io/ObjectInput.java,
207 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
208 Re-merged with Classpath.
210 Re-merge with Classpath:
211 * java/util/Comparator (equals): Added.
212 * java/io/PipedWriter.java (write): Changed argument to `int'.
214 * java/io/FileDescriptor.java (FileDescriptor()): New
216 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
218 * Makefile.in: Rebuilt.
219 * Makefile.am (ordinary_java_source_files): Removed
220 EnumerationChain, added DoubleEnumeration.
221 (nat_source_files): Added natResourceBundle.cc.
222 * java/util/natResourceBundle.cc: New file.
223 * gnu/java/util/DoubleEnumeration.java: New file.
224 * gnu/gcj/util/EnumerationChain.java: Removed.
225 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
226 * java/util/ResourceBundle.java: Merged with Classpath.
227 * java/util/StringTokenizer.java: Merged with Classpath.
228 * java/util/Locale.java: Merged with Classpath.
229 * java/util/Random.java: Merged with Classpath.
230 * java/util/PropertyResourceBundle.java: Merged with Classpath.
231 * java/util/ListResourceBundle.java: Merged with Classpath.
232 * java/util/ConcurrentModificationException.java: Re-merged with
234 * java/util/EmptyStackException.java: Likewise.
235 * java/util/MissingResourceException.java: Likewise.
236 * java/util/NoSuchElementException.java: Likewise.
237 * java/util/TooManyListenersException.java: Likewise.
239 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
240 * java/io/OptionalDataException.java: Merged with Classpath.
242 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
244 * exception.cc (PERSONALITY_FUNCTION): Simplify
247 2001-08-31 Tom Tromey <tromey@redhat.com>
249 * java/io/ByteArrayInputStream.java: Merged with Classpath.
251 2001-08-30 Tom Tromey <tromey@redhat.com>
253 * java/io/BufferedReader.java: Re-merged with Classpath.
255 2001-08-28 Per Bothner <per@bothner.com>
257 * java/math/BigInteger.java (init(int,Random)): New method.
258 Move body of constructor <init>(int,Random)) here.
259 Re-write it to avoid constructing unneeded temporaries.
260 (<init>(int,int,Random)): Use new init method to avoid constructing
261 extra temporary BigIntegers.
263 2001-08-27 Tom Tromey <tromey@redhat.com>
265 * java/rmi/activation/Activatable.java,
266 java/rmi/activation/ActivateFailedException.java,
267 java/rmi/activation/ActivationDesc.java,
268 java/rmi/activation/ActivationException.java,
269 java/rmi/activation/ActivationGroup.java,
270 java/rmi/activation/ActivationGroupDesc.java,
271 java/rmi/activation/ActivationGroupID.java,
272 java/rmi/activation/ActivationID.java,
273 java/rmi/activation/ActivationInstantiator.java,
274 java/rmi/activation/ActivationMonitor.java,
275 java/rmi/activation/ActivationSystem.java,
276 java/rmi/activation/Activator.java,
277 java/rmi/activation/UnknownGroupException.java,
278 java/rmi/activation/UnknownObjectException.java,
279 java/rmi/AccessException.java,
280 java/rmi/AlreadyBoundException.java,
281 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
282 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
283 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
284 java/rmi/NotBoundException.java,
285 java/rmi/RMISecurityException.java,
286 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
287 java/rmi/RemoteException.java, java/rmi/ServerError.java,
288 java/rmi/ServerException.java,
289 java/rmi/ServerRuntimeException.java,
290 java/rmi/StubNotFoundException.java,
291 java/rmi/UnexpectedException.java,
292 java/rmi/UnknownHostException.java,
293 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
294 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
295 java/rmi/registry/LocateRegistry.java,
296 java/rmi/registry/Registry.java,
297 java/rmi/registry/RegistryHandler.java,
298 java/rmi/server/ExportException.java,
299 java/rmi/server/LoaderHandler.java,
300 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
301 java/rmi/server/Operation.java,
302 java/rmi/server/RMIClassLoader.java,
303 java/rmi/server/RMIClientSocketFactory.java,
304 java/rmi/server/RMIFailureHandler.java,
305 java/rmi/server/RMIServerSocketFactory.java,
306 java/rmi/server/RMISocketFactory.java,
307 java/rmi/server/RemoteCall.java,
308 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
309 java/rmi/server/RemoteServer.java,
310 java/rmi/server/RemoteStub.java,
311 java/rmi/server/ServerCloneException.java,
312 java/rmi/server/ServerNotActiveException.java,
313 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
314 java/rmi/server/SkeletonMismatchException.java,
315 java/rmi/server/SkeletonNotFoundException.java,
316 java/rmi/server/SocketSecurityException.java,
317 java/rmi/server/UID.java,
318 java/rmi/server/UnicastRemoteObject.java,
319 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
320 gnu/java/rmi/dgc/DGCImpl_Skel.java,
321 gnu/java/rmi/dgc/DGCImpl_Stub.java,
322 gnu/java/rmi/registry/RegistryImpl.java,
323 gnu/java/rmi/registry/RegistryImpl_Skel.java,
324 gnu/java/rmi/registry/RegistryImpl_Stub.java,
325 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
326 gnu/java/rmi/server/ProtocolConstants.java,
327 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
328 gnu/java/rmi/server/RMIHashes.java,
329 gnu/java/rmi/server/RMIObjectInputStream.java,
330 gnu/java/rmi/server/RMIObjectOutputStream.java,
331 gnu/java/rmi/server/UnicastConnection.java,
332 gnu/java/rmi/server/UnicastConnectionManager.java,
333 gnu/java/rmi/server/UnicastRef.java,
334 gnu/java/rmi/server/UnicastRemoteCall.java,
335 gnu/java/rmi/server/UnicastRemoteStub.java,
336 gnu/java/rmi/server/UnicastServer.java,
337 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
338 Kaffe. Relabelled classes to fit into Classpath tree.
339 * Makefile.in: Rebuilt.
340 * Makefile.am (rmi_java_source_files): New macro.
341 (ordinary_java_source_files): Reference it.
342 (bin_PROGRAMS): Added rmic and rmiregistry.
343 (rmic_SOURCES): New macro.
344 (EXTRA_rmic_SOURCES): Likewise.
345 (rmic_LDFLAGS): Likewise.
346 (rmic_LINK): Likewise.
347 (rmic_LDADD): Likewise.
348 (rmic_DEPENDENCIES): Likewise.
349 (rmiregistry_SOURCES): New macro.
350 (EXTRA_rmiregistry_SOURCES): Likewise.
351 (rmiregistry_LDFLAGS): Likewise.
352 (rmiregistry_LINK): Likewise.
353 (rmiregistry_LDADD): Likewise.
354 (rmiregistry_DEPENDENCIES): Likewise.
356 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
358 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
360 * Makefile.am: New friends for java/lang/Thread.h.
361 * prims.cc (runFirst): Removed.
362 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
363 (_Jv_RunMain): Now takes either a klass or class name parameter.
364 Create a gnu.gcj.runtime.FirstThread and attach the native thread
365 to that, then run it using _Jv_ThreadRun. Remove special handling of
366 jar files, instead pass is_jar parameter through to FirstThread.
367 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
368 of _Jv_AttachCurrentThread.
369 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
370 (run): New method. Take care of looking up main class manifest
371 attribute and calling forName if neccessary. Then call call_main.
372 (call_main): New native method.
373 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
374 relocated from prims.cc. Look up and call main method.
375 * java/lang/Thread.java (run_): Removed.
376 * java/lang/natThread.cc (run_): Renamed to...
377 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
378 (_Jv_NotifyThreadStart): here. New function.
379 (countStackFrames, destroy, resume, suspend, stop): Throw
380 UnsupportedOperationExceptions rather than JvFail'ing.
381 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
382 Existing version wraps new variant.
385 2001-08-23 Tom Tromey <tromey@redhat.com>
387 * java/lang/reflect/Field.java (toString): Use
388 Method.appendClassName.
389 * java/lang/reflect/Constructor.java (toString): Use
390 Method.appendClassName.
391 * java/lang/reflect/Method.java: Reindented.
392 (appendClassName): New method.
394 * defineclass.cc (handleMethod ): Initialize `throws' field of
396 (read_one_method_attribute): Handle Exceptions attribute.
397 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
398 (ObjectClass): Removed.
399 (getType): Compute `exception_types'.
400 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
402 2001-08-21 Anthony Green <green@redhat.com>
404 * java/lang/natClassLoader.cc (findClass): Search for
405 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
407 2001-08-21 Jeff Sturm <jsturm@one-point.com>
409 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
412 2001-08-20 Tom Tromey <tromey@redhat.com>
414 * java/awt/GridBagConstraints.java: Removed comment.
416 * jni.cc (nathash, nathash_count, nathash_size): New globals.
417 (DELETED_ENTRY): New define.
418 (hash): New function.
419 (nathash_find_slot): Likewise.
420 (natrehash): Likewise.
421 (nathash_add): Likewise.
422 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
424 (nathash_find): New function.
425 (_Jv_LookupJNIMethod): Use it. Synchronize body.
426 (call): Synchronize around assignment.
428 2001-08-17 Jeff Sturm <jsturm@one-point.com>
430 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
431 starting from zero offset.
433 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
435 * boehm.cc: Include gc_local_alloc.h if appropriate.
436 (GC_GENERIC_MALLOC): Don't define.
437 (MAYBE_MARK): Redefine for GC 6.0.
438 (_Jv_MarkObj): Mark class differently.
439 (_Jv_AllocArray): Use GC_generic_malloc.
441 2001-08-17 Mark J Roberts <mjr@anarcast.net>
443 * java/math/BigInteger.java (randBytes): New method.
444 (BigInteger(int,Random)): Use randBytes.
446 2001-08-17 Tom Tromey <tromey@redhat.com>
448 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
450 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
452 * BigInteger.java: fix right shifts by nonzero multiples of 32.
454 2001-08-15 Tom Tromey <tromey@redhat.com>
456 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
457 (local_ref_table, global_ref_table): Now IdentityHashMap.
458 (_Jv_JNI_Init): Updated for new types.
459 (mark_for_gc): Likewise.
460 (unmark_for_gc): Likewise.
461 * gcj/javaprims.h: Rebuilt class list.
462 * Makefile.in: Rebuilt.
463 * Makefile.am (core_java_source_files): Added new file.
464 * java/util/IdentityHashMap.java: New file.
466 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
469 2001-08-09 Tom Tromey <tromey@redhat.com>
471 * java/awt/image/SampleModel.java (getPixel): Set correct array
472 element. From Chris Meyer.
474 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
476 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
477 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
479 2001-08-06 Tom Tromey <tromey@redhat.com>
481 * java/io/InputStreamReader.java (refill): Only call refill on
482 BufferedInputStream when appropriate constraints are met.
484 2001-08-05 Tom Tromey <tromey@redhat.com>
486 * java/io/StringWriter.java: Merged with Classpath.
487 * java/io/InputStream.java: Merged with Classpath.
488 * java/io/OutputStream.java: Merged with Classpath.
489 * java/io/PushbackInputStream.java: Merged with Classpath.
490 * java/io/CharArrayReader.java: Merged with Classpath.
491 * java/io/CharArrayWriter.java: Merged with Classpath.
493 2001-08-02 Tom Tromey <tromey@redhat.com>
495 * prims.cc (JNI_OnLoad): Don't declare.
496 (_JNI_OnLoad): Don't define.
497 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
499 2001-08-02 Tom Tromey <tromey@redhat.com>
501 * java/io/RandomAccessFile.java (seek): Let seek go past end of
503 (skipBytes): Don't fail if seeking past end of file.
504 * java/io/FileInputStream.java (skip): Don't fail if seeking past
506 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
508 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
510 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
512 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
514 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
516 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
517 to initialize global_ref_table/local_ref_table.
519 2001-08-02 Tom Tromey <tromey@redhat.com>
521 * configure: Rebuilt.
522 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
525 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
527 * include/posix.h (_POSIX_PII_SOCKET): Define.
528 * configure.in (HAVE_SOCKLEN_T): Define.
529 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
531 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
532 (java::net::PlainSocketImpl::accept): Use it.
533 Fixes PRs libgcj/3694, libgcj/3696.
535 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
536 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
537 * configure, include/config.h.in: Regenerate.
538 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
539 (mcastGrp): Likewise.
540 (java::net::PlainDatagramSocketImpl::setOption): Guard against
541 missing IPV6_MULTICAST_IF.
542 Fixes PR libgcj/3694.
544 2001-08-01 Jeff Sturm <jsturm@one-point.com>
546 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
548 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
550 * Makefile.in: Rebuilt.
551 * Makefile.am (GCJLINK): Added --tag=GCJ.
554 2001-07-30 Tom Tromey <tromey@redhat.com>
556 * java/util/Date.java: Re-merged with Classpath.
558 2001-07-30 Jeff Sturm <jsturm@one-point.com>
560 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
561 (_Jv_bind): New static function.
562 (bind): Use _Jv_bind.
563 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
564 (_Jv_bind, _Jv_connect): New static functions.
565 (bind): Use _Jv_bind.
566 (connect): Use _Jv_connect.
568 2001-07-30 Tom Tromey <tromey@redhat.com>
569 Corey Minyard <minyard@acm.org>
571 * gnu/gcj/convert/natIconv.cc (done): New methods.
572 * gnu/gcj/convert/Output_iconv.java (done): New method.
573 * gnu/gcj/convert/Input_iconv.java (done): New method.
574 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
576 (getDefaultEncodingClass): Removed.
577 (getDefaultEncoder): Use getEncoder.
579 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
581 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
583 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
585 (getDefaultDecodingClass): Removed.
586 (getDefaultDecoder): Use getDecoder.
587 (getDecoder): Look up decoder in cache.
589 * java/lang/natString.cc (init): Call `done' on converter.
590 (getBytes): Likewise.
592 2001-07-30 Tom Tromey <tromey@redhat.com>
594 * java/lang/Integer.java: Merged with Classpath.
596 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
598 * java/util/GregorianCalendar.java (GregorianCalendar): Call
599 setTimeInMillis() to set the default/current time.
601 2001-07-29 Mark Wielaard <mark@klomp.org>
603 * HACKING: add description on updating namespace
605 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
607 * java/util/Calendar.java (set): Never recompute fields here. They
608 will already be set if someone set time explicitly, and it can cause
609 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
610 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
611 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
613 * java/text/SimpleDateFormat.java (defaultCentury): New field.
614 (readObject): Call set2DigitYearStart if appropriate so that
615 defaultCentury is calculated.
616 (SimpleDateFormat): Don't bother clearing calendar here. Call
617 computeCenturyStart().
618 (set2DigitYearStart): Calculate and set defaultCentury.
619 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
621 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
622 2 numeric digits, use the 80-20 heuristic to parse the value into a
623 default century based on defaultCenturyStart.
624 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
626 2001-07-25 Tom Tromey <tromey@redhat.com>
628 * Makefile.in: Rebuilt.
629 * Makefile.am (libgcj.jar): Correctly fail when bytecode
632 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
634 * prims.cc (_JNI_OnLoad): New function.
635 (JNI_OnLoad): Use it.
636 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
638 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
640 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
641 Makefile.in: Regenerate.
643 2001-07-24 Tom Tromey <tromey@redhat.com>
645 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
648 2001-07-23 Tom Tromey <tromey@redhat.com>
650 * gcj/javaprims.h: Rebuilt class list.
651 * Makefile.in: Rebuilt.
652 * Makefile.am (core_java_source_files): Added VMClassLoader.
653 * java/lang/VMClassLoader.java: New file.
654 * java/lang/Boolean.java: Merged with Classpath.
655 * java/lang/Byte.java: Merged with Classpath.
656 * java/lang/Integer.java: Merged with Classpath.
657 * java/lang/Long.java: Merged with Classpath.
658 * java/lang/Number.java: Merged with Classpath.
659 * java/lang/Short.java: Merged with Classpath.
661 2001-07-22 Jeff Sturm <jsturm@one-point.com>
663 * configure.host: Enable hash synchronization for alpha*-*.
664 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
666 * java/lang/natObject.cc (compare_and_swap, release_set,
667 compare_and_swap_release): Added inline functions for alpha.
669 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
671 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
672 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
673 back to old RFC 2133 variants if missing.
675 2001-07-18 Tom Tromey <tromey@redhat.com>
677 * java/io/natFileWin32.cc (_access): Renamed.
679 * java/io/natFile.cc (_access): Renamed.
681 * java/io/File.java (access, stat): Add leading `_' to name.
684 2001-07-18 Tom Tromey <tromey@redhat.com>
687 * libgcj.spec.in (*lib): Added LIBICONV.
688 * configure: Rebuilt.
689 * configure.in: Call AM_ICONV. Don't check for iconv function.
690 Add parameters to JV_HASH_SYNCHRONIZATION define.
691 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
693 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
695 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
696 not by setting its size field.
698 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
700 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
703 2001-07-12 Tom Tromey <tromey@redhat.com>
704 David Brownell <david-b@pacbell.net>
706 Fix for PR libgcj/3426:
707 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
709 (read): Throw exception if character conversion fails.
710 * java/io/BufferedInputStream.java (refill): Now package-private.
711 * java/io/InputStreamReader.java (ready): Simplified.
712 (refill): New method.
715 2001-07-12 Tom Tromey <tromey@redhat.com>
717 Report from Henner Zeller:
718 * java/io/FileOutputStream.java (FileOutputStream): Throw
719 FileNotFoundException, not IOException.
721 2001-07-10 Anthony Green <green@redhat.com>
723 * Makefile.in: Rebuilt.
724 * Makefile.am: Add new files.
725 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
726 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
727 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
728 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
729 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
730 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
731 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
732 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
733 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
734 org/w3c/dom/ranges/DocumentRange.java,
735 org/w3c/dom/ranges/Range.java,
736 org/w3c/dom/ranges/RangeException.java,
737 org/w3c/dom/traversal/DocumentTraversal.java,
738 org/w3c/dom/traversal/NodeFilter.java,
739 org/w3c/dom/traversal/NodeIterator.java,
740 org/w3c/dom/traversal/TreeWalker.java,
741 org/xml/sax/ext/DeclHandler.java,
742 org/xml/sax/ext/LexicalHandler.java,
743 org/xml/sax/helpers/AttributeListImpl.java,
744 org/xml/sax/helpers/AttributesImpl.java,
745 org/xml/sax/helpers/DefaultHandler.java,
746 org/xml/sax/helpers/LocatorImpl.java,
747 org/xml/sax/helpers/NamespaceSupport.java,
748 org/xml/sax/helpers/ParserAdapter.java,
749 org/xml/sax/helpers/ParserFactory.java,
750 org/xml/sax/helpers/XMLFilterImpl.java,
751 org/xml/sax/helpers/XMLReaderAdapter.java,
752 org/xml/sax/helpers/XMLReaderFactory.java,
753 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
754 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
755 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
756 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
757 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
758 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
759 org/xml/sax/SAXNotRecognizedException.java,
760 org/xml/sax/SAXNotSupportedException.java,
761 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
762 org/xml/sax/XMLReader.java: New files.
764 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
766 * Makefile.am: Added `java/lang/ThreadLocal.java'.
767 * Makefile.in: Regenerate.
768 * java/lang/ThreadLocal.java: Initial import.
770 2001-07-07 Jeff Sturm <jsturm@one-point.com>
772 * Makefile.am (libgcj.jar): Don't recursively make
773 built_java_source_files. Avoid long command lines.
774 Don't change to $(srcdir) to invoke javac.
775 (libgcj.la, libgcjx.la); Avoid long command lines.
776 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
777 * Makefile.in: Rebuilt.
779 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
781 * include/i386-signal.h: Don't do anything with unsigned divide
782 overflow except throw an exception.
784 2001-07-05 Tom Tromey <tromey@redhat.com>
787 * java/lang/Class.h (Class(void)): Now private. Removed
788 implementation. From dmorsberger@sensysdl.com.
790 2001-07-02 Tom Tromey <tromey@redhat.com>
792 Fix for PR bootstrap/3281:
793 * aclocal.m4, configure: Rebuilt.
794 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
795 Correctly compute libgcj_basedir.
796 (mkinstalldirs): Define and subst.
798 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
801 * java/io/LineNumberReader.java (reset): Pass correct arguments to
804 2001-06-27 Tom Tromey <tromey@redhat.com>
806 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
809 2001-06-25 Tom Tromey <tromey@redhat.com>
811 * scripts/encodings.pl: Generate lower-case names. Updated URL
812 for `character-sets' file.
813 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
815 Rebuilt list of aliases.
817 2001-06-25 Tom Tromey <tromey@redhat.com>
819 * java/io/natFileDescriptorPosix.cc (open): Change error message
820 formatting. From David Brownell.
822 2001-06-21 Tom Tromey <tromey@redhat.com>
824 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
827 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
829 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
830 extraneous/malformed sign word.
832 2001-06-15 Tom Tromey <tromey@redhat.com>
834 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
836 2001-06-15 Tom Tromey <tromey@redhat.com>
838 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
839 NULL if no library on the list has the symbol.
840 (init): Call add_library on the program itself.
841 * prims.cc (JvRunMain): Initialize Runtime before searching for
843 (_Jv_RunMain): Likewise.
845 2001-06-15 Tom Tromey <tromey@redhat.com>
847 * jni.cc (ClassClass): Removed; updated all users.
848 (ObjectClass): Likewise.
849 (ThrowableClass): Likewise.
850 (MethodClass): Likewise.
851 (ThreadGroupClass): Likewise.
852 (local_ref_table): Renamed from `ref_table'.
853 (global_ref_table): New global.
854 (_Jv_JNI_Init): Initialize both ref tables.
855 (mark_for_gc): Added `ref_table' parameter.
856 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
858 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
859 (_Jv_JNI_DeleteGlobalRef): Likewise.
860 (_Jv_JNI_DeleteLocalRef): Likewise.
861 (_Jv_JNI_NewLocalRef): Likewise.
862 (_Jv_JNI_PopLocalFrame): Likewise.
863 (_Jv_JNI_GetStringChars): Likewise.
864 (_Jv_JNI_ReleaseStringChars): Likewise.
865 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
866 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
868 2001-06-14 Tom Tromey <tromey@redhat.com>
870 Fix for PR libgcj/3144:
871 * java/util/Date.java: Merged with Classpath.
873 2001-06-12 Tom Tromey <tromey@redhat.com>
875 * aclocal.m4, configure: Rebuilt.
876 * acinclude.m4: Find configure.host in srcdir.
878 2001-06-07 Tom Tromey <tromey@redhat.com>
880 Fix for PR libgcj/3059:
881 * java/lang/natSystem.cc (init_properties): Define `java.home'.
882 * Makefile.in: Rebuilt.
883 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
885 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
887 * exception.cc (cstdlib): Replaces stdlib.h.
888 (_Jv_Throw): Use std::abort().
889 (PERSONALITY_FUNCTION): Likewise.
891 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
893 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
894 nothing, as in autoconf 2.50.
895 * aclocal.m4, configure: Rebuilt.
897 2001-06-08 Tom Tromey <tromey@redhat.com>
899 * configure: Rebuilt.
900 * configure.in: Compute new aux dir using `pwd'.
902 2001-06-07 Tom Tromey <tromey@redhat.com>
904 For PR bootstrap/3075:
905 * configure, aclocal.m4, Makefile.am: Rebuilt.
906 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
907 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
908 relative to libgcj_basedir.
909 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
910 AC_CANONICAL_SYSTEM here.
911 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
913 ($(extra_headers)): New target.
915 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
916 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
918 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
919 table index is within allowed bounds. Ensure that we dont try to access
920 class itable at a negative offset. Avoid an ancestor table lookup if
921 source is a primitive type class.
922 (isInstance): Remove redundant isPrimitive() check.
924 2001-06-04 Tom Tromey <tromey@redhat.com>
926 * java/security/PublicKey.java: Extend Key.
927 * java/security/PrivateKey.java: Extend Key.
929 2001-06-02 Anthony Green <green@redhat.com>
931 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
932 alternate when USE_LTDL not defined.
934 2001-06-02 Anthony Green <green@redhat.com>
936 * configure: Rebuild.
937 * configure.in: Remove data_start hack.
938 * libgcj.spec.in: Ditto.
939 * Makefile.in: Rebuild.
940 * Makefile.am: Ditto.
941 * libgcjdata.c: Remove.
943 2001-06-02 Anthony Green <green@redhat.com>
945 * configure: Rebuild.
946 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
947 --without-libffi option. Tweak --disable-java-net processing.
948 * Makefile.in: Rebuild.
949 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
950 * include/config.h.in: Rebuild.
951 * acconfig.h (USE_LIBFFI): Define.
952 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
954 2001-06-02 Anthony Green <green@redhat.com>
956 * configure: Rebuilt.
957 * configure.in: Test for sigaction on native builds.
958 * prims.cc: Check HAVE_SIGACTION.
959 * include/config.h.in: Rebuilt.
961 2001-05-31 Jeff Sturm <jsturm@one-point.com>
963 * natFile.cc (get_entry): Removed functions.
964 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
965 Allocate enough storage for d_name if using readdir_r.
967 2001-05-31 Tom Tromey <tromey@redhat.com>
969 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
971 (write): Loop until write completes. From Corey Minyard.
973 2001-05-29 Laurent Guerby <guerby@acm.org>
975 * java/awt/geom/Rectangle2D.java: fix doc typo.
977 2001-05-31 Tom Tromey <tromey@redhat.com>
979 * java/sql/DriverManager.java (getDrivers): Handle case where
980 driver's class loader is null. From Corey Minyard.
982 2001-05-29 Tom Tromey <tromey@redhat.com>
984 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
986 * configure: Rebuilt.
987 * configure.in: Only add multilib support code if we just rebuilt
990 2001-05-29 Andrew Haley <aph@redhat.com>
992 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
993 pointer: the dwarf unwinder in libgcc will do everything that's
995 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
996 more than we absolutely need to.
997 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
998 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1000 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1002 * configure: Rebuilt.
1003 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1005 (SIGNAL_HANDLER): Use siginfo style handler.
1006 (INIT_SEGV): Likewise.
1007 (INIT_FPE): Likewise.
1008 * include/ppc-signal.h: Delete whole file.
1010 2001-05-24 Tom Tromey <tromey@redhat.com>
1012 * java/lang/natString.cc (init): Throw
1013 ArrayIndexOutOfBoundsException.
1014 (getChars): Likewise.
1015 (getBytes): Likewise.
1016 (valueOf): Likewise.
1018 * configure.in: Only allow hash synchronization when POSIX threads
1020 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1021 of sync info object.
1023 2001-05-23 Tom Tromey <tromey@redhat.com>
1025 * Makefile.in: Rebuilt.
1026 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1028 Revert patch of 2001-05-21:
1029 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1030 (libgcj_la_LIBADD): Likewise.
1031 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1032 (libgcjx_la_LIBADD): Likewise.
1034 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1035 * gcj/Makefile.in: Rebuilt.
1036 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1037 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1038 * gcj/libgcj-config.h.in: New file.
1039 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1040 * configure: Rebuilt.
1041 * configure.in: Enable hash synchronization by default on some
1043 (HASH_SYNC_SPEC): New subst.
1044 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1045 Correctly use `test -z' instead of `test -n' in a couple places.
1046 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1048 * configure.host (enable_java_net_default): Initialize.
1049 (enable_hash_synchronization_default): New variable.
1051 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1053 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1054 synchronization in use.
1055 (_Jv_MarkArray): Likewise.
1056 (_Jv_AllocBytes): Don't check return result.
1057 (handle_out_of_memory): New function.
1058 (_Jv_InitGC): Set GC_oom_fn.
1059 (trace_one_vtable): New global.
1060 (_Jv_AllocTraceOne): New function.
1061 * configure.in: Added --enable-hash-synchronization.
1062 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1063 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1064 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1065 (_Jv_AllocArray): Likewise.
1066 (_Jv_AllocBytes): Likewise.
1067 (_Jv_AllocPtrFreeObject): New function.
1068 (_Jv_AllocTraceOne): Likewise.
1069 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1071 (self_cache): New global.
1072 (_Jv_ThreadSelf_out_of_line): New function.
1073 * prims.cc (_Jv_AllocBytesChecked): Removed.
1074 (_Jv_ThrowNoMemory): New function.
1075 (_Jv_AllocObject): Don't check for null return from allocator.
1076 (_Jv_NewObjectArray): Likewise.
1077 (_Jv_AllocPtrFreeObject): New function.
1078 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1079 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1080 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1081 * include/boehm-gc.h (_Jv_AllocObj): Define.
1082 (_Jv_AllocPtrFreeObj): Define.
1083 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1084 (_Jv_ThrowNoMemory): Declare.
1085 (_Jv_AllocTraceOne): Declare.
1086 (_Jv_AllocBytesChecked): Removed.
1087 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1088 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1089 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1091 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1093 * java/lang/Object.h (sync_info): Conditional upon presence of
1094 hash synchronization.
1095 * java/lang/natObject.cc: Much new code to handle thin locks and
1096 hash synchronization.
1097 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1100 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1102 * gij.cc (version): Update copyright year.
1104 2001-05-22 Anthony Green <green@redhat.com>
1106 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1109 2001-05-21 Per Bothner <per@bothner.com>
1111 Implement invocation interface; don't create new thread for main.
1112 * java/lang/Thread.java (gen_name): Make native.
1113 (<init>(Thread,THreadGroup,Runnable,String)): New private
1114 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1115 * java/lang/natThread.cc (gen_name): New implementation.
1116 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1117 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1118 (_Jv_CreateJavaVM): New runtime initialization procedure.
1119 (runFirst): New proecdure - mostly code from old FirstThread::run.
1120 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1121 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1122 JvDetachCurrentThread): New inline wrappers.
1123 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1124 _Jv_DetachCurrentThread): New declarations.
1125 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1126 (getMain): new static method.
1127 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1128 by runFirst in prims.cc.
1129 (java/lang/Thread.h): Update for new invocation interface.
1130 * include/posix-threads.h (_Jv_ThreadRegister,
1131 _Jv_ThreadUnRegister): New declarations.
1132 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1133 (really_start): Use new _Jv_ThreadRegister.
1134 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1135 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1136 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1137 Complain of called when _Jv_OnlyThread already set.
1138 (_Jv_ThreadStart): Always JvFail.
1139 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1140 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1141 * win32-threads.cc (struct starter): Remove objet field -
1142 we use _Jv_Thread_t's new thread_obj field instead.
1143 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1144 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1145 (really_start): Use new _Jv_ThreadRegister.
1146 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1147 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1148 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1149 Removed - no longer needed with new invocation interface.
1150 * Makefile.am: Update for removed/added files.
1152 2001-05-21 Per Bothner <per@bothner.com>
1154 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1155 (libgcj_la_LIBADD): Likewise.
1156 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1158 2001-05-21 Per Bothner <per@bothner.com>
1160 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1161 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1162 taken from old Integer.toString code.
1163 (Integer::valueOf): Use _Jv_FormatInt.
1164 * java/lang/Integer.java (toString): Just use call String.valueOf.
1165 * java/lang/Long.java (toString): Fix typo in comment.
1166 * java/lang/String.java (valueOf(int)): Make native.
1167 * java/lang/StringBuffer.java (append(int)): Make native.
1168 * java/lang/natStringBuffer.cc: New file, for append(jint).
1169 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1171 2001-05-21 Tom Tromey <tromey@redhat.com>
1173 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1175 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1177 * include/dwarf2-signal.h: New file.
1178 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1179 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1180 * configure: Rebuilt.
1182 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1184 * configure.in: Update boehm-gc include dir for new GC version.
1185 * configure: Rebuilt.
1186 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1188 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1189 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1190 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1193 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1195 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1196 (_Jv_MutexInit): Likewise.
1198 2001-05-18 Tom Tromey <tromey@redhat.com>
1200 * Makefile.in: Rebuilt.
1201 * Makefile.am (awt_java_source_files): Added Polygon.java.
1203 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1205 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1206 * gcj/javaprims.h: ... here.
1207 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1209 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1211 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1212 with length of ioffset table.
1213 (_Jv_IsAssignableFrom): Likewise.
1215 2001-05-17 Per Bothner <per@bothner.com>
1217 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1219 2001-05-16 Tom Tromey <tromey@redhat.com>
1221 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1224 2001-05-15 Tom Tromey <tromey@redhat.com>
1226 * java/util/GregorianCalendar.java (computeTime): Only call
1229 2001-05-14 Tom Tromey <tromey@redhat.com>
1231 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1232 ZONE_OFFSET just before computing the time.
1234 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1236 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1237 * Makefile.in: Regenerate (by hand).
1238 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1239 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1241 2001-05-11 Richard Henderson <rth@redhat.com>
1243 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1244 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1246 2001-05-11 Richard Henderson <rth@redhat.com>
1248 * exception.cc: Include unwind-pe.h. Remove all pointer
1251 2001-05-10 Tom Tromey <tromey@redhat.com>
1253 * Makefile.in: Rebuilt.
1254 * Makefile.am (awt_java_source_files): Added Polygon.java.
1255 * java/awt/Polygon.java: New file.
1257 * java/awt/geom/AffineTransform.java
1258 (setToRotation(double,double,double)): New method.
1259 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1260 (setToShear): Likewise.
1262 2001-05-10 Tom Tromey <tromey@redhat.com>
1264 * java/util/GregorianCalendar.java: Imported from Classpath.
1265 * gnu/java/locale/LocaleInformation_nl.java: New file from
1267 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1268 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1269 * gnu/java/locale/LocaleInformation.java: Likewise.
1270 * natGregorianCalendar.cc: Removed.
1271 * Makefile.in: Rebuilt.
1272 * Makefile.am (nat_source_files): Removed
1273 natGregorianCalendar.cc.
1275 2001-05-10 Tom Tromey <tromey@redhat.com>
1277 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1279 (defaultCenturyStart): Use it.
1280 (readObject): Likewise.
1281 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1283 (parse): Copy the calendar before modifying it. Correctly handle
1286 * java/util/Calendar.java (clear): Set field value(s) to 0.
1288 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1290 * Calendar.java (get): Clear areFieldsSet if requested field
1292 (set): Unset fields that depend on new value.
1294 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1296 * java/lang/Class.h (_Jv_Self): New union type.
1297 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1298 Jeff Sturm and Fergus Henderson.
1300 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1302 * java/lang/ClassLoader.java: Remove dead code fragment.
1304 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1306 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1308 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1310 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1312 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1313 * configure.host (EXCEPTIONSPEC): New.
1314 * configure.in (EXCEPTIONSPEC): New.
1315 * configure: Rebuilt.
1317 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1319 * doc/*.texi: Remove generated documentation.
1321 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1323 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1324 (performDelete): Fix #endif placement.
1326 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1328 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1329 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1330 (_Jv_ThreadDestroyData): Use _Jv_Free.
1331 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1334 2001-04-27 Tom Tromey <tromey@redhat.com>
1336 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1338 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1340 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1342 * include/jni.h (struct JNINativeInterface): Fixed types in
1343 Get/Set*ArrayRegion declarations.
1344 (class _Jv_JNIEnv): Likewise.
1346 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1348 * configure.in: Obtain THREADS with `gcc -v'.
1349 * configure: Rebuilt.
1351 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1354 * java/io/ObjectStreamClass.java (setClass): Calculate
1355 serialVersionUID for local class and compare it against the UID
1356 from the Object Stream. Throw InvalidClassException upon mismatch.
1357 (setUID): Renamed to...
1358 (getClassUID): this. Return the calculated class UID rather than
1359 setting uid field directly.
1360 (getDefinedSUID): Removed.
1361 * java/io/ObjectInputStream.java (resolveClass): Use the
1362 three-argument Class.forName().
1363 * java/io/InvalidClassException (toString): Don't include classname in
1364 result if it is null.
1366 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1368 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1369 Wrap use of inet_pton in HAVE_INET6.
1371 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1373 java.security merge and ClassLoader compliance fixes.
1375 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1376 New protectionDomain field.
1377 (forName): Add initialize parameter. Fixes declaration to comply with
1379 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1380 variant. Honour "initialize" flag.
1381 (getProtectionDomain0): New method.
1382 * java/lang/Class.java: Fix forName() declaration.
1383 (getPackage): New method based on Classpath implementation.
1384 (getProtectionDomain0): New native method decl.
1385 (getProtectionDomain): New method.
1386 * java/lang/ClassLoader.java (getParent): Now final.
1387 (definedPackages): New field.
1389 (defineClass): New variant with protectionDomain argument.
1390 (definePackage): New.
1392 (findSystemClass): Now final.
1393 (getSystemResourceAsStream): Remove redundant "final" modifier.
1394 (getSystemResource): Remove redundant "final" modifier.
1395 (getResources): Now final.
1396 (protectionDomainPermission): New static field.
1397 (unknownProtectionDomain): Ditto.
1398 (defaultProtectionDomain): Ditto.
1399 (getSystemClassLoader): Now non-native.
1400 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1401 arguments for Class.forName().
1402 * java/lang/Package.java: New file.
1403 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1404 (instance): Static initialize singleton.
1405 (findClass): Override this, not findSystemClass.
1406 * java/lang/natClassLoader.cc (defineClass0): Set class's
1407 protectionDomain field as specified.
1408 (getSystemClassLoader): Removed.
1409 (findClass): Renamed from findSystemClass. Call the interpreter via
1410 URLClassLoader.findClass if loading class via dlopen fails.
1412 * java/security/*.java: java.security import/merge with Classpath.
1413 * java/security/acl/*.java: Likewise.
1414 * java/security/interfaces/*.java: Likewise.
1415 * java/security/spec/*.java: Likewise.
1416 * java/net/NetPermission.java: Likewise.
1417 * java/net/SocketPermission.java: Likewise.
1418 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1420 * Makefile.am: Add new classes.
1421 * Makefile.in: Rebuilt.
1422 * gcj/javaprims.h: CNI namespace rebuild.
1424 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1426 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1427 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1428 * configure: Rebuilt.
1430 2001-04-21 Tom Tromey <tromey@redhat.com>
1432 * Makefile.in: Rebuilt.
1433 * Makefile.am (awt_java_source_files): Added Line2D.java.
1434 * java/awt/geom/Line2D.java: Wrote.
1436 * java/awt/Menu.java (addNotify): Wrote.
1438 * java/awt/PopupMenu.java (addNotify): Implemented.
1441 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1442 * java/awt/List.java (addNotify): Call super.addNotify.
1443 * java/awt/Label.java (addNotify): Call super.addNotify.
1444 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1445 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1446 * java/awt/Choice.java (addNotify): Call super.addNotify.
1447 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1448 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1450 * java/awt/List.java (replaceItem): Notify peer.
1452 * java/awt/geom/Rectangle2D.java
1453 (Float.setRect(float,float,float,float)): New method.
1455 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1458 * java/awt/RenderingHints.java (Key): Class now public.
1460 * java/awt/Rectangle.java (Rectangle): Now implements
1462 (getPathIterator): Removed.
1464 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1467 * java/awt/FileDialog.java: Wrote.
1469 * java/awt/EventQueue.java (isDispatchThread): Now public.
1470 (invokeLater): Likewise.
1472 * java/awt/Component.java (setCursor): Update peer.
1473 (getFontMetrics): Use peer.
1475 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1478 2001-04-20 Tom Tromey <tromey@redhat.com>
1480 * java/awt/List.java: Wrote.
1481 * java/awt/Dialog.java: Wrote.
1483 2001-04-20 Warren Levy <warrenl@redhat.com>
1485 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1486 * java/text/SimpleDateFormat.java
1487 (indexInArray): Removed private method.
1488 (processYear): Removed private method.
1489 (parseLenient): Removed private method.
1490 (parseLeadingZeros): Removed private method.
1491 (parseStrict): Removed private method.
1492 (expect): Added new private method.
1493 (parse): Reverted to pre-Classpath merge version with minor fixes.
1494 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1497 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1499 * java/io/File.java (normalizePath): New private method.
1500 (File (String)): Use normalizePath().
1501 (File (String, String)): Likewise.
1503 * Makefile.am (libffi_files): Removed.
1504 (libgcj.la): Link libffi as a convenience library instead of
1505 refering to its object files directly.
1506 * Makefile.in: Rebuilt.
1508 2001-04-08 Per Bothner <per@bothner.com>
1510 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1511 Recalculate hash, since Utf8Const's hash is only 16 bits.
1513 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1514 bits of hash to calculate step for chaining.
1516 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1517 when 2/3 full, rather than 3/4 full.
1519 2001-04-06 Tom Tromey <tromey@redhat.com>
1521 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1522 (wrap_value<T*>): New specialization.
1523 (_Jv_JNI_PopLocalFrame): Update env->locals.
1525 2001-04-05 Tom Tromey <tromey@redhat.com>
1527 * libtool-version: Updated current.
1529 2001-04-04 Andreas Jaeger <aj@suse.de>
1531 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1532 * gcj/Makefile.in: Rebuilt.
1533 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1534 * Makefile.in: Rebuilt.
1535 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1536 * testsuite/Makefile.in: Rebuild.
1537 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1538 * include/Makefile.in: Rebuild.
1540 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1542 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1543 compiled test', not 'execution from source compiled test'.
1544 Use UNTESTED, not XFAIL, for tests which are not run because
1545 they depend on a previous test which failed.
1547 2001-04-02 Richard Henderson <rth@redhat.com>
1549 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1550 the same tree as gcc.
1551 * configure: Rebuilt.
1553 * exception.cc (_Jv_Throw): Clarify commentary.
1555 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1557 * jni.cc (wrap_value<jclass>): New specialization.
1559 2001-04-02 Tom Tromey <tromey@redhat.com>
1561 * java/io/PrintStream.java (out): Removed field. Fixes PR
1563 (write): Call flush, not out.flush, per spec.
1564 (close): Flush output stream, per spec. Handle
1565 InterruptedIOException.
1566 (checkError): Likewise.
1567 (flush, print, write): Handle InterruptedIOException per spec.
1568 (PrintStream): Don't create BufferedOutputStream.
1569 (work_bytes): New field.
1570 (writeChars): Use work_bytes. Don't assume `out' is a
1571 BufferedOutputStream.
1573 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1575 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1578 2001-03-30 Tom Tromey <tromey@redhat.com>
1580 * jni.cc (add_char): Correctly encode non-ascii characters.
1581 (add_char): Define even when INTERPRETER not defined.
1582 (mangled_name): Likewise.
1583 (_Jv_GetJNIEnvNewFrame): Likewise.
1584 (_Jv_LookupJNIMethod): Likewise.
1586 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1588 * configure.host: Enable interpreter for PPC.
1590 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1592 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1593 to "file.separator", "path.separator", and "java.io.tmpdir" property
1595 * java/io/File.java: Likewise.
1596 * java/io/natFile.cc (init_native): Likewise.
1597 * java/io/natFileWin32.cc (init_native): Likewise.
1599 2001-04-01 Per Bothner <per@bothner.com>
1601 * java/lang/natString.cc (intern): If string's data does not point to
1602 this String, make a fresh String that does.
1604 * java/lang/natString.cc (unintern): Replace by static function.
1605 * java/lang/String.java (unintern): Remove method.
1607 2001-04-01 Per Bothner <per@bothner.com>
1609 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1610 (finish): def.deflate needs to be called in a loop.
1611 (inbuf, inbufLength): New private fields.
1612 (write(int)): Use inbuf.
1613 (write(byte[],int,int): Check if pending output in inbuf.
1614 * ZipOutputStream.java: Don't use Deflater if stored.
1615 Use a Checksum object directly, not via a CheckedOutputStream.
1616 (uncompressed_size): New field,
1617 (closeEntry): Only write data_directory if needed.
1618 (write): If STORED, write directly.
1619 Always update crc, and uncompressed_size.
1620 (write_entry): Fix lots of protocol erors.
1622 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1624 1.3-Compliant Implementation of java.io.File.
1625 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1626 "path.separator", and "java.io.tmpdir" from the File class, instead
1627 of setting them explicitly.
1628 * java/io/File.java: Do not canonicalize paths for security manager
1629 checks. Call init_native() from static initializer. Do not pass path
1630 argument to native methods. New native method declarations. Some
1631 security manager checks moved to checkWrite().
1632 (equals): Check file system case sensitivity and act appropriatly.
1633 (hashCode): Likewise.
1634 (isHidden): New method implemented.
1635 (performList): Changed prototype. Now takes a class argument specifying
1636 the class of the returned array: Strings or File objects. Also added
1637 FileFilter argument.
1638 (listFiles): New variants with "File" return type implemented.
1639 (createTempFile): Use createNewFile(). Use maxPathLen.
1640 (setReadOnly): New method implemented.
1641 (listRoots): Likewise.
1642 (compareTo): Likewise.
1643 (setLastModified): Likewise.
1644 (checkWrite): New method.
1646 * java/io/natFile.cc: Various functions no longer take canonical path
1648 (stat): Handle ISHIDDEN query.
1649 (isAbsolute): Remove WIN32 cruft.
1650 (performList): New arguments. Handle returning either File[] or String[]
1651 arrays. Check with FileFilter or FilenameFilter arguments as
1652 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1653 (performSetReadOnly): New method implemented.
1654 (performListRoots): Likewise.
1655 (performSetLastModified): Likewise.
1656 (performCreate): Likewise.
1657 (init_native): New initialization function.
1658 * java/io/natFileWin32.cc: Various functions no longer take canonical
1660 (stat): Add FIXME about ISHIDDEN query.
1661 (performList): New arguments. Handle returning either File[] or String[]
1662 arrays. Check with FileFilter or FilenameFilter arguments as
1663 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1664 (performSetReadOnly): New. Stubbed.
1665 (performListRoots): Likewise.
1666 (performSetLastModified): Likewise.
1667 (performCreate): Likewise.
1668 (init_native) New initialization function.
1669 * configure.in: Check for utime() and chmod().
1670 * configure: Rebuilt.
1671 * include/config.h.in: Rebuilt.
1673 Resolves PR libgcj/1759.
1675 2001-03-28 Richard Henderson <rth@redhat.com>
1677 IA-64 ABI Exception Handling:
1678 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1679 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1680 Remove EXCEPTIONSPEC.
1681 * configure.host (libgcj_sjlj): Remove.
1682 * configure.in (EXCEPTIONSPEC): Remove.
1683 (enable-sjlj-exceptions): Detect if not specified.
1684 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1685 what header we're looking for.
1686 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1687 * Makefile.in, configure: Regenerate.
1688 * exception.cc: Don't declare libgcc2 stuff.
1689 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1690 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1691 (win32_get_restart_frame): Remove.
1692 (struct java_exception_header): New.
1693 (__gcj_exception_class): New.
1694 (get_exception_header_from_ue): New.
1695 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1696 (size_of_encoded_value, read_encoded_value): New.
1697 (read_uleb128, read_sleb128, parse_lsda_header): New.
1698 (get_ttype_entry, __gcj_personality_sj0): New.
1699 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1701 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1703 * javax/naming/InitialContext.java (init): Fix typo.
1704 (composeName): Remove unnecessary semicolon.
1705 (addToEnvironment): Remove unnecessary semicolon.
1706 (addToEnvironment): Use put() instead of add().
1708 * javax/naming/InitialContext.java (InitialContext):
1710 (destroySubcontext): Method doesn't return a result.
1711 * javax/naming/Context.java: Import java.util.Hashtable.
1712 * javax/naming/Name.java: Import java.util.Enumeration.
1714 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1716 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1717 objects in subdirectories.
1718 * Makefile.in: Rebuilt.
1720 2001-03-25 Richard Henderson <rth@redhat.com>
1722 * exception.cc (java_eh_info): Make value type jthrowable.
1723 (_Jv_type_matcher): Remove now unneeded cast.
1724 (_Jv_Throw): Make argument type jthrowable. Munge name
1725 for SJLJ_EXCEPTIONS here ...
1726 * gcj/cni.h: ... not here.
1728 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1730 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1731 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1732 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1733 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1734 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1735 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1736 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1737 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1738 java/lang/natDouble.cc, java/lang/natObject.cc,
1739 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1740 java/lang/natString.cc, java/lang/natSystem.cc,
1741 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1742 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1743 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1744 java/util/zip/natInflater.cc:
1745 Use throw, not JvThrow or _Jv_Throw.
1747 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1749 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1750 paramater, bump it to 1.
1751 * java/util/Hashtable.java (Hashtable): Likewise.
1753 2001-03-23 Per Bothner <per@bothner.com>
1755 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1756 check for errors, since we don't want to throw exception on
1757 overflow/underflow. Instead, trim whitespace, and then check that
1758 _strtod_r uses up all the rest of the string.
1760 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1761 ancestors array is invalid for interfaces, so do that *after*
1762 check that the target type is not an interface.
1764 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1766 * prims.cc (_Jv_FindClassFromSignature): Check return of
1767 recursive call. Do not abort on invalid signature; return NULL
1770 2001-03-22 Tom Tromey <tromey@redhat.com>
1772 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1773 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1775 * include/jvm.h (_Jv_ResolveField): Declare.
1776 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1777 * resolve.cc (_Jv_ResolveField): No longer conditional on
1780 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1782 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1783 for libtool hacking.
1784 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1785 to a temporary file, then invoke libtool with the -objectlist
1787 (libgcjx.la): Likewise.
1788 * Makefile.in: Rebuilt.
1790 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1792 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1794 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1796 * jni.cc (add_char): Handle `.' like `/'.
1798 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1800 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1801 initialize if exception_types is null.
1802 * java/lang/reflect/Constructor.java: Likewise.
1803 * java/lang/reflect/natConstructor.cc (getType): Initialize
1804 exception_types to an empty Object array.
1806 2001-03-21 Tom Tromey <tromey@redhat.com>
1808 * configure: Rebuilt.
1809 * configure.in (GCJFLAGS): Subst.
1810 * Makefile.in: Rebuilt.
1811 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1812 (gij_LDFLAGS): Likewise.
1813 (JC1FLAGS): Added GCJFLAGS and removed -g.
1815 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1816 read/write case. Fixes PR libgcj/2338.
1818 2001-03-20 Warren Levy <warrenl@redhat.com>
1820 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1821 and corrected SimpleTimeZone's for the timezones hash table.
1823 2001-03-19 Per Bothner <per@bothner.com>
1825 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1826 "canonicalize" "../../xxx" to "/xxx".
1828 2001-03-19 Mark Wielaard <mark@klomp.org>
1830 * java/util/ArrayList.java: Remove RCS keywords from comments
1831 * java/util/BasicMapEntry.java: idem
1832 * java/util/Dictionary.java: idem
1833 * java/util/HashSet.java: idem
1835 * java/util/EventObject.java: reindent
1836 * java/util/Properties.java: idem
1837 * java/util/SortedMap.java: idem
1839 * java/util/Enumeration.java: Merge with Classpath
1840 * java/util/EventListener.java: idem
1841 * java/util/Observable.java: idem
1842 * java/util/Observer.java: idem
1843 * java/util/Stack.java: idem
1845 2001-03-17 Tom Tromey <tromey@redhat.com>
1847 * java/lang/natString.cc (rehash): Don't bother with memset;
1848 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1850 (UNMASK_PTR): New macro.
1851 (intern): Unmask pointer before returning it. Register finalizer
1853 (unintern): Handle case where
1854 (MASK_PTR): New macro.
1855 (PTR_MAKSED): Likewise.
1856 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1858 2001-03-01 Andrew Haley <aph@redhat.com>
1860 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1861 stackTrace buffer to a correctly aligned pointer array.
1863 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1865 * java/lang/Runtime.java (_exit): Declare new package-private native.
1866 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1867 without a security manager check.
1868 (exit): Call _exit after security check.
1869 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1871 * java/lang/System.java (setSecurityManager): If a security manager
1872 is already in place, call checkPermission.
1873 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1874 throws an exception, try to deal with it gracefully.
1875 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1876 Only try to print the subordinate stack trace if "exception" is set.
1877 Print our class name first.
1879 2001-03-08 Tom Tromey <tromey@redhat.com>
1881 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1882 info for array classes.
1883 Fixes PR libgcj/1971.
1885 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1887 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1890 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1892 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1893 instead of the new JDK1.2 API. This is simpler and makes
1894 back-porting the classes to JDK1.1 trivial.
1895 (readObject): likewise.
1897 2001-03-01 Per Bothner <per@bothner.com>
1899 Changes merged from Kawa's gnu.math.
1900 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1901 (rshift(int[],int[],int,int): Removed - not needed.
1902 (gcd): Use rshift0 rather than rshift.
1903 * java/math/BigInteger.java (setShiftRight): Likewise.
1904 (divide): Simplify by using rshift0.
1905 (divide): Zero-extend results if high-order bit set.
1907 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1909 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1912 2001-02-23 Per Bothner <per@bothner.com>
1914 Change to sometimes include class name in ClassFormatError message.
1915 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1916 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1917 boolean instead of throwing ClassFormatError on failure.
1918 (throw_class_format_error): Change static function to method.
1919 (_Jv_ClassReader): New inline methods verify_identifier,
1920 two overloads of verify_classname, verify_field_signature, and
1921 verify_method_signature
1922 * include/java-interp.h: Update declarations to return bool.
1923 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1924 ClassFormatError since _Jv_VerifyClassName now returns bool.
1926 2001-02-23 Per Bothner <per@bothner.com>
1928 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1929 c++filt to select java-style output.
1931 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1933 Fix for PR java/2040:
1934 * java/util/HashMap.java (HashMap): Don't throw exception for
1935 loadFactor > 1. Add exception messages.
1936 * java/util/Hashtable.java (Hashtable): Likewise.
1938 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1940 Disable libgcjx by default.
1941 * configure.in: Add support for --enable-java-awt configure option.
1942 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1943 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1944 * Makefile.in: Rebuilt.
1945 * configure: Rebuilt.
1947 2001-02-20 Tom Tromey <tromey@redhat.com>
1949 * java/io/PipedWriter.java (flush): Throw exception if stream
1951 * java/io/OutputStreamWriter.java (write): Throw exception if
1953 (writeChars): Don't throw exception if stream closed.
1954 * java/io/CharArrayWriter.java (closed): New field.
1956 (flush): Throw exception if stream closed.
1957 (reset): Synchronize on correct lock. Allow stream to be
1959 (toCharArray, toString, writeTo): Synchronize.
1960 (write): Throwe exception if stream closed.
1961 * java/io/BufferedWriter.java (close): Clear `buffer'.
1962 (flush): Throw IOException if stream is closed.
1965 2001-02-16 Tom Tromey <tromey@cygnus.com>
1967 * java/lang/ThreadGroup.java (activeCount): Only include threads
1969 (enumerate): Likewise.
1971 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1973 * java/lang/Integer.java (getInteger): Return default argument if
1974 property is not set. Don't call decode with null argument.
1975 * java/lang/Long.java (getLong): Likewise.
1977 * java/io/CharArrayReader.java (CharArrayReader): Throw
1978 IllegalArgumentException if constructor arguments are illegal.
1979 (ready): Return false if no more characters can be read.
1980 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1982 2001-02-17 Mark Wielaard <mark@klomp.org>
1984 * java/util/TimerTask.java: New version from Classpath.
1986 2001-02-17 Mark Wielaard <mark@klomp.org>
1988 Remerge with Classpath
1989 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1990 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1991 (readByte): Use convertToByte().
1992 (readChar): Use convertToChar().
1993 (readInt): Use convertToInt().
1994 (readLong): Use convertToLong().
1995 (readShort): Use convertToShort().
1996 (readUnsignedByte): Use convertToUnsignedByte().
1997 (readUnsignedShort): Use convertToUnsignedShort().
1998 (readUTF): Use convertToUTF().
2000 (convertToBoolean): Resurrected.
2001 (convertToByte): Ditto.
2002 (convertToChar): Ditto.
2003 (convertToInt): Ditto.
2004 (convertToLong): Ditto.
2005 (convertToShort): Ditto.
2006 (convertToUnsignedByte): Ditto.
2007 (convertToUnsignedShort): Ditto.
2008 (convertToUTF): Ditto.
2010 2001-02-17 Mark Wielaard <mark@klomp.org>
2014 2001-02-17 Mark Wielaard <mark@klomp.org>
2016 * java/io/DataInputStream.java: update copyright notice
2017 * java/io/PrintWriter.java: idem
2018 * java/io/Reader.java: idem
2019 * java/io/StreamTokenizer.java: idem
2020 * java/io/StringReader.java: idem
2021 * java/lang/reflect/ReflectPermission.java: idem
2023 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2025 * java/util/TreeSet.java (clone): Made subclass safe, use
2026 super.clone(), not new.
2027 * java/util/TreeMap.java (clone): Likewise.
2029 * java/util/TreeMap.java (nil): Made non-final.
2030 (clone): Create new nil node for copy.
2032 * java/util/HashSet.java (clone): Made subclass safe, use
2033 super.clone(), not new.
2035 2001-02-14 Andrew Haley <aph@redhat.com>
2037 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2040 2001-02-15 Anthony Green <green@redhat.com>
2042 * defineclass.cc: Don't include alloca.h.
2043 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2044 * interpret.cc (run_normal): Ditto.
2046 * java/lang/natDouble.cc (parseDouble): Ditto.
2048 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2050 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2052 * java/util/Collections.java (ReverseComparator): New static class.
2053 (reverseOrder): Return static instance of ReverseComparator.
2055 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2056 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2057 Rectangle.clone(), not Object.clone().
2059 * java/util/HashSet.java (clone): Remove try/catch.
2061 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2062 * java/util/Collection.java: Likewise.
2063 * java/util/Comparator.java: Likewise.
2064 * java/util/Dictionary.java: Likewise.
2065 * java/util/Iterator.java: Likewise.
2066 * java/util/ListIterator.java: Likewise.
2067 * java/util/Map.java: Likewise.
2068 * java/util/Set.java: Likewise.
2070 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2072 * java/util/TreeMap.java: New file.
2073 * java/util/TreeSet.java: New file.
2074 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2075 * Makefile.in: Rebuilt.
2076 * java/util/HashSet.java (clone): Use constructor instead of calling
2078 * java/util/SortedSet.java: Sync with classpath.
2079 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2082 * java/lang/natClass.cc (getSignature): Don't try to dereference
2083 param_types if it is null. Instead, take this to mean "no parameters".
2084 * java/lang/TreeMap.java (TreeIterator.next): Throw
2085 NoSuchElementException in preference to ConcurrentModificationException.
2086 (TreeIterator.remove): Throw IllegalStateException in preference to
2087 ConcurrentModificationException.
2088 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2089 throw a NoSuchElementException.
2090 (SubMap.lastKey): Likewise.
2092 2001-02-13 Tom Tromey <tromey@redhat.com>
2094 * java/io/PipedReader.java (ready): Throw IOException if pipe
2096 * java/io/FilterReader.java (close): Don't clear `in'.
2097 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2099 (read, ready, reset, skip): Added exception message.
2100 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2101 Perform checkStatus check inside synchronized block.
2103 2001-02-13 Tom Tromey <tromey@redhat.com>
2105 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2107 2001-02-13 Tom Tromey <tromey@redhat.com>
2109 Fix for PR libgcj/1351:
2110 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2112 Include Thread.h and InterruptedIOException.h.
2114 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2116 * java/io/BlockDataException.java: Removed.
2117 * java/io/ObjectInputStream.java (readObject): Throw
2118 StreamCorruptedException, not BlockDataException.
2119 * Makefile.am: Remove BlockDataException.
2120 * Makefile.in: Rebuild.
2122 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2123 Tom Tromey <tromey@redhat.com>
2125 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2128 2001-02-09 Tom Tromey <tromey@redhat.com>
2130 * java/util/Timer.java: New version from Classpath.
2132 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2134 * java/lang/Double.java (doubleToRawLongBits): Now native.
2135 * java/lang/Float.java (floatToRawIntBits): Likewise.
2136 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2137 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2139 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2141 * java/io/File.java (java.net): Imported.
2142 (getAbsoluteFile): Added.
2143 (getCanonicalPath): Likewise.
2146 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2148 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2149 * java/lang/Integer.java: Likewise.
2150 * java/lang/Long.java: Likewise.
2151 * java/lang/Short.java: Likewise.
2152 * java/lang/Double.java: Likewise.
2153 (doubleToRawLongBits): New method.
2154 * java/lang/Float.java: As above.
2155 (floatToRawIntBits): New method.
2157 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2158 IOException if stream closed.
2160 2001-02-08 Tom Tromey <tromey@redhat.com>
2162 * java/lang/Float.java (parseFloat): New method.
2164 2001-02-08 Tom Tromey <tromey@redhat.com>
2166 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2167 * java/io/InputStreamReader.java (ready, read): Throw IOException
2168 if stream has been closed.
2170 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2172 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2173 Change sources.redhat.com and sourceware.cygnus.com references to
2176 2001-02-07 Tom Tromey <tromey@redhat.com>
2178 Fix for PR libgcj/1906:
2179 * java/text/MessageFormat.java (setLocale): Use named class
2182 (format(Object,StringBuffer,FieldPosition)): Special case if
2183 argument is an Object[].
2185 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2187 * java/util/Arrays.java: Removed "cmp" methods.
2188 (qsort): Don't use "cmp".
2191 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2193 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2194 sort. Fix for PR java/1895.
2196 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2198 * configure.host: Use sjlj-exceptions for Alpha.
2200 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2202 * libgcj.spec.in: Don't force static libgcc into the executable.
2203 * configure.in (FORCELIBGCCSPEC): Removed.
2204 * configure: Rebuilt.
2206 2001-01-31 Tom Tromey <tromey@redhat.com>
2208 * Makefile.in: Rebuilt.
2209 * Makefile.am (LTCXXCOMPILE): New macro.
2211 2001-01-26 Andrew Haley <aph@redhat.com>
2213 (INIT_FPE): Use a direct system call to set the handler.
2215 2001-01-27 Richard Henderson <rth@redhat.com>
2217 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2219 2001-01-27 Tom Tromey <tromey@redhat.com>
2221 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2222 native interface structure.
2224 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2226 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2228 (read (byte[], int, int)): Only call readNextBlock() if the block
2229 buffer would actually be overrun. Increment blockDataPosition.
2230 (callReadMethod): Propagate exceptions from invocation target.
2231 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2232 exceptions from invocation target.
2234 2001-01-26 Tom Tromey <tromey@redhat.com>
2236 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2237 to internal representation.
2238 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2239 _Jv_FindClassFromSignature.
2241 2001-01-26 Warren Levy <warrenl@redhat.com>
2243 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2244 and timezone if they are available on the system.
2246 2001-01-24 Tom Tromey <tromey@redhat.com>
2248 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2250 2001-01-24 Tom Tromey <tromey@redhat.com>
2252 * Makefile.in: Rebuilt.
2253 * Makefile.am (c_source_files): Added sf_fabs.c.
2254 * java/lang/sf_fabs.c: New file.
2256 2001-01-19 Warren Levy <warrenl@redhat.com>
2258 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2259 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2260 correctly. Adjust properly from 0-23 clock hour.
2262 2001-01-17 Mark Wielaard <mark@klomp.org>
2264 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2266 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2268 * java/lang/Class.h (isInterface): Move implementation from
2269 natClass.cc. Declare inline.
2270 (Class): Add default constructor.
2271 * java/lang/Object.h: Update comments.
2272 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2273 initialize superclass, saving a call if super is already initialized.
2275 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2277 * prims.cc (init_prim_class): Deleted.
2278 (DECLARE_PRIM_TYPE): Rewritten.
2279 * java/lang/Class.h (stdio.h): Include removed.
2280 (stddef.h): Included.
2281 (java/lang/reflect/Modifier.h): Likewise.
2282 (Class): Contructor now takes arguments, initializes fields.
2283 (initializePrim): Prototype deleted.
2284 * java/lang/natClass.cc (initializePrim): Deleted.
2286 2001-01-16 Warren Levy <warrenl@redhat.com>
2288 * java/math/BigInteger.java: Update Copyright year.
2290 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2292 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2295 2001-01-14 Mark Wielaard <mark@klomp.org>
2296 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2297 (decode): Merge comments with Classpath, don't throw Exception
2299 2001-01-12 Tom Tromey <tromey@redhat.com>
2301 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2305 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2306 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2307 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2308 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2309 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2311 * java/lang/natSystem.cc: Include locale.h if it exists.
2312 * configure: Rebuilt.
2313 * configure.in: Check for locale.h.
2315 2001-01-11 Tom Tromey <tromey@redhat.com>
2317 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2318 (Cursor(int), getPredefinedCursor): Throw exception if argument
2321 2001-01-03 Tom Tromey <tromey@redhat.com>
2323 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2324 (getLocationOnScreen): Wrote.
2326 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2328 * Makefile.am: Re-enable dependencies.
2329 * Makefile.in: Rebuilt.
2331 2001-01-10 Warren Levy <warrenl@redhat.com>
2333 * java/math/BigDecimal.java (divide): Fixed comment.
2335 2001-01-10 Warren Levy <warrenl@redhat.com>
2337 Fix for PR libgcj/1596:
2338 * java/math/BigDecimal.java (divide): Check newScale for validity.
2339 Ensure that BigInteger.pow() is called with a non-negative value.
2340 (setScale (int)): New public method.
2341 (setScale (int,int)): New public method.
2343 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2345 Fix for PR libgcj/1338:
2346 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2347 commentChar. Fixed typos in comments.
2349 2001-01-08 Warren Levy <warrenl@redhat.com>
2351 Fix for PR libgcj/1411:
2352 * Makefile.am: Removed java/util/natTimeZone.cc.
2353 * Makefile.in: Rebuilt.
2354 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2355 missing localized timezone names.
2356 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2357 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2358 (init_properties): Set user.timezone property.
2359 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2360 default timezone names; removed non-standard ones. Use standard
2362 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2364 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2366 (getDefaultTimeZoneId): Removed.
2368 * java/util/natTimeZone.cc: Removed.
2370 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2372 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2373 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2374 (_Jv_GetArrayClass): New inline function.
2375 (arrayclass): New field.
2376 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2377 _Jv_GetArrayElementFromElementType.
2378 (_Jv_NewPrimArray): Ditto.
2379 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2380 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2381 Set Modifier::ABSTRACT.
2382 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2383 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2384 Now synchronized. Array classes are now referenced from
2385 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2386 Set array classes' accessibility flags correctly. Optimize so that
2387 all array classes share the same IDT.
2388 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2389 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2390 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2391 in superclasses from overwriting classes own fields.
2392 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2393 Modifier::isAbstract().
2394 (null_idt): New static field.
2395 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2397 (_Jv_IndexOf): Made inline.
2398 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2400 2001-01-08 Tom Tromey <tromey@redhat.com>
2402 Fix for PR java/1586:
2403 * Makefile.in: Rebuilt.
2404 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2406 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2408 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2409 from the c++ compiler.
2410 * Makefile.in: Rebuilt.
2412 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2414 All files with updated copyright.
2415 * prims.cc (class _Jv_PrimClass): Removed.
2416 (init_prim_class): New function.
2417 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2418 `_Jv_PrimClass' in primitive type declarations. Assign to the
2419 value returned by `init_prim_class.'
2420 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2421 primitive type declarations.
2422 (JvPrimClass): Cast to `jclass' removed.
2423 * java/lang/Class.h (Class): New constructor.
2424 (Class): New copy constructor.
2425 (initializePrim): New prototype.
2426 (_Jv_PrimClass): Field removed.
2427 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2428 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2429 (class java::lang::Object): `finalize' moved up front.
2430 * java/lang/natClass.cc
2431 (isAssignableFrom): Turned outline.
2432 (isInstance): Likewise.
2433 (isInterface): Likewise, fixed indentation.
2434 (initializePrim): New function.
2436 2001-01-07 Anthony Green <green@redhat.com>
2438 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2440 * Makefile.in: Rebuilt.
2442 * scripts/TexinfoDoclet.java: New file.
2444 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2445 doc/java-awt-color.texi, doc/java-lang.texi,
2446 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2447 doc/java-awt-event.texi, doc/java-net.texi,
2448 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2449 doc/java-awt-image.texi, doc/java-security.texi,
2450 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2451 doc/java-text.texi, doc/java-beans-beancontext.texi,
2452 doc/java-util-jar.texi, doc/java-beans.texi,
2453 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2454 doc/java-lang-ref.texi: New files.
2456 2001-01-07 Anthony Green <green@redhat.com>
2458 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2459 be used for both input and output, so don't clear doInput.
2461 * java/lang/StringBuffer.java: Fix comments.
2463 2001-01-06 Anthony Green <green@redhat.com>
2465 * java/beans/PropertyDescriptor.java: Fix comment.
2466 * java/io/PushbackReader.java: Fix comment.
2467 * java/io/ObjectStreamClass.java: Fix comment.
2468 * java/io/DataInputStream.java: Fix comment.
2469 * java/io/PipedInputStream.java: Fix comments.
2470 * java/io/PipedReader.java: Fix comments.
2471 * java/sql/DatabaseMetaData.java: Fix comments.
2473 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2475 * java/io/PipedReader: Synchronize on "lock" instead of this.
2477 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2479 * java/lang/Thread.java: Update comment.
2481 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2482 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2483 * java/io/PipedReader: New implementation based on new
2485 * java/io/PipedWriter: Updated to match new PipedReader.
2487 2001-01-03 Tom Tromey <tromey@redhat.com>
2489 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2490 (getViewportSize): Insets include scrollbar size.
2491 (doLayout): Finished.
2492 (getScrollPosition): Wrote.
2493 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2495 2001-01-02 Tom Tromey <tromey@redhat.com>
2497 * java/awt/ScrollPane.java: Wrote.
2498 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2501 * java/awt/Panel.java (Panel()): Fixed.
2503 * java/awt/Component.java (isShowing): Return false if no peer
2504 exists, and true if component is visible and no parent exists.
2505 (getLocationOnScreen): Wrote.
2506 (getPreferredSize): Removed FIXME comment.
2507 (getMinimumSize): Likewise.
2508 (getAlignmentX, getAlignmentY): Wrote.
2510 (requestFocus): Wrote.
2511 (transferFocus): Wrote.
2512 (findNextFocusComponent): New method.
2513 (hasFocus()): Wrote.
2514 (checkImage): Wrote.
2515 (enableEvents): Call setEventMask on the peer.
2517 * java/awt/Container.java (list): Use super.list() to print self.
2518 (findNextFocusComponent): New method.
2519 (setLayout): Call invalidate.
2520 (findComponentAt): Wrote.
2522 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2524 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2525 the correct versions of various linuxthreads functions get linked.
2526 * Makefile.in: Rebuilt.
2527 * java/lang/natThread.cc (finalize_native): New static function. Call
2528 _Jv_ThreadDestroyData.
2529 (initialize_native): Register finalizer for "data".
2530 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2531 (_Jv_ThreadDestroyData): New prototype.
2532 * include/win32-threads.h: Ditto.
2533 * include/no-threads.h: Ditto.
2534 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2535 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2536 move mutex and condition variable destroy code from:
2537 (really_start): ...here.
2538 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2539 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2540 (_Jv_ThreadDestroyData): Implemented.
2541 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2542 (_Jv_AllocArray): Ditto.
2544 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2546 * java/sql/DriverManager.java (getConnection): Don't set user/password
2549 2000-12-27 Warren Levy <warrenl@redhat.com>
2551 Fix for PR libgcj/1358:
2552 * java/lang/System.java: Update Copyright date properly.
2553 * java/util/Calendar.java: Fix typo in comment.
2554 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2555 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2556 initialize times. Spec says to set H:M:S values to zero only if
2558 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2559 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2560 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2561 timezones and GMT offsets, being careful to account for units of
2562 milliseconds vs. seconds.
2564 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2566 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2567 not be assigned to Object.
2569 Fix for PR libgcj/1516:
2570 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2572 (can_widen): Declared inline. Remove redundant checks for void
2573 arguments and char->short conversion. Add special case for boolean
2575 (ffi_type): Declared inline.
2576 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2578 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2580 * java/sql/SQLWarning.java: Fixed typo in comment.
2582 2000-12-26 Tom Tromey <tromey@redhat.com>
2584 * java/awt/MenuItem.java (paramString): Now protected.
2586 * java/awt/MenuShortcut.java: Implements Serializable.
2588 * java/awt/MenuBar.java: Rewrote from scratch.
2590 * java/awt/MenuComponent.java (removeNotify): Wrote.
2591 Implements Serializable.
2593 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2596 * java/awt/CheckboxMenuItem.java: Wrote.
2598 2000-12-25 Tom Tromey <tromey@redhat.com>
2600 * java/awt/MenuContainer.java: Fixed typo.
2602 * Makefile.in: Rebuilt.
2603 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2604 * java/awt/SystemColor.java: New file.
2606 * java/awt/Color.java (rgba): Now package-private.
2608 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2610 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2613 * java/awt/MenuItem.java (addNotify): New method.
2614 (MenuItem(String,MenuShortcut)): New constructor.
2615 (setLabel): Notify peer of change.
2616 (setEnabled): Likewise.
2618 * java/awt/GridLayout.java (toString): New method.
2620 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2621 (FlowLayout): Check for LEADING and TRAILING.
2622 (setAlignment): Likewise.
2623 (layoutContainer): Handle component orientation.
2625 * java/awt/Component.java (orientatin): New field.
2626 (setComponentOrientation): Wrote.
2627 (getComponentOrientation): Wrote.
2629 * java/awt/Event.java (Event): Implements Serializable.
2630 (consumed): New field for serialization.
2631 * java/awt/Dimension.java (Dimension): Implements Serializable.
2632 * java/awt/Cursor.java (Cursor): Implements Serializable.
2633 * java/awt/Container.java (Container): No longer abstract.
2635 * java/awt/Choice.java: Wrote.
2636 * java/awt/Checkbox.java: Wrote.
2637 * java/awt/ItemSelectable.java: Documented.
2638 * java/awt/CheckboxGroup.java: Wrote.
2640 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2642 (getSize): Likewise.
2644 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2646 * java/io/FileDescriptor.java: Initialize fd to -1.
2647 Remove default constructor.
2649 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2651 * java/lang/mprec.h: Change C9X reference to refer to C99.
2653 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2655 * java/lang/Throwable.java (trace_enabled): New static field.
2656 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2657 trace_enabled not set.
2658 * prims.cc (main_init): Turn off trace_enabled while creating
2659 default exception objects.
2661 2000-12-21 Tom Tromey <tromey@redhat.com>
2663 * java/beans/PropertyChangeListener.java: Extends EventListener.
2664 * java/beans/VetoableChangeListener.java: Extends EventListener.
2666 * java/util/zip/Deflater.java (update, init): Now private.
2668 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2670 * java/util/BasicMapEntry.java: Re-added.
2671 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2672 (putAll): Test for BasicMapEntry.
2673 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2674 (putAll): Test for BasicMapEntry.
2675 Change references from `HashMap.Entry' to `Entry' in various places.
2676 * Makefile.am: Add BasicMapEntry.java.
2677 * Makefile.in: Rebuilt.
2679 2000-12-18 Warren Levy <warrenl@redhat.com>
2681 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2682 need to set timezone to a valid non-null value. Partial fix for
2685 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2687 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2689 * java/awt/Button.java (addNotify): Likewise.
2690 * java/awt/Label.java (addNotify): Likewise.
2691 * java/awt/Panel.java (addNotify): Likewise.
2692 * java/awt/Scrollbar.java (addNotify): Likewise.
2693 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2694 Remove redundant null checks.
2696 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2698 * COPYING: Update to current
2699 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2700 to 19yy as example year in copyright notice).
2702 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2704 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2705 end-of-stream if avail_in is 0.
2707 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2709 * java/util/ArrayList.java (data): Declare transient.
2710 (serialPersistantFields): Removed.
2711 (readObject): Use defaultReadObject(), not readFields().
2712 (writeObject): Use defaultWriteObject(), not writeFields().
2714 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2716 * java/util/Hashtable.java (put): Remove `last' variable.
2717 Link new entry to head of list.
2718 * java/util/HashMap.java (put): Ditto.
2720 2000-12-15 Tom Tromey <tromey@redhat.com>
2722 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2723 loader to Class.forName.
2725 2000-12-14 Tom Tromey <tromey@redhat.com>
2727 * java/util/ResourceBundle.java
2728 (getBundle(String,Locale,ClassLoader)): New method.
2729 (trySomeGetBundle): Added `loader' argument.
2730 (partialGetBundle): Likewise.
2732 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2733 maximumFractionDigits, maximumIntegerDigits,
2734 minimumFractionDigits, minimumIntegerDigits): Now
2737 * java/lang/Thread.java (checkAccess): Now final.
2739 * java/lang/RuntimePermission.java: Class now final.
2741 * java/io/StringWriter.java (StringWriter(int)): Now public.
2743 * java/io/SerializablePermission.java (legal_names): Now private.
2745 * java/lang/Character.java: Updated UnicodeBlock constants.
2746 * scripts/blocks.pl: Special case private use and surrogate
2749 2000-12-12 Tom Tromey <tromey@redhat.com>
2751 * Makefile.in: Rebuilt.
2752 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2754 (GCJCOMPILE): Use it.
2757 2000-12-11 Tom Tromey <tromey@redhat.com>
2759 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2760 New static final fields.
2762 * scripts/classes.pl (scan): Skip lines with leading `*'.
2763 Fix for PR libgcj/378.
2765 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2767 * configure.in: Remove check for -fuse-divide-subroutine.
2768 * configure: Rebuilt.
2770 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2772 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2774 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2776 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2777 Remove BasicMapEntry.java and Bucket.java.
2778 * Makefile.in: Rebuilt.
2779 * java/util/HashMap.java: Rewritten.
2780 * java/util/HashSet.java: Imported from classpath.
2781 * java/util/WeakHashMap.java: Imported from classpath.
2782 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2783 * java/util/Bucket.java: Deleted.
2784 * java/util/BasicMapEntry.java: Deleted.
2785 * java/util/Collections.java (search): Use a for-loop, not iterator
2787 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2788 of elements in source.
2789 (max): Use a for-loop.
2791 (reverse): Keep track of positions instead of using Iterator's
2792 nextIndex() and previousIndex().
2793 (shuffle(List)): Initialize defaultRandom if required using
2794 double-check thread safety idiom. Call two-argument shuffle method
2795 using defaultRandom.
2796 (defaultRandom): New field.
2797 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2798 using previousIndex() and nextIndex().
2799 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2800 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2801 * java/util/AbstractMap.java (toString): Use StringBuffer.
2802 * java/lang/ref/PhantomReference.java: Imported from classpath.
2803 * java/lang/ref/SoftReference.java: Ditto.
2804 * java/lang/ref/Reference.java: Ditto.
2805 * java/lang/ref/WeakReference.java: Ditto.
2806 * java/lang/ref/ReferenceQueue.java: Ditto.
2808 2000-12-10 Richard Henderson <rth@redhat.com>
2810 * configure.host: Recognize alpha*-*, not alphaev6-*.
2812 2000-12-09 Anthony Green <green@redhat.com>
2814 * configure.host: Enable interpreter for Alpha.
2816 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2818 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2819 (ZIP): Points at fastjar instead of zip.
2820 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2821 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2822 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2823 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2824 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2825 ($(x_java_source_files:.java=.class):): Likewise.
2826 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2828 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2829 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2830 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2831 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2832 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2833 gnu/gcj/runtime/VMClassLoader.h:,
2834 java/io/ObjectInputStream$$GetField.h:,
2835 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2836 (Makefile.in): Rebuilt.
2838 2000-12-08 Tom Tromey <tromey@redhat.com>
2841 * configure: Rebuilt.
2842 * configure.in: Use echo, not `:', to create .d files.
2844 2000-12-08 Warren Levy <warrenl@redhat.com>
2846 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2847 NullPointerException so proper check of offset can be done.
2849 2000-12-08 Warren Levy <warrenl@redhat.com>
2851 * java/io/FileInputStream.java (close): Check if the fd is valid.
2852 * java/io/RandomAccessFile.java (close): Ditto.
2853 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2854 * java/net/PlainSocketImpl.java (close): Ditto.
2856 2000-12-06 Tom Tromey <tromey@redhat.com>
2858 * java/awt/GridBagConstraints.java: Filled in values for static
2861 * java/util/BitSet.java: Updated copyright notice.
2863 * Makefile.in: Rebuilt.
2864 * Makefile.am (awt_java_source_files): Added new file.
2865 * java/awt/GridBagConstraints.java: New file.
2867 2000-12-05 Tom Tromey <tromey@redhat.com>
2869 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2870 Now package-private, not protected.
2871 * java/text/DateFormatSymbols.java (equals): Now private.
2872 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2873 * java/util/BitSet.java: Class no longer final.
2875 2000-12-04 Warren Levy <warrenl@redhat.com>
2877 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2878 out code dependent on compiler and library changes.
2880 2000-12-04 Warren Levy <warrenl@redhat.com>
2882 * java/io/FilePermission.java: Made class final per spec.
2883 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2884 method name to match spec (fixed typo).
2885 * java/util/LinkedList.java: Implements List.
2887 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2889 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2890 Edgar Villanueva <edgarvil@home.com>.
2892 2000-12-03 Tom Tromey <tromey@redhat.com>
2894 * java/awt/geom/Point2D.java: Added protected constructor.
2895 (equals): New method.
2896 (Float.setLocation(float,float)): New method.
2897 * java/awt/geom/Dimension2D.java: Added protected constructor.
2898 * java/awt/geom/AffineTransform.java: Made all constants public.
2899 (concatenate): Fixed typo in name.
2900 * java/awt/event/WindowAdapter.java: Class now abstract.
2901 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2902 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2905 * java/awt/AWTError.java: Extend Error, not
2906 IllegalStateException.
2908 * Makefile.in: Rebuilt.
2909 * Makefile.am (awt_java_source_files): Added new file.
2910 * java/awt/geom/RoundRectangle2D.java: New file.
2912 * Makefile.in: Rebuilt.
2913 * Makefile.am (awt_java_source_files): Added new file.
2914 * java/awt/FlowLayout.java: New file.
2916 * Makefile.in: Rebuilt.
2917 * Makefile.am (awt_java_source_files): Added new file.
2918 * java/awt/GridLayout.java: New file.
2920 2000-12-02 Tom Tromey <tromey@redhat.com>
2922 * Makefile.in: Rebuilt.
2923 * Makefile.am (awt_java_source_files): Added new files.
2924 * java/awt/CardLayout.java: New file.
2925 * java/awt/AWTPermission.java: New file.
2927 2000-12-01 Tom Tromey <tromey@redhat.com>
2929 * java/util/Vector.java (insertElementAt): Unconditionally
2930 increment elementCount.
2931 (removeRange): Clear unused slots in vector.
2933 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2935 * java/lang/natMath.cc: Declare fabsf() function.
2936 * java/lang/mprec.h: Don't include math.h.
2937 * java/lang/dtoa.c: Include string.h.
2938 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2941 From Adam Welc <welc@cs.purdue.edu>:
2942 * java/util/LinkedList.java (removeFirst): Update `first' field.
2943 Handle the last == first case.
2944 (removeLast): Update `last' field. Handle the last == first case.
2946 2000-12-01 Warren Levy <warrenl@cygnus.com>
2948 * Makefile.am: Added entries for new java.sql modules.
2949 * Makefile.in: Rebuilt.
2951 2000-12-01 Warren Levy <warrenl@cygnus.com>
2953 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2954 that aren't quite 1.2 compatible yet.
2956 2000-11-30 Warren Levy <warrenl@cygnus.com>
2958 * java/sql/Array.java: New file from classpath.
2959 * java/sql/BatchUpdateException.java: Ditto.
2960 * java/sql/Blob.java: Ditto.
2961 * java/sql/Clob.java: Ditto.
2962 * java/sql/Ref.java: Ditto.
2963 * java/sql/SQLData.java: Ditto.
2964 * java/sql/SQLInput.java: Ditto.
2965 * java/sql/SQLOutput.java: Ditto.
2966 * java/sql/Struct.java: Ditto.
2967 * java/sql/CallableStatement.java: Merged file from claspath.
2968 * java/sql/Connection.java: Ditto.
2969 * java/sql/DataTruncation.java: Ditto.
2970 * java/sql/DatabaseMetaData.java: Ditto.
2971 * java/sql/DriverManager.java: Ditto.
2972 * java/sql/PreparedStatement.java: Ditto.
2973 * java/sql/ResultSet.java: Ditto.
2974 * java/sql/ResultSetMetaData.java: Ditto.
2975 * java/sql/SQLException.java: Ditto.
2976 * java/sql/SQLWarning.java: Ditto.
2977 * java/sql/Statement.java: Ditto.
2978 * java/sql/Types.java: Ditto.
2980 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2982 * java/lang/natSystem.cc (init_properties): Set user.language and
2984 * configure.in: Check for setlocale.
2985 * configure: Rebuilt.
2986 * include/config.h.in: Rebuilt.
2988 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2989 the infate() call didn't deliver any output. Throw a ZipException if
2990 the needsDictionary() call returns true.
2991 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2992 * java/io/InputStreamReader: Use the default buffer size for the
2993 contained BufferedInputStream.
2995 2000-11-28 Warren Levy <warrenl@cygnus.com>
2997 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2998 more time zone entries.
2999 * java/text/SimpleDateFormat.java (format): Added case for
3002 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3004 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3005 directly rather than read() in all cases. Make primitive read
3006 implementations more efficient, as defined in JDK online docs.
3007 (skipBytes): Behave like the JDK's implementation.
3008 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3009 closed stream with checkStatus() whenever an IOException can be
3011 (checkStatus): New private method.
3013 2000-11-27 Warren Levy <warrenl@cygnus.com>
3015 * Makefile.am: Added natTimeZone.cc.
3016 * Makefile.in: Rebuilt.
3017 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3018 * java/text/DateFormatSymbols.java (ampms): Made package private.
3019 (eras): Made package private.
3020 (months): Made package private.
3021 (shortMonths): Made package private.
3022 (shortWeekdays): Made package private.
3023 (weekdays): Made package private.
3024 (formatPrefixes): New private field.
3025 (localPatternCharsDefault): Made private.
3026 (dateFormats): New package private field.
3027 (timeFormats): New package private field.
3028 (formatsForKey): New private method.
3029 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3030 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3031 * java/text/SimpleDateFormat.java: Merged with Classpath.
3032 * java/util/TimeZone.java: Merged with Classpath.
3033 * java/util/natTimeZone.cc: New file.
3035 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3037 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3038 (addElement): Don't increment elementCount twice. Doh.
3039 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3040 array needs to be expanded.
3042 * java/util/Collections.java (UnmodifiableCollection): Implement
3044 (UnmodifiableList): Throw UnsupportedOperationException from
3045 modification methods. Set `l' from the one-parameter constructor.
3046 (UnmodifiableMap): Implement toString().
3047 (SynchronizedCollection): Ditto.
3048 (SynchronizedList): Set `l' from the one-parameter constructor.
3049 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3050 (SynchronizedMap): Implement toString().
3052 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3054 * javax/naming/NameParser.java,
3055 javax/naming/directory/AttributeInUseException.java,
3056 javax/naming/directory/AttributeModificationException.java,
3057 javax/naming/directory/InvalidAttributeIdentifierException.java,
3058 javax/naming/directory/InvalidAttributesException.java,
3059 javax/naming/directory/InvalidAttributeValueException.java,
3060 javax/naming/directory/InvalidSearchControlsException.java,
3061 javax/naming/directory/InvalidSearchFilterException.java,
3062 javax/naming/directory/NoSuchAttributeException.java,
3063 javax/naming/directory/SchemaViolationException.java: New files.
3065 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3067 * javax/naming/InitialContext.java (rebind): Implement.
3068 (unbind): Implement.
3069 (rename): Implement.
3071 (listBindings): Implement.
3072 (destroySubcontext): Implement.
3073 (createSubcontext): Implement.
3074 (lookupLink): Implement.
3075 (getNameParser): Implement.
3076 (composeName): Implement.
3077 (addToEnvironment): Implement.
3079 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3081 * javax/naming/AuthenticationException.java,
3082 javax/naming/AuthenticationNotSupportedException.java,
3083 javax/naming/CannotProceedException.java,
3084 javax/naming/CommunicationException.java,
3085 javax/naming/ConfigurationException.java,
3086 javax/naming/ContextNotEmptyException.java,
3087 javax/naming/InsufficientResourcesException.java,
3088 javax/naming/InterruptedNamingException.java,
3089 javax/naming/InvalidNameException.java,
3090 javax/naming/LimitExceededException.java,
3091 javax/naming/LinkException.java,
3092 javax/naming/LinkLoopException.java,
3093 javax/naming/MalformedLinkException.java,
3094 javax/naming/NameAlreadyBoundException.java,
3095 javax/naming/NameNotFoundException.java,
3096 javax/naming/NamingSecurityException.java,
3097 javax/naming/NoPermissionException.java,
3098 javax/naming/NotContextException.java,
3099 javax/naming/PartialResultException.java,
3100 javax/naming/ReferralException.java,
3101 javax/naming/ServiceUnavailableException.java,
3102 javax/naming/SizeLimitExceededException.java,
3103 javax/naming/TimeLimitExceededException.java: New files.
3105 * javax/naming/Name.java (clone): New method.
3106 (compareTo): New method.
3107 (isEmpty): New method.
3108 (getAll): New method.
3109 (getPrefix): New method.
3110 (getSuffix): New method.
3111 (startsWith): New method.
3112 (endsWith): New method.
3113 (addAll): New method.
3114 (addAll): New method.
3117 (remove): New method.
3119 * javax/naming/Context.java (lookup): New method.
3120 (rebind): New method.
3121 (unbind): New method.
3122 (rename): New method.
3124 (listBindings): New method.
3125 (destroySubcontext): New method.
3126 (createSubcontext): New method.
3127 (lookupLink): New method.
3128 (getNameParser): New method.
3129 (composeName): New method.
3130 (addToEnvironment): New method.
3131 (removeFromEnvironment): New method.
3132 (getEnvironment): New method.
3133 (close): New method.
3134 (getNameInNamespace): New method.
3136 * javax/naming/InitialContext.java (lookup): New method.
3137 (rebind): New method.
3138 (unbind): New method.
3139 (rename): New method.
3141 (listBindings): New method.
3142 (destroySubcontext): New method.
3143 (createSubcontext): New method.
3144 (lookupLink): New method.
3145 (getNameParser): New method.
3146 (composeName): New method.
3147 (addToEnvironment): New method.
3148 (removeFromEnvironment): New method.
3149 (getEnvironment): New method.
3150 (close): New method.
3151 (getNameInNamespace): New method.
3153 2000-11-26 Tom Tromey <tromey@cygnus.com>
3155 * Makefile.in: Rebuilt.
3156 * Makefile.am (core_java_source_files): Added
3157 RuntimePermission.java.
3158 * java/lang/RuntimePermission.java: Imported from Classpath.
3159 * java/lang/Thread.java (getContextClassLoader): Now
3160 synchronized. Added security code.
3161 (setContextClassLoader): Likewise.
3163 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3164 length field of array.
3165 (_Jv_NewPrimArray): Likewise.
3166 * gcj/array.h (__JArray): `length' field now const. Added
3169 2000-11-26 Anthony Green <green@redhat.com>
3171 * javax/naming/spi/NamingManager.java,
3172 javax/naming/spi/ObjectFactory.java,
3173 javax/naming/spi/InitialContextFactory.java,
3174 javax/naming/spi/InitialContextFactoryBuilder.java,
3175 javax/naming/RefAddr.java, javax/naming/Reference.java,
3176 javax/naming/NamingException.java, javax/naming/Context.java,
3177 javax/naming/Referenceable.java,
3178 javax/naming/directory/InitialDirContext.java,
3179 javax/naming/directory/DirContext.java,
3180 javax/naming/directory/Attributes.java,
3181 javax/naming/directory/Attribute.java,
3182 javax/naming/StringRefAddr.java,
3183 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3184 javax/naming/InitialContext.java,
3185 javax/naming/NoInitialContextException.java: New files.
3187 2000-11-25 Anthony Green <green@redhat.com>
3189 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3190 (_Jv_NewPrimArray): Likewise.
3191 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3192 (class JArray): Removed constructor.
3194 * java/lang/Thread.java (context_class_loader): New private data.
3195 (getContextClassLoader): New method.
3196 (setContextClassLoader): New method.
3197 (Thread): Initialize context_class_loader.
3199 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3200 (getResource): Rename to findResource.
3201 (findResource): New method. Used to be getResource.
3202 (getResourceAsStream): Deleted.
3203 (jarFileize): Extracted logic from URLClassLoader constructor into
3204 this new private method.
3205 (addURL): New protected method.
3206 (URLClassLoader): Call jarFileize. Use addElement instead of
3208 (findResources): New method.
3210 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3211 (getResource): Implement correct logic.
3212 (findResource): New method.
3213 (getResources): New method.
3214 (findClass): Create a ClassNotFoundException with the name of the
3215 class rather than nothing at all.
3216 (defineClass) Only throw ClassFormatError.
3218 * java/lang/Class.java (forName): New method.
3219 * java/lang/Class.h (forName): New method.
3220 * java/lang/natClass.cc (forName): New method.
3222 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3224 * java/lang/System.java (setProperties): Only call init_properties()
3225 if properties is null.
3226 (getProperties): Ditto.
3227 (getProperty): Ditto.
3228 (setProperty): Call init_properties if properties are null.
3229 (prop_init): Remove field.
3230 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3231 method. Check for null properties after synchronizing instead of
3232 prop_init flag. Set the properties field last for thread safety.
3234 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3235 test for gcj.dumpobjects property and enable object stream dumping
3237 (dumpElement): No longer native.
3238 (dumpElementln): Ditto.
3239 (setDump): Do not define.
3240 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3241 (dumpElementln): Removed.
3244 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3246 * configure: Rebuilt.
3247 * Makefile.in: Rebuilt.
3248 * Makefile.am (built_java_source_files): Add Configuration.java.
3249 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3250 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3251 Create `gnu' directory in the build tree.
3252 * gnu/classpath/Configuration.java.in: New file.
3254 2000-11-24 Tom Tromey <tromey@cygnus.com>
3256 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3258 (_Jv_NewPrimArray): Likewise.
3260 * gcj/array.h (__JArray): `length' field now const. Added
3262 (class JArray): Added constructor.
3264 2000-11-23 Mark Wielaard <mark@klomp.org>
3266 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3269 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3271 * java/util/Vector.java: Improve exception messages.
3272 (Vector): Check initialCapacity for IllegalArgumentException.
3273 (tromToSize): Don't check for elementCount == elementData.length
3275 (toArray): Don't try to set null marker if target array is the same
3276 length as the vector.
3278 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3280 * Makefile.in: Rebuilt.
3281 * Makefile.am (core_java_source_files): Added Collections.java.
3282 * java/util/List.java: Merged from classpath.
3283 * java/util/Vector.java: Ditto.
3284 * java/util/Collections.java: From classpath.
3285 * java/util/ArrayList.java (addAll(Collection)): Call
3286 addAll(int,Collection) instead of duplicating code.
3287 (indexOf): Clean up int initialization.
3288 (clear): Set cleared array entries to null, to allow garbage
3290 * java/util/List.java: Minor formatting fixes.
3291 * java/util/SimpleTimeZone.java: ditto.
3293 2000-11-18 Tom Tromey <tromey@cygnus.com>
3295 * Makefile.in: Rebuilt.
3296 * Makefile.am (core_java_source_files): Added new files.
3297 * java/lang/reflect/ReflectPermission.java: New class.
3298 * java/io/FileFilter.java: From Classpath
3299 * java/io/FilePermission.java: From Classpath.
3301 2000-11-17 Tom Tromey <tromey@cygnus.com>
3303 * java/lang/reflect/AccessibleObject.java (isAccessible,
3304 setAccessible): Now public.
3306 * java/lang/natString.cc: Include Locale.h.
3307 (toUpperCase): Added `locale' argument. Handle locale
3309 (toLowerCase): Added `locale' argument. Handle locale
3311 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3312 CAPITAL_I): New defines.
3313 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3316 (toUpperCase, toLowerCase): New methods. Variants which accept
3319 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3322 * java/util/PropertyPermission.java: Re-merged from Classpath.
3324 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3326 * java/text/StringCharacterIterator.java: Reindented.
3327 (setText): New method.
3329 2000-11-17 Mark Wielaard <mark@klomp.org>
3331 Merge with Classpath (changes by Bryce McKinlay)
3332 * java/util/jar/*.java: Reformat all to unofficial standard coding
3333 style. No changes of substance.
3335 2000-11-17 Mark Wielaard <mark@klomp.org>
3337 * java/util/zip/*.java: Javadoc updates.
3339 2000-11-17 Tom Tromey <tromey@cygnus.com>
3341 * java/text/CollationKey.java: Implement Comparable.
3342 (compareTo(Object)): New method.
3343 * java/text/Collator.java (compare(Object,Object)): New method.
3344 Implement Comparator.
3346 * java/util/zip/InflaterInputStream.java (available): New method.
3347 (close): New method.
3348 (read, available, skip, fill): Throw exception if stream closed.
3349 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3350 getNextEntry): Throw exception if closed.
3352 2000-11-16 Tom Tromey <tromey@cygnus.com>
3354 * java/io/PushbackReader.java: Merged with Classpath.
3355 * java/util/Arrays.java: Updated from Classpath.
3357 * scripts/blocks.pl: New file.
3358 * java/lang/Character.java (Subset): New class.
3359 (UnicodeBlock): New class.
3361 * java/lang/Math.java (toDegrees, toRadians): New methods.
3363 * java/lang/Float.java: Implement Comparable.
3364 (compareTo): New methods.
3365 * java/lang/Double.java: Implement Comparable.
3366 (compareTo): New methods.
3368 2000-11-16 Warren Levy <warrenl@cygnus.com>
3370 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3372 (listeners): Made transient.
3373 (source): Renamed from 'bean'.
3374 (children): New field for serialization.
3375 (propertyChangeSupportSerializedDataVersion): Ditto.
3376 (serialVersionUID): Ditto.
3377 (writeObject): New serialization method.
3378 (readObject): New serialization method.
3379 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3381 (listeners): Made transient.
3382 (source): Renamed from 'bean'.
3383 (children): New field for serialization.
3384 (vetoableChangeSupportSerializedDataVersion): Ditto.
3385 (serialVersionUID): Ditto.
3386 (writeObject): New serialization method.
3387 (readObject): New serialization method.
3388 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3389 to allow constructor to have a return type (i.e. the class that the
3390 constructor constructs).
3392 2000-11-14 Tom Tromey <tromey@cygnus.com>
3394 * Makefile.in: Rebuilt.
3395 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3398 2000-11-02 Warren Levy <warrenl@cygnus.com>
3400 * java/io/ObjectInputStream.java (readObject): Added code to
3401 conditionally dump out the serialized data.
3402 Handle ENDBLOCKDATA case a bit more gracefully since the current
3403 behavior doesn't seem to work as expected.
3404 (readStreamHeader): Added code for serialized data dumper.
3405 (readNextBlock): Ditto.
3406 (readFields): Ditto.
3407 (dump): New private static field for turning on/off dumper.
3408 (setDump): New native method.
3409 (dumpElement): New native method.
3410 (dumpElementln): New native method.
3411 * java/io/natObjectInputStream.cc (setDump): New method.
3412 (dumpElement): New method.
3413 (dumpElementln): New method.
3415 2000-11-02 Warren Levy <warrenl@cygnus.com>
3417 * java/net/InetAddress.java (addr): Renamed from 'address'.
3418 (address): New field to match Serialized Form doc.
3419 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3420 (family): New serialization field.
3421 (serialVersionUID): New field.
3422 (readObject): New method.
3423 (writeObject): New method.
3424 (getFamily): New native method.
3425 (InetAddress): Set family.
3426 * java/net/natInetAddress.cc (getFamily): New method.
3427 (addr): Renamed from 'address'.
3428 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3429 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3430 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3432 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3434 * java/util/AbstractList.java (SubList): Make it a top-level private
3436 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3438 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3439 * Makefile.in: Rebuilt.
3441 2000-11-02 Tom Tromey <tromey@cygnus.com>
3443 * Makefile.in: Rebuilt.
3444 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3447 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3449 * java/util/AbstractList.java (remove): Comment out modCount increment
3450 to work around compiler bug.
3453 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3455 * java/util/AbstractList.java: Throw messages with
3456 IndexOutOfBoundsExceptions.
3457 (listIterator()): Call listIterator(0).
3458 (size): New field. Initialize to size().
3459 (hasNext): Test position against size, not size().
3460 (remove): Increment knownMod by one instead of resetting it from
3463 (SubList.upMod): Removed.
3464 (SubList.set): Don't call upMod() or update knownMod.
3465 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3466 (SubList.remove): Ditto.
3467 (SubList.addAll): Don't call backingList.size(). Increment size from
3469 (SubList.iterator): New method. Call listIterator(0).
3470 (SubList.listIterator): New method. Restore code to return an anonymous
3471 listIterator implementation (with some changes).
3472 * java/util/AbstractSequentialList.java: Throw messages with
3473 IndexOutOfBoundsExceptions.
3474 (addAll): Add a specnote.
3475 * java/util/ArrayList.java (removeRange): Get the math right.
3476 (addAll): Increment modCount _before_ creating iterator.
3477 * java/util/LinkedList.java: Rewritten, mostly.
3479 2000-11-01 Tom Tromey <tromey@cygnus.com>
3481 * scripts/encodings.pl: Added `ASCII' alias.
3482 * Makefile.in: Rebuilt.
3483 * Makefile.am (convert_source_files): Added new files.
3484 * gnu/gcj/convert/Input_ASCII.java: New file.
3485 * gnu/gcj/convert/Output_ASCII.java: New file.
3486 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3487 out-of-range characters.
3488 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3489 (read): Swap bytes if required. Treat `count' as character count,
3491 (write): Likewise. Also, handle case where iconv fails on a given
3493 (init): Put encoding into exception.
3494 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3495 (static): Call iconv_init. Rebuilt alias list.
3496 (iconv_init): New private method.
3498 2000-11-01 Tom Tromey <tromey@cygnus.com>
3500 * Makefile.in: Rebuilt.
3501 * Makefile.am (install-exec-hook): Only make a single symlink, and
3502 remove the destination before making the link.
3503 * configure: Rebuilt.
3504 * configure.in: Call AC_PROG_LN_S.
3506 2000-10-31 Warren Levy <warrenl@cygnus.com>
3508 * jni.cc: Added include of java/lang/ThreadGroup.h.
3509 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3510 per change of 2000-10-05.
3512 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3514 * java/util/BitSet.java: Updated @specnote.
3516 * java/io/Reader.java: Merge docs from classpath.
3517 (skip): Synchronize on `lock'.
3518 * java/io/FileReader.java: Import correct implementation from
3520 * java/io/StringReader.java: Merge docs from classpath.
3521 (ready): Throw IOException if stream is closed.
3523 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3525 * java/util/AbstractCollection.java (addAll): Use size() instead of
3526 hasNext() in iterator loop.
3528 (contains): Ditto. Simplify loop.
3529 (containsAll): Ditto.
3534 (toString): Ditto. Use string concatenation operators, not
3536 * java/util/AbstractList.java (addAll): Use size() instead of
3537 hasNext() in iterator loop.
3540 (indexOf): Ditto. Don't take null check outside of the loop.
3541 (iterator): Return an AbstractListItr instead of anonymous class.
3542 (lastIndexOf): Use a for loop bounded by size() instead of
3543 hasPrevious() in iterator loop.
3544 (listIterator): Return an AbstractListItr.
3545 (removeRange): Remove bounds checking code and docs.
3546 (AbstractListItr): New inner class. Code moved here from
3548 (SubList.iterator): Removed. Use default implementation from
3549 AbstractList instead.
3550 (SubList.listIterator): As above.
3551 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3552 instead of hasNext() in iterator loop.
3553 (containsValue): Ditto.
3559 (toString): Ditto. Use string concatenation operators, not
3561 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3562 bounded by size() instead of hasNext() in iterator loop.
3563 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3564 part of normal execution flow. Do an explicit null check instead.
3565 * java/util/ArrayList.java (_iSize): Rename to `size'.
3566 (_arData): Rename to `data'.
3567 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3570 (removeRange): Make protected. Don't check bounds.
3571 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3573 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3575 (addAll (int, Collection)): Check lower bounds. Simplify exception
3577 (clone): Clone the data array too.
3578 (indexOf): Inline doesEqual().
3579 (lastIndexOf): Ditto.
3580 (clear): Don't set array data to null.
3581 (set): Check lower bounds. Simplify exception string.
3582 (toArray): Correct comment.
3583 (trimToSize): Don't update modCount, this is not a structural change.
3586 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3588 (toString): Declare `bit' as long, not int.
3589 (data): Made package-private, not private.
3591 2000-10-27 Warren Levy <warrenl@cygnus.com>
3593 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3594 array elements to true.
3596 2000-10-27 Warren Levy <warrenl@cygnus.com>
3598 * Makefile.am: Added locale files from Classpath.
3599 * Makefile.in: Rebuilt.
3600 * gnu/java/locale/Calendar.java: New file.
3601 * gnu/java/locale/Calendar_de.java: New file.
3602 * gnu/java/locale/Calendar_en.java: New file.
3603 * gnu/java/locale/Calendar_nl.java: New file.
3604 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3605 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3606 serialization compatibility.
3607 (scale): Made private.
3608 (serialVersionUID): New field.
3609 * java/math/BigInteger.java (ival): Made transient.
3610 (words): Made transient.
3611 (bitCount): New serialization field.
3613 (firstNonzeroByteNum): Ditto.
3614 (lowestSetBit): Ditto.
3617 (serialVersionUID): New field.
3618 (readObject): New method.
3619 (writeObject): New method.
3620 * java/util/BitSet.java (serialVersionUID): New field.
3621 * java/util/Calendar.java: Replaced with Classpath file.
3622 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3623 of getDefault() for TimeZone or Locale instead of passing nulls.
3624 * java/util/Locale.java (serialVersionUID): New field.
3625 (writeObject): New method.
3626 (readObject): New method.
3627 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3629 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3631 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3632 (core_java_source_files): Put java.lang, java.io, and java.util here.
3633 (ordinary_java_source_files): Order so that core_java_source_files are
3635 (java_source_files): Reorder so that special_java_source_files are
3637 * configure.in: Don't pass -I flag to gcj.
3638 * Makefile.in: Rebuilt.
3639 * configure: Rebuilt.
3641 2000-10-25 Tom Tromey <tromey@cygnus.com>
3643 * Makefile.in: Rebuilt.
3644 * Makefile.am (install-exec-hook): New target.
3646 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3648 * java/util/EventObject.java: Merged from classpath.
3650 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3653 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3655 * java/util/AbstractSet.java (equals): Re-installed original code.
3657 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3659 * Makefile.am: Added rules for libgcjx library.
3660 * Makefile.in: Rebuilt.
3661 * configure.in: Added check for X.
3662 * configure: Rebuilt.
3663 * gnu/awt/LightweightRedirector.java: New file.
3664 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3665 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3666 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3667 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3668 * gnu/awt/j2d/MappedRaster.java: New file.
3669 * gnu/awt/xlib/XCanvasPeer.java: New file.
3670 * gnu/awt/xlib/XEventLoop.java: New file.
3671 * gnu/awt/xlib/XEventQueue.java: New file.
3672 * gnu/awt/xlib/XFontMetrics.java: New file.
3673 * gnu/awt/xlib/XFramePeer.java: New file.
3674 * gnu/awt/xlib/XGraphics.java: New file.
3675 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3676 * gnu/awt/xlib/XPanelPeer.java: New file.
3677 * gnu/awt/xlib/XToolkit.java: New file.
3678 * gnu/gcj/xlib/Clip.java: New file.
3679 * gnu/gcj/xlib/Colormap.java: New file.
3680 * gnu/gcj/xlib/Display.java: New file.
3681 * gnu/gcj/xlib/Drawable.java: New file.
3682 * gnu/gcj/xlib/Font.java: New file.
3683 * gnu/gcj/xlib/GC.java: New file.
3684 * gnu/gcj/xlib/Pixmap.java: New file.
3685 * gnu/gcj/xlib/Screen.java: New file.
3686 * gnu/gcj/xlib/Visual.java: New file.
3687 * gnu/gcj/xlib/WMSizeHints.java: New file.
3688 * gnu/gcj/xlib/Window.java: New file.
3689 * gnu/gcj/xlib/WindowAttributes.java: New file.
3690 * gnu/gcj/xlib/XAnyEvent.java: New file.
3691 * gnu/gcj/xlib/XButtonEvent.java: New file.
3692 * gnu/gcj/xlib/XColor.java: New file.
3693 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3694 * gnu/gcj/xlib/XConnectException.java: New file.
3695 * gnu/gcj/xlib/XEvent.java: New file.
3696 * gnu/gcj/xlib/XException.java: New file.
3697 * gnu/gcj/xlib/XExposeEvent.java: New file.
3698 * gnu/gcj/xlib/XID.java: New file.
3699 * gnu/gcj/xlib/XImage.java: New file.
3700 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3701 * gnu/gcj/xlib/natClip.cc: New file.
3702 * gnu/gcj/xlib/natColormap.cc: New file.
3703 * gnu/gcj/xlib/natDisplay.cc: New file.
3704 * gnu/gcj/xlib/natDrawable.cc: New file.
3705 * gnu/gcj/xlib/natFont.cc: New file.
3706 * gnu/gcj/xlib/natGC.cc: New file.
3707 * gnu/gcj/xlib/natPixmap.cc: New file.
3708 * gnu/gcj/xlib/natScreen.cc: New file.
3709 * gnu/gcj/xlib/natVisual.cc: New file.
3710 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3711 * gnu/gcj/xlib/natWindow.cc: New file.
3712 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3713 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3714 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3715 * gnu/gcj/xlib/natXColor.cc: New file.
3716 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3717 * gnu/gcj/xlib/natXException.cc: New file.
3718 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3719 * gnu/gcj/xlib/natXImage.cc: New file.
3720 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3721 * java/awt/EventDispatchThread.java: Start thead on creation.
3723 2000-10-20 Tom Tromey <tromey@cygnus.com>
3725 From Arno J. Klaassen:
3726 * interpret.cc: Include <stdlib.h> for alloca.
3727 * defineclass.cc: Include <stdlib.h> for alloca.
3729 * Makefile.in: Rebuilt.
3730 * Makefile.am: Include deps.mk.
3731 (GCJCOMPILE): Added -MD, -MT, and -MF.
3732 ($(javao_files)): Don't depend on libgcj.zip.
3733 (all-recursive): New target.
3734 (%.lo:%.cc): Do dependency tracking.
3735 ($(nat_headers)): Don't depend on libgcj.zip.
3736 * configure: Rebuilt.
3737 * configure.in: Make .d files and deps.mk.
3739 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3741 * exception.cc: Don't #include "exception".
3742 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3744 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3745 * Makefile.in: Updated.
3747 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3749 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3750 * java/awt/peer/ComponentPeer.java (disable): Removed.
3753 (minimumSize): Removed.
3754 (preferredSize): Removed.
3757 * java/awt/peer/ListPeer.java (addItem): Removed.
3759 (minimumSize): Removed.
3760 (preferredSize): Removed.
3761 (setMultipleSelections): Removed.
3762 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3763 (remove): Renamed from removeMenu.
3764 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3766 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3767 (remove): Renamed from removeItem.
3768 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3769 (getMinimumSize): Removed.
3770 (getPreferredSize): Removed.
3771 (minimumSize): Removed.
3772 (preferredSize): Removed.
3773 (replaceText): Removed.
3774 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3775 (preferredSize): Removed.
3776 (getMinimumSize): Removed.
3777 (getPreferredSize): Removed.
3778 (setEchoCharacter): Removed.
3780 2000-10-10 Warren Levy <warrenl@cygnus.com>
3782 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3783 * java/sql/Date.java (serialVersionUID): New field.
3784 * java/sql/Time.java (serialVersionUID): New field.
3785 * java/sql/Timestamp.java (serialVersionUID): New field.
3786 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3787 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3788 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3789 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3790 (readObject): New serialization method.
3791 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3792 (serialVersionOnStream): New field.
3793 (readObject): New serialization method.
3794 (getMonetaryDecimalSeparator): New method.
3795 (setMonetaryDecimalSeparator): New method.
3796 * java/text/NumberFormat.java (maxFractionDigits): New field.
3797 (maxIntegerDigits): New field.
3798 (minFractionDigits): New field.
3799 (minIntegerDigits): New field.
3800 (serialVersionOnStream): New field.
3801 (serialVersionUID): New field.
3802 (readObject): New serialization method.
3803 (writeObject): New serialization method.
3804 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3805 (serialVersionOnStream): New field.
3806 (serialVersionUID): New field.
3807 (readObject): New serialization method.
3809 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3811 * configure.in (GCJ): Avoid bogus error message when looking for
3812 (and not finding) gcj in the build tree.
3813 * configure: Rebuilt.
3815 2000-10-09 Tom Tromey <tromey@cygnus.com>
3817 * configure: Rebuilt.
3818 * configure.in: Include sys/types.h when checking for socklen_t.
3819 From Arno J. Klaassen.
3821 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3823 * include/jvm.h: Enable __builtin_expect().
3825 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3826 the main program. Fix for PR libgcj/341.
3828 2000-10-07 Tom Tromey <tromey@cygnus.com>
3830 * java/util/Properties.java: Merged with Classpath version.
3832 2000-10-05 Tom Tromey <tromey@cygnus.com>
3834 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3835 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3836 * java/lang/Class.h (Object): Added `class$' field.
3837 * java/lang/Object.h (Object): Added `class$' field.
3838 * defineclass.cc (ClassClass): Use `class$' form.
3839 (ClassObject): Likewise.
3840 * resolve.cc (ClassObject): Use `class$' form.
3841 (ObjectClass): Likewise.
3842 * interpret.cc (ClassError): Removed.
3843 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3845 (IntegerClass): Likewise.
3846 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3848 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3849 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3850 SerializableClass): Likewise.
3851 Include Serializable.h, Cloneable.h.
3852 * java/lang/natSystem.cc (SystemClass): Removed.
3853 (init_properties): Use `class$' form.
3854 * java/lang/natObject.cc (CloneableClass): Removed.
3855 (clone): Use `class$' form.
3856 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3857 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3858 ConstructorClass): Likewise.
3859 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3860 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3861 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3862 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3864 (ClassClass): Likewise.
3865 * include/jvm.h (StringClass): Use `class$' form.
3866 * prims.cc (ObjectClass): Removed.
3867 (_Jv_RunMain): Use `class$' form.
3868 (_Jv_AllocObject): Likewise.
3869 * jni.cc (ClassClass): Use `class$' form.
3870 (ThrowableClass): Likewise.
3871 (ObjectClass): Likewise.
3872 (MethodClass): Likewise.
3873 (ThreadGroupClass): Likewise.
3874 (NativeThreadClass): Likewise.
3875 * boehm.cc (ObjectClass): Removed.
3876 (ClassClass): Removed.
3877 (_Jv_MarkObj): Use `class$' form.
3878 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3881 2000-10-05 Warren Levy <warrenl@cygnus.com>
3883 * Makefile.am: Removed java/io/Replaceable.java and
3884 java/io/Resolvable.java.
3885 * Makefile.in: Rebuilt.
3886 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3888 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3890 (processResolution): Handle readResolve method via reflection with
3891 removal of Resolvable interface.
3892 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3893 method via reflection with removal of Replaceable interface.
3894 * java/io/Replaceable.java: Removed.
3895 * java/io/Resolvable.java: Removed.
3896 * java/security/Key.java (serialVersionUID): New field.
3897 * java/security/Provider.java (serialVersionUID): New field.
3898 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3900 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3902 * java/sql/DataTruncation.java (serialVersionUID): New field.
3903 * java/sql/SQLException.java (serialVersionUID): New field.
3904 * java/sql/SQLWarning.java (serialVersionUID): New field.
3905 * java/util/Date.java (serialVersionUID): New field.
3906 (millis): Made transient.
3907 (readObject): New method.
3908 (writeObject): New method.
3910 2000-10-05 Tom Tromey <tromey@cygnus.com>
3912 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3914 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3916 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3917 (JvRunMain): Set _Jv_argv and _Jv_argc.
3918 * java/awt/Component.java: Minor fixes.
3919 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3920 * java/awt/Toolkit.java (systemEventQueue): Removed.
3921 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3922 * java/awt/Window.java (getToolkit): Don't call super.
3923 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3924 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3925 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3926 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3927 * gnu/awt/gtk/GtkFramePeer.java: New file.
3928 * gnu/awt/gtk/GtkMainThread.java: New file.
3929 * gnu/awt/gtk/GtkToolkit.java: New file.
3930 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3931 * gnu/awt/gtk/gtkcommon.cc: New file.
3932 * gnu/awt/gtk/gtkcommon.h: New file.
3933 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3934 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3935 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3936 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3937 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3938 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3940 2000-09-30 Tom Tromey <tromey@cygnus.com>
3942 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3943 interrupted before modifying the cv's wait set.
3946 2000-09-30 Hans Boehm <boehm@acm.org>
3947 Bryce McKinlay <bryce@albatross.co.nz>
3949 Implement bitmap descriptor based marking for Boehm GC.
3951 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3952 * configure: Rebuilt.
3953 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3954 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3955 method get_finalizer().
3956 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3957 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3958 (_Jv_AllocObj): Add new jclass parameter.
3959 (_Jv_AllocArray): Ditto.
3960 (_Jv_BuildGCDescr): New prototype.
3961 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3962 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3963 get_finalizer() instead of direct finalizer vtable offset.
3964 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3965 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3966 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3967 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3968 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3969 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3970 (_Jv_DetermineVTableIndex): Ditto.
3971 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3972 calculations to account for new gc_descr field.
3973 * boehm.cc: #include gc_gcj.h.
3974 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3975 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3976 New commentary from HB. Mark the classes vtable.
3977 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3978 (GC_DEFAULT_DESCR): New #define.
3979 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3980 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3981 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3982 scan conservativly if size is less than min_heap_addr. Set vtable
3983 pointer of new object before returning.
3984 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3985 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3986 allocation for obj_kind_x.
3987 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3988 (_Jv_AllocObj): Set vtable on returned object.
3989 (_Jv_AllocArray): Ditto.
3990 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3991 (_Jv_NewPrimArray): Ditto.
3992 (_Jv_AllocObj): Declare as a friend.
3993 (_Jv_AllocArray): Ditto.
3994 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3995 from &ObjectClass into new array class. Remove offset-by-one
3996 adjustments from `method' size calculations to account for gc_descr
3999 2000-09-26 Tom Tromey <tromey@cygnus.com>
4001 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4002 `remove', not `add'.
4004 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4006 * java/lang/natSystem.cc (file_encoding): Added return statement.
4008 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4010 * Makefile.am: Re-work shell commands that exceeded command-line
4012 * Makefile.in: Rebuilt.
4014 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4016 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4017 * java/lang/natDouble.cc: Likewise.
4018 * java/lang/reflect/natMethod.cc: Likewise.
4019 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4021 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4023 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4025 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4026 * acinclude.m4: Arrange for automake to not bring in a new
4027 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4028 * Makefile.am: Leave it up to automake to subst GCJ.
4029 * aclocal.m4, configure, Makefile.in: Rebuilt.
4031 2000-09-13 Tom Tromey <tromey@cygnus.com>
4033 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4034 (get): Ensure Boolean class is initialized.
4035 * java/lang/reflect/natField.cc (BooleanClass): New define.
4036 (get): Ensure Boolean class is initialized.
4038 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4040 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4041 Initialize with anonymous class.
4042 (compareToIgnoreCase): New method.
4044 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4045 (uncaughtException): Set had_uncaught_exception.
4046 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4047 exit with error status if set.
4048 (_Jv_RunMain): Ditto.
4050 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4052 * configure: Rebuilt with new ../libtool.m4.
4054 2000-09-11 Tom Tromey <tromey@cygnus.com>
4056 * java/lang/reflect/Field.java (toString): Don't rely on
4059 2000-09-08 Tom Tromey <tromey@cygnus.com>
4061 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4062 default decoder use iconv.
4063 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4064 Let default encoder use iconv.
4065 * configure: Rebuilt.
4066 * configure.in: Check for nl_langinfo and <langinfo.h>.
4067 * java/lang/natSystem.cc (file_encoding): New function.
4068 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4070 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4072 * acinclude.m4: Simplify the tests for CC and CXX.
4073 * aclocal.m4, configure: Rebuilt.
4075 * acinclude.m4: Include libtool macros from the source tree.
4076 * aclocal.m4, configure: Rebuilt.
4078 2000-09-08 Warren Levy <warrenl@cygnus.com>
4080 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4081 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4082 * java/io/File.java (writeObject): Added.
4083 (readObject): Added.
4084 (serialVersionUID): Added.
4085 * java/io/ObjectOutputStream.java (writeObject): Initialized
4086 fieldsAlreadyWritten before recursion rather than after.
4087 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4088 * java/io/OptionalDataException.java (serialVersionUID): Added.
4089 (OptionalDataException): Made package private.
4090 * java/io/SyncFailedException.java (SyncFailedException): Removed
4091 default constructor to match spec.
4092 * java/lang/Boolean.java (serialVersionUID): Added.
4093 * java/lang/Byte.java (serialVersionUID): Added.
4094 * java/lang/Character.java (serialVersionUID): Added.
4095 * java/lang/Double.java (serialVersionUID): Added.
4096 * java/lang/Float.java (serialVersionUID): Added.
4097 * java/lang/Integer.java (serialVersionUID): Added.
4098 * java/lang/Long.java (serialVersionUID): Added.
4099 * java/lang/Number.java (serialVersionUID): Added.
4100 * java/lang/Short.java (serialVersionUID): Added.
4101 * java/lang/String.java (serialVersionUID): Added.
4102 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4104 * java/lang/reflect/InvocationTargetException.java
4105 (serialVersionUID): Added.
4106 * java/net/URL.java (handler): Made transient.
4107 (hashCode): Added field for serialization, per spec. and use
4108 cached value if available.
4109 (serialVersionUID): Added.
4110 (URL): Initialize hashCode.
4111 (set): Adjust hashCode.
4112 (readObject): New Method to initialize the protocol handler when
4114 (writeObject): New method.
4115 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4116 * java/text/Collator.java: Removed 'implements Serializable'.
4117 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4118 * java/util/Properties.java (serialVersionUID): Added.
4119 * java/util/Random.java (serialVersionUID): Added.
4120 (seed): Made private.
4121 (nextNextGaussian): Made private.
4122 (haveNextNextGaussian): Made private.
4123 * java/util/Stack.java (serialVersionUID): Added.
4124 * java/util/TimeZone.java (serialVersionUID): Added.
4125 * java/util/Vector.java (serialVersionUID): Added.
4127 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4129 * Makefile.am (Thread.h): Don't be friends with native threads
4131 * Makefile.in: Rebuilt.
4132 * java/lang/Thread.java (interrupt_flag): Make package-private.
4134 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4136 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4137 to avoid long long division.
4139 2000-09-06 Tom Tromey <tromey@cygnus.com>
4141 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4143 * java/lang/reflect/Method.java (toString): Use `getName' for
4146 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4147 `args' if method takes no parameters.
4149 Fix for PR java.lang/339:
4150 * java/lang/natPosixProcess.cc (fail): New function.
4151 (cleanup): New function.
4152 (startProcess): Use them. Create pipe so child can communicate
4153 exec failure back to parent.
4155 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4157 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4159 (send): Undo last patch. Remove the label only.
4161 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4163 * java/net/natInetAdress.cc: Ditto.
4165 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4167 2000-09-05 Tom Tromey <tromey@cygnus.com>
4169 * doc/cni.sgml: Updated from master copy.
4171 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4173 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4175 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4177 * java/lang/fdlibm.h: #undef __P if previously defined.
4178 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4179 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4183 2000-09-04 Tom Tromey <tromey@cygnus.com>
4185 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4188 2000-09-04 Anthony Green <green@redhat.com>
4190 Fix for PR java.io/203:
4191 * java/io/File.java (createTempFile): Obey directory argument.
4192 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4193 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4194 variable to set java.io.tmpdir on non-WIN32 systems.
4196 2000-09-04 Anthony Green <green@redhat.com>
4198 * java/io/File.java (deleteOnExit): New method.
4199 * gnu/gcj/runtime/FileDeleter.java: New class.
4200 * java/lang/natRuntime.cc (exit): Call
4201 FileDeleter.deleteOnExitNow()
4202 * Makefile.am: Add FileDeleter.java.
4203 * Makefile.in: Rebuilt.
4205 2000-09-02 Tom Tromey <tromey@cygnus.com>
4207 * Makefile.in: Rebuilt.
4208 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4209 environment variable.
4211 2000-09-01 Andrew Haley <aph@redhat.com>
4213 * java/io/StreamTokenizer.java: Don't throw a
4214 NumberFormatException if a field is numeric as far as the
4215 StreamTokenizer is concerned but not as far as Double.valueOf() is
4216 concerned: return a zero instead.
4218 2000-08-30 Tom Tromey <tromey@cygnus.com>
4220 * Makefile.in: Rebuilt.
4221 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4223 2000-08-28 Tom Tromey <tromey@cygnus.com>
4225 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4226 gnu/gcj/awt/ComponentDataBlitOp.java,
4227 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4228 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4229 java/awt/color/ICC_ColorSpace.java,
4230 java/awt/color/ICC_Profile.java,
4231 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4232 java/awt/image/ComponentColorModel.java,
4233 java/awt/image/ComponentSampleModel.java,
4234 java/awt/image/DataBuffer.java,
4235 java/awt/image/DataBufferByte.java,
4236 java/awt/image/DataBufferInt.java,
4237 java/awt/image/DataBufferUShort.java,
4238 java/awt/image/DirectColorModel.java,
4239 java/awt/image/IndexColorModel.java,
4240 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4241 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4242 java/awt/image/SinglePixelPackedSampleModel.java,
4243 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4244 Removed Latin-1 copyright symbols.
4245 * java/util/zip/ZipFile.java: Indentation fixes.
4247 2000-08-27 Mark Wielaard <mark@klomp.org>
4249 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4250 constructor, close can delete the file, finalize calls close.
4251 * java/util/jar/JarFile.java: Constructor that takes mode now
4254 2000-08-27 Anthony Green <green@redhat.com>
4256 * java/util/ArrayList.java, java/util/Timer.java,
4257 java/util/LinkedList.java, java/util/TimerTask.java,
4258 java/util/HashMap.java, java/util/AbstractMap.java,
4259 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4260 java/util/SortedSet.java: Imported from GNU Classpath.
4261 * Makefile.in: Rebuilt.
4262 * Makefile.am: Added new files.
4264 2000-08-26 Anthony Green <green@redhat.com>
4266 * Makefile.in: Rebuilt.
4267 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4270 * prims.cc: Include ClassLoader.h.
4271 (_Jv_RunMain): When executing jar files, classpath must be the jar
4272 file only. Lose our reference to the system ClassLoader in order
4273 to get a new one with the correct classpath.
4274 * java/lang/natSystem.cc (init_properties): When executing a jar
4275 file, only use the jar file for java.class.path.
4277 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4278 for bytecode archives.
4280 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4281 exists, but not Main-Class.
4283 2000-08-23 Mark Wielaard <mark@klomp.org>
4285 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4286 return -1 when fill() has no more data for the Inflater.
4288 2000-08-23 Mark Wielaard <mark@klomp.org>
4290 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4291 write(String) already does.
4293 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4295 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4296 to `alive_flag', call `init'.
4297 (init): New native method.
4298 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4301 2000-08-21 Mark Wielaard <mark@klomp.org>
4303 * Makefile.in: Rebuilt.
4304 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4306 (java/lang/reflect/Field.h): Likewise.
4307 (java/lang/reflect/Method.h): Likewise.
4308 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4311 2000-08-21 Tom Tromey <tromey@cygnus.com>
4313 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4316 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4318 * java/lang/natSystem.cc (init_properties): Change sourceware
4319 reference to sources.redhat.com.
4321 * include/java-props.h: Add _Jv_Jar_Class_Path.
4322 * prims.cc: Ditto. Set it from `gij -jar file' option.
4324 * java/lang/natSystem.cc (init_properties): Set java.class.path
4326 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4328 * java/util/PropertyPermission.java: Import from GNU Classpath.
4329 * Makefile.in: Rebuilt.
4330 * Makefile.am: Add java/util/PropertyPermission.java.
4331 * java/lang/System.java: Add setProperty method.
4333 * gij.cc (main): Add -jar option to execute jar files.
4334 (help): Describe -jar option.
4335 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4336 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4337 * gnu/gcj/runtime/FirstThread.java (main): New method.
4339 * java/util/jar/Attributes.java: Correct comment spelling.
4341 2000-08-20 Mark Wielaard <mark@klomp.org>
4343 * java/util/zip/Adler32.java: Make private variables really private
4344 * java/util/zip/CRC32.java: Make private variables really private
4345 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4347 * java/util/zip/InflaterInputStream.java: skip() could skip to
4349 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4350 * java/util/zip/ZipFile.java: size() new 1.2 method
4351 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4352 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4355 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4357 * java/util/jar/JarFile.java: Don't call
4358 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4361 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4363 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4364 Read the entire contents of the class file, not just what is
4367 * java/net/JarURLConnection.java: getEntry doesn't take any
4368 arguments. Return null if element is null.
4370 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4371 size from the archive, not the inflated size.
4373 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4374 java.util.zip.ZipFile.getEntry.
4376 * gij.cc (help): Change sourceware reference to
4379 2000-08-19 Tom Tromey <tromey@cygnus.com>
4381 * java/util/zip/ZipInputStream.java (createZipEntry):
4384 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4386 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4387 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4388 java/util/jar/JarInputStream.java,
4389 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4390 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4391 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4392 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4393 java/security/cert/Certificate.java,
4394 java/security/cert/CertificateEncodingException.java,
4395 java/security/cert/CertificateException.java,
4396 java/security/cert/CertificateExpiredException.java,
4397 java/security/cert/CertificateFactory.java,
4398 java/security/cert/CertificateFactorySpi.java,
4399 java/security/cert/CertificateNotYetValidException.java,
4400 java/security/cert/CertificateParsingException.java,
4401 java/security/cert/X509CRL.java,
4402 java/security/cert/X509CRLEntry.java,
4403 java/security/cert/X509Certificate.java,
4404 java/security/cert/X509Extension.java: Imported from Classpath.
4405 * java/util/Hashtable.java: Imported from Classpath.
4407 * java/util/zip/ZipInputStream.java: Create stub for
4410 * gcj/javaprims.h: Updated class list.
4412 * Makefile.in, gcj/Makefile.in: Rebuilt.
4413 * Makefile.am (ordinary_java_source_files): Add these new classes.
4415 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4417 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4418 * gnu/gcj/awt/GLightweightPeer.java: New file.
4419 * java/awt/BorderLayout.java: Implemented all methods.
4420 * java/awt/Button.java (actionListener, actionCommand): Renamed
4421 and modifier change.
4422 (addNotify): Call super.
4423 (dispatchEventImpl): New method.
4424 (getListeners): New method.
4425 (label): Made package-private, not private.
4426 * java/awt/Canvas.java: Implemented class body.
4427 * java/awt/Color.java (brighter): New method.
4428 (darker): New method.
4429 (hashCode): New method.
4430 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4431 (getGraphicsConfiguration): Delegate to
4432 getGraphicsConfigurationImpl().
4433 (getGraphicsConfigurationImpl): New method.
4434 (getToolkit): Only return value from peer if not null.
4435 (isDisplayable): Check with parent.
4436 (isShowing): No parent implies not showing.
4437 (getForeground): Check parent property if local is null.
4438 (getBackground): Likewise.
4439 (getFont): Likewise.
4440 (setForeground): Inform peer.
4441 (setBackground): Likewise
4442 (setLocale): Invalidate component.
4443 (getColorModel): Implemented.
4444 (setLocation): Invalidate, or ignore if no change.
4445 (setSize): Invalidate, or ignore if no change.
4446 (setBounds): Invalidate, or ignore if no change.
4447 (isOpaque): By default, heavyweight implies opaque.
4448 (isLightweight): Implemented.
4449 (getMaximumSize): Implemented.
4450 (doLayout): Implemented, NOP.
4451 (validate): Implemented, NOP.
4452 (invalidate): Only propagate to parent if parent was valid.
4453 (getGraphics): Implemented.
4454 (getFontMetrics): Implemented.
4455 (update): Implemented.
4456 (paintAll): Implemented.
4457 (repaint): Implemented all repaint methods.
4458 (print): Implemented.
4459 (printAll): Implemented.
4460 (createImage): Implemented.
4461 (dispatchEvent): Give the peer a chance to handle the event.
4462 (dispatchEventImpl): Dispatch paint events.
4463 (enableEvents): Lightweights enable events on parent component.
4464 (coalesceEvents): Coalesce paint events, and select event type
4466 (coalescePaintEvents): New method.
4467 (processEvent): Fix unfortunate ordering of statements, and call
4468 correct method for MOUSE_CLICKED.
4469 (processPaintEvent): New method.
4470 (addNotify): Allow container to notify children before event
4471 mask is set in peer.
4472 (addNotifyContainerChildren): New method.
4473 (removeNotify): Visibility should not change on removeNotify.
4474 (paramString): Implemented.
4475 (list): Implemented two of the list methods.
4476 * Container (myInsets): Removed, insets are managed by peer.
4477 (getInsets): Query peer.
4478 (addImpl): Fix reparenting, enable events for lightweights,
4479 initialize component array.
4480 (validate): Call doLayout in validateTree() instead.
4481 (validateTree): Do nothing if already valid. Call beginValidate(),
4482 endValidate() on peer. Call validateTree() instead of validate()
4483 for children that are containers. Mark valid after validation of
4485 (setFont): Partial implementation.
4486 (paint): Implemented.
4487 (visitChildren): New method.
4488 (visitChild): New method.
4489 (update): Implemented.
4490 (print): Implemented.
4491 (paintComponents): Implemented.
4492 (printComponents): Consider translation and clipping.
4493 (getComponentAt): Ignore invisible children. Return this if no
4495 (addNotify): Call super.
4496 (addNotifyContainerChildren): New method.
4497 (paramString): Implemented.
4498 (list): Implemented.
4499 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4501 (invokeLater): Likewise.
4502 (isDispatchThread): Likewise.
4503 * java/awt/FontMetrics (getLeading): Formula change.
4504 (getDescent): Consider leading also.
4505 (getMaxAscent): Default to getAscent().
4506 (getMaxDescent): Default to getDescent.
4507 (getMaxAdvance): Return value signifying unknown.
4508 (charWidth): Both methods implemented.
4509 (charsWidth): Implemented.
4510 (bytesWidth): Implemented.
4511 (getWidths): Implemented.
4512 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4514 (Frame): Rearragend constuctor chaining to disallow null being
4515 passed as a graphics configuration.
4516 (getTitle): Return empty string if null.
4518 (getIconImage): New method.
4519 (setIconImage): New method.
4520 (finalize): New method.
4521 (setMenuBar): Notify peer.
4522 (isResizable): New method.
4523 (setResizable): New method.
4524 (getState): New method.
4526 (remove): Implemented.
4527 (removeNotify): New method.
4528 (getFrames): New method.
4529 * java/awt/Graphics.java: Implemented body of class.
4530 * java/awt/Graphics2D.java: New file.
4531 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4532 * java/awt/Image.java: Implemented body of class.
4533 * java/awt/Panel.java (Panel): Call correct super constructor.
4534 (addNotify): Implemented.
4535 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4536 * java/awt/RenderingHints.java: New file.
4537 * java/awt/Toolkit.java (createComponent): Implemented.
4538 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4539 * java/awt/Window.java (Window): Two new constructors. Reordered
4540 constructor chaining.
4541 (getGraphicsConfigurationImpl): New method.
4542 (finalize): Call super.
4543 (addNotify): Call super.
4544 (pack): Do layout stuff.
4545 (show): Ensure that peer exists and that component is valid.
4546 (dispose): Dispose owned children.
4547 (getOwner): Simplify code, casting null pointers is valid.
4548 (getGraphicsConfiguration): Ask peer if local value is null.
4549 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4551 * java/awt/image/BufferedImage.java: New file.
4552 * java/awt/image/RasterOp.java: New file.
4553 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4554 More powerfull replacement for getColorModel().
4555 (getColorModel) Removed.
4556 (setEventMask) New method.
4557 * Makefile.am: Added new files.
4558 * Makefile.in: Rebuilt.
4560 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4562 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4563 (finit_leg_name): New global.
4564 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4565 `$finit$'. This is a backward compatibility hack.
4566 (java::lang::Class::_getMethods): Likewise.
4568 2000-08-15 Andrew Haley <aph@cygnus.com>
4570 * include/jvm.h (_Jv_HashCode): New hash code.
4572 2000-08-15 Tom Tromey <tromey@cygnus.com>
4574 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4576 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4578 * THANKS: More thanks.
4580 2000-08-10 Tom Tromey <tromey@cygnus.com>
4582 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4584 (connect): Likewise.
4586 (getOption): Likewise.
4587 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4588 case when errno not set.
4591 (receive): Likewise.
4592 (mcastGrp): Likewise.
4593 (setOption): Likewise.
4594 (getOption): Likewise.
4596 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4597 John Stracke <francis@ecal.com>
4599 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4600 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4602 (disconnect): Don't unset connected flag.
4603 (getHeaderField (String)): Call connect() if not connected.
4604 (getHeaderField (int)): Ditto.
4605 (getHeaderFieldKey): Ditto.
4606 (getHttpHeaders): Don't call connect().
4607 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4608 gotResponseVals): New fields.
4609 (getResponseCode): Call getResponseVals() conditionally.
4610 (getResponseMessage): Ditto.
4611 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4613 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4615 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4616 * Makefile.in: Rebuilt.
4617 * java/awt/Color.java (getTransparency): New method.
4618 * java/awt/Component.java: Various updates.
4619 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4620 after dealing with children.
4621 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4622 * java/awt/Window.java: Various new methods and updates.
4623 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4625 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4626 * java/awt/event/WindowEvent.java (paramString): Ditto.
4627 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4629 * java/awt/geom/Point2D.java (clone): Ditto.
4630 * java/awt/geom/RectangularShape.java (clone): Ditto.
4631 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4632 isAlphaPremultiplied): Make package-private, not private.
4634 2000-08-08 Tom Tromey <tromey@cygnus.com>
4636 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4637 surrogate characters.
4638 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4640 (write): Correct handling of surrogate characters.
4642 2000-08-07 Tom Tromey <tromey@cygnus.com>
4644 * java/lang/reflect/Method.java (hashCode): Use getName().
4645 (toString): Likewise.
4646 * java/lang/reflect/natMethod.cc (getType): Initialize
4649 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4651 * java/lang/reflect/Field.java (toString): Correct formatting.
4654 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4656 (receive): Streamlined.
4658 2000-08-05 Tom Tromey <tromey@cygnus.com>
4660 * java/io/PrintWriter.java: Merged comments from Classpath.
4661 (printlnUnsynchronized): Removed.
4662 (println()): Print the separator.
4663 (println): Call println(), not printlnUnsynchronized.
4664 (out): Now protected, to match spec.
4666 2000-08-04 Tom Tromey <tromey@cygnus.com>
4668 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4669 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4672 2000-08-03 Warren Levy <warrenl@cygnus.com>
4674 * java/io/ObjectInputStream.java (readFields): Turn off
4675 readDataFromBlock while reading via GetField.
4676 (GetField$1.get(String, Object)): Pass Class of default value to
4678 (getField): Allow for null default values.
4680 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4681 (PutField$1.put): Fixed calls of checkType in most of the put
4682 methods to pass the correct parameter.
4683 (PutField$1.put(String, Object)): Allow for null value arg.
4684 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4687 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4688 typo in spec'ed field name.
4689 (getSerialPersistentFields): Changed spelling of method to match
4690 the correct spelling of the spec'ed field name.
4692 2000-08-03 Tom Tromey <tromey@cygnus.com>
4694 * Makefile.in: Rebuilt.
4695 * Makefile.am (awt_java_source_files): Added new files.
4697 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4699 * Makefile.am: Add new AWT stubs.
4700 * java/awt/Canvas.java: New placeholder class.
4701 * java/awt/Checkbox.java: Ditto.
4702 * java/awt/CheckboxMenuItem.java: Ditto.
4703 * java/awt/Choice.java: Ditto.
4704 * java/awt/Dialog.java: Ditto.
4705 * java/awt/FileDialog.java: Ditto.
4706 * java/awt/List.java: Ditto.
4707 * java/awt/ScrollPane.java: Ditto.
4708 * java/awt/TextField.java: Ditto.
4709 * java/awt/datatransfer/Clipboard.java: Ditto.
4710 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4711 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4712 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4713 Some commented out. Partially implemented.
4714 * java/awt/natToolkit.cc: Removed file.
4716 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4718 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4719 Fixes "make -j" builds.
4720 * Makefile.in: Rebuild.
4722 2000-08-02 Tom Tromey <tromey@cygnus.com>
4724 * Makefile.in: Rebuilt.
4725 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4726 * java/net/natPlainSocketImpl.cc: Include posix.h.
4727 (accept): Use _Jv_select.
4728 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4729 (receive): Use _Jv_select.
4730 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4731 (available): Use _Jv_select.
4732 * java/lang/natSystem.cc: Include posix.h.
4733 (currentTimeMillis): Use _Jv_gettimeofday.
4734 * include/posix.h: New file.
4735 * posix.cc: New file.
4737 * scripts/encodings.pl: New file.
4738 * Makefile.in: Rebuilt.
4739 * Makefile.am (convert_source_files): Added IOConverter.java.
4740 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4742 (getDefaultDecodingClass): Canonicalize default encoding name.
4743 (getEncoder): Likewise.
4744 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4746 (getDefaultDecodingClass): Canonicalize default encoding name.
4747 (getDecoder): Likewise.
4748 * gnu/gcj/convert/IOConverter.java: New file.
4750 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4752 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4753 to match C declaration in ffi.h.
4754 * Makefile.am: Add java/awt/Button.java.
4755 * Makefile.in: Rebuilt.
4757 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4759 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4760 cast of the second argument to `ffi_raw_call' changed to match
4763 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4765 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4766 argument to `ffi_raw_call' changed to match prototype.
4768 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4770 * java/awt/Component.java (toString): Implemented.
4771 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4772 dispatchEvent() to dispatch the event.
4773 (removeImpl): Ditto.
4775 2000-07-30 Anthony Green <green@redhat.com>
4777 * java/awt/Component.java: Add treeLock object.
4778 (getTreeLock): Implement.
4779 (isShowing): Implement.
4781 2000-07-30 Tom Tromey <tromey@cygnus.com>
4783 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4785 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4787 * java/awt/Window.java (addNotify): Wrote.
4788 (addWindowListener): Wrote.
4790 (getWarningString): Wrote.
4791 (processEvent): Wrote.
4792 (processWindowEvent): Wrote.
4793 (removeWindowListener): Wrote.
4794 (show): Call validate(), setVisible().
4798 * java/awt/Toolkit.java (createWindow): Declare.
4800 * java/awt/Frame.java (addNotify): Use getToolkit to find
4803 * java/awt/Component.java (invalidate): Wrote.
4805 (getToolkit): Wrote.
4807 * java/awt/Container.java (addContainerListener): Removed
4809 (removeContainerListener): Likewise.
4811 (add(Component)): Use it.
4812 (add(String,Component)): Likewise.
4813 (add(Component,int)): Likewise.
4814 (add(Component,Object)): Likewise.
4815 (add(Component,Object,int)): Likewise.
4817 (getAlignmentX): Wrote.
4818 (getAlignmentY): Wrote.
4819 (getComponentAt): Wrote.
4820 (getMaximumSize): Wrote.
4821 (invalidate): Wrote.
4822 (list(PrintStream,int)): Wrote.
4823 (list(PrintWriter,int)): Wrote.
4824 (getMinimumSize): Wrote.
4825 (getPreferredSize): Wrote.
4826 (printComponents): Wrote.
4827 (processContainerEvent): Look at containerListener, not
4829 (remove): Added event processing and peer destruction.
4830 (removeAll): Use remove.
4831 (removeNotify): Wrote.
4833 (validateTree): Wrote.
4835 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4836 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4837 * java/awt/Container.java (addNotify): Don't create Container
4839 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4841 2000-07-30 Tom Tromey <tromey@cygnus.com>
4843 * java/awt/Container.java (remove(int)): Wrote.
4844 (remove(Component)): Wrote.
4845 (add(Component)): Wrote.
4846 (add(Component,int)): Wrote.
4848 (addNotify): Set our own peer.
4849 * java/awt/Scrollbar.java (listeners): Changed type.
4850 (Scrollbar): Don't initialize listeners.
4852 (setValue): Call setValues.
4853 (setMinimum): Likewise.
4854 (setMaxPriority): Likewise.
4855 (setVisibleAmount): Likewise.
4857 (setUnitIncrement): Forward to peer.
4858 (setLineIncrement): Call setUnitIncrement.
4859 (setPageIncrement): Call setBlockIncrement.
4860 (setBlockIncrement): Forward to peer.
4861 (addAdjustmentListener): Rewrote.
4862 (removeAdjustmentListener): Rewrote.
4863 (processAdjustmentEvent): Rewrote.
4864 (paramString): Wrote.
4865 * Makefile.in: Rebuilt.
4866 * Makefile.am (awt_java_source_files): Added Button.java.
4867 * java/awt/Button.java: New file.
4868 * java/awt/Toolkit.java (createLabel): Declare.
4869 (createButton): Likewise.
4870 (createScrollbar): Likewise.
4871 (createContainer): Likewise.
4872 * java/awt/Label.java (addNotify): Wrote.
4873 (setAlignment): Call setAlignment in the peer.
4874 (setText): Call setText in the peer.
4876 2000-07-28 Warren Levy <warrenl@cygnus.com>
4878 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4879 NotSerializableException with just the class name.
4881 2000-07-26 Andrew Haley <aph@cygnus.com>
4883 * interpret.cc (continue1): Insert missing break into switch.
4885 2000-07-28 Warren Levy <warrenl@cygnus.com>
4887 * java/io/ObjectStreamException.java: Made constructors protected.
4889 2000-07-27 Tom Tromey <tromey@cygnus.com>
4891 * java/io/OutputStreamWriter.java (close): Only flush if not
4894 2000-07-27 Warren Levy <warrenl@cygnus.com>
4896 * mauve-libgcj: Activated serialization tests.
4897 * gcj/field.h (getModifiers): Mask off unknown flags.
4898 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4899 spurious bits don't cause discrepancies.
4900 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4901 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4902 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4903 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4904 * java/lang/Throwable.java (serialVersionUID): New field.
4905 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4906 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4908 * java/lang/reflect/natMethod.cc: Ditto.
4909 * java/security/Key.java (serialVersionUID): Removed field for now.
4910 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4911 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4913 2000-07-22 Tom Tromey <tromey@cygnus.com>
4915 * java/awt/geom/RectangularShape.java (getPathIterator):
4918 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4920 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4921 stub libjava/java/awt/ColorModel.java which was located in the
4923 * libjava/java/awt/image/ComponentColorModel.java: New file.
4924 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4925 * libjava/java/awt/image/DataBuffer.java: New file.
4926 * libjava/java/awt/image/DataBufferByte.java: New file.
4927 * libjava/java/awt/image/DataBufferInt.java: New file.
4928 * libjava/java/awt/image/DataBufferUShort.java: New file.
4929 * libjava/java/awt/image/DirectColorModel.java: New file.
4930 * libjava/java/awt/image/PackedColorModel.java: New file.
4931 * libjava/java/awt/image/Raster.java: New file.
4932 * libjava/java/awt/image/SampleModel.java: New file.
4933 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4935 * libjava/java/awt/image/IndexColorModel.java: New file.
4936 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4937 java.awt.ColorModel stub.
4939 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4940 * gnu/gcj/util/Buffers.java: New file, utility class.
4942 * libjava/Makefile.am: Updated to include new files.
4943 * libjava/Makefile.in: Rebuilt.
4945 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4947 * java/io/StreamTokenizer.java: Merged with classpath.
4949 2000-07-20 Tom Tromey <tromey@cygnus.com>
4951 * Makefile.in: Rebuilt.
4952 * Makefile.am (awt_java_source_files): Updated for new files.
4953 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4954 * java/awt/Label.java: New file.
4955 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4956 (createIntersection, createUnion, getBounds2D): New methods.
4957 * java/awt/Scrollbar.java: New file.
4958 * java/awt/Shape.java: Updated to 1.2.
4959 * java/awt/geom/AffineTransform.java: New file.
4960 * java/awt/geom/Ellipse2D.java: New file.
4961 * java/awt/geom/NoninvertibleTransformException.java: New file.
4962 * java/awt/geom/PathIterator.java: New file.
4963 * java/awt/geom/Rectangle2D.java: New file.
4964 * java/awt/geom/RectangularShape.java: New file.
4965 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4966 * java/awt/geom/IllegalPathStateException.java: New file.
4968 * scripts/showval.java: New file.
4970 * scripts/classes.pl (scan): Print inner classes properly.
4971 * gcj/javaprims.h: Updated class list.
4973 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4974 initialize String fields for interpreted classes. Fixes bug
4975 reported by Hans Boehm.
4977 * java/io/File.java (getParentFile): New method, from Classpath
4978 via Oskar Liljeblad.
4980 * java/util/Vector.java (remove(Object)): Implemented.
4982 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4984 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4985 zero return from backtrace().
4987 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4989 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4991 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4992 before calling notifyAll().
4994 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4996 Add missing files from last check-in:
4997 * java/awt/image/ImageConsumer.java: New file.
4998 * java/awt/image/ImageProducer.java: New file.
4999 * java/awt/image/ImageObserver.java: New file.
5001 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5003 Merged implementation of java.applet from classpath:
5004 * java/applet/Applet.java: New file.
5005 * java/applet/AppletContext.java: New file.
5006 * java/applet/AppletStub.java: New file.
5007 * java/applet/AudioClip.java: New file.
5009 * Makefile.am: Added new java.applet classes.
5010 * Makefile.in: Rebuilt.
5012 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5015 * java/util/ResourceBundle.java (getLocale): stub.
5016 * Makefile.am: Added new AWT classes.
5017 * Makefile.in: Rebuilt.
5018 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5019 constructors. Fix toString() and paramString().
5020 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5021 * java/awt/CheckboxGroup.java: New class.
5022 * java/awt/ColorModel.java: New class.
5023 * java/awt/Component.java: Added stubs for most methods. Implemented
5025 * java/awt/Container.java: ditto.
5026 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5027 * java/awt/Cursor.java: ditto.
5028 * java/awt/Event.java: Fix paramString().
5029 * java/awt/EventQueue.java: New class. Implemented.
5030 * java/awt/Font.java: Added additional stub methods. Implemented
5032 * java/awt/FontMetrics.java: New class. Stubbed.
5033 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5035 * java/awt/Insets.java: New class. Implemented.
5036 * java/awt/Menu.java: Add new methods. Partially implemented.
5037 * java/awt/MenuItem.java: Add new methods and fields. Partially
5039 * java/awt/MenuShortcut.java: New class. Implemented.
5040 * java/awt/Panel.java: New class. Placeholder.
5041 * java/awt/PopupMenu.java: New class. Stubbed.
5042 * java/awt/Rectangle.java: New class. Implemented.
5043 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5044 * java/awt/event/ActionEvent.java: Implement paramString().
5045 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5046 * java/awt/event/ComponentEvent.java: Implement paramString().
5047 * java/awt/event/ContainerEvent.java: Implement paramString().
5048 * java/awt/event/FocusEvent.java: Implement paramString().
5049 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5050 * java/awt/event/HierarchyBoundsListener.java: New class.
5051 * java/awt/event/HierarchyEvent.java: New class.
5052 * java/awt/event/HierarchyListener.java: New class.
5053 * java/awt/event/InputMethodEvent.java: Implement paramString().
5054 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5055 exception if !catchExceptions.
5056 * java/awt/event/ItemEvent.java: Implement paramString().
5057 * java/awt/event/KeyEvent.java: Implement paramString().
5058 * java/awt/event/MouseEvent.java: Implement paramString().
5059 * java/awt/event/PaintEvent.java: Implement paramString().
5060 * java/awt/event/TextEvent.java: Implement paramString().
5061 * java/awt/event/WindowEvent.java: Implement paramString().
5063 AWT Peer interfaces:
5064 * java/awt/peer/ButtonPeer.java: New file.
5065 * java/awt/peer/ListPeer.java: New file.
5066 * java/awt/peer/CanvasPeer.java: New file.
5067 * java/awt/peer/MenuBarPeer.java: New file.
5068 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5069 * java/awt/peer/MenuComponentPeer.java: New file.
5070 * java/awt/peer/CheckboxPeer.java: New file.
5071 * java/awt/peer/MenuItemPeer.java: New file.
5072 * java/awt/peer/ChoicePeer.java: New file.
5073 * java/awt/peer/MenuPeer.java: New file.
5074 * java/awt/peer/ComponentPeer.java: Implemented.
5075 * java/awt/peer/PanelPeer.java: New file.
5076 * java/awt/peer/ContainerPeer.java: Implemented.
5077 * java/awt/peer/PopupMenuPeer.java: New file.
5078 * java/awt/peer/DialogPeer.java: New file.
5079 * java/awt/peer/ScrollPanePeer.java: New file.
5080 * java/awt/peer/FileDialogPeer.java: New file.
5081 * java/awt/peer/ScrollbarPeer.java: New file.
5082 * java/awt/peer/FontPeer.java: New file.
5083 * java/awt/peer/TextAreaPeer.java: New file.
5084 * java/awt/peer/FramePeer.java: Implemented.
5085 * java/awt/peer/TextComponentPeer.java: New file.
5086 * java/awt/peer/LabelPeer.java: New file.
5087 * java/awt/peer/TextFieldPeer.java: New file.
5088 * java/awt/peer/LightweightPeer.java: New file.
5089 * java/awt/peer/WindowPeer.java: Implemented.
5091 2000-07-06 Tom Tromey <tromey@cygnus.com>
5093 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5094 Initialize static final String fields.
5096 2000-07-03 Tom Tromey <tromey@cygnus.com>
5098 * java/io/PrintWriter.java (print): Call write(String), not
5099 print(String). See PR libgcj/277.
5100 (print(String)): Use write, not out.write.
5102 2000-06-30 Tom Tromey <tromey@cygnus.com>
5104 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5106 2000-06-27 Andrew Haley <aph@cygnus.com>
5108 * java/io/File.java (createTempFile): Close the FileDescriptor
5109 used to create a temp file. Fixes some of PR 203.
5110 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5111 collection if we run out of file handles.
5113 2000-06-28 Warren Levy <warrenl@cygnus.com>
5115 * gnu/java/security/provider/Gnu.java: New file.
5116 * gnu/java/security/provider/SHA.java: New file.
5117 * gnu/java/security/provider/SHA1PRNG.java: New file.
5118 * Makefile.am: Added the above files.
5119 * Makefile.in: Rebuilt.
5121 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5123 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5125 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5126 (destroyed_flag): Removed.
5127 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5128 (activeCount): Added spec note.
5130 2000-06-27 Warren Levy <warrenl@cygnus.com>
5132 * java/security/Principal.java: New file.
5133 * Makefile.am: Added Principal.java.
5134 * Makefile.in: Rebuilt.
5136 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5138 * java/awt/event/MouseEvent.java: Fixed coordinate space
5141 2000-06-27 Tom Tromey <tromey@cygnus.com>
5143 * java/io/PushbackInputStream.java (read): If there are characters
5144 in the buffer, don't also call super.read().
5145 * java/io/PushbackReader.java (read): If there are characters in
5146 the buffer, don't also call super.read().
5148 * java/lang/Double.java (valueOf): Call parseDouble().
5150 2000-06-26 Warren Levy <warrenl@cygnus.com>
5152 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5153 (newVal): Renamed to newValue.
5154 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5155 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5156 (revokeNow): Renamed to invalidateRefs.
5157 * java/io/OptionalDataException.java: Updated FIXME.
5158 (eof): New placeholder field.
5160 * java/io/WriteAbortedException.java (message): Made transient.
5161 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5162 * java/lang/Throwable.java (stackTrace): Made transient.
5163 * java/net/InetAddress.java: Made Serializable.
5164 * java/security/KeyPair.java: Made Serializable.
5165 * java/security/Provider.java: Replaced with Classpath version that
5166 implements serialization and proper methods.
5167 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5168 (limits): Renamed to choiceLimits.
5170 2000-06-24 Tom Tromey <tromey@cygnus.com>
5172 * java/lang/natDouble.cc (parseDouble): Renamed from
5174 * java/lang/Double.java (parseDouble): Renamed from
5175 doubleValueOf. Now public.
5177 2000-06-23 Andrew Haley <aph@cygnus.com>
5179 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5180 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5182 2000-06-23 Tom Tromey <tromey@cygnus.com>
5184 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5185 * java/lang/natDouble.cc: Always include <alloca.h>.
5186 Fix for PR libgcj/267.
5188 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5190 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5191 comply with classpath VM spec.
5192 (add(Group)): Rename to addGroup().
5193 * java/lang/Thread.java (Thread): Use addThread().
5194 * java/lang/natThread.cc (finish_): Use removeThread().
5196 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5198 * java/lang/ThreadGroup.java: Merged with classpath.
5199 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5200 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5202 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5203 ThreadGroup.root if Thread.currentThread is null. Honour the
5204 ThreadGroup's max priority setting.
5206 2000-06-18 Tom Tromey <tromey@cygnus.com>
5208 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5209 returned class. For PR gcj/260.
5211 2000-06-16 Tom Tromey <tromey@cygnus.com>
5213 Fix for PR libgcj/261:
5214 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5216 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5217 argument. (This is a patch from long ago that somehow went
5220 2000-06-15 Tom Tromey <tromey@cygnus.com>
5222 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5226 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5228 Fix for PR java.lang/258:
5229 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5230 JV_STATE_DONE, to prevent accidental initialization.
5231 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5232 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5233 interface or an abstract class. Remove redundant initializeClass calls.
5234 Remove duplicate if_idt test.
5235 (_Jv_InterfaceAssignableFrom): New function.
5236 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5238 2000-05-31 Tom Tromey <tromey@cygnus.com>
5240 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5241 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5242 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5243 (NUM_OBJECT_METHODS): New define.
5244 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5245 `array_vtable' parameter. Added assertion.
5246 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5249 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5251 * gcj/cni.h: Include <string.h>.
5252 * defineclass.cc: Include <alloca.h>.
5253 * interpret.cc: Ditto.
5254 * gij.cc: Include <stdlib.h>.
5256 2000-05-30 Tom Tromey <tromey@cygnus.com>
5258 * include/name-finder.h: Include <sys/wait.h>.
5259 (_Jv_name_finder::pid): Now of type `pid_t'.
5260 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5261 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5264 2000-05-24 Warren Levy <warrenl@cygnus.com>
5266 * java/io/ObjectOutputStream.java (writeObject): Use component type
5267 when writing arrays.
5270 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5272 Fix for PR libgcj/226:
5273 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5274 since this is an installed header.
5276 Fix for PR libgcj/228:
5277 * java/util/zip/ZipFile (getInputStream): Create inflater with
5280 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5281 with DataFormatException.
5283 2000-05-20 Tom Tromey <tromey@cygnus.com>
5285 * Makefile.in: Rebuilt.
5286 * Makefile.am (hack1): Removed.
5287 (awto_files): Likewise.
5288 (libgcjawt_la_SOURCES): Likewise.
5289 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5290 (libgcjawt_la_DEPENDENCIES): Likewise.
5291 (libgcjawt_la_LIBADD): Likewise.
5292 (libgcjawt_la_LDFLAGS): Likewise.
5293 (libgcjawt_la_LINK): Likewise.
5294 ($(awt_java_source_files:.java=.class)): Likewise.
5295 (libgcj.zip): Don't depend on AWT files.
5296 (MOSTLYCLEANFILES): Don't include AWT files.
5297 ($(awto_files)): Removed.
5298 (nat_headers): Removed AWT files.
5299 (cond_awt_java_source_files): Removed.
5300 (ordinary_java_source_files): Added awt_java_source_files.
5301 * libgcj.spec.in (*lib): Removed -lgcjawt.
5302 * configure: Rebuilt.
5303 * configure.in: Removed --enable-java-awt option.
5305 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5307 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5308 (ZipEntry): Copy the `name' field.
5309 (clone): Implement JDK1.2 method.
5310 (setCompressedSize): ditto.
5313 2000-05-19 Tom Tromey <tromey@cygnus.com>
5315 * java/io/BufferedWriter.java: Merged with Classpath.
5316 * java/io/BufferedOutputStream.java: Merged with Classpath.
5318 2000-05-16 Andrew Haley <aph@cygnus.com>
5320 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5321 build_ia64_frame_state.
5322 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5325 2000-05-15 Warren Levy <warrenl@cygnus.com>
5327 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5328 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5329 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5330 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5331 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5332 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5333 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5334 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5335 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5336 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5337 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5338 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5339 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5340 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5341 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5342 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5343 * gnu/gcj/io/NullOutputStream.java: Removed.
5344 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5345 * gnu/gcj/lang/ArrayHelper.java: Removed.
5346 * gnu/gcj/lang/ClassHelper.java: Removed.
5347 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5349 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5350 * gnu/java/beans/EmptyBeanInfo.java: New file.
5351 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5352 * gnu/java/beans/IntrospectionIncubator.java: New file.
5353 * gnu/java/beans/editors/ColorEditor.java: New file.
5354 * gnu/java/beans/editors/FontEditor.java: New file.
5355 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5356 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5357 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5358 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5359 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5360 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5361 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5362 * gnu/java/beans/editors/StringEditor.java: New file.
5363 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5364 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5365 * gnu/java/io/NullOutputStream.java: New file.
5366 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5367 * gnu/java/lang/ArrayHelper.java: New file.
5368 * gnu/java/lang/ClassHelper.java: New file.
5369 * gnu/java/lang/reflect/TypeSignature.java: New file.
5371 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5372 namespace back to the original Classpath gnu/java namespace.
5373 * Makefile.in: Rebuilt.
5375 * java/beans/Beans.java: Namespace change.
5376 * java/beans/EventSetDescriptor.java: Namespace change.
5377 * java/beans/Introspector.java: Namespace change.
5378 * java/beans/PropertyEditorManager.java: Namespace change.
5379 * java/io/ObjectInputStream.java: Namespace change.
5380 * java/io/ObjectOutputStream.java: Namespace change.
5381 * java/io/ObjectStreamClass.java: Namespace change.
5382 * java/io/ObjectStreamField.java: Namespace change.
5384 2000-04-21 Warren Levy <warrenl@cygnus.com>
5386 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5387 now that compiler patch is available.
5388 Removed unneeded System.loadLibrary.
5389 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5390 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5392 2000-04-19 Andrew Haley <aph@cygnus.com>
5394 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5395 and target classes have been initialized.
5397 2000-04-19 Andrew Haley <aph@cygnus.com>
5399 * java/lang/String.java: implement Serializable, Comparable.
5400 (compareTo (Object)): New method.
5402 2000-04-19 Warren Levy <warrenl@cygnus.com>
5404 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5405 instead of getField to retrieve non-public field.
5406 (getSerialPersistantFields): Ditto.
5408 2000-04-18 Warren Levy <warrenl@cygnus.com>
5410 * mauve-libgcj: Turned off object serialization tests temporarily
5411 due to compiler error.
5413 2000-04-17 Warren Levy <warrenl@cygnus.com>
5415 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5416 to avoid build problem.
5418 * mauve-libgcj: Turned on object serialization tests.
5420 2000-04-17 Tom Tromey <tromey@cygnus.com>
5422 * libgcj.spec.in (*lib): Added -lgcjawt.
5424 2000-04-17 Andrew Haley <aph@cygnus.com>
5426 * Makefile.am: Add new files:
5427 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5429 * Makefile.in: Rebuilt.
5431 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5432 interface that has no implementations.
5433 Check for an attempt to assign an abstract class to an interface.
5435 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5436 if we fail to find MessageDigest.getInstance ("SHA").
5438 * gnu/gcj/io/SimpleSHSStream.java: New file.
5439 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5440 * gnu/gcj/io/shs.cc: New file.
5441 * gnu/gcj/io/shs.h: new file.
5443 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5446 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5447 punctuation from the classname of an array element.
5449 * gcj/javaprims.h: Add SimpleDigestStream.
5451 2000-04-17 Andrew Haley <aph@cygnus.com>
5453 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5454 to getPrivateField for superclasses.
5456 2000-04-14 Andrew Haley <aph@cygnus.com>
5458 * Makefile.am: Add new files:
5459 java/io/ObjectOutputStream$PutField.h,
5460 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5461 java/io/natObjectOutputStream.cc
5462 * Makefile.in: Rebuilt.
5463 * gcj/Makefile.in: Rebuilt.
5464 * include/Makefile.in: Rebuilt.
5465 * java/lang/Class.h (getPrivateField): New method.
5466 (getPrivateMethod): Ditto.
5467 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5468 and java::io::ObjectStreamClass our friends.
5469 * java/lang/natClass.cc (getPrivateField): New method.
5470 (getPrivateMethod): Ditto.
5471 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5472 * gcj/javaprims.h: Add serialization classes.
5473 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5474 (setByteField): Ditto.
5475 (setCharField): Ditto.
5476 (setDoubleField): Ditto.
5477 (setFloatField): Ditto.
5478 (setIntField): Ditto.
5479 (setLongField): Ditto.
5480 (setShortField): Ditto.
5481 (setObjectField): Ditto.
5482 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5484 (getByteField): Ditto.
5485 (getCharField): Ditto.
5486 (getDoubleField): Ditto.
5487 (getFloatField): Ditto.
5488 (getIntField): Ditto.
5489 (getLongField): Ditto.
5490 (getShortField): Ditto.
5491 (getObjectField): Ditto.
5492 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5494 (getSerialPersistantFields): Ditto.
5495 (getDefinedSUID): Ditto.
5496 * java/io/natObjectOutputStream.cc: New file.
5497 * java/io/natObjectInputStream.cc: New file.
5499 2000-04-13 Warren Levy <warrenl@cygnus.com>
5501 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5502 problems. Revert to previous version to reproduce and when fixed.
5504 2000-04-13 Warren Levy <warrenl@cygnus.com>
5506 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5507 * gnu/gcj/io/NullOutputStream.java: New file.
5508 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5509 * java/io/BlockDataException.java: New file.
5510 * java/io/Externalizable.java: New file.
5511 * java/io/InvalidClassException.java: New file.
5512 * java/io/InvalidObjectException.java: New file.
5513 * java/io/NotActiveException.java: New file.
5514 * java/io/NotSerializableException.java: New file.
5515 * java/io/ObjectInput.java: New file.
5516 * java/io/ObjectInputStream.java: New file.
5517 * java/io/ObjectInputValidation.java: New file.
5518 * java/io/ObjectOutput.java: New file.
5519 * java/io/ObjectOutputStream.java: New file.
5520 * java/io/ObjectStreamClass.java: New file.
5521 * java/io/ObjectStreamConstants.java: New file.
5522 * java/io/ObjectStreamField.java: New file.
5523 * java/io/Replaceable.java: New file.
5524 * java/io/Resolvable.java: New file.
5525 * java/io/SerializablePermission.java: New file.
5526 * java/io/WriteAbortedException.java: New file.
5527 * java/security/BasicPermission.java: New file.
5528 * java/security/DigestOutputStream.java: New file.
5529 * java/security/Guard.java: New file.
5530 * java/security/Permission.java: New file.
5531 * java/security/PermissionCollection.java: New file.
5532 * Makefile.am: Added above files.
5533 * Makefile.in: Rebuilt.
5535 * java/beans/Beans.java (instantiate): Activated serialization code.
5536 * java/lang/SecurityManager.java (checkPermission): New method.
5538 2000-04-12 Warren Levy <warrenl@cygnus.com>
5540 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5541 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5542 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5543 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5544 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5545 * gnu/gcj/beans/editors/FontEditor.java: New file.
5546 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5547 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5548 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5549 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5550 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5551 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5552 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5553 * gnu/gcj/beans/editors/StringEditor.java: New file.
5554 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5555 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5556 * gnu/gcj/lang/ArrayHelper.java: New file.
5557 * gnu/gcj/lang/ClassHelper.java: New file.
5558 * java/beans/BeanDescriptor.java: New file.
5559 * java/beans/BeanInfo.java: New file.
5560 * java/beans/Beans.java: New file.
5561 * java/beans/Customizer.java: New file.
5562 * java/beans/DesignMode.java: New file.
5563 * java/beans/EventSetDescriptor.java: New file.
5564 * java/beans/FeatureDescriptor.java: New file.
5565 * java/beans/IndexedPropertyDescriptor.java: New file.
5566 * java/beans/IntrospectionException.java: New file.
5567 * java/beans/Introspector.java: New file.
5568 * java/beans/MethodDescriptor.java: New file.
5569 * java/beans/ParameterDescriptor.java: New file.
5570 * java/beans/PropertyChangeEvent.java: New file.
5571 * java/beans/PropertyChangeListener.java: New file.
5572 * java/beans/PropertyChangeSupport.java: New file.
5573 * java/beans/PropertyDescriptor.java: New file.
5574 * java/beans/PropertyEditor.java: New file.
5575 * java/beans/PropertyEditorManager.java: New file.
5576 * java/beans/PropertyEditorSupport.java: New file.
5577 * java/beans/PropertyVetoException.java: New file.
5578 * java/beans/SimpleBeanInfo.java: New file.
5579 * java/beans/VetoableChangeListener.java: New file.
5580 * java/beans/VetoableChangeSupport.java: New file.
5581 * java/beans/Visibility.java: New file.
5582 * java/beans/beancontext/BeanContext.java: New file.
5583 * java/beans/beancontext/BeanContextChild.java: New file.
5584 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5585 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5586 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5587 * java/beans/beancontext/BeanContextEvent.java: New file.
5588 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5589 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5590 * java/beans/beancontext/BeanContextProxy.java: New file.
5591 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5593 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5594 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5596 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5597 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5599 * java/beans/beancontext/BeanContextServices.java: New file.
5600 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5601 * java/util/AbstractCollection.java: New file.
5602 * java/util/AbstractList.java: New file.
5603 * java/util/Arrays.java: New file.
5604 * Makefile.am: Added above files.
5605 * Makefile.in: Rebuilt.
5607 2000-04-11 Warren Levy <warrenl@cygnus.com>
5609 * java/awt/AWTError.java: New file.
5610 * java/awt/AWTEvent.java: New file.
5611 * java/awt/AWTException.java: New file.
5612 * java/awt/ActiveEvent.java: New file.
5613 * java/awt/Adjustable.java: New file.
5614 * java/awt/BorderLayout.java: New file.
5615 * java/awt/Color.java: New file.
5616 * java/awt/Component.java: New file.
5617 * java/awt/Container.java: New file.
5618 * java/awt/Dimension.java: New file.
5619 * java/awt/Event.java: New file.
5620 * java/awt/Font.java: New file.
5621 * java/awt/Frame.java: New file.
5622 * java/awt/Graphics.java: New file.
5623 * java/awt/IllegalComponentStateException.java: New file.
5624 * java/awt/Image.java: New file.
5625 * java/awt/ItemSelectable.java: New file.
5626 * java/awt/LayoutManager.java: New file.
5627 * java/awt/LayoutManager2.java: New file.
5628 * java/awt/Menu.java: New file.
5629 * java/awt/MenuBar.java: New file.
5630 * java/awt/MenuComponent.java: New file.
5631 * java/awt/MenuContainer.java: New file.
5632 * java/awt/MenuItem.java: New file.
5633 * java/awt/Paint.java: New file.
5634 * java/awt/PaintContext.java: New file.
5635 * java/awt/Point.java: New file.
5636 * java/awt/Rectangle.java: New file.
5637 * java/awt/Shape.java: New file.
5638 * java/awt/TextArea.java: New file.
5639 * java/awt/TextComponent.java: New file.
5640 * java/awt/Toolkit.java: New file.
5641 * java/awt/Transparency.java: New file.
5642 * java/awt/Window.java: New file.
5643 * java/awt/natToolkit.cc: New file.
5644 * java/awt/event/AWTEventListener.java: New file.
5645 * java/awt/event/ActionEvent.java: New file.
5646 * java/awt/event/ActionListener.java: New file.
5647 * java/awt/event/AdjustmentEvent.java: New file.
5648 * java/awt/event/AdjustmentListener.java: New file.
5649 * java/awt/event/ComponentAdapter.java: New file.
5650 * java/awt/event/ComponentEvent.java: New file.
5651 * java/awt/event/ComponentListener.java: New file.
5652 * java/awt/event/ContainerAdapter.java: New file.
5653 * java/awt/event/ContainerEvent.java: New file.
5654 * java/awt/event/ContainerListener.java: New file.
5655 * java/awt/event/FocusAdapter.java: New file.
5656 * java/awt/event/FocusEvent.java: New file.
5657 * java/awt/event/FocusListener.java: New file.
5658 * java/awt/event/InputEvent.java: New file.
5659 * java/awt/event/InputMethodEvent.java: New file.
5660 * java/awt/event/InputMethodListener.java: New file.
5661 * java/awt/event/InvocationEvent.java: New file.
5662 * java/awt/event/ItemEvent.java: New file.
5663 * java/awt/event/ItemListener.java: New file.
5664 * java/awt/event/KeyAdapter.java: New file.
5665 * java/awt/event/KeyEvent.java: New file.
5666 * java/awt/event/KeyListener.java: New file.
5667 * java/awt/event/MouseAdapter.java: New file.
5668 * java/awt/event/MouseEvent.java: New file.
5669 * java/awt/event/MouseListener.java: New file.
5670 * java/awt/event/MouseMotionAdapter.java: New file.
5671 * java/awt/event/MouseMotionListener.java: New file.
5672 * java/awt/event/PaintEvent.java: New file.
5673 * java/awt/event/TextEvent.java: New file.
5674 * java/awt/event/TextListener.java: New file.
5675 * java/awt/event/WindowAdapter.java: New file.
5676 * java/awt/event/WindowEvent.java: New file.
5677 * java/awt/event/WindowListener.java: New file.
5678 * java/awt/geom/Dimension2D.java: New file.
5679 * java/awt/geom/Point2D.java: New file.
5680 * java/awt/peer/ComponentPeer.java: New file.
5681 * java/awt/peer/ContainerPeer.java: New file.
5682 * java/awt/peer/FramePeer.java: New file.
5683 * java/awt/peer/WindowPeer.java: New file.
5684 * java/util/Collection.java: New file.
5685 * java/util/Comparator.java: New file.
5686 * java/util/Iterator.java: New file.
5687 * java/util/List.java: New file.
5688 * java/util/ListIterator.java: New file.
5689 * Makefile.am: Added above files.
5690 * Makefile.in: Rebuilt.
5692 2000-04-10 Warren Levy <warrenl@cygnus.com>
5694 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5695 * java/lang/FirstThread.java: Ditto.
5696 * java/lang/StringBuffer.java: Ditto.
5697 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5699 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5700 Special case handled in java.math.BigInteger.
5701 * java/math/BigInteger.java (divide): Handle the special case when
5702 dividing by 1 and the high bit of the dividend is set.
5703 (setShiftRight): Handle case when count == 0.
5705 2000-04-05 Andrew Haley <aph@cygnus.com>
5707 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5710 2000-04-05 Andrew Haley <aph@cygnus.com>
5712 * sysdep/ia64.c (rse_address_add): Delete.
5713 (IS_NaT_COLLECTION_ADDR): Delete.
5714 (ia64_backtrace_helper): check for null unwind_info.
5716 * sysdep/ia64-frame.h: add calc_caller_bsp.
5718 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5721 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5722 (_Jv_remI): Likewise.
5723 (_Jv_divJ): Likewise.
5724 (_Jv_remJ): Likewise.
5726 * interpret.cc (continue1): Use divide subroutines to guarantee
5727 correct Java standard behaviour.
5728 Floating-point division should not abort; make it so.
5730 2000-03-29 Tom Tromey <tromey@cygnus.com>
5732 * configure: Rebuilt.
5733 * configure.in: Test against `libgcj_sjlj', not
5734 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5735 to be set even when using sjlj.
5737 2000-03-24 Andrew Haley <aph@cygnus.com>
5739 * Makefile.am: Add file addr2name.awk.
5740 * Makefile.in: Rebuilt.
5741 * addr2name.awk: New file.
5742 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5744 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5747 2000-03-22 Andrew Haley <aph@cygnus.com>
5749 * configure.host: Add -funwind-tables for IA64.
5750 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5751 * Makefile.in: Rebuilt.
5752 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5753 * sysdep/ia64.c: New file.
5754 * sysdep/ia64-frame.h: New file.
5755 * configure.in: Add sysdep/ia64.c for ia64.
5756 * configure: Rebuilt.
5758 2000-03-17 Andrew Haley <aph@cygnus.com>
5760 * java/lang/natString.cc: Remove `register' keyword.
5761 interpret.cc: ditto.
5763 2000-03-16 Andrew Haley <aph@cygnus.com>
5765 * configure.host (ia64): Enable interpreter.
5767 2000-03-14 Hans Boehm <boehm@acm.org>
5769 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5771 2000-03-14 Andrew Haley <aph@cygnus.com>
5773 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5776 2000-03-10 Andrew Haley <aph@cygnus.com>
5778 * java/lang/ieeefp.h: Import latest version from fdlibm.
5780 2000-03-14 Andrew Haley <aph@cygnus.com>
5782 * prims.cc (_Jv_ThrowSignal): New function.
5783 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5785 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5786 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5787 * include/ppc-signal.h: New file.
5789 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5791 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5792 * java/lang/natThread.java (initialize_native): Cast `data' to
5794 * gnu/gcj/RawData.java: Clarify documentation.
5796 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5797 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5798 `jarFile', not `jarFileURL'.
5800 2000-05-15 Andrew Haley <aph@cygnus.com>
5802 * include/ppc-signal.h: New file.
5804 2000-05-11 Tom Tromey <tromey@cygnus.com>
5806 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5807 file headers, don't include `size' in the skip call.
5809 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5811 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5812 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5814 (replace): Reimplemented. Fix javadoc.
5815 (reverse): Call ensureCapacity_unsynchronized().
5816 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5818 (replace): Calculate length for arraycopy() correctly.
5820 2000-05-09 Tom Tromey <tromey@cygnus.com>
5822 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5824 (insert(int,char[],int,int): New method.
5825 (delete): New method from Classpath.
5826 (deleteCharAt): Likewise.
5827 (substring): Likewise.
5828 (shared): No longer private.
5829 Added JavaDoc comments from Classpath.
5830 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5833 2000-05-07 Tom Tromey <tromey@cygnus.com>
5835 * Makefile.in: Rebuilt.
5836 * Makefile.am (LIBLINK): New macro.
5837 (libgcj_la_LINK): Use it.
5838 (libgcjawt_la_LINK): Likewise.
5840 2000-05-06 Tom Tromey <tromey@cygnus.com>
5842 * Makefile.in: Rebuilt.
5843 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5845 2000-05-05 Tom Tromey <tromey@cygnus.com>
5847 Fix for PR libgcj/220:
5848 * Makefile.in: Rebuilt.
5849 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5850 (jv_convert_LDFLAGS): Likewise.
5851 (libgcj_la_LDFLAGS): Likewise.
5852 (GCJLINK): New macro.
5853 (jv_convert_LINK): Use it.
5854 (gij_LINK): Likewise.
5855 (libgcj_la_LINK): New macro.
5856 (libgcjawt_la_LINK): Likewise.
5858 2000-05-04 Tom Tromey <tromey@cygnus.com>
5860 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5862 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5866 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5868 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5869 (_Jv_IsAssignableFrom): Ditto.
5870 (_Jv_IsInstanceOf): Ditto.
5871 (_Jv_CheckCast): Ditto.
5872 (_Jv_CheckArrayStore): Ditto.
5873 * java/lang/Class.h (_Jv_InitClass): Ditto.
5874 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5879 (_Jv_MonitorExit): Ditto.
5880 * boehm.cc (_Jv_MarkObj): Ditto.
5881 (_Jv_MarkObj): Ditto.
5882 (_Jv_MarkArray): Ditto.
5883 * prims.cc (_Jv_AllocObject): Ditto.
5884 (_Jv_NewObjectArray): Ditto.
5885 (_Jv_NewPrimArray): Ditto.
5886 (_Jv_Malloc): Ditto.
5887 (_Jv_Realloc): Ditto.
5888 (_Jv_MallocUnchecked): Ditto.
5894 2000-05-04 Tom Tromey <tromey@cygnus.com>
5896 * java/util/Locale.java (Locale): Don't explicitly check for
5898 * java/util/Hashtable.java (containsKey): Don't explicitly check
5901 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5903 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5905 * java/text/StringCharacterIterator.java
5906 (StringCharacterIterator): Don't check for null.
5907 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5909 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5910 check for null pointer.
5911 (leaveGroup): Likewise.
5912 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5914 (setData): Likewise.
5915 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5918 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5920 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5921 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5922 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5923 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5924 -rpath for in-gcc builds.
5925 * Makefile.in: Rebuilt.
5927 2000-04-28 Tom Tromey <tromey@cygnus.com>
5929 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5932 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5934 * libjava/java/lang/String.java (toString): Remove `final' hack.
5936 2000-04-05 Tom Tromey <tromey@cygnus.com>
5938 Runtime support for PR gcj/2:
5939 * prims.cc (_Jv_ThrowNullPointerException): New function.
5940 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5942 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5944 * prims.cc (_Jv_NewObjectArray): Fix typo.
5946 2000-04-26 Tom Tromey <tromey@cygnus.com>
5948 * Makefile.in: Rebuilt.
5949 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5951 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5953 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5956 2000-04-22 Anthony Green <green@cygnus.com>
5958 * include/jvm.h (__builtin_expect): Define as unused for now.
5959 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5963 (_Jv_MonitorExit): Ditto.
5964 * boehm.cc (_Jv_MarkObj): Ditto.
5965 (_Jv_MarkObj): Ditto.
5966 (_Jv_MarkArray): Ditto.
5967 (_Jv_AllocBytes): Ditto.
5968 * prims.cc (_Jv_AllocObject): Ditto.
5969 (_Jv_NewObjectArray): Ditto.
5970 (_Jv_NewPrimArray): Ditto.
5971 (_Jv_Malloc): Ditto.
5972 (_Jv_Realloc): Ditto.
5973 (_Jv_MallocUnchecked): Ditto.
5979 * include/Makefile.in: Rebuilt.
5980 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5982 2000-04-21 Tom Tromey <tromey@cygnus.com>
5984 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5985 Yet another new version from Classpath.
5987 Fix for PR libgcj/15:
5988 * java/util/natGregorianCalendar.cc (_REENTRANT,
5989 _POSIX_PTHREAD_SEMANTICS): Don't define.
5990 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5991 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5993 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5995 * configure: Rebuilt.
5996 * configure.in: If using POSIX threads, define _REENTRANT if
5997 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5998 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6000 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6001 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6002 version from Classpath.
6004 Fix for PR libgcj/213:
6005 * Makefile.in: Rebuilt.
6006 * Makefile.am (gij_SOURCES): Added gij.cc.
6007 (EXTRA_gij_SOURCES): Removed.
6008 (gij_LDADD): Removed gij.lo.
6009 (gij_DEPENDENCIES): Likewise.
6010 ($(gij_OBJECTS)): Depend on nat_headers.
6012 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6013 `setURL', not `url.set'.
6015 2000-04-20 Tom Tromey <tromey@cygnus.com>
6017 Fix for PR java.io/204:
6018 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6019 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6022 Fix for PR libgcj/212:
6023 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6024 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6025 * java/lang/Class.h (_Jv_word): Declare.
6027 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6029 2000-04-19 Tom Tromey <tromey@cygnus.com>
6031 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6032 doesn't have a loader.
6034 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6036 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6037 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6039 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6041 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6043 (available): Initialize `where' to prevent bogus compiler warning.
6045 2000-04-12 Tom Tromey <tromey@cygnus.com>
6047 * java/lang/natString.cc (intern): Temporarily disable finalizer
6050 * java/lang/natString.cc (unintern): Added `obj' argument.
6051 (intern): Register finalizer for string.
6052 * java/lang/String.java (unintern): Now static; added obj
6055 2000-04-11 Tom Tromey <tromey@cygnus.com>
6057 * java/util/Vector.java (VectorEnumeration): Now `final'.
6058 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6059 (HashtableEnumeration): Likewise.
6060 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6061 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6063 2000-04-10 Warren Levy <warrenl@cygnus.com>
6065 * java/io/ObjectStreamException.java: New file.
6066 * java/io/OptionalDataException.java: New file.
6067 * java/io/StreamCorruptedException.java: New file.
6068 * java/math/BigDecimal.java: New file.
6069 * java/sql/CallableStatement.java: New file.
6070 * java/sql/Connection.java: New file.
6071 * java/sql/DataTruncation.java: New file.
6072 * java/sql/DatabaseMetaData.java: New file.
6073 * java/sql/Date.java: New file.
6074 * java/sql/Driver.java: New file.
6075 * java/sql/DriverManager.java: New file.
6076 * java/sql/DriverPropertyInfo.java: New file.
6077 * java/sql/PreparedStatement.java: New file.
6078 * java/sql/ResultSet.java: New file.
6079 * java/sql/ResultSetMetaData.java: New file.
6080 * java/sql/SQLException.java: New file.
6081 * java/sql/SQLWarning.java: New file.
6082 * java/sql/Statement.java: New file.
6083 * java/sql/Time.java: New file.
6084 * java/sql/Timestamp.java: New file.
6085 * java/sql/Types.java: New file.
6086 * Makefile.am: Added above new files.
6087 * Makefile.in: Rebuilt.
6089 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6090 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6091 DatagramSocket constructor instead of null.
6093 2000-04-08 Anthony Green <green@cygnus.com>
6095 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6098 2000-04-08 Anthony Green <green@cygnus.com>
6100 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6101 (_Jv_MutexUnlock): Ditto.
6102 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6103 (_Jv_MutexUnlock): Ditto.
6105 2000-04-08 Anthony Green <green@cygnus.com>
6107 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6108 (ensureCapacity_unsynchronized): New private method.
6109 (append): Use ensureCapacity_unsynchronized.
6111 2000-04-08 Tom Tromey <tromey@cygnus.com>
6113 * Makefile.in: Rebuilt.
6114 * Makefile.am (awt_java_source_files): Added new files.
6115 * java/awt/IllegalComponentStateException.java: New file.
6116 * java/awt/ItemSelectable.java: New file.
6117 * java/awt/event/WindowEvent.java: Finished.
6118 * java/awt/event/TextEvent.java: Finished.
6119 * java/awt/event/ContainerEvent.java: New file.
6120 * java/awt/Component.java (getX, getY): New methods.
6121 * java/awt/event/PaintEvent.java: New file.
6122 * java/awt/event/MouseEvent.java: New file.
6123 * java/awt/ActiveEvent.java: New file.
6124 * java/awt/event/KeyEvent.java: Finished.
6125 * java/awt/event/ItemEvent.java: New file.
6126 * java/awt/Adjustable.java: New file.
6127 * java/awt/event/InputMethodEvent.java: New file.
6128 * java/awt/event/InputEvent.java: Finished.
6129 * java/awt/event/FocusEvent.java: New file.
6130 * java/awt/event/MouseMotionAdapter.java: New file.
6131 * java/awt/event/MouseAdapter.java: New file.
6132 * java/awt/event/KeyAdapter.java: New file.
6133 * java/awt/event/FocusAdapter.java: New file.
6134 * java/awt/event/ContainerAdapter.java: New file.
6135 * java/awt/event/ComponentEvent.java: Finished.
6136 * java/awt/event/AdjustmentEvent.java: New file.
6137 * java/awt/event/ComponentAdapter.java: New file.
6138 * java/awt/event/ActionEvent.java: Finished.
6139 * java/awt/event/MouseMotionListener.java: New file.
6140 * java/awt/event/MouseListener.java: New file.
6141 * java/awt/event/ItemListener.java: New file.
6142 * java/awt/event/InputMethodListener.java: New file.
6143 * java/awt/event/ContainerListener.java: New file.
6144 * java/awt/event/FocusListener.java: New file.
6145 * java/awt/event/ComponentListener.java: New file.
6146 * java/awt/event/AWTEventListener.java: New file.
6147 * java/awt/event/AdjustmentListener.java: New file.
6149 2000-04-08 Anthony Green <green@cygnus.com>
6151 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6152 check when we have to.
6154 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6157 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6160 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6161 inline hasMoreElements.
6163 2000-04-05 Tom Tromey <tromey@cygnus.com>
6165 * configure: Rebuilt.
6166 * configure.in: Recognize --enable-java-awt.
6167 (AWT): New conditional.
6168 * Makefile.in: Rebuilt.
6169 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6171 (libgcjawt_la_SOURCES): New macro.
6172 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6173 (libgcjawt_la_DEPENDENCIES): Likewise.
6174 (libgcjawt_la_LIBADD): Likewise.
6175 (libgcjawt_la_LDFLAGS): Likewise.
6176 (libgcj.zip): Depend on cond_java_awt_source_files
6177 (cond_awt_java_source_files): New macro.
6178 (MOSTLYCLEANFILES): Added awto_files.
6179 (awto_files): New macro. Use where javao_files used.
6180 (nat_headers): Use cond_awt_java_source_files.
6182 2000-04-04 Tom Tromey <tromey@cygnus.com>
6184 * Makefile.in: Rebuilt.
6185 * Makefile.am (awt_java_source_files): Added AWTException.java.
6186 * java/awt/AWTException.java: New file.
6188 2000-04-03 Tom Tromey <tromey@cygnus.com>
6190 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6191 commentary from Alex.
6193 * Makefile.in: Rebuilt.
6194 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6197 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6199 * configure: Rebuilt.
6200 * configure.in: Add --disable-jvmpi.
6201 * include/config.h.in: Rebuilt.
6202 * acconfig.h: Add ENABLE_JVMPI.
6204 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6205 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6206 (_Jv_JVMPI_Notify_THREAD_END): New define.
6207 (_Jv_JVMPI_Notify_THREAD_END): New define.
6208 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6209 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6210 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6212 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6215 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6216 (finish_): Generate JVMPI thread end events.
6217 (run_): Generate JVMPI thread start events.
6218 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6219 preloaded JNI library.
6220 Include JVMPI headers if necessary.
6221 (run): Generate JVMPI thread start events.
6223 * boehm.cc: Define GC_disable and GC_enable.
6224 (_Jv_DisableGC): New function.
6225 (_Jv_EnableGC): New function.
6226 (disable_gc_mutex): Declare.
6227 * nogc.cc (_Jv_DisableGC): New function.
6228 (_Jv_EnableGC): New function.
6230 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6231 (_Jv_JVMPI_Interface): Define.
6232 (jvmpiEnableEvent): New function.
6233 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6235 * include/jvmpi.h: New file.
6237 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6239 * Makefile.in: New #defines and friends for Thread.h.
6240 * Makefile.am: Ditto.
6241 * posix-threads.cc: (struct starter): Remove `object'.
6242 (_Jv_CondWait): Use interruptable condition variables and new
6243 recursive mutexes. New return codes on interrupt or non-ownership
6245 (_Jv_CondNotify): Ditto.
6246 (_Jv_CondNotifyAll): Ditto.
6247 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6248 the target thread by signaling its wait condition.
6249 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6250 not the starter struct. Initialize wait_mutex and wait_cond.
6251 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6253 (_Jv_MutexUnlock): Ditto.
6254 (really_start): Set info->data->thread from pthread_self() to work
6255 around a race condition. Destroy wait_mutex and wait_cond when run()
6257 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6258 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6260 startable_flag: New private field.
6261 (Thread): Initialize `startable_flag'.
6262 (toString): Check for null thread group.
6263 * java/lang/natThread.cc: (struct natThread): New fields
6264 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6265 (class locker): Removed.
6266 (initialize_native): Initialize `join_cond' and `join_mutex'.
6267 (interrupt): Now just calls _Jv_ThreadInterrupt().
6268 (join): Simplified. Just wait on the target thread's join condition.
6269 (finish_): Remove join list code. Unset thread group. Signal
6270 potential joiners by notifying the dying threads join_cond.
6271 (start): Check for illegal restarts.
6272 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6274 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6275 #defines and #ifdefs.
6276 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6277 `wait_mutex', `next'.
6278 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6279 directly mapping to pthread_cond_t.
6280 (struct _Jv_Mutex_t): New recursive implementation.
6281 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6282 _Jv_HaveCondDestroy: Never define this for posix-threads.
6283 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6284 (_Jv_CondNotifyAll): Ditto.
6285 (_Jv_MutexLock): Ditto.
6286 (_Jv_MutexUnlock): Ditto.
6287 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6288 (_Jv_MutexDestroy): Ditto.
6289 (_Jv_CondDestroy): Removed.
6290 (_Jv_PthreadGetMutex): Removed.
6291 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6292 error. Add a FIXME about this.
6293 (_Jv_CondNotifyAll): Ditto.
6294 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6295 _JV_NOT_OWNER on other errors. Add FIXME.
6297 2000-03-26 Tom Tromey <tromey@cygnus.com>
6299 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6301 (call): Don't throw exception here.
6303 2000-03-26 Tom Tromey <tromey@cygnus.com>
6305 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6306 * interpret.cc: Use SIZEOF_VOID_P.
6307 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6308 (_Jv_loadLong): Likewise.
6309 (_Jv_storeDouble): Likewise.
6310 * configure: Rebuilt.
6311 * configure.in: Check size of void*.
6313 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6315 2000-03-26 Hans Boehm <boehm@acm.org>
6317 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6318 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6320 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6321 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6322 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6323 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6325 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6326 (FFI_RAW_SIZE): Likewise.
6327 (_Jv_InterpMethod::ncode): Use them.
6328 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6329 STORED): Define differently on a 64 bit machine.
6330 (continue1): Use ffi_java_raw_call when appropriate.
6332 2000-03-24 Warren Levy <warrenl@cygnus.com>
6334 * java/math/BigInteger.java(divide): Handle the special case when
6335 dividing by 1 and the high bit of the dividend is set.
6336 (setShiftRight): Handle case when count == 0.
6338 2000-03-24 Warren Levy <warrenl@cygnus.com>
6340 * java/awt/Font.java(isBold): Fix syntax error.
6342 * java/awt/Frame.java(postEvent): ditto.
6343 * java/awt/Menu.java(postEvent): ditto.
6344 * java/awt/MenuBar.java(postEvent): ditto.
6345 * java/awt/Toolkit.java(init): Included a stub.
6347 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6349 * java/awt/Event.java: Add all the event type constants.
6350 (Event): Implemented constructors.
6351 (controlDown): Implemented.
6352 (metaDown): Implemented.
6353 (paramString): Stubbed.
6354 (shiftDown): Implemented.
6355 (toString): Implemented.
6356 (translate): Implemented.
6358 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6360 * java/lang/natClass.cc (isInstance): Initialize `this'.
6361 (isAssignableFrom): Initialize `this' and `klass'.
6362 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6363 implemented by any loaded class, so return false.
6364 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6365 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6367 2000-03-19 Warren Levy <warrenl@cygnus.com>
6369 * java/awt/Color.java: Specified java.io for Serializable.
6370 * java/awt/Toolkit.java: Imported java.net.URL.
6372 2000-03-19 Warren Levy <warrenl@cygnus.com>
6374 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6376 2000-03-16 Warren Levy <warrenl@cygnus.com>
6378 * java/awt/Color.java: New file.
6379 * java/awt/Graphics.java: New file.
6380 * java/awt/Image.java: New file.
6381 * java/awt/Paint.java: New file.
6382 * java/awt/PaintContext.java: New file.
6383 * java/awt/Transparency.java: New file.
6384 * java/util/Collection.java: New file.
6385 * java/util/Comparator.java: New file.
6386 * java/util/Iterator.java: New file.
6387 * java/util/List.java: New file.
6388 * java/util/ListIterator.java: New file.
6389 * Makefile.am: Added above new files.
6390 * Makefile.in: Rebuilt.
6392 * java/awt/Font.java (PLAIN): New field.
6394 (ITALIC): New field.
6395 (ROMAN_BASELINE): New field.
6396 (CENTER_BASELINE): New field.
6397 (HANGING_BASELINE): New field.
6401 (pointSize): New field.
6402 (Font): Implemented constructor.
6403 (isPlain): Implemented method.
6404 (isBold): Implemented method.
6405 (isItalic): Implemented method.
6406 (getName): Implemented method.
6407 (getStyle): Implemented method.
6408 (getSize): Implemented method.
6409 (getSize2D): Implemented method.
6411 * java/awt/Frame.java (getFont): Stubbed.
6412 (postEvent): Stubbed.
6414 * java/awt/Menu.java (postEvent): Stubbed.
6415 * java/awt/MenuBar.java (getFont): Stubbed.
6416 (postEvent): Stubbed.
6417 * java/awt/Toolkit.java (getImage): Added abstract method.
6419 2000-03-15 Tom Tromey <tromey@cygnus.com>
6421 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6423 * prims.cc (win32_exception_handler): Reformatted.
6425 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6426 (_Jv_HaveMutexDestroy): Likewise.
6428 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6430 * java/io/natFileDescriptorWin32.cc: New file.
6431 * java/io/natFileWin32.cc: New file.
6432 * java/net/natInetAddress.cc: Added conditional inclusion of
6433 Windows / Winsock headers.
6434 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6435 inclusion of Windows / Winsock headers.
6436 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6437 Windows / Winsock headers.
6438 * include/win32-signal.h: New file.
6439 * include/win32-threads.h: New file.
6440 * win32-threads.cc: New file.
6441 * exception.cc (win32_get_restart_frame): New function.
6442 * prims.cc (win32_exception_handler): New function.
6443 (main_init) Performs Winsock initialisation.
6444 (main_init) Installs exeception handler.
6446 2000-03-14 Tom Tromey <tromey@cygnus.com>
6448 * jni.cc (mangled_name): Fixed assertion.
6449 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6450 turned assert into actual failure.
6452 2000-03-09 Warren Levy <warrenl@cygnus.com>
6454 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6455 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6456 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6458 2000-03-09 Warren Levy <warrenl@cygnus.com>
6460 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6461 * java/security/DigestException.java: New file.
6462 * java/security/GeneralSecurityException.java: New file.
6463 * java/security/InvalidAlgorithmParameterException.java: New file.
6464 * java/security/InvalidKeyException.java: New file.
6465 * java/security/InvalidParameterException.java: New file.
6466 * java/security/Key.java: New file.
6467 * java/security/KeyException.java: New file.
6468 * java/security/KeyPair.java: New file.
6469 * java/security/KeyPairGenerator.java: New file.
6470 * java/security/KeyPairGeneratorSpi.java: New file.
6471 * java/security/NoSuchProviderException.java: New file.
6472 * java/security/PrivateKey.java: New file.
6473 * java/security/Provider.java: New file.
6474 * java/security/PublicKey.java: New file.
6475 * java/security/SecureRandom.java: New file.
6476 * java/security/Security.java: New file.
6477 * java/security/Signature.java: New file.
6478 * java/security/SignatureException.java: New file.
6479 * java/security/interfaces/DSAKey.java: New file.
6480 * java/security/interfaces/DSAParams.java: New file.
6481 * java/security/interfaces/DSAPrivateKey.java: New file.
6482 * java/security/interfaces/DSAPublicKey.java: New file.
6483 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6484 * java/security/interfaces/RSAPrivateKey.java: New file.
6485 * java/security/interfaces/RSAPublicKey.java: New file.
6486 * java/security/spec/AlgorithmParameterSpec.java: New file.
6487 * java/security/spec/InvalidKeySpecException.java: New file.
6488 * java/security/spec/InvalidParameterSpecException.java: New file.
6489 * java/security/spec/KeySpec.java: New file.
6490 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6491 * java/security/spec/RSAPrivateKeySpec.java: New file.
6492 * java/security/spec/RSAPublicKeySpec.java: New file.
6493 * Makefile.am: Added above java.security files.
6494 * Makefile.in: Rebuilt.
6496 * java/security/MessageDigest.java: Rewritten.
6497 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6499 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6503 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6505 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6506 _Jv_PrepareConstantTimeTables.
6507 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6508 classes should have an IDT, so don't return if klass is an array
6511 2000-03-08 Tom Tromey <tromey@cygnus.com>
6513 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6514 of `void' to be created.
6516 2000-03-08 Warren Levy <warrenl@cygnus.com>
6518 * java/math/BigInteger.java(signum): Handle zero properly.
6520 2000-03-07 Tom Tromey <tromey@cygnus.com>
6522 * All files: Updated copyright information.
6523 * COPYING: New file.
6524 * COPYING.LIB: Removed.
6525 * LIBGCJ_LICENSE: We now use GPL + special exception.
6527 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6529 * resolve.cc (_Jv_SearchMethodInClass): New function.
6530 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6531 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6533 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6535 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6536 (struct _Jv_ifaces): New declaration.
6537 JV_CLASS: New macro definition.
6538 (getComponentType): Relocate below isArray() for inlining.
6539 (getModifiers): Declare `inline'.
6540 (getSuperclass): Ditto.
6542 (isPrimitive): Ditto.
6543 (_Jv_IsAssignableFrom): New prototype.
6544 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6546 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6547 Check for JV_STATE_DONE before invoking initializeClass().
6548 (_Jv_PrepareConstantTimeTables): New prototype.
6549 (_Jv_GetInterfaces): Ditto.
6550 (_Jv_GenerateITable): Ditto.
6551 (_Jv_GetMethodString): Ditto.
6552 (_Jv_AppendPartialITable): Ditto.
6553 (_Jv_FindIIndex): Ditto.
6554 depth, ancestors, idt: New class fields.
6556 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6557 inline function `_Jv_IsAssignableFrom'. Use that function.
6558 (isInstance): Declare `inline'.
6559 (initializeClass): Get lock on class before checking `state'. Unlock
6560 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6562 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6563 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6564 class->depth and ancestor table.
6565 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6566 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6567 _Jv_IsAssignableFrom.
6568 (_Jv_CheckArrayStore): Ditto.
6569 (_Jv_LookupInterfaceMethodIdx): New function.
6570 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6571 (_Jv_PrepareConstantTimeTables): New function.
6572 (_Jv_IndexOf): Ditto.
6573 (_Jv_GetInterfaces): Ditto.
6574 (_Jv_GenerateITable): Ditto.
6575 (_Jv_GetMethodString): Ditto.
6576 (_Jv_AppendPartialITable): Ditto.
6577 iindex_mutex, iindex_mutex_initialized: New static fields.
6578 (_Jv_FindIIndex): New function.
6580 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6582 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6583 (_Jv_CheckArrayStore): Ditto.
6584 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6585 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6586 Moved to gcj/array.h.
6587 (_Jv_Realloc): New function.
6589 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6591 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6592 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6593 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6594 JvNewDoubleArray): Implementations moved from prims.cc and
6597 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6599 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6601 2000-03-06 Tom Tromey <tromey@cygnus.com>
6603 * jni.cc (MARK_NONE): New define.
6604 (MARK_USER): Likewise.
6605 (MARK_SYSTEM): Likewise.
6606 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6608 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6609 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6610 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6611 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6613 (call): Use MARK_SYSTEM.
6614 (_Jv_GetJNIEnvNewFrame): New function.
6615 (_Jv_LookupJNIMethod): New function.
6616 (_Jv_JNI_PopSystemFrame): New function.
6617 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6619 2000-03-05 Tom Tromey <tromey@cygnus.com>
6621 Fix for PR libgcj/43:
6622 * include/Makefile.in: Rebuilt.
6623 * include/Makefile.am (include_HEADERS): New define.
6625 2000-03-05 Anthony Green <green@redhat.com>
6627 * gcj/javaprims.h ("Java"): Remove FirstThread.
6629 * configure.host: Fix __NO_MATH_INLNES botch.
6631 * Makefile.in: Rebuilt.
6632 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6633 (gnu/gcj/runtime/FirstThread.h): Moved.
6634 (ordinary_java_source_files): Move FirstThread.java.
6635 * prims.cc: Deal with FirstThread movement.
6637 (_Jv_RunMain): Ditto.
6639 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6640 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6642 2000-03-05 Warren Levy <warrenl@cygnus.com>
6644 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6645 Handle null addresses.
6647 2000-03-04 Anthony Green <green@redhat.com>
6649 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6652 2000-03-04 Anthony Green <green@redhat.com>
6654 * configure: Rebuilt.
6655 * configure.in (ZLIBTESTSPEC): New macro.
6656 (GCTESTSPEC): New macro.
6657 (LIBGCJTESTSPEC): New macro.
6658 * libgcj-test.spec.in: New file.
6660 2000-03-02 Tom Tromey <tromey@cygnus.com>
6662 * include/java-interp.h: Don't include MethodInvocation.h.
6663 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6664 * Makefile.in: Rebuilt.
6665 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6666 (ordinary_java_source_files): Don't mention
6667 MethodInvocation.java.
6668 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6669 * interpret.cc (MethodInvocation::continue1): Removed.
6670 (run): Handle exceptions here.
6671 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6673 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6675 (defineClass2): Removed.
6677 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6679 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6681 (hack_call): Removed.
6683 * java/lang/Class.h (Class): Removed hackRunInitializers,
6685 * java/lang/natClass.cc (hackRunInitializers): Removed.
6686 (initializeClass): Catch exceptions here.
6687 Include ExceptionInInitializerError.h.
6688 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6691 * java/lang/Object.h (Object): Don't mention hack12_6.
6692 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6694 * java/lang/Object.java (hack12_6): Removed.
6696 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6697 (start): Use run_, not run__.
6698 * java/lang/Thread.java (run_): Renamed from run__; old run_
6701 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6702 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6703 (_Jv_JNI_DefineClass): Likewise.
6704 (_Jv_JNI_ThrowNew): Likewise.
6705 (_Jv_JNI_AllocObject): Likewise.
6706 (_Jv_JNI_GetAnyMethodID): Likewise.
6707 (_Jv_JNI_CallAnyMethodV): Likewise.
6708 (_Jv_JNI_CallAnyMethodA): Likewise.
6709 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6710 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6711 (_Jv_JNI_GetAnyFieldID): Likewise.
6712 (_Jv_JNI_NewString): Likewise.
6713 (_Jv_JNI_NewStringUTF): Likewise.
6714 (_Jv_JNI_GetStringUTFChars): Likewise.
6715 (_Jv_JNI_NewObjectArray): Likewise.
6716 (_Jv_JNI_NewPrimitiveArray): Likewise.
6717 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6718 (_Jv_JNI_GetStringRegion): Likewise.
6719 (_Jv_JNI_GetStringUTFRegion): Likewise.
6720 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6721 (_Jv_JNI_MonitorEnter): Likewise.
6722 (_Jv_JNI_MonitorExit): Likewise.
6723 (_Jv_JNI_ToReflectedField): Likewise.
6724 (_Jv_JNI_ToReflectedMethod): Likewise.
6725 (_Jv_JNI_RegisterNatives): Likewise.
6726 (_Jv_JNI_AttachCurrentThread): Likewise.
6727 (_Jv_JNI_DestroyJavaVM): Likewise.
6729 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6731 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6732 error caused by the incorrect casting of a long to an int.
6734 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6736 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6737 SIGSEV caused by use of the wrong instance variable.
6739 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6741 * java/io/File.java (File(String, String)): For dirPath, treat an
6742 empty String the same as `null'.
6744 2000-02-26 Anthony Green <green@cygnus.com>
6746 * gnu/gcj/io/MimeTypes.java: Test for null.
6748 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6749 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6751 * java/net/URLConnection.java: Update copyright notice.
6753 2000-02-25 Tom Tromey <tromey@cygnus.com>
6755 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6758 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6760 * java/net/URLConnection.java (initializeDateFormats): New
6762 (getHeaderFieldDate): Call initializeDateFormats if required.
6763 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6765 Fix for PR libgcj/38.
6767 2000-02-24 Warren Levy <warrenl@cygnus.com>
6769 * java/math/BigInteger.java(ival): Made private.
6773 2000-02-20 Anthony Green <green@cygnus.com>
6775 * Makefile.in: Rebuilt.
6776 * Makefile.am (ordinary_java_source_files): Add
6777 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6779 * scripts/MakeDefaultMimeTypes.java: New file.
6780 * scripts/mime.types: New file.
6781 * scripts/classes.pl: Moved from top level.
6782 * classes.pl: Moved to scripts directory.
6784 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6786 * gnu/gcj/io/MimeTypes.java: New file.
6787 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6789 2000-02-20 Tom Tromey <tromey@cygnus.com>
6791 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6793 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6795 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6798 2000-02-18 Tom Tromey <tromey@cygnus.com>
6800 * include/jvm.h (_Jv_GetJavaVM): Declare.
6801 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6802 (_Jv_MethodBase::get_method): New method.
6803 (_Jv_JNIMethod::set_function): New method.
6804 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6805 (_Jv_JNI_RegisterNatives): New function.
6806 (_Jv_JNIFunctions): Updated for new functions.
6807 (_Jv_GetJavaVM): New function.
6808 (_Jv_JNI_GetJavaVM): Use it. Now static.
6809 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6810 is already a Java thread but does not have a JNIEnv yet.
6812 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6815 2000-02-17 Tom Tromey <tromey@cygnus.com>
6817 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6820 2000-02-16 Tom Tromey <tromey@cygnus.com>
6822 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6824 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6825 (_Jv_JNI_NewObject): Likewise.
6826 (_Jv_JNI_NewObjectA): Likewise.
6827 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6828 as "return" type to _Jv_CallAnyMethodA.
6829 (_Jv_JNI_CallAnyMethodA): Likewise.
6830 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6832 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6835 2000-02-15 Tom Tromey <tromey@cygnus.com>
6837 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6839 (init_cif): Added `rtype_p' argument.
6840 * include/java-interp.h (class _Jv_MethodBase): Added
6842 (class _Jv_InterpMethod): Removed args_raw_size.
6843 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6844 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6845 class pointer as well as the ordinary arguments.
6847 * jni.cc (mangled_name): Skip leading `(' in signature.
6849 * jni.cc (add_char): Added missing `else'.
6851 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6854 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6858 * java/lang/natRuntime.cc (_load): Include library path with
6861 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6864 * java/lang/natThread.cc (dumpStack): Removed.
6865 * java/lang/Thread.java (dumpStack): Implemented.
6867 2000-02-15 Tom Tromey <tromey@cygnus.com>
6869 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6870 with `lib' for loadLibrary. Fixes PR gcj/150.
6872 2000-02-14 Warren Levy <warrenl@cygnus.com>
6874 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6876 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6880 (modPow): Rewritten to not use the naive, slow, brute force approach.
6881 (isProbablePrime): Implemented.
6882 (testBit): Implemented.
6883 (flipBit): Implemented.
6884 (getLowestSetBit): Implemented.
6886 2000-02-16 Anthony Green <green@redhat.com>
6888 * configure.host: Use the same options for i386 and i486 as we do
6891 2000-02-12 Tom Tromey <tromey@cygnus.com>
6893 * java/io/File.java (createTempFile): Use low bits from counter,
6896 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6898 * THANKS: More thanks.
6900 2000-02-11 Tom Tromey <tromey@cygnus.com>
6902 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6903 astore instruction. From Hans Boehm.
6905 2000-02-11 Warren Levy <warrenl@cygnus.com>
6907 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6908 (BigInteger(String)): New constructor.
6909 (not): Rewritten using version from Kawa's BitOps class.
6910 (valueOf): New private methods from Kawa's BitOps class.
6917 (andNot): Implemented.
6918 (clearBit): Implemented.
6919 (setBit): Implemented.
6920 (bitCount): Implemented.
6921 (toByteArray): Implemented.
6923 2000-02-11 Tom Tromey <tromey@cygnus.com>
6925 * java/io/File.java (nextValue): Now synchronized.
6927 2000-02-10 Tom Tromey <tromey@cygnus.com>
6929 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6930 * java/io/FileDescriptor.java (EXCL): New static field.
6931 * java/io/File.java (tmpdir): New static field.
6932 (createTempFile): New method.
6933 (nextValue): New method.
6934 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6937 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6938 (jboolean): Declare as an attributed int, not a bool.
6939 (_Jv_func): Declare differently for C.
6941 * gnu/gcj/jni/natNativeThread.cc: New file.
6942 * gnu/gcj/jni/NativeThread.java: New file.
6943 * java/lang/Thread.java (data): Now a RawData.
6944 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6946 * Makefile.in: Rebuilt.
6947 * Makefile.am (java/lang/Thread.h): New target.
6948 (ordinary_java_source_files): Added NativeThread.java.
6949 (nat_source_files): Added natNativeThread.cc.
6950 * java/lang/natThread.cc: Include <jni.h>
6951 (struct natThread): Added `jni_env' field.
6952 (_Jv_GetCurrentJNIEnv): New function.
6953 (_Jv_SetCurrentJNIEnv): Likewise.
6954 (initialize_native): Initialize jni_env.
6956 * jni.cc (ThreadGroupClass): New define.
6957 (_Jv_JNI_InvokeFunctions): New structure.
6958 (JNI_GetCreatedJavaVMs): New function.
6959 (the_vm): New global.
6960 (JNI_GetDefaultJavaVMInitArgs): New function.
6961 Include NativeThread.h.
6962 (NativeThreadClass): New define.
6963 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6964 (_Jv_JNI_DestroyJavaVM): New function.
6965 (_Jv_JNI_AttachCurrentThread): New function.
6966 (_Jv_JNI_DetachCurrentThread): New function.
6967 (_Jv_JNI_GetEnv): New function.
6968 (JNI_CreateJavaVM): New function.
6969 (_Jv_JNI_GetJavaVM): New function.
6970 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6971 * include/jni.h (JavaVMAttachArgs): New structure.
6972 (JNI_EDETACHED): New define.
6973 (JNI_EVERSION): Likewise.
6974 (JavaVM): Define properly.
6975 (struct JNIInvokeInterface): New structure.
6976 (class _Jv_JavaVM): New class.
6977 (JNI_OnLoad, JNI_OnUnload): Declare.
6978 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6979 JNI_GetCreatedJavaVMs): Declare.
6980 (JavaVMInitArgs): New typedef.
6981 (JavaVMOption): Likewise.
6982 (JNI_ERR): New define.
6985 2000-02-10 Andrew Haley <aph@cygnus.com>
6987 * interpret.cc: Don't include fdlibm.h.
6988 Replace #if with #ifdef throughout.
6989 Declare extern __ieee754_fmod.
6990 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6992 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6993 Search class hierarchy for superclass vtable.
6995 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6996 off the end of a pointer list.
6998 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7002 2000-02-09 Tom Tromey <tromey@cygnus.com>
7004 * java/lang/natRuntime.cc (_load): Call add_library.
7005 (loadLibraryInternal): Likewise.
7007 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7008 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7009 (Output_iconv::finalize): Likewise.
7011 2000-02-08 Tom Tromey <tromey@cygnus.com>
7013 * java/util/Properties.java (setProperty): New method.
7014 (store): New method.
7016 2000-02-07 Tom Tromey <tromey@cygnus.com>
7018 * java/lang/Runtime.java (_load): Declare.
7019 (load, loadLibrary): Wrote in terms of _load.
7020 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7022 (loadLibrary): Likewise.
7024 (_load): New method.
7025 (loadLibrary, load): Removed.
7027 * jni.cc (ThrowableClass): New define.
7028 (_Jv_JNI_Throw): Check argument.
7029 (_Jv_JNI_ThrowNew): Likewise.
7030 (wrap_value): Don't wrap object if it is NULL.
7031 (_Jv_JNI_DefineClass): Use wrap_value.
7032 (_Jv_JNI_FindClass): Likewise.
7033 (_Jv_JNI_GetSuperclass): Likewise.
7034 (_Jv_JNI_ExceptionOccurred): Likewise.
7035 (_Jv_JNI_AllocObject): Likewise.
7036 (_Jv_JNI_GetObjectClass): Likewise.
7037 (_Jv_JNI_NewString): Likewise.
7038 (_Jv_JNI_NewStringUTF): Likewise.
7039 (_Jv_JNI_NewObjectArray): Likewise.
7040 (_Jv_JNI_GetObjectArrayElement): Likewise.
7041 (_Jv_JNI_NewPrimitiveArray): Likewise.
7042 (_Jv_JNI_ToReflectedField): Likewise.
7043 (_Jv_JNI_ToReflectedMethod): Likewise.
7044 (_Jv_JNI_AllocObject): Check argument.
7045 (_Jv_JNI_NewObjectV): Likewise.
7046 (_Jv_JNI_NewObject): Likewise.
7047 (_Jv_JNI_NewObjectA): Likewise.
7048 (_Jv_JNI_GetObjectClass): Likewise.
7049 (_Jv_JNI_GetField): Likewise.
7050 (_Jv_JNI_SetField): Likewise.
7052 * interpret.cc (PUSHL): Don't use expression statement.
7057 * jni.cc (add_char): Conditional on INTERPRETER.
7058 (mangled_name): Likewise.
7060 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7062 (class _Jv_JNIMethod): Likewise.
7064 2000-02-04 Warren Levy <warrenl@cygnus.com>
7066 * Makefile.am: Added MPN.java and BigInteger.java.
7067 * Makefile.in: Rebuilt.
7068 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7070 * java/math/BigInteger.java: New file. Based primarily on
7071 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7073 2000-02-04 Tom Tromey <tromey@cygnus.com>
7075 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7077 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7078 if the method is native.
7079 * resolve.cc (ncode): Don't handle native methods.
7080 (_Jv_JNIMethod::ncode): New method.
7081 (_Jv_PrepareClass): Handle native methods.
7082 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7083 Include AbstractMethodError.h.
7084 (add_char): New function.
7085 (mangled_name): Likewise.
7086 * include/java-interp.h (class _Jv_JNIMethod): New class.
7087 (class _Jv_MethodBase): New class.
7088 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7089 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7092 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7093 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7094 libraries): New globals.
7095 (add_library): New function.
7096 (_Jv_FindSymbolInExecutable): New function.
7098 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7101 2000-02-04 Andrew Haley <aph@cygnus.com>
7103 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7104 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7105 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7106 printStackTrace to printRawStackTrace.
7108 2000-02-03 Tom Tromey <tromey@cygnus.com>
7110 * java/util/Calendar.java (toString): New method.
7111 * java/util/SimpleTimeZone.java (clone): New method.
7112 (toString): New method.
7113 * java/util/TimeZone.java (clone): New method.
7114 * java/text/SimpleDateFormat.java (clone): New method.
7115 * java/text/NumberFormat.java (clone): New method.
7116 (equals): New method.
7117 * java/text/Format.java (clone): New method.
7118 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7120 (clone): New method.
7121 * java/text/DateFormat.java (clone): New method.
7122 * java/text/Collator.java (clone): New method.
7124 2000-02-03 Tom Tromey <tromey@cygnus.com>
7126 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7129 2000-02-01 Tom Tromey <tromey@cygnus.com>
7131 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7132 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7133 constructing the closure if the function is native.
7134 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7135 a template function, #if'd out, or static.
7136 Include <java-interp.h>.
7138 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7140 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7142 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7143 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7145 (wrap_value): New function.
7146 (_Jv_JNI_CallAnyMethodV): Use it.
7147 (_Jv_JNI_CallAnyMethodA): Likewise.
7148 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7149 (_Jv_JNI_GetStaticField): Likewise.
7151 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7152 (_Jv_JNI_GetStaticField): Likewise.
7154 2000-01-31 Tom Tromey <tromey@cygnus.com>
7156 * prims.cc (_Jv_MallocUnchecked): New function.
7157 (main_init): Call _Jv_JNI_Init.
7158 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7159 (_Jv_JNI_Init): Declare.
7160 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7162 (_Jv_JNI_NewGlobalRef): New function.
7163 (_Jv_JNI_DeleteGlobalRef): New function.
7164 (_Jv_JNI_DeleteLocalRef): New function.
7165 (_Jv_JNI_conversion_call): Initialize and clear local reference
7167 (_Jv_JNI_NewLocalRef): New function.
7168 (struct _Jv_JNI_LocalFrame): New structure.
7169 (_Jv_JNI_PushLocalFrame): New function.
7170 (_Jv_JNI_EnsureLocalCapacity): New function.
7171 (FRAME_SIZE): New define.
7172 (_Jv_JNI_GetStringChars): Mark string, not characters.
7173 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7174 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7175 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7177 (_Jv_JNI_DefineClass): Make return value a local ref.
7178 (_Jv_JNI_FindClass): Likewise.
7179 (_Jv_JNI_GetSuperclass): Likewise.
7180 (_Jv_JNI_ExceptionOccurred): Likewise.
7181 (_Jv_JNI_AllocObject): Likewise.
7182 (_Jv_JNI_GetObjectClass): Likewise.
7183 (_Jv_JNI_CallAnyMethodV): Likewise.
7184 (_Jv_JNI_NewString): Likewise.
7185 (_Jv_JNI_NewStringUTF): Likewise.
7186 (_Jv_JNI_NewObjectArray): Likewise.
7187 (_Jv_JNI_GetObjectArrayElement): Likewise.
7188 (_Jv_JNI_ToReflectedField): Likewise.
7189 (_Jv_JNI_ToReflectedMethod): Likewise.
7190 (_Jv_JNIFunctions): Updated table for new functions.
7191 (_Jv_JNI_Init): New function.
7192 (mark_for_gc): Wrote.
7193 (unmark_for_gc): Wrote.
7194 * include/jni.h (struct JNINativeInterface): Removed name from
7195 PopLocalFrame parameter.
7196 (class _Jv_JNIEnv): Added `locals' field.
7198 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7200 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7203 2000-01-30 Tom Tromey <tromey@cygnus.com>
7205 * include/config.h.in: Rebuilt.
7206 * acconfig.h (HAVE_ICONV): Define.
7207 * configure: Rebuilt.
7208 * configure.in: Check for `iconv' function.
7209 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7210 no specific encoder exists.
7211 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7212 no specific encoder exists.
7213 * Makefile.in: Rebuilt.
7214 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7216 (nat_source_files): Added natIconv.cc.
7217 * gnu/gcj/convert/natIconv.cc: New file.
7218 * gnu/gcj/convert/Input_iconv.java: New file.
7219 * gnu/gcj/convert/Output_iconv.java: New file.
7221 2000-01-28 Tom Tromey <tromey@cygnus.com>
7223 * Makefile.in: Rebuilt.
7224 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7226 2000-01-26 Tom Tromey <tromey@cygnus.com>
7228 * gcj/method.h (JvNumMethods): Moved from Class.h.
7229 (JvGetFirstMethod): Likewise.
7230 * java/lang/Class.h (Object): Updated decl of
7231 _Jv_JNI_ToReflectedField.
7232 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7233 * Makefile.in: Rebuilt.
7234 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7235 argument of _Jv_JNI_ToReflectedField.
7236 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7238 (java/lang/reflect/Method.h): Likewise.
7239 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7241 (jweak): New typedef.
7242 (struct JNINativeInterface): Correctly declare remaining entries.
7243 * jni.cc: Include Class.h, ClassLoader.h.
7244 (_Jv_JNI_FindClass): New function.
7245 (_Jv_JNI_DefineClass): New function.
7246 (_Jv_JNI_conversion_call): New function.
7247 (_Jv_JNI_FindClass): Use current class loader to find class.
7248 (_Jv_JNI_ExceptionCheck): New function.
7249 (_Jv_JNI_FromReflectedField): Now static.
7250 (MethodClass): New define.
7251 (_Jv_JNI_FromReflectedMethod): New function.
7252 (_Jv_JNI_ToReflectedMethod): Likewise.
7254 (_Jv_JNI_IsAssignableFrom): Renamed.
7255 (_Jv_JNI_GetStringRegion): New function.
7256 Include StringIndexOutOfBoundsException.h.
7257 (_Jv_JNI_GetStringUTFRegion): New function.
7258 (_Jv_JNIFunctions): Updated for new functions.
7259 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7260 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7261 (_Jv_JNI_GetStringCritical): New function.
7262 (_Jv_JNI_ReleaseStringCritical): Likewise.
7263 (get_throwable): Removed.
7264 (GCJ_JV_JNIENV_FRIEND): Removed.
7265 (__GCJ_JNI_IMPL__): Define.
7268 * resolve.cc (get_ffi_type_from_signature): Handle case where
7271 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7273 * interpret.cc (run): Don't call println.
7274 Don't include PrintStream.h.
7276 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7277 nameIndex. Use "jint" as type for boffset.
7278 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7280 (Class): Likewise. Also changed type of method_count,
7281 vtable_method_count, size_in_bytes, field_count,
7282 static_field_count, interface_count.
7283 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7286 2000-01-21 Tom Tromey <tromey@cygnus.com>
7288 * java/lang/reflect/natConstructor.cc (newInstance): Use
7290 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7291 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7292 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7295 (invoke): Use _Jv_CallAnyMethodA.
7297 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7298 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7300 (struct _Jv_Method): Added getNextMethod method.
7301 (JvNumMethods): New function.
7302 (JvGetFirstMethod): Likewise.
7303 * gcj/field.h (JvGetFirstStaticField): New function.
7304 (JvNumStaticFields): Likewise.
7305 (getNextField): Renamed from getNextInstanceField.
7306 (struct _Jv_Field): New method getClass.
7307 * jni.cc: Wrote many new functions.
7308 * include/jni.h (JNI_TRUE): Define.
7309 (JNI_FALSE): Likewise.
7310 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7311 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7312 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7313 (jfieldID, jmethodID): Likewise.
7314 (JNI_COMMIT, JNI_ABORT): New defines.
7315 (JNINativeMethod): New struct.
7316 (struct JNINativeInterface): Correctly declared more entries.
7317 (class _Jv_JNIEnv): Added `ex' member.
7318 (JNI_VERSION_1_1): New define.
7319 (JNI_VERSION_1_2): Likewise.
7321 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7322 getNextInstanceField.
7324 2000-01-20 Tom Tromey <tromey@cygnus.com>
7326 * resolve.cc (StringClass): Removed.
7327 * defineclass.cc (StringClass): Removed.
7329 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7333 2000-01-19 Tom Tromey <tromey@cygnus.com>
7335 * interpret.cc (PC_REGISTER_ASM): Removed.
7337 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7338 From Bryce McKinlay.
7340 * All files: Updated copyright to reflect Cygnus purchase.
7342 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7344 * configure: Rebuilt.
7345 * configure.in: Recognize --disable-interpreter.
7347 2000-01-18 Andrew Haley <aph@cygnus.com>
7349 * name-finder.cc (lookup): Check for dladdr function.
7350 acconfig.h (HAVE_DLADDR): Add.
7351 configure.in: Check for HAVE_DLADDR
7353 include/config.h.in: Rebuilt.
7355 2000-01-17 Andrew Haley <aph@cygnus.com>
7357 * prims.cc (_Jv_RunMain): Set the name of this executable.
7359 2000-01-17 Tom Tromey <tromey@cygnus.com>
7361 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7362 when backtrace can't be computed.
7364 * configure: Rebuilt.
7365 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7367 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7368 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7369 (_Jv_FindClassInCache): Likewise.
7370 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7371 (findSystemClass): Try to load class from compiled module.
7373 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7374 (loadLibrary): Likewise.
7375 (lt_preloaded_symbols): Define.
7376 (loadLibraryInternal): New method.
7377 * include/config.h.in: Rebuilt.
7378 * acconfig.h (USE_LTDL): Added.
7379 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7380 (INCLUDES): Added $(INCLTDL).
7381 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7382 (libgcj_la_LIBADD): Likewise.
7383 * aclocal.m4, configure: Rebuilt.
7384 * configure.in: Added libltdl support.
7386 2000-01-15 Tom Tromey <tromey@cygnus.com>
7388 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7390 2000-01-14 Andrew Haley <aph@cygnus.com>
7392 * java/lang/natThrowable.cc: New file.
7394 * java/lang/Throwable.java (fillInStackTrace): Make native.
7395 (printStackTrace): Call native method to do this.
7396 (Throwable): Call fillInStackTrace.
7397 (stackTrace): New variable.
7399 * include/jvm.h: Add _Jv_ThisExecutable functions.
7401 * prims.cc: (_Jv_execName): New variable.
7402 (catch_segv): Call fillInStackTrace.
7404 (_Jv_ThisExecutable): New functions.
7405 (JvRunMain): Set the name of this executable.
7407 * Makefile.am: Add java/lang/natThrowable.cc.
7409 * Makefile.in: Rebuilt.
7411 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7413 * configure.in: Force link with __frame_state_for in
7414 FORCELIBGCCSPEC. Add new checks for backtrace.
7415 * include/config.h.in: Rebuilt.
7417 * name-finder.cc: New file.
7418 * include/name-finder.h: New file.
7420 2000-01-16 Anthony Green <green@cygnus.com>
7422 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7425 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7427 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7429 2000-01-13 Tom Tromey <tromey@cygnus.com>
7431 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7432 not system loader, as initiating loader.
7434 2000-01-11 Tom Tromey <tromey@cygnus.com>
7436 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7437 HP/UX. From David Scott Urban.
7439 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7441 * java/lang/natMath.cc (pow): Cast args to `double', not
7444 (IEEEremainder): Likewise.
7445 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7446 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7448 2000-01-09 Anthony Green <green@cygnus.com>
7450 * java/lang/natString.cc (init): Test for overflow condition
7451 during out of bounds check.
7452 (getChars): Throw StringIndexOutOfBoundsException, not
7453 ArrayIndexOutOfBoundsException.
7455 (regionMatches): Obey case option during string comparison.
7457 * configure.host (ligcj_interpreter): New variable. Enable
7458 interpreter by default on IA-32.
7459 * configure.in: Examine libgcj_interpreter.
7460 * configure: Rebuilt.
7462 2000-01-07 Tom Tromey <tromey@cygnus.com>
7464 * mauve-libgcj: Don't disable ClassTest.
7466 * java/lang/natClass.cc (getClasses): Wrote.
7468 2000-01-06 Tom Tromey <tromey@cygnus.com>
7470 * java/lang/natClass.cc (_getConstructors): Correctly check
7471 whether method name is the init name.
7472 (getMethod): Look at accflags on method in `klass', not `this'.
7474 2000-01-05 Tom Tromey <tromey@cygnus.com>
7476 * java/lang/natClass.cc (getMethod): Compute offset relative to
7477 `klass's methods table, not `this's table.
7479 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7480 In unwrapping/widening case, check whether `k' is null, not
7481 whether it is primitive. Initialize `num' from `argelts', not
7482 `paramelts'. Correct create and pass arguments to ffi_call.
7483 Don't let presence of `this' argument affect index used to look in
7485 (COPY): Set appropriate element in `values' vector.
7487 * java/lang/natClass.cc: Include <gcj/method.h>.
7489 * java/lang/Class.h (_getMethods): Correctly declare as private,
7492 * java/lang/Class.h (_getMethods): Declare.
7493 * java/lang/Class.java (_getMethods): Declare.
7494 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7495 (getDeclaredClasses): Always return empty array.
7496 (_getMethods): New method.
7497 (getMethods): Wrote.
7498 (getDeclaredMethod): Return `rmethod'.
7499 (finit_name): New global.
7500 (getDeclaredMethods): Check for finit_name.
7501 (_getMethods): Likewise.
7502 (getMethod): Only return public methods.
7504 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7505 jboolean and select correct ffi type on that basis.
7506 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7507 Constructor call always has `void' return type.
7509 2000-01-04 Tom Tromey <tromey@cygnus.com>
7511 * java/lang/Class.h (getSignature): Updated.
7512 * java/lang/Class.java (getSignature): Updated.
7513 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7515 (getConstructor): Ensure constructor is public.
7516 (_getConstructors): Check for public-ness of constructor when
7517 `declared' is false, not when it is true.
7519 2000-01-04 Warren Levy <warrenl@cygnus.com>
7521 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7523 (receive): Set the sender's address in the DatagramPacket.
7525 2000-01-04 Tom Tromey <tromey@cygnus.com>
7527 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7528 declaring class as return_type argument to
7529 _Jv_CallNonvirtualMethodA.
7530 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7531 constructor case, create object and use it as `this' argument.
7532 * java/lang/Class.h (_getConstructors): Declare.
7533 (_getFields): Declare.
7534 * java/lang/Class.java (getConstructors): Wrote.
7535 (_getConstructors): New native method.
7536 (getDeclaredConstructors): Wrote.
7537 (_getFields): Declare new native method.
7538 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7540 (getMethod): Work correctly when class is primitive.
7541 (getDeclaredMethods): Likewise. Compute offset using `method',
7543 (getDeclaredMethod): Likewise.
7544 (getConstructor): Wrote.
7545 (ConstructorClass): New define.
7546 (getDeclaredConstructor): Wrote.
7547 (_getConstructors): New method.
7548 (_getFields): New method.
7551 * Makefile.in: Rebuilt.
7552 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7554 * prims.cc: Remove `#pragma implementation'.
7555 * gcj/array.h: Remove `#pragma interface'.
7557 * prims.cc (_Jv_equaln): New function.
7558 * java/lang/Class.java (getSignature): Declare.
7559 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7560 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7562 (getSignature): New method.
7563 (getDeclaredMethod): Wrote.
7565 Include StringBuffer.h.
7566 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7567 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7569 (getSignature): Declare.
7570 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7571 (_Jv_equaln): Declare.
7572 (_Jv_CallNonvirtualMethodA): Declare.
7573 * Makefile.in: Rebuilt.
7574 * Makefile.am (nat_source_files): Added natConstructor.cc.
7575 (java/lang/reflect/Constructor.h): New target.
7576 * java/lang/reflect/natConstructor.cc: New file.
7577 * java/lang/reflect/Constructor.java (newInstance): Now native.
7578 (declaringClass): Renamed from decl_class.
7579 (offset): Renamed from index.
7580 (getType): New native method.
7581 (getModifiers): Now native.
7582 (getParameterTypes): Call getType if required.
7583 (hashCode): Include hash code from declaring class.
7584 (modifiers): Removed.
7585 (toString): Call getType if required.
7586 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7587 * java/lang/reflect/natMethod.cc (hack_call): New method.
7588 Removed `#if 0' around FFI code.
7589 Include <gnu/gcj/RawData.h>.
7590 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7591 IllegalArgumentException when argument object and class disagree.
7592 (_Jv_GetTypesFromSignature): New function.
7594 (ObjectClass): New define.
7595 (_Jv_CallNonvirtualMethodA): New function.
7596 * java/lang/reflect/Method.java (hack_trampoline): New method.
7597 (hack_call): New native method.