1 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
4 here, DecimalFormat.applyPattern() does not throw it.
6 2001-09-04 Tom Tromey <tromey@redhat.com>
8 * java/util/AbstractMap.java: Re-merged with Classpath.
9 * java/util/IdentityHashMap.java: Re-merged with Classpath.
11 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
12 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
13 gnu/gcj/text/LocaleData_en_US.java: Removed.
14 * java/text/DateFormatSymbols.java (clone): Use Classpath
17 (DateFormatSymbols): Look in gnu.java.locale for information.
18 (DateFormatSymbols(DateFormatSymbols)): Removed.
19 (safeGetResource): Removed.
20 (DateFormatSymbols): Throws MissingResourceException.
21 (ampmsDefault, erasDefault, localPatternCharsDefault,
22 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
23 weekdaysDefault, zoneStringsDefault): Removed.
24 * java/text/Collator.java (getAvailableLocales): Use modified
25 Classpath implementation.
26 (getInstance): Look in gnu.java.locale for information.
28 * java/text/MessageFormat.java: Reindented.
30 * java/text/FieldPosition.java: Merged with Classpath.
31 * java/text/ParsePosition.java: Merged with Classpath.
32 * java/text/Format.java: Merged with Classpath.
33 * java/text/StringCharacterIterator.java
34 (StringCharacterIterator(StringCharacterIterator,int,int)): New
35 constructor from Classpath.
36 * java/text/Annotation.java,
37 java/text/AttributedCharacterIterator.java,
38 java/text/AttributedString.java,
39 java/text/AttributedStringIterator.java: New from Classpath.
40 * java/text/CharacterIterator.java: Copied from Classpath.
41 * java/text/ChoiceFormat.java: Reindented.
43 * gnu/java/text/BaseBreakIterator.java,
44 gnu/java/text/CharacterBreakIterator.java,
45 gnu/java/text/LineBreakIterator.java,
46 gnu/java/text/LocaleData_en.java,
47 gnu/java/text/LocaleData_en_US.java,
48 gnu/java/text/SentenceBreakIterator.java,
49 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
50 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
52 * java/text/BreakIterator.java (getAvailableLocales): Use
53 Classpath implementation.
54 (getInstance): Look in gnu.java.locale for information.
55 (getCharacterInstance, getLineInstance, getSentenceInstance,
56 getWordInstance): Look in gnu.java.text for implementations.
57 * java/text/DecimalFormatSymbols.java: Reindented
58 (clone): Use Classpath implementation.
59 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
60 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
62 * java/text/DateFormat.java: Merged with Classpath.
63 (getAvailableLocales): Use Classpath implementation.
64 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
65 (computeInstance): Look in gnu.java.locale for information.
66 * java/text/NumberFormat.java: Reindented.
67 (computeInstance): Look in gnu.java.locale for information.
68 (getAvailableLocales): Use implementation from Classpath.
69 (setMaximumIntegerDigits): Likewise.
70 (setMinimumIntegerDigits): Likewise.
71 (setMaximumFractionDigits): Likewise.
73 * java/text/DecimalFormat.java: Reindented.
74 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
75 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
76 * Makefile.in: Rebuilt.
77 * Makefile.am (ordinary_java_source_files): Added all new files.
78 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
79 * java/security/spec/AlgorithmParameterSpec.java,
80 java/security/spec/KeySpec.java: Re-merged with Classpath.
82 Fix for PR libgcj/4213:
83 * Makefile.am (ordinary_java_source_files): Added new file.
84 * gnu/gcj/text/LocaleData.java: New file.
86 2001-09-03 Tom Tromey <tromey@redhat.com>
88 * java/lang/reflect/natField.cc (set): Allow for case when the
89 value is null. Fixes PR libgcj/4208.
91 * gcj/javaprims.h: Regenerated class list.
92 * java/lang/IllegalThreadStateException.java,
93 java/lang/InstantiationException.java: Minor comment tweaks to
94 satisfy libgcj `classes.pl' script.
96 2001-09-01 Tom Tromey <tromey@redhat.com>
98 * Makefile.in: Rebuilt.
99 * Makefile.am (core_java_source_files): Added
100 UnsupportedClassVersionError.
101 * java/lang/UnsupportedClassVersionError.java: New file from
104 * java/io/CharConversionException.java, java/io/EOFException.java,
105 java/io/FileNotFoundException.java, java/io/IOException.java,
106 java/io/InterruptedIOException.java,
107 java/io/ObjectStreamException.java,
108 java/io/OptionalDataException.java,
109 java/io/StreamCorruptedException.java,
110 java/io/SyncFailedException.java,
111 java/io/UTFDataFormatException.java,
112 java/io/UnsupportedEncodingException.java,
113 java/lang/AbstractMethodError.java,
114 java/lang/ArithmeticException.java,
115 java/lang/ArrayIndexOutOfBoundsException.java,
116 java/lang/ArrayStoreException.java,
117 java/lang/ClassCastException.java,
118 java/lang/ClassCircularityError.java,
119 java/lang/ClassFormatError.java,
120 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
121 java/lang/Exception.java,
122 java/lang/ExceptionInInitializerError.java,
123 java/lang/IllegalAccessError.java,
124 java/lang/IllegalAccessException.java,
125 java/lang/IllegalArgumentException.java,
126 java/lang/IllegalMonitorStateException.java,
127 java/lang/IllegalStateException.java,
128 java/lang/IllegalThreadStateException.java,
129 java/lang/IncompatibleClassChangeError.java,
130 java/lang/IndexOutOfBoundsException.java,
131 java/lang/InstantiationError.java,
132 java/lang/InstantiationException.java,
133 java/lang/InternalError.java, java/lang/InterruptedException.java,
134 java/lang/LinkageError.java,
135 java/lang/NegativeArraySizeException.java,
136 java/lang/NoClassDefFoundError.java,
137 java/lang/NoSuchFieldError.java,
138 java/lang/NoSuchFieldException.java,
139 java/lang/NoSuchMethodError.java,
140 java/lang/NoSuchMethodException.java,
141 java/lang/NullPointerException.java,
142 java/lang/NumberFormatException.java,
143 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
144 java/lang/SecurityException.java,
145 java/lang/StackOverflowError.java,
146 java/lang/StringIndexOutOfBoundsException.java,
147 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
148 java/lang/UnsatisfiedLinkError.java,
149 java/lang/UnsupportedOperationException.java,
150 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
151 java/lang/reflect/InvocationTargetException.java,
152 java/net/BindException.java, java/net/ConnectException.java,
153 java/net/MalformedURLException.java,
154 java/net/NoRouteToHostException.java,
155 java/net/ProtocolException.java, java/net/SocketException.java,
156 java/net/UnknownHostException.java,
157 java/net/UnknownServiceException.java,
158 java/text/ParseException.java: Copied from Classpath, thanks to
159 Mark Wielaard who did the merge.
161 * java/lang/System.java (getProperty): Use single argument form of
162 SecurityManager.checkPropertyAccess.
163 * Makefile.in: Rebuilt.
164 * Makefile.am (core_java_source_files): Added VMSecurityManager.
165 * java/lang/VMSecurityManager.java: New file.
166 * java/lang/SecurityManager.java: Merged with Classpath.
168 2001-08-31 Per Bothner <per@bothner.com>
170 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
171 (_Jv_RegisterClassHookDefault): Likewise.
172 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
173 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
174 (_Jv_RegisterClassHookDefault): New.function.
175 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
177 * java/lang/ClassLoader.java (system): Remove static field.
178 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
179 directly instead of using it to set the system field.
180 (loadClass): Use VMClassLoader.instance instead of system field.
181 (findSystemClass): Similar.
182 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
183 than ClassLoader::system which no longer exists.
184 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
186 2001-08-31 Tom Tromey <tromey@redhat.com>
188 * java/io/BufferedReader.java, java/io/ObjectInput.java,
189 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
190 Re-merged with Classpath.
192 Re-merge with Classpath:
193 * java/util/Comparator (equals): Added.
194 * java/io/PipedWriter.java (write): Changed argument to `int'.
196 * java/io/FileDescriptor.java (FileDescriptor()): New
198 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
200 * Makefile.in: Rebuilt.
201 * Makefile.am (ordinary_java_source_files): Removed
202 EnumerationChain, added DoubleEnumeration.
203 (nat_source_files): Added natResourceBundle.cc.
204 * java/util/natResourceBundle.cc: New file.
205 * gnu/java/util/DoubleEnumeration.java: New file.
206 * gnu/gcj/util/EnumerationChain.java: Removed.
207 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
208 * java/util/ResourceBundle.java: Merged with Classpath.
209 * java/util/StringTokenizer.java: Merged with Classpath.
210 * java/util/Locale.java: Merged with Classpath.
211 * java/util/Random.java: Merged with Classpath.
212 * java/util/PropertyResourceBundle.java: Merged with Classpath.
213 * java/util/ListResourceBundle.java: Merged with Classpath.
214 * java/util/ConcurrentModificationException.java: Re-merged with
216 * java/util/EmptyStackException.java: Likewise.
217 * java/util/MissingResourceException.java: Likewise.
218 * java/util/NoSuchElementException.java: Likewise.
219 * java/util/TooManyListenersException.java: Likewise.
221 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
222 * java/io/OptionalDataException.java: Merged with Classpath.
224 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
226 * exception.cc (PERSONALITY_FUNCTION): Simplify
229 2001-08-31 Tom Tromey <tromey@redhat.com>
231 * java/io/ByteArrayInputStream.java: Merged with Classpath.
233 2001-08-30 Tom Tromey <tromey@redhat.com>
235 * java/io/BufferedReader.java: Re-merged with Classpath.
237 2001-08-28 Per Bothner <per@bothner.com>
239 * java/math/BigInteger.java (init(int,Random)): New method.
240 Move body of constructor <init>(int,Random)) here.
241 Re-write it to avoid constructing unneeded temporaries.
242 (<init>(int,int,Random)): Use new init method to avoid constructing
243 extra temporary BigIntegers.
245 2001-08-27 Tom Tromey <tromey@redhat.com>
247 * java/rmi/activation/Activatable.java,
248 java/rmi/activation/ActivateFailedException.java,
249 java/rmi/activation/ActivationDesc.java,
250 java/rmi/activation/ActivationException.java,
251 java/rmi/activation/ActivationGroup.java,
252 java/rmi/activation/ActivationGroupDesc.java,
253 java/rmi/activation/ActivationGroupID.java,
254 java/rmi/activation/ActivationID.java,
255 java/rmi/activation/ActivationInstantiator.java,
256 java/rmi/activation/ActivationMonitor.java,
257 java/rmi/activation/ActivationSystem.java,
258 java/rmi/activation/Activator.java,
259 java/rmi/activation/UnknownGroupException.java,
260 java/rmi/activation/UnknownObjectException.java,
261 java/rmi/AccessException.java,
262 java/rmi/AlreadyBoundException.java,
263 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
264 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
265 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
266 java/rmi/NotBoundException.java,
267 java/rmi/RMISecurityException.java,
268 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
269 java/rmi/RemoteException.java, java/rmi/ServerError.java,
270 java/rmi/ServerException.java,
271 java/rmi/ServerRuntimeException.java,
272 java/rmi/StubNotFoundException.java,
273 java/rmi/UnexpectedException.java,
274 java/rmi/UnknownHostException.java,
275 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
276 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
277 java/rmi/registry/LocateRegistry.java,
278 java/rmi/registry/Registry.java,
279 java/rmi/registry/RegistryHandler.java,
280 java/rmi/server/ExportException.java,
281 java/rmi/server/LoaderHandler.java,
282 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
283 java/rmi/server/Operation.java,
284 java/rmi/server/RMIClassLoader.java,
285 java/rmi/server/RMIClientSocketFactory.java,
286 java/rmi/server/RMIFailureHandler.java,
287 java/rmi/server/RMIServerSocketFactory.java,
288 java/rmi/server/RMISocketFactory.java,
289 java/rmi/server/RemoteCall.java,
290 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
291 java/rmi/server/RemoteServer.java,
292 java/rmi/server/RemoteStub.java,
293 java/rmi/server/ServerCloneException.java,
294 java/rmi/server/ServerNotActiveException.java,
295 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
296 java/rmi/server/SkeletonMismatchException.java,
297 java/rmi/server/SkeletonNotFoundException.java,
298 java/rmi/server/SocketSecurityException.java,
299 java/rmi/server/UID.java,
300 java/rmi/server/UnicastRemoteObject.java,
301 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
302 gnu/java/rmi/dgc/DGCImpl_Skel.java,
303 gnu/java/rmi/dgc/DGCImpl_Stub.java,
304 gnu/java/rmi/registry/RegistryImpl.java,
305 gnu/java/rmi/registry/RegistryImpl_Skel.java,
306 gnu/java/rmi/registry/RegistryImpl_Stub.java,
307 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
308 gnu/java/rmi/server/ProtocolConstants.java,
309 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
310 gnu/java/rmi/server/RMIHashes.java,
311 gnu/java/rmi/server/RMIObjectInputStream.java,
312 gnu/java/rmi/server/RMIObjectOutputStream.java,
313 gnu/java/rmi/server/UnicastConnection.java,
314 gnu/java/rmi/server/UnicastConnectionManager.java,
315 gnu/java/rmi/server/UnicastRef.java,
316 gnu/java/rmi/server/UnicastRemoteCall.java,
317 gnu/java/rmi/server/UnicastRemoteStub.java,
318 gnu/java/rmi/server/UnicastServer.java,
319 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
320 Kaffe. Relabelled classes to fit into Classpath tree.
321 * Makefile.in: Rebuilt.
322 * Makefile.am (rmi_java_source_files): New macro.
323 (ordinary_java_source_files): Reference it.
324 (bin_PROGRAMS): Added rmic and rmiregistry.
325 (rmic_SOURCES): New macro.
326 (EXTRA_rmic_SOURCES): Likewise.
327 (rmic_LDFLAGS): Likewise.
328 (rmic_LINK): Likewise.
329 (rmic_LDADD): Likewise.
330 (rmic_DEPENDENCIES): Likewise.
331 (rmiregistry_SOURCES): New macro.
332 (EXTRA_rmiregistry_SOURCES): Likewise.
333 (rmiregistry_LDFLAGS): Likewise.
334 (rmiregistry_LINK): Likewise.
335 (rmiregistry_LDADD): Likewise.
336 (rmiregistry_DEPENDENCIES): Likewise.
338 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
340 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
342 * Makefile.am: New friends for java/lang/Thread.h.
343 * prims.cc (runFirst): Removed.
344 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
345 (_Jv_RunMain): Now takes either a klass or class name parameter.
346 Create a gnu.gcj.runtime.FirstThread and attach the native thread
347 to that, then run it using _Jv_ThreadRun. Remove special handling of
348 jar files, instead pass is_jar parameter through to FirstThread.
349 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
350 of _Jv_AttachCurrentThread.
351 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
352 (run): New method. Take care of looking up main class manifest
353 attribute and calling forName if neccessary. Then call call_main.
354 (call_main): New native method.
355 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
356 relocated from prims.cc. Look up and call main method.
357 * java/lang/Thread.java (run_): Removed.
358 * java/lang/natThread.cc (run_): Renamed to...
359 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
360 (_Jv_NotifyThreadStart): here. New function.
361 (countStackFrames, destroy, resume, suspend, stop): Throw
362 UnsupportedOperationExceptions rather than JvFail'ing.
363 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
364 Existing version wraps new variant.
367 2001-08-23 Tom Tromey <tromey@redhat.com>
369 * java/lang/reflect/Field.java (toString): Use
370 Method.appendClassName.
371 * java/lang/reflect/Constructor.java (toString): Use
372 Method.appendClassName.
373 * java/lang/reflect/Method.java: Reindented.
374 (appendClassName): New method.
376 * defineclass.cc (handleMethod ): Initialize `throws' field of
378 (read_one_method_attribute): Handle Exceptions attribute.
379 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
380 (ObjectClass): Removed.
381 (getType): Compute `exception_types'.
382 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
384 2001-08-21 Anthony Green <green@redhat.com>
386 * java/lang/natClassLoader.cc (findClass): Search for
387 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
389 2001-08-21 Jeff Sturm <jsturm@one-point.com>
391 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
394 2001-08-20 Tom Tromey <tromey@redhat.com>
396 * java/awt/GridBagConstraints.java: Removed comment.
398 * jni.cc (nathash, nathash_count, nathash_size): New globals.
399 (DELETED_ENTRY): New define.
400 (hash): New function.
401 (nathash_find_slot): Likewise.
402 (natrehash): Likewise.
403 (nathash_add): Likewise.
404 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
406 (nathash_find): New function.
407 (_Jv_LookupJNIMethod): Use it. Synchronize body.
408 (call): Synchronize around assignment.
410 2001-08-17 Jeff Sturm <jsturm@one-point.com>
412 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
413 starting from zero offset.
415 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
417 * boehm.cc: Include gc_local_alloc.h if appropriate.
418 (GC_GENERIC_MALLOC): Don't define.
419 (MAYBE_MARK): Redefine for GC 6.0.
420 (_Jv_MarkObj): Mark class differently.
421 (_Jv_AllocArray): Use GC_generic_malloc.
423 2001-08-17 Mark J Roberts <mjr@anarcast.net>
425 * java/math/BigInteger.java (randBytes): New method.
426 (BigInteger(int,Random)): Use randBytes.
428 2001-08-17 Tom Tromey <tromey@redhat.com>
430 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
432 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
434 * BigInteger.java: fix right shifts by nonzero multiples of 32.
436 2001-08-15 Tom Tromey <tromey@redhat.com>
438 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
439 (local_ref_table, global_ref_table): Now IdentityHashMap.
440 (_Jv_JNI_Init): Updated for new types.
441 (mark_for_gc): Likewise.
442 (unmark_for_gc): Likewise.
443 * gcj/javaprims.h: Rebuilt class list.
444 * Makefile.in: Rebuilt.
445 * Makefile.am (core_java_source_files): Added new file.
446 * java/util/IdentityHashMap.java: New file.
448 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
451 2001-08-09 Tom Tromey <tromey@redhat.com>
453 * java/awt/image/SampleModel.java (getPixel): Set correct array
454 element. From Chris Meyer.
456 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
458 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
459 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
461 2001-08-06 Tom Tromey <tromey@redhat.com>
463 * java/io/InputStreamReader.java (refill): Only call refill on
464 BufferedInputStream when appropriate constraints are met.
466 2001-08-05 Tom Tromey <tromey@redhat.com>
468 * java/io/StringWriter.java: Merged with Classpath.
469 * java/io/InputStream.java: Merged with Classpath.
470 * java/io/OutputStream.java: Merged with Classpath.
471 * java/io/PushbackInputStream.java: Merged with Classpath.
472 * java/io/CharArrayReader.java: Merged with Classpath.
473 * java/io/CharArrayWriter.java: Merged with Classpath.
475 2001-08-02 Tom Tromey <tromey@redhat.com>
477 * prims.cc (JNI_OnLoad): Don't declare.
478 (_JNI_OnLoad): Don't define.
479 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
481 2001-08-02 Tom Tromey <tromey@redhat.com>
483 * java/io/RandomAccessFile.java (seek): Let seek go past end of
485 (skipBytes): Don't fail if seeking past end of file.
486 * java/io/FileInputStream.java (skip): Don't fail if seeking past
488 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
490 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
492 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
494 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
496 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
498 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
499 to initialize global_ref_table/local_ref_table.
501 2001-08-02 Tom Tromey <tromey@redhat.com>
503 * configure: Rebuilt.
504 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
507 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
509 * include/posix.h (_POSIX_PII_SOCKET): Define.
510 * configure.in (HAVE_SOCKLEN_T): Define.
511 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
513 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
514 (java::net::PlainSocketImpl::accept): Use it.
515 Fixes PRs libgcj/3694, libgcj/3696.
517 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
518 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
519 * configure, include/config.h.in: Regenerate.
520 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
521 (mcastGrp): Likewise.
522 (java::net::PlainDatagramSocketImpl::setOption): Guard against
523 missing IPV6_MULTICAST_IF.
524 Fixes PR libgcj/3694.
526 2001-08-01 Jeff Sturm <jsturm@one-point.com>
528 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
530 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
532 * Makefile.in: Rebuilt.
533 * Makefile.am (GCJLINK): Added --tag=GCJ.
536 2001-07-30 Tom Tromey <tromey@redhat.com>
538 * java/util/Date.java: Re-merged with Classpath.
540 2001-07-30 Jeff Sturm <jsturm@one-point.com>
542 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
543 (_Jv_bind): New static function.
544 (bind): Use _Jv_bind.
545 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
546 (_Jv_bind, _Jv_connect): New static functions.
547 (bind): Use _Jv_bind.
548 (connect): Use _Jv_connect.
550 2001-07-30 Tom Tromey <tromey@redhat.com>
551 Corey Minyard <minyard@acm.org>
553 * gnu/gcj/convert/natIconv.cc (done): New methods.
554 * gnu/gcj/convert/Output_iconv.java (done): New method.
555 * gnu/gcj/convert/Input_iconv.java (done): New method.
556 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
558 (getDefaultEncodingClass): Removed.
559 (getDefaultEncoder): Use getEncoder.
561 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
563 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
565 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
567 (getDefaultDecodingClass): Removed.
568 (getDefaultDecoder): Use getDecoder.
569 (getDecoder): Look up decoder in cache.
571 * java/lang/natString.cc (init): Call `done' on converter.
572 (getBytes): Likewise.
574 2001-07-30 Tom Tromey <tromey@redhat.com>
576 * java/lang/Integer.java: Merged with Classpath.
578 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
580 * java/util/GregorianCalendar.java (GregorianCalendar): Call
581 setTimeInMillis() to set the default/current time.
583 2001-07-29 Mark Wielaard <mark@klomp.org>
585 * HACKING: add description on updating namespace
587 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
589 * java/util/Calendar.java (set): Never recompute fields here. They
590 will already be set if someone set time explicitly, and it can cause
591 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
592 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
593 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
595 * java/text/SimpleDateFormat.java (defaultCentury): New field.
596 (readObject): Call set2DigitYearStart if appropriate so that
597 defaultCentury is calculated.
598 (SimpleDateFormat): Don't bother clearing calendar here. Call
599 computeCenturyStart().
600 (set2DigitYearStart): Calculate and set defaultCentury.
601 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
603 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
604 2 numeric digits, use the 80-20 heuristic to parse the value into a
605 default century based on defaultCenturyStart.
606 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
608 2001-07-25 Tom Tromey <tromey@redhat.com>
610 * Makefile.in: Rebuilt.
611 * Makefile.am (libgcj.jar): Correctly fail when bytecode
614 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
616 * prims.cc (_JNI_OnLoad): New function.
617 (JNI_OnLoad): Use it.
618 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
620 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
622 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
623 Makefile.in: Regenerate.
625 2001-07-24 Tom Tromey <tromey@redhat.com>
627 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
630 2001-07-23 Tom Tromey <tromey@redhat.com>
632 * gcj/javaprims.h: Rebuilt class list.
633 * Makefile.in: Rebuilt.
634 * Makefile.am (core_java_source_files): Added VMClassLoader.
635 * java/lang/VMClassLoader.java: New file.
636 * java/lang/Boolean.java: Merged with Classpath.
637 * java/lang/Byte.java: Merged with Classpath.
638 * java/lang/Integer.java: Merged with Classpath.
639 * java/lang/Long.java: Merged with Classpath.
640 * java/lang/Number.java: Merged with Classpath.
641 * java/lang/Short.java: Merged with Classpath.
643 2001-07-22 Jeff Sturm <jsturm@one-point.com>
645 * configure.host: Enable hash synchronization for alpha*-*.
646 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
648 * java/lang/natObject.cc (compare_and_swap, release_set,
649 compare_and_swap_release): Added inline functions for alpha.
651 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
653 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
654 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
655 back to old RFC 2133 variants if missing.
657 2001-07-18 Tom Tromey <tromey@redhat.com>
659 * java/io/natFileWin32.cc (_access): Renamed.
661 * java/io/natFile.cc (_access): Renamed.
663 * java/io/File.java (access, stat): Add leading `_' to name.
666 2001-07-18 Tom Tromey <tromey@redhat.com>
669 * libgcj.spec.in (*lib): Added LIBICONV.
670 * configure: Rebuilt.
671 * configure.in: Call AM_ICONV. Don't check for iconv function.
672 Add parameters to JV_HASH_SYNCHRONIZATION define.
673 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
675 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
677 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
678 not by setting its size field.
680 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
682 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
685 2001-07-12 Tom Tromey <tromey@redhat.com>
686 David Brownell <david-b@pacbell.net>
688 Fix for PR libgcj/3426:
689 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
691 (read): Throw exception if character conversion fails.
692 * java/io/BufferedInputStream.java (refill): Now package-private.
693 * java/io/InputStreamReader.java (ready): Simplified.
694 (refill): New method.
697 2001-07-12 Tom Tromey <tromey@redhat.com>
699 Report from Henner Zeller:
700 * java/io/FileOutputStream.java (FileOutputStream): Throw
701 FileNotFoundException, not IOException.
703 2001-07-10 Anthony Green <green@redhat.com>
705 * Makefile.in: Rebuilt.
706 * Makefile.am: Add new files.
707 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
708 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
709 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
710 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
711 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
712 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
713 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
714 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
715 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
716 org/w3c/dom/ranges/DocumentRange.java,
717 org/w3c/dom/ranges/Range.java,
718 org/w3c/dom/ranges/RangeException.java,
719 org/w3c/dom/traversal/DocumentTraversal.java,
720 org/w3c/dom/traversal/NodeFilter.java,
721 org/w3c/dom/traversal/NodeIterator.java,
722 org/w3c/dom/traversal/TreeWalker.java,
723 org/xml/sax/ext/DeclHandler.java,
724 org/xml/sax/ext/LexicalHandler.java,
725 org/xml/sax/helpers/AttributeListImpl.java,
726 org/xml/sax/helpers/AttributesImpl.java,
727 org/xml/sax/helpers/DefaultHandler.java,
728 org/xml/sax/helpers/LocatorImpl.java,
729 org/xml/sax/helpers/NamespaceSupport.java,
730 org/xml/sax/helpers/ParserAdapter.java,
731 org/xml/sax/helpers/ParserFactory.java,
732 org/xml/sax/helpers/XMLFilterImpl.java,
733 org/xml/sax/helpers/XMLReaderAdapter.java,
734 org/xml/sax/helpers/XMLReaderFactory.java,
735 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
736 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
737 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
738 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
739 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
740 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
741 org/xml/sax/SAXNotRecognizedException.java,
742 org/xml/sax/SAXNotSupportedException.java,
743 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
744 org/xml/sax/XMLReader.java: New files.
746 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
748 * Makefile.am: Added `java/lang/ThreadLocal.java'.
749 * Makefile.in: Regenerate.
750 * java/lang/ThreadLocal.java: Initial import.
752 2001-07-07 Jeff Sturm <jsturm@one-point.com>
754 * Makefile.am (libgcj.jar): Don't recursively make
755 built_java_source_files. Avoid long command lines.
756 Don't change to $(srcdir) to invoke javac.
757 (libgcj.la, libgcjx.la); Avoid long command lines.
758 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
759 * Makefile.in: Rebuilt.
761 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
763 * include/i386-signal.h: Don't do anything with unsigned divide
764 overflow except throw an exception.
766 2001-07-05 Tom Tromey <tromey@redhat.com>
769 * java/lang/Class.h (Class(void)): Now private. Removed
770 implementation. From dmorsberger@sensysdl.com.
772 2001-07-02 Tom Tromey <tromey@redhat.com>
774 Fix for PR bootstrap/3281:
775 * aclocal.m4, configure: Rebuilt.
776 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
777 Correctly compute libgcj_basedir.
778 (mkinstalldirs): Define and subst.
780 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
783 * java/io/LineNumberReader.java (reset): Pass correct arguments to
786 2001-06-27 Tom Tromey <tromey@redhat.com>
788 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
791 2001-06-25 Tom Tromey <tromey@redhat.com>
793 * scripts/encodings.pl: Generate lower-case names. Updated URL
794 for `character-sets' file.
795 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
797 Rebuilt list of aliases.
799 2001-06-25 Tom Tromey <tromey@redhat.com>
801 * java/io/natFileDescriptorPosix.cc (open): Change error message
802 formatting. From David Brownell.
804 2001-06-21 Tom Tromey <tromey@redhat.com>
806 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
809 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
811 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
812 extraneous/malformed sign word.
814 2001-06-15 Tom Tromey <tromey@redhat.com>
816 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
818 2001-06-15 Tom Tromey <tromey@redhat.com>
820 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
821 NULL if no library on the list has the symbol.
822 (init): Call add_library on the program itself.
823 * prims.cc (JvRunMain): Initialize Runtime before searching for
825 (_Jv_RunMain): Likewise.
827 2001-06-15 Tom Tromey <tromey@redhat.com>
829 * jni.cc (ClassClass): Removed; updated all users.
830 (ObjectClass): Likewise.
831 (ThrowableClass): Likewise.
832 (MethodClass): Likewise.
833 (ThreadGroupClass): Likewise.
834 (local_ref_table): Renamed from `ref_table'.
835 (global_ref_table): New global.
836 (_Jv_JNI_Init): Initialize both ref tables.
837 (mark_for_gc): Added `ref_table' parameter.
838 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
840 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
841 (_Jv_JNI_DeleteGlobalRef): Likewise.
842 (_Jv_JNI_DeleteLocalRef): Likewise.
843 (_Jv_JNI_NewLocalRef): Likewise.
844 (_Jv_JNI_PopLocalFrame): Likewise.
845 (_Jv_JNI_GetStringChars): Likewise.
846 (_Jv_JNI_ReleaseStringChars): Likewise.
847 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
848 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
850 2001-06-14 Tom Tromey <tromey@redhat.com>
852 Fix for PR libgcj/3144:
853 * java/util/Date.java: Merged with Classpath.
855 2001-06-12 Tom Tromey <tromey@redhat.com>
857 * aclocal.m4, configure: Rebuilt.
858 * acinclude.m4: Find configure.host in srcdir.
860 2001-06-07 Tom Tromey <tromey@redhat.com>
862 Fix for PR libgcj/3059:
863 * java/lang/natSystem.cc (init_properties): Define `java.home'.
864 * Makefile.in: Rebuilt.
865 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
867 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
869 * exception.cc (cstdlib): Replaces stdlib.h.
870 (_Jv_Throw): Use std::abort().
871 (PERSONALITY_FUNCTION): Likewise.
873 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
875 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
876 nothing, as in autoconf 2.50.
877 * aclocal.m4, configure: Rebuilt.
879 2001-06-08 Tom Tromey <tromey@redhat.com>
881 * configure: Rebuilt.
882 * configure.in: Compute new aux dir using `pwd'.
884 2001-06-07 Tom Tromey <tromey@redhat.com>
886 For PR bootstrap/3075:
887 * configure, aclocal.m4, Makefile.am: Rebuilt.
888 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
889 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
890 relative to libgcj_basedir.
891 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
892 AC_CANONICAL_SYSTEM here.
893 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
895 ($(extra_headers)): New target.
897 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
898 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
900 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
901 table index is within allowed bounds. Ensure that we dont try to access
902 class itable at a negative offset. Avoid an ancestor table lookup if
903 source is a primitive type class.
904 (isInstance): Remove redundant isPrimitive() check.
906 2001-06-04 Tom Tromey <tromey@redhat.com>
908 * java/security/PublicKey.java: Extend Key.
909 * java/security/PrivateKey.java: Extend Key.
911 2001-06-02 Anthony Green <green@redhat.com>
913 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
914 alternate when USE_LTDL not defined.
916 2001-06-02 Anthony Green <green@redhat.com>
918 * configure: Rebuild.
919 * configure.in: Remove data_start hack.
920 * libgcj.spec.in: Ditto.
921 * Makefile.in: Rebuild.
922 * Makefile.am: Ditto.
923 * libgcjdata.c: Remove.
925 2001-06-02 Anthony Green <green@redhat.com>
927 * configure: Rebuild.
928 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
929 --without-libffi option. Tweak --disable-java-net processing.
930 * Makefile.in: Rebuild.
931 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
932 * include/config.h.in: Rebuild.
933 * acconfig.h (USE_LIBFFI): Define.
934 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
936 2001-06-02 Anthony Green <green@redhat.com>
938 * configure: Rebuilt.
939 * configure.in: Test for sigaction on native builds.
940 * prims.cc: Check HAVE_SIGACTION.
941 * include/config.h.in: Rebuilt.
943 2001-05-31 Jeff Sturm <jsturm@one-point.com>
945 * natFile.cc (get_entry): Removed functions.
946 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
947 Allocate enough storage for d_name if using readdir_r.
949 2001-05-31 Tom Tromey <tromey@redhat.com>
951 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
953 (write): Loop until write completes. From Corey Minyard.
955 2001-05-29 Laurent Guerby <guerby@acm.org>
957 * java/awt/geom/Rectangle2D.java: fix doc typo.
959 2001-05-31 Tom Tromey <tromey@redhat.com>
961 * java/sql/DriverManager.java (getDrivers): Handle case where
962 driver's class loader is null. From Corey Minyard.
964 2001-05-29 Tom Tromey <tromey@redhat.com>
966 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
968 * configure: Rebuilt.
969 * configure.in: Only add multilib support code if we just rebuilt
972 2001-05-29 Andrew Haley <aph@redhat.com>
974 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
975 pointer: the dwarf unwinder in libgcc will do everything that's
977 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
978 more than we absolutely need to.
979 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
980 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
982 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
984 * configure: Rebuilt.
985 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
987 (SIGNAL_HANDLER): Use siginfo style handler.
988 (INIT_SEGV): Likewise.
989 (INIT_FPE): Likewise.
990 * include/ppc-signal.h: Delete whole file.
992 2001-05-24 Tom Tromey <tromey@redhat.com>
994 * java/lang/natString.cc (init): Throw
995 ArrayIndexOutOfBoundsException.
996 (getChars): Likewise.
997 (getBytes): Likewise.
1000 * configure.in: Only allow hash synchronization when POSIX threads
1002 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1003 of sync info object.
1005 2001-05-23 Tom Tromey <tromey@redhat.com>
1007 * Makefile.in: Rebuilt.
1008 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1010 Revert patch of 2001-05-21:
1011 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1012 (libgcj_la_LIBADD): Likewise.
1013 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1014 (libgcjx_la_LIBADD): Likewise.
1016 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1017 * gcj/Makefile.in: Rebuilt.
1018 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1019 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1020 * gcj/libgcj-config.h.in: New file.
1021 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1022 * configure: Rebuilt.
1023 * configure.in: Enable hash synchronization by default on some
1025 (HASH_SYNC_SPEC): New subst.
1026 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1027 Correctly use `test -z' instead of `test -n' in a couple places.
1028 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1030 * configure.host (enable_java_net_default): Initialize.
1031 (enable_hash_synchronization_default): New variable.
1033 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1035 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1036 synchronization in use.
1037 (_Jv_MarkArray): Likewise.
1038 (_Jv_AllocBytes): Don't check return result.
1039 (handle_out_of_memory): New function.
1040 (_Jv_InitGC): Set GC_oom_fn.
1041 (trace_one_vtable): New global.
1042 (_Jv_AllocTraceOne): New function.
1043 * configure.in: Added --enable-hash-synchronization.
1044 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1045 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1046 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1047 (_Jv_AllocArray): Likewise.
1048 (_Jv_AllocBytes): Likewise.
1049 (_Jv_AllocPtrFreeObject): New function.
1050 (_Jv_AllocTraceOne): Likewise.
1051 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1053 (self_cache): New global.
1054 (_Jv_ThreadSelf_out_of_line): New function.
1055 * prims.cc (_Jv_AllocBytesChecked): Removed.
1056 (_Jv_ThrowNoMemory): New function.
1057 (_Jv_AllocObject): Don't check for null return from allocator.
1058 (_Jv_NewObjectArray): Likewise.
1059 (_Jv_AllocPtrFreeObject): New function.
1060 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1061 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1062 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1063 * include/boehm-gc.h (_Jv_AllocObj): Define.
1064 (_Jv_AllocPtrFreeObj): Define.
1065 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1066 (_Jv_ThrowNoMemory): Declare.
1067 (_Jv_AllocTraceOne): Declare.
1068 (_Jv_AllocBytesChecked): Removed.
1069 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1070 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1071 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1073 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1075 * java/lang/Object.h (sync_info): Conditional upon presence of
1076 hash synchronization.
1077 * java/lang/natObject.cc: Much new code to handle thin locks and
1078 hash synchronization.
1079 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1082 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1084 * gij.cc (version): Update copyright year.
1086 2001-05-22 Anthony Green <green@redhat.com>
1088 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1091 2001-05-21 Per Bothner <per@bothner.com>
1093 Implement invocation interface; don't create new thread for main.
1094 * java/lang/Thread.java (gen_name): Make native.
1095 (<init>(Thread,THreadGroup,Runnable,String)): New private
1096 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1097 * java/lang/natThread.cc (gen_name): New implementation.
1098 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1099 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1100 (_Jv_CreateJavaVM): New runtime initialization procedure.
1101 (runFirst): New proecdure - mostly code from old FirstThread::run.
1102 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1103 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1104 JvDetachCurrentThread): New inline wrappers.
1105 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1106 _Jv_DetachCurrentThread): New declarations.
1107 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1108 (getMain): new static method.
1109 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1110 by runFirst in prims.cc.
1111 (java/lang/Thread.h): Update for new invocation interface.
1112 * include/posix-threads.h (_Jv_ThreadRegister,
1113 _Jv_ThreadUnRegister): New declarations.
1114 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1115 (really_start): Use new _Jv_ThreadRegister.
1116 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1117 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1118 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1119 Complain of called when _Jv_OnlyThread already set.
1120 (_Jv_ThreadStart): Always JvFail.
1121 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1122 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1123 * win32-threads.cc (struct starter): Remove objet field -
1124 we use _Jv_Thread_t's new thread_obj field instead.
1125 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1126 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1127 (really_start): Use new _Jv_ThreadRegister.
1128 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1129 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1130 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1131 Removed - no longer needed with new invocation interface.
1132 * Makefile.am: Update for removed/added files.
1134 2001-05-21 Per Bothner <per@bothner.com>
1136 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1137 (libgcj_la_LIBADD): Likewise.
1138 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1140 2001-05-21 Per Bothner <per@bothner.com>
1142 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1143 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1144 taken from old Integer.toString code.
1145 (Integer::valueOf): Use _Jv_FormatInt.
1146 * java/lang/Integer.java (toString): Just use call String.valueOf.
1147 * java/lang/Long.java (toString): Fix typo in comment.
1148 * java/lang/String.java (valueOf(int)): Make native.
1149 * java/lang/StringBuffer.java (append(int)): Make native.
1150 * java/lang/natStringBuffer.cc: New file, for append(jint).
1151 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1153 2001-05-21 Tom Tromey <tromey@redhat.com>
1155 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1157 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1159 * include/dwarf2-signal.h: New file.
1160 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1161 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1162 * configure: Rebuilt.
1164 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1166 * configure.in: Update boehm-gc include dir for new GC version.
1167 * configure: Rebuilt.
1168 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1170 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1171 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1172 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1175 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1177 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1178 (_Jv_MutexInit): Likewise.
1180 2001-05-18 Tom Tromey <tromey@redhat.com>
1182 * Makefile.in: Rebuilt.
1183 * Makefile.am (awt_java_source_files): Added Polygon.java.
1185 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1187 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1188 * gcj/javaprims.h: ... here.
1189 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1191 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1193 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1194 with length of ioffset table.
1195 (_Jv_IsAssignableFrom): Likewise.
1197 2001-05-17 Per Bothner <per@bothner.com>
1199 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1201 2001-05-16 Tom Tromey <tromey@redhat.com>
1203 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1206 2001-05-15 Tom Tromey <tromey@redhat.com>
1208 * java/util/GregorianCalendar.java (computeTime): Only call
1211 2001-05-14 Tom Tromey <tromey@redhat.com>
1213 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1214 ZONE_OFFSET just before computing the time.
1216 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1218 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1219 * Makefile.in: Regenerate (by hand).
1220 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1221 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1223 2001-05-11 Richard Henderson <rth@redhat.com>
1225 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1226 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1228 2001-05-11 Richard Henderson <rth@redhat.com>
1230 * exception.cc: Include unwind-pe.h. Remove all pointer
1233 2001-05-10 Tom Tromey <tromey@redhat.com>
1235 * Makefile.in: Rebuilt.
1236 * Makefile.am (awt_java_source_files): Added Polygon.java.
1237 * java/awt/Polygon.java: New file.
1239 * java/awt/geom/AffineTransform.java
1240 (setToRotation(double,double,double)): New method.
1241 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1242 (setToShear): Likewise.
1244 2001-05-10 Tom Tromey <tromey@redhat.com>
1246 * java/util/GregorianCalendar.java: Imported from Classpath.
1247 * gnu/java/locale/LocaleInformation_nl.java: New file from
1249 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1250 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1251 * gnu/java/locale/LocaleInformation.java: Likewise.
1252 * natGregorianCalendar.cc: Removed.
1253 * Makefile.in: Rebuilt.
1254 * Makefile.am (nat_source_files): Removed
1255 natGregorianCalendar.cc.
1257 2001-05-10 Tom Tromey <tromey@redhat.com>
1259 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1261 (defaultCenturyStart): Use it.
1262 (readObject): Likewise.
1263 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1265 (parse): Copy the calendar before modifying it. Correctly handle
1268 * java/util/Calendar.java (clear): Set field value(s) to 0.
1270 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1272 * Calendar.java (get): Clear areFieldsSet if requested field
1274 (set): Unset fields that depend on new value.
1276 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1278 * java/lang/Class.h (_Jv_Self): New union type.
1279 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1280 Jeff Sturm and Fergus Henderson.
1282 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1284 * java/lang/ClassLoader.java: Remove dead code fragment.
1286 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1288 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1290 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1292 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1294 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1295 * configure.host (EXCEPTIONSPEC): New.
1296 * configure.in (EXCEPTIONSPEC): New.
1297 * configure: Rebuilt.
1299 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1301 * doc/*.texi: Remove generated documentation.
1303 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1305 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1306 (performDelete): Fix #endif placement.
1308 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1310 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1311 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1312 (_Jv_ThreadDestroyData): Use _Jv_Free.
1313 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1316 2001-04-27 Tom Tromey <tromey@redhat.com>
1318 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1320 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1322 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1324 * include/jni.h (struct JNINativeInterface): Fixed types in
1325 Get/Set*ArrayRegion declarations.
1326 (class _Jv_JNIEnv): Likewise.
1328 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1330 * configure.in: Obtain THREADS with `gcc -v'.
1331 * configure: Rebuilt.
1333 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1336 * java/io/ObjectStreamClass.java (setClass): Calculate
1337 serialVersionUID for local class and compare it against the UID
1338 from the Object Stream. Throw InvalidClassException upon mismatch.
1339 (setUID): Renamed to...
1340 (getClassUID): this. Return the calculated class UID rather than
1341 setting uid field directly.
1342 (getDefinedSUID): Removed.
1343 * java/io/ObjectInputStream.java (resolveClass): Use the
1344 three-argument Class.forName().
1345 * java/io/InvalidClassException (toString): Don't include classname in
1346 result if it is null.
1348 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1350 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1351 Wrap use of inet_pton in HAVE_INET6.
1353 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1355 java.security merge and ClassLoader compliance fixes.
1357 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1358 New protectionDomain field.
1359 (forName): Add initialize parameter. Fixes declaration to comply with
1361 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1362 variant. Honour "initialize" flag.
1363 (getProtectionDomain0): New method.
1364 * java/lang/Class.java: Fix forName() declaration.
1365 (getPackage): New method based on Classpath implementation.
1366 (getProtectionDomain0): New native method decl.
1367 (getProtectionDomain): New method.
1368 * java/lang/ClassLoader.java (getParent): Now final.
1369 (definedPackages): New field.
1371 (defineClass): New variant with protectionDomain argument.
1372 (definePackage): New.
1374 (findSystemClass): Now final.
1375 (getSystemResourceAsStream): Remove redundant "final" modifier.
1376 (getSystemResource): Remove redundant "final" modifier.
1377 (getResources): Now final.
1378 (protectionDomainPermission): New static field.
1379 (unknownProtectionDomain): Ditto.
1380 (defaultProtectionDomain): Ditto.
1381 (getSystemClassLoader): Now non-native.
1382 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1383 arguments for Class.forName().
1384 * java/lang/Package.java: New file.
1385 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1386 (instance): Static initialize singleton.
1387 (findClass): Override this, not findSystemClass.
1388 * java/lang/natClassLoader.cc (defineClass0): Set class's
1389 protectionDomain field as specified.
1390 (getSystemClassLoader): Removed.
1391 (findClass): Renamed from findSystemClass. Call the interpreter via
1392 URLClassLoader.findClass if loading class via dlopen fails.
1394 * java/security/*.java: java.security import/merge with Classpath.
1395 * java/security/acl/*.java: Likewise.
1396 * java/security/interfaces/*.java: Likewise.
1397 * java/security/spec/*.java: Likewise.
1398 * java/net/NetPermission.java: Likewise.
1399 * java/net/SocketPermission.java: Likewise.
1400 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1402 * Makefile.am: Add new classes.
1403 * Makefile.in: Rebuilt.
1404 * gcj/javaprims.h: CNI namespace rebuild.
1406 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1408 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1409 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1410 * configure: Rebuilt.
1412 2001-04-21 Tom Tromey <tromey@redhat.com>
1414 * Makefile.in: Rebuilt.
1415 * Makefile.am (awt_java_source_files): Added Line2D.java.
1416 * java/awt/geom/Line2D.java: Wrote.
1418 * java/awt/Menu.java (addNotify): Wrote.
1420 * java/awt/PopupMenu.java (addNotify): Implemented.
1423 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1424 * java/awt/List.java (addNotify): Call super.addNotify.
1425 * java/awt/Label.java (addNotify): Call super.addNotify.
1426 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1427 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1428 * java/awt/Choice.java (addNotify): Call super.addNotify.
1429 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1430 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1432 * java/awt/List.java (replaceItem): Notify peer.
1434 * java/awt/geom/Rectangle2D.java
1435 (Float.setRect(float,float,float,float)): New method.
1437 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1440 * java/awt/RenderingHints.java (Key): Class now public.
1442 * java/awt/Rectangle.java (Rectangle): Now implements
1444 (getPathIterator): Removed.
1446 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1449 * java/awt/FileDialog.java: Wrote.
1451 * java/awt/EventQueue.java (isDispatchThread): Now public.
1452 (invokeLater): Likewise.
1454 * java/awt/Component.java (setCursor): Update peer.
1455 (getFontMetrics): Use peer.
1457 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1460 2001-04-20 Tom Tromey <tromey@redhat.com>
1462 * java/awt/List.java: Wrote.
1463 * java/awt/Dialog.java: Wrote.
1465 2001-04-20 Warren Levy <warrenl@redhat.com>
1467 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1468 * java/text/SimpleDateFormat.java
1469 (indexInArray): Removed private method.
1470 (processYear): Removed private method.
1471 (parseLenient): Removed private method.
1472 (parseLeadingZeros): Removed private method.
1473 (parseStrict): Removed private method.
1474 (expect): Added new private method.
1475 (parse): Reverted to pre-Classpath merge version with minor fixes.
1476 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1479 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1481 * java/io/File.java (normalizePath): New private method.
1482 (File (String)): Use normalizePath().
1483 (File (String, String)): Likewise.
1485 * Makefile.am (libffi_files): Removed.
1486 (libgcj.la): Link libffi as a convenience library instead of
1487 refering to its object files directly.
1488 * Makefile.in: Rebuilt.
1490 2001-04-08 Per Bothner <per@bothner.com>
1492 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1493 Recalculate hash, since Utf8Const's hash is only 16 bits.
1495 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1496 bits of hash to calculate step for chaining.
1498 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1499 when 2/3 full, rather than 3/4 full.
1501 2001-04-06 Tom Tromey <tromey@redhat.com>
1503 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1504 (wrap_value<T*>): New specialization.
1505 (_Jv_JNI_PopLocalFrame): Update env->locals.
1507 2001-04-05 Tom Tromey <tromey@redhat.com>
1509 * libtool-version: Updated current.
1511 2001-04-04 Andreas Jaeger <aj@suse.de>
1513 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1514 * gcj/Makefile.in: Rebuilt.
1515 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1516 * Makefile.in: Rebuilt.
1517 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1518 * testsuite/Makefile.in: Rebuild.
1519 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1520 * include/Makefile.in: Rebuild.
1522 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1524 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1525 compiled test', not 'execution from source compiled test'.
1526 Use UNTESTED, not XFAIL, for tests which are not run because
1527 they depend on a previous test which failed.
1529 2001-04-02 Richard Henderson <rth@redhat.com>
1531 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1532 the same tree as gcc.
1533 * configure: Rebuilt.
1535 * exception.cc (_Jv_Throw): Clarify commentary.
1537 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1539 * jni.cc (wrap_value<jclass>): New specialization.
1541 2001-04-02 Tom Tromey <tromey@redhat.com>
1543 * java/io/PrintStream.java (out): Removed field. Fixes PR
1545 (write): Call flush, not out.flush, per spec.
1546 (close): Flush output stream, per spec. Handle
1547 InterruptedIOException.
1548 (checkError): Likewise.
1549 (flush, print, write): Handle InterruptedIOException per spec.
1550 (PrintStream): Don't create BufferedOutputStream.
1551 (work_bytes): New field.
1552 (writeChars): Use work_bytes. Don't assume `out' is a
1553 BufferedOutputStream.
1555 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1557 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1560 2001-03-30 Tom Tromey <tromey@redhat.com>
1562 * jni.cc (add_char): Correctly encode non-ascii characters.
1563 (add_char): Define even when INTERPRETER not defined.
1564 (mangled_name): Likewise.
1565 (_Jv_GetJNIEnvNewFrame): Likewise.
1566 (_Jv_LookupJNIMethod): Likewise.
1568 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1570 * configure.host: Enable interpreter for PPC.
1572 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1574 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1575 to "file.separator", "path.separator", and "java.io.tmpdir" property
1577 * java/io/File.java: Likewise.
1578 * java/io/natFile.cc (init_native): Likewise.
1579 * java/io/natFileWin32.cc (init_native): Likewise.
1581 2001-04-01 Per Bothner <per@bothner.com>
1583 * java/lang/natString.cc (intern): If string's data does not point to
1584 this String, make a fresh String that does.
1586 * java/lang/natString.cc (unintern): Replace by static function.
1587 * java/lang/String.java (unintern): Remove method.
1589 2001-04-01 Per Bothner <per@bothner.com>
1591 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1592 (finish): def.deflate needs to be called in a loop.
1593 (inbuf, inbufLength): New private fields.
1594 (write(int)): Use inbuf.
1595 (write(byte[],int,int): Check if pending output in inbuf.
1596 * ZipOutputStream.java: Don't use Deflater if stored.
1597 Use a Checksum object directly, not via a CheckedOutputStream.
1598 (uncompressed_size): New field,
1599 (closeEntry): Only write data_directory if needed.
1600 (write): If STORED, write directly.
1601 Always update crc, and uncompressed_size.
1602 (write_entry): Fix lots of protocol erors.
1604 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1606 1.3-Compliant Implementation of java.io.File.
1607 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1608 "path.separator", and "java.io.tmpdir" from the File class, instead
1609 of setting them explicitly.
1610 * java/io/File.java: Do not canonicalize paths for security manager
1611 checks. Call init_native() from static initializer. Do not pass path
1612 argument to native methods. New native method declarations. Some
1613 security manager checks moved to checkWrite().
1614 (equals): Check file system case sensitivity and act appropriatly.
1615 (hashCode): Likewise.
1616 (isHidden): New method implemented.
1617 (performList): Changed prototype. Now takes a class argument specifying
1618 the class of the returned array: Strings or File objects. Also added
1619 FileFilter argument.
1620 (listFiles): New variants with "File" return type implemented.
1621 (createTempFile): Use createNewFile(). Use maxPathLen.
1622 (setReadOnly): New method implemented.
1623 (listRoots): Likewise.
1624 (compareTo): Likewise.
1625 (setLastModified): Likewise.
1626 (checkWrite): New method.
1628 * java/io/natFile.cc: Various functions no longer take canonical path
1630 (stat): Handle ISHIDDEN query.
1631 (isAbsolute): Remove WIN32 cruft.
1632 (performList): New arguments. Handle returning either File[] or String[]
1633 arrays. Check with FileFilter or FilenameFilter arguments as
1634 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1635 (performSetReadOnly): New method implemented.
1636 (performListRoots): Likewise.
1637 (performSetLastModified): Likewise.
1638 (performCreate): Likewise.
1639 (init_native): New initialization function.
1640 * java/io/natFileWin32.cc: Various functions no longer take canonical
1642 (stat): Add FIXME about ISHIDDEN query.
1643 (performList): New arguments. Handle returning either File[] or String[]
1644 arrays. Check with FileFilter or FilenameFilter arguments as
1645 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1646 (performSetReadOnly): New. Stubbed.
1647 (performListRoots): Likewise.
1648 (performSetLastModified): Likewise.
1649 (performCreate): Likewise.
1650 (init_native) New initialization function.
1651 * configure.in: Check for utime() and chmod().
1652 * configure: Rebuilt.
1653 * include/config.h.in: Rebuilt.
1655 Resolves PR libgcj/1759.
1657 2001-03-28 Richard Henderson <rth@redhat.com>
1659 IA-64 ABI Exception Handling:
1660 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1661 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1662 Remove EXCEPTIONSPEC.
1663 * configure.host (libgcj_sjlj): Remove.
1664 * configure.in (EXCEPTIONSPEC): Remove.
1665 (enable-sjlj-exceptions): Detect if not specified.
1666 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1667 what header we're looking for.
1668 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1669 * Makefile.in, configure: Regenerate.
1670 * exception.cc: Don't declare libgcc2 stuff.
1671 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1672 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1673 (win32_get_restart_frame): Remove.
1674 (struct java_exception_header): New.
1675 (__gcj_exception_class): New.
1676 (get_exception_header_from_ue): New.
1677 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1678 (size_of_encoded_value, read_encoded_value): New.
1679 (read_uleb128, read_sleb128, parse_lsda_header): New.
1680 (get_ttype_entry, __gcj_personality_sj0): New.
1681 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1683 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1685 * javax/naming/InitialContext.java (init): Fix typo.
1686 (composeName): Remove unnecessary semicolon.
1687 (addToEnvironment): Remove unnecessary semicolon.
1688 (addToEnvironment): Use put() instead of add().
1690 * javax/naming/InitialContext.java (InitialContext):
1692 (destroySubcontext): Method doesn't return a result.
1693 * javax/naming/Context.java: Import java.util.Hashtable.
1694 * javax/naming/Name.java: Import java.util.Enumeration.
1696 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1698 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1699 objects in subdirectories.
1700 * Makefile.in: Rebuilt.
1702 2001-03-25 Richard Henderson <rth@redhat.com>
1704 * exception.cc (java_eh_info): Make value type jthrowable.
1705 (_Jv_type_matcher): Remove now unneeded cast.
1706 (_Jv_Throw): Make argument type jthrowable. Munge name
1707 for SJLJ_EXCEPTIONS here ...
1708 * gcj/cni.h: ... not here.
1710 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1712 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1713 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1714 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1715 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1716 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1717 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1718 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1719 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1720 java/lang/natDouble.cc, java/lang/natObject.cc,
1721 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1722 java/lang/natString.cc, java/lang/natSystem.cc,
1723 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1724 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1725 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1726 java/util/zip/natInflater.cc:
1727 Use throw, not JvThrow or _Jv_Throw.
1729 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1731 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1732 paramater, bump it to 1.
1733 * java/util/Hashtable.java (Hashtable): Likewise.
1735 2001-03-23 Per Bothner <per@bothner.com>
1737 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1738 check for errors, since we don't want to throw exception on
1739 overflow/underflow. Instead, trim whitespace, and then check that
1740 _strtod_r uses up all the rest of the string.
1742 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1743 ancestors array is invalid for interfaces, so do that *after*
1744 check that the target type is not an interface.
1746 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1748 * prims.cc (_Jv_FindClassFromSignature): Check return of
1749 recursive call. Do not abort on invalid signature; return NULL
1752 2001-03-22 Tom Tromey <tromey@redhat.com>
1754 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1755 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1757 * include/jvm.h (_Jv_ResolveField): Declare.
1758 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1759 * resolve.cc (_Jv_ResolveField): No longer conditional on
1762 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1764 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1765 for libtool hacking.
1766 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1767 to a temporary file, then invoke libtool with the -objectlist
1769 (libgcjx.la): Likewise.
1770 * Makefile.in: Rebuilt.
1772 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1774 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1776 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1778 * jni.cc (add_char): Handle `.' like `/'.
1780 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1782 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1783 initialize if exception_types is null.
1784 * java/lang/reflect/Constructor.java: Likewise.
1785 * java/lang/reflect/natConstructor.cc (getType): Initialize
1786 exception_types to an empty Object array.
1788 2001-03-21 Tom Tromey <tromey@redhat.com>
1790 * configure: Rebuilt.
1791 * configure.in (GCJFLAGS): Subst.
1792 * Makefile.in: Rebuilt.
1793 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1794 (gij_LDFLAGS): Likewise.
1795 (JC1FLAGS): Added GCJFLAGS and removed -g.
1797 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1798 read/write case. Fixes PR libgcj/2338.
1800 2001-03-20 Warren Levy <warrenl@redhat.com>
1802 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1803 and corrected SimpleTimeZone's for the timezones hash table.
1805 2001-03-19 Per Bothner <per@bothner.com>
1807 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1808 "canonicalize" "../../xxx" to "/xxx".
1810 2001-03-19 Mark Wielaard <mark@klomp.org>
1812 * java/util/ArrayList.java: Remove RCS keywords from comments
1813 * java/util/BasicMapEntry.java: idem
1814 * java/util/Dictionary.java: idem
1815 * java/util/HashSet.java: idem
1817 * java/util/EventObject.java: reindent
1818 * java/util/Properties.java: idem
1819 * java/util/SortedMap.java: idem
1821 * java/util/Enumeration.java: Merge with Classpath
1822 * java/util/EventListener.java: idem
1823 * java/util/Observable.java: idem
1824 * java/util/Observer.java: idem
1825 * java/util/Stack.java: idem
1827 2001-03-17 Tom Tromey <tromey@redhat.com>
1829 * java/lang/natString.cc (rehash): Don't bother with memset;
1830 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1832 (UNMASK_PTR): New macro.
1833 (intern): Unmask pointer before returning it. Register finalizer
1835 (unintern): Handle case where
1836 (MASK_PTR): New macro.
1837 (PTR_MAKSED): Likewise.
1838 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1840 2001-03-01 Andrew Haley <aph@redhat.com>
1842 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1843 stackTrace buffer to a correctly aligned pointer array.
1845 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1847 * java/lang/Runtime.java (_exit): Declare new package-private native.
1848 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1849 without a security manager check.
1850 (exit): Call _exit after security check.
1851 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1853 * java/lang/System.java (setSecurityManager): If a security manager
1854 is already in place, call checkPermission.
1855 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1856 throws an exception, try to deal with it gracefully.
1857 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1858 Only try to print the subordinate stack trace if "exception" is set.
1859 Print our class name first.
1861 2001-03-08 Tom Tromey <tromey@redhat.com>
1863 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1864 info for array classes.
1865 Fixes PR libgcj/1971.
1867 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1872 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1874 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1875 instead of the new JDK1.2 API. This is simpler and makes
1876 back-porting the classes to JDK1.1 trivial.
1877 (readObject): likewise.
1879 2001-03-01 Per Bothner <per@bothner.com>
1881 Changes merged from Kawa's gnu.math.
1882 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1883 (rshift(int[],int[],int,int): Removed - not needed.
1884 (gcd): Use rshift0 rather than rshift.
1885 * java/math/BigInteger.java (setShiftRight): Likewise.
1886 (divide): Simplify by using rshift0.
1887 (divide): Zero-extend results if high-order bit set.
1889 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1891 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1894 2001-02-23 Per Bothner <per@bothner.com>
1896 Change to sometimes include class name in ClassFormatError message.
1897 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1898 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1899 boolean instead of throwing ClassFormatError on failure.
1900 (throw_class_format_error): Change static function to method.
1901 (_Jv_ClassReader): New inline methods verify_identifier,
1902 two overloads of verify_classname, verify_field_signature, and
1903 verify_method_signature
1904 * include/java-interp.h: Update declarations to return bool.
1905 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1906 ClassFormatError since _Jv_VerifyClassName now returns bool.
1908 2001-02-23 Per Bothner <per@bothner.com>
1910 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1911 c++filt to select java-style output.
1913 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1915 Fix for PR java/2040:
1916 * java/util/HashMap.java (HashMap): Don't throw exception for
1917 loadFactor > 1. Add exception messages.
1918 * java/util/Hashtable.java (Hashtable): Likewise.
1920 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1922 Disable libgcjx by default.
1923 * configure.in: Add support for --enable-java-awt configure option.
1924 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1925 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1926 * Makefile.in: Rebuilt.
1927 * configure: Rebuilt.
1929 2001-02-20 Tom Tromey <tromey@redhat.com>
1931 * java/io/PipedWriter.java (flush): Throw exception if stream
1933 * java/io/OutputStreamWriter.java (write): Throw exception if
1935 (writeChars): Don't throw exception if stream closed.
1936 * java/io/CharArrayWriter.java (closed): New field.
1938 (flush): Throw exception if stream closed.
1939 (reset): Synchronize on correct lock. Allow stream to be
1941 (toCharArray, toString, writeTo): Synchronize.
1942 (write): Throwe exception if stream closed.
1943 * java/io/BufferedWriter.java (close): Clear `buffer'.
1944 (flush): Throw IOException if stream is closed.
1947 2001-02-16 Tom Tromey <tromey@cygnus.com>
1949 * java/lang/ThreadGroup.java (activeCount): Only include threads
1951 (enumerate): Likewise.
1953 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1955 * java/lang/Integer.java (getInteger): Return default argument if
1956 property is not set. Don't call decode with null argument.
1957 * java/lang/Long.java (getLong): Likewise.
1959 * java/io/CharArrayReader.java (CharArrayReader): Throw
1960 IllegalArgumentException if constructor arguments are illegal.
1961 (ready): Return false if no more characters can be read.
1962 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1964 2001-02-17 Mark Wielaard <mark@klomp.org>
1966 * java/util/TimerTask.java: New version from Classpath.
1968 2001-02-17 Mark Wielaard <mark@klomp.org>
1970 Remerge with Classpath
1971 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1972 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1973 (readByte): Use convertToByte().
1974 (readChar): Use convertToChar().
1975 (readInt): Use convertToInt().
1976 (readLong): Use convertToLong().
1977 (readShort): Use convertToShort().
1978 (readUnsignedByte): Use convertToUnsignedByte().
1979 (readUnsignedShort): Use convertToUnsignedShort().
1980 (readUTF): Use convertToUTF().
1982 (convertToBoolean): Resurrected.
1983 (convertToByte): Ditto.
1984 (convertToChar): Ditto.
1985 (convertToInt): Ditto.
1986 (convertToLong): Ditto.
1987 (convertToShort): Ditto.
1988 (convertToUnsignedByte): Ditto.
1989 (convertToUnsignedShort): Ditto.
1990 (convertToUTF): Ditto.
1992 2001-02-17 Mark Wielaard <mark@klomp.org>
1996 2001-02-17 Mark Wielaard <mark@klomp.org>
1998 * java/io/DataInputStream.java: update copyright notice
1999 * java/io/PrintWriter.java: idem
2000 * java/io/Reader.java: idem
2001 * java/io/StreamTokenizer.java: idem
2002 * java/io/StringReader.java: idem
2003 * java/lang/reflect/ReflectPermission.java: idem
2005 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2007 * java/util/TreeSet.java (clone): Made subclass safe, use
2008 super.clone(), not new.
2009 * java/util/TreeMap.java (clone): Likewise.
2011 * java/util/TreeMap.java (nil): Made non-final.
2012 (clone): Create new nil node for copy.
2014 * java/util/HashSet.java (clone): Made subclass safe, use
2015 super.clone(), not new.
2017 2001-02-14 Andrew Haley <aph@redhat.com>
2019 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2022 2001-02-15 Anthony Green <green@redhat.com>
2024 * defineclass.cc: Don't include alloca.h.
2025 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2026 * interpret.cc (run_normal): Ditto.
2028 * java/lang/natDouble.cc (parseDouble): Ditto.
2030 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2032 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2034 * java/util/Collections.java (ReverseComparator): New static class.
2035 (reverseOrder): Return static instance of ReverseComparator.
2037 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2038 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2039 Rectangle.clone(), not Object.clone().
2041 * java/util/HashSet.java (clone): Remove try/catch.
2043 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2044 * java/util/Collection.java: Likewise.
2045 * java/util/Comparator.java: Likewise.
2046 * java/util/Dictionary.java: Likewise.
2047 * java/util/Iterator.java: Likewise.
2048 * java/util/ListIterator.java: Likewise.
2049 * java/util/Map.java: Likewise.
2050 * java/util/Set.java: Likewise.
2052 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2054 * java/util/TreeMap.java: New file.
2055 * java/util/TreeSet.java: New file.
2056 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2057 * Makefile.in: Rebuilt.
2058 * java/util/HashSet.java (clone): Use constructor instead of calling
2060 * java/util/SortedSet.java: Sync with classpath.
2061 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2064 * java/lang/natClass.cc (getSignature): Don't try to dereference
2065 param_types if it is null. Instead, take this to mean "no parameters".
2066 * java/lang/TreeMap.java (TreeIterator.next): Throw
2067 NoSuchElementException in preference to ConcurrentModificationException.
2068 (TreeIterator.remove): Throw IllegalStateException in preference to
2069 ConcurrentModificationException.
2070 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2071 throw a NoSuchElementException.
2072 (SubMap.lastKey): Likewise.
2074 2001-02-13 Tom Tromey <tromey@redhat.com>
2076 * java/io/PipedReader.java (ready): Throw IOException if pipe
2078 * java/io/FilterReader.java (close): Don't clear `in'.
2079 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2081 (read, ready, reset, skip): Added exception message.
2082 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2083 Perform checkStatus check inside synchronized block.
2085 2001-02-13 Tom Tromey <tromey@redhat.com>
2087 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2089 2001-02-13 Tom Tromey <tromey@redhat.com>
2091 Fix for PR libgcj/1351:
2092 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2094 Include Thread.h and InterruptedIOException.h.
2096 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2098 * java/io/BlockDataException.java: Removed.
2099 * java/io/ObjectInputStream.java (readObject): Throw
2100 StreamCorruptedException, not BlockDataException.
2101 * Makefile.am: Remove BlockDataException.
2102 * Makefile.in: Rebuild.
2104 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2105 Tom Tromey <tromey@redhat.com>
2107 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2110 2001-02-09 Tom Tromey <tromey@redhat.com>
2112 * java/util/Timer.java: New version from Classpath.
2114 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2116 * java/lang/Double.java (doubleToRawLongBits): Now native.
2117 * java/lang/Float.java (floatToRawIntBits): Likewise.
2118 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2119 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2121 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2123 * java/io/File.java (java.net): Imported.
2124 (getAbsoluteFile): Added.
2125 (getCanonicalPath): Likewise.
2128 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2130 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2131 * java/lang/Integer.java: Likewise.
2132 * java/lang/Long.java: Likewise.
2133 * java/lang/Short.java: Likewise.
2134 * java/lang/Double.java: Likewise.
2135 (doubleToRawLongBits): New method.
2136 * java/lang/Float.java: As above.
2137 (floatToRawIntBits): New method.
2139 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2140 IOException if stream closed.
2142 2001-02-08 Tom Tromey <tromey@redhat.com>
2144 * java/lang/Float.java (parseFloat): New method.
2146 2001-02-08 Tom Tromey <tromey@redhat.com>
2148 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2149 * java/io/InputStreamReader.java (ready, read): Throw IOException
2150 if stream has been closed.
2152 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2154 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2155 Change sources.redhat.com and sourceware.cygnus.com references to
2158 2001-02-07 Tom Tromey <tromey@redhat.com>
2160 Fix for PR libgcj/1906:
2161 * java/text/MessageFormat.java (setLocale): Use named class
2164 (format(Object,StringBuffer,FieldPosition)): Special case if
2165 argument is an Object[].
2167 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2169 * java/util/Arrays.java: Removed "cmp" methods.
2170 (qsort): Don't use "cmp".
2173 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2175 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2176 sort. Fix for PR java/1895.
2178 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2180 * configure.host: Use sjlj-exceptions for Alpha.
2182 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2184 * libgcj.spec.in: Don't force static libgcc into the executable.
2185 * configure.in (FORCELIBGCCSPEC): Removed.
2186 * configure: Rebuilt.
2188 2001-01-31 Tom Tromey <tromey@redhat.com>
2190 * Makefile.in: Rebuilt.
2191 * Makefile.am (LTCXXCOMPILE): New macro.
2193 2001-01-26 Andrew Haley <aph@redhat.com>
2195 (INIT_FPE): Use a direct system call to set the handler.
2197 2001-01-27 Richard Henderson <rth@redhat.com>
2199 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2201 2001-01-27 Tom Tromey <tromey@redhat.com>
2203 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2204 native interface structure.
2206 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2208 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2210 (read (byte[], int, int)): Only call readNextBlock() if the block
2211 buffer would actually be overrun. Increment blockDataPosition.
2212 (callReadMethod): Propagate exceptions from invocation target.
2213 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2214 exceptions from invocation target.
2216 2001-01-26 Tom Tromey <tromey@redhat.com>
2218 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2219 to internal representation.
2220 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2221 _Jv_FindClassFromSignature.
2223 2001-01-26 Warren Levy <warrenl@redhat.com>
2225 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2226 and timezone if they are available on the system.
2228 2001-01-24 Tom Tromey <tromey@redhat.com>
2230 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2232 2001-01-24 Tom Tromey <tromey@redhat.com>
2234 * Makefile.in: Rebuilt.
2235 * Makefile.am (c_source_files): Added sf_fabs.c.
2236 * java/lang/sf_fabs.c: New file.
2238 2001-01-19 Warren Levy <warrenl@redhat.com>
2240 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2241 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2242 correctly. Adjust properly from 0-23 clock hour.
2244 2001-01-17 Mark Wielaard <mark@klomp.org>
2246 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2248 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2250 * java/lang/Class.h (isInterface): Move implementation from
2251 natClass.cc. Declare inline.
2252 (Class): Add default constructor.
2253 * java/lang/Object.h: Update comments.
2254 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2255 initialize superclass, saving a call if super is already initialized.
2257 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2259 * prims.cc (init_prim_class): Deleted.
2260 (DECLARE_PRIM_TYPE): Rewritten.
2261 * java/lang/Class.h (stdio.h): Include removed.
2262 (stddef.h): Included.
2263 (java/lang/reflect/Modifier.h): Likewise.
2264 (Class): Contructor now takes arguments, initializes fields.
2265 (initializePrim): Prototype deleted.
2266 * java/lang/natClass.cc (initializePrim): Deleted.
2268 2001-01-16 Warren Levy <warrenl@redhat.com>
2270 * java/math/BigInteger.java: Update Copyright year.
2272 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2274 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2277 2001-01-14 Mark Wielaard <mark@klomp.org>
2278 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2279 (decode): Merge comments with Classpath, don't throw Exception
2281 2001-01-12 Tom Tromey <tromey@redhat.com>
2283 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2287 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2288 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2289 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2290 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2291 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2293 * java/lang/natSystem.cc: Include locale.h if it exists.
2294 * configure: Rebuilt.
2295 * configure.in: Check for locale.h.
2297 2001-01-11 Tom Tromey <tromey@redhat.com>
2299 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2300 (Cursor(int), getPredefinedCursor): Throw exception if argument
2303 2001-01-03 Tom Tromey <tromey@redhat.com>
2305 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2306 (getLocationOnScreen): Wrote.
2308 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2310 * Makefile.am: Re-enable dependencies.
2311 * Makefile.in: Rebuilt.
2313 2001-01-10 Warren Levy <warrenl@redhat.com>
2315 * java/math/BigDecimal.java (divide): Fixed comment.
2317 2001-01-10 Warren Levy <warrenl@redhat.com>
2319 Fix for PR libgcj/1596:
2320 * java/math/BigDecimal.java (divide): Check newScale for validity.
2321 Ensure that BigInteger.pow() is called with a non-negative value.
2322 (setScale (int)): New public method.
2323 (setScale (int,int)): New public method.
2325 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2327 Fix for PR libgcj/1338:
2328 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2329 commentChar. Fixed typos in comments.
2331 2001-01-08 Warren Levy <warrenl@redhat.com>
2333 Fix for PR libgcj/1411:
2334 * Makefile.am: Removed java/util/natTimeZone.cc.
2335 * Makefile.in: Rebuilt.
2336 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2337 missing localized timezone names.
2338 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2339 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2340 (init_properties): Set user.timezone property.
2341 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2342 default timezone names; removed non-standard ones. Use standard
2344 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2346 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2348 (getDefaultTimeZoneId): Removed.
2350 * java/util/natTimeZone.cc: Removed.
2352 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2354 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2355 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2356 (_Jv_GetArrayClass): New inline function.
2357 (arrayclass): New field.
2358 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2359 _Jv_GetArrayElementFromElementType.
2360 (_Jv_NewPrimArray): Ditto.
2361 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2362 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2363 Set Modifier::ABSTRACT.
2364 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2365 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2366 Now synchronized. Array classes are now referenced from
2367 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2368 Set array classes' accessibility flags correctly. Optimize so that
2369 all array classes share the same IDT.
2370 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2371 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2372 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2373 in superclasses from overwriting classes own fields.
2374 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2375 Modifier::isAbstract().
2376 (null_idt): New static field.
2377 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2379 (_Jv_IndexOf): Made inline.
2380 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2382 2001-01-08 Tom Tromey <tromey@redhat.com>
2384 Fix for PR java/1586:
2385 * Makefile.in: Rebuilt.
2386 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2388 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2390 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2391 from the c++ compiler.
2392 * Makefile.in: Rebuilt.
2394 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2396 All files with updated copyright.
2397 * prims.cc (class _Jv_PrimClass): Removed.
2398 (init_prim_class): New function.
2399 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2400 `_Jv_PrimClass' in primitive type declarations. Assign to the
2401 value returned by `init_prim_class.'
2402 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2403 primitive type declarations.
2404 (JvPrimClass): Cast to `jclass' removed.
2405 * java/lang/Class.h (Class): New constructor.
2406 (Class): New copy constructor.
2407 (initializePrim): New prototype.
2408 (_Jv_PrimClass): Field removed.
2409 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2410 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2411 (class java::lang::Object): `finalize' moved up front.
2412 * java/lang/natClass.cc
2413 (isAssignableFrom): Turned outline.
2414 (isInstance): Likewise.
2415 (isInterface): Likewise, fixed indentation.
2416 (initializePrim): New function.
2418 2001-01-07 Anthony Green <green@redhat.com>
2420 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2422 * Makefile.in: Rebuilt.
2424 * scripts/TexinfoDoclet.java: New file.
2426 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2427 doc/java-awt-color.texi, doc/java-lang.texi,
2428 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2429 doc/java-awt-event.texi, doc/java-net.texi,
2430 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2431 doc/java-awt-image.texi, doc/java-security.texi,
2432 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2433 doc/java-text.texi, doc/java-beans-beancontext.texi,
2434 doc/java-util-jar.texi, doc/java-beans.texi,
2435 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2436 doc/java-lang-ref.texi: New files.
2438 2001-01-07 Anthony Green <green@redhat.com>
2440 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2441 be used for both input and output, so don't clear doInput.
2443 * java/lang/StringBuffer.java: Fix comments.
2445 2001-01-06 Anthony Green <green@redhat.com>
2447 * java/beans/PropertyDescriptor.java: Fix comment.
2448 * java/io/PushbackReader.java: Fix comment.
2449 * java/io/ObjectStreamClass.java: Fix comment.
2450 * java/io/DataInputStream.java: Fix comment.
2451 * java/io/PipedInputStream.java: Fix comments.
2452 * java/io/PipedReader.java: Fix comments.
2453 * java/sql/DatabaseMetaData.java: Fix comments.
2455 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2457 * java/io/PipedReader: Synchronize on "lock" instead of this.
2459 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2461 * java/lang/Thread.java: Update comment.
2463 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2464 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2465 * java/io/PipedReader: New implementation based on new
2467 * java/io/PipedWriter: Updated to match new PipedReader.
2469 2001-01-03 Tom Tromey <tromey@redhat.com>
2471 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2472 (getViewportSize): Insets include scrollbar size.
2473 (doLayout): Finished.
2474 (getScrollPosition): Wrote.
2475 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2477 2001-01-02 Tom Tromey <tromey@redhat.com>
2479 * java/awt/ScrollPane.java: Wrote.
2480 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2483 * java/awt/Panel.java (Panel()): Fixed.
2485 * java/awt/Component.java (isShowing): Return false if no peer
2486 exists, and true if component is visible and no parent exists.
2487 (getLocationOnScreen): Wrote.
2488 (getPreferredSize): Removed FIXME comment.
2489 (getMinimumSize): Likewise.
2490 (getAlignmentX, getAlignmentY): Wrote.
2492 (requestFocus): Wrote.
2493 (transferFocus): Wrote.
2494 (findNextFocusComponent): New method.
2495 (hasFocus()): Wrote.
2496 (checkImage): Wrote.
2497 (enableEvents): Call setEventMask on the peer.
2499 * java/awt/Container.java (list): Use super.list() to print self.
2500 (findNextFocusComponent): New method.
2501 (setLayout): Call invalidate.
2502 (findComponentAt): Wrote.
2504 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2506 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2507 the correct versions of various linuxthreads functions get linked.
2508 * Makefile.in: Rebuilt.
2509 * java/lang/natThread.cc (finalize_native): New static function. Call
2510 _Jv_ThreadDestroyData.
2511 (initialize_native): Register finalizer for "data".
2512 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2513 (_Jv_ThreadDestroyData): New prototype.
2514 * include/win32-threads.h: Ditto.
2515 * include/no-threads.h: Ditto.
2516 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2517 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2518 move mutex and condition variable destroy code from:
2519 (really_start): ...here.
2520 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2521 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2522 (_Jv_ThreadDestroyData): Implemented.
2523 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2524 (_Jv_AllocArray): Ditto.
2526 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2528 * java/sql/DriverManager.java (getConnection): Don't set user/password
2531 2000-12-27 Warren Levy <warrenl@redhat.com>
2533 Fix for PR libgcj/1358:
2534 * java/lang/System.java: Update Copyright date properly.
2535 * java/util/Calendar.java: Fix typo in comment.
2536 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2537 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2538 initialize times. Spec says to set H:M:S values to zero only if
2540 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2541 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2542 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2543 timezones and GMT offsets, being careful to account for units of
2544 milliseconds vs. seconds.
2546 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2548 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2549 not be assigned to Object.
2551 Fix for PR libgcj/1516:
2552 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2554 (can_widen): Declared inline. Remove redundant checks for void
2555 arguments and char->short conversion. Add special case for boolean
2557 (ffi_type): Declared inline.
2558 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2560 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2562 * java/sql/SQLWarning.java: Fixed typo in comment.
2564 2000-12-26 Tom Tromey <tromey@redhat.com>
2566 * java/awt/MenuItem.java (paramString): Now protected.
2568 * java/awt/MenuShortcut.java: Implements Serializable.
2570 * java/awt/MenuBar.java: Rewrote from scratch.
2572 * java/awt/MenuComponent.java (removeNotify): Wrote.
2573 Implements Serializable.
2575 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2578 * java/awt/CheckboxMenuItem.java: Wrote.
2580 2000-12-25 Tom Tromey <tromey@redhat.com>
2582 * java/awt/MenuContainer.java: Fixed typo.
2584 * Makefile.in: Rebuilt.
2585 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2586 * java/awt/SystemColor.java: New file.
2588 * java/awt/Color.java (rgba): Now package-private.
2590 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2592 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2595 * java/awt/MenuItem.java (addNotify): New method.
2596 (MenuItem(String,MenuShortcut)): New constructor.
2597 (setLabel): Notify peer of change.
2598 (setEnabled): Likewise.
2600 * java/awt/GridLayout.java (toString): New method.
2602 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2603 (FlowLayout): Check for LEADING and TRAILING.
2604 (setAlignment): Likewise.
2605 (layoutContainer): Handle component orientation.
2607 * java/awt/Component.java (orientatin): New field.
2608 (setComponentOrientation): Wrote.
2609 (getComponentOrientation): Wrote.
2611 * java/awt/Event.java (Event): Implements Serializable.
2612 (consumed): New field for serialization.
2613 * java/awt/Dimension.java (Dimension): Implements Serializable.
2614 * java/awt/Cursor.java (Cursor): Implements Serializable.
2615 * java/awt/Container.java (Container): No longer abstract.
2617 * java/awt/Choice.java: Wrote.
2618 * java/awt/Checkbox.java: Wrote.
2619 * java/awt/ItemSelectable.java: Documented.
2620 * java/awt/CheckboxGroup.java: Wrote.
2622 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2624 (getSize): Likewise.
2626 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2628 * java/io/FileDescriptor.java: Initialize fd to -1.
2629 Remove default constructor.
2631 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2633 * java/lang/mprec.h: Change C9X reference to refer to C99.
2635 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2637 * java/lang/Throwable.java (trace_enabled): New static field.
2638 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2639 trace_enabled not set.
2640 * prims.cc (main_init): Turn off trace_enabled while creating
2641 default exception objects.
2643 2000-12-21 Tom Tromey <tromey@redhat.com>
2645 * java/beans/PropertyChangeListener.java: Extends EventListener.
2646 * java/beans/VetoableChangeListener.java: Extends EventListener.
2648 * java/util/zip/Deflater.java (update, init): Now private.
2650 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2652 * java/util/BasicMapEntry.java: Re-added.
2653 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2654 (putAll): Test for BasicMapEntry.
2655 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2656 (putAll): Test for BasicMapEntry.
2657 Change references from `HashMap.Entry' to `Entry' in various places.
2658 * Makefile.am: Add BasicMapEntry.java.
2659 * Makefile.in: Rebuilt.
2661 2000-12-18 Warren Levy <warrenl@redhat.com>
2663 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2664 need to set timezone to a valid non-null value. Partial fix for
2667 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2669 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2671 * java/awt/Button.java (addNotify): Likewise.
2672 * java/awt/Label.java (addNotify): Likewise.
2673 * java/awt/Panel.java (addNotify): Likewise.
2674 * java/awt/Scrollbar.java (addNotify): Likewise.
2675 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2676 Remove redundant null checks.
2678 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2680 * COPYING: Update to current
2681 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2682 to 19yy as example year in copyright notice).
2684 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2686 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2687 end-of-stream if avail_in is 0.
2689 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2691 * java/util/ArrayList.java (data): Declare transient.
2692 (serialPersistantFields): Removed.
2693 (readObject): Use defaultReadObject(), not readFields().
2694 (writeObject): Use defaultWriteObject(), not writeFields().
2696 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2698 * java/util/Hashtable.java (put): Remove `last' variable.
2699 Link new entry to head of list.
2700 * java/util/HashMap.java (put): Ditto.
2702 2000-12-15 Tom Tromey <tromey@redhat.com>
2704 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2705 loader to Class.forName.
2707 2000-12-14 Tom Tromey <tromey@redhat.com>
2709 * java/util/ResourceBundle.java
2710 (getBundle(String,Locale,ClassLoader)): New method.
2711 (trySomeGetBundle): Added `loader' argument.
2712 (partialGetBundle): Likewise.
2714 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2715 maximumFractionDigits, maximumIntegerDigits,
2716 minimumFractionDigits, minimumIntegerDigits): Now
2719 * java/lang/Thread.java (checkAccess): Now final.
2721 * java/lang/RuntimePermission.java: Class now final.
2723 * java/io/StringWriter.java (StringWriter(int)): Now public.
2725 * java/io/SerializablePermission.java (legal_names): Now private.
2727 * java/lang/Character.java: Updated UnicodeBlock constants.
2728 * scripts/blocks.pl: Special case private use and surrogate
2731 2000-12-12 Tom Tromey <tromey@redhat.com>
2733 * Makefile.in: Rebuilt.
2734 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2736 (GCJCOMPILE): Use it.
2739 2000-12-11 Tom Tromey <tromey@redhat.com>
2741 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2742 New static final fields.
2744 * scripts/classes.pl (scan): Skip lines with leading `*'.
2745 Fix for PR libgcj/378.
2747 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2749 * configure.in: Remove check for -fuse-divide-subroutine.
2750 * configure: Rebuilt.
2752 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2754 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2756 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2758 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2759 Remove BasicMapEntry.java and Bucket.java.
2760 * Makefile.in: Rebuilt.
2761 * java/util/HashMap.java: Rewritten.
2762 * java/util/HashSet.java: Imported from classpath.
2763 * java/util/WeakHashMap.java: Imported from classpath.
2764 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2765 * java/util/Bucket.java: Deleted.
2766 * java/util/BasicMapEntry.java: Deleted.
2767 * java/util/Collections.java (search): Use a for-loop, not iterator
2769 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2770 of elements in source.
2771 (max): Use a for-loop.
2773 (reverse): Keep track of positions instead of using Iterator's
2774 nextIndex() and previousIndex().
2775 (shuffle(List)): Initialize defaultRandom if required using
2776 double-check thread safety idiom. Call two-argument shuffle method
2777 using defaultRandom.
2778 (defaultRandom): New field.
2779 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2780 using previousIndex() and nextIndex().
2781 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2782 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2783 * java/util/AbstractMap.java (toString): Use StringBuffer.
2784 * java/lang/ref/PhantomReference.java: Imported from classpath.
2785 * java/lang/ref/SoftReference.java: Ditto.
2786 * java/lang/ref/Reference.java: Ditto.
2787 * java/lang/ref/WeakReference.java: Ditto.
2788 * java/lang/ref/ReferenceQueue.java: Ditto.
2790 2000-12-10 Richard Henderson <rth@redhat.com>
2792 * configure.host: Recognize alpha*-*, not alphaev6-*.
2794 2000-12-09 Anthony Green <green@redhat.com>
2796 * configure.host: Enable interpreter for Alpha.
2798 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2800 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2801 (ZIP): Points at fastjar instead of zip.
2802 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2803 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2804 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2805 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2806 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2807 ($(x_java_source_files:.java=.class):): Likewise.
2808 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2810 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2811 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2812 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2813 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2814 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2815 gnu/gcj/runtime/VMClassLoader.h:,
2816 java/io/ObjectInputStream$$GetField.h:,
2817 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2818 (Makefile.in): Rebuilt.
2820 2000-12-08 Tom Tromey <tromey@redhat.com>
2823 * configure: Rebuilt.
2824 * configure.in: Use echo, not `:', to create .d files.
2826 2000-12-08 Warren Levy <warrenl@redhat.com>
2828 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2829 NullPointerException so proper check of offset can be done.
2831 2000-12-08 Warren Levy <warrenl@redhat.com>
2833 * java/io/FileInputStream.java (close): Check if the fd is valid.
2834 * java/io/RandomAccessFile.java (close): Ditto.
2835 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2836 * java/net/PlainSocketImpl.java (close): Ditto.
2838 2000-12-06 Tom Tromey <tromey@redhat.com>
2840 * java/awt/GridBagConstraints.java: Filled in values for static
2843 * java/util/BitSet.java: Updated copyright notice.
2845 * Makefile.in: Rebuilt.
2846 * Makefile.am (awt_java_source_files): Added new file.
2847 * java/awt/GridBagConstraints.java: New file.
2849 2000-12-05 Tom Tromey <tromey@redhat.com>
2851 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2852 Now package-private, not protected.
2853 * java/text/DateFormatSymbols.java (equals): Now private.
2854 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2855 * java/util/BitSet.java: Class no longer final.
2857 2000-12-04 Warren Levy <warrenl@redhat.com>
2859 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2860 out code dependent on compiler and library changes.
2862 2000-12-04 Warren Levy <warrenl@redhat.com>
2864 * java/io/FilePermission.java: Made class final per spec.
2865 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2866 method name to match spec (fixed typo).
2867 * java/util/LinkedList.java: Implements List.
2869 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2871 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2872 Edgar Villanueva <edgarvil@home.com>.
2874 2000-12-03 Tom Tromey <tromey@redhat.com>
2876 * java/awt/geom/Point2D.java: Added protected constructor.
2877 (equals): New method.
2878 (Float.setLocation(float,float)): New method.
2879 * java/awt/geom/Dimension2D.java: Added protected constructor.
2880 * java/awt/geom/AffineTransform.java: Made all constants public.
2881 (concatenate): Fixed typo in name.
2882 * java/awt/event/WindowAdapter.java: Class now abstract.
2883 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2884 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2887 * java/awt/AWTError.java: Extend Error, not
2888 IllegalStateException.
2890 * Makefile.in: Rebuilt.
2891 * Makefile.am (awt_java_source_files): Added new file.
2892 * java/awt/geom/RoundRectangle2D.java: New file.
2894 * Makefile.in: Rebuilt.
2895 * Makefile.am (awt_java_source_files): Added new file.
2896 * java/awt/FlowLayout.java: New file.
2898 * Makefile.in: Rebuilt.
2899 * Makefile.am (awt_java_source_files): Added new file.
2900 * java/awt/GridLayout.java: New file.
2902 2000-12-02 Tom Tromey <tromey@redhat.com>
2904 * Makefile.in: Rebuilt.
2905 * Makefile.am (awt_java_source_files): Added new files.
2906 * java/awt/CardLayout.java: New file.
2907 * java/awt/AWTPermission.java: New file.
2909 2000-12-01 Tom Tromey <tromey@redhat.com>
2911 * java/util/Vector.java (insertElementAt): Unconditionally
2912 increment elementCount.
2913 (removeRange): Clear unused slots in vector.
2915 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2917 * java/lang/natMath.cc: Declare fabsf() function.
2918 * java/lang/mprec.h: Don't include math.h.
2919 * java/lang/dtoa.c: Include string.h.
2920 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2923 From Adam Welc <welc@cs.purdue.edu>:
2924 * java/util/LinkedList.java (removeFirst): Update `first' field.
2925 Handle the last == first case.
2926 (removeLast): Update `last' field. Handle the last == first case.
2928 2000-12-01 Warren Levy <warrenl@cygnus.com>
2930 * Makefile.am: Added entries for new java.sql modules.
2931 * Makefile.in: Rebuilt.
2933 2000-12-01 Warren Levy <warrenl@cygnus.com>
2935 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2936 that aren't quite 1.2 compatible yet.
2938 2000-11-30 Warren Levy <warrenl@cygnus.com>
2940 * java/sql/Array.java: New file from classpath.
2941 * java/sql/BatchUpdateException.java: Ditto.
2942 * java/sql/Blob.java: Ditto.
2943 * java/sql/Clob.java: Ditto.
2944 * java/sql/Ref.java: Ditto.
2945 * java/sql/SQLData.java: Ditto.
2946 * java/sql/SQLInput.java: Ditto.
2947 * java/sql/SQLOutput.java: Ditto.
2948 * java/sql/Struct.java: Ditto.
2949 * java/sql/CallableStatement.java: Merged file from claspath.
2950 * java/sql/Connection.java: Ditto.
2951 * java/sql/DataTruncation.java: Ditto.
2952 * java/sql/DatabaseMetaData.java: Ditto.
2953 * java/sql/DriverManager.java: Ditto.
2954 * java/sql/PreparedStatement.java: Ditto.
2955 * java/sql/ResultSet.java: Ditto.
2956 * java/sql/ResultSetMetaData.java: Ditto.
2957 * java/sql/SQLException.java: Ditto.
2958 * java/sql/SQLWarning.java: Ditto.
2959 * java/sql/Statement.java: Ditto.
2960 * java/sql/Types.java: Ditto.
2962 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2964 * java/lang/natSystem.cc (init_properties): Set user.language and
2966 * configure.in: Check for setlocale.
2967 * configure: Rebuilt.
2968 * include/config.h.in: Rebuilt.
2970 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2971 the infate() call didn't deliver any output. Throw a ZipException if
2972 the needsDictionary() call returns true.
2973 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2974 * java/io/InputStreamReader: Use the default buffer size for the
2975 contained BufferedInputStream.
2977 2000-11-28 Warren Levy <warrenl@cygnus.com>
2979 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2980 more time zone entries.
2981 * java/text/SimpleDateFormat.java (format): Added case for
2984 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2986 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2987 directly rather than read() in all cases. Make primitive read
2988 implementations more efficient, as defined in JDK online docs.
2989 (skipBytes): Behave like the JDK's implementation.
2990 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2991 closed stream with checkStatus() whenever an IOException can be
2993 (checkStatus): New private method.
2995 2000-11-27 Warren Levy <warrenl@cygnus.com>
2997 * Makefile.am: Added natTimeZone.cc.
2998 * Makefile.in: Rebuilt.
2999 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3000 * java/text/DateFormatSymbols.java (ampms): Made package private.
3001 (eras): Made package private.
3002 (months): Made package private.
3003 (shortMonths): Made package private.
3004 (shortWeekdays): Made package private.
3005 (weekdays): Made package private.
3006 (formatPrefixes): New private field.
3007 (localPatternCharsDefault): Made private.
3008 (dateFormats): New package private field.
3009 (timeFormats): New package private field.
3010 (formatsForKey): New private method.
3011 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3012 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3013 * java/text/SimpleDateFormat.java: Merged with Classpath.
3014 * java/util/TimeZone.java: Merged with Classpath.
3015 * java/util/natTimeZone.cc: New file.
3017 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3019 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3020 (addElement): Don't increment elementCount twice. Doh.
3021 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3022 array needs to be expanded.
3024 * java/util/Collections.java (UnmodifiableCollection): Implement
3026 (UnmodifiableList): Throw UnsupportedOperationException from
3027 modification methods. Set `l' from the one-parameter constructor.
3028 (UnmodifiableMap): Implement toString().
3029 (SynchronizedCollection): Ditto.
3030 (SynchronizedList): Set `l' from the one-parameter constructor.
3031 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3032 (SynchronizedMap): Implement toString().
3034 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3036 * javax/naming/NameParser.java,
3037 javax/naming/directory/AttributeInUseException.java,
3038 javax/naming/directory/AttributeModificationException.java,
3039 javax/naming/directory/InvalidAttributeIdentifierException.java,
3040 javax/naming/directory/InvalidAttributesException.java,
3041 javax/naming/directory/InvalidAttributeValueException.java,
3042 javax/naming/directory/InvalidSearchControlsException.java,
3043 javax/naming/directory/InvalidSearchFilterException.java,
3044 javax/naming/directory/NoSuchAttributeException.java,
3045 javax/naming/directory/SchemaViolationException.java: New files.
3047 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3049 * javax/naming/InitialContext.java (rebind): Implement.
3050 (unbind): Implement.
3051 (rename): Implement.
3053 (listBindings): Implement.
3054 (destroySubcontext): Implement.
3055 (createSubcontext): Implement.
3056 (lookupLink): Implement.
3057 (getNameParser): Implement.
3058 (composeName): Implement.
3059 (addToEnvironment): Implement.
3061 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3063 * javax/naming/AuthenticationException.java,
3064 javax/naming/AuthenticationNotSupportedException.java,
3065 javax/naming/CannotProceedException.java,
3066 javax/naming/CommunicationException.java,
3067 javax/naming/ConfigurationException.java,
3068 javax/naming/ContextNotEmptyException.java,
3069 javax/naming/InsufficientResourcesException.java,
3070 javax/naming/InterruptedNamingException.java,
3071 javax/naming/InvalidNameException.java,
3072 javax/naming/LimitExceededException.java,
3073 javax/naming/LinkException.java,
3074 javax/naming/LinkLoopException.java,
3075 javax/naming/MalformedLinkException.java,
3076 javax/naming/NameAlreadyBoundException.java,
3077 javax/naming/NameNotFoundException.java,
3078 javax/naming/NamingSecurityException.java,
3079 javax/naming/NoPermissionException.java,
3080 javax/naming/NotContextException.java,
3081 javax/naming/PartialResultException.java,
3082 javax/naming/ReferralException.java,
3083 javax/naming/ServiceUnavailableException.java,
3084 javax/naming/SizeLimitExceededException.java,
3085 javax/naming/TimeLimitExceededException.java: New files.
3087 * javax/naming/Name.java (clone): New method.
3088 (compareTo): New method.
3089 (isEmpty): New method.
3090 (getAll): New method.
3091 (getPrefix): New method.
3092 (getSuffix): New method.
3093 (startsWith): New method.
3094 (endsWith): New method.
3095 (addAll): New method.
3096 (addAll): New method.
3099 (remove): New method.
3101 * javax/naming/Context.java (lookup): New method.
3102 (rebind): New method.
3103 (unbind): New method.
3104 (rename): New method.
3106 (listBindings): New method.
3107 (destroySubcontext): New method.
3108 (createSubcontext): New method.
3109 (lookupLink): New method.
3110 (getNameParser): New method.
3111 (composeName): New method.
3112 (addToEnvironment): New method.
3113 (removeFromEnvironment): New method.
3114 (getEnvironment): New method.
3115 (close): New method.
3116 (getNameInNamespace): New method.
3118 * javax/naming/InitialContext.java (lookup): New method.
3119 (rebind): New method.
3120 (unbind): New method.
3121 (rename): New method.
3123 (listBindings): New method.
3124 (destroySubcontext): New method.
3125 (createSubcontext): New method.
3126 (lookupLink): New method.
3127 (getNameParser): New method.
3128 (composeName): New method.
3129 (addToEnvironment): New method.
3130 (removeFromEnvironment): New method.
3131 (getEnvironment): New method.
3132 (close): New method.
3133 (getNameInNamespace): New method.
3135 2000-11-26 Tom Tromey <tromey@cygnus.com>
3137 * Makefile.in: Rebuilt.
3138 * Makefile.am (core_java_source_files): Added
3139 RuntimePermission.java.
3140 * java/lang/RuntimePermission.java: Imported from Classpath.
3141 * java/lang/Thread.java (getContextClassLoader): Now
3142 synchronized. Added security code.
3143 (setContextClassLoader): Likewise.
3145 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3146 length field of array.
3147 (_Jv_NewPrimArray): Likewise.
3148 * gcj/array.h (__JArray): `length' field now const. Added
3151 2000-11-26 Anthony Green <green@redhat.com>
3153 * javax/naming/spi/NamingManager.java,
3154 javax/naming/spi/ObjectFactory.java,
3155 javax/naming/spi/InitialContextFactory.java,
3156 javax/naming/spi/InitialContextFactoryBuilder.java,
3157 javax/naming/RefAddr.java, javax/naming/Reference.java,
3158 javax/naming/NamingException.java, javax/naming/Context.java,
3159 javax/naming/Referenceable.java,
3160 javax/naming/directory/InitialDirContext.java,
3161 javax/naming/directory/DirContext.java,
3162 javax/naming/directory/Attributes.java,
3163 javax/naming/directory/Attribute.java,
3164 javax/naming/StringRefAddr.java,
3165 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3166 javax/naming/InitialContext.java,
3167 javax/naming/NoInitialContextException.java: New files.
3169 2000-11-25 Anthony Green <green@redhat.com>
3171 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3172 (_Jv_NewPrimArray): Likewise.
3173 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3174 (class JArray): Removed constructor.
3176 * java/lang/Thread.java (context_class_loader): New private data.
3177 (getContextClassLoader): New method.
3178 (setContextClassLoader): New method.
3179 (Thread): Initialize context_class_loader.
3181 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3182 (getResource): Rename to findResource.
3183 (findResource): New method. Used to be getResource.
3184 (getResourceAsStream): Deleted.
3185 (jarFileize): Extracted logic from URLClassLoader constructor into
3186 this new private method.
3187 (addURL): New protected method.
3188 (URLClassLoader): Call jarFileize. Use addElement instead of
3190 (findResources): New method.
3192 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3193 (getResource): Implement correct logic.
3194 (findResource): New method.
3195 (getResources): New method.
3196 (findClass): Create a ClassNotFoundException with the name of the
3197 class rather than nothing at all.
3198 (defineClass) Only throw ClassFormatError.
3200 * java/lang/Class.java (forName): New method.
3201 * java/lang/Class.h (forName): New method.
3202 * java/lang/natClass.cc (forName): New method.
3204 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3206 * java/lang/System.java (setProperties): Only call init_properties()
3207 if properties is null.
3208 (getProperties): Ditto.
3209 (getProperty): Ditto.
3210 (setProperty): Call init_properties if properties are null.
3211 (prop_init): Remove field.
3212 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3213 method. Check for null properties after synchronizing instead of
3214 prop_init flag. Set the properties field last for thread safety.
3216 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3217 test for gcj.dumpobjects property and enable object stream dumping
3219 (dumpElement): No longer native.
3220 (dumpElementln): Ditto.
3221 (setDump): Do not define.
3222 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3223 (dumpElementln): Removed.
3226 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3228 * configure: Rebuilt.
3229 * Makefile.in: Rebuilt.
3230 * Makefile.am (built_java_source_files): Add Configuration.java.
3231 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3232 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3233 Create `gnu' directory in the build tree.
3234 * gnu/classpath/Configuration.java.in: New file.
3236 2000-11-24 Tom Tromey <tromey@cygnus.com>
3238 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3240 (_Jv_NewPrimArray): Likewise.
3242 * gcj/array.h (__JArray): `length' field now const. Added
3244 (class JArray): Added constructor.
3246 2000-11-23 Mark Wielaard <mark@klomp.org>
3248 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3251 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3253 * java/util/Vector.java: Improve exception messages.
3254 (Vector): Check initialCapacity for IllegalArgumentException.
3255 (tromToSize): Don't check for elementCount == elementData.length
3257 (toArray): Don't try to set null marker if target array is the same
3258 length as the vector.
3260 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3262 * Makefile.in: Rebuilt.
3263 * Makefile.am (core_java_source_files): Added Collections.java.
3264 * java/util/List.java: Merged from classpath.
3265 * java/util/Vector.java: Ditto.
3266 * java/util/Collections.java: From classpath.
3267 * java/util/ArrayList.java (addAll(Collection)): Call
3268 addAll(int,Collection) instead of duplicating code.
3269 (indexOf): Clean up int initialization.
3270 (clear): Set cleared array entries to null, to allow garbage
3272 * java/util/List.java: Minor formatting fixes.
3273 * java/util/SimpleTimeZone.java: ditto.
3275 2000-11-18 Tom Tromey <tromey@cygnus.com>
3277 * Makefile.in: Rebuilt.
3278 * Makefile.am (core_java_source_files): Added new files.
3279 * java/lang/reflect/ReflectPermission.java: New class.
3280 * java/io/FileFilter.java: From Classpath
3281 * java/io/FilePermission.java: From Classpath.
3283 2000-11-17 Tom Tromey <tromey@cygnus.com>
3285 * java/lang/reflect/AccessibleObject.java (isAccessible,
3286 setAccessible): Now public.
3288 * java/lang/natString.cc: Include Locale.h.
3289 (toUpperCase): Added `locale' argument. Handle locale
3291 (toLowerCase): Added `locale' argument. Handle locale
3293 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3294 CAPITAL_I): New defines.
3295 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3298 (toUpperCase, toLowerCase): New methods. Variants which accept
3301 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3304 * java/util/PropertyPermission.java: Re-merged from Classpath.
3306 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3308 * java/text/StringCharacterIterator.java: Reindented.
3309 (setText): New method.
3311 2000-11-17 Mark Wielaard <mark@klomp.org>
3313 Merge with Classpath (changes by Bryce McKinlay)
3314 * java/util/jar/*.java: Reformat all to unofficial standard coding
3315 style. No changes of substance.
3317 2000-11-17 Mark Wielaard <mark@klomp.org>
3319 * java/util/zip/*.java: Javadoc updates.
3321 2000-11-17 Tom Tromey <tromey@cygnus.com>
3323 * java/text/CollationKey.java: Implement Comparable.
3324 (compareTo(Object)): New method.
3325 * java/text/Collator.java (compare(Object,Object)): New method.
3326 Implement Comparator.
3328 * java/util/zip/InflaterInputStream.java (available): New method.
3329 (close): New method.
3330 (read, available, skip, fill): Throw exception if stream closed.
3331 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3332 getNextEntry): Throw exception if closed.
3334 2000-11-16 Tom Tromey <tromey@cygnus.com>
3336 * java/io/PushbackReader.java: Merged with Classpath.
3337 * java/util/Arrays.java: Updated from Classpath.
3339 * scripts/blocks.pl: New file.
3340 * java/lang/Character.java (Subset): New class.
3341 (UnicodeBlock): New class.
3343 * java/lang/Math.java (toDegrees, toRadians): New methods.
3345 * java/lang/Float.java: Implement Comparable.
3346 (compareTo): New methods.
3347 * java/lang/Double.java: Implement Comparable.
3348 (compareTo): New methods.
3350 2000-11-16 Warren Levy <warrenl@cygnus.com>
3352 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3354 (listeners): Made transient.
3355 (source): Renamed from 'bean'.
3356 (children): New field for serialization.
3357 (propertyChangeSupportSerializedDataVersion): Ditto.
3358 (serialVersionUID): Ditto.
3359 (writeObject): New serialization method.
3360 (readObject): New serialization method.
3361 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3363 (listeners): Made transient.
3364 (source): Renamed from 'bean'.
3365 (children): New field for serialization.
3366 (vetoableChangeSupportSerializedDataVersion): Ditto.
3367 (serialVersionUID): Ditto.
3368 (writeObject): New serialization method.
3369 (readObject): New serialization method.
3370 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3371 to allow constructor to have a return type (i.e. the class that the
3372 constructor constructs).
3374 2000-11-14 Tom Tromey <tromey@cygnus.com>
3376 * Makefile.in: Rebuilt.
3377 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3380 2000-11-02 Warren Levy <warrenl@cygnus.com>
3382 * java/io/ObjectInputStream.java (readObject): Added code to
3383 conditionally dump out the serialized data.
3384 Handle ENDBLOCKDATA case a bit more gracefully since the current
3385 behavior doesn't seem to work as expected.
3386 (readStreamHeader): Added code for serialized data dumper.
3387 (readNextBlock): Ditto.
3388 (readFields): Ditto.
3389 (dump): New private static field for turning on/off dumper.
3390 (setDump): New native method.
3391 (dumpElement): New native method.
3392 (dumpElementln): New native method.
3393 * java/io/natObjectInputStream.cc (setDump): New method.
3394 (dumpElement): New method.
3395 (dumpElementln): New method.
3397 2000-11-02 Warren Levy <warrenl@cygnus.com>
3399 * java/net/InetAddress.java (addr): Renamed from 'address'.
3400 (address): New field to match Serialized Form doc.
3401 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3402 (family): New serialization field.
3403 (serialVersionUID): New field.
3404 (readObject): New method.
3405 (writeObject): New method.
3406 (getFamily): New native method.
3407 (InetAddress): Set family.
3408 * java/net/natInetAddress.cc (getFamily): New method.
3409 (addr): Renamed from 'address'.
3410 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3411 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3412 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3414 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3416 * java/util/AbstractList.java (SubList): Make it a top-level private
3418 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3420 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3421 * Makefile.in: Rebuilt.
3423 2000-11-02 Tom Tromey <tromey@cygnus.com>
3425 * Makefile.in: Rebuilt.
3426 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3429 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3431 * java/util/AbstractList.java (remove): Comment out modCount increment
3432 to work around compiler bug.
3435 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3437 * java/util/AbstractList.java: Throw messages with
3438 IndexOutOfBoundsExceptions.
3439 (listIterator()): Call listIterator(0).
3440 (size): New field. Initialize to size().
3441 (hasNext): Test position against size, not size().
3442 (remove): Increment knownMod by one instead of resetting it from
3445 (SubList.upMod): Removed.
3446 (SubList.set): Don't call upMod() or update knownMod.
3447 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3448 (SubList.remove): Ditto.
3449 (SubList.addAll): Don't call backingList.size(). Increment size from
3451 (SubList.iterator): New method. Call listIterator(0).
3452 (SubList.listIterator): New method. Restore code to return an anonymous
3453 listIterator implementation (with some changes).
3454 * java/util/AbstractSequentialList.java: Throw messages with
3455 IndexOutOfBoundsExceptions.
3456 (addAll): Add a specnote.
3457 * java/util/ArrayList.java (removeRange): Get the math right.
3458 (addAll): Increment modCount _before_ creating iterator.
3459 * java/util/LinkedList.java: Rewritten, mostly.
3461 2000-11-01 Tom Tromey <tromey@cygnus.com>
3463 * scripts/encodings.pl: Added `ASCII' alias.
3464 * Makefile.in: Rebuilt.
3465 * Makefile.am (convert_source_files): Added new files.
3466 * gnu/gcj/convert/Input_ASCII.java: New file.
3467 * gnu/gcj/convert/Output_ASCII.java: New file.
3468 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3469 out-of-range characters.
3470 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3471 (read): Swap bytes if required. Treat `count' as character count,
3473 (write): Likewise. Also, handle case where iconv fails on a given
3475 (init): Put encoding into exception.
3476 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3477 (static): Call iconv_init. Rebuilt alias list.
3478 (iconv_init): New private method.
3480 2000-11-01 Tom Tromey <tromey@cygnus.com>
3482 * Makefile.in: Rebuilt.
3483 * Makefile.am (install-exec-hook): Only make a single symlink, and
3484 remove the destination before making the link.
3485 * configure: Rebuilt.
3486 * configure.in: Call AC_PROG_LN_S.
3488 2000-10-31 Warren Levy <warrenl@cygnus.com>
3490 * jni.cc: Added include of java/lang/ThreadGroup.h.
3491 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3492 per change of 2000-10-05.
3494 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3496 * java/util/BitSet.java: Updated @specnote.
3498 * java/io/Reader.java: Merge docs from classpath.
3499 (skip): Synchronize on `lock'.
3500 * java/io/FileReader.java: Import correct implementation from
3502 * java/io/StringReader.java: Merge docs from classpath.
3503 (ready): Throw IOException if stream is closed.
3505 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3507 * java/util/AbstractCollection.java (addAll): Use size() instead of
3508 hasNext() in iterator loop.
3510 (contains): Ditto. Simplify loop.
3511 (containsAll): Ditto.
3516 (toString): Ditto. Use string concatenation operators, not
3518 * java/util/AbstractList.java (addAll): Use size() instead of
3519 hasNext() in iterator loop.
3522 (indexOf): Ditto. Don't take null check outside of the loop.
3523 (iterator): Return an AbstractListItr instead of anonymous class.
3524 (lastIndexOf): Use a for loop bounded by size() instead of
3525 hasPrevious() in iterator loop.
3526 (listIterator): Return an AbstractListItr.
3527 (removeRange): Remove bounds checking code and docs.
3528 (AbstractListItr): New inner class. Code moved here from
3530 (SubList.iterator): Removed. Use default implementation from
3531 AbstractList instead.
3532 (SubList.listIterator): As above.
3533 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3534 instead of hasNext() in iterator loop.
3535 (containsValue): Ditto.
3541 (toString): Ditto. Use string concatenation operators, not
3543 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3544 bounded by size() instead of hasNext() in iterator loop.
3545 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3546 part of normal execution flow. Do an explicit null check instead.
3547 * java/util/ArrayList.java (_iSize): Rename to `size'.
3548 (_arData): Rename to `data'.
3549 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3552 (removeRange): Make protected. Don't check bounds.
3553 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3555 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3557 (addAll (int, Collection)): Check lower bounds. Simplify exception
3559 (clone): Clone the data array too.
3560 (indexOf): Inline doesEqual().
3561 (lastIndexOf): Ditto.
3562 (clear): Don't set array data to null.
3563 (set): Check lower bounds. Simplify exception string.
3564 (toArray): Correct comment.
3565 (trimToSize): Don't update modCount, this is not a structural change.
3568 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3570 (toString): Declare `bit' as long, not int.
3571 (data): Made package-private, not private.
3573 2000-10-27 Warren Levy <warrenl@cygnus.com>
3575 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3576 array elements to true.
3578 2000-10-27 Warren Levy <warrenl@cygnus.com>
3580 * Makefile.am: Added locale files from Classpath.
3581 * Makefile.in: Rebuilt.
3582 * gnu/java/locale/Calendar.java: New file.
3583 * gnu/java/locale/Calendar_de.java: New file.
3584 * gnu/java/locale/Calendar_en.java: New file.
3585 * gnu/java/locale/Calendar_nl.java: New file.
3586 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3587 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3588 serialization compatibility.
3589 (scale): Made private.
3590 (serialVersionUID): New field.
3591 * java/math/BigInteger.java (ival): Made transient.
3592 (words): Made transient.
3593 (bitCount): New serialization field.
3595 (firstNonzeroByteNum): Ditto.
3596 (lowestSetBit): Ditto.
3599 (serialVersionUID): New field.
3600 (readObject): New method.
3601 (writeObject): New method.
3602 * java/util/BitSet.java (serialVersionUID): New field.
3603 * java/util/Calendar.java: Replaced with Classpath file.
3604 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3605 of getDefault() for TimeZone or Locale instead of passing nulls.
3606 * java/util/Locale.java (serialVersionUID): New field.
3607 (writeObject): New method.
3608 (readObject): New method.
3609 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3611 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3613 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3614 (core_java_source_files): Put java.lang, java.io, and java.util here.
3615 (ordinary_java_source_files): Order so that core_java_source_files are
3617 (java_source_files): Reorder so that special_java_source_files are
3619 * configure.in: Don't pass -I flag to gcj.
3620 * Makefile.in: Rebuilt.
3621 * configure: Rebuilt.
3623 2000-10-25 Tom Tromey <tromey@cygnus.com>
3625 * Makefile.in: Rebuilt.
3626 * Makefile.am (install-exec-hook): New target.
3628 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3630 * java/util/EventObject.java: Merged from classpath.
3632 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3635 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3637 * java/util/AbstractSet.java (equals): Re-installed original code.
3639 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3641 * Makefile.am: Added rules for libgcjx library.
3642 * Makefile.in: Rebuilt.
3643 * configure.in: Added check for X.
3644 * configure: Rebuilt.
3645 * gnu/awt/LightweightRedirector.java: New file.
3646 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3647 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3648 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3649 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3650 * gnu/awt/j2d/MappedRaster.java: New file.
3651 * gnu/awt/xlib/XCanvasPeer.java: New file.
3652 * gnu/awt/xlib/XEventLoop.java: New file.
3653 * gnu/awt/xlib/XEventQueue.java: New file.
3654 * gnu/awt/xlib/XFontMetrics.java: New file.
3655 * gnu/awt/xlib/XFramePeer.java: New file.
3656 * gnu/awt/xlib/XGraphics.java: New file.
3657 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3658 * gnu/awt/xlib/XPanelPeer.java: New file.
3659 * gnu/awt/xlib/XToolkit.java: New file.
3660 * gnu/gcj/xlib/Clip.java: New file.
3661 * gnu/gcj/xlib/Colormap.java: New file.
3662 * gnu/gcj/xlib/Display.java: New file.
3663 * gnu/gcj/xlib/Drawable.java: New file.
3664 * gnu/gcj/xlib/Font.java: New file.
3665 * gnu/gcj/xlib/GC.java: New file.
3666 * gnu/gcj/xlib/Pixmap.java: New file.
3667 * gnu/gcj/xlib/Screen.java: New file.
3668 * gnu/gcj/xlib/Visual.java: New file.
3669 * gnu/gcj/xlib/WMSizeHints.java: New file.
3670 * gnu/gcj/xlib/Window.java: New file.
3671 * gnu/gcj/xlib/WindowAttributes.java: New file.
3672 * gnu/gcj/xlib/XAnyEvent.java: New file.
3673 * gnu/gcj/xlib/XButtonEvent.java: New file.
3674 * gnu/gcj/xlib/XColor.java: New file.
3675 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3676 * gnu/gcj/xlib/XConnectException.java: New file.
3677 * gnu/gcj/xlib/XEvent.java: New file.
3678 * gnu/gcj/xlib/XException.java: New file.
3679 * gnu/gcj/xlib/XExposeEvent.java: New file.
3680 * gnu/gcj/xlib/XID.java: New file.
3681 * gnu/gcj/xlib/XImage.java: New file.
3682 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3683 * gnu/gcj/xlib/natClip.cc: New file.
3684 * gnu/gcj/xlib/natColormap.cc: New file.
3685 * gnu/gcj/xlib/natDisplay.cc: New file.
3686 * gnu/gcj/xlib/natDrawable.cc: New file.
3687 * gnu/gcj/xlib/natFont.cc: New file.
3688 * gnu/gcj/xlib/natGC.cc: New file.
3689 * gnu/gcj/xlib/natPixmap.cc: New file.
3690 * gnu/gcj/xlib/natScreen.cc: New file.
3691 * gnu/gcj/xlib/natVisual.cc: New file.
3692 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3693 * gnu/gcj/xlib/natWindow.cc: New file.
3694 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3695 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3696 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3697 * gnu/gcj/xlib/natXColor.cc: New file.
3698 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3699 * gnu/gcj/xlib/natXException.cc: New file.
3700 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3701 * gnu/gcj/xlib/natXImage.cc: New file.
3702 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3703 * java/awt/EventDispatchThread.java: Start thead on creation.
3705 2000-10-20 Tom Tromey <tromey@cygnus.com>
3707 From Arno J. Klaassen:
3708 * interpret.cc: Include <stdlib.h> for alloca.
3709 * defineclass.cc: Include <stdlib.h> for alloca.
3711 * Makefile.in: Rebuilt.
3712 * Makefile.am: Include deps.mk.
3713 (GCJCOMPILE): Added -MD, -MT, and -MF.
3714 ($(javao_files)): Don't depend on libgcj.zip.
3715 (all-recursive): New target.
3716 (%.lo:%.cc): Do dependency tracking.
3717 ($(nat_headers)): Don't depend on libgcj.zip.
3718 * configure: Rebuilt.
3719 * configure.in: Make .d files and deps.mk.
3721 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3723 * exception.cc: Don't #include "exception".
3724 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3726 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3727 * Makefile.in: Updated.
3729 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3731 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3732 * java/awt/peer/ComponentPeer.java (disable): Removed.
3735 (minimumSize): Removed.
3736 (preferredSize): Removed.
3739 * java/awt/peer/ListPeer.java (addItem): Removed.
3741 (minimumSize): Removed.
3742 (preferredSize): Removed.
3743 (setMultipleSelections): Removed.
3744 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3745 (remove): Renamed from removeMenu.
3746 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3748 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3749 (remove): Renamed from removeItem.
3750 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3751 (getMinimumSize): Removed.
3752 (getPreferredSize): Removed.
3753 (minimumSize): Removed.
3754 (preferredSize): Removed.
3755 (replaceText): Removed.
3756 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3757 (preferredSize): Removed.
3758 (getMinimumSize): Removed.
3759 (getPreferredSize): Removed.
3760 (setEchoCharacter): Removed.
3762 2000-10-10 Warren Levy <warrenl@cygnus.com>
3764 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3765 * java/sql/Date.java (serialVersionUID): New field.
3766 * java/sql/Time.java (serialVersionUID): New field.
3767 * java/sql/Timestamp.java (serialVersionUID): New field.
3768 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3769 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3770 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3771 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3772 (readObject): New serialization method.
3773 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3774 (serialVersionOnStream): New field.
3775 (readObject): New serialization method.
3776 (getMonetaryDecimalSeparator): New method.
3777 (setMonetaryDecimalSeparator): New method.
3778 * java/text/NumberFormat.java (maxFractionDigits): New field.
3779 (maxIntegerDigits): New field.
3780 (minFractionDigits): New field.
3781 (minIntegerDigits): New field.
3782 (serialVersionOnStream): New field.
3783 (serialVersionUID): New field.
3784 (readObject): New serialization method.
3785 (writeObject): New serialization method.
3786 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3787 (serialVersionOnStream): New field.
3788 (serialVersionUID): New field.
3789 (readObject): New serialization method.
3791 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3793 * configure.in (GCJ): Avoid bogus error message when looking for
3794 (and not finding) gcj in the build tree.
3795 * configure: Rebuilt.
3797 2000-10-09 Tom Tromey <tromey@cygnus.com>
3799 * configure: Rebuilt.
3800 * configure.in: Include sys/types.h when checking for socklen_t.
3801 From Arno J. Klaassen.
3803 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3805 * include/jvm.h: Enable __builtin_expect().
3807 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3808 the main program. Fix for PR libgcj/341.
3810 2000-10-07 Tom Tromey <tromey@cygnus.com>
3812 * java/util/Properties.java: Merged with Classpath version.
3814 2000-10-05 Tom Tromey <tromey@cygnus.com>
3816 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3817 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3818 * java/lang/Class.h (Object): Added `class$' field.
3819 * java/lang/Object.h (Object): Added `class$' field.
3820 * defineclass.cc (ClassClass): Use `class$' form.
3821 (ClassObject): Likewise.
3822 * resolve.cc (ClassObject): Use `class$' form.
3823 (ObjectClass): Likewise.
3824 * interpret.cc (ClassError): Removed.
3825 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3827 (IntegerClass): Likewise.
3828 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3830 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3831 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3832 SerializableClass): Likewise.
3833 Include Serializable.h, Cloneable.h.
3834 * java/lang/natSystem.cc (SystemClass): Removed.
3835 (init_properties): Use `class$' form.
3836 * java/lang/natObject.cc (CloneableClass): Removed.
3837 (clone): Use `class$' form.
3838 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3839 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3840 ConstructorClass): Likewise.
3841 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3842 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3843 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3844 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3846 (ClassClass): Likewise.
3847 * include/jvm.h (StringClass): Use `class$' form.
3848 * prims.cc (ObjectClass): Removed.
3849 (_Jv_RunMain): Use `class$' form.
3850 (_Jv_AllocObject): Likewise.
3851 * jni.cc (ClassClass): Use `class$' form.
3852 (ThrowableClass): Likewise.
3853 (ObjectClass): Likewise.
3854 (MethodClass): Likewise.
3855 (ThreadGroupClass): Likewise.
3856 (NativeThreadClass): Likewise.
3857 * boehm.cc (ObjectClass): Removed.
3858 (ClassClass): Removed.
3859 (_Jv_MarkObj): Use `class$' form.
3860 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3863 2000-10-05 Warren Levy <warrenl@cygnus.com>
3865 * Makefile.am: Removed java/io/Replaceable.java and
3866 java/io/Resolvable.java.
3867 * Makefile.in: Rebuilt.
3868 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3870 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3872 (processResolution): Handle readResolve method via reflection with
3873 removal of Resolvable interface.
3874 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3875 method via reflection with removal of Replaceable interface.
3876 * java/io/Replaceable.java: Removed.
3877 * java/io/Resolvable.java: Removed.
3878 * java/security/Key.java (serialVersionUID): New field.
3879 * java/security/Provider.java (serialVersionUID): New field.
3880 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3882 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3884 * java/sql/DataTruncation.java (serialVersionUID): New field.
3885 * java/sql/SQLException.java (serialVersionUID): New field.
3886 * java/sql/SQLWarning.java (serialVersionUID): New field.
3887 * java/util/Date.java (serialVersionUID): New field.
3888 (millis): Made transient.
3889 (readObject): New method.
3890 (writeObject): New method.
3892 2000-10-05 Tom Tromey <tromey@cygnus.com>
3894 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3896 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3898 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3899 (JvRunMain): Set _Jv_argv and _Jv_argc.
3900 * java/awt/Component.java: Minor fixes.
3901 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3902 * java/awt/Toolkit.java (systemEventQueue): Removed.
3903 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3904 * java/awt/Window.java (getToolkit): Don't call super.
3905 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3906 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3907 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3908 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3909 * gnu/awt/gtk/GtkFramePeer.java: New file.
3910 * gnu/awt/gtk/GtkMainThread.java: New file.
3911 * gnu/awt/gtk/GtkToolkit.java: New file.
3912 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3913 * gnu/awt/gtk/gtkcommon.cc: New file.
3914 * gnu/awt/gtk/gtkcommon.h: New file.
3915 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3916 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3917 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3918 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3919 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3920 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3922 2000-09-30 Tom Tromey <tromey@cygnus.com>
3924 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3925 interrupted before modifying the cv's wait set.
3928 2000-09-30 Hans Boehm <boehm@acm.org>
3929 Bryce McKinlay <bryce@albatross.co.nz>
3931 Implement bitmap descriptor based marking for Boehm GC.
3933 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3934 * configure: Rebuilt.
3935 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3936 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3937 method get_finalizer().
3938 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3939 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3940 (_Jv_AllocObj): Add new jclass parameter.
3941 (_Jv_AllocArray): Ditto.
3942 (_Jv_BuildGCDescr): New prototype.
3943 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3944 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3945 get_finalizer() instead of direct finalizer vtable offset.
3946 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3947 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3948 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3949 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3950 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3951 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3952 (_Jv_DetermineVTableIndex): Ditto.
3953 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3954 calculations to account for new gc_descr field.
3955 * boehm.cc: #include gc_gcj.h.
3956 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3957 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3958 New commentary from HB. Mark the classes vtable.
3959 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3960 (GC_DEFAULT_DESCR): New #define.
3961 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3962 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3963 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3964 scan conservativly if size is less than min_heap_addr. Set vtable
3965 pointer of new object before returning.
3966 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3967 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3968 allocation for obj_kind_x.
3969 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3970 (_Jv_AllocObj): Set vtable on returned object.
3971 (_Jv_AllocArray): Ditto.
3972 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3973 (_Jv_NewPrimArray): Ditto.
3974 (_Jv_AllocObj): Declare as a friend.
3975 (_Jv_AllocArray): Ditto.
3976 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3977 from &ObjectClass into new array class. Remove offset-by-one
3978 adjustments from `method' size calculations to account for gc_descr
3981 2000-09-26 Tom Tromey <tromey@cygnus.com>
3983 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3984 `remove', not `add'.
3986 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3988 * java/lang/natSystem.cc (file_encoding): Added return statement.
3990 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3992 * Makefile.am: Re-work shell commands that exceeded command-line
3994 * Makefile.in: Rebuilt.
3996 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3998 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3999 * java/lang/natDouble.cc: Likewise.
4000 * java/lang/reflect/natMethod.cc: Likewise.
4001 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4003 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4005 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4007 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4008 * acinclude.m4: Arrange for automake to not bring in a new
4009 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4010 * Makefile.am: Leave it up to automake to subst GCJ.
4011 * aclocal.m4, configure, Makefile.in: Rebuilt.
4013 2000-09-13 Tom Tromey <tromey@cygnus.com>
4015 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4016 (get): Ensure Boolean class is initialized.
4017 * java/lang/reflect/natField.cc (BooleanClass): New define.
4018 (get): Ensure Boolean class is initialized.
4020 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4022 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4023 Initialize with anonymous class.
4024 (compareToIgnoreCase): New method.
4026 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4027 (uncaughtException): Set had_uncaught_exception.
4028 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4029 exit with error status if set.
4030 (_Jv_RunMain): Ditto.
4032 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4034 * configure: Rebuilt with new ../libtool.m4.
4036 2000-09-11 Tom Tromey <tromey@cygnus.com>
4038 * java/lang/reflect/Field.java (toString): Don't rely on
4041 2000-09-08 Tom Tromey <tromey@cygnus.com>
4043 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4044 default decoder use iconv.
4045 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4046 Let default encoder use iconv.
4047 * configure: Rebuilt.
4048 * configure.in: Check for nl_langinfo and <langinfo.h>.
4049 * java/lang/natSystem.cc (file_encoding): New function.
4050 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4052 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4054 * acinclude.m4: Simplify the tests for CC and CXX.
4055 * aclocal.m4, configure: Rebuilt.
4057 * acinclude.m4: Include libtool macros from the source tree.
4058 * aclocal.m4, configure: Rebuilt.
4060 2000-09-08 Warren Levy <warrenl@cygnus.com>
4062 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4063 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4064 * java/io/File.java (writeObject): Added.
4065 (readObject): Added.
4066 (serialVersionUID): Added.
4067 * java/io/ObjectOutputStream.java (writeObject): Initialized
4068 fieldsAlreadyWritten before recursion rather than after.
4069 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4070 * java/io/OptionalDataException.java (serialVersionUID): Added.
4071 (OptionalDataException): Made package private.
4072 * java/io/SyncFailedException.java (SyncFailedException): Removed
4073 default constructor to match spec.
4074 * java/lang/Boolean.java (serialVersionUID): Added.
4075 * java/lang/Byte.java (serialVersionUID): Added.
4076 * java/lang/Character.java (serialVersionUID): Added.
4077 * java/lang/Double.java (serialVersionUID): Added.
4078 * java/lang/Float.java (serialVersionUID): Added.
4079 * java/lang/Integer.java (serialVersionUID): Added.
4080 * java/lang/Long.java (serialVersionUID): Added.
4081 * java/lang/Number.java (serialVersionUID): Added.
4082 * java/lang/Short.java (serialVersionUID): Added.
4083 * java/lang/String.java (serialVersionUID): Added.
4084 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4086 * java/lang/reflect/InvocationTargetException.java
4087 (serialVersionUID): Added.
4088 * java/net/URL.java (handler): Made transient.
4089 (hashCode): Added field for serialization, per spec. and use
4090 cached value if available.
4091 (serialVersionUID): Added.
4092 (URL): Initialize hashCode.
4093 (set): Adjust hashCode.
4094 (readObject): New Method to initialize the protocol handler when
4096 (writeObject): New method.
4097 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4098 * java/text/Collator.java: Removed 'implements Serializable'.
4099 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4100 * java/util/Properties.java (serialVersionUID): Added.
4101 * java/util/Random.java (serialVersionUID): Added.
4102 (seed): Made private.
4103 (nextNextGaussian): Made private.
4104 (haveNextNextGaussian): Made private.
4105 * java/util/Stack.java (serialVersionUID): Added.
4106 * java/util/TimeZone.java (serialVersionUID): Added.
4107 * java/util/Vector.java (serialVersionUID): Added.
4109 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4111 * Makefile.am (Thread.h): Don't be friends with native threads
4113 * Makefile.in: Rebuilt.
4114 * java/lang/Thread.java (interrupt_flag): Make package-private.
4116 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4118 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4119 to avoid long long division.
4121 2000-09-06 Tom Tromey <tromey@cygnus.com>
4123 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4125 * java/lang/reflect/Method.java (toString): Use `getName' for
4128 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4129 `args' if method takes no parameters.
4131 Fix for PR java.lang/339:
4132 * java/lang/natPosixProcess.cc (fail): New function.
4133 (cleanup): New function.
4134 (startProcess): Use them. Create pipe so child can communicate
4135 exec failure back to parent.
4137 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4139 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4141 (send): Undo last patch. Remove the label only.
4143 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4145 * java/net/natInetAdress.cc: Ditto.
4147 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4149 2000-09-05 Tom Tromey <tromey@cygnus.com>
4151 * doc/cni.sgml: Updated from master copy.
4153 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4155 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4157 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4159 * java/lang/fdlibm.h: #undef __P if previously defined.
4160 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4161 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4165 2000-09-04 Tom Tromey <tromey@cygnus.com>
4167 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4170 2000-09-04 Anthony Green <green@redhat.com>
4172 Fix for PR java.io/203:
4173 * java/io/File.java (createTempFile): Obey directory argument.
4174 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4175 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4176 variable to set java.io.tmpdir on non-WIN32 systems.
4178 2000-09-04 Anthony Green <green@redhat.com>
4180 * java/io/File.java (deleteOnExit): New method.
4181 * gnu/gcj/runtime/FileDeleter.java: New class.
4182 * java/lang/natRuntime.cc (exit): Call
4183 FileDeleter.deleteOnExitNow()
4184 * Makefile.am: Add FileDeleter.java.
4185 * Makefile.in: Rebuilt.
4187 2000-09-02 Tom Tromey <tromey@cygnus.com>
4189 * Makefile.in: Rebuilt.
4190 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4191 environment variable.
4193 2000-09-01 Andrew Haley <aph@redhat.com>
4195 * java/io/StreamTokenizer.java: Don't throw a
4196 NumberFormatException if a field is numeric as far as the
4197 StreamTokenizer is concerned but not as far as Double.valueOf() is
4198 concerned: return a zero instead.
4200 2000-08-30 Tom Tromey <tromey@cygnus.com>
4202 * Makefile.in: Rebuilt.
4203 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4205 2000-08-28 Tom Tromey <tromey@cygnus.com>
4207 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4208 gnu/gcj/awt/ComponentDataBlitOp.java,
4209 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4210 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4211 java/awt/color/ICC_ColorSpace.java,
4212 java/awt/color/ICC_Profile.java,
4213 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4214 java/awt/image/ComponentColorModel.java,
4215 java/awt/image/ComponentSampleModel.java,
4216 java/awt/image/DataBuffer.java,
4217 java/awt/image/DataBufferByte.java,
4218 java/awt/image/DataBufferInt.java,
4219 java/awt/image/DataBufferUShort.java,
4220 java/awt/image/DirectColorModel.java,
4221 java/awt/image/IndexColorModel.java,
4222 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4223 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4224 java/awt/image/SinglePixelPackedSampleModel.java,
4225 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4226 Removed Latin-1 copyright symbols.
4227 * java/util/zip/ZipFile.java: Indentation fixes.
4229 2000-08-27 Mark Wielaard <mark@klomp.org>
4231 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4232 constructor, close can delete the file, finalize calls close.
4233 * java/util/jar/JarFile.java: Constructor that takes mode now
4236 2000-08-27 Anthony Green <green@redhat.com>
4238 * java/util/ArrayList.java, java/util/Timer.java,
4239 java/util/LinkedList.java, java/util/TimerTask.java,
4240 java/util/HashMap.java, java/util/AbstractMap.java,
4241 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4242 java/util/SortedSet.java: Imported from GNU Classpath.
4243 * Makefile.in: Rebuilt.
4244 * Makefile.am: Added new files.
4246 2000-08-26 Anthony Green <green@redhat.com>
4248 * Makefile.in: Rebuilt.
4249 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4252 * prims.cc: Include ClassLoader.h.
4253 (_Jv_RunMain): When executing jar files, classpath must be the jar
4254 file only. Lose our reference to the system ClassLoader in order
4255 to get a new one with the correct classpath.
4256 * java/lang/natSystem.cc (init_properties): When executing a jar
4257 file, only use the jar file for java.class.path.
4259 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4260 for bytecode archives.
4262 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4263 exists, but not Main-Class.
4265 2000-08-23 Mark Wielaard <mark@klomp.org>
4267 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4268 return -1 when fill() has no more data for the Inflater.
4270 2000-08-23 Mark Wielaard <mark@klomp.org>
4272 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4273 write(String) already does.
4275 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4277 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4278 to `alive_flag', call `init'.
4279 (init): New native method.
4280 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4283 2000-08-21 Mark Wielaard <mark@klomp.org>
4285 * Makefile.in: Rebuilt.
4286 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4288 (java/lang/reflect/Field.h): Likewise.
4289 (java/lang/reflect/Method.h): Likewise.
4290 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4293 2000-08-21 Tom Tromey <tromey@cygnus.com>
4295 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4298 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4300 * java/lang/natSystem.cc (init_properties): Change sourceware
4301 reference to sources.redhat.com.
4303 * include/java-props.h: Add _Jv_Jar_Class_Path.
4304 * prims.cc: Ditto. Set it from `gij -jar file' option.
4306 * java/lang/natSystem.cc (init_properties): Set java.class.path
4308 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4310 * java/util/PropertyPermission.java: Import from GNU Classpath.
4311 * Makefile.in: Rebuilt.
4312 * Makefile.am: Add java/util/PropertyPermission.java.
4313 * java/lang/System.java: Add setProperty method.
4315 * gij.cc (main): Add -jar option to execute jar files.
4316 (help): Describe -jar option.
4317 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4318 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4319 * gnu/gcj/runtime/FirstThread.java (main): New method.
4321 * java/util/jar/Attributes.java: Correct comment spelling.
4323 2000-08-20 Mark Wielaard <mark@klomp.org>
4325 * java/util/zip/Adler32.java: Make private variables really private
4326 * java/util/zip/CRC32.java: Make private variables really private
4327 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4329 * java/util/zip/InflaterInputStream.java: skip() could skip to
4331 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4332 * java/util/zip/ZipFile.java: size() new 1.2 method
4333 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4334 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4337 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4339 * java/util/jar/JarFile.java: Don't call
4340 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4343 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4345 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4346 Read the entire contents of the class file, not just what is
4349 * java/net/JarURLConnection.java: getEntry doesn't take any
4350 arguments. Return null if element is null.
4352 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4353 size from the archive, not the inflated size.
4355 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4356 java.util.zip.ZipFile.getEntry.
4358 * gij.cc (help): Change sourceware reference to
4361 2000-08-19 Tom Tromey <tromey@cygnus.com>
4363 * java/util/zip/ZipInputStream.java (createZipEntry):
4366 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4368 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4369 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4370 java/util/jar/JarInputStream.java,
4371 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4372 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4373 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4374 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4375 java/security/cert/Certificate.java,
4376 java/security/cert/CertificateEncodingException.java,
4377 java/security/cert/CertificateException.java,
4378 java/security/cert/CertificateExpiredException.java,
4379 java/security/cert/CertificateFactory.java,
4380 java/security/cert/CertificateFactorySpi.java,
4381 java/security/cert/CertificateNotYetValidException.java,
4382 java/security/cert/CertificateParsingException.java,
4383 java/security/cert/X509CRL.java,
4384 java/security/cert/X509CRLEntry.java,
4385 java/security/cert/X509Certificate.java,
4386 java/security/cert/X509Extension.java: Imported from Classpath.
4387 * java/util/Hashtable.java: Imported from Classpath.
4389 * java/util/zip/ZipInputStream.java: Create stub for
4392 * gcj/javaprims.h: Updated class list.
4394 * Makefile.in, gcj/Makefile.in: Rebuilt.
4395 * Makefile.am (ordinary_java_source_files): Add these new classes.
4397 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4399 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4400 * gnu/gcj/awt/GLightweightPeer.java: New file.
4401 * java/awt/BorderLayout.java: Implemented all methods.
4402 * java/awt/Button.java (actionListener, actionCommand): Renamed
4403 and modifier change.
4404 (addNotify): Call super.
4405 (dispatchEventImpl): New method.
4406 (getListeners): New method.
4407 (label): Made package-private, not private.
4408 * java/awt/Canvas.java: Implemented class body.
4409 * java/awt/Color.java (brighter): New method.
4410 (darker): New method.
4411 (hashCode): New method.
4412 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4413 (getGraphicsConfiguration): Delegate to
4414 getGraphicsConfigurationImpl().
4415 (getGraphicsConfigurationImpl): New method.
4416 (getToolkit): Only return value from peer if not null.
4417 (isDisplayable): Check with parent.
4418 (isShowing): No parent implies not showing.
4419 (getForeground): Check parent property if local is null.
4420 (getBackground): Likewise.
4421 (getFont): Likewise.
4422 (setForeground): Inform peer.
4423 (setBackground): Likewise
4424 (setLocale): Invalidate component.
4425 (getColorModel): Implemented.
4426 (setLocation): Invalidate, or ignore if no change.
4427 (setSize): Invalidate, or ignore if no change.
4428 (setBounds): Invalidate, or ignore if no change.
4429 (isOpaque): By default, heavyweight implies opaque.
4430 (isLightweight): Implemented.
4431 (getMaximumSize): Implemented.
4432 (doLayout): Implemented, NOP.
4433 (validate): Implemented, NOP.
4434 (invalidate): Only propagate to parent if parent was valid.
4435 (getGraphics): Implemented.
4436 (getFontMetrics): Implemented.
4437 (update): Implemented.
4438 (paintAll): Implemented.
4439 (repaint): Implemented all repaint methods.
4440 (print): Implemented.
4441 (printAll): Implemented.
4442 (createImage): Implemented.
4443 (dispatchEvent): Give the peer a chance to handle the event.
4444 (dispatchEventImpl): Dispatch paint events.
4445 (enableEvents): Lightweights enable events on parent component.
4446 (coalesceEvents): Coalesce paint events, and select event type
4448 (coalescePaintEvents): New method.
4449 (processEvent): Fix unfortunate ordering of statements, and call
4450 correct method for MOUSE_CLICKED.
4451 (processPaintEvent): New method.
4452 (addNotify): Allow container to notify children before event
4453 mask is set in peer.
4454 (addNotifyContainerChildren): New method.
4455 (removeNotify): Visibility should not change on removeNotify.
4456 (paramString): Implemented.
4457 (list): Implemented two of the list methods.
4458 * Container (myInsets): Removed, insets are managed by peer.
4459 (getInsets): Query peer.
4460 (addImpl): Fix reparenting, enable events for lightweights,
4461 initialize component array.
4462 (validate): Call doLayout in validateTree() instead.
4463 (validateTree): Do nothing if already valid. Call beginValidate(),
4464 endValidate() on peer. Call validateTree() instead of validate()
4465 for children that are containers. Mark valid after validation of
4467 (setFont): Partial implementation.
4468 (paint): Implemented.
4469 (visitChildren): New method.
4470 (visitChild): New method.
4471 (update): Implemented.
4472 (print): Implemented.
4473 (paintComponents): Implemented.
4474 (printComponents): Consider translation and clipping.
4475 (getComponentAt): Ignore invisible children. Return this if no
4477 (addNotify): Call super.
4478 (addNotifyContainerChildren): New method.
4479 (paramString): Implemented.
4480 (list): Implemented.
4481 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4483 (invokeLater): Likewise.
4484 (isDispatchThread): Likewise.
4485 * java/awt/FontMetrics (getLeading): Formula change.
4486 (getDescent): Consider leading also.
4487 (getMaxAscent): Default to getAscent().
4488 (getMaxDescent): Default to getDescent.
4489 (getMaxAdvance): Return value signifying unknown.
4490 (charWidth): Both methods implemented.
4491 (charsWidth): Implemented.
4492 (bytesWidth): Implemented.
4493 (getWidths): Implemented.
4494 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4496 (Frame): Rearragend constuctor chaining to disallow null being
4497 passed as a graphics configuration.
4498 (getTitle): Return empty string if null.
4500 (getIconImage): New method.
4501 (setIconImage): New method.
4502 (finalize): New method.
4503 (setMenuBar): Notify peer.
4504 (isResizable): New method.
4505 (setResizable): New method.
4506 (getState): New method.
4508 (remove): Implemented.
4509 (removeNotify): New method.
4510 (getFrames): New method.
4511 * java/awt/Graphics.java: Implemented body of class.
4512 * java/awt/Graphics2D.java: New file.
4513 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4514 * java/awt/Image.java: Implemented body of class.
4515 * java/awt/Panel.java (Panel): Call correct super constructor.
4516 (addNotify): Implemented.
4517 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4518 * java/awt/RenderingHints.java: New file.
4519 * java/awt/Toolkit.java (createComponent): Implemented.
4520 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4521 * java/awt/Window.java (Window): Two new constructors. Reordered
4522 constructor chaining.
4523 (getGraphicsConfigurationImpl): New method.
4524 (finalize): Call super.
4525 (addNotify): Call super.
4526 (pack): Do layout stuff.
4527 (show): Ensure that peer exists and that component is valid.
4528 (dispose): Dispose owned children.
4529 (getOwner): Simplify code, casting null pointers is valid.
4530 (getGraphicsConfiguration): Ask peer if local value is null.
4531 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4533 * java/awt/image/BufferedImage.java: New file.
4534 * java/awt/image/RasterOp.java: New file.
4535 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4536 More powerfull replacement for getColorModel().
4537 (getColorModel) Removed.
4538 (setEventMask) New method.
4539 * Makefile.am: Added new files.
4540 * Makefile.in: Rebuilt.
4542 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4544 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4545 (finit_leg_name): New global.
4546 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4547 `$finit$'. This is a backward compatibility hack.
4548 (java::lang::Class::_getMethods): Likewise.
4550 2000-08-15 Andrew Haley <aph@cygnus.com>
4552 * include/jvm.h (_Jv_HashCode): New hash code.
4554 2000-08-15 Tom Tromey <tromey@cygnus.com>
4556 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4558 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4560 * THANKS: More thanks.
4562 2000-08-10 Tom Tromey <tromey@cygnus.com>
4564 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4566 (connect): Likewise.
4568 (getOption): Likewise.
4569 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4570 case when errno not set.
4573 (receive): Likewise.
4574 (mcastGrp): Likewise.
4575 (setOption): Likewise.
4576 (getOption): Likewise.
4578 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4579 John Stracke <francis@ecal.com>
4581 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4582 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4584 (disconnect): Don't unset connected flag.
4585 (getHeaderField (String)): Call connect() if not connected.
4586 (getHeaderField (int)): Ditto.
4587 (getHeaderFieldKey): Ditto.
4588 (getHttpHeaders): Don't call connect().
4589 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4590 gotResponseVals): New fields.
4591 (getResponseCode): Call getResponseVals() conditionally.
4592 (getResponseMessage): Ditto.
4593 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4595 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4597 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4598 * Makefile.in: Rebuilt.
4599 * java/awt/Color.java (getTransparency): New method.
4600 * java/awt/Component.java: Various updates.
4601 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4602 after dealing with children.
4603 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4604 * java/awt/Window.java: Various new methods and updates.
4605 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4607 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4608 * java/awt/event/WindowEvent.java (paramString): Ditto.
4609 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4611 * java/awt/geom/Point2D.java (clone): Ditto.
4612 * java/awt/geom/RectangularShape.java (clone): Ditto.
4613 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4614 isAlphaPremultiplied): Make package-private, not private.
4616 2000-08-08 Tom Tromey <tromey@cygnus.com>
4618 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4619 surrogate characters.
4620 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4622 (write): Correct handling of surrogate characters.
4624 2000-08-07 Tom Tromey <tromey@cygnus.com>
4626 * java/lang/reflect/Method.java (hashCode): Use getName().
4627 (toString): Likewise.
4628 * java/lang/reflect/natMethod.cc (getType): Initialize
4631 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4633 * java/lang/reflect/Field.java (toString): Correct formatting.
4636 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4638 (receive): Streamlined.
4640 2000-08-05 Tom Tromey <tromey@cygnus.com>
4642 * java/io/PrintWriter.java: Merged comments from Classpath.
4643 (printlnUnsynchronized): Removed.
4644 (println()): Print the separator.
4645 (println): Call println(), not printlnUnsynchronized.
4646 (out): Now protected, to match spec.
4648 2000-08-04 Tom Tromey <tromey@cygnus.com>
4650 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4651 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4654 2000-08-03 Warren Levy <warrenl@cygnus.com>
4656 * java/io/ObjectInputStream.java (readFields): Turn off
4657 readDataFromBlock while reading via GetField.
4658 (GetField$1.get(String, Object)): Pass Class of default value to
4660 (getField): Allow for null default values.
4662 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4663 (PutField$1.put): Fixed calls of checkType in most of the put
4664 methods to pass the correct parameter.
4665 (PutField$1.put(String, Object)): Allow for null value arg.
4666 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4669 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4670 typo in spec'ed field name.
4671 (getSerialPersistentFields): Changed spelling of method to match
4672 the correct spelling of the spec'ed field name.
4674 2000-08-03 Tom Tromey <tromey@cygnus.com>
4676 * Makefile.in: Rebuilt.
4677 * Makefile.am (awt_java_source_files): Added new files.
4679 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4681 * Makefile.am: Add new AWT stubs.
4682 * java/awt/Canvas.java: New placeholder class.
4683 * java/awt/Checkbox.java: Ditto.
4684 * java/awt/CheckboxMenuItem.java: Ditto.
4685 * java/awt/Choice.java: Ditto.
4686 * java/awt/Dialog.java: Ditto.
4687 * java/awt/FileDialog.java: Ditto.
4688 * java/awt/List.java: Ditto.
4689 * java/awt/ScrollPane.java: Ditto.
4690 * java/awt/TextField.java: Ditto.
4691 * java/awt/datatransfer/Clipboard.java: Ditto.
4692 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4693 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4694 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4695 Some commented out. Partially implemented.
4696 * java/awt/natToolkit.cc: Removed file.
4698 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4700 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4701 Fixes "make -j" builds.
4702 * Makefile.in: Rebuild.
4704 2000-08-02 Tom Tromey <tromey@cygnus.com>
4706 * Makefile.in: Rebuilt.
4707 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4708 * java/net/natPlainSocketImpl.cc: Include posix.h.
4709 (accept): Use _Jv_select.
4710 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4711 (receive): Use _Jv_select.
4712 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4713 (available): Use _Jv_select.
4714 * java/lang/natSystem.cc: Include posix.h.
4715 (currentTimeMillis): Use _Jv_gettimeofday.
4716 * include/posix.h: New file.
4717 * posix.cc: New file.
4719 * scripts/encodings.pl: New file.
4720 * Makefile.in: Rebuilt.
4721 * Makefile.am (convert_source_files): Added IOConverter.java.
4722 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4724 (getDefaultDecodingClass): Canonicalize default encoding name.
4725 (getEncoder): Likewise.
4726 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4728 (getDefaultDecodingClass): Canonicalize default encoding name.
4729 (getDecoder): Likewise.
4730 * gnu/gcj/convert/IOConverter.java: New file.
4732 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4734 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4735 to match C declaration in ffi.h.
4736 * Makefile.am: Add java/awt/Button.java.
4737 * Makefile.in: Rebuilt.
4739 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4741 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4742 cast of the second argument to `ffi_raw_call' changed to match
4745 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4747 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4748 argument to `ffi_raw_call' changed to match prototype.
4750 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4752 * java/awt/Component.java (toString): Implemented.
4753 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4754 dispatchEvent() to dispatch the event.
4755 (removeImpl): Ditto.
4757 2000-07-30 Anthony Green <green@redhat.com>
4759 * java/awt/Component.java: Add treeLock object.
4760 (getTreeLock): Implement.
4761 (isShowing): Implement.
4763 2000-07-30 Tom Tromey <tromey@cygnus.com>
4765 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4767 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4769 * java/awt/Window.java (addNotify): Wrote.
4770 (addWindowListener): Wrote.
4772 (getWarningString): Wrote.
4773 (processEvent): Wrote.
4774 (processWindowEvent): Wrote.
4775 (removeWindowListener): Wrote.
4776 (show): Call validate(), setVisible().
4780 * java/awt/Toolkit.java (createWindow): Declare.
4782 * java/awt/Frame.java (addNotify): Use getToolkit to find
4785 * java/awt/Component.java (invalidate): Wrote.
4787 (getToolkit): Wrote.
4789 * java/awt/Container.java (addContainerListener): Removed
4791 (removeContainerListener): Likewise.
4793 (add(Component)): Use it.
4794 (add(String,Component)): Likewise.
4795 (add(Component,int)): Likewise.
4796 (add(Component,Object)): Likewise.
4797 (add(Component,Object,int)): Likewise.
4799 (getAlignmentX): Wrote.
4800 (getAlignmentY): Wrote.
4801 (getComponentAt): Wrote.
4802 (getMaximumSize): Wrote.
4803 (invalidate): Wrote.
4804 (list(PrintStream,int)): Wrote.
4805 (list(PrintWriter,int)): Wrote.
4806 (getMinimumSize): Wrote.
4807 (getPreferredSize): Wrote.
4808 (printComponents): Wrote.
4809 (processContainerEvent): Look at containerListener, not
4811 (remove): Added event processing and peer destruction.
4812 (removeAll): Use remove.
4813 (removeNotify): Wrote.
4815 (validateTree): Wrote.
4817 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4818 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4819 * java/awt/Container.java (addNotify): Don't create Container
4821 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4823 2000-07-30 Tom Tromey <tromey@cygnus.com>
4825 * java/awt/Container.java (remove(int)): Wrote.
4826 (remove(Component)): Wrote.
4827 (add(Component)): Wrote.
4828 (add(Component,int)): Wrote.
4830 (addNotify): Set our own peer.
4831 * java/awt/Scrollbar.java (listeners): Changed type.
4832 (Scrollbar): Don't initialize listeners.
4834 (setValue): Call setValues.
4835 (setMinimum): Likewise.
4836 (setMaxPriority): Likewise.
4837 (setVisibleAmount): Likewise.
4839 (setUnitIncrement): Forward to peer.
4840 (setLineIncrement): Call setUnitIncrement.
4841 (setPageIncrement): Call setBlockIncrement.
4842 (setBlockIncrement): Forward to peer.
4843 (addAdjustmentListener): Rewrote.
4844 (removeAdjustmentListener): Rewrote.
4845 (processAdjustmentEvent): Rewrote.
4846 (paramString): Wrote.
4847 * Makefile.in: Rebuilt.
4848 * Makefile.am (awt_java_source_files): Added Button.java.
4849 * java/awt/Button.java: New file.
4850 * java/awt/Toolkit.java (createLabel): Declare.
4851 (createButton): Likewise.
4852 (createScrollbar): Likewise.
4853 (createContainer): Likewise.
4854 * java/awt/Label.java (addNotify): Wrote.
4855 (setAlignment): Call setAlignment in the peer.
4856 (setText): Call setText in the peer.
4858 2000-07-28 Warren Levy <warrenl@cygnus.com>
4860 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4861 NotSerializableException with just the class name.
4863 2000-07-26 Andrew Haley <aph@cygnus.com>
4865 * interpret.cc (continue1): Insert missing break into switch.
4867 2000-07-28 Warren Levy <warrenl@cygnus.com>
4869 * java/io/ObjectStreamException.java: Made constructors protected.
4871 2000-07-27 Tom Tromey <tromey@cygnus.com>
4873 * java/io/OutputStreamWriter.java (close): Only flush if not
4876 2000-07-27 Warren Levy <warrenl@cygnus.com>
4878 * mauve-libgcj: Activated serialization tests.
4879 * gcj/field.h (getModifiers): Mask off unknown flags.
4880 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4881 spurious bits don't cause discrepancies.
4882 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4883 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4884 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4885 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4886 * java/lang/Throwable.java (serialVersionUID): New field.
4887 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4888 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4890 * java/lang/reflect/natMethod.cc: Ditto.
4891 * java/security/Key.java (serialVersionUID): Removed field for now.
4892 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4893 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4895 2000-07-22 Tom Tromey <tromey@cygnus.com>
4897 * java/awt/geom/RectangularShape.java (getPathIterator):
4900 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4902 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4903 stub libjava/java/awt/ColorModel.java which was located in the
4905 * libjava/java/awt/image/ComponentColorModel.java: New file.
4906 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4907 * libjava/java/awt/image/DataBuffer.java: New file.
4908 * libjava/java/awt/image/DataBufferByte.java: New file.
4909 * libjava/java/awt/image/DataBufferInt.java: New file.
4910 * libjava/java/awt/image/DataBufferUShort.java: New file.
4911 * libjava/java/awt/image/DirectColorModel.java: New file.
4912 * libjava/java/awt/image/PackedColorModel.java: New file.
4913 * libjava/java/awt/image/Raster.java: New file.
4914 * libjava/java/awt/image/SampleModel.java: New file.
4915 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4917 * libjava/java/awt/image/IndexColorModel.java: New file.
4918 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4919 java.awt.ColorModel stub.
4921 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4922 * gnu/gcj/util/Buffers.java: New file, utility class.
4924 * libjava/Makefile.am: Updated to include new files.
4925 * libjava/Makefile.in: Rebuilt.
4927 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4929 * java/io/StreamTokenizer.java: Merged with classpath.
4931 2000-07-20 Tom Tromey <tromey@cygnus.com>
4933 * Makefile.in: Rebuilt.
4934 * Makefile.am (awt_java_source_files): Updated for new files.
4935 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4936 * java/awt/Label.java: New file.
4937 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4938 (createIntersection, createUnion, getBounds2D): New methods.
4939 * java/awt/Scrollbar.java: New file.
4940 * java/awt/Shape.java: Updated to 1.2.
4941 * java/awt/geom/AffineTransform.java: New file.
4942 * java/awt/geom/Ellipse2D.java: New file.
4943 * java/awt/geom/NoninvertibleTransformException.java: New file.
4944 * java/awt/geom/PathIterator.java: New file.
4945 * java/awt/geom/Rectangle2D.java: New file.
4946 * java/awt/geom/RectangularShape.java: New file.
4947 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4948 * java/awt/geom/IllegalPathStateException.java: New file.
4950 * scripts/showval.java: New file.
4952 * scripts/classes.pl (scan): Print inner classes properly.
4953 * gcj/javaprims.h: Updated class list.
4955 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4956 initialize String fields for interpreted classes. Fixes bug
4957 reported by Hans Boehm.
4959 * java/io/File.java (getParentFile): New method, from Classpath
4960 via Oskar Liljeblad.
4962 * java/util/Vector.java (remove(Object)): Implemented.
4964 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4966 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4967 zero return from backtrace().
4969 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4971 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4973 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4974 before calling notifyAll().
4976 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4978 Add missing files from last check-in:
4979 * java/awt/image/ImageConsumer.java: New file.
4980 * java/awt/image/ImageProducer.java: New file.
4981 * java/awt/image/ImageObserver.java: New file.
4983 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4985 Merged implementation of java.applet from classpath:
4986 * java/applet/Applet.java: New file.
4987 * java/applet/AppletContext.java: New file.
4988 * java/applet/AppletStub.java: New file.
4989 * java/applet/AudioClip.java: New file.
4991 * Makefile.am: Added new java.applet classes.
4992 * Makefile.in: Rebuilt.
4994 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4997 * java/util/ResourceBundle.java (getLocale): stub.
4998 * Makefile.am: Added new AWT classes.
4999 * Makefile.in: Rebuilt.
5000 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5001 constructors. Fix toString() and paramString().
5002 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5003 * java/awt/CheckboxGroup.java: New class.
5004 * java/awt/ColorModel.java: New class.
5005 * java/awt/Component.java: Added stubs for most methods. Implemented
5007 * java/awt/Container.java: ditto.
5008 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5009 * java/awt/Cursor.java: ditto.
5010 * java/awt/Event.java: Fix paramString().
5011 * java/awt/EventQueue.java: New class. Implemented.
5012 * java/awt/Font.java: Added additional stub methods. Implemented
5014 * java/awt/FontMetrics.java: New class. Stubbed.
5015 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5017 * java/awt/Insets.java: New class. Implemented.
5018 * java/awt/Menu.java: Add new methods. Partially implemented.
5019 * java/awt/MenuItem.java: Add new methods and fields. Partially
5021 * java/awt/MenuShortcut.java: New class. Implemented.
5022 * java/awt/Panel.java: New class. Placeholder.
5023 * java/awt/PopupMenu.java: New class. Stubbed.
5024 * java/awt/Rectangle.java: New class. Implemented.
5025 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5026 * java/awt/event/ActionEvent.java: Implement paramString().
5027 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5028 * java/awt/event/ComponentEvent.java: Implement paramString().
5029 * java/awt/event/ContainerEvent.java: Implement paramString().
5030 * java/awt/event/FocusEvent.java: Implement paramString().
5031 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5032 * java/awt/event/HierarchyBoundsListener.java: New class.
5033 * java/awt/event/HierarchyEvent.java: New class.
5034 * java/awt/event/HierarchyListener.java: New class.
5035 * java/awt/event/InputMethodEvent.java: Implement paramString().
5036 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5037 exception if !catchExceptions.
5038 * java/awt/event/ItemEvent.java: Implement paramString().
5039 * java/awt/event/KeyEvent.java: Implement paramString().
5040 * java/awt/event/MouseEvent.java: Implement paramString().
5041 * java/awt/event/PaintEvent.java: Implement paramString().
5042 * java/awt/event/TextEvent.java: Implement paramString().
5043 * java/awt/event/WindowEvent.java: Implement paramString().
5045 AWT Peer interfaces:
5046 * java/awt/peer/ButtonPeer.java: New file.
5047 * java/awt/peer/ListPeer.java: New file.
5048 * java/awt/peer/CanvasPeer.java: New file.
5049 * java/awt/peer/MenuBarPeer.java: New file.
5050 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5051 * java/awt/peer/MenuComponentPeer.java: New file.
5052 * java/awt/peer/CheckboxPeer.java: New file.
5053 * java/awt/peer/MenuItemPeer.java: New file.
5054 * java/awt/peer/ChoicePeer.java: New file.
5055 * java/awt/peer/MenuPeer.java: New file.
5056 * java/awt/peer/ComponentPeer.java: Implemented.
5057 * java/awt/peer/PanelPeer.java: New file.
5058 * java/awt/peer/ContainerPeer.java: Implemented.
5059 * java/awt/peer/PopupMenuPeer.java: New file.
5060 * java/awt/peer/DialogPeer.java: New file.
5061 * java/awt/peer/ScrollPanePeer.java: New file.
5062 * java/awt/peer/FileDialogPeer.java: New file.
5063 * java/awt/peer/ScrollbarPeer.java: New file.
5064 * java/awt/peer/FontPeer.java: New file.
5065 * java/awt/peer/TextAreaPeer.java: New file.
5066 * java/awt/peer/FramePeer.java: Implemented.
5067 * java/awt/peer/TextComponentPeer.java: New file.
5068 * java/awt/peer/LabelPeer.java: New file.
5069 * java/awt/peer/TextFieldPeer.java: New file.
5070 * java/awt/peer/LightweightPeer.java: New file.
5071 * java/awt/peer/WindowPeer.java: Implemented.
5073 2000-07-06 Tom Tromey <tromey@cygnus.com>
5075 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5076 Initialize static final String fields.
5078 2000-07-03 Tom Tromey <tromey@cygnus.com>
5080 * java/io/PrintWriter.java (print): Call write(String), not
5081 print(String). See PR libgcj/277.
5082 (print(String)): Use write, not out.write.
5084 2000-06-30 Tom Tromey <tromey@cygnus.com>
5086 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5088 2000-06-27 Andrew Haley <aph@cygnus.com>
5090 * java/io/File.java (createTempFile): Close the FileDescriptor
5091 used to create a temp file. Fixes some of PR 203.
5092 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5093 collection if we run out of file handles.
5095 2000-06-28 Warren Levy <warrenl@cygnus.com>
5097 * gnu/java/security/provider/Gnu.java: New file.
5098 * gnu/java/security/provider/SHA.java: New file.
5099 * gnu/java/security/provider/SHA1PRNG.java: New file.
5100 * Makefile.am: Added the above files.
5101 * Makefile.in: Rebuilt.
5103 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5105 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5107 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5108 (destroyed_flag): Removed.
5109 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5110 (activeCount): Added spec note.
5112 2000-06-27 Warren Levy <warrenl@cygnus.com>
5114 * java/security/Principal.java: New file.
5115 * Makefile.am: Added Principal.java.
5116 * Makefile.in: Rebuilt.
5118 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5120 * java/awt/event/MouseEvent.java: Fixed coordinate space
5123 2000-06-27 Tom Tromey <tromey@cygnus.com>
5125 * java/io/PushbackInputStream.java (read): If there are characters
5126 in the buffer, don't also call super.read().
5127 * java/io/PushbackReader.java (read): If there are characters in
5128 the buffer, don't also call super.read().
5130 * java/lang/Double.java (valueOf): Call parseDouble().
5132 2000-06-26 Warren Levy <warrenl@cygnus.com>
5134 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5135 (newVal): Renamed to newValue.
5136 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5137 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5138 (revokeNow): Renamed to invalidateRefs.
5139 * java/io/OptionalDataException.java: Updated FIXME.
5140 (eof): New placeholder field.
5142 * java/io/WriteAbortedException.java (message): Made transient.
5143 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5144 * java/lang/Throwable.java (stackTrace): Made transient.
5145 * java/net/InetAddress.java: Made Serializable.
5146 * java/security/KeyPair.java: Made Serializable.
5147 * java/security/Provider.java: Replaced with Classpath version that
5148 implements serialization and proper methods.
5149 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5150 (limits): Renamed to choiceLimits.
5152 2000-06-24 Tom Tromey <tromey@cygnus.com>
5154 * java/lang/natDouble.cc (parseDouble): Renamed from
5156 * java/lang/Double.java (parseDouble): Renamed from
5157 doubleValueOf. Now public.
5159 2000-06-23 Andrew Haley <aph@cygnus.com>
5161 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5162 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5164 2000-06-23 Tom Tromey <tromey@cygnus.com>
5166 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5167 * java/lang/natDouble.cc: Always include <alloca.h>.
5168 Fix for PR libgcj/267.
5170 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5172 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5173 comply with classpath VM spec.
5174 (add(Group)): Rename to addGroup().
5175 * java/lang/Thread.java (Thread): Use addThread().
5176 * java/lang/natThread.cc (finish_): Use removeThread().
5178 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5180 * java/lang/ThreadGroup.java: Merged with classpath.
5181 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5182 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5184 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5185 ThreadGroup.root if Thread.currentThread is null. Honour the
5186 ThreadGroup's max priority setting.
5188 2000-06-18 Tom Tromey <tromey@cygnus.com>
5190 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5191 returned class. For PR gcj/260.
5193 2000-06-16 Tom Tromey <tromey@cygnus.com>
5195 Fix for PR libgcj/261:
5196 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5198 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5199 argument. (This is a patch from long ago that somehow went
5202 2000-06-15 Tom Tromey <tromey@cygnus.com>
5204 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5208 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5210 Fix for PR java.lang/258:
5211 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5212 JV_STATE_DONE, to prevent accidental initialization.
5213 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5214 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5215 interface or an abstract class. Remove redundant initializeClass calls.
5216 Remove duplicate if_idt test.
5217 (_Jv_InterfaceAssignableFrom): New function.
5218 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5220 2000-05-31 Tom Tromey <tromey@cygnus.com>
5222 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5223 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5224 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5225 (NUM_OBJECT_METHODS): New define.
5226 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5227 `array_vtable' parameter. Added assertion.
5228 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5231 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5233 * gcj/cni.h: Include <string.h>.
5234 * defineclass.cc: Include <alloca.h>.
5235 * interpret.cc: Ditto.
5236 * gij.cc: Include <stdlib.h>.
5238 2000-05-30 Tom Tromey <tromey@cygnus.com>
5240 * include/name-finder.h: Include <sys/wait.h>.
5241 (_Jv_name_finder::pid): Now of type `pid_t'.
5242 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5243 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5246 2000-05-24 Warren Levy <warrenl@cygnus.com>
5248 * java/io/ObjectOutputStream.java (writeObject): Use component type
5249 when writing arrays.
5252 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5254 Fix for PR libgcj/226:
5255 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5256 since this is an installed header.
5258 Fix for PR libgcj/228:
5259 * java/util/zip/ZipFile (getInputStream): Create inflater with
5262 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5263 with DataFormatException.
5265 2000-05-20 Tom Tromey <tromey@cygnus.com>
5267 * Makefile.in: Rebuilt.
5268 * Makefile.am (hack1): Removed.
5269 (awto_files): Likewise.
5270 (libgcjawt_la_SOURCES): Likewise.
5271 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5272 (libgcjawt_la_DEPENDENCIES): Likewise.
5273 (libgcjawt_la_LIBADD): Likewise.
5274 (libgcjawt_la_LDFLAGS): Likewise.
5275 (libgcjawt_la_LINK): Likewise.
5276 ($(awt_java_source_files:.java=.class)): Likewise.
5277 (libgcj.zip): Don't depend on AWT files.
5278 (MOSTLYCLEANFILES): Don't include AWT files.
5279 ($(awto_files)): Removed.
5280 (nat_headers): Removed AWT files.
5281 (cond_awt_java_source_files): Removed.
5282 (ordinary_java_source_files): Added awt_java_source_files.
5283 * libgcj.spec.in (*lib): Removed -lgcjawt.
5284 * configure: Rebuilt.
5285 * configure.in: Removed --enable-java-awt option.
5287 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5289 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5290 (ZipEntry): Copy the `name' field.
5291 (clone): Implement JDK1.2 method.
5292 (setCompressedSize): ditto.
5295 2000-05-19 Tom Tromey <tromey@cygnus.com>
5297 * java/io/BufferedWriter.java: Merged with Classpath.
5298 * java/io/BufferedOutputStream.java: Merged with Classpath.
5300 2000-05-16 Andrew Haley <aph@cygnus.com>
5302 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5303 build_ia64_frame_state.
5304 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5307 2000-05-15 Warren Levy <warrenl@cygnus.com>
5309 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5310 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5311 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5312 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5313 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5314 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5315 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5316 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5317 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5318 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5319 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5320 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5321 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5322 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5323 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5324 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5325 * gnu/gcj/io/NullOutputStream.java: Removed.
5326 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5327 * gnu/gcj/lang/ArrayHelper.java: Removed.
5328 * gnu/gcj/lang/ClassHelper.java: Removed.
5329 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5331 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5332 * gnu/java/beans/EmptyBeanInfo.java: New file.
5333 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5334 * gnu/java/beans/IntrospectionIncubator.java: New file.
5335 * gnu/java/beans/editors/ColorEditor.java: New file.
5336 * gnu/java/beans/editors/FontEditor.java: New file.
5337 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5338 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5339 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5340 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5341 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5342 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5343 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5344 * gnu/java/beans/editors/StringEditor.java: New file.
5345 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5346 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5347 * gnu/java/io/NullOutputStream.java: New file.
5348 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5349 * gnu/java/lang/ArrayHelper.java: New file.
5350 * gnu/java/lang/ClassHelper.java: New file.
5351 * gnu/java/lang/reflect/TypeSignature.java: New file.
5353 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5354 namespace back to the original Classpath gnu/java namespace.
5355 * Makefile.in: Rebuilt.
5357 * java/beans/Beans.java: Namespace change.
5358 * java/beans/EventSetDescriptor.java: Namespace change.
5359 * java/beans/Introspector.java: Namespace change.
5360 * java/beans/PropertyEditorManager.java: Namespace change.
5361 * java/io/ObjectInputStream.java: Namespace change.
5362 * java/io/ObjectOutputStream.java: Namespace change.
5363 * java/io/ObjectStreamClass.java: Namespace change.
5364 * java/io/ObjectStreamField.java: Namespace change.
5366 2000-04-21 Warren Levy <warrenl@cygnus.com>
5368 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5369 now that compiler patch is available.
5370 Removed unneeded System.loadLibrary.
5371 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5372 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5374 2000-04-19 Andrew Haley <aph@cygnus.com>
5376 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5377 and target classes have been initialized.
5379 2000-04-19 Andrew Haley <aph@cygnus.com>
5381 * java/lang/String.java: implement Serializable, Comparable.
5382 (compareTo (Object)): New method.
5384 2000-04-19 Warren Levy <warrenl@cygnus.com>
5386 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5387 instead of getField to retrieve non-public field.
5388 (getSerialPersistantFields): Ditto.
5390 2000-04-18 Warren Levy <warrenl@cygnus.com>
5392 * mauve-libgcj: Turned off object serialization tests temporarily
5393 due to compiler error.
5395 2000-04-17 Warren Levy <warrenl@cygnus.com>
5397 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5398 to avoid build problem.
5400 * mauve-libgcj: Turned on object serialization tests.
5402 2000-04-17 Tom Tromey <tromey@cygnus.com>
5404 * libgcj.spec.in (*lib): Added -lgcjawt.
5406 2000-04-17 Andrew Haley <aph@cygnus.com>
5408 * Makefile.am: Add new files:
5409 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5411 * Makefile.in: Rebuilt.
5413 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5414 interface that has no implementations.
5415 Check for an attempt to assign an abstract class to an interface.
5417 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5418 if we fail to find MessageDigest.getInstance ("SHA").
5420 * gnu/gcj/io/SimpleSHSStream.java: New file.
5421 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5422 * gnu/gcj/io/shs.cc: New file.
5423 * gnu/gcj/io/shs.h: new file.
5425 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5428 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5429 punctuation from the classname of an array element.
5431 * gcj/javaprims.h: Add SimpleDigestStream.
5433 2000-04-17 Andrew Haley <aph@cygnus.com>
5435 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5436 to getPrivateField for superclasses.
5438 2000-04-14 Andrew Haley <aph@cygnus.com>
5440 * Makefile.am: Add new files:
5441 java/io/ObjectOutputStream$PutField.h,
5442 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5443 java/io/natObjectOutputStream.cc
5444 * Makefile.in: Rebuilt.
5445 * gcj/Makefile.in: Rebuilt.
5446 * include/Makefile.in: Rebuilt.
5447 * java/lang/Class.h (getPrivateField): New method.
5448 (getPrivateMethod): Ditto.
5449 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5450 and java::io::ObjectStreamClass our friends.
5451 * java/lang/natClass.cc (getPrivateField): New method.
5452 (getPrivateMethod): Ditto.
5453 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5454 * gcj/javaprims.h: Add serialization classes.
5455 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5456 (setByteField): Ditto.
5457 (setCharField): Ditto.
5458 (setDoubleField): Ditto.
5459 (setFloatField): Ditto.
5460 (setIntField): Ditto.
5461 (setLongField): Ditto.
5462 (setShortField): Ditto.
5463 (setObjectField): Ditto.
5464 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5466 (getByteField): Ditto.
5467 (getCharField): Ditto.
5468 (getDoubleField): Ditto.
5469 (getFloatField): Ditto.
5470 (getIntField): Ditto.
5471 (getLongField): Ditto.
5472 (getShortField): Ditto.
5473 (getObjectField): Ditto.
5474 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5476 (getSerialPersistantFields): Ditto.
5477 (getDefinedSUID): Ditto.
5478 * java/io/natObjectOutputStream.cc: New file.
5479 * java/io/natObjectInputStream.cc: New file.
5481 2000-04-13 Warren Levy <warrenl@cygnus.com>
5483 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5484 problems. Revert to previous version to reproduce and when fixed.
5486 2000-04-13 Warren Levy <warrenl@cygnus.com>
5488 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5489 * gnu/gcj/io/NullOutputStream.java: New file.
5490 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5491 * java/io/BlockDataException.java: New file.
5492 * java/io/Externalizable.java: New file.
5493 * java/io/InvalidClassException.java: New file.
5494 * java/io/InvalidObjectException.java: New file.
5495 * java/io/NotActiveException.java: New file.
5496 * java/io/NotSerializableException.java: New file.
5497 * java/io/ObjectInput.java: New file.
5498 * java/io/ObjectInputStream.java: New file.
5499 * java/io/ObjectInputValidation.java: New file.
5500 * java/io/ObjectOutput.java: New file.
5501 * java/io/ObjectOutputStream.java: New file.
5502 * java/io/ObjectStreamClass.java: New file.
5503 * java/io/ObjectStreamConstants.java: New file.
5504 * java/io/ObjectStreamField.java: New file.
5505 * java/io/Replaceable.java: New file.
5506 * java/io/Resolvable.java: New file.
5507 * java/io/SerializablePermission.java: New file.
5508 * java/io/WriteAbortedException.java: New file.
5509 * java/security/BasicPermission.java: New file.
5510 * java/security/DigestOutputStream.java: New file.
5511 * java/security/Guard.java: New file.
5512 * java/security/Permission.java: New file.
5513 * java/security/PermissionCollection.java: New file.
5514 * Makefile.am: Added above files.
5515 * Makefile.in: Rebuilt.
5517 * java/beans/Beans.java (instantiate): Activated serialization code.
5518 * java/lang/SecurityManager.java (checkPermission): New method.
5520 2000-04-12 Warren Levy <warrenl@cygnus.com>
5522 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5523 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5524 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5525 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5526 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5527 * gnu/gcj/beans/editors/FontEditor.java: New file.
5528 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5529 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5530 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5531 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5532 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5533 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5534 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5535 * gnu/gcj/beans/editors/StringEditor.java: New file.
5536 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5537 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5538 * gnu/gcj/lang/ArrayHelper.java: New file.
5539 * gnu/gcj/lang/ClassHelper.java: New file.
5540 * java/beans/BeanDescriptor.java: New file.
5541 * java/beans/BeanInfo.java: New file.
5542 * java/beans/Beans.java: New file.
5543 * java/beans/Customizer.java: New file.
5544 * java/beans/DesignMode.java: New file.
5545 * java/beans/EventSetDescriptor.java: New file.
5546 * java/beans/FeatureDescriptor.java: New file.
5547 * java/beans/IndexedPropertyDescriptor.java: New file.
5548 * java/beans/IntrospectionException.java: New file.
5549 * java/beans/Introspector.java: New file.
5550 * java/beans/MethodDescriptor.java: New file.
5551 * java/beans/ParameterDescriptor.java: New file.
5552 * java/beans/PropertyChangeEvent.java: New file.
5553 * java/beans/PropertyChangeListener.java: New file.
5554 * java/beans/PropertyChangeSupport.java: New file.
5555 * java/beans/PropertyDescriptor.java: New file.
5556 * java/beans/PropertyEditor.java: New file.
5557 * java/beans/PropertyEditorManager.java: New file.
5558 * java/beans/PropertyEditorSupport.java: New file.
5559 * java/beans/PropertyVetoException.java: New file.
5560 * java/beans/SimpleBeanInfo.java: New file.
5561 * java/beans/VetoableChangeListener.java: New file.
5562 * java/beans/VetoableChangeSupport.java: New file.
5563 * java/beans/Visibility.java: New file.
5564 * java/beans/beancontext/BeanContext.java: New file.
5565 * java/beans/beancontext/BeanContextChild.java: New file.
5566 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5567 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5568 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5569 * java/beans/beancontext/BeanContextEvent.java: New file.
5570 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5571 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5572 * java/beans/beancontext/BeanContextProxy.java: New file.
5573 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5575 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5576 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5578 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5579 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5581 * java/beans/beancontext/BeanContextServices.java: New file.
5582 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5583 * java/util/AbstractCollection.java: New file.
5584 * java/util/AbstractList.java: New file.
5585 * java/util/Arrays.java: New file.
5586 * Makefile.am: Added above files.
5587 * Makefile.in: Rebuilt.
5589 2000-04-11 Warren Levy <warrenl@cygnus.com>
5591 * java/awt/AWTError.java: New file.
5592 * java/awt/AWTEvent.java: New file.
5593 * java/awt/AWTException.java: New file.
5594 * java/awt/ActiveEvent.java: New file.
5595 * java/awt/Adjustable.java: New file.
5596 * java/awt/BorderLayout.java: New file.
5597 * java/awt/Color.java: New file.
5598 * java/awt/Component.java: New file.
5599 * java/awt/Container.java: New file.
5600 * java/awt/Dimension.java: New file.
5601 * java/awt/Event.java: New file.
5602 * java/awt/Font.java: New file.
5603 * java/awt/Frame.java: New file.
5604 * java/awt/Graphics.java: New file.
5605 * java/awt/IllegalComponentStateException.java: New file.
5606 * java/awt/Image.java: New file.
5607 * java/awt/ItemSelectable.java: New file.
5608 * java/awt/LayoutManager.java: New file.
5609 * java/awt/LayoutManager2.java: New file.
5610 * java/awt/Menu.java: New file.
5611 * java/awt/MenuBar.java: New file.
5612 * java/awt/MenuComponent.java: New file.
5613 * java/awt/MenuContainer.java: New file.
5614 * java/awt/MenuItem.java: New file.
5615 * java/awt/Paint.java: New file.
5616 * java/awt/PaintContext.java: New file.
5617 * java/awt/Point.java: New file.
5618 * java/awt/Rectangle.java: New file.
5619 * java/awt/Shape.java: New file.
5620 * java/awt/TextArea.java: New file.
5621 * java/awt/TextComponent.java: New file.
5622 * java/awt/Toolkit.java: New file.
5623 * java/awt/Transparency.java: New file.
5624 * java/awt/Window.java: New file.
5625 * java/awt/natToolkit.cc: New file.
5626 * java/awt/event/AWTEventListener.java: New file.
5627 * java/awt/event/ActionEvent.java: New file.
5628 * java/awt/event/ActionListener.java: New file.
5629 * java/awt/event/AdjustmentEvent.java: New file.
5630 * java/awt/event/AdjustmentListener.java: New file.
5631 * java/awt/event/ComponentAdapter.java: New file.
5632 * java/awt/event/ComponentEvent.java: New file.
5633 * java/awt/event/ComponentListener.java: New file.
5634 * java/awt/event/ContainerAdapter.java: New file.
5635 * java/awt/event/ContainerEvent.java: New file.
5636 * java/awt/event/ContainerListener.java: New file.
5637 * java/awt/event/FocusAdapter.java: New file.
5638 * java/awt/event/FocusEvent.java: New file.
5639 * java/awt/event/FocusListener.java: New file.
5640 * java/awt/event/InputEvent.java: New file.
5641 * java/awt/event/InputMethodEvent.java: New file.
5642 * java/awt/event/InputMethodListener.java: New file.
5643 * java/awt/event/InvocationEvent.java: New file.
5644 * java/awt/event/ItemEvent.java: New file.
5645 * java/awt/event/ItemListener.java: New file.
5646 * java/awt/event/KeyAdapter.java: New file.
5647 * java/awt/event/KeyEvent.java: New file.
5648 * java/awt/event/KeyListener.java: New file.
5649 * java/awt/event/MouseAdapter.java: New file.
5650 * java/awt/event/MouseEvent.java: New file.
5651 * java/awt/event/MouseListener.java: New file.
5652 * java/awt/event/MouseMotionAdapter.java: New file.
5653 * java/awt/event/MouseMotionListener.java: New file.
5654 * java/awt/event/PaintEvent.java: New file.
5655 * java/awt/event/TextEvent.java: New file.
5656 * java/awt/event/TextListener.java: New file.
5657 * java/awt/event/WindowAdapter.java: New file.
5658 * java/awt/event/WindowEvent.java: New file.
5659 * java/awt/event/WindowListener.java: New file.
5660 * java/awt/geom/Dimension2D.java: New file.
5661 * java/awt/geom/Point2D.java: New file.
5662 * java/awt/peer/ComponentPeer.java: New file.
5663 * java/awt/peer/ContainerPeer.java: New file.
5664 * java/awt/peer/FramePeer.java: New file.
5665 * java/awt/peer/WindowPeer.java: New file.
5666 * java/util/Collection.java: New file.
5667 * java/util/Comparator.java: New file.
5668 * java/util/Iterator.java: New file.
5669 * java/util/List.java: New file.
5670 * java/util/ListIterator.java: New file.
5671 * Makefile.am: Added above files.
5672 * Makefile.in: Rebuilt.
5674 2000-04-10 Warren Levy <warrenl@cygnus.com>
5676 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5677 * java/lang/FirstThread.java: Ditto.
5678 * java/lang/StringBuffer.java: Ditto.
5679 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5681 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5682 Special case handled in java.math.BigInteger.
5683 * java/math/BigInteger.java (divide): Handle the special case when
5684 dividing by 1 and the high bit of the dividend is set.
5685 (setShiftRight): Handle case when count == 0.
5687 2000-04-05 Andrew Haley <aph@cygnus.com>
5689 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5692 2000-04-05 Andrew Haley <aph@cygnus.com>
5694 * sysdep/ia64.c (rse_address_add): Delete.
5695 (IS_NaT_COLLECTION_ADDR): Delete.
5696 (ia64_backtrace_helper): check for null unwind_info.
5698 * sysdep/ia64-frame.h: add calc_caller_bsp.
5700 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5703 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5704 (_Jv_remI): Likewise.
5705 (_Jv_divJ): Likewise.
5706 (_Jv_remJ): Likewise.
5708 * interpret.cc (continue1): Use divide subroutines to guarantee
5709 correct Java standard behaviour.
5710 Floating-point division should not abort; make it so.
5712 2000-03-29 Tom Tromey <tromey@cygnus.com>
5714 * configure: Rebuilt.
5715 * configure.in: Test against `libgcj_sjlj', not
5716 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5717 to be set even when using sjlj.
5719 2000-03-24 Andrew Haley <aph@cygnus.com>
5721 * Makefile.am: Add file addr2name.awk.
5722 * Makefile.in: Rebuilt.
5723 * addr2name.awk: New file.
5724 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5726 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5729 2000-03-22 Andrew Haley <aph@cygnus.com>
5731 * configure.host: Add -funwind-tables for IA64.
5732 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5733 * Makefile.in: Rebuilt.
5734 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5735 * sysdep/ia64.c: New file.
5736 * sysdep/ia64-frame.h: New file.
5737 * configure.in: Add sysdep/ia64.c for ia64.
5738 * configure: Rebuilt.
5740 2000-03-17 Andrew Haley <aph@cygnus.com>
5742 * java/lang/natString.cc: Remove `register' keyword.
5743 interpret.cc: ditto.
5745 2000-03-16 Andrew Haley <aph@cygnus.com>
5747 * configure.host (ia64): Enable interpreter.
5749 2000-03-14 Hans Boehm <boehm@acm.org>
5751 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5753 2000-03-14 Andrew Haley <aph@cygnus.com>
5755 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5758 2000-03-10 Andrew Haley <aph@cygnus.com>
5760 * java/lang/ieeefp.h: Import latest version from fdlibm.
5762 2000-03-14 Andrew Haley <aph@cygnus.com>
5764 * prims.cc (_Jv_ThrowSignal): New function.
5765 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5767 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5768 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5769 * include/ppc-signal.h: New file.
5771 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5773 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5774 * java/lang/natThread.java (initialize_native): Cast `data' to
5776 * gnu/gcj/RawData.java: Clarify documentation.
5778 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5779 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5780 `jarFile', not `jarFileURL'.
5782 2000-05-15 Andrew Haley <aph@cygnus.com>
5784 * include/ppc-signal.h: New file.
5786 2000-05-11 Tom Tromey <tromey@cygnus.com>
5788 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5789 file headers, don't include `size' in the skip call.
5791 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5793 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5794 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5796 (replace): Reimplemented. Fix javadoc.
5797 (reverse): Call ensureCapacity_unsynchronized().
5798 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5800 (replace): Calculate length for arraycopy() correctly.
5802 2000-05-09 Tom Tromey <tromey@cygnus.com>
5804 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5806 (insert(int,char[],int,int): New method.
5807 (delete): New method from Classpath.
5808 (deleteCharAt): Likewise.
5809 (substring): Likewise.
5810 (shared): No longer private.
5811 Added JavaDoc comments from Classpath.
5812 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5815 2000-05-07 Tom Tromey <tromey@cygnus.com>
5817 * Makefile.in: Rebuilt.
5818 * Makefile.am (LIBLINK): New macro.
5819 (libgcj_la_LINK): Use it.
5820 (libgcjawt_la_LINK): Likewise.
5822 2000-05-06 Tom Tromey <tromey@cygnus.com>
5824 * Makefile.in: Rebuilt.
5825 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5827 2000-05-05 Tom Tromey <tromey@cygnus.com>
5829 Fix for PR libgcj/220:
5830 * Makefile.in: Rebuilt.
5831 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5832 (jv_convert_LDFLAGS): Likewise.
5833 (libgcj_la_LDFLAGS): Likewise.
5834 (GCJLINK): New macro.
5835 (jv_convert_LINK): Use it.
5836 (gij_LINK): Likewise.
5837 (libgcj_la_LINK): New macro.
5838 (libgcjawt_la_LINK): Likewise.
5840 2000-05-04 Tom Tromey <tromey@cygnus.com>
5842 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5844 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5848 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5850 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5851 (_Jv_IsAssignableFrom): Ditto.
5852 (_Jv_IsInstanceOf): Ditto.
5853 (_Jv_CheckCast): Ditto.
5854 (_Jv_CheckArrayStore): Ditto.
5855 * java/lang/Class.h (_Jv_InitClass): Ditto.
5856 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5861 (_Jv_MonitorExit): Ditto.
5862 * boehm.cc (_Jv_MarkObj): Ditto.
5863 (_Jv_MarkObj): Ditto.
5864 (_Jv_MarkArray): Ditto.
5865 * prims.cc (_Jv_AllocObject): Ditto.
5866 (_Jv_NewObjectArray): Ditto.
5867 (_Jv_NewPrimArray): Ditto.
5868 (_Jv_Malloc): Ditto.
5869 (_Jv_Realloc): Ditto.
5870 (_Jv_MallocUnchecked): Ditto.
5876 2000-05-04 Tom Tromey <tromey@cygnus.com>
5878 * java/util/Locale.java (Locale): Don't explicitly check for
5880 * java/util/Hashtable.java (containsKey): Don't explicitly check
5883 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5885 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5887 * java/text/StringCharacterIterator.java
5888 (StringCharacterIterator): Don't check for null.
5889 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5891 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5892 check for null pointer.
5893 (leaveGroup): Likewise.
5894 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5896 (setData): Likewise.
5897 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5900 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5902 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5903 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5904 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5905 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5906 -rpath for in-gcc builds.
5907 * Makefile.in: Rebuilt.
5909 2000-04-28 Tom Tromey <tromey@cygnus.com>
5911 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5914 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5916 * libjava/java/lang/String.java (toString): Remove `final' hack.
5918 2000-04-05 Tom Tromey <tromey@cygnus.com>
5920 Runtime support for PR gcj/2:
5921 * prims.cc (_Jv_ThrowNullPointerException): New function.
5922 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5924 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5926 * prims.cc (_Jv_NewObjectArray): Fix typo.
5928 2000-04-26 Tom Tromey <tromey@cygnus.com>
5930 * Makefile.in: Rebuilt.
5931 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5933 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5935 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5938 2000-04-22 Anthony Green <green@cygnus.com>
5940 * include/jvm.h (__builtin_expect): Define as unused for now.
5941 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5945 (_Jv_MonitorExit): Ditto.
5946 * boehm.cc (_Jv_MarkObj): Ditto.
5947 (_Jv_MarkObj): Ditto.
5948 (_Jv_MarkArray): Ditto.
5949 (_Jv_AllocBytes): Ditto.
5950 * prims.cc (_Jv_AllocObject): Ditto.
5951 (_Jv_NewObjectArray): Ditto.
5952 (_Jv_NewPrimArray): Ditto.
5953 (_Jv_Malloc): Ditto.
5954 (_Jv_Realloc): Ditto.
5955 (_Jv_MallocUnchecked): Ditto.
5961 * include/Makefile.in: Rebuilt.
5962 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5964 2000-04-21 Tom Tromey <tromey@cygnus.com>
5966 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5967 Yet another new version from Classpath.
5969 Fix for PR libgcj/15:
5970 * java/util/natGregorianCalendar.cc (_REENTRANT,
5971 _POSIX_PTHREAD_SEMANTICS): Don't define.
5972 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5973 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5975 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5977 * configure: Rebuilt.
5978 * configure.in: If using POSIX threads, define _REENTRANT if
5979 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5980 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5982 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5983 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5984 version from Classpath.
5986 Fix for PR libgcj/213:
5987 * Makefile.in: Rebuilt.
5988 * Makefile.am (gij_SOURCES): Added gij.cc.
5989 (EXTRA_gij_SOURCES): Removed.
5990 (gij_LDADD): Removed gij.lo.
5991 (gij_DEPENDENCIES): Likewise.
5992 ($(gij_OBJECTS)): Depend on nat_headers.
5994 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5995 `setURL', not `url.set'.
5997 2000-04-20 Tom Tromey <tromey@cygnus.com>
5999 Fix for PR java.io/204:
6000 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6001 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6004 Fix for PR libgcj/212:
6005 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6006 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6007 * java/lang/Class.h (_Jv_word): Declare.
6009 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6011 2000-04-19 Tom Tromey <tromey@cygnus.com>
6013 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6014 doesn't have a loader.
6016 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6018 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6019 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6021 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6023 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6025 (available): Initialize `where' to prevent bogus compiler warning.
6027 2000-04-12 Tom Tromey <tromey@cygnus.com>
6029 * java/lang/natString.cc (intern): Temporarily disable finalizer
6032 * java/lang/natString.cc (unintern): Added `obj' argument.
6033 (intern): Register finalizer for string.
6034 * java/lang/String.java (unintern): Now static; added obj
6037 2000-04-11 Tom Tromey <tromey@cygnus.com>
6039 * java/util/Vector.java (VectorEnumeration): Now `final'.
6040 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6041 (HashtableEnumeration): Likewise.
6042 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6043 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6045 2000-04-10 Warren Levy <warrenl@cygnus.com>
6047 * java/io/ObjectStreamException.java: New file.
6048 * java/io/OptionalDataException.java: New file.
6049 * java/io/StreamCorruptedException.java: New file.
6050 * java/math/BigDecimal.java: New file.
6051 * java/sql/CallableStatement.java: New file.
6052 * java/sql/Connection.java: New file.
6053 * java/sql/DataTruncation.java: New file.
6054 * java/sql/DatabaseMetaData.java: New file.
6055 * java/sql/Date.java: New file.
6056 * java/sql/Driver.java: New file.
6057 * java/sql/DriverManager.java: New file.
6058 * java/sql/DriverPropertyInfo.java: New file.
6059 * java/sql/PreparedStatement.java: New file.
6060 * java/sql/ResultSet.java: New file.
6061 * java/sql/ResultSetMetaData.java: New file.
6062 * java/sql/SQLException.java: New file.
6063 * java/sql/SQLWarning.java: New file.
6064 * java/sql/Statement.java: New file.
6065 * java/sql/Time.java: New file.
6066 * java/sql/Timestamp.java: New file.
6067 * java/sql/Types.java: New file.
6068 * Makefile.am: Added above new files.
6069 * Makefile.in: Rebuilt.
6071 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6072 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6073 DatagramSocket constructor instead of null.
6075 2000-04-08 Anthony Green <green@cygnus.com>
6077 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6080 2000-04-08 Anthony Green <green@cygnus.com>
6082 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6083 (_Jv_MutexUnlock): Ditto.
6084 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6085 (_Jv_MutexUnlock): Ditto.
6087 2000-04-08 Anthony Green <green@cygnus.com>
6089 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6090 (ensureCapacity_unsynchronized): New private method.
6091 (append): Use ensureCapacity_unsynchronized.
6093 2000-04-08 Tom Tromey <tromey@cygnus.com>
6095 * Makefile.in: Rebuilt.
6096 * Makefile.am (awt_java_source_files): Added new files.
6097 * java/awt/IllegalComponentStateException.java: New file.
6098 * java/awt/ItemSelectable.java: New file.
6099 * java/awt/event/WindowEvent.java: Finished.
6100 * java/awt/event/TextEvent.java: Finished.
6101 * java/awt/event/ContainerEvent.java: New file.
6102 * java/awt/Component.java (getX, getY): New methods.
6103 * java/awt/event/PaintEvent.java: New file.
6104 * java/awt/event/MouseEvent.java: New file.
6105 * java/awt/ActiveEvent.java: New file.
6106 * java/awt/event/KeyEvent.java: Finished.
6107 * java/awt/event/ItemEvent.java: New file.
6108 * java/awt/Adjustable.java: New file.
6109 * java/awt/event/InputMethodEvent.java: New file.
6110 * java/awt/event/InputEvent.java: Finished.
6111 * java/awt/event/FocusEvent.java: New file.
6112 * java/awt/event/MouseMotionAdapter.java: New file.
6113 * java/awt/event/MouseAdapter.java: New file.
6114 * java/awt/event/KeyAdapter.java: New file.
6115 * java/awt/event/FocusAdapter.java: New file.
6116 * java/awt/event/ContainerAdapter.java: New file.
6117 * java/awt/event/ComponentEvent.java: Finished.
6118 * java/awt/event/AdjustmentEvent.java: New file.
6119 * java/awt/event/ComponentAdapter.java: New file.
6120 * java/awt/event/ActionEvent.java: Finished.
6121 * java/awt/event/MouseMotionListener.java: New file.
6122 * java/awt/event/MouseListener.java: New file.
6123 * java/awt/event/ItemListener.java: New file.
6124 * java/awt/event/InputMethodListener.java: New file.
6125 * java/awt/event/ContainerListener.java: New file.
6126 * java/awt/event/FocusListener.java: New file.
6127 * java/awt/event/ComponentListener.java: New file.
6128 * java/awt/event/AWTEventListener.java: New file.
6129 * java/awt/event/AdjustmentListener.java: New file.
6131 2000-04-08 Anthony Green <green@cygnus.com>
6133 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6134 check when we have to.
6136 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6139 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6142 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6143 inline hasMoreElements.
6145 2000-04-05 Tom Tromey <tromey@cygnus.com>
6147 * configure: Rebuilt.
6148 * configure.in: Recognize --enable-java-awt.
6149 (AWT): New conditional.
6150 * Makefile.in: Rebuilt.
6151 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6153 (libgcjawt_la_SOURCES): New macro.
6154 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6155 (libgcjawt_la_DEPENDENCIES): Likewise.
6156 (libgcjawt_la_LIBADD): Likewise.
6157 (libgcjawt_la_LDFLAGS): Likewise.
6158 (libgcj.zip): Depend on cond_java_awt_source_files
6159 (cond_awt_java_source_files): New macro.
6160 (MOSTLYCLEANFILES): Added awto_files.
6161 (awto_files): New macro. Use where javao_files used.
6162 (nat_headers): Use cond_awt_java_source_files.
6164 2000-04-04 Tom Tromey <tromey@cygnus.com>
6166 * Makefile.in: Rebuilt.
6167 * Makefile.am (awt_java_source_files): Added AWTException.java.
6168 * java/awt/AWTException.java: New file.
6170 2000-04-03 Tom Tromey <tromey@cygnus.com>
6172 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6173 commentary from Alex.
6175 * Makefile.in: Rebuilt.
6176 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6179 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6181 * configure: Rebuilt.
6182 * configure.in: Add --disable-jvmpi.
6183 * include/config.h.in: Rebuilt.
6184 * acconfig.h: Add ENABLE_JVMPI.
6186 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6187 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6188 (_Jv_JVMPI_Notify_THREAD_END): New define.
6189 (_Jv_JVMPI_Notify_THREAD_END): New define.
6190 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6191 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6192 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6194 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6197 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6198 (finish_): Generate JVMPI thread end events.
6199 (run_): Generate JVMPI thread start events.
6200 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6201 preloaded JNI library.
6202 Include JVMPI headers if necessary.
6203 (run): Generate JVMPI thread start events.
6205 * boehm.cc: Define GC_disable and GC_enable.
6206 (_Jv_DisableGC): New function.
6207 (_Jv_EnableGC): New function.
6208 (disable_gc_mutex): Declare.
6209 * nogc.cc (_Jv_DisableGC): New function.
6210 (_Jv_EnableGC): New function.
6212 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6213 (_Jv_JVMPI_Interface): Define.
6214 (jvmpiEnableEvent): New function.
6215 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6217 * include/jvmpi.h: New file.
6219 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6221 * Makefile.in: New #defines and friends for Thread.h.
6222 * Makefile.am: Ditto.
6223 * posix-threads.cc: (struct starter): Remove `object'.
6224 (_Jv_CondWait): Use interruptable condition variables and new
6225 recursive mutexes. New return codes on interrupt or non-ownership
6227 (_Jv_CondNotify): Ditto.
6228 (_Jv_CondNotifyAll): Ditto.
6229 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6230 the target thread by signaling its wait condition.
6231 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6232 not the starter struct. Initialize wait_mutex and wait_cond.
6233 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6235 (_Jv_MutexUnlock): Ditto.
6236 (really_start): Set info->data->thread from pthread_self() to work
6237 around a race condition. Destroy wait_mutex and wait_cond when run()
6239 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6240 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6242 startable_flag: New private field.
6243 (Thread): Initialize `startable_flag'.
6244 (toString): Check for null thread group.
6245 * java/lang/natThread.cc: (struct natThread): New fields
6246 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6247 (class locker): Removed.
6248 (initialize_native): Initialize `join_cond' and `join_mutex'.
6249 (interrupt): Now just calls _Jv_ThreadInterrupt().
6250 (join): Simplified. Just wait on the target thread's join condition.
6251 (finish_): Remove join list code. Unset thread group. Signal
6252 potential joiners by notifying the dying threads join_cond.
6253 (start): Check for illegal restarts.
6254 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6256 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6257 #defines and #ifdefs.
6258 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6259 `wait_mutex', `next'.
6260 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6261 directly mapping to pthread_cond_t.
6262 (struct _Jv_Mutex_t): New recursive implementation.
6263 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6264 _Jv_HaveCondDestroy: Never define this for posix-threads.
6265 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6266 (_Jv_CondNotifyAll): Ditto.
6267 (_Jv_MutexLock): Ditto.
6268 (_Jv_MutexUnlock): Ditto.
6269 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6270 (_Jv_MutexDestroy): Ditto.
6271 (_Jv_CondDestroy): Removed.
6272 (_Jv_PthreadGetMutex): Removed.
6273 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6274 error. Add a FIXME about this.
6275 (_Jv_CondNotifyAll): Ditto.
6276 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6277 _JV_NOT_OWNER on other errors. Add FIXME.
6279 2000-03-26 Tom Tromey <tromey@cygnus.com>
6281 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6283 (call): Don't throw exception here.
6285 2000-03-26 Tom Tromey <tromey@cygnus.com>
6287 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6288 * interpret.cc: Use SIZEOF_VOID_P.
6289 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6290 (_Jv_loadLong): Likewise.
6291 (_Jv_storeDouble): Likewise.
6292 * configure: Rebuilt.
6293 * configure.in: Check size of void*.
6295 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6297 2000-03-26 Hans Boehm <boehm@acm.org>
6299 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6300 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6302 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6303 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6304 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6305 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6307 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6308 (FFI_RAW_SIZE): Likewise.
6309 (_Jv_InterpMethod::ncode): Use them.
6310 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6311 STORED): Define differently on a 64 bit machine.
6312 (continue1): Use ffi_java_raw_call when appropriate.
6314 2000-03-24 Warren Levy <warrenl@cygnus.com>
6316 * java/math/BigInteger.java(divide): Handle the special case when
6317 dividing by 1 and the high bit of the dividend is set.
6318 (setShiftRight): Handle case when count == 0.
6320 2000-03-24 Warren Levy <warrenl@cygnus.com>
6322 * java/awt/Font.java(isBold): Fix syntax error.
6324 * java/awt/Frame.java(postEvent): ditto.
6325 * java/awt/Menu.java(postEvent): ditto.
6326 * java/awt/MenuBar.java(postEvent): ditto.
6327 * java/awt/Toolkit.java(init): Included a stub.
6329 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6331 * java/awt/Event.java: Add all the event type constants.
6332 (Event): Implemented constructors.
6333 (controlDown): Implemented.
6334 (metaDown): Implemented.
6335 (paramString): Stubbed.
6336 (shiftDown): Implemented.
6337 (toString): Implemented.
6338 (translate): Implemented.
6340 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6342 * java/lang/natClass.cc (isInstance): Initialize `this'.
6343 (isAssignableFrom): Initialize `this' and `klass'.
6344 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6345 implemented by any loaded class, so return false.
6346 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6347 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6349 2000-03-19 Warren Levy <warrenl@cygnus.com>
6351 * java/awt/Color.java: Specified java.io for Serializable.
6352 * java/awt/Toolkit.java: Imported java.net.URL.
6354 2000-03-19 Warren Levy <warrenl@cygnus.com>
6356 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6358 2000-03-16 Warren Levy <warrenl@cygnus.com>
6360 * java/awt/Color.java: New file.
6361 * java/awt/Graphics.java: New file.
6362 * java/awt/Image.java: New file.
6363 * java/awt/Paint.java: New file.
6364 * java/awt/PaintContext.java: New file.
6365 * java/awt/Transparency.java: New file.
6366 * java/util/Collection.java: New file.
6367 * java/util/Comparator.java: New file.
6368 * java/util/Iterator.java: New file.
6369 * java/util/List.java: New file.
6370 * java/util/ListIterator.java: New file.
6371 * Makefile.am: Added above new files.
6372 * Makefile.in: Rebuilt.
6374 * java/awt/Font.java (PLAIN): New field.
6376 (ITALIC): New field.
6377 (ROMAN_BASELINE): New field.
6378 (CENTER_BASELINE): New field.
6379 (HANGING_BASELINE): New field.
6383 (pointSize): New field.
6384 (Font): Implemented constructor.
6385 (isPlain): Implemented method.
6386 (isBold): Implemented method.
6387 (isItalic): Implemented method.
6388 (getName): Implemented method.
6389 (getStyle): Implemented method.
6390 (getSize): Implemented method.
6391 (getSize2D): Implemented method.
6393 * java/awt/Frame.java (getFont): Stubbed.
6394 (postEvent): Stubbed.
6396 * java/awt/Menu.java (postEvent): Stubbed.
6397 * java/awt/MenuBar.java (getFont): Stubbed.
6398 (postEvent): Stubbed.
6399 * java/awt/Toolkit.java (getImage): Added abstract method.
6401 2000-03-15 Tom Tromey <tromey@cygnus.com>
6403 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6405 * prims.cc (win32_exception_handler): Reformatted.
6407 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6408 (_Jv_HaveMutexDestroy): Likewise.
6410 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6412 * java/io/natFileDescriptorWin32.cc: New file.
6413 * java/io/natFileWin32.cc: New file.
6414 * java/net/natInetAddress.cc: Added conditional inclusion of
6415 Windows / Winsock headers.
6416 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6417 inclusion of Windows / Winsock headers.
6418 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6419 Windows / Winsock headers.
6420 * include/win32-signal.h: New file.
6421 * include/win32-threads.h: New file.
6422 * win32-threads.cc: New file.
6423 * exception.cc (win32_get_restart_frame): New function.
6424 * prims.cc (win32_exception_handler): New function.
6425 (main_init) Performs Winsock initialisation.
6426 (main_init) Installs exeception handler.
6428 2000-03-14 Tom Tromey <tromey@cygnus.com>
6430 * jni.cc (mangled_name): Fixed assertion.
6431 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6432 turned assert into actual failure.
6434 2000-03-09 Warren Levy <warrenl@cygnus.com>
6436 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6437 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6438 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6440 2000-03-09 Warren Levy <warrenl@cygnus.com>
6442 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6443 * java/security/DigestException.java: New file.
6444 * java/security/GeneralSecurityException.java: New file.
6445 * java/security/InvalidAlgorithmParameterException.java: New file.
6446 * java/security/InvalidKeyException.java: New file.
6447 * java/security/InvalidParameterException.java: New file.
6448 * java/security/Key.java: New file.
6449 * java/security/KeyException.java: New file.
6450 * java/security/KeyPair.java: New file.
6451 * java/security/KeyPairGenerator.java: New file.
6452 * java/security/KeyPairGeneratorSpi.java: New file.
6453 * java/security/NoSuchProviderException.java: New file.
6454 * java/security/PrivateKey.java: New file.
6455 * java/security/Provider.java: New file.
6456 * java/security/PublicKey.java: New file.
6457 * java/security/SecureRandom.java: New file.
6458 * java/security/Security.java: New file.
6459 * java/security/Signature.java: New file.
6460 * java/security/SignatureException.java: New file.
6461 * java/security/interfaces/DSAKey.java: New file.
6462 * java/security/interfaces/DSAParams.java: New file.
6463 * java/security/interfaces/DSAPrivateKey.java: New file.
6464 * java/security/interfaces/DSAPublicKey.java: New file.
6465 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6466 * java/security/interfaces/RSAPrivateKey.java: New file.
6467 * java/security/interfaces/RSAPublicKey.java: New file.
6468 * java/security/spec/AlgorithmParameterSpec.java: New file.
6469 * java/security/spec/InvalidKeySpecException.java: New file.
6470 * java/security/spec/InvalidParameterSpecException.java: New file.
6471 * java/security/spec/KeySpec.java: New file.
6472 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6473 * java/security/spec/RSAPrivateKeySpec.java: New file.
6474 * java/security/spec/RSAPublicKeySpec.java: New file.
6475 * Makefile.am: Added above java.security files.
6476 * Makefile.in: Rebuilt.
6478 * java/security/MessageDigest.java: Rewritten.
6479 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6481 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6485 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6487 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6488 _Jv_PrepareConstantTimeTables.
6489 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6490 classes should have an IDT, so don't return if klass is an array
6493 2000-03-08 Tom Tromey <tromey@cygnus.com>
6495 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6496 of `void' to be created.
6498 2000-03-08 Warren Levy <warrenl@cygnus.com>
6500 * java/math/BigInteger.java(signum): Handle zero properly.
6502 2000-03-07 Tom Tromey <tromey@cygnus.com>
6504 * All files: Updated copyright information.
6505 * COPYING: New file.
6506 * COPYING.LIB: Removed.
6507 * LIBGCJ_LICENSE: We now use GPL + special exception.
6509 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6511 * resolve.cc (_Jv_SearchMethodInClass): New function.
6512 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6513 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6515 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6517 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6518 (struct _Jv_ifaces): New declaration.
6519 JV_CLASS: New macro definition.
6520 (getComponentType): Relocate below isArray() for inlining.
6521 (getModifiers): Declare `inline'.
6522 (getSuperclass): Ditto.
6524 (isPrimitive): Ditto.
6525 (_Jv_IsAssignableFrom): New prototype.
6526 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6528 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6529 Check for JV_STATE_DONE before invoking initializeClass().
6530 (_Jv_PrepareConstantTimeTables): New prototype.
6531 (_Jv_GetInterfaces): Ditto.
6532 (_Jv_GenerateITable): Ditto.
6533 (_Jv_GetMethodString): Ditto.
6534 (_Jv_AppendPartialITable): Ditto.
6535 (_Jv_FindIIndex): Ditto.
6536 depth, ancestors, idt: New class fields.
6538 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6539 inline function `_Jv_IsAssignableFrom'. Use that function.
6540 (isInstance): Declare `inline'.
6541 (initializeClass): Get lock on class before checking `state'. Unlock
6542 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6544 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6545 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6546 class->depth and ancestor table.
6547 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6548 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6549 _Jv_IsAssignableFrom.
6550 (_Jv_CheckArrayStore): Ditto.
6551 (_Jv_LookupInterfaceMethodIdx): New function.
6552 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6553 (_Jv_PrepareConstantTimeTables): New function.
6554 (_Jv_IndexOf): Ditto.
6555 (_Jv_GetInterfaces): Ditto.
6556 (_Jv_GenerateITable): Ditto.
6557 (_Jv_GetMethodString): Ditto.
6558 (_Jv_AppendPartialITable): Ditto.
6559 iindex_mutex, iindex_mutex_initialized: New static fields.
6560 (_Jv_FindIIndex): New function.
6562 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6564 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6565 (_Jv_CheckArrayStore): Ditto.
6566 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6567 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6568 Moved to gcj/array.h.
6569 (_Jv_Realloc): New function.
6571 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6573 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6574 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6575 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6576 JvNewDoubleArray): Implementations moved from prims.cc and
6579 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6581 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6583 2000-03-06 Tom Tromey <tromey@cygnus.com>
6585 * jni.cc (MARK_NONE): New define.
6586 (MARK_USER): Likewise.
6587 (MARK_SYSTEM): Likewise.
6588 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6590 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6591 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6592 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6593 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6595 (call): Use MARK_SYSTEM.
6596 (_Jv_GetJNIEnvNewFrame): New function.
6597 (_Jv_LookupJNIMethod): New function.
6598 (_Jv_JNI_PopSystemFrame): New function.
6599 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6601 2000-03-05 Tom Tromey <tromey@cygnus.com>
6603 Fix for PR libgcj/43:
6604 * include/Makefile.in: Rebuilt.
6605 * include/Makefile.am (include_HEADERS): New define.
6607 2000-03-05 Anthony Green <green@redhat.com>
6609 * gcj/javaprims.h ("Java"): Remove FirstThread.
6611 * configure.host: Fix __NO_MATH_INLNES botch.
6613 * Makefile.in: Rebuilt.
6614 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6615 (gnu/gcj/runtime/FirstThread.h): Moved.
6616 (ordinary_java_source_files): Move FirstThread.java.
6617 * prims.cc: Deal with FirstThread movement.
6619 (_Jv_RunMain): Ditto.
6621 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6622 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6624 2000-03-05 Warren Levy <warrenl@cygnus.com>
6626 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6627 Handle null addresses.
6629 2000-03-04 Anthony Green <green@redhat.com>
6631 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6634 2000-03-04 Anthony Green <green@redhat.com>
6636 * configure: Rebuilt.
6637 * configure.in (ZLIBTESTSPEC): New macro.
6638 (GCTESTSPEC): New macro.
6639 (LIBGCJTESTSPEC): New macro.
6640 * libgcj-test.spec.in: New file.
6642 2000-03-02 Tom Tromey <tromey@cygnus.com>
6644 * include/java-interp.h: Don't include MethodInvocation.h.
6645 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6646 * Makefile.in: Rebuilt.
6647 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6648 (ordinary_java_source_files): Don't mention
6649 MethodInvocation.java.
6650 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6651 * interpret.cc (MethodInvocation::continue1): Removed.
6652 (run): Handle exceptions here.
6653 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6655 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6657 (defineClass2): Removed.
6659 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6661 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6663 (hack_call): Removed.
6665 * java/lang/Class.h (Class): Removed hackRunInitializers,
6667 * java/lang/natClass.cc (hackRunInitializers): Removed.
6668 (initializeClass): Catch exceptions here.
6669 Include ExceptionInInitializerError.h.
6670 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6673 * java/lang/Object.h (Object): Don't mention hack12_6.
6674 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6676 * java/lang/Object.java (hack12_6): Removed.
6678 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6679 (start): Use run_, not run__.
6680 * java/lang/Thread.java (run_): Renamed from run__; old run_
6683 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6684 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6685 (_Jv_JNI_DefineClass): Likewise.
6686 (_Jv_JNI_ThrowNew): Likewise.
6687 (_Jv_JNI_AllocObject): Likewise.
6688 (_Jv_JNI_GetAnyMethodID): Likewise.
6689 (_Jv_JNI_CallAnyMethodV): Likewise.
6690 (_Jv_JNI_CallAnyMethodA): Likewise.
6691 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6692 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6693 (_Jv_JNI_GetAnyFieldID): Likewise.
6694 (_Jv_JNI_NewString): Likewise.
6695 (_Jv_JNI_NewStringUTF): Likewise.
6696 (_Jv_JNI_GetStringUTFChars): Likewise.
6697 (_Jv_JNI_NewObjectArray): Likewise.
6698 (_Jv_JNI_NewPrimitiveArray): Likewise.
6699 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6700 (_Jv_JNI_GetStringRegion): Likewise.
6701 (_Jv_JNI_GetStringUTFRegion): Likewise.
6702 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6703 (_Jv_JNI_MonitorEnter): Likewise.
6704 (_Jv_JNI_MonitorExit): Likewise.
6705 (_Jv_JNI_ToReflectedField): Likewise.
6706 (_Jv_JNI_ToReflectedMethod): Likewise.
6707 (_Jv_JNI_RegisterNatives): Likewise.
6708 (_Jv_JNI_AttachCurrentThread): Likewise.
6709 (_Jv_JNI_DestroyJavaVM): Likewise.
6711 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6713 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6714 error caused by the incorrect casting of a long to an int.
6716 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6718 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6719 SIGSEV caused by use of the wrong instance variable.
6721 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6723 * java/io/File.java (File(String, String)): For dirPath, treat an
6724 empty String the same as `null'.
6726 2000-02-26 Anthony Green <green@cygnus.com>
6728 * gnu/gcj/io/MimeTypes.java: Test for null.
6730 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6731 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6733 * java/net/URLConnection.java: Update copyright notice.
6735 2000-02-25 Tom Tromey <tromey@cygnus.com>
6737 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6740 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6742 * java/net/URLConnection.java (initializeDateFormats): New
6744 (getHeaderFieldDate): Call initializeDateFormats if required.
6745 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6747 Fix for PR libgcj/38.
6749 2000-02-24 Warren Levy <warrenl@cygnus.com>
6751 * java/math/BigInteger.java(ival): Made private.
6755 2000-02-20 Anthony Green <green@cygnus.com>
6757 * Makefile.in: Rebuilt.
6758 * Makefile.am (ordinary_java_source_files): Add
6759 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6761 * scripts/MakeDefaultMimeTypes.java: New file.
6762 * scripts/mime.types: New file.
6763 * scripts/classes.pl: Moved from top level.
6764 * classes.pl: Moved to scripts directory.
6766 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6768 * gnu/gcj/io/MimeTypes.java: New file.
6769 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6771 2000-02-20 Tom Tromey <tromey@cygnus.com>
6773 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6775 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6777 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6780 2000-02-18 Tom Tromey <tromey@cygnus.com>
6782 * include/jvm.h (_Jv_GetJavaVM): Declare.
6783 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6784 (_Jv_MethodBase::get_method): New method.
6785 (_Jv_JNIMethod::set_function): New method.
6786 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6787 (_Jv_JNI_RegisterNatives): New function.
6788 (_Jv_JNIFunctions): Updated for new functions.
6789 (_Jv_GetJavaVM): New function.
6790 (_Jv_JNI_GetJavaVM): Use it. Now static.
6791 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6792 is already a Java thread but does not have a JNIEnv yet.
6794 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6797 2000-02-17 Tom Tromey <tromey@cygnus.com>
6799 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6802 2000-02-16 Tom Tromey <tromey@cygnus.com>
6804 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6806 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6807 (_Jv_JNI_NewObject): Likewise.
6808 (_Jv_JNI_NewObjectA): Likewise.
6809 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6810 as "return" type to _Jv_CallAnyMethodA.
6811 (_Jv_JNI_CallAnyMethodA): Likewise.
6812 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6814 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6817 2000-02-15 Tom Tromey <tromey@cygnus.com>
6819 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6821 (init_cif): Added `rtype_p' argument.
6822 * include/java-interp.h (class _Jv_MethodBase): Added
6824 (class _Jv_InterpMethod): Removed args_raw_size.
6825 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6826 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6827 class pointer as well as the ordinary arguments.
6829 * jni.cc (mangled_name): Skip leading `(' in signature.
6831 * jni.cc (add_char): Added missing `else'.
6833 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6836 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6840 * java/lang/natRuntime.cc (_load): Include library path with
6843 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6846 * java/lang/natThread.cc (dumpStack): Removed.
6847 * java/lang/Thread.java (dumpStack): Implemented.
6849 2000-02-15 Tom Tromey <tromey@cygnus.com>
6851 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6852 with `lib' for loadLibrary. Fixes PR gcj/150.
6854 2000-02-14 Warren Levy <warrenl@cygnus.com>
6856 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6858 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6862 (modPow): Rewritten to not use the naive, slow, brute force approach.
6863 (isProbablePrime): Implemented.
6864 (testBit): Implemented.
6865 (flipBit): Implemented.
6866 (getLowestSetBit): Implemented.
6868 2000-02-16 Anthony Green <green@redhat.com>
6870 * configure.host: Use the same options for i386 and i486 as we do
6873 2000-02-12 Tom Tromey <tromey@cygnus.com>
6875 * java/io/File.java (createTempFile): Use low bits from counter,
6878 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6880 * THANKS: More thanks.
6882 2000-02-11 Tom Tromey <tromey@cygnus.com>
6884 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6885 astore instruction. From Hans Boehm.
6887 2000-02-11 Warren Levy <warrenl@cygnus.com>
6889 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6890 (BigInteger(String)): New constructor.
6891 (not): Rewritten using version from Kawa's BitOps class.
6892 (valueOf): New private methods from Kawa's BitOps class.
6899 (andNot): Implemented.
6900 (clearBit): Implemented.
6901 (setBit): Implemented.
6902 (bitCount): Implemented.
6903 (toByteArray): Implemented.
6905 2000-02-11 Tom Tromey <tromey@cygnus.com>
6907 * java/io/File.java (nextValue): Now synchronized.
6909 2000-02-10 Tom Tromey <tromey@cygnus.com>
6911 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6912 * java/io/FileDescriptor.java (EXCL): New static field.
6913 * java/io/File.java (tmpdir): New static field.
6914 (createTempFile): New method.
6915 (nextValue): New method.
6916 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6919 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6920 (jboolean): Declare as an attributed int, not a bool.
6921 (_Jv_func): Declare differently for C.
6923 * gnu/gcj/jni/natNativeThread.cc: New file.
6924 * gnu/gcj/jni/NativeThread.java: New file.
6925 * java/lang/Thread.java (data): Now a RawData.
6926 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6928 * Makefile.in: Rebuilt.
6929 * Makefile.am (java/lang/Thread.h): New target.
6930 (ordinary_java_source_files): Added NativeThread.java.
6931 (nat_source_files): Added natNativeThread.cc.
6932 * java/lang/natThread.cc: Include <jni.h>
6933 (struct natThread): Added `jni_env' field.
6934 (_Jv_GetCurrentJNIEnv): New function.
6935 (_Jv_SetCurrentJNIEnv): Likewise.
6936 (initialize_native): Initialize jni_env.
6938 * jni.cc (ThreadGroupClass): New define.
6939 (_Jv_JNI_InvokeFunctions): New structure.
6940 (JNI_GetCreatedJavaVMs): New function.
6941 (the_vm): New global.
6942 (JNI_GetDefaultJavaVMInitArgs): New function.
6943 Include NativeThread.h.
6944 (NativeThreadClass): New define.
6945 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6946 (_Jv_JNI_DestroyJavaVM): New function.
6947 (_Jv_JNI_AttachCurrentThread): New function.
6948 (_Jv_JNI_DetachCurrentThread): New function.
6949 (_Jv_JNI_GetEnv): New function.
6950 (JNI_CreateJavaVM): New function.
6951 (_Jv_JNI_GetJavaVM): New function.
6952 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6953 * include/jni.h (JavaVMAttachArgs): New structure.
6954 (JNI_EDETACHED): New define.
6955 (JNI_EVERSION): Likewise.
6956 (JavaVM): Define properly.
6957 (struct JNIInvokeInterface): New structure.
6958 (class _Jv_JavaVM): New class.
6959 (JNI_OnLoad, JNI_OnUnload): Declare.
6960 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6961 JNI_GetCreatedJavaVMs): Declare.
6962 (JavaVMInitArgs): New typedef.
6963 (JavaVMOption): Likewise.
6964 (JNI_ERR): New define.
6967 2000-02-10 Andrew Haley <aph@cygnus.com>
6969 * interpret.cc: Don't include fdlibm.h.
6970 Replace #if with #ifdef throughout.
6971 Declare extern __ieee754_fmod.
6972 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6974 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6975 Search class hierarchy for superclass vtable.
6977 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6978 off the end of a pointer list.
6980 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6984 2000-02-09 Tom Tromey <tromey@cygnus.com>
6986 * java/lang/natRuntime.cc (_load): Call add_library.
6987 (loadLibraryInternal): Likewise.
6989 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6990 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6991 (Output_iconv::finalize): Likewise.
6993 2000-02-08 Tom Tromey <tromey@cygnus.com>
6995 * java/util/Properties.java (setProperty): New method.
6996 (store): New method.
6998 2000-02-07 Tom Tromey <tromey@cygnus.com>
7000 * java/lang/Runtime.java (_load): Declare.
7001 (load, loadLibrary): Wrote in terms of _load.
7002 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7004 (loadLibrary): Likewise.
7006 (_load): New method.
7007 (loadLibrary, load): Removed.
7009 * jni.cc (ThrowableClass): New define.
7010 (_Jv_JNI_Throw): Check argument.
7011 (_Jv_JNI_ThrowNew): Likewise.
7012 (wrap_value): Don't wrap object if it is NULL.
7013 (_Jv_JNI_DefineClass): Use wrap_value.
7014 (_Jv_JNI_FindClass): Likewise.
7015 (_Jv_JNI_GetSuperclass): Likewise.
7016 (_Jv_JNI_ExceptionOccurred): Likewise.
7017 (_Jv_JNI_AllocObject): Likewise.
7018 (_Jv_JNI_GetObjectClass): Likewise.
7019 (_Jv_JNI_NewString): Likewise.
7020 (_Jv_JNI_NewStringUTF): Likewise.
7021 (_Jv_JNI_NewObjectArray): Likewise.
7022 (_Jv_JNI_GetObjectArrayElement): Likewise.
7023 (_Jv_JNI_NewPrimitiveArray): Likewise.
7024 (_Jv_JNI_ToReflectedField): Likewise.
7025 (_Jv_JNI_ToReflectedMethod): Likewise.
7026 (_Jv_JNI_AllocObject): Check argument.
7027 (_Jv_JNI_NewObjectV): Likewise.
7028 (_Jv_JNI_NewObject): Likewise.
7029 (_Jv_JNI_NewObjectA): Likewise.
7030 (_Jv_JNI_GetObjectClass): Likewise.
7031 (_Jv_JNI_GetField): Likewise.
7032 (_Jv_JNI_SetField): Likewise.
7034 * interpret.cc (PUSHL): Don't use expression statement.
7039 * jni.cc (add_char): Conditional on INTERPRETER.
7040 (mangled_name): Likewise.
7042 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7044 (class _Jv_JNIMethod): Likewise.
7046 2000-02-04 Warren Levy <warrenl@cygnus.com>
7048 * Makefile.am: Added MPN.java and BigInteger.java.
7049 * Makefile.in: Rebuilt.
7050 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7052 * java/math/BigInteger.java: New file. Based primarily on
7053 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7055 2000-02-04 Tom Tromey <tromey@cygnus.com>
7057 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7059 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7060 if the method is native.
7061 * resolve.cc (ncode): Don't handle native methods.
7062 (_Jv_JNIMethod::ncode): New method.
7063 (_Jv_PrepareClass): Handle native methods.
7064 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7065 Include AbstractMethodError.h.
7066 (add_char): New function.
7067 (mangled_name): Likewise.
7068 * include/java-interp.h (class _Jv_JNIMethod): New class.
7069 (class _Jv_MethodBase): New class.
7070 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7071 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7074 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7075 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7076 libraries): New globals.
7077 (add_library): New function.
7078 (_Jv_FindSymbolInExecutable): New function.
7080 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7083 2000-02-04 Andrew Haley <aph@cygnus.com>
7085 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7086 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7087 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7088 printStackTrace to printRawStackTrace.
7090 2000-02-03 Tom Tromey <tromey@cygnus.com>
7092 * java/util/Calendar.java (toString): New method.
7093 * java/util/SimpleTimeZone.java (clone): New method.
7094 (toString): New method.
7095 * java/util/TimeZone.java (clone): New method.
7096 * java/text/SimpleDateFormat.java (clone): New method.
7097 * java/text/NumberFormat.java (clone): New method.
7098 (equals): New method.
7099 * java/text/Format.java (clone): New method.
7100 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7102 (clone): New method.
7103 * java/text/DateFormat.java (clone): New method.
7104 * java/text/Collator.java (clone): New method.
7106 2000-02-03 Tom Tromey <tromey@cygnus.com>
7108 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7111 2000-02-01 Tom Tromey <tromey@cygnus.com>
7113 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7114 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7115 constructing the closure if the function is native.
7116 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7117 a template function, #if'd out, or static.
7118 Include <java-interp.h>.
7120 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7122 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7124 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7125 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7127 (wrap_value): New function.
7128 (_Jv_JNI_CallAnyMethodV): Use it.
7129 (_Jv_JNI_CallAnyMethodA): Likewise.
7130 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7131 (_Jv_JNI_GetStaticField): Likewise.
7133 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7134 (_Jv_JNI_GetStaticField): Likewise.
7136 2000-01-31 Tom Tromey <tromey@cygnus.com>
7138 * prims.cc (_Jv_MallocUnchecked): New function.
7139 (main_init): Call _Jv_JNI_Init.
7140 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7141 (_Jv_JNI_Init): Declare.
7142 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7144 (_Jv_JNI_NewGlobalRef): New function.
7145 (_Jv_JNI_DeleteGlobalRef): New function.
7146 (_Jv_JNI_DeleteLocalRef): New function.
7147 (_Jv_JNI_conversion_call): Initialize and clear local reference
7149 (_Jv_JNI_NewLocalRef): New function.
7150 (struct _Jv_JNI_LocalFrame): New structure.
7151 (_Jv_JNI_PushLocalFrame): New function.
7152 (_Jv_JNI_EnsureLocalCapacity): New function.
7153 (FRAME_SIZE): New define.
7154 (_Jv_JNI_GetStringChars): Mark string, not characters.
7155 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7156 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7157 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7159 (_Jv_JNI_DefineClass): Make return value a local ref.
7160 (_Jv_JNI_FindClass): Likewise.
7161 (_Jv_JNI_GetSuperclass): Likewise.
7162 (_Jv_JNI_ExceptionOccurred): Likewise.
7163 (_Jv_JNI_AllocObject): Likewise.
7164 (_Jv_JNI_GetObjectClass): Likewise.
7165 (_Jv_JNI_CallAnyMethodV): Likewise.
7166 (_Jv_JNI_NewString): Likewise.
7167 (_Jv_JNI_NewStringUTF): Likewise.
7168 (_Jv_JNI_NewObjectArray): Likewise.
7169 (_Jv_JNI_GetObjectArrayElement): Likewise.
7170 (_Jv_JNI_ToReflectedField): Likewise.
7171 (_Jv_JNI_ToReflectedMethod): Likewise.
7172 (_Jv_JNIFunctions): Updated table for new functions.
7173 (_Jv_JNI_Init): New function.
7174 (mark_for_gc): Wrote.
7175 (unmark_for_gc): Wrote.
7176 * include/jni.h (struct JNINativeInterface): Removed name from
7177 PopLocalFrame parameter.
7178 (class _Jv_JNIEnv): Added `locals' field.
7180 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7182 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7185 2000-01-30 Tom Tromey <tromey@cygnus.com>
7187 * include/config.h.in: Rebuilt.
7188 * acconfig.h (HAVE_ICONV): Define.
7189 * configure: Rebuilt.
7190 * configure.in: Check for `iconv' function.
7191 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7192 no specific encoder exists.
7193 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7194 no specific encoder exists.
7195 * Makefile.in: Rebuilt.
7196 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7198 (nat_source_files): Added natIconv.cc.
7199 * gnu/gcj/convert/natIconv.cc: New file.
7200 * gnu/gcj/convert/Input_iconv.java: New file.
7201 * gnu/gcj/convert/Output_iconv.java: New file.
7203 2000-01-28 Tom Tromey <tromey@cygnus.com>
7205 * Makefile.in: Rebuilt.
7206 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7208 2000-01-26 Tom Tromey <tromey@cygnus.com>
7210 * gcj/method.h (JvNumMethods): Moved from Class.h.
7211 (JvGetFirstMethod): Likewise.
7212 * java/lang/Class.h (Object): Updated decl of
7213 _Jv_JNI_ToReflectedField.
7214 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7215 * Makefile.in: Rebuilt.
7216 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7217 argument of _Jv_JNI_ToReflectedField.
7218 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7220 (java/lang/reflect/Method.h): Likewise.
7221 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7223 (jweak): New typedef.
7224 (struct JNINativeInterface): Correctly declare remaining entries.
7225 * jni.cc: Include Class.h, ClassLoader.h.
7226 (_Jv_JNI_FindClass): New function.
7227 (_Jv_JNI_DefineClass): New function.
7228 (_Jv_JNI_conversion_call): New function.
7229 (_Jv_JNI_FindClass): Use current class loader to find class.
7230 (_Jv_JNI_ExceptionCheck): New function.
7231 (_Jv_JNI_FromReflectedField): Now static.
7232 (MethodClass): New define.
7233 (_Jv_JNI_FromReflectedMethod): New function.
7234 (_Jv_JNI_ToReflectedMethod): Likewise.
7236 (_Jv_JNI_IsAssignableFrom): Renamed.
7237 (_Jv_JNI_GetStringRegion): New function.
7238 Include StringIndexOutOfBoundsException.h.
7239 (_Jv_JNI_GetStringUTFRegion): New function.
7240 (_Jv_JNIFunctions): Updated for new functions.
7241 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7242 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7243 (_Jv_JNI_GetStringCritical): New function.
7244 (_Jv_JNI_ReleaseStringCritical): Likewise.
7245 (get_throwable): Removed.
7246 (GCJ_JV_JNIENV_FRIEND): Removed.
7247 (__GCJ_JNI_IMPL__): Define.
7250 * resolve.cc (get_ffi_type_from_signature): Handle case where
7253 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7255 * interpret.cc (run): Don't call println.
7256 Don't include PrintStream.h.
7258 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7259 nameIndex. Use "jint" as type for boffset.
7260 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7262 (Class): Likewise. Also changed type of method_count,
7263 vtable_method_count, size_in_bytes, field_count,
7264 static_field_count, interface_count.
7265 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7268 2000-01-21 Tom Tromey <tromey@cygnus.com>
7270 * java/lang/reflect/natConstructor.cc (newInstance): Use
7272 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7273 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7274 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7277 (invoke): Use _Jv_CallAnyMethodA.
7279 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7280 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7282 (struct _Jv_Method): Added getNextMethod method.
7283 (JvNumMethods): New function.
7284 (JvGetFirstMethod): Likewise.
7285 * gcj/field.h (JvGetFirstStaticField): New function.
7286 (JvNumStaticFields): Likewise.
7287 (getNextField): Renamed from getNextInstanceField.
7288 (struct _Jv_Field): New method getClass.
7289 * jni.cc: Wrote many new functions.
7290 * include/jni.h (JNI_TRUE): Define.
7291 (JNI_FALSE): Likewise.
7292 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7293 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7294 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7295 (jfieldID, jmethodID): Likewise.
7296 (JNI_COMMIT, JNI_ABORT): New defines.
7297 (JNINativeMethod): New struct.
7298 (struct JNINativeInterface): Correctly declared more entries.
7299 (class _Jv_JNIEnv): Added `ex' member.
7300 (JNI_VERSION_1_1): New define.
7301 (JNI_VERSION_1_2): Likewise.
7303 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7304 getNextInstanceField.
7306 2000-01-20 Tom Tromey <tromey@cygnus.com>
7308 * resolve.cc (StringClass): Removed.
7309 * defineclass.cc (StringClass): Removed.
7311 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7315 2000-01-19 Tom Tromey <tromey@cygnus.com>
7317 * interpret.cc (PC_REGISTER_ASM): Removed.
7319 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7320 From Bryce McKinlay.
7322 * All files: Updated copyright to reflect Cygnus purchase.
7324 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7326 * configure: Rebuilt.
7327 * configure.in: Recognize --disable-interpreter.
7329 2000-01-18 Andrew Haley <aph@cygnus.com>
7331 * name-finder.cc (lookup): Check for dladdr function.
7332 acconfig.h (HAVE_DLADDR): Add.
7333 configure.in: Check for HAVE_DLADDR
7335 include/config.h.in: Rebuilt.
7337 2000-01-17 Andrew Haley <aph@cygnus.com>
7339 * prims.cc (_Jv_RunMain): Set the name of this executable.
7341 2000-01-17 Tom Tromey <tromey@cygnus.com>
7343 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7344 when backtrace can't be computed.
7346 * configure: Rebuilt.
7347 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7349 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7350 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7351 (_Jv_FindClassInCache): Likewise.
7352 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7353 (findSystemClass): Try to load class from compiled module.
7355 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7356 (loadLibrary): Likewise.
7357 (lt_preloaded_symbols): Define.
7358 (loadLibraryInternal): New method.
7359 * include/config.h.in: Rebuilt.
7360 * acconfig.h (USE_LTDL): Added.
7361 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7362 (INCLUDES): Added $(INCLTDL).
7363 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7364 (libgcj_la_LIBADD): Likewise.
7365 * aclocal.m4, configure: Rebuilt.
7366 * configure.in: Added libltdl support.
7368 2000-01-15 Tom Tromey <tromey@cygnus.com>
7370 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7372 2000-01-14 Andrew Haley <aph@cygnus.com>
7374 * java/lang/natThrowable.cc: New file.
7376 * java/lang/Throwable.java (fillInStackTrace): Make native.
7377 (printStackTrace): Call native method to do this.
7378 (Throwable): Call fillInStackTrace.
7379 (stackTrace): New variable.
7381 * include/jvm.h: Add _Jv_ThisExecutable functions.
7383 * prims.cc: (_Jv_execName): New variable.
7384 (catch_segv): Call fillInStackTrace.
7386 (_Jv_ThisExecutable): New functions.
7387 (JvRunMain): Set the name of this executable.
7389 * Makefile.am: Add java/lang/natThrowable.cc.
7391 * Makefile.in: Rebuilt.
7393 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7395 * configure.in: Force link with __frame_state_for in
7396 FORCELIBGCCSPEC. Add new checks for backtrace.
7397 * include/config.h.in: Rebuilt.
7399 * name-finder.cc: New file.
7400 * include/name-finder.h: New file.
7402 2000-01-16 Anthony Green <green@cygnus.com>
7404 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7407 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7409 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7411 2000-01-13 Tom Tromey <tromey@cygnus.com>
7413 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7414 not system loader, as initiating loader.
7416 2000-01-11 Tom Tromey <tromey@cygnus.com>
7418 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7419 HP/UX. From David Scott Urban.
7421 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7423 * java/lang/natMath.cc (pow): Cast args to `double', not
7426 (IEEEremainder): Likewise.
7427 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7428 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7430 2000-01-09 Anthony Green <green@cygnus.com>
7432 * java/lang/natString.cc (init): Test for overflow condition
7433 during out of bounds check.
7434 (getChars): Throw StringIndexOutOfBoundsException, not
7435 ArrayIndexOutOfBoundsException.
7437 (regionMatches): Obey case option during string comparison.
7439 * configure.host (ligcj_interpreter): New variable. Enable
7440 interpreter by default on IA-32.
7441 * configure.in: Examine libgcj_interpreter.
7442 * configure: Rebuilt.
7444 2000-01-07 Tom Tromey <tromey@cygnus.com>
7446 * mauve-libgcj: Don't disable ClassTest.
7448 * java/lang/natClass.cc (getClasses): Wrote.
7450 2000-01-06 Tom Tromey <tromey@cygnus.com>
7452 * java/lang/natClass.cc (_getConstructors): Correctly check
7453 whether method name is the init name.
7454 (getMethod): Look at accflags on method in `klass', not `this'.
7456 2000-01-05 Tom Tromey <tromey@cygnus.com>
7458 * java/lang/natClass.cc (getMethod): Compute offset relative to
7459 `klass's methods table, not `this's table.
7461 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7462 In unwrapping/widening case, check whether `k' is null, not
7463 whether it is primitive. Initialize `num' from `argelts', not
7464 `paramelts'. Correct create and pass arguments to ffi_call.
7465 Don't let presence of `this' argument affect index used to look in
7467 (COPY): Set appropriate element in `values' vector.
7469 * java/lang/natClass.cc: Include <gcj/method.h>.
7471 * java/lang/Class.h (_getMethods): Correctly declare as private,
7474 * java/lang/Class.h (_getMethods): Declare.
7475 * java/lang/Class.java (_getMethods): Declare.
7476 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7477 (getDeclaredClasses): Always return empty array.
7478 (_getMethods): New method.
7479 (getMethods): Wrote.
7480 (getDeclaredMethod): Return `rmethod'.
7481 (finit_name): New global.
7482 (getDeclaredMethods): Check for finit_name.
7483 (_getMethods): Likewise.
7484 (getMethod): Only return public methods.
7486 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7487 jboolean and select correct ffi type on that basis.
7488 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7489 Constructor call always has `void' return type.
7491 2000-01-04 Tom Tromey <tromey@cygnus.com>
7493 * java/lang/Class.h (getSignature): Updated.
7494 * java/lang/Class.java (getSignature): Updated.
7495 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7497 (getConstructor): Ensure constructor is public.
7498 (_getConstructors): Check for public-ness of constructor when
7499 `declared' is false, not when it is true.
7501 2000-01-04 Warren Levy <warrenl@cygnus.com>
7503 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7505 (receive): Set the sender's address in the DatagramPacket.
7507 2000-01-04 Tom Tromey <tromey@cygnus.com>
7509 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7510 declaring class as return_type argument to
7511 _Jv_CallNonvirtualMethodA.
7512 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7513 constructor case, create object and use it as `this' argument.
7514 * java/lang/Class.h (_getConstructors): Declare.
7515 (_getFields): Declare.
7516 * java/lang/Class.java (getConstructors): Wrote.
7517 (_getConstructors): New native method.
7518 (getDeclaredConstructors): Wrote.
7519 (_getFields): Declare new native method.
7520 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7522 (getMethod): Work correctly when class is primitive.
7523 (getDeclaredMethods): Likewise. Compute offset using `method',
7525 (getDeclaredMethod): Likewise.
7526 (getConstructor): Wrote.
7527 (ConstructorClass): New define.
7528 (getDeclaredConstructor): Wrote.
7529 (_getConstructors): New method.
7530 (_getFields): New method.
7533 * Makefile.in: Rebuilt.
7534 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7536 * prims.cc: Remove `#pragma implementation'.
7537 * gcj/array.h: Remove `#pragma interface'.
7539 * prims.cc (_Jv_equaln): New function.
7540 * java/lang/Class.java (getSignature): Declare.
7541 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7542 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7544 (getSignature): New method.
7545 (getDeclaredMethod): Wrote.
7547 Include StringBuffer.h.
7548 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7549 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7551 (getSignature): Declare.
7552 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7553 (_Jv_equaln): Declare.
7554 (_Jv_CallNonvirtualMethodA): Declare.
7555 * Makefile.in: Rebuilt.
7556 * Makefile.am (nat_source_files): Added natConstructor.cc.
7557 (java/lang/reflect/Constructor.h): New target.
7558 * java/lang/reflect/natConstructor.cc: New file.
7559 * java/lang/reflect/Constructor.java (newInstance): Now native.
7560 (declaringClass): Renamed from decl_class.
7561 (offset): Renamed from index.
7562 (getType): New native method.
7563 (getModifiers): Now native.
7564 (getParameterTypes): Call getType if required.
7565 (hashCode): Include hash code from declaring class.
7566 (modifiers): Removed.
7567 (toString): Call getType if required.
7568 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7569 * java/lang/reflect/natMethod.cc (hack_call): New method.
7570 Removed `#if 0' around FFI code.
7571 Include <gnu/gcj/RawData.h>.
7572 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7573 IllegalArgumentException when argument object and class disagree.
7574 (_Jv_GetTypesFromSignature): New function.
7576 (ObjectClass): New define.
7577 (_Jv_CallNonvirtualMethodA): New function.
7578 * java/lang/reflect/Method.java (hack_trampoline): New method.
7579 (hack_call): New native method.