1 2001-09-06 Anthony Green <green@redhat.com>
3 * include/jvm.h: Declare _Jv_RegisterResource.
4 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
5 gnu/gcj/protocol/core/Connection.java,
6 gnu/gcj/protocol/core/Handler.java,
7 gnu/gcj/protocol/core/CoreInputStream.java,
8 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
9 * java/net/URL.java (setURLStreamHandler): Use
10 gnu.gcj.protocol.core.Handler for the core protocol.
11 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
12 end of java.class.path.
13 * Makefile.am (ordinary_java_source_files): Add new java files.
14 (nat_source_files): Add new native code files.
15 * Makefile.in: Rebuilt.
17 2001-09-05 Tom Tromey <tromey@redhat.com>
19 * java/util/Properties.java: Re-merged from Classpath.
21 From Eric Blake, via Classpath:
22 * java/lang/String.java (CaseInsensitiveComparator): New class.
23 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
25 * java/util/Date.java: Re-merged with Classpath.
27 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
29 2001-09-05 Corey Minyard <minyard@acm.org>
30 Tom Tromey <tromey@redhat.com>
32 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
33 (_Jv_RegisterClassHookDefault): Throw error if a class is
36 2001-09-05 Tom Tromey <tromey@redhat.com>
38 * java/lang/natSystem.cc (init_properties): Default locale is
41 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
43 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
44 here, DecimalFormat.applyPattern() does not throw it.
46 2001-09-04 Tom Tromey <tromey@redhat.com>
48 * java/util/AbstractMap.java: Re-merged with Classpath.
49 * java/util/IdentityHashMap.java: Re-merged with Classpath.
51 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
52 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
53 gnu/gcj/text/LocaleData_en_US.java: Removed.
54 * java/text/DateFormatSymbols.java (clone): Use Classpath
57 (DateFormatSymbols): Look in gnu.java.locale for information.
58 (DateFormatSymbols(DateFormatSymbols)): Removed.
59 (safeGetResource): Removed.
60 (DateFormatSymbols): Throws MissingResourceException.
61 (ampmsDefault, erasDefault, localPatternCharsDefault,
62 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
63 weekdaysDefault, zoneStringsDefault): Removed.
64 * java/text/Collator.java (getAvailableLocales): Use modified
65 Classpath implementation.
66 (getInstance): Look in gnu.java.locale for information.
68 * java/text/MessageFormat.java: Reindented.
70 * java/text/FieldPosition.java: Merged with Classpath.
71 * java/text/ParsePosition.java: Merged with Classpath.
72 * java/text/Format.java: Merged with Classpath.
73 * java/text/StringCharacterIterator.java
74 (StringCharacterIterator(StringCharacterIterator,int,int)): New
75 constructor from Classpath.
76 * java/text/Annotation.java,
77 java/text/AttributedCharacterIterator.java,
78 java/text/AttributedString.java,
79 java/text/AttributedStringIterator.java: New from Classpath.
80 * java/text/CharacterIterator.java: Copied from Classpath.
81 * java/text/ChoiceFormat.java: Reindented.
83 * gnu/java/text/BaseBreakIterator.java,
84 gnu/java/text/CharacterBreakIterator.java,
85 gnu/java/text/LineBreakIterator.java,
86 gnu/java/text/LocaleData_en.java,
87 gnu/java/text/LocaleData_en_US.java,
88 gnu/java/text/SentenceBreakIterator.java,
89 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
90 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
92 * java/text/BreakIterator.java (getAvailableLocales): Use
93 Classpath implementation.
94 (getInstance): Look in gnu.java.locale for information.
95 (getCharacterInstance, getLineInstance, getSentenceInstance,
96 getWordInstance): Look in gnu.java.text for implementations.
97 * java/text/DecimalFormatSymbols.java: Reindented
98 (clone): Use Classpath implementation.
99 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
100 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
102 * java/text/DateFormat.java: Merged with Classpath.
103 (getAvailableLocales): Use Classpath implementation.
104 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
105 (computeInstance): Look in gnu.java.locale for information.
106 * java/text/NumberFormat.java: Reindented.
107 (computeInstance): Look in gnu.java.locale for information.
108 (getAvailableLocales): Use implementation from Classpath.
109 (setMaximumIntegerDigits): Likewise.
110 (setMinimumIntegerDigits): Likewise.
111 (setMaximumFractionDigits): Likewise.
113 * java/text/DecimalFormat.java: Reindented.
114 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
115 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
116 * Makefile.in: Rebuilt.
117 * Makefile.am (ordinary_java_source_files): Added all new files.
118 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
119 * java/security/spec/AlgorithmParameterSpec.java,
120 java/security/spec/KeySpec.java: Re-merged with Classpath.
122 Fix for PR libgcj/4213:
123 * Makefile.am (ordinary_java_source_files): Added new file.
124 * gnu/gcj/text/LocaleData.java: New file.
126 2001-09-03 Tom Tromey <tromey@redhat.com>
128 * java/lang/reflect/natField.cc (set): Allow for case when the
129 value is null. Fixes PR libgcj/4208.
131 * gcj/javaprims.h: Regenerated class list.
132 * java/lang/IllegalThreadStateException.java,
133 java/lang/InstantiationException.java: Minor comment tweaks to
134 satisfy libgcj `classes.pl' script.
136 2001-09-01 Tom Tromey <tromey@redhat.com>
138 * Makefile.in: Rebuilt.
139 * Makefile.am (core_java_source_files): Added
140 UnsupportedClassVersionError.
141 * java/lang/UnsupportedClassVersionError.java: New file from
144 * java/io/CharConversionException.java, java/io/EOFException.java,
145 java/io/FileNotFoundException.java, java/io/IOException.java,
146 java/io/InterruptedIOException.java,
147 java/io/ObjectStreamException.java,
148 java/io/OptionalDataException.java,
149 java/io/StreamCorruptedException.java,
150 java/io/SyncFailedException.java,
151 java/io/UTFDataFormatException.java,
152 java/io/UnsupportedEncodingException.java,
153 java/lang/AbstractMethodError.java,
154 java/lang/ArithmeticException.java,
155 java/lang/ArrayIndexOutOfBoundsException.java,
156 java/lang/ArrayStoreException.java,
157 java/lang/ClassCastException.java,
158 java/lang/ClassCircularityError.java,
159 java/lang/ClassFormatError.java,
160 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
161 java/lang/Exception.java,
162 java/lang/ExceptionInInitializerError.java,
163 java/lang/IllegalAccessError.java,
164 java/lang/IllegalAccessException.java,
165 java/lang/IllegalArgumentException.java,
166 java/lang/IllegalMonitorStateException.java,
167 java/lang/IllegalStateException.java,
168 java/lang/IllegalThreadStateException.java,
169 java/lang/IncompatibleClassChangeError.java,
170 java/lang/IndexOutOfBoundsException.java,
171 java/lang/InstantiationError.java,
172 java/lang/InstantiationException.java,
173 java/lang/InternalError.java, java/lang/InterruptedException.java,
174 java/lang/LinkageError.java,
175 java/lang/NegativeArraySizeException.java,
176 java/lang/NoClassDefFoundError.java,
177 java/lang/NoSuchFieldError.java,
178 java/lang/NoSuchFieldException.java,
179 java/lang/NoSuchMethodError.java,
180 java/lang/NoSuchMethodException.java,
181 java/lang/NullPointerException.java,
182 java/lang/NumberFormatException.java,
183 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
184 java/lang/SecurityException.java,
185 java/lang/StackOverflowError.java,
186 java/lang/StringIndexOutOfBoundsException.java,
187 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
188 java/lang/UnsatisfiedLinkError.java,
189 java/lang/UnsupportedOperationException.java,
190 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
191 java/lang/reflect/InvocationTargetException.java,
192 java/net/BindException.java, java/net/ConnectException.java,
193 java/net/MalformedURLException.java,
194 java/net/NoRouteToHostException.java,
195 java/net/ProtocolException.java, java/net/SocketException.java,
196 java/net/UnknownHostException.java,
197 java/net/UnknownServiceException.java,
198 java/text/ParseException.java: Copied from Classpath, thanks to
199 Mark Wielaard who did the merge.
201 * java/lang/System.java (getProperty): Use single argument form of
202 SecurityManager.checkPropertyAccess.
203 * Makefile.in: Rebuilt.
204 * Makefile.am (core_java_source_files): Added VMSecurityManager.
205 * java/lang/VMSecurityManager.java: New file.
206 * java/lang/SecurityManager.java: Merged with Classpath.
208 2001-08-31 Per Bothner <per@bothner.com>
210 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
211 (_Jv_RegisterClassHookDefault): Likewise.
212 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
213 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
214 (_Jv_RegisterClassHookDefault): New.function.
215 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
217 * java/lang/ClassLoader.java (system): Remove static field.
218 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
219 directly instead of using it to set the system field.
220 (loadClass): Use VMClassLoader.instance instead of system field.
221 (findSystemClass): Similar.
222 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
223 than ClassLoader::system which no longer exists.
224 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
226 2001-08-31 Tom Tromey <tromey@redhat.com>
228 * java/io/BufferedReader.java, java/io/ObjectInput.java,
229 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
230 Re-merged with Classpath.
232 Re-merge with Classpath:
233 * java/util/Comparator (equals): Added.
234 * java/io/PipedWriter.java (write): Changed argument to `int'.
236 * java/io/FileDescriptor.java (FileDescriptor()): New
238 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
240 * Makefile.in: Rebuilt.
241 * Makefile.am (ordinary_java_source_files): Removed
242 EnumerationChain, added DoubleEnumeration.
243 (nat_source_files): Added natResourceBundle.cc.
244 * java/util/natResourceBundle.cc: New file.
245 * gnu/java/util/DoubleEnumeration.java: New file.
246 * gnu/gcj/util/EnumerationChain.java: Removed.
247 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
248 * java/util/ResourceBundle.java: Merged with Classpath.
249 * java/util/StringTokenizer.java: Merged with Classpath.
250 * java/util/Locale.java: Merged with Classpath.
251 * java/util/Random.java: Merged with Classpath.
252 * java/util/PropertyResourceBundle.java: Merged with Classpath.
253 * java/util/ListResourceBundle.java: Merged with Classpath.
254 * java/util/ConcurrentModificationException.java: Re-merged with
256 * java/util/EmptyStackException.java: Likewise.
257 * java/util/MissingResourceException.java: Likewise.
258 * java/util/NoSuchElementException.java: Likewise.
259 * java/util/TooManyListenersException.java: Likewise.
261 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
262 * java/io/OptionalDataException.java: Merged with Classpath.
264 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
266 * exception.cc (PERSONALITY_FUNCTION): Simplify
269 2001-08-31 Tom Tromey <tromey@redhat.com>
271 * java/io/ByteArrayInputStream.java: Merged with Classpath.
273 2001-08-30 Tom Tromey <tromey@redhat.com>
275 * java/io/BufferedReader.java: Re-merged with Classpath.
277 2001-08-28 Per Bothner <per@bothner.com>
279 * java/math/BigInteger.java (init(int,Random)): New method.
280 Move body of constructor <init>(int,Random)) here.
281 Re-write it to avoid constructing unneeded temporaries.
282 (<init>(int,int,Random)): Use new init method to avoid constructing
283 extra temporary BigIntegers.
285 2001-08-27 Tom Tromey <tromey@redhat.com>
287 * java/rmi/activation/Activatable.java,
288 java/rmi/activation/ActivateFailedException.java,
289 java/rmi/activation/ActivationDesc.java,
290 java/rmi/activation/ActivationException.java,
291 java/rmi/activation/ActivationGroup.java,
292 java/rmi/activation/ActivationGroupDesc.java,
293 java/rmi/activation/ActivationGroupID.java,
294 java/rmi/activation/ActivationID.java,
295 java/rmi/activation/ActivationInstantiator.java,
296 java/rmi/activation/ActivationMonitor.java,
297 java/rmi/activation/ActivationSystem.java,
298 java/rmi/activation/Activator.java,
299 java/rmi/activation/UnknownGroupException.java,
300 java/rmi/activation/UnknownObjectException.java,
301 java/rmi/AccessException.java,
302 java/rmi/AlreadyBoundException.java,
303 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
304 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
305 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
306 java/rmi/NotBoundException.java,
307 java/rmi/RMISecurityException.java,
308 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
309 java/rmi/RemoteException.java, java/rmi/ServerError.java,
310 java/rmi/ServerException.java,
311 java/rmi/ServerRuntimeException.java,
312 java/rmi/StubNotFoundException.java,
313 java/rmi/UnexpectedException.java,
314 java/rmi/UnknownHostException.java,
315 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
316 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
317 java/rmi/registry/LocateRegistry.java,
318 java/rmi/registry/Registry.java,
319 java/rmi/registry/RegistryHandler.java,
320 java/rmi/server/ExportException.java,
321 java/rmi/server/LoaderHandler.java,
322 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
323 java/rmi/server/Operation.java,
324 java/rmi/server/RMIClassLoader.java,
325 java/rmi/server/RMIClientSocketFactory.java,
326 java/rmi/server/RMIFailureHandler.java,
327 java/rmi/server/RMIServerSocketFactory.java,
328 java/rmi/server/RMISocketFactory.java,
329 java/rmi/server/RemoteCall.java,
330 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
331 java/rmi/server/RemoteServer.java,
332 java/rmi/server/RemoteStub.java,
333 java/rmi/server/ServerCloneException.java,
334 java/rmi/server/ServerNotActiveException.java,
335 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
336 java/rmi/server/SkeletonMismatchException.java,
337 java/rmi/server/SkeletonNotFoundException.java,
338 java/rmi/server/SocketSecurityException.java,
339 java/rmi/server/UID.java,
340 java/rmi/server/UnicastRemoteObject.java,
341 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
342 gnu/java/rmi/dgc/DGCImpl_Skel.java,
343 gnu/java/rmi/dgc/DGCImpl_Stub.java,
344 gnu/java/rmi/registry/RegistryImpl.java,
345 gnu/java/rmi/registry/RegistryImpl_Skel.java,
346 gnu/java/rmi/registry/RegistryImpl_Stub.java,
347 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
348 gnu/java/rmi/server/ProtocolConstants.java,
349 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
350 gnu/java/rmi/server/RMIHashes.java,
351 gnu/java/rmi/server/RMIObjectInputStream.java,
352 gnu/java/rmi/server/RMIObjectOutputStream.java,
353 gnu/java/rmi/server/UnicastConnection.java,
354 gnu/java/rmi/server/UnicastConnectionManager.java,
355 gnu/java/rmi/server/UnicastRef.java,
356 gnu/java/rmi/server/UnicastRemoteCall.java,
357 gnu/java/rmi/server/UnicastRemoteStub.java,
358 gnu/java/rmi/server/UnicastServer.java,
359 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
360 Kaffe. Relabelled classes to fit into Classpath tree.
361 * Makefile.in: Rebuilt.
362 * Makefile.am (rmi_java_source_files): New macro.
363 (ordinary_java_source_files): Reference it.
364 (bin_PROGRAMS): Added rmic and rmiregistry.
365 (rmic_SOURCES): New macro.
366 (EXTRA_rmic_SOURCES): Likewise.
367 (rmic_LDFLAGS): Likewise.
368 (rmic_LINK): Likewise.
369 (rmic_LDADD): Likewise.
370 (rmic_DEPENDENCIES): Likewise.
371 (rmiregistry_SOURCES): New macro.
372 (EXTRA_rmiregistry_SOURCES): Likewise.
373 (rmiregistry_LDFLAGS): Likewise.
374 (rmiregistry_LINK): Likewise.
375 (rmiregistry_LDADD): Likewise.
376 (rmiregistry_DEPENDENCIES): Likewise.
378 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
380 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
382 * Makefile.am: New friends for java/lang/Thread.h.
383 * prims.cc (runFirst): Removed.
384 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
385 (_Jv_RunMain): Now takes either a klass or class name parameter.
386 Create a gnu.gcj.runtime.FirstThread and attach the native thread
387 to that, then run it using _Jv_ThreadRun. Remove special handling of
388 jar files, instead pass is_jar parameter through to FirstThread.
389 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
390 of _Jv_AttachCurrentThread.
391 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
392 (run): New method. Take care of looking up main class manifest
393 attribute and calling forName if neccessary. Then call call_main.
394 (call_main): New native method.
395 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
396 relocated from prims.cc. Look up and call main method.
397 * java/lang/Thread.java (run_): Removed.
398 * java/lang/natThread.cc (run_): Renamed to...
399 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
400 (_Jv_NotifyThreadStart): here. New function.
401 (countStackFrames, destroy, resume, suspend, stop): Throw
402 UnsupportedOperationExceptions rather than JvFail'ing.
403 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
404 Existing version wraps new variant.
407 2001-08-23 Tom Tromey <tromey@redhat.com>
409 * java/lang/reflect/Field.java (toString): Use
410 Method.appendClassName.
411 * java/lang/reflect/Constructor.java (toString): Use
412 Method.appendClassName.
413 * java/lang/reflect/Method.java: Reindented.
414 (appendClassName): New method.
416 * defineclass.cc (handleMethod ): Initialize `throws' field of
418 (read_one_method_attribute): Handle Exceptions attribute.
419 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
420 (ObjectClass): Removed.
421 (getType): Compute `exception_types'.
422 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
424 2001-08-21 Anthony Green <green@redhat.com>
426 * java/lang/natClassLoader.cc (findClass): Search for
427 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
429 2001-08-21 Jeff Sturm <jsturm@one-point.com>
431 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
434 2001-08-20 Tom Tromey <tromey@redhat.com>
436 * java/awt/GridBagConstraints.java: Removed comment.
438 * jni.cc (nathash, nathash_count, nathash_size): New globals.
439 (DELETED_ENTRY): New define.
440 (hash): New function.
441 (nathash_find_slot): Likewise.
442 (natrehash): Likewise.
443 (nathash_add): Likewise.
444 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
446 (nathash_find): New function.
447 (_Jv_LookupJNIMethod): Use it. Synchronize body.
448 (call): Synchronize around assignment.
450 2001-08-17 Jeff Sturm <jsturm@one-point.com>
452 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
453 starting from zero offset.
455 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
457 * boehm.cc: Include gc_local_alloc.h if appropriate.
458 (GC_GENERIC_MALLOC): Don't define.
459 (MAYBE_MARK): Redefine for GC 6.0.
460 (_Jv_MarkObj): Mark class differently.
461 (_Jv_AllocArray): Use GC_generic_malloc.
463 2001-08-17 Mark J Roberts <mjr@anarcast.net>
465 * java/math/BigInteger.java (randBytes): New method.
466 (BigInteger(int,Random)): Use randBytes.
468 2001-08-17 Tom Tromey <tromey@redhat.com>
470 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
472 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
474 * BigInteger.java: fix right shifts by nonzero multiples of 32.
476 2001-08-15 Tom Tromey <tromey@redhat.com>
478 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
479 (local_ref_table, global_ref_table): Now IdentityHashMap.
480 (_Jv_JNI_Init): Updated for new types.
481 (mark_for_gc): Likewise.
482 (unmark_for_gc): Likewise.
483 * gcj/javaprims.h: Rebuilt class list.
484 * Makefile.in: Rebuilt.
485 * Makefile.am (core_java_source_files): Added new file.
486 * java/util/IdentityHashMap.java: New file.
488 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
491 2001-08-09 Tom Tromey <tromey@redhat.com>
493 * java/awt/image/SampleModel.java (getPixel): Set correct array
494 element. From Chris Meyer.
496 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
498 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
499 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
501 2001-08-06 Tom Tromey <tromey@redhat.com>
503 * java/io/InputStreamReader.java (refill): Only call refill on
504 BufferedInputStream when appropriate constraints are met.
506 2001-08-05 Tom Tromey <tromey@redhat.com>
508 * java/io/StringWriter.java: Merged with Classpath.
509 * java/io/InputStream.java: Merged with Classpath.
510 * java/io/OutputStream.java: Merged with Classpath.
511 * java/io/PushbackInputStream.java: Merged with Classpath.
512 * java/io/CharArrayReader.java: Merged with Classpath.
513 * java/io/CharArrayWriter.java: Merged with Classpath.
515 2001-08-02 Tom Tromey <tromey@redhat.com>
517 * prims.cc (JNI_OnLoad): Don't declare.
518 (_JNI_OnLoad): Don't define.
519 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
521 2001-08-02 Tom Tromey <tromey@redhat.com>
523 * java/io/RandomAccessFile.java (seek): Let seek go past end of
525 (skipBytes): Don't fail if seeking past end of file.
526 * java/io/FileInputStream.java (skip): Don't fail if seeking past
528 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
530 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
532 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
534 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
536 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
538 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
539 to initialize global_ref_table/local_ref_table.
541 2001-08-02 Tom Tromey <tromey@redhat.com>
543 * configure: Rebuilt.
544 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
547 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
549 * include/posix.h (_POSIX_PII_SOCKET): Define.
550 * configure.in (HAVE_SOCKLEN_T): Define.
551 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
553 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
554 (java::net::PlainSocketImpl::accept): Use it.
555 Fixes PRs libgcj/3694, libgcj/3696.
557 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
558 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
559 * configure, include/config.h.in: Regenerate.
560 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
561 (mcastGrp): Likewise.
562 (java::net::PlainDatagramSocketImpl::setOption): Guard against
563 missing IPV6_MULTICAST_IF.
564 Fixes PR libgcj/3694.
566 2001-08-01 Jeff Sturm <jsturm@one-point.com>
568 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
570 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
572 * Makefile.in: Rebuilt.
573 * Makefile.am (GCJLINK): Added --tag=GCJ.
576 2001-07-30 Tom Tromey <tromey@redhat.com>
578 * java/util/Date.java: Re-merged with Classpath.
580 2001-07-30 Jeff Sturm <jsturm@one-point.com>
582 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
583 (_Jv_bind): New static function.
584 (bind): Use _Jv_bind.
585 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
586 (_Jv_bind, _Jv_connect): New static functions.
587 (bind): Use _Jv_bind.
588 (connect): Use _Jv_connect.
590 2001-07-30 Tom Tromey <tromey@redhat.com>
591 Corey Minyard <minyard@acm.org>
593 * gnu/gcj/convert/natIconv.cc (done): New methods.
594 * gnu/gcj/convert/Output_iconv.java (done): New method.
595 * gnu/gcj/convert/Input_iconv.java (done): New method.
596 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
598 (getDefaultEncodingClass): Removed.
599 (getDefaultEncoder): Use getEncoder.
601 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
603 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
605 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
607 (getDefaultDecodingClass): Removed.
608 (getDefaultDecoder): Use getDecoder.
609 (getDecoder): Look up decoder in cache.
611 * java/lang/natString.cc (init): Call `done' on converter.
612 (getBytes): Likewise.
614 2001-07-30 Tom Tromey <tromey@redhat.com>
616 * java/lang/Integer.java: Merged with Classpath.
618 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
620 * java/util/GregorianCalendar.java (GregorianCalendar): Call
621 setTimeInMillis() to set the default/current time.
623 2001-07-29 Mark Wielaard <mark@klomp.org>
625 * HACKING: add description on updating namespace
627 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
629 * java/util/Calendar.java (set): Never recompute fields here. They
630 will already be set if someone set time explicitly, and it can cause
631 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
632 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
633 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
635 * java/text/SimpleDateFormat.java (defaultCentury): New field.
636 (readObject): Call set2DigitYearStart if appropriate so that
637 defaultCentury is calculated.
638 (SimpleDateFormat): Don't bother clearing calendar here. Call
639 computeCenturyStart().
640 (set2DigitYearStart): Calculate and set defaultCentury.
641 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
643 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
644 2 numeric digits, use the 80-20 heuristic to parse the value into a
645 default century based on defaultCenturyStart.
646 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
648 2001-07-25 Tom Tromey <tromey@redhat.com>
650 * Makefile.in: Rebuilt.
651 * Makefile.am (libgcj.jar): Correctly fail when bytecode
654 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
656 * prims.cc (_JNI_OnLoad): New function.
657 (JNI_OnLoad): Use it.
658 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
660 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
662 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
663 Makefile.in: Regenerate.
665 2001-07-24 Tom Tromey <tromey@redhat.com>
667 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
670 2001-07-23 Tom Tromey <tromey@redhat.com>
672 * gcj/javaprims.h: Rebuilt class list.
673 * Makefile.in: Rebuilt.
674 * Makefile.am (core_java_source_files): Added VMClassLoader.
675 * java/lang/VMClassLoader.java: New file.
676 * java/lang/Boolean.java: Merged with Classpath.
677 * java/lang/Byte.java: Merged with Classpath.
678 * java/lang/Integer.java: Merged with Classpath.
679 * java/lang/Long.java: Merged with Classpath.
680 * java/lang/Number.java: Merged with Classpath.
681 * java/lang/Short.java: Merged with Classpath.
683 2001-07-22 Jeff Sturm <jsturm@one-point.com>
685 * configure.host: Enable hash synchronization for alpha*-*.
686 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
688 * java/lang/natObject.cc (compare_and_swap, release_set,
689 compare_and_swap_release): Added inline functions for alpha.
691 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
693 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
694 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
695 back to old RFC 2133 variants if missing.
697 2001-07-18 Tom Tromey <tromey@redhat.com>
699 * java/io/natFileWin32.cc (_access): Renamed.
701 * java/io/natFile.cc (_access): Renamed.
703 * java/io/File.java (access, stat): Add leading `_' to name.
706 2001-07-18 Tom Tromey <tromey@redhat.com>
709 * libgcj.spec.in (*lib): Added LIBICONV.
710 * configure: Rebuilt.
711 * configure.in: Call AM_ICONV. Don't check for iconv function.
712 Add parameters to JV_HASH_SYNCHRONIZATION define.
713 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
715 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
717 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
718 not by setting its size field.
720 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
722 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
725 2001-07-12 Tom Tromey <tromey@redhat.com>
726 David Brownell <david-b@pacbell.net>
728 Fix for PR libgcj/3426:
729 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
731 (read): Throw exception if character conversion fails.
732 * java/io/BufferedInputStream.java (refill): Now package-private.
733 * java/io/InputStreamReader.java (ready): Simplified.
734 (refill): New method.
737 2001-07-12 Tom Tromey <tromey@redhat.com>
739 Report from Henner Zeller:
740 * java/io/FileOutputStream.java (FileOutputStream): Throw
741 FileNotFoundException, not IOException.
743 2001-07-10 Anthony Green <green@redhat.com>
745 * Makefile.in: Rebuilt.
746 * Makefile.am: Add new files.
747 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
748 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
749 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
750 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
751 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
752 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
753 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
754 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
755 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
756 org/w3c/dom/ranges/DocumentRange.java,
757 org/w3c/dom/ranges/Range.java,
758 org/w3c/dom/ranges/RangeException.java,
759 org/w3c/dom/traversal/DocumentTraversal.java,
760 org/w3c/dom/traversal/NodeFilter.java,
761 org/w3c/dom/traversal/NodeIterator.java,
762 org/w3c/dom/traversal/TreeWalker.java,
763 org/xml/sax/ext/DeclHandler.java,
764 org/xml/sax/ext/LexicalHandler.java,
765 org/xml/sax/helpers/AttributeListImpl.java,
766 org/xml/sax/helpers/AttributesImpl.java,
767 org/xml/sax/helpers/DefaultHandler.java,
768 org/xml/sax/helpers/LocatorImpl.java,
769 org/xml/sax/helpers/NamespaceSupport.java,
770 org/xml/sax/helpers/ParserAdapter.java,
771 org/xml/sax/helpers/ParserFactory.java,
772 org/xml/sax/helpers/XMLFilterImpl.java,
773 org/xml/sax/helpers/XMLReaderAdapter.java,
774 org/xml/sax/helpers/XMLReaderFactory.java,
775 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
776 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
777 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
778 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
779 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
780 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
781 org/xml/sax/SAXNotRecognizedException.java,
782 org/xml/sax/SAXNotSupportedException.java,
783 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
784 org/xml/sax/XMLReader.java: New files.
786 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
788 * Makefile.am: Added `java/lang/ThreadLocal.java'.
789 * Makefile.in: Regenerate.
790 * java/lang/ThreadLocal.java: Initial import.
792 2001-07-07 Jeff Sturm <jsturm@one-point.com>
794 * Makefile.am (libgcj.jar): Don't recursively make
795 built_java_source_files. Avoid long command lines.
796 Don't change to $(srcdir) to invoke javac.
797 (libgcj.la, libgcjx.la); Avoid long command lines.
798 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
799 * Makefile.in: Rebuilt.
801 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
803 * include/i386-signal.h: Don't do anything with unsigned divide
804 overflow except throw an exception.
806 2001-07-05 Tom Tromey <tromey@redhat.com>
809 * java/lang/Class.h (Class(void)): Now private. Removed
810 implementation. From dmorsberger@sensysdl.com.
812 2001-07-02 Tom Tromey <tromey@redhat.com>
814 Fix for PR bootstrap/3281:
815 * aclocal.m4, configure: Rebuilt.
816 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
817 Correctly compute libgcj_basedir.
818 (mkinstalldirs): Define and subst.
820 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
823 * java/io/LineNumberReader.java (reset): Pass correct arguments to
826 2001-06-27 Tom Tromey <tromey@redhat.com>
828 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
831 2001-06-25 Tom Tromey <tromey@redhat.com>
833 * scripts/encodings.pl: Generate lower-case names. Updated URL
834 for `character-sets' file.
835 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
837 Rebuilt list of aliases.
839 2001-06-25 Tom Tromey <tromey@redhat.com>
841 * java/io/natFileDescriptorPosix.cc (open): Change error message
842 formatting. From David Brownell.
844 2001-06-21 Tom Tromey <tromey@redhat.com>
846 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
849 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
851 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
852 extraneous/malformed sign word.
854 2001-06-15 Tom Tromey <tromey@redhat.com>
856 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
858 2001-06-15 Tom Tromey <tromey@redhat.com>
860 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
861 NULL if no library on the list has the symbol.
862 (init): Call add_library on the program itself.
863 * prims.cc (JvRunMain): Initialize Runtime before searching for
865 (_Jv_RunMain): Likewise.
867 2001-06-15 Tom Tromey <tromey@redhat.com>
869 * jni.cc (ClassClass): Removed; updated all users.
870 (ObjectClass): Likewise.
871 (ThrowableClass): Likewise.
872 (MethodClass): Likewise.
873 (ThreadGroupClass): Likewise.
874 (local_ref_table): Renamed from `ref_table'.
875 (global_ref_table): New global.
876 (_Jv_JNI_Init): Initialize both ref tables.
877 (mark_for_gc): Added `ref_table' parameter.
878 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
880 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
881 (_Jv_JNI_DeleteGlobalRef): Likewise.
882 (_Jv_JNI_DeleteLocalRef): Likewise.
883 (_Jv_JNI_NewLocalRef): Likewise.
884 (_Jv_JNI_PopLocalFrame): Likewise.
885 (_Jv_JNI_GetStringChars): Likewise.
886 (_Jv_JNI_ReleaseStringChars): Likewise.
887 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
888 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
890 2001-06-14 Tom Tromey <tromey@redhat.com>
892 Fix for PR libgcj/3144:
893 * java/util/Date.java: Merged with Classpath.
895 2001-06-12 Tom Tromey <tromey@redhat.com>
897 * aclocal.m4, configure: Rebuilt.
898 * acinclude.m4: Find configure.host in srcdir.
900 2001-06-07 Tom Tromey <tromey@redhat.com>
902 Fix for PR libgcj/3059:
903 * java/lang/natSystem.cc (init_properties): Define `java.home'.
904 * Makefile.in: Rebuilt.
905 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
907 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
909 * exception.cc (cstdlib): Replaces stdlib.h.
910 (_Jv_Throw): Use std::abort().
911 (PERSONALITY_FUNCTION): Likewise.
913 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
915 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
916 nothing, as in autoconf 2.50.
917 * aclocal.m4, configure: Rebuilt.
919 2001-06-08 Tom Tromey <tromey@redhat.com>
921 * configure: Rebuilt.
922 * configure.in: Compute new aux dir using `pwd'.
924 2001-06-07 Tom Tromey <tromey@redhat.com>
926 For PR bootstrap/3075:
927 * configure, aclocal.m4, Makefile.am: Rebuilt.
928 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
929 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
930 relative to libgcj_basedir.
931 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
932 AC_CANONICAL_SYSTEM here.
933 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
935 ($(extra_headers)): New target.
937 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
938 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
940 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
941 table index is within allowed bounds. Ensure that we dont try to access
942 class itable at a negative offset. Avoid an ancestor table lookup if
943 source is a primitive type class.
944 (isInstance): Remove redundant isPrimitive() check.
946 2001-06-04 Tom Tromey <tromey@redhat.com>
948 * java/security/PublicKey.java: Extend Key.
949 * java/security/PrivateKey.java: Extend Key.
951 2001-06-02 Anthony Green <green@redhat.com>
953 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
954 alternate when USE_LTDL not defined.
956 2001-06-02 Anthony Green <green@redhat.com>
958 * configure: Rebuild.
959 * configure.in: Remove data_start hack.
960 * libgcj.spec.in: Ditto.
961 * Makefile.in: Rebuild.
962 * Makefile.am: Ditto.
963 * libgcjdata.c: Remove.
965 2001-06-02 Anthony Green <green@redhat.com>
967 * configure: Rebuild.
968 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
969 --without-libffi option. Tweak --disable-java-net processing.
970 * Makefile.in: Rebuild.
971 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
972 * include/config.h.in: Rebuild.
973 * acconfig.h (USE_LIBFFI): Define.
974 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
976 2001-06-02 Anthony Green <green@redhat.com>
978 * configure: Rebuilt.
979 * configure.in: Test for sigaction on native builds.
980 * prims.cc: Check HAVE_SIGACTION.
981 * include/config.h.in: Rebuilt.
983 2001-05-31 Jeff Sturm <jsturm@one-point.com>
985 * natFile.cc (get_entry): Removed functions.
986 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
987 Allocate enough storage for d_name if using readdir_r.
989 2001-05-31 Tom Tromey <tromey@redhat.com>
991 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
993 (write): Loop until write completes. From Corey Minyard.
995 2001-05-29 Laurent Guerby <guerby@acm.org>
997 * java/awt/geom/Rectangle2D.java: fix doc typo.
999 2001-05-31 Tom Tromey <tromey@redhat.com>
1001 * java/sql/DriverManager.java (getDrivers): Handle case where
1002 driver's class loader is null. From Corey Minyard.
1004 2001-05-29 Tom Tromey <tromey@redhat.com>
1006 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1008 * configure: Rebuilt.
1009 * configure.in: Only add multilib support code if we just rebuilt
1012 2001-05-29 Andrew Haley <aph@redhat.com>
1014 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1015 pointer: the dwarf unwinder in libgcc will do everything that's
1017 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1018 more than we absolutely need to.
1019 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1020 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1022 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1024 * configure: Rebuilt.
1025 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1027 (SIGNAL_HANDLER): Use siginfo style handler.
1028 (INIT_SEGV): Likewise.
1029 (INIT_FPE): Likewise.
1030 * include/ppc-signal.h: Delete whole file.
1032 2001-05-24 Tom Tromey <tromey@redhat.com>
1034 * java/lang/natString.cc (init): Throw
1035 ArrayIndexOutOfBoundsException.
1036 (getChars): Likewise.
1037 (getBytes): Likewise.
1038 (valueOf): Likewise.
1040 * configure.in: Only allow hash synchronization when POSIX threads
1042 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1043 of sync info object.
1045 2001-05-23 Tom Tromey <tromey@redhat.com>
1047 * Makefile.in: Rebuilt.
1048 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1050 Revert patch of 2001-05-21:
1051 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1052 (libgcj_la_LIBADD): Likewise.
1053 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1054 (libgcjx_la_LIBADD): Likewise.
1056 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1057 * gcj/Makefile.in: Rebuilt.
1058 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1059 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1060 * gcj/libgcj-config.h.in: New file.
1061 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1062 * configure: Rebuilt.
1063 * configure.in: Enable hash synchronization by default on some
1065 (HASH_SYNC_SPEC): New subst.
1066 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1067 Correctly use `test -z' instead of `test -n' in a couple places.
1068 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1070 * configure.host (enable_java_net_default): Initialize.
1071 (enable_hash_synchronization_default): New variable.
1073 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1075 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1076 synchronization in use.
1077 (_Jv_MarkArray): Likewise.
1078 (_Jv_AllocBytes): Don't check return result.
1079 (handle_out_of_memory): New function.
1080 (_Jv_InitGC): Set GC_oom_fn.
1081 (trace_one_vtable): New global.
1082 (_Jv_AllocTraceOne): New function.
1083 * configure.in: Added --enable-hash-synchronization.
1084 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1085 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1086 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1087 (_Jv_AllocArray): Likewise.
1088 (_Jv_AllocBytes): Likewise.
1089 (_Jv_AllocPtrFreeObject): New function.
1090 (_Jv_AllocTraceOne): Likewise.
1091 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1093 (self_cache): New global.
1094 (_Jv_ThreadSelf_out_of_line): New function.
1095 * prims.cc (_Jv_AllocBytesChecked): Removed.
1096 (_Jv_ThrowNoMemory): New function.
1097 (_Jv_AllocObject): Don't check for null return from allocator.
1098 (_Jv_NewObjectArray): Likewise.
1099 (_Jv_AllocPtrFreeObject): New function.
1100 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1101 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1102 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1103 * include/boehm-gc.h (_Jv_AllocObj): Define.
1104 (_Jv_AllocPtrFreeObj): Define.
1105 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1106 (_Jv_ThrowNoMemory): Declare.
1107 (_Jv_AllocTraceOne): Declare.
1108 (_Jv_AllocBytesChecked): Removed.
1109 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1110 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1111 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1113 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1115 * java/lang/Object.h (sync_info): Conditional upon presence of
1116 hash synchronization.
1117 * java/lang/natObject.cc: Much new code to handle thin locks and
1118 hash synchronization.
1119 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1122 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1124 * gij.cc (version): Update copyright year.
1126 2001-05-22 Anthony Green <green@redhat.com>
1128 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1131 2001-05-21 Per Bothner <per@bothner.com>
1133 Implement invocation interface; don't create new thread for main.
1134 * java/lang/Thread.java (gen_name): Make native.
1135 (<init>(Thread,THreadGroup,Runnable,String)): New private
1136 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1137 * java/lang/natThread.cc (gen_name): New implementation.
1138 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1139 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1140 (_Jv_CreateJavaVM): New runtime initialization procedure.
1141 (runFirst): New proecdure - mostly code from old FirstThread::run.
1142 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1143 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1144 JvDetachCurrentThread): New inline wrappers.
1145 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1146 _Jv_DetachCurrentThread): New declarations.
1147 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1148 (getMain): new static method.
1149 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1150 by runFirst in prims.cc.
1151 (java/lang/Thread.h): Update for new invocation interface.
1152 * include/posix-threads.h (_Jv_ThreadRegister,
1153 _Jv_ThreadUnRegister): New declarations.
1154 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1155 (really_start): Use new _Jv_ThreadRegister.
1156 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1157 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1158 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1159 Complain of called when _Jv_OnlyThread already set.
1160 (_Jv_ThreadStart): Always JvFail.
1161 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1162 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1163 * win32-threads.cc (struct starter): Remove objet field -
1164 we use _Jv_Thread_t's new thread_obj field instead.
1165 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1166 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1167 (really_start): Use new _Jv_ThreadRegister.
1168 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1169 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1170 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1171 Removed - no longer needed with new invocation interface.
1172 * Makefile.am: Update for removed/added files.
1174 2001-05-21 Per Bothner <per@bothner.com>
1176 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1177 (libgcj_la_LIBADD): Likewise.
1178 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1180 2001-05-21 Per Bothner <per@bothner.com>
1182 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1183 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1184 taken from old Integer.toString code.
1185 (Integer::valueOf): Use _Jv_FormatInt.
1186 * java/lang/Integer.java (toString): Just use call String.valueOf.
1187 * java/lang/Long.java (toString): Fix typo in comment.
1188 * java/lang/String.java (valueOf(int)): Make native.
1189 * java/lang/StringBuffer.java (append(int)): Make native.
1190 * java/lang/natStringBuffer.cc: New file, for append(jint).
1191 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1193 2001-05-21 Tom Tromey <tromey@redhat.com>
1195 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1197 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1199 * include/dwarf2-signal.h: New file.
1200 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1201 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1202 * configure: Rebuilt.
1204 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1206 * configure.in: Update boehm-gc include dir for new GC version.
1207 * configure: Rebuilt.
1208 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1210 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1211 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1212 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1215 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1217 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1218 (_Jv_MutexInit): Likewise.
1220 2001-05-18 Tom Tromey <tromey@redhat.com>
1222 * Makefile.in: Rebuilt.
1223 * Makefile.am (awt_java_source_files): Added Polygon.java.
1225 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1227 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1228 * gcj/javaprims.h: ... here.
1229 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1231 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1233 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1234 with length of ioffset table.
1235 (_Jv_IsAssignableFrom): Likewise.
1237 2001-05-17 Per Bothner <per@bothner.com>
1239 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1241 2001-05-16 Tom Tromey <tromey@redhat.com>
1243 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1246 2001-05-15 Tom Tromey <tromey@redhat.com>
1248 * java/util/GregorianCalendar.java (computeTime): Only call
1251 2001-05-14 Tom Tromey <tromey@redhat.com>
1253 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1254 ZONE_OFFSET just before computing the time.
1256 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1258 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1259 * Makefile.in: Regenerate (by hand).
1260 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1261 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1263 2001-05-11 Richard Henderson <rth@redhat.com>
1265 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1266 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1268 2001-05-11 Richard Henderson <rth@redhat.com>
1270 * exception.cc: Include unwind-pe.h. Remove all pointer
1273 2001-05-10 Tom Tromey <tromey@redhat.com>
1275 * Makefile.in: Rebuilt.
1276 * Makefile.am (awt_java_source_files): Added Polygon.java.
1277 * java/awt/Polygon.java: New file.
1279 * java/awt/geom/AffineTransform.java
1280 (setToRotation(double,double,double)): New method.
1281 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1282 (setToShear): Likewise.
1284 2001-05-10 Tom Tromey <tromey@redhat.com>
1286 * java/util/GregorianCalendar.java: Imported from Classpath.
1287 * gnu/java/locale/LocaleInformation_nl.java: New file from
1289 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1290 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1291 * gnu/java/locale/LocaleInformation.java: Likewise.
1292 * natGregorianCalendar.cc: Removed.
1293 * Makefile.in: Rebuilt.
1294 * Makefile.am (nat_source_files): Removed
1295 natGregorianCalendar.cc.
1297 2001-05-10 Tom Tromey <tromey@redhat.com>
1299 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1301 (defaultCenturyStart): Use it.
1302 (readObject): Likewise.
1303 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1305 (parse): Copy the calendar before modifying it. Correctly handle
1308 * java/util/Calendar.java (clear): Set field value(s) to 0.
1310 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1312 * Calendar.java (get): Clear areFieldsSet if requested field
1314 (set): Unset fields that depend on new value.
1316 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1318 * java/lang/Class.h (_Jv_Self): New union type.
1319 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1320 Jeff Sturm and Fergus Henderson.
1322 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1324 * java/lang/ClassLoader.java: Remove dead code fragment.
1326 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1328 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1330 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1332 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1334 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1335 * configure.host (EXCEPTIONSPEC): New.
1336 * configure.in (EXCEPTIONSPEC): New.
1337 * configure: Rebuilt.
1339 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1341 * doc/*.texi: Remove generated documentation.
1343 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1345 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1346 (performDelete): Fix #endif placement.
1348 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1350 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1351 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1352 (_Jv_ThreadDestroyData): Use _Jv_Free.
1353 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1356 2001-04-27 Tom Tromey <tromey@redhat.com>
1358 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1360 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1362 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1364 * include/jni.h (struct JNINativeInterface): Fixed types in
1365 Get/Set*ArrayRegion declarations.
1366 (class _Jv_JNIEnv): Likewise.
1368 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1370 * configure.in: Obtain THREADS with `gcc -v'.
1371 * configure: Rebuilt.
1373 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1376 * java/io/ObjectStreamClass.java (setClass): Calculate
1377 serialVersionUID for local class and compare it against the UID
1378 from the Object Stream. Throw InvalidClassException upon mismatch.
1379 (setUID): Renamed to...
1380 (getClassUID): this. Return the calculated class UID rather than
1381 setting uid field directly.
1382 (getDefinedSUID): Removed.
1383 * java/io/ObjectInputStream.java (resolveClass): Use the
1384 three-argument Class.forName().
1385 * java/io/InvalidClassException (toString): Don't include classname in
1386 result if it is null.
1388 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1390 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1391 Wrap use of inet_pton in HAVE_INET6.
1393 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1395 java.security merge and ClassLoader compliance fixes.
1397 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1398 New protectionDomain field.
1399 (forName): Add initialize parameter. Fixes declaration to comply with
1401 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1402 variant. Honour "initialize" flag.
1403 (getProtectionDomain0): New method.
1404 * java/lang/Class.java: Fix forName() declaration.
1405 (getPackage): New method based on Classpath implementation.
1406 (getProtectionDomain0): New native method decl.
1407 (getProtectionDomain): New method.
1408 * java/lang/ClassLoader.java (getParent): Now final.
1409 (definedPackages): New field.
1411 (defineClass): New variant with protectionDomain argument.
1412 (definePackage): New.
1414 (findSystemClass): Now final.
1415 (getSystemResourceAsStream): Remove redundant "final" modifier.
1416 (getSystemResource): Remove redundant "final" modifier.
1417 (getResources): Now final.
1418 (protectionDomainPermission): New static field.
1419 (unknownProtectionDomain): Ditto.
1420 (defaultProtectionDomain): Ditto.
1421 (getSystemClassLoader): Now non-native.
1422 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1423 arguments for Class.forName().
1424 * java/lang/Package.java: New file.
1425 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1426 (instance): Static initialize singleton.
1427 (findClass): Override this, not findSystemClass.
1428 * java/lang/natClassLoader.cc (defineClass0): Set class's
1429 protectionDomain field as specified.
1430 (getSystemClassLoader): Removed.
1431 (findClass): Renamed from findSystemClass. Call the interpreter via
1432 URLClassLoader.findClass if loading class via dlopen fails.
1434 * java/security/*.java: java.security import/merge with Classpath.
1435 * java/security/acl/*.java: Likewise.
1436 * java/security/interfaces/*.java: Likewise.
1437 * java/security/spec/*.java: Likewise.
1438 * java/net/NetPermission.java: Likewise.
1439 * java/net/SocketPermission.java: Likewise.
1440 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1442 * Makefile.am: Add new classes.
1443 * Makefile.in: Rebuilt.
1444 * gcj/javaprims.h: CNI namespace rebuild.
1446 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1448 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1449 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1450 * configure: Rebuilt.
1452 2001-04-21 Tom Tromey <tromey@redhat.com>
1454 * Makefile.in: Rebuilt.
1455 * Makefile.am (awt_java_source_files): Added Line2D.java.
1456 * java/awt/geom/Line2D.java: Wrote.
1458 * java/awt/Menu.java (addNotify): Wrote.
1460 * java/awt/PopupMenu.java (addNotify): Implemented.
1463 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1464 * java/awt/List.java (addNotify): Call super.addNotify.
1465 * java/awt/Label.java (addNotify): Call super.addNotify.
1466 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1467 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1468 * java/awt/Choice.java (addNotify): Call super.addNotify.
1469 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1470 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1472 * java/awt/List.java (replaceItem): Notify peer.
1474 * java/awt/geom/Rectangle2D.java
1475 (Float.setRect(float,float,float,float)): New method.
1477 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1480 * java/awt/RenderingHints.java (Key): Class now public.
1482 * java/awt/Rectangle.java (Rectangle): Now implements
1484 (getPathIterator): Removed.
1486 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1489 * java/awt/FileDialog.java: Wrote.
1491 * java/awt/EventQueue.java (isDispatchThread): Now public.
1492 (invokeLater): Likewise.
1494 * java/awt/Component.java (setCursor): Update peer.
1495 (getFontMetrics): Use peer.
1497 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1500 2001-04-20 Tom Tromey <tromey@redhat.com>
1502 * java/awt/List.java: Wrote.
1503 * java/awt/Dialog.java: Wrote.
1505 2001-04-20 Warren Levy <warrenl@redhat.com>
1507 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1508 * java/text/SimpleDateFormat.java
1509 (indexInArray): Removed private method.
1510 (processYear): Removed private method.
1511 (parseLenient): Removed private method.
1512 (parseLeadingZeros): Removed private method.
1513 (parseStrict): Removed private method.
1514 (expect): Added new private method.
1515 (parse): Reverted to pre-Classpath merge version with minor fixes.
1516 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1519 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1521 * java/io/File.java (normalizePath): New private method.
1522 (File (String)): Use normalizePath().
1523 (File (String, String)): Likewise.
1525 * Makefile.am (libffi_files): Removed.
1526 (libgcj.la): Link libffi as a convenience library instead of
1527 refering to its object files directly.
1528 * Makefile.in: Rebuilt.
1530 2001-04-08 Per Bothner <per@bothner.com>
1532 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1533 Recalculate hash, since Utf8Const's hash is only 16 bits.
1535 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1536 bits of hash to calculate step for chaining.
1538 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1539 when 2/3 full, rather than 3/4 full.
1541 2001-04-06 Tom Tromey <tromey@redhat.com>
1543 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1544 (wrap_value<T*>): New specialization.
1545 (_Jv_JNI_PopLocalFrame): Update env->locals.
1547 2001-04-05 Tom Tromey <tromey@redhat.com>
1549 * libtool-version: Updated current.
1551 2001-04-04 Andreas Jaeger <aj@suse.de>
1553 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1554 * gcj/Makefile.in: Rebuilt.
1555 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1556 * Makefile.in: Rebuilt.
1557 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1558 * testsuite/Makefile.in: Rebuild.
1559 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1560 * include/Makefile.in: Rebuild.
1562 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1564 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1565 compiled test', not 'execution from source compiled test'.
1566 Use UNTESTED, not XFAIL, for tests which are not run because
1567 they depend on a previous test which failed.
1569 2001-04-02 Richard Henderson <rth@redhat.com>
1571 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1572 the same tree as gcc.
1573 * configure: Rebuilt.
1575 * exception.cc (_Jv_Throw): Clarify commentary.
1577 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1579 * jni.cc (wrap_value<jclass>): New specialization.
1581 2001-04-02 Tom Tromey <tromey@redhat.com>
1583 * java/io/PrintStream.java (out): Removed field. Fixes PR
1585 (write): Call flush, not out.flush, per spec.
1586 (close): Flush output stream, per spec. Handle
1587 InterruptedIOException.
1588 (checkError): Likewise.
1589 (flush, print, write): Handle InterruptedIOException per spec.
1590 (PrintStream): Don't create BufferedOutputStream.
1591 (work_bytes): New field.
1592 (writeChars): Use work_bytes. Don't assume `out' is a
1593 BufferedOutputStream.
1595 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1597 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1600 2001-03-30 Tom Tromey <tromey@redhat.com>
1602 * jni.cc (add_char): Correctly encode non-ascii characters.
1603 (add_char): Define even when INTERPRETER not defined.
1604 (mangled_name): Likewise.
1605 (_Jv_GetJNIEnvNewFrame): Likewise.
1606 (_Jv_LookupJNIMethod): Likewise.
1608 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1610 * configure.host: Enable interpreter for PPC.
1612 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1614 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1615 to "file.separator", "path.separator", and "java.io.tmpdir" property
1617 * java/io/File.java: Likewise.
1618 * java/io/natFile.cc (init_native): Likewise.
1619 * java/io/natFileWin32.cc (init_native): Likewise.
1621 2001-04-01 Per Bothner <per@bothner.com>
1623 * java/lang/natString.cc (intern): If string's data does not point to
1624 this String, make a fresh String that does.
1626 * java/lang/natString.cc (unintern): Replace by static function.
1627 * java/lang/String.java (unintern): Remove method.
1629 2001-04-01 Per Bothner <per@bothner.com>
1631 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1632 (finish): def.deflate needs to be called in a loop.
1633 (inbuf, inbufLength): New private fields.
1634 (write(int)): Use inbuf.
1635 (write(byte[],int,int): Check if pending output in inbuf.
1636 * ZipOutputStream.java: Don't use Deflater if stored.
1637 Use a Checksum object directly, not via a CheckedOutputStream.
1638 (uncompressed_size): New field,
1639 (closeEntry): Only write data_directory if needed.
1640 (write): If STORED, write directly.
1641 Always update crc, and uncompressed_size.
1642 (write_entry): Fix lots of protocol erors.
1644 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1646 1.3-Compliant Implementation of java.io.File.
1647 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1648 "path.separator", and "java.io.tmpdir" from the File class, instead
1649 of setting them explicitly.
1650 * java/io/File.java: Do not canonicalize paths for security manager
1651 checks. Call init_native() from static initializer. Do not pass path
1652 argument to native methods. New native method declarations. Some
1653 security manager checks moved to checkWrite().
1654 (equals): Check file system case sensitivity and act appropriatly.
1655 (hashCode): Likewise.
1656 (isHidden): New method implemented.
1657 (performList): Changed prototype. Now takes a class argument specifying
1658 the class of the returned array: Strings or File objects. Also added
1659 FileFilter argument.
1660 (listFiles): New variants with "File" return type implemented.
1661 (createTempFile): Use createNewFile(). Use maxPathLen.
1662 (setReadOnly): New method implemented.
1663 (listRoots): Likewise.
1664 (compareTo): Likewise.
1665 (setLastModified): Likewise.
1666 (checkWrite): New method.
1668 * java/io/natFile.cc: Various functions no longer take canonical path
1670 (stat): Handle ISHIDDEN query.
1671 (isAbsolute): Remove WIN32 cruft.
1672 (performList): New arguments. Handle returning either File[] or String[]
1673 arrays. Check with FileFilter or FilenameFilter arguments as
1674 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1675 (performSetReadOnly): New method implemented.
1676 (performListRoots): Likewise.
1677 (performSetLastModified): Likewise.
1678 (performCreate): Likewise.
1679 (init_native): New initialization function.
1680 * java/io/natFileWin32.cc: Various functions no longer take canonical
1682 (stat): Add FIXME about ISHIDDEN query.
1683 (performList): New arguments. Handle returning either File[] or String[]
1684 arrays. Check with FileFilter or FilenameFilter arguments as
1685 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1686 (performSetReadOnly): New. Stubbed.
1687 (performListRoots): Likewise.
1688 (performSetLastModified): Likewise.
1689 (performCreate): Likewise.
1690 (init_native) New initialization function.
1691 * configure.in: Check for utime() and chmod().
1692 * configure: Rebuilt.
1693 * include/config.h.in: Rebuilt.
1695 Resolves PR libgcj/1759.
1697 2001-03-28 Richard Henderson <rth@redhat.com>
1699 IA-64 ABI Exception Handling:
1700 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1701 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1702 Remove EXCEPTIONSPEC.
1703 * configure.host (libgcj_sjlj): Remove.
1704 * configure.in (EXCEPTIONSPEC): Remove.
1705 (enable-sjlj-exceptions): Detect if not specified.
1706 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1707 what header we're looking for.
1708 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1709 * Makefile.in, configure: Regenerate.
1710 * exception.cc: Don't declare libgcc2 stuff.
1711 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1712 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1713 (win32_get_restart_frame): Remove.
1714 (struct java_exception_header): New.
1715 (__gcj_exception_class): New.
1716 (get_exception_header_from_ue): New.
1717 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1718 (size_of_encoded_value, read_encoded_value): New.
1719 (read_uleb128, read_sleb128, parse_lsda_header): New.
1720 (get_ttype_entry, __gcj_personality_sj0): New.
1721 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1723 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1725 * javax/naming/InitialContext.java (init): Fix typo.
1726 (composeName): Remove unnecessary semicolon.
1727 (addToEnvironment): Remove unnecessary semicolon.
1728 (addToEnvironment): Use put() instead of add().
1730 * javax/naming/InitialContext.java (InitialContext):
1732 (destroySubcontext): Method doesn't return a result.
1733 * javax/naming/Context.java: Import java.util.Hashtable.
1734 * javax/naming/Name.java: Import java.util.Enumeration.
1736 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1738 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1739 objects in subdirectories.
1740 * Makefile.in: Rebuilt.
1742 2001-03-25 Richard Henderson <rth@redhat.com>
1744 * exception.cc (java_eh_info): Make value type jthrowable.
1745 (_Jv_type_matcher): Remove now unneeded cast.
1746 (_Jv_Throw): Make argument type jthrowable. Munge name
1747 for SJLJ_EXCEPTIONS here ...
1748 * gcj/cni.h: ... not here.
1750 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1752 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1753 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1754 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1755 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1756 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1757 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1758 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1759 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1760 java/lang/natDouble.cc, java/lang/natObject.cc,
1761 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1762 java/lang/natString.cc, java/lang/natSystem.cc,
1763 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1764 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1765 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1766 java/util/zip/natInflater.cc:
1767 Use throw, not JvThrow or _Jv_Throw.
1769 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1771 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1772 paramater, bump it to 1.
1773 * java/util/Hashtable.java (Hashtable): Likewise.
1775 2001-03-23 Per Bothner <per@bothner.com>
1777 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1778 check for errors, since we don't want to throw exception on
1779 overflow/underflow. Instead, trim whitespace, and then check that
1780 _strtod_r uses up all the rest of the string.
1782 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1783 ancestors array is invalid for interfaces, so do that *after*
1784 check that the target type is not an interface.
1786 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1788 * prims.cc (_Jv_FindClassFromSignature): Check return of
1789 recursive call. Do not abort on invalid signature; return NULL
1792 2001-03-22 Tom Tromey <tromey@redhat.com>
1794 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1795 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1797 * include/jvm.h (_Jv_ResolveField): Declare.
1798 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1799 * resolve.cc (_Jv_ResolveField): No longer conditional on
1802 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1804 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1805 for libtool hacking.
1806 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1807 to a temporary file, then invoke libtool with the -objectlist
1809 (libgcjx.la): Likewise.
1810 * Makefile.in: Rebuilt.
1812 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1814 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1816 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1818 * jni.cc (add_char): Handle `.' like `/'.
1820 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1822 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1823 initialize if exception_types is null.
1824 * java/lang/reflect/Constructor.java: Likewise.
1825 * java/lang/reflect/natConstructor.cc (getType): Initialize
1826 exception_types to an empty Object array.
1828 2001-03-21 Tom Tromey <tromey@redhat.com>
1830 * configure: Rebuilt.
1831 * configure.in (GCJFLAGS): Subst.
1832 * Makefile.in: Rebuilt.
1833 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1834 (gij_LDFLAGS): Likewise.
1835 (JC1FLAGS): Added GCJFLAGS and removed -g.
1837 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1838 read/write case. Fixes PR libgcj/2338.
1840 2001-03-20 Warren Levy <warrenl@redhat.com>
1842 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1843 and corrected SimpleTimeZone's for the timezones hash table.
1845 2001-03-19 Per Bothner <per@bothner.com>
1847 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1848 "canonicalize" "../../xxx" to "/xxx".
1850 2001-03-19 Mark Wielaard <mark@klomp.org>
1852 * java/util/ArrayList.java: Remove RCS keywords from comments
1853 * java/util/BasicMapEntry.java: idem
1854 * java/util/Dictionary.java: idem
1855 * java/util/HashSet.java: idem
1857 * java/util/EventObject.java: reindent
1858 * java/util/Properties.java: idem
1859 * java/util/SortedMap.java: idem
1861 * java/util/Enumeration.java: Merge with Classpath
1862 * java/util/EventListener.java: idem
1863 * java/util/Observable.java: idem
1864 * java/util/Observer.java: idem
1865 * java/util/Stack.java: idem
1867 2001-03-17 Tom Tromey <tromey@redhat.com>
1869 * java/lang/natString.cc (rehash): Don't bother with memset;
1870 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1872 (UNMASK_PTR): New macro.
1873 (intern): Unmask pointer before returning it. Register finalizer
1875 (unintern): Handle case where
1876 (MASK_PTR): New macro.
1877 (PTR_MAKSED): Likewise.
1878 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1880 2001-03-01 Andrew Haley <aph@redhat.com>
1882 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1883 stackTrace buffer to a correctly aligned pointer array.
1885 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1887 * java/lang/Runtime.java (_exit): Declare new package-private native.
1888 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1889 without a security manager check.
1890 (exit): Call _exit after security check.
1891 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1893 * java/lang/System.java (setSecurityManager): If a security manager
1894 is already in place, call checkPermission.
1895 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1896 throws an exception, try to deal with it gracefully.
1897 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1898 Only try to print the subordinate stack trace if "exception" is set.
1899 Print our class name first.
1901 2001-03-08 Tom Tromey <tromey@redhat.com>
1903 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1904 info for array classes.
1905 Fixes PR libgcj/1971.
1907 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1909 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1912 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1914 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1915 instead of the new JDK1.2 API. This is simpler and makes
1916 back-porting the classes to JDK1.1 trivial.
1917 (readObject): likewise.
1919 2001-03-01 Per Bothner <per@bothner.com>
1921 Changes merged from Kawa's gnu.math.
1922 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1923 (rshift(int[],int[],int,int): Removed - not needed.
1924 (gcd): Use rshift0 rather than rshift.
1925 * java/math/BigInteger.java (setShiftRight): Likewise.
1926 (divide): Simplify by using rshift0.
1927 (divide): Zero-extend results if high-order bit set.
1929 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1931 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1934 2001-02-23 Per Bothner <per@bothner.com>
1936 Change to sometimes include class name in ClassFormatError message.
1937 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1938 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1939 boolean instead of throwing ClassFormatError on failure.
1940 (throw_class_format_error): Change static function to method.
1941 (_Jv_ClassReader): New inline methods verify_identifier,
1942 two overloads of verify_classname, verify_field_signature, and
1943 verify_method_signature
1944 * include/java-interp.h: Update declarations to return bool.
1945 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1946 ClassFormatError since _Jv_VerifyClassName now returns bool.
1948 2001-02-23 Per Bothner <per@bothner.com>
1950 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1951 c++filt to select java-style output.
1953 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1955 Fix for PR java/2040:
1956 * java/util/HashMap.java (HashMap): Don't throw exception for
1957 loadFactor > 1. Add exception messages.
1958 * java/util/Hashtable.java (Hashtable): Likewise.
1960 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1962 Disable libgcjx by default.
1963 * configure.in: Add support for --enable-java-awt configure option.
1964 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1965 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1966 * Makefile.in: Rebuilt.
1967 * configure: Rebuilt.
1969 2001-02-20 Tom Tromey <tromey@redhat.com>
1971 * java/io/PipedWriter.java (flush): Throw exception if stream
1973 * java/io/OutputStreamWriter.java (write): Throw exception if
1975 (writeChars): Don't throw exception if stream closed.
1976 * java/io/CharArrayWriter.java (closed): New field.
1978 (flush): Throw exception if stream closed.
1979 (reset): Synchronize on correct lock. Allow stream to be
1981 (toCharArray, toString, writeTo): Synchronize.
1982 (write): Throwe exception if stream closed.
1983 * java/io/BufferedWriter.java (close): Clear `buffer'.
1984 (flush): Throw IOException if stream is closed.
1987 2001-02-16 Tom Tromey <tromey@cygnus.com>
1989 * java/lang/ThreadGroup.java (activeCount): Only include threads
1991 (enumerate): Likewise.
1993 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1995 * java/lang/Integer.java (getInteger): Return default argument if
1996 property is not set. Don't call decode with null argument.
1997 * java/lang/Long.java (getLong): Likewise.
1999 * java/io/CharArrayReader.java (CharArrayReader): Throw
2000 IllegalArgumentException if constructor arguments are illegal.
2001 (ready): Return false if no more characters can be read.
2002 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2004 2001-02-17 Mark Wielaard <mark@klomp.org>
2006 * java/util/TimerTask.java: New version from Classpath.
2008 2001-02-17 Mark Wielaard <mark@klomp.org>
2010 Remerge with Classpath
2011 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2012 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2013 (readByte): Use convertToByte().
2014 (readChar): Use convertToChar().
2015 (readInt): Use convertToInt().
2016 (readLong): Use convertToLong().
2017 (readShort): Use convertToShort().
2018 (readUnsignedByte): Use convertToUnsignedByte().
2019 (readUnsignedShort): Use convertToUnsignedShort().
2020 (readUTF): Use convertToUTF().
2022 (convertToBoolean): Resurrected.
2023 (convertToByte): Ditto.
2024 (convertToChar): Ditto.
2025 (convertToInt): Ditto.
2026 (convertToLong): Ditto.
2027 (convertToShort): Ditto.
2028 (convertToUnsignedByte): Ditto.
2029 (convertToUnsignedShort): Ditto.
2030 (convertToUTF): Ditto.
2032 2001-02-17 Mark Wielaard <mark@klomp.org>
2036 2001-02-17 Mark Wielaard <mark@klomp.org>
2038 * java/io/DataInputStream.java: update copyright notice
2039 * java/io/PrintWriter.java: idem
2040 * java/io/Reader.java: idem
2041 * java/io/StreamTokenizer.java: idem
2042 * java/io/StringReader.java: idem
2043 * java/lang/reflect/ReflectPermission.java: idem
2045 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2047 * java/util/TreeSet.java (clone): Made subclass safe, use
2048 super.clone(), not new.
2049 * java/util/TreeMap.java (clone): Likewise.
2051 * java/util/TreeMap.java (nil): Made non-final.
2052 (clone): Create new nil node for copy.
2054 * java/util/HashSet.java (clone): Made subclass safe, use
2055 super.clone(), not new.
2057 2001-02-14 Andrew Haley <aph@redhat.com>
2059 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2062 2001-02-15 Anthony Green <green@redhat.com>
2064 * defineclass.cc: Don't include alloca.h.
2065 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2066 * interpret.cc (run_normal): Ditto.
2068 * java/lang/natDouble.cc (parseDouble): Ditto.
2070 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2072 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2074 * java/util/Collections.java (ReverseComparator): New static class.
2075 (reverseOrder): Return static instance of ReverseComparator.
2077 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2078 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2079 Rectangle.clone(), not Object.clone().
2081 * java/util/HashSet.java (clone): Remove try/catch.
2083 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2084 * java/util/Collection.java: Likewise.
2085 * java/util/Comparator.java: Likewise.
2086 * java/util/Dictionary.java: Likewise.
2087 * java/util/Iterator.java: Likewise.
2088 * java/util/ListIterator.java: Likewise.
2089 * java/util/Map.java: Likewise.
2090 * java/util/Set.java: Likewise.
2092 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2094 * java/util/TreeMap.java: New file.
2095 * java/util/TreeSet.java: New file.
2096 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2097 * Makefile.in: Rebuilt.
2098 * java/util/HashSet.java (clone): Use constructor instead of calling
2100 * java/util/SortedSet.java: Sync with classpath.
2101 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2104 * java/lang/natClass.cc (getSignature): Don't try to dereference
2105 param_types if it is null. Instead, take this to mean "no parameters".
2106 * java/lang/TreeMap.java (TreeIterator.next): Throw
2107 NoSuchElementException in preference to ConcurrentModificationException.
2108 (TreeIterator.remove): Throw IllegalStateException in preference to
2109 ConcurrentModificationException.
2110 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2111 throw a NoSuchElementException.
2112 (SubMap.lastKey): Likewise.
2114 2001-02-13 Tom Tromey <tromey@redhat.com>
2116 * java/io/PipedReader.java (ready): Throw IOException if pipe
2118 * java/io/FilterReader.java (close): Don't clear `in'.
2119 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2121 (read, ready, reset, skip): Added exception message.
2122 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2123 Perform checkStatus check inside synchronized block.
2125 2001-02-13 Tom Tromey <tromey@redhat.com>
2127 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2129 2001-02-13 Tom Tromey <tromey@redhat.com>
2131 Fix for PR libgcj/1351:
2132 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2134 Include Thread.h and InterruptedIOException.h.
2136 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2138 * java/io/BlockDataException.java: Removed.
2139 * java/io/ObjectInputStream.java (readObject): Throw
2140 StreamCorruptedException, not BlockDataException.
2141 * Makefile.am: Remove BlockDataException.
2142 * Makefile.in: Rebuild.
2144 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2145 Tom Tromey <tromey@redhat.com>
2147 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2150 2001-02-09 Tom Tromey <tromey@redhat.com>
2152 * java/util/Timer.java: New version from Classpath.
2154 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2156 * java/lang/Double.java (doubleToRawLongBits): Now native.
2157 * java/lang/Float.java (floatToRawIntBits): Likewise.
2158 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2159 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2161 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2163 * java/io/File.java (java.net): Imported.
2164 (getAbsoluteFile): Added.
2165 (getCanonicalPath): Likewise.
2168 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2170 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2171 * java/lang/Integer.java: Likewise.
2172 * java/lang/Long.java: Likewise.
2173 * java/lang/Short.java: Likewise.
2174 * java/lang/Double.java: Likewise.
2175 (doubleToRawLongBits): New method.
2176 * java/lang/Float.java: As above.
2177 (floatToRawIntBits): New method.
2179 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2180 IOException if stream closed.
2182 2001-02-08 Tom Tromey <tromey@redhat.com>
2184 * java/lang/Float.java (parseFloat): New method.
2186 2001-02-08 Tom Tromey <tromey@redhat.com>
2188 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2189 * java/io/InputStreamReader.java (ready, read): Throw IOException
2190 if stream has been closed.
2192 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2194 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2195 Change sources.redhat.com and sourceware.cygnus.com references to
2198 2001-02-07 Tom Tromey <tromey@redhat.com>
2200 Fix for PR libgcj/1906:
2201 * java/text/MessageFormat.java (setLocale): Use named class
2204 (format(Object,StringBuffer,FieldPosition)): Special case if
2205 argument is an Object[].
2207 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2209 * java/util/Arrays.java: Removed "cmp" methods.
2210 (qsort): Don't use "cmp".
2213 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2215 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2216 sort. Fix for PR java/1895.
2218 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2220 * configure.host: Use sjlj-exceptions for Alpha.
2222 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2224 * libgcj.spec.in: Don't force static libgcc into the executable.
2225 * configure.in (FORCELIBGCCSPEC): Removed.
2226 * configure: Rebuilt.
2228 2001-01-31 Tom Tromey <tromey@redhat.com>
2230 * Makefile.in: Rebuilt.
2231 * Makefile.am (LTCXXCOMPILE): New macro.
2233 2001-01-26 Andrew Haley <aph@redhat.com>
2235 (INIT_FPE): Use a direct system call to set the handler.
2237 2001-01-27 Richard Henderson <rth@redhat.com>
2239 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2241 2001-01-27 Tom Tromey <tromey@redhat.com>
2243 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2244 native interface structure.
2246 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2248 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2250 (read (byte[], int, int)): Only call readNextBlock() if the block
2251 buffer would actually be overrun. Increment blockDataPosition.
2252 (callReadMethod): Propagate exceptions from invocation target.
2253 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2254 exceptions from invocation target.
2256 2001-01-26 Tom Tromey <tromey@redhat.com>
2258 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2259 to internal representation.
2260 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2261 _Jv_FindClassFromSignature.
2263 2001-01-26 Warren Levy <warrenl@redhat.com>
2265 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2266 and timezone if they are available on the system.
2268 2001-01-24 Tom Tromey <tromey@redhat.com>
2270 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2272 2001-01-24 Tom Tromey <tromey@redhat.com>
2274 * Makefile.in: Rebuilt.
2275 * Makefile.am (c_source_files): Added sf_fabs.c.
2276 * java/lang/sf_fabs.c: New file.
2278 2001-01-19 Warren Levy <warrenl@redhat.com>
2280 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2281 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2282 correctly. Adjust properly from 0-23 clock hour.
2284 2001-01-17 Mark Wielaard <mark@klomp.org>
2286 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2288 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2290 * java/lang/Class.h (isInterface): Move implementation from
2291 natClass.cc. Declare inline.
2292 (Class): Add default constructor.
2293 * java/lang/Object.h: Update comments.
2294 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2295 initialize superclass, saving a call if super is already initialized.
2297 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2299 * prims.cc (init_prim_class): Deleted.
2300 (DECLARE_PRIM_TYPE): Rewritten.
2301 * java/lang/Class.h (stdio.h): Include removed.
2302 (stddef.h): Included.
2303 (java/lang/reflect/Modifier.h): Likewise.
2304 (Class): Contructor now takes arguments, initializes fields.
2305 (initializePrim): Prototype deleted.
2306 * java/lang/natClass.cc (initializePrim): Deleted.
2308 2001-01-16 Warren Levy <warrenl@redhat.com>
2310 * java/math/BigInteger.java: Update Copyright year.
2312 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2314 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2317 2001-01-14 Mark Wielaard <mark@klomp.org>
2318 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2319 (decode): Merge comments with Classpath, don't throw Exception
2321 2001-01-12 Tom Tromey <tromey@redhat.com>
2323 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2327 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2328 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2329 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2330 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2331 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2333 * java/lang/natSystem.cc: Include locale.h if it exists.
2334 * configure: Rebuilt.
2335 * configure.in: Check for locale.h.
2337 2001-01-11 Tom Tromey <tromey@redhat.com>
2339 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2340 (Cursor(int), getPredefinedCursor): Throw exception if argument
2343 2001-01-03 Tom Tromey <tromey@redhat.com>
2345 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2346 (getLocationOnScreen): Wrote.
2348 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2350 * Makefile.am: Re-enable dependencies.
2351 * Makefile.in: Rebuilt.
2353 2001-01-10 Warren Levy <warrenl@redhat.com>
2355 * java/math/BigDecimal.java (divide): Fixed comment.
2357 2001-01-10 Warren Levy <warrenl@redhat.com>
2359 Fix for PR libgcj/1596:
2360 * java/math/BigDecimal.java (divide): Check newScale for validity.
2361 Ensure that BigInteger.pow() is called with a non-negative value.
2362 (setScale (int)): New public method.
2363 (setScale (int,int)): New public method.
2365 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2367 Fix for PR libgcj/1338:
2368 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2369 commentChar. Fixed typos in comments.
2371 2001-01-08 Warren Levy <warrenl@redhat.com>
2373 Fix for PR libgcj/1411:
2374 * Makefile.am: Removed java/util/natTimeZone.cc.
2375 * Makefile.in: Rebuilt.
2376 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2377 missing localized timezone names.
2378 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2379 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2380 (init_properties): Set user.timezone property.
2381 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2382 default timezone names; removed non-standard ones. Use standard
2384 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2386 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2388 (getDefaultTimeZoneId): Removed.
2390 * java/util/natTimeZone.cc: Removed.
2392 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2394 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2395 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2396 (_Jv_GetArrayClass): New inline function.
2397 (arrayclass): New field.
2398 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2399 _Jv_GetArrayElementFromElementType.
2400 (_Jv_NewPrimArray): Ditto.
2401 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2402 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2403 Set Modifier::ABSTRACT.
2404 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2405 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2406 Now synchronized. Array classes are now referenced from
2407 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2408 Set array classes' accessibility flags correctly. Optimize so that
2409 all array classes share the same IDT.
2410 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2411 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2412 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2413 in superclasses from overwriting classes own fields.
2414 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2415 Modifier::isAbstract().
2416 (null_idt): New static field.
2417 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2419 (_Jv_IndexOf): Made inline.
2420 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2422 2001-01-08 Tom Tromey <tromey@redhat.com>
2424 Fix for PR java/1586:
2425 * Makefile.in: Rebuilt.
2426 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2428 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2430 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2431 from the c++ compiler.
2432 * Makefile.in: Rebuilt.
2434 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2436 All files with updated copyright.
2437 * prims.cc (class _Jv_PrimClass): Removed.
2438 (init_prim_class): New function.
2439 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2440 `_Jv_PrimClass' in primitive type declarations. Assign to the
2441 value returned by `init_prim_class.'
2442 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2443 primitive type declarations.
2444 (JvPrimClass): Cast to `jclass' removed.
2445 * java/lang/Class.h (Class): New constructor.
2446 (Class): New copy constructor.
2447 (initializePrim): New prototype.
2448 (_Jv_PrimClass): Field removed.
2449 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2450 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2451 (class java::lang::Object): `finalize' moved up front.
2452 * java/lang/natClass.cc
2453 (isAssignableFrom): Turned outline.
2454 (isInstance): Likewise.
2455 (isInterface): Likewise, fixed indentation.
2456 (initializePrim): New function.
2458 2001-01-07 Anthony Green <green@redhat.com>
2460 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2462 * Makefile.in: Rebuilt.
2464 * scripts/TexinfoDoclet.java: New file.
2466 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2467 doc/java-awt-color.texi, doc/java-lang.texi,
2468 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2469 doc/java-awt-event.texi, doc/java-net.texi,
2470 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2471 doc/java-awt-image.texi, doc/java-security.texi,
2472 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2473 doc/java-text.texi, doc/java-beans-beancontext.texi,
2474 doc/java-util-jar.texi, doc/java-beans.texi,
2475 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2476 doc/java-lang-ref.texi: New files.
2478 2001-01-07 Anthony Green <green@redhat.com>
2480 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2481 be used for both input and output, so don't clear doInput.
2483 * java/lang/StringBuffer.java: Fix comments.
2485 2001-01-06 Anthony Green <green@redhat.com>
2487 * java/beans/PropertyDescriptor.java: Fix comment.
2488 * java/io/PushbackReader.java: Fix comment.
2489 * java/io/ObjectStreamClass.java: Fix comment.
2490 * java/io/DataInputStream.java: Fix comment.
2491 * java/io/PipedInputStream.java: Fix comments.
2492 * java/io/PipedReader.java: Fix comments.
2493 * java/sql/DatabaseMetaData.java: Fix comments.
2495 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2497 * java/io/PipedReader: Synchronize on "lock" instead of this.
2499 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2501 * java/lang/Thread.java: Update comment.
2503 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2504 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2505 * java/io/PipedReader: New implementation based on new
2507 * java/io/PipedWriter: Updated to match new PipedReader.
2509 2001-01-03 Tom Tromey <tromey@redhat.com>
2511 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2512 (getViewportSize): Insets include scrollbar size.
2513 (doLayout): Finished.
2514 (getScrollPosition): Wrote.
2515 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2517 2001-01-02 Tom Tromey <tromey@redhat.com>
2519 * java/awt/ScrollPane.java: Wrote.
2520 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2523 * java/awt/Panel.java (Panel()): Fixed.
2525 * java/awt/Component.java (isShowing): Return false if no peer
2526 exists, and true if component is visible and no parent exists.
2527 (getLocationOnScreen): Wrote.
2528 (getPreferredSize): Removed FIXME comment.
2529 (getMinimumSize): Likewise.
2530 (getAlignmentX, getAlignmentY): Wrote.
2532 (requestFocus): Wrote.
2533 (transferFocus): Wrote.
2534 (findNextFocusComponent): New method.
2535 (hasFocus()): Wrote.
2536 (checkImage): Wrote.
2537 (enableEvents): Call setEventMask on the peer.
2539 * java/awt/Container.java (list): Use super.list() to print self.
2540 (findNextFocusComponent): New method.
2541 (setLayout): Call invalidate.
2542 (findComponentAt): Wrote.
2544 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2546 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2547 the correct versions of various linuxthreads functions get linked.
2548 * Makefile.in: Rebuilt.
2549 * java/lang/natThread.cc (finalize_native): New static function. Call
2550 _Jv_ThreadDestroyData.
2551 (initialize_native): Register finalizer for "data".
2552 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2553 (_Jv_ThreadDestroyData): New prototype.
2554 * include/win32-threads.h: Ditto.
2555 * include/no-threads.h: Ditto.
2556 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2557 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2558 move mutex and condition variable destroy code from:
2559 (really_start): ...here.
2560 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2561 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2562 (_Jv_ThreadDestroyData): Implemented.
2563 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2564 (_Jv_AllocArray): Ditto.
2566 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2568 * java/sql/DriverManager.java (getConnection): Don't set user/password
2571 2000-12-27 Warren Levy <warrenl@redhat.com>
2573 Fix for PR libgcj/1358:
2574 * java/lang/System.java: Update Copyright date properly.
2575 * java/util/Calendar.java: Fix typo in comment.
2576 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2577 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2578 initialize times. Spec says to set H:M:S values to zero only if
2580 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2581 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2582 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2583 timezones and GMT offsets, being careful to account for units of
2584 milliseconds vs. seconds.
2586 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2588 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2589 not be assigned to Object.
2591 Fix for PR libgcj/1516:
2592 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2594 (can_widen): Declared inline. Remove redundant checks for void
2595 arguments and char->short conversion. Add special case for boolean
2597 (ffi_type): Declared inline.
2598 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2600 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2602 * java/sql/SQLWarning.java: Fixed typo in comment.
2604 2000-12-26 Tom Tromey <tromey@redhat.com>
2606 * java/awt/MenuItem.java (paramString): Now protected.
2608 * java/awt/MenuShortcut.java: Implements Serializable.
2610 * java/awt/MenuBar.java: Rewrote from scratch.
2612 * java/awt/MenuComponent.java (removeNotify): Wrote.
2613 Implements Serializable.
2615 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2618 * java/awt/CheckboxMenuItem.java: Wrote.
2620 2000-12-25 Tom Tromey <tromey@redhat.com>
2622 * java/awt/MenuContainer.java: Fixed typo.
2624 * Makefile.in: Rebuilt.
2625 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2626 * java/awt/SystemColor.java: New file.
2628 * java/awt/Color.java (rgba): Now package-private.
2630 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2632 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2635 * java/awt/MenuItem.java (addNotify): New method.
2636 (MenuItem(String,MenuShortcut)): New constructor.
2637 (setLabel): Notify peer of change.
2638 (setEnabled): Likewise.
2640 * java/awt/GridLayout.java (toString): New method.
2642 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2643 (FlowLayout): Check for LEADING and TRAILING.
2644 (setAlignment): Likewise.
2645 (layoutContainer): Handle component orientation.
2647 * java/awt/Component.java (orientatin): New field.
2648 (setComponentOrientation): Wrote.
2649 (getComponentOrientation): Wrote.
2651 * java/awt/Event.java (Event): Implements Serializable.
2652 (consumed): New field for serialization.
2653 * java/awt/Dimension.java (Dimension): Implements Serializable.
2654 * java/awt/Cursor.java (Cursor): Implements Serializable.
2655 * java/awt/Container.java (Container): No longer abstract.
2657 * java/awt/Choice.java: Wrote.
2658 * java/awt/Checkbox.java: Wrote.
2659 * java/awt/ItemSelectable.java: Documented.
2660 * java/awt/CheckboxGroup.java: Wrote.
2662 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2664 (getSize): Likewise.
2666 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2668 * java/io/FileDescriptor.java: Initialize fd to -1.
2669 Remove default constructor.
2671 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2673 * java/lang/mprec.h: Change C9X reference to refer to C99.
2675 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2677 * java/lang/Throwable.java (trace_enabled): New static field.
2678 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2679 trace_enabled not set.
2680 * prims.cc (main_init): Turn off trace_enabled while creating
2681 default exception objects.
2683 2000-12-21 Tom Tromey <tromey@redhat.com>
2685 * java/beans/PropertyChangeListener.java: Extends EventListener.
2686 * java/beans/VetoableChangeListener.java: Extends EventListener.
2688 * java/util/zip/Deflater.java (update, init): Now private.
2690 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2692 * java/util/BasicMapEntry.java: Re-added.
2693 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2694 (putAll): Test for BasicMapEntry.
2695 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2696 (putAll): Test for BasicMapEntry.
2697 Change references from `HashMap.Entry' to `Entry' in various places.
2698 * Makefile.am: Add BasicMapEntry.java.
2699 * Makefile.in: Rebuilt.
2701 2000-12-18 Warren Levy <warrenl@redhat.com>
2703 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2704 need to set timezone to a valid non-null value. Partial fix for
2707 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2709 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2711 * java/awt/Button.java (addNotify): Likewise.
2712 * java/awt/Label.java (addNotify): Likewise.
2713 * java/awt/Panel.java (addNotify): Likewise.
2714 * java/awt/Scrollbar.java (addNotify): Likewise.
2715 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2716 Remove redundant null checks.
2718 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2720 * COPYING: Update to current
2721 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2722 to 19yy as example year in copyright notice).
2724 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2726 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2727 end-of-stream if avail_in is 0.
2729 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2731 * java/util/ArrayList.java (data): Declare transient.
2732 (serialPersistantFields): Removed.
2733 (readObject): Use defaultReadObject(), not readFields().
2734 (writeObject): Use defaultWriteObject(), not writeFields().
2736 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2738 * java/util/Hashtable.java (put): Remove `last' variable.
2739 Link new entry to head of list.
2740 * java/util/HashMap.java (put): Ditto.
2742 2000-12-15 Tom Tromey <tromey@redhat.com>
2744 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2745 loader to Class.forName.
2747 2000-12-14 Tom Tromey <tromey@redhat.com>
2749 * java/util/ResourceBundle.java
2750 (getBundle(String,Locale,ClassLoader)): New method.
2751 (trySomeGetBundle): Added `loader' argument.
2752 (partialGetBundle): Likewise.
2754 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2755 maximumFractionDigits, maximumIntegerDigits,
2756 minimumFractionDigits, minimumIntegerDigits): Now
2759 * java/lang/Thread.java (checkAccess): Now final.
2761 * java/lang/RuntimePermission.java: Class now final.
2763 * java/io/StringWriter.java (StringWriter(int)): Now public.
2765 * java/io/SerializablePermission.java (legal_names): Now private.
2767 * java/lang/Character.java: Updated UnicodeBlock constants.
2768 * scripts/blocks.pl: Special case private use and surrogate
2771 2000-12-12 Tom Tromey <tromey@redhat.com>
2773 * Makefile.in: Rebuilt.
2774 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2776 (GCJCOMPILE): Use it.
2779 2000-12-11 Tom Tromey <tromey@redhat.com>
2781 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2782 New static final fields.
2784 * scripts/classes.pl (scan): Skip lines with leading `*'.
2785 Fix for PR libgcj/378.
2787 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2789 * configure.in: Remove check for -fuse-divide-subroutine.
2790 * configure: Rebuilt.
2792 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2794 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2796 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2798 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2799 Remove BasicMapEntry.java and Bucket.java.
2800 * Makefile.in: Rebuilt.
2801 * java/util/HashMap.java: Rewritten.
2802 * java/util/HashSet.java: Imported from classpath.
2803 * java/util/WeakHashMap.java: Imported from classpath.
2804 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2805 * java/util/Bucket.java: Deleted.
2806 * java/util/BasicMapEntry.java: Deleted.
2807 * java/util/Collections.java (search): Use a for-loop, not iterator
2809 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2810 of elements in source.
2811 (max): Use a for-loop.
2813 (reverse): Keep track of positions instead of using Iterator's
2814 nextIndex() and previousIndex().
2815 (shuffle(List)): Initialize defaultRandom if required using
2816 double-check thread safety idiom. Call two-argument shuffle method
2817 using defaultRandom.
2818 (defaultRandom): New field.
2819 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2820 using previousIndex() and nextIndex().
2821 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2822 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2823 * java/util/AbstractMap.java (toString): Use StringBuffer.
2824 * java/lang/ref/PhantomReference.java: Imported from classpath.
2825 * java/lang/ref/SoftReference.java: Ditto.
2826 * java/lang/ref/Reference.java: Ditto.
2827 * java/lang/ref/WeakReference.java: Ditto.
2828 * java/lang/ref/ReferenceQueue.java: Ditto.
2830 2000-12-10 Richard Henderson <rth@redhat.com>
2832 * configure.host: Recognize alpha*-*, not alphaev6-*.
2834 2000-12-09 Anthony Green <green@redhat.com>
2836 * configure.host: Enable interpreter for Alpha.
2838 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2840 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2841 (ZIP): Points at fastjar instead of zip.
2842 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2843 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2844 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2845 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2846 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2847 ($(x_java_source_files:.java=.class):): Likewise.
2848 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2850 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2851 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2852 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2853 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2854 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2855 gnu/gcj/runtime/VMClassLoader.h:,
2856 java/io/ObjectInputStream$$GetField.h:,
2857 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2858 (Makefile.in): Rebuilt.
2860 2000-12-08 Tom Tromey <tromey@redhat.com>
2863 * configure: Rebuilt.
2864 * configure.in: Use echo, not `:', to create .d files.
2866 2000-12-08 Warren Levy <warrenl@redhat.com>
2868 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2869 NullPointerException so proper check of offset can be done.
2871 2000-12-08 Warren Levy <warrenl@redhat.com>
2873 * java/io/FileInputStream.java (close): Check if the fd is valid.
2874 * java/io/RandomAccessFile.java (close): Ditto.
2875 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2876 * java/net/PlainSocketImpl.java (close): Ditto.
2878 2000-12-06 Tom Tromey <tromey@redhat.com>
2880 * java/awt/GridBagConstraints.java: Filled in values for static
2883 * java/util/BitSet.java: Updated copyright notice.
2885 * Makefile.in: Rebuilt.
2886 * Makefile.am (awt_java_source_files): Added new file.
2887 * java/awt/GridBagConstraints.java: New file.
2889 2000-12-05 Tom Tromey <tromey@redhat.com>
2891 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2892 Now package-private, not protected.
2893 * java/text/DateFormatSymbols.java (equals): Now private.
2894 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2895 * java/util/BitSet.java: Class no longer final.
2897 2000-12-04 Warren Levy <warrenl@redhat.com>
2899 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2900 out code dependent on compiler and library changes.
2902 2000-12-04 Warren Levy <warrenl@redhat.com>
2904 * java/io/FilePermission.java: Made class final per spec.
2905 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2906 method name to match spec (fixed typo).
2907 * java/util/LinkedList.java: Implements List.
2909 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2911 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2912 Edgar Villanueva <edgarvil@home.com>.
2914 2000-12-03 Tom Tromey <tromey@redhat.com>
2916 * java/awt/geom/Point2D.java: Added protected constructor.
2917 (equals): New method.
2918 (Float.setLocation(float,float)): New method.
2919 * java/awt/geom/Dimension2D.java: Added protected constructor.
2920 * java/awt/geom/AffineTransform.java: Made all constants public.
2921 (concatenate): Fixed typo in name.
2922 * java/awt/event/WindowAdapter.java: Class now abstract.
2923 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2924 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2927 * java/awt/AWTError.java: Extend Error, not
2928 IllegalStateException.
2930 * Makefile.in: Rebuilt.
2931 * Makefile.am (awt_java_source_files): Added new file.
2932 * java/awt/geom/RoundRectangle2D.java: New file.
2934 * Makefile.in: Rebuilt.
2935 * Makefile.am (awt_java_source_files): Added new file.
2936 * java/awt/FlowLayout.java: New file.
2938 * Makefile.in: Rebuilt.
2939 * Makefile.am (awt_java_source_files): Added new file.
2940 * java/awt/GridLayout.java: New file.
2942 2000-12-02 Tom Tromey <tromey@redhat.com>
2944 * Makefile.in: Rebuilt.
2945 * Makefile.am (awt_java_source_files): Added new files.
2946 * java/awt/CardLayout.java: New file.
2947 * java/awt/AWTPermission.java: New file.
2949 2000-12-01 Tom Tromey <tromey@redhat.com>
2951 * java/util/Vector.java (insertElementAt): Unconditionally
2952 increment elementCount.
2953 (removeRange): Clear unused slots in vector.
2955 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2957 * java/lang/natMath.cc: Declare fabsf() function.
2958 * java/lang/mprec.h: Don't include math.h.
2959 * java/lang/dtoa.c: Include string.h.
2960 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2963 From Adam Welc <welc@cs.purdue.edu>:
2964 * java/util/LinkedList.java (removeFirst): Update `first' field.
2965 Handle the last == first case.
2966 (removeLast): Update `last' field. Handle the last == first case.
2968 2000-12-01 Warren Levy <warrenl@cygnus.com>
2970 * Makefile.am: Added entries for new java.sql modules.
2971 * Makefile.in: Rebuilt.
2973 2000-12-01 Warren Levy <warrenl@cygnus.com>
2975 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2976 that aren't quite 1.2 compatible yet.
2978 2000-11-30 Warren Levy <warrenl@cygnus.com>
2980 * java/sql/Array.java: New file from classpath.
2981 * java/sql/BatchUpdateException.java: Ditto.
2982 * java/sql/Blob.java: Ditto.
2983 * java/sql/Clob.java: Ditto.
2984 * java/sql/Ref.java: Ditto.
2985 * java/sql/SQLData.java: Ditto.
2986 * java/sql/SQLInput.java: Ditto.
2987 * java/sql/SQLOutput.java: Ditto.
2988 * java/sql/Struct.java: Ditto.
2989 * java/sql/CallableStatement.java: Merged file from claspath.
2990 * java/sql/Connection.java: Ditto.
2991 * java/sql/DataTruncation.java: Ditto.
2992 * java/sql/DatabaseMetaData.java: Ditto.
2993 * java/sql/DriverManager.java: Ditto.
2994 * java/sql/PreparedStatement.java: Ditto.
2995 * java/sql/ResultSet.java: Ditto.
2996 * java/sql/ResultSetMetaData.java: Ditto.
2997 * java/sql/SQLException.java: Ditto.
2998 * java/sql/SQLWarning.java: Ditto.
2999 * java/sql/Statement.java: Ditto.
3000 * java/sql/Types.java: Ditto.
3002 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3004 * java/lang/natSystem.cc (init_properties): Set user.language and
3006 * configure.in: Check for setlocale.
3007 * configure: Rebuilt.
3008 * include/config.h.in: Rebuilt.
3010 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3011 the infate() call didn't deliver any output. Throw a ZipException if
3012 the needsDictionary() call returns true.
3013 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3014 * java/io/InputStreamReader: Use the default buffer size for the
3015 contained BufferedInputStream.
3017 2000-11-28 Warren Levy <warrenl@cygnus.com>
3019 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3020 more time zone entries.
3021 * java/text/SimpleDateFormat.java (format): Added case for
3024 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3026 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3027 directly rather than read() in all cases. Make primitive read
3028 implementations more efficient, as defined in JDK online docs.
3029 (skipBytes): Behave like the JDK's implementation.
3030 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3031 closed stream with checkStatus() whenever an IOException can be
3033 (checkStatus): New private method.
3035 2000-11-27 Warren Levy <warrenl@cygnus.com>
3037 * Makefile.am: Added natTimeZone.cc.
3038 * Makefile.in: Rebuilt.
3039 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3040 * java/text/DateFormatSymbols.java (ampms): Made package private.
3041 (eras): Made package private.
3042 (months): Made package private.
3043 (shortMonths): Made package private.
3044 (shortWeekdays): Made package private.
3045 (weekdays): Made package private.
3046 (formatPrefixes): New private field.
3047 (localPatternCharsDefault): Made private.
3048 (dateFormats): New package private field.
3049 (timeFormats): New package private field.
3050 (formatsForKey): New private method.
3051 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3052 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3053 * java/text/SimpleDateFormat.java: Merged with Classpath.
3054 * java/util/TimeZone.java: Merged with Classpath.
3055 * java/util/natTimeZone.cc: New file.
3057 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3059 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3060 (addElement): Don't increment elementCount twice. Doh.
3061 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3062 array needs to be expanded.
3064 * java/util/Collections.java (UnmodifiableCollection): Implement
3066 (UnmodifiableList): Throw UnsupportedOperationException from
3067 modification methods. Set `l' from the one-parameter constructor.
3068 (UnmodifiableMap): Implement toString().
3069 (SynchronizedCollection): Ditto.
3070 (SynchronizedList): Set `l' from the one-parameter constructor.
3071 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3072 (SynchronizedMap): Implement toString().
3074 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3076 * javax/naming/NameParser.java,
3077 javax/naming/directory/AttributeInUseException.java,
3078 javax/naming/directory/AttributeModificationException.java,
3079 javax/naming/directory/InvalidAttributeIdentifierException.java,
3080 javax/naming/directory/InvalidAttributesException.java,
3081 javax/naming/directory/InvalidAttributeValueException.java,
3082 javax/naming/directory/InvalidSearchControlsException.java,
3083 javax/naming/directory/InvalidSearchFilterException.java,
3084 javax/naming/directory/NoSuchAttributeException.java,
3085 javax/naming/directory/SchemaViolationException.java: New files.
3087 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3089 * javax/naming/InitialContext.java (rebind): Implement.
3090 (unbind): Implement.
3091 (rename): Implement.
3093 (listBindings): Implement.
3094 (destroySubcontext): Implement.
3095 (createSubcontext): Implement.
3096 (lookupLink): Implement.
3097 (getNameParser): Implement.
3098 (composeName): Implement.
3099 (addToEnvironment): Implement.
3101 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3103 * javax/naming/AuthenticationException.java,
3104 javax/naming/AuthenticationNotSupportedException.java,
3105 javax/naming/CannotProceedException.java,
3106 javax/naming/CommunicationException.java,
3107 javax/naming/ConfigurationException.java,
3108 javax/naming/ContextNotEmptyException.java,
3109 javax/naming/InsufficientResourcesException.java,
3110 javax/naming/InterruptedNamingException.java,
3111 javax/naming/InvalidNameException.java,
3112 javax/naming/LimitExceededException.java,
3113 javax/naming/LinkException.java,
3114 javax/naming/LinkLoopException.java,
3115 javax/naming/MalformedLinkException.java,
3116 javax/naming/NameAlreadyBoundException.java,
3117 javax/naming/NameNotFoundException.java,
3118 javax/naming/NamingSecurityException.java,
3119 javax/naming/NoPermissionException.java,
3120 javax/naming/NotContextException.java,
3121 javax/naming/PartialResultException.java,
3122 javax/naming/ReferralException.java,
3123 javax/naming/ServiceUnavailableException.java,
3124 javax/naming/SizeLimitExceededException.java,
3125 javax/naming/TimeLimitExceededException.java: New files.
3127 * javax/naming/Name.java (clone): New method.
3128 (compareTo): New method.
3129 (isEmpty): New method.
3130 (getAll): New method.
3131 (getPrefix): New method.
3132 (getSuffix): New method.
3133 (startsWith): New method.
3134 (endsWith): New method.
3135 (addAll): New method.
3136 (addAll): New method.
3139 (remove): New method.
3141 * javax/naming/Context.java (lookup): New method.
3142 (rebind): New method.
3143 (unbind): New method.
3144 (rename): New method.
3146 (listBindings): New method.
3147 (destroySubcontext): New method.
3148 (createSubcontext): New method.
3149 (lookupLink): New method.
3150 (getNameParser): New method.
3151 (composeName): New method.
3152 (addToEnvironment): New method.
3153 (removeFromEnvironment): New method.
3154 (getEnvironment): New method.
3155 (close): New method.
3156 (getNameInNamespace): New method.
3158 * javax/naming/InitialContext.java (lookup): New method.
3159 (rebind): New method.
3160 (unbind): New method.
3161 (rename): New method.
3163 (listBindings): New method.
3164 (destroySubcontext): New method.
3165 (createSubcontext): New method.
3166 (lookupLink): New method.
3167 (getNameParser): New method.
3168 (composeName): New method.
3169 (addToEnvironment): New method.
3170 (removeFromEnvironment): New method.
3171 (getEnvironment): New method.
3172 (close): New method.
3173 (getNameInNamespace): New method.
3175 2000-11-26 Tom Tromey <tromey@cygnus.com>
3177 * Makefile.in: Rebuilt.
3178 * Makefile.am (core_java_source_files): Added
3179 RuntimePermission.java.
3180 * java/lang/RuntimePermission.java: Imported from Classpath.
3181 * java/lang/Thread.java (getContextClassLoader): Now
3182 synchronized. Added security code.
3183 (setContextClassLoader): Likewise.
3185 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3186 length field of array.
3187 (_Jv_NewPrimArray): Likewise.
3188 * gcj/array.h (__JArray): `length' field now const. Added
3191 2000-11-26 Anthony Green <green@redhat.com>
3193 * javax/naming/spi/NamingManager.java,
3194 javax/naming/spi/ObjectFactory.java,
3195 javax/naming/spi/InitialContextFactory.java,
3196 javax/naming/spi/InitialContextFactoryBuilder.java,
3197 javax/naming/RefAddr.java, javax/naming/Reference.java,
3198 javax/naming/NamingException.java, javax/naming/Context.java,
3199 javax/naming/Referenceable.java,
3200 javax/naming/directory/InitialDirContext.java,
3201 javax/naming/directory/DirContext.java,
3202 javax/naming/directory/Attributes.java,
3203 javax/naming/directory/Attribute.java,
3204 javax/naming/StringRefAddr.java,
3205 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3206 javax/naming/InitialContext.java,
3207 javax/naming/NoInitialContextException.java: New files.
3209 2000-11-25 Anthony Green <green@redhat.com>
3211 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3212 (_Jv_NewPrimArray): Likewise.
3213 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3214 (class JArray): Removed constructor.
3216 * java/lang/Thread.java (context_class_loader): New private data.
3217 (getContextClassLoader): New method.
3218 (setContextClassLoader): New method.
3219 (Thread): Initialize context_class_loader.
3221 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3222 (getResource): Rename to findResource.
3223 (findResource): New method. Used to be getResource.
3224 (getResourceAsStream): Deleted.
3225 (jarFileize): Extracted logic from URLClassLoader constructor into
3226 this new private method.
3227 (addURL): New protected method.
3228 (URLClassLoader): Call jarFileize. Use addElement instead of
3230 (findResources): New method.
3232 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3233 (getResource): Implement correct logic.
3234 (findResource): New method.
3235 (getResources): New method.
3236 (findClass): Create a ClassNotFoundException with the name of the
3237 class rather than nothing at all.
3238 (defineClass) Only throw ClassFormatError.
3240 * java/lang/Class.java (forName): New method.
3241 * java/lang/Class.h (forName): New method.
3242 * java/lang/natClass.cc (forName): New method.
3244 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3246 * java/lang/System.java (setProperties): Only call init_properties()
3247 if properties is null.
3248 (getProperties): Ditto.
3249 (getProperty): Ditto.
3250 (setProperty): Call init_properties if properties are null.
3251 (prop_init): Remove field.
3252 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3253 method. Check for null properties after synchronizing instead of
3254 prop_init flag. Set the properties field last for thread safety.
3256 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3257 test for gcj.dumpobjects property and enable object stream dumping
3259 (dumpElement): No longer native.
3260 (dumpElementln): Ditto.
3261 (setDump): Do not define.
3262 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3263 (dumpElementln): Removed.
3266 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3268 * configure: Rebuilt.
3269 * Makefile.in: Rebuilt.
3270 * Makefile.am (built_java_source_files): Add Configuration.java.
3271 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3272 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3273 Create `gnu' directory in the build tree.
3274 * gnu/classpath/Configuration.java.in: New file.
3276 2000-11-24 Tom Tromey <tromey@cygnus.com>
3278 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3280 (_Jv_NewPrimArray): Likewise.
3282 * gcj/array.h (__JArray): `length' field now const. Added
3284 (class JArray): Added constructor.
3286 2000-11-23 Mark Wielaard <mark@klomp.org>
3288 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3291 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3293 * java/util/Vector.java: Improve exception messages.
3294 (Vector): Check initialCapacity for IllegalArgumentException.
3295 (tromToSize): Don't check for elementCount == elementData.length
3297 (toArray): Don't try to set null marker if target array is the same
3298 length as the vector.
3300 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3302 * Makefile.in: Rebuilt.
3303 * Makefile.am (core_java_source_files): Added Collections.java.
3304 * java/util/List.java: Merged from classpath.
3305 * java/util/Vector.java: Ditto.
3306 * java/util/Collections.java: From classpath.
3307 * java/util/ArrayList.java (addAll(Collection)): Call
3308 addAll(int,Collection) instead of duplicating code.
3309 (indexOf): Clean up int initialization.
3310 (clear): Set cleared array entries to null, to allow garbage
3312 * java/util/List.java: Minor formatting fixes.
3313 * java/util/SimpleTimeZone.java: ditto.
3315 2000-11-18 Tom Tromey <tromey@cygnus.com>
3317 * Makefile.in: Rebuilt.
3318 * Makefile.am (core_java_source_files): Added new files.
3319 * java/lang/reflect/ReflectPermission.java: New class.
3320 * java/io/FileFilter.java: From Classpath
3321 * java/io/FilePermission.java: From Classpath.
3323 2000-11-17 Tom Tromey <tromey@cygnus.com>
3325 * java/lang/reflect/AccessibleObject.java (isAccessible,
3326 setAccessible): Now public.
3328 * java/lang/natString.cc: Include Locale.h.
3329 (toUpperCase): Added `locale' argument. Handle locale
3331 (toLowerCase): Added `locale' argument. Handle locale
3333 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3334 CAPITAL_I): New defines.
3335 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3338 (toUpperCase, toLowerCase): New methods. Variants which accept
3341 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3344 * java/util/PropertyPermission.java: Re-merged from Classpath.
3346 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3348 * java/text/StringCharacterIterator.java: Reindented.
3349 (setText): New method.
3351 2000-11-17 Mark Wielaard <mark@klomp.org>
3353 Merge with Classpath (changes by Bryce McKinlay)
3354 * java/util/jar/*.java: Reformat all to unofficial standard coding
3355 style. No changes of substance.
3357 2000-11-17 Mark Wielaard <mark@klomp.org>
3359 * java/util/zip/*.java: Javadoc updates.
3361 2000-11-17 Tom Tromey <tromey@cygnus.com>
3363 * java/text/CollationKey.java: Implement Comparable.
3364 (compareTo(Object)): New method.
3365 * java/text/Collator.java (compare(Object,Object)): New method.
3366 Implement Comparator.
3368 * java/util/zip/InflaterInputStream.java (available): New method.
3369 (close): New method.
3370 (read, available, skip, fill): Throw exception if stream closed.
3371 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3372 getNextEntry): Throw exception if closed.
3374 2000-11-16 Tom Tromey <tromey@cygnus.com>
3376 * java/io/PushbackReader.java: Merged with Classpath.
3377 * java/util/Arrays.java: Updated from Classpath.
3379 * scripts/blocks.pl: New file.
3380 * java/lang/Character.java (Subset): New class.
3381 (UnicodeBlock): New class.
3383 * java/lang/Math.java (toDegrees, toRadians): New methods.
3385 * java/lang/Float.java: Implement Comparable.
3386 (compareTo): New methods.
3387 * java/lang/Double.java: Implement Comparable.
3388 (compareTo): New methods.
3390 2000-11-16 Warren Levy <warrenl@cygnus.com>
3392 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3394 (listeners): Made transient.
3395 (source): Renamed from 'bean'.
3396 (children): New field for serialization.
3397 (propertyChangeSupportSerializedDataVersion): Ditto.
3398 (serialVersionUID): Ditto.
3399 (writeObject): New serialization method.
3400 (readObject): New serialization method.
3401 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3403 (listeners): Made transient.
3404 (source): Renamed from 'bean'.
3405 (children): New field for serialization.
3406 (vetoableChangeSupportSerializedDataVersion): Ditto.
3407 (serialVersionUID): Ditto.
3408 (writeObject): New serialization method.
3409 (readObject): New serialization method.
3410 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3411 to allow constructor to have a return type (i.e. the class that the
3412 constructor constructs).
3414 2000-11-14 Tom Tromey <tromey@cygnus.com>
3416 * Makefile.in: Rebuilt.
3417 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3420 2000-11-02 Warren Levy <warrenl@cygnus.com>
3422 * java/io/ObjectInputStream.java (readObject): Added code to
3423 conditionally dump out the serialized data.
3424 Handle ENDBLOCKDATA case a bit more gracefully since the current
3425 behavior doesn't seem to work as expected.
3426 (readStreamHeader): Added code for serialized data dumper.
3427 (readNextBlock): Ditto.
3428 (readFields): Ditto.
3429 (dump): New private static field for turning on/off dumper.
3430 (setDump): New native method.
3431 (dumpElement): New native method.
3432 (dumpElementln): New native method.
3433 * java/io/natObjectInputStream.cc (setDump): New method.
3434 (dumpElement): New method.
3435 (dumpElementln): New method.
3437 2000-11-02 Warren Levy <warrenl@cygnus.com>
3439 * java/net/InetAddress.java (addr): Renamed from 'address'.
3440 (address): New field to match Serialized Form doc.
3441 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3442 (family): New serialization field.
3443 (serialVersionUID): New field.
3444 (readObject): New method.
3445 (writeObject): New method.
3446 (getFamily): New native method.
3447 (InetAddress): Set family.
3448 * java/net/natInetAddress.cc (getFamily): New method.
3449 (addr): Renamed from 'address'.
3450 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3451 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3452 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3454 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3456 * java/util/AbstractList.java (SubList): Make it a top-level private
3458 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3460 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3461 * Makefile.in: Rebuilt.
3463 2000-11-02 Tom Tromey <tromey@cygnus.com>
3465 * Makefile.in: Rebuilt.
3466 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3469 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3471 * java/util/AbstractList.java (remove): Comment out modCount increment
3472 to work around compiler bug.
3475 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3477 * java/util/AbstractList.java: Throw messages with
3478 IndexOutOfBoundsExceptions.
3479 (listIterator()): Call listIterator(0).
3480 (size): New field. Initialize to size().
3481 (hasNext): Test position against size, not size().
3482 (remove): Increment knownMod by one instead of resetting it from
3485 (SubList.upMod): Removed.
3486 (SubList.set): Don't call upMod() or update knownMod.
3487 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3488 (SubList.remove): Ditto.
3489 (SubList.addAll): Don't call backingList.size(). Increment size from
3491 (SubList.iterator): New method. Call listIterator(0).
3492 (SubList.listIterator): New method. Restore code to return an anonymous
3493 listIterator implementation (with some changes).
3494 * java/util/AbstractSequentialList.java: Throw messages with
3495 IndexOutOfBoundsExceptions.
3496 (addAll): Add a specnote.
3497 * java/util/ArrayList.java (removeRange): Get the math right.
3498 (addAll): Increment modCount _before_ creating iterator.
3499 * java/util/LinkedList.java: Rewritten, mostly.
3501 2000-11-01 Tom Tromey <tromey@cygnus.com>
3503 * scripts/encodings.pl: Added `ASCII' alias.
3504 * Makefile.in: Rebuilt.
3505 * Makefile.am (convert_source_files): Added new files.
3506 * gnu/gcj/convert/Input_ASCII.java: New file.
3507 * gnu/gcj/convert/Output_ASCII.java: New file.
3508 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3509 out-of-range characters.
3510 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3511 (read): Swap bytes if required. Treat `count' as character count,
3513 (write): Likewise. Also, handle case where iconv fails on a given
3515 (init): Put encoding into exception.
3516 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3517 (static): Call iconv_init. Rebuilt alias list.
3518 (iconv_init): New private method.
3520 2000-11-01 Tom Tromey <tromey@cygnus.com>
3522 * Makefile.in: Rebuilt.
3523 * Makefile.am (install-exec-hook): Only make a single symlink, and
3524 remove the destination before making the link.
3525 * configure: Rebuilt.
3526 * configure.in: Call AC_PROG_LN_S.
3528 2000-10-31 Warren Levy <warrenl@cygnus.com>
3530 * jni.cc: Added include of java/lang/ThreadGroup.h.
3531 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3532 per change of 2000-10-05.
3534 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3536 * java/util/BitSet.java: Updated @specnote.
3538 * java/io/Reader.java: Merge docs from classpath.
3539 (skip): Synchronize on `lock'.
3540 * java/io/FileReader.java: Import correct implementation from
3542 * java/io/StringReader.java: Merge docs from classpath.
3543 (ready): Throw IOException if stream is closed.
3545 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3547 * java/util/AbstractCollection.java (addAll): Use size() instead of
3548 hasNext() in iterator loop.
3550 (contains): Ditto. Simplify loop.
3551 (containsAll): Ditto.
3556 (toString): Ditto. Use string concatenation operators, not
3558 * java/util/AbstractList.java (addAll): Use size() instead of
3559 hasNext() in iterator loop.
3562 (indexOf): Ditto. Don't take null check outside of the loop.
3563 (iterator): Return an AbstractListItr instead of anonymous class.
3564 (lastIndexOf): Use a for loop bounded by size() instead of
3565 hasPrevious() in iterator loop.
3566 (listIterator): Return an AbstractListItr.
3567 (removeRange): Remove bounds checking code and docs.
3568 (AbstractListItr): New inner class. Code moved here from
3570 (SubList.iterator): Removed. Use default implementation from
3571 AbstractList instead.
3572 (SubList.listIterator): As above.
3573 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3574 instead of hasNext() in iterator loop.
3575 (containsValue): Ditto.
3581 (toString): Ditto. Use string concatenation operators, not
3583 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3584 bounded by size() instead of hasNext() in iterator loop.
3585 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3586 part of normal execution flow. Do an explicit null check instead.
3587 * java/util/ArrayList.java (_iSize): Rename to `size'.
3588 (_arData): Rename to `data'.
3589 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3592 (removeRange): Make protected. Don't check bounds.
3593 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3595 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3597 (addAll (int, Collection)): Check lower bounds. Simplify exception
3599 (clone): Clone the data array too.
3600 (indexOf): Inline doesEqual().
3601 (lastIndexOf): Ditto.
3602 (clear): Don't set array data to null.
3603 (set): Check lower bounds. Simplify exception string.
3604 (toArray): Correct comment.
3605 (trimToSize): Don't update modCount, this is not a structural change.
3608 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3610 (toString): Declare `bit' as long, not int.
3611 (data): Made package-private, not private.
3613 2000-10-27 Warren Levy <warrenl@cygnus.com>
3615 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3616 array elements to true.
3618 2000-10-27 Warren Levy <warrenl@cygnus.com>
3620 * Makefile.am: Added locale files from Classpath.
3621 * Makefile.in: Rebuilt.
3622 * gnu/java/locale/Calendar.java: New file.
3623 * gnu/java/locale/Calendar_de.java: New file.
3624 * gnu/java/locale/Calendar_en.java: New file.
3625 * gnu/java/locale/Calendar_nl.java: New file.
3626 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3627 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3628 serialization compatibility.
3629 (scale): Made private.
3630 (serialVersionUID): New field.
3631 * java/math/BigInteger.java (ival): Made transient.
3632 (words): Made transient.
3633 (bitCount): New serialization field.
3635 (firstNonzeroByteNum): Ditto.
3636 (lowestSetBit): Ditto.
3639 (serialVersionUID): New field.
3640 (readObject): New method.
3641 (writeObject): New method.
3642 * java/util/BitSet.java (serialVersionUID): New field.
3643 * java/util/Calendar.java: Replaced with Classpath file.
3644 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3645 of getDefault() for TimeZone or Locale instead of passing nulls.
3646 * java/util/Locale.java (serialVersionUID): New field.
3647 (writeObject): New method.
3648 (readObject): New method.
3649 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3651 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3653 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3654 (core_java_source_files): Put java.lang, java.io, and java.util here.
3655 (ordinary_java_source_files): Order so that core_java_source_files are
3657 (java_source_files): Reorder so that special_java_source_files are
3659 * configure.in: Don't pass -I flag to gcj.
3660 * Makefile.in: Rebuilt.
3661 * configure: Rebuilt.
3663 2000-10-25 Tom Tromey <tromey@cygnus.com>
3665 * Makefile.in: Rebuilt.
3666 * Makefile.am (install-exec-hook): New target.
3668 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3670 * java/util/EventObject.java: Merged from classpath.
3672 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3675 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3677 * java/util/AbstractSet.java (equals): Re-installed original code.
3679 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3681 * Makefile.am: Added rules for libgcjx library.
3682 * Makefile.in: Rebuilt.
3683 * configure.in: Added check for X.
3684 * configure: Rebuilt.
3685 * gnu/awt/LightweightRedirector.java: New file.
3686 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3687 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3688 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3689 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3690 * gnu/awt/j2d/MappedRaster.java: New file.
3691 * gnu/awt/xlib/XCanvasPeer.java: New file.
3692 * gnu/awt/xlib/XEventLoop.java: New file.
3693 * gnu/awt/xlib/XEventQueue.java: New file.
3694 * gnu/awt/xlib/XFontMetrics.java: New file.
3695 * gnu/awt/xlib/XFramePeer.java: New file.
3696 * gnu/awt/xlib/XGraphics.java: New file.
3697 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3698 * gnu/awt/xlib/XPanelPeer.java: New file.
3699 * gnu/awt/xlib/XToolkit.java: New file.
3700 * gnu/gcj/xlib/Clip.java: New file.
3701 * gnu/gcj/xlib/Colormap.java: New file.
3702 * gnu/gcj/xlib/Display.java: New file.
3703 * gnu/gcj/xlib/Drawable.java: New file.
3704 * gnu/gcj/xlib/Font.java: New file.
3705 * gnu/gcj/xlib/GC.java: New file.
3706 * gnu/gcj/xlib/Pixmap.java: New file.
3707 * gnu/gcj/xlib/Screen.java: New file.
3708 * gnu/gcj/xlib/Visual.java: New file.
3709 * gnu/gcj/xlib/WMSizeHints.java: New file.
3710 * gnu/gcj/xlib/Window.java: New file.
3711 * gnu/gcj/xlib/WindowAttributes.java: New file.
3712 * gnu/gcj/xlib/XAnyEvent.java: New file.
3713 * gnu/gcj/xlib/XButtonEvent.java: New file.
3714 * gnu/gcj/xlib/XColor.java: New file.
3715 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3716 * gnu/gcj/xlib/XConnectException.java: New file.
3717 * gnu/gcj/xlib/XEvent.java: New file.
3718 * gnu/gcj/xlib/XException.java: New file.
3719 * gnu/gcj/xlib/XExposeEvent.java: New file.
3720 * gnu/gcj/xlib/XID.java: New file.
3721 * gnu/gcj/xlib/XImage.java: New file.
3722 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3723 * gnu/gcj/xlib/natClip.cc: New file.
3724 * gnu/gcj/xlib/natColormap.cc: New file.
3725 * gnu/gcj/xlib/natDisplay.cc: New file.
3726 * gnu/gcj/xlib/natDrawable.cc: New file.
3727 * gnu/gcj/xlib/natFont.cc: New file.
3728 * gnu/gcj/xlib/natGC.cc: New file.
3729 * gnu/gcj/xlib/natPixmap.cc: New file.
3730 * gnu/gcj/xlib/natScreen.cc: New file.
3731 * gnu/gcj/xlib/natVisual.cc: New file.
3732 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3733 * gnu/gcj/xlib/natWindow.cc: New file.
3734 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3735 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3736 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3737 * gnu/gcj/xlib/natXColor.cc: New file.
3738 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3739 * gnu/gcj/xlib/natXException.cc: New file.
3740 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3741 * gnu/gcj/xlib/natXImage.cc: New file.
3742 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3743 * java/awt/EventDispatchThread.java: Start thead on creation.
3745 2000-10-20 Tom Tromey <tromey@cygnus.com>
3747 From Arno J. Klaassen:
3748 * interpret.cc: Include <stdlib.h> for alloca.
3749 * defineclass.cc: Include <stdlib.h> for alloca.
3751 * Makefile.in: Rebuilt.
3752 * Makefile.am: Include deps.mk.
3753 (GCJCOMPILE): Added -MD, -MT, and -MF.
3754 ($(javao_files)): Don't depend on libgcj.zip.
3755 (all-recursive): New target.
3756 (%.lo:%.cc): Do dependency tracking.
3757 ($(nat_headers)): Don't depend on libgcj.zip.
3758 * configure: Rebuilt.
3759 * configure.in: Make .d files and deps.mk.
3761 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3763 * exception.cc: Don't #include "exception".
3764 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3766 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3767 * Makefile.in: Updated.
3769 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3771 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3772 * java/awt/peer/ComponentPeer.java (disable): Removed.
3775 (minimumSize): Removed.
3776 (preferredSize): Removed.
3779 * java/awt/peer/ListPeer.java (addItem): Removed.
3781 (minimumSize): Removed.
3782 (preferredSize): Removed.
3783 (setMultipleSelections): Removed.
3784 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3785 (remove): Renamed from removeMenu.
3786 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3788 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3789 (remove): Renamed from removeItem.
3790 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3791 (getMinimumSize): Removed.
3792 (getPreferredSize): Removed.
3793 (minimumSize): Removed.
3794 (preferredSize): Removed.
3795 (replaceText): Removed.
3796 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3797 (preferredSize): Removed.
3798 (getMinimumSize): Removed.
3799 (getPreferredSize): Removed.
3800 (setEchoCharacter): Removed.
3802 2000-10-10 Warren Levy <warrenl@cygnus.com>
3804 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3805 * java/sql/Date.java (serialVersionUID): New field.
3806 * java/sql/Time.java (serialVersionUID): New field.
3807 * java/sql/Timestamp.java (serialVersionUID): New field.
3808 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3809 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3810 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3811 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3812 (readObject): New serialization method.
3813 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3814 (serialVersionOnStream): New field.
3815 (readObject): New serialization method.
3816 (getMonetaryDecimalSeparator): New method.
3817 (setMonetaryDecimalSeparator): New method.
3818 * java/text/NumberFormat.java (maxFractionDigits): New field.
3819 (maxIntegerDigits): New field.
3820 (minFractionDigits): New field.
3821 (minIntegerDigits): New field.
3822 (serialVersionOnStream): New field.
3823 (serialVersionUID): New field.
3824 (readObject): New serialization method.
3825 (writeObject): New serialization method.
3826 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3827 (serialVersionOnStream): New field.
3828 (serialVersionUID): New field.
3829 (readObject): New serialization method.
3831 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3833 * configure.in (GCJ): Avoid bogus error message when looking for
3834 (and not finding) gcj in the build tree.
3835 * configure: Rebuilt.
3837 2000-10-09 Tom Tromey <tromey@cygnus.com>
3839 * configure: Rebuilt.
3840 * configure.in: Include sys/types.h when checking for socklen_t.
3841 From Arno J. Klaassen.
3843 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3845 * include/jvm.h: Enable __builtin_expect().
3847 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3848 the main program. Fix for PR libgcj/341.
3850 2000-10-07 Tom Tromey <tromey@cygnus.com>
3852 * java/util/Properties.java: Merged with Classpath version.
3854 2000-10-05 Tom Tromey <tromey@cygnus.com>
3856 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3857 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3858 * java/lang/Class.h (Object): Added `class$' field.
3859 * java/lang/Object.h (Object): Added `class$' field.
3860 * defineclass.cc (ClassClass): Use `class$' form.
3861 (ClassObject): Likewise.
3862 * resolve.cc (ClassObject): Use `class$' form.
3863 (ObjectClass): Likewise.
3864 * interpret.cc (ClassError): Removed.
3865 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3867 (IntegerClass): Likewise.
3868 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3870 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3871 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3872 SerializableClass): Likewise.
3873 Include Serializable.h, Cloneable.h.
3874 * java/lang/natSystem.cc (SystemClass): Removed.
3875 (init_properties): Use `class$' form.
3876 * java/lang/natObject.cc (CloneableClass): Removed.
3877 (clone): Use `class$' form.
3878 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3879 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3880 ConstructorClass): Likewise.
3881 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3882 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3883 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3884 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3886 (ClassClass): Likewise.
3887 * include/jvm.h (StringClass): Use `class$' form.
3888 * prims.cc (ObjectClass): Removed.
3889 (_Jv_RunMain): Use `class$' form.
3890 (_Jv_AllocObject): Likewise.
3891 * jni.cc (ClassClass): Use `class$' form.
3892 (ThrowableClass): Likewise.
3893 (ObjectClass): Likewise.
3894 (MethodClass): Likewise.
3895 (ThreadGroupClass): Likewise.
3896 (NativeThreadClass): Likewise.
3897 * boehm.cc (ObjectClass): Removed.
3898 (ClassClass): Removed.
3899 (_Jv_MarkObj): Use `class$' form.
3900 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3903 2000-10-05 Warren Levy <warrenl@cygnus.com>
3905 * Makefile.am: Removed java/io/Replaceable.java and
3906 java/io/Resolvable.java.
3907 * Makefile.in: Rebuilt.
3908 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3910 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3912 (processResolution): Handle readResolve method via reflection with
3913 removal of Resolvable interface.
3914 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3915 method via reflection with removal of Replaceable interface.
3916 * java/io/Replaceable.java: Removed.
3917 * java/io/Resolvable.java: Removed.
3918 * java/security/Key.java (serialVersionUID): New field.
3919 * java/security/Provider.java (serialVersionUID): New field.
3920 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3922 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3924 * java/sql/DataTruncation.java (serialVersionUID): New field.
3925 * java/sql/SQLException.java (serialVersionUID): New field.
3926 * java/sql/SQLWarning.java (serialVersionUID): New field.
3927 * java/util/Date.java (serialVersionUID): New field.
3928 (millis): Made transient.
3929 (readObject): New method.
3930 (writeObject): New method.
3932 2000-10-05 Tom Tromey <tromey@cygnus.com>
3934 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3936 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3938 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3939 (JvRunMain): Set _Jv_argv and _Jv_argc.
3940 * java/awt/Component.java: Minor fixes.
3941 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3942 * java/awt/Toolkit.java (systemEventQueue): Removed.
3943 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3944 * java/awt/Window.java (getToolkit): Don't call super.
3945 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3946 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3947 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3948 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3949 * gnu/awt/gtk/GtkFramePeer.java: New file.
3950 * gnu/awt/gtk/GtkMainThread.java: New file.
3951 * gnu/awt/gtk/GtkToolkit.java: New file.
3952 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3953 * gnu/awt/gtk/gtkcommon.cc: New file.
3954 * gnu/awt/gtk/gtkcommon.h: New file.
3955 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3956 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3957 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3958 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3959 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3960 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3962 2000-09-30 Tom Tromey <tromey@cygnus.com>
3964 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3965 interrupted before modifying the cv's wait set.
3968 2000-09-30 Hans Boehm <boehm@acm.org>
3969 Bryce McKinlay <bryce@albatross.co.nz>
3971 Implement bitmap descriptor based marking for Boehm GC.
3973 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3974 * configure: Rebuilt.
3975 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3976 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3977 method get_finalizer().
3978 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3979 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3980 (_Jv_AllocObj): Add new jclass parameter.
3981 (_Jv_AllocArray): Ditto.
3982 (_Jv_BuildGCDescr): New prototype.
3983 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3984 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3985 get_finalizer() instead of direct finalizer vtable offset.
3986 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3987 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3988 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3989 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3990 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3991 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3992 (_Jv_DetermineVTableIndex): Ditto.
3993 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3994 calculations to account for new gc_descr field.
3995 * boehm.cc: #include gc_gcj.h.
3996 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3997 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3998 New commentary from HB. Mark the classes vtable.
3999 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4000 (GC_DEFAULT_DESCR): New #define.
4001 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4002 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4003 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4004 scan conservativly if size is less than min_heap_addr. Set vtable
4005 pointer of new object before returning.
4006 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4007 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4008 allocation for obj_kind_x.
4009 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4010 (_Jv_AllocObj): Set vtable on returned object.
4011 (_Jv_AllocArray): Ditto.
4012 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4013 (_Jv_NewPrimArray): Ditto.
4014 (_Jv_AllocObj): Declare as a friend.
4015 (_Jv_AllocArray): Ditto.
4016 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4017 from &ObjectClass into new array class. Remove offset-by-one
4018 adjustments from `method' size calculations to account for gc_descr
4021 2000-09-26 Tom Tromey <tromey@cygnus.com>
4023 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4024 `remove', not `add'.
4026 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4028 * java/lang/natSystem.cc (file_encoding): Added return statement.
4030 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4032 * Makefile.am: Re-work shell commands that exceeded command-line
4034 * Makefile.in: Rebuilt.
4036 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4038 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4039 * java/lang/natDouble.cc: Likewise.
4040 * java/lang/reflect/natMethod.cc: Likewise.
4041 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4043 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4045 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4047 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4048 * acinclude.m4: Arrange for automake to not bring in a new
4049 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4050 * Makefile.am: Leave it up to automake to subst GCJ.
4051 * aclocal.m4, configure, Makefile.in: Rebuilt.
4053 2000-09-13 Tom Tromey <tromey@cygnus.com>
4055 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4056 (get): Ensure Boolean class is initialized.
4057 * java/lang/reflect/natField.cc (BooleanClass): New define.
4058 (get): Ensure Boolean class is initialized.
4060 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4062 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4063 Initialize with anonymous class.
4064 (compareToIgnoreCase): New method.
4066 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4067 (uncaughtException): Set had_uncaught_exception.
4068 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4069 exit with error status if set.
4070 (_Jv_RunMain): Ditto.
4072 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4074 * configure: Rebuilt with new ../libtool.m4.
4076 2000-09-11 Tom Tromey <tromey@cygnus.com>
4078 * java/lang/reflect/Field.java (toString): Don't rely on
4081 2000-09-08 Tom Tromey <tromey@cygnus.com>
4083 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4084 default decoder use iconv.
4085 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4086 Let default encoder use iconv.
4087 * configure: Rebuilt.
4088 * configure.in: Check for nl_langinfo and <langinfo.h>.
4089 * java/lang/natSystem.cc (file_encoding): New function.
4090 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4092 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4094 * acinclude.m4: Simplify the tests for CC and CXX.
4095 * aclocal.m4, configure: Rebuilt.
4097 * acinclude.m4: Include libtool macros from the source tree.
4098 * aclocal.m4, configure: Rebuilt.
4100 2000-09-08 Warren Levy <warrenl@cygnus.com>
4102 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4103 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4104 * java/io/File.java (writeObject): Added.
4105 (readObject): Added.
4106 (serialVersionUID): Added.
4107 * java/io/ObjectOutputStream.java (writeObject): Initialized
4108 fieldsAlreadyWritten before recursion rather than after.
4109 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4110 * java/io/OptionalDataException.java (serialVersionUID): Added.
4111 (OptionalDataException): Made package private.
4112 * java/io/SyncFailedException.java (SyncFailedException): Removed
4113 default constructor to match spec.
4114 * java/lang/Boolean.java (serialVersionUID): Added.
4115 * java/lang/Byte.java (serialVersionUID): Added.
4116 * java/lang/Character.java (serialVersionUID): Added.
4117 * java/lang/Double.java (serialVersionUID): Added.
4118 * java/lang/Float.java (serialVersionUID): Added.
4119 * java/lang/Integer.java (serialVersionUID): Added.
4120 * java/lang/Long.java (serialVersionUID): Added.
4121 * java/lang/Number.java (serialVersionUID): Added.
4122 * java/lang/Short.java (serialVersionUID): Added.
4123 * java/lang/String.java (serialVersionUID): Added.
4124 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4126 * java/lang/reflect/InvocationTargetException.java
4127 (serialVersionUID): Added.
4128 * java/net/URL.java (handler): Made transient.
4129 (hashCode): Added field for serialization, per spec. and use
4130 cached value if available.
4131 (serialVersionUID): Added.
4132 (URL): Initialize hashCode.
4133 (set): Adjust hashCode.
4134 (readObject): New Method to initialize the protocol handler when
4136 (writeObject): New method.
4137 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4138 * java/text/Collator.java: Removed 'implements Serializable'.
4139 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4140 * java/util/Properties.java (serialVersionUID): Added.
4141 * java/util/Random.java (serialVersionUID): Added.
4142 (seed): Made private.
4143 (nextNextGaussian): Made private.
4144 (haveNextNextGaussian): Made private.
4145 * java/util/Stack.java (serialVersionUID): Added.
4146 * java/util/TimeZone.java (serialVersionUID): Added.
4147 * java/util/Vector.java (serialVersionUID): Added.
4149 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4151 * Makefile.am (Thread.h): Don't be friends with native threads
4153 * Makefile.in: Rebuilt.
4154 * java/lang/Thread.java (interrupt_flag): Make package-private.
4156 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4158 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4159 to avoid long long division.
4161 2000-09-06 Tom Tromey <tromey@cygnus.com>
4163 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4165 * java/lang/reflect/Method.java (toString): Use `getName' for
4168 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4169 `args' if method takes no parameters.
4171 Fix for PR java.lang/339:
4172 * java/lang/natPosixProcess.cc (fail): New function.
4173 (cleanup): New function.
4174 (startProcess): Use them. Create pipe so child can communicate
4175 exec failure back to parent.
4177 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4179 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4181 (send): Undo last patch. Remove the label only.
4183 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4185 * java/net/natInetAdress.cc: Ditto.
4187 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4189 2000-09-05 Tom Tromey <tromey@cygnus.com>
4191 * doc/cni.sgml: Updated from master copy.
4193 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4195 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4197 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4199 * java/lang/fdlibm.h: #undef __P if previously defined.
4200 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4201 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4205 2000-09-04 Tom Tromey <tromey@cygnus.com>
4207 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4210 2000-09-04 Anthony Green <green@redhat.com>
4212 Fix for PR java.io/203:
4213 * java/io/File.java (createTempFile): Obey directory argument.
4214 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4215 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4216 variable to set java.io.tmpdir on non-WIN32 systems.
4218 2000-09-04 Anthony Green <green@redhat.com>
4220 * java/io/File.java (deleteOnExit): New method.
4221 * gnu/gcj/runtime/FileDeleter.java: New class.
4222 * java/lang/natRuntime.cc (exit): Call
4223 FileDeleter.deleteOnExitNow()
4224 * Makefile.am: Add FileDeleter.java.
4225 * Makefile.in: Rebuilt.
4227 2000-09-02 Tom Tromey <tromey@cygnus.com>
4229 * Makefile.in: Rebuilt.
4230 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4231 environment variable.
4233 2000-09-01 Andrew Haley <aph@redhat.com>
4235 * java/io/StreamTokenizer.java: Don't throw a
4236 NumberFormatException if a field is numeric as far as the
4237 StreamTokenizer is concerned but not as far as Double.valueOf() is
4238 concerned: return a zero instead.
4240 2000-08-30 Tom Tromey <tromey@cygnus.com>
4242 * Makefile.in: Rebuilt.
4243 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4245 2000-08-28 Tom Tromey <tromey@cygnus.com>
4247 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4248 gnu/gcj/awt/ComponentDataBlitOp.java,
4249 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4250 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4251 java/awt/color/ICC_ColorSpace.java,
4252 java/awt/color/ICC_Profile.java,
4253 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4254 java/awt/image/ComponentColorModel.java,
4255 java/awt/image/ComponentSampleModel.java,
4256 java/awt/image/DataBuffer.java,
4257 java/awt/image/DataBufferByte.java,
4258 java/awt/image/DataBufferInt.java,
4259 java/awt/image/DataBufferUShort.java,
4260 java/awt/image/DirectColorModel.java,
4261 java/awt/image/IndexColorModel.java,
4262 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4263 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4264 java/awt/image/SinglePixelPackedSampleModel.java,
4265 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4266 Removed Latin-1 copyright symbols.
4267 * java/util/zip/ZipFile.java: Indentation fixes.
4269 2000-08-27 Mark Wielaard <mark@klomp.org>
4271 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4272 constructor, close can delete the file, finalize calls close.
4273 * java/util/jar/JarFile.java: Constructor that takes mode now
4276 2000-08-27 Anthony Green <green@redhat.com>
4278 * java/util/ArrayList.java, java/util/Timer.java,
4279 java/util/LinkedList.java, java/util/TimerTask.java,
4280 java/util/HashMap.java, java/util/AbstractMap.java,
4281 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4282 java/util/SortedSet.java: Imported from GNU Classpath.
4283 * Makefile.in: Rebuilt.
4284 * Makefile.am: Added new files.
4286 2000-08-26 Anthony Green <green@redhat.com>
4288 * Makefile.in: Rebuilt.
4289 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4292 * prims.cc: Include ClassLoader.h.
4293 (_Jv_RunMain): When executing jar files, classpath must be the jar
4294 file only. Lose our reference to the system ClassLoader in order
4295 to get a new one with the correct classpath.
4296 * java/lang/natSystem.cc (init_properties): When executing a jar
4297 file, only use the jar file for java.class.path.
4299 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4300 for bytecode archives.
4302 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4303 exists, but not Main-Class.
4305 2000-08-23 Mark Wielaard <mark@klomp.org>
4307 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4308 return -1 when fill() has no more data for the Inflater.
4310 2000-08-23 Mark Wielaard <mark@klomp.org>
4312 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4313 write(String) already does.
4315 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4317 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4318 to `alive_flag', call `init'.
4319 (init): New native method.
4320 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4323 2000-08-21 Mark Wielaard <mark@klomp.org>
4325 * Makefile.in: Rebuilt.
4326 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4328 (java/lang/reflect/Field.h): Likewise.
4329 (java/lang/reflect/Method.h): Likewise.
4330 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4333 2000-08-21 Tom Tromey <tromey@cygnus.com>
4335 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4338 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4340 * java/lang/natSystem.cc (init_properties): Change sourceware
4341 reference to sources.redhat.com.
4343 * include/java-props.h: Add _Jv_Jar_Class_Path.
4344 * prims.cc: Ditto. Set it from `gij -jar file' option.
4346 * java/lang/natSystem.cc (init_properties): Set java.class.path
4348 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4350 * java/util/PropertyPermission.java: Import from GNU Classpath.
4351 * Makefile.in: Rebuilt.
4352 * Makefile.am: Add java/util/PropertyPermission.java.
4353 * java/lang/System.java: Add setProperty method.
4355 * gij.cc (main): Add -jar option to execute jar files.
4356 (help): Describe -jar option.
4357 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4358 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4359 * gnu/gcj/runtime/FirstThread.java (main): New method.
4361 * java/util/jar/Attributes.java: Correct comment spelling.
4363 2000-08-20 Mark Wielaard <mark@klomp.org>
4365 * java/util/zip/Adler32.java: Make private variables really private
4366 * java/util/zip/CRC32.java: Make private variables really private
4367 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4369 * java/util/zip/InflaterInputStream.java: skip() could skip to
4371 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4372 * java/util/zip/ZipFile.java: size() new 1.2 method
4373 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4374 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4377 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4379 * java/util/jar/JarFile.java: Don't call
4380 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4383 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4385 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4386 Read the entire contents of the class file, not just what is
4389 * java/net/JarURLConnection.java: getEntry doesn't take any
4390 arguments. Return null if element is null.
4392 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4393 size from the archive, not the inflated size.
4395 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4396 java.util.zip.ZipFile.getEntry.
4398 * gij.cc (help): Change sourceware reference to
4401 2000-08-19 Tom Tromey <tromey@cygnus.com>
4403 * java/util/zip/ZipInputStream.java (createZipEntry):
4406 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4408 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4409 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4410 java/util/jar/JarInputStream.java,
4411 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4412 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4413 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4414 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4415 java/security/cert/Certificate.java,
4416 java/security/cert/CertificateEncodingException.java,
4417 java/security/cert/CertificateException.java,
4418 java/security/cert/CertificateExpiredException.java,
4419 java/security/cert/CertificateFactory.java,
4420 java/security/cert/CertificateFactorySpi.java,
4421 java/security/cert/CertificateNotYetValidException.java,
4422 java/security/cert/CertificateParsingException.java,
4423 java/security/cert/X509CRL.java,
4424 java/security/cert/X509CRLEntry.java,
4425 java/security/cert/X509Certificate.java,
4426 java/security/cert/X509Extension.java: Imported from Classpath.
4427 * java/util/Hashtable.java: Imported from Classpath.
4429 * java/util/zip/ZipInputStream.java: Create stub for
4432 * gcj/javaprims.h: Updated class list.
4434 * Makefile.in, gcj/Makefile.in: Rebuilt.
4435 * Makefile.am (ordinary_java_source_files): Add these new classes.
4437 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4439 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4440 * gnu/gcj/awt/GLightweightPeer.java: New file.
4441 * java/awt/BorderLayout.java: Implemented all methods.
4442 * java/awt/Button.java (actionListener, actionCommand): Renamed
4443 and modifier change.
4444 (addNotify): Call super.
4445 (dispatchEventImpl): New method.
4446 (getListeners): New method.
4447 (label): Made package-private, not private.
4448 * java/awt/Canvas.java: Implemented class body.
4449 * java/awt/Color.java (brighter): New method.
4450 (darker): New method.
4451 (hashCode): New method.
4452 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4453 (getGraphicsConfiguration): Delegate to
4454 getGraphicsConfigurationImpl().
4455 (getGraphicsConfigurationImpl): New method.
4456 (getToolkit): Only return value from peer if not null.
4457 (isDisplayable): Check with parent.
4458 (isShowing): No parent implies not showing.
4459 (getForeground): Check parent property if local is null.
4460 (getBackground): Likewise.
4461 (getFont): Likewise.
4462 (setForeground): Inform peer.
4463 (setBackground): Likewise
4464 (setLocale): Invalidate component.
4465 (getColorModel): Implemented.
4466 (setLocation): Invalidate, or ignore if no change.
4467 (setSize): Invalidate, or ignore if no change.
4468 (setBounds): Invalidate, or ignore if no change.
4469 (isOpaque): By default, heavyweight implies opaque.
4470 (isLightweight): Implemented.
4471 (getMaximumSize): Implemented.
4472 (doLayout): Implemented, NOP.
4473 (validate): Implemented, NOP.
4474 (invalidate): Only propagate to parent if parent was valid.
4475 (getGraphics): Implemented.
4476 (getFontMetrics): Implemented.
4477 (update): Implemented.
4478 (paintAll): Implemented.
4479 (repaint): Implemented all repaint methods.
4480 (print): Implemented.
4481 (printAll): Implemented.
4482 (createImage): Implemented.
4483 (dispatchEvent): Give the peer a chance to handle the event.
4484 (dispatchEventImpl): Dispatch paint events.
4485 (enableEvents): Lightweights enable events on parent component.
4486 (coalesceEvents): Coalesce paint events, and select event type
4488 (coalescePaintEvents): New method.
4489 (processEvent): Fix unfortunate ordering of statements, and call
4490 correct method for MOUSE_CLICKED.
4491 (processPaintEvent): New method.
4492 (addNotify): Allow container to notify children before event
4493 mask is set in peer.
4494 (addNotifyContainerChildren): New method.
4495 (removeNotify): Visibility should not change on removeNotify.
4496 (paramString): Implemented.
4497 (list): Implemented two of the list methods.
4498 * Container (myInsets): Removed, insets are managed by peer.
4499 (getInsets): Query peer.
4500 (addImpl): Fix reparenting, enable events for lightweights,
4501 initialize component array.
4502 (validate): Call doLayout in validateTree() instead.
4503 (validateTree): Do nothing if already valid. Call beginValidate(),
4504 endValidate() on peer. Call validateTree() instead of validate()
4505 for children that are containers. Mark valid after validation of
4507 (setFont): Partial implementation.
4508 (paint): Implemented.
4509 (visitChildren): New method.
4510 (visitChild): New method.
4511 (update): Implemented.
4512 (print): Implemented.
4513 (paintComponents): Implemented.
4514 (printComponents): Consider translation and clipping.
4515 (getComponentAt): Ignore invisible children. Return this if no
4517 (addNotify): Call super.
4518 (addNotifyContainerChildren): New method.
4519 (paramString): Implemented.
4520 (list): Implemented.
4521 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4523 (invokeLater): Likewise.
4524 (isDispatchThread): Likewise.
4525 * java/awt/FontMetrics (getLeading): Formula change.
4526 (getDescent): Consider leading also.
4527 (getMaxAscent): Default to getAscent().
4528 (getMaxDescent): Default to getDescent.
4529 (getMaxAdvance): Return value signifying unknown.
4530 (charWidth): Both methods implemented.
4531 (charsWidth): Implemented.
4532 (bytesWidth): Implemented.
4533 (getWidths): Implemented.
4534 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4536 (Frame): Rearragend constuctor chaining to disallow null being
4537 passed as a graphics configuration.
4538 (getTitle): Return empty string if null.
4540 (getIconImage): New method.
4541 (setIconImage): New method.
4542 (finalize): New method.
4543 (setMenuBar): Notify peer.
4544 (isResizable): New method.
4545 (setResizable): New method.
4546 (getState): New method.
4548 (remove): Implemented.
4549 (removeNotify): New method.
4550 (getFrames): New method.
4551 * java/awt/Graphics.java: Implemented body of class.
4552 * java/awt/Graphics2D.java: New file.
4553 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4554 * java/awt/Image.java: Implemented body of class.
4555 * java/awt/Panel.java (Panel): Call correct super constructor.
4556 (addNotify): Implemented.
4557 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4558 * java/awt/RenderingHints.java: New file.
4559 * java/awt/Toolkit.java (createComponent): Implemented.
4560 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4561 * java/awt/Window.java (Window): Two new constructors. Reordered
4562 constructor chaining.
4563 (getGraphicsConfigurationImpl): New method.
4564 (finalize): Call super.
4565 (addNotify): Call super.
4566 (pack): Do layout stuff.
4567 (show): Ensure that peer exists and that component is valid.
4568 (dispose): Dispose owned children.
4569 (getOwner): Simplify code, casting null pointers is valid.
4570 (getGraphicsConfiguration): Ask peer if local value is null.
4571 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4573 * java/awt/image/BufferedImage.java: New file.
4574 * java/awt/image/RasterOp.java: New file.
4575 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4576 More powerfull replacement for getColorModel().
4577 (getColorModel) Removed.
4578 (setEventMask) New method.
4579 * Makefile.am: Added new files.
4580 * Makefile.in: Rebuilt.
4582 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4584 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4585 (finit_leg_name): New global.
4586 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4587 `$finit$'. This is a backward compatibility hack.
4588 (java::lang::Class::_getMethods): Likewise.
4590 2000-08-15 Andrew Haley <aph@cygnus.com>
4592 * include/jvm.h (_Jv_HashCode): New hash code.
4594 2000-08-15 Tom Tromey <tromey@cygnus.com>
4596 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4598 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4600 * THANKS: More thanks.
4602 2000-08-10 Tom Tromey <tromey@cygnus.com>
4604 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4606 (connect): Likewise.
4608 (getOption): Likewise.
4609 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4610 case when errno not set.
4613 (receive): Likewise.
4614 (mcastGrp): Likewise.
4615 (setOption): Likewise.
4616 (getOption): Likewise.
4618 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4619 John Stracke <francis@ecal.com>
4621 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4622 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4624 (disconnect): Don't unset connected flag.
4625 (getHeaderField (String)): Call connect() if not connected.
4626 (getHeaderField (int)): Ditto.
4627 (getHeaderFieldKey): Ditto.
4628 (getHttpHeaders): Don't call connect().
4629 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4630 gotResponseVals): New fields.
4631 (getResponseCode): Call getResponseVals() conditionally.
4632 (getResponseMessage): Ditto.
4633 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4635 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4637 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4638 * Makefile.in: Rebuilt.
4639 * java/awt/Color.java (getTransparency): New method.
4640 * java/awt/Component.java: Various updates.
4641 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4642 after dealing with children.
4643 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4644 * java/awt/Window.java: Various new methods and updates.
4645 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4647 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4648 * java/awt/event/WindowEvent.java (paramString): Ditto.
4649 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4651 * java/awt/geom/Point2D.java (clone): Ditto.
4652 * java/awt/geom/RectangularShape.java (clone): Ditto.
4653 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4654 isAlphaPremultiplied): Make package-private, not private.
4656 2000-08-08 Tom Tromey <tromey@cygnus.com>
4658 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4659 surrogate characters.
4660 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4662 (write): Correct handling of surrogate characters.
4664 2000-08-07 Tom Tromey <tromey@cygnus.com>
4666 * java/lang/reflect/Method.java (hashCode): Use getName().
4667 (toString): Likewise.
4668 * java/lang/reflect/natMethod.cc (getType): Initialize
4671 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4673 * java/lang/reflect/Field.java (toString): Correct formatting.
4676 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4678 (receive): Streamlined.
4680 2000-08-05 Tom Tromey <tromey@cygnus.com>
4682 * java/io/PrintWriter.java: Merged comments from Classpath.
4683 (printlnUnsynchronized): Removed.
4684 (println()): Print the separator.
4685 (println): Call println(), not printlnUnsynchronized.
4686 (out): Now protected, to match spec.
4688 2000-08-04 Tom Tromey <tromey@cygnus.com>
4690 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4691 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4694 2000-08-03 Warren Levy <warrenl@cygnus.com>
4696 * java/io/ObjectInputStream.java (readFields): Turn off
4697 readDataFromBlock while reading via GetField.
4698 (GetField$1.get(String, Object)): Pass Class of default value to
4700 (getField): Allow for null default values.
4702 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4703 (PutField$1.put): Fixed calls of checkType in most of the put
4704 methods to pass the correct parameter.
4705 (PutField$1.put(String, Object)): Allow for null value arg.
4706 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4709 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4710 typo in spec'ed field name.
4711 (getSerialPersistentFields): Changed spelling of method to match
4712 the correct spelling of the spec'ed field name.
4714 2000-08-03 Tom Tromey <tromey@cygnus.com>
4716 * Makefile.in: Rebuilt.
4717 * Makefile.am (awt_java_source_files): Added new files.
4719 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4721 * Makefile.am: Add new AWT stubs.
4722 * java/awt/Canvas.java: New placeholder class.
4723 * java/awt/Checkbox.java: Ditto.
4724 * java/awt/CheckboxMenuItem.java: Ditto.
4725 * java/awt/Choice.java: Ditto.
4726 * java/awt/Dialog.java: Ditto.
4727 * java/awt/FileDialog.java: Ditto.
4728 * java/awt/List.java: Ditto.
4729 * java/awt/ScrollPane.java: Ditto.
4730 * java/awt/TextField.java: Ditto.
4731 * java/awt/datatransfer/Clipboard.java: Ditto.
4732 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4733 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4734 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4735 Some commented out. Partially implemented.
4736 * java/awt/natToolkit.cc: Removed file.
4738 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4740 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4741 Fixes "make -j" builds.
4742 * Makefile.in: Rebuild.
4744 2000-08-02 Tom Tromey <tromey@cygnus.com>
4746 * Makefile.in: Rebuilt.
4747 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4748 * java/net/natPlainSocketImpl.cc: Include posix.h.
4749 (accept): Use _Jv_select.
4750 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4751 (receive): Use _Jv_select.
4752 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4753 (available): Use _Jv_select.
4754 * java/lang/natSystem.cc: Include posix.h.
4755 (currentTimeMillis): Use _Jv_gettimeofday.
4756 * include/posix.h: New file.
4757 * posix.cc: New file.
4759 * scripts/encodings.pl: New file.
4760 * Makefile.in: Rebuilt.
4761 * Makefile.am (convert_source_files): Added IOConverter.java.
4762 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4764 (getDefaultDecodingClass): Canonicalize default encoding name.
4765 (getEncoder): Likewise.
4766 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4768 (getDefaultDecodingClass): Canonicalize default encoding name.
4769 (getDecoder): Likewise.
4770 * gnu/gcj/convert/IOConverter.java: New file.
4772 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4774 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4775 to match C declaration in ffi.h.
4776 * Makefile.am: Add java/awt/Button.java.
4777 * Makefile.in: Rebuilt.
4779 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4781 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4782 cast of the second argument to `ffi_raw_call' changed to match
4785 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4787 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4788 argument to `ffi_raw_call' changed to match prototype.
4790 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4792 * java/awt/Component.java (toString): Implemented.
4793 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4794 dispatchEvent() to dispatch the event.
4795 (removeImpl): Ditto.
4797 2000-07-30 Anthony Green <green@redhat.com>
4799 * java/awt/Component.java: Add treeLock object.
4800 (getTreeLock): Implement.
4801 (isShowing): Implement.
4803 2000-07-30 Tom Tromey <tromey@cygnus.com>
4805 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4807 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4809 * java/awt/Window.java (addNotify): Wrote.
4810 (addWindowListener): Wrote.
4812 (getWarningString): Wrote.
4813 (processEvent): Wrote.
4814 (processWindowEvent): Wrote.
4815 (removeWindowListener): Wrote.
4816 (show): Call validate(), setVisible().
4820 * java/awt/Toolkit.java (createWindow): Declare.
4822 * java/awt/Frame.java (addNotify): Use getToolkit to find
4825 * java/awt/Component.java (invalidate): Wrote.
4827 (getToolkit): Wrote.
4829 * java/awt/Container.java (addContainerListener): Removed
4831 (removeContainerListener): Likewise.
4833 (add(Component)): Use it.
4834 (add(String,Component)): Likewise.
4835 (add(Component,int)): Likewise.
4836 (add(Component,Object)): Likewise.
4837 (add(Component,Object,int)): Likewise.
4839 (getAlignmentX): Wrote.
4840 (getAlignmentY): Wrote.
4841 (getComponentAt): Wrote.
4842 (getMaximumSize): Wrote.
4843 (invalidate): Wrote.
4844 (list(PrintStream,int)): Wrote.
4845 (list(PrintWriter,int)): Wrote.
4846 (getMinimumSize): Wrote.
4847 (getPreferredSize): Wrote.
4848 (printComponents): Wrote.
4849 (processContainerEvent): Look at containerListener, not
4851 (remove): Added event processing and peer destruction.
4852 (removeAll): Use remove.
4853 (removeNotify): Wrote.
4855 (validateTree): Wrote.
4857 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4858 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4859 * java/awt/Container.java (addNotify): Don't create Container
4861 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4863 2000-07-30 Tom Tromey <tromey@cygnus.com>
4865 * java/awt/Container.java (remove(int)): Wrote.
4866 (remove(Component)): Wrote.
4867 (add(Component)): Wrote.
4868 (add(Component,int)): Wrote.
4870 (addNotify): Set our own peer.
4871 * java/awt/Scrollbar.java (listeners): Changed type.
4872 (Scrollbar): Don't initialize listeners.
4874 (setValue): Call setValues.
4875 (setMinimum): Likewise.
4876 (setMaxPriority): Likewise.
4877 (setVisibleAmount): Likewise.
4879 (setUnitIncrement): Forward to peer.
4880 (setLineIncrement): Call setUnitIncrement.
4881 (setPageIncrement): Call setBlockIncrement.
4882 (setBlockIncrement): Forward to peer.
4883 (addAdjustmentListener): Rewrote.
4884 (removeAdjustmentListener): Rewrote.
4885 (processAdjustmentEvent): Rewrote.
4886 (paramString): Wrote.
4887 * Makefile.in: Rebuilt.
4888 * Makefile.am (awt_java_source_files): Added Button.java.
4889 * java/awt/Button.java: New file.
4890 * java/awt/Toolkit.java (createLabel): Declare.
4891 (createButton): Likewise.
4892 (createScrollbar): Likewise.
4893 (createContainer): Likewise.
4894 * java/awt/Label.java (addNotify): Wrote.
4895 (setAlignment): Call setAlignment in the peer.
4896 (setText): Call setText in the peer.
4898 2000-07-28 Warren Levy <warrenl@cygnus.com>
4900 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4901 NotSerializableException with just the class name.
4903 2000-07-26 Andrew Haley <aph@cygnus.com>
4905 * interpret.cc (continue1): Insert missing break into switch.
4907 2000-07-28 Warren Levy <warrenl@cygnus.com>
4909 * java/io/ObjectStreamException.java: Made constructors protected.
4911 2000-07-27 Tom Tromey <tromey@cygnus.com>
4913 * java/io/OutputStreamWriter.java (close): Only flush if not
4916 2000-07-27 Warren Levy <warrenl@cygnus.com>
4918 * mauve-libgcj: Activated serialization tests.
4919 * gcj/field.h (getModifiers): Mask off unknown flags.
4920 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4921 spurious bits don't cause discrepancies.
4922 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4923 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4924 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4925 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4926 * java/lang/Throwable.java (serialVersionUID): New field.
4927 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4928 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4930 * java/lang/reflect/natMethod.cc: Ditto.
4931 * java/security/Key.java (serialVersionUID): Removed field for now.
4932 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4933 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4935 2000-07-22 Tom Tromey <tromey@cygnus.com>
4937 * java/awt/geom/RectangularShape.java (getPathIterator):
4940 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4942 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4943 stub libjava/java/awt/ColorModel.java which was located in the
4945 * libjava/java/awt/image/ComponentColorModel.java: New file.
4946 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4947 * libjava/java/awt/image/DataBuffer.java: New file.
4948 * libjava/java/awt/image/DataBufferByte.java: New file.
4949 * libjava/java/awt/image/DataBufferInt.java: New file.
4950 * libjava/java/awt/image/DataBufferUShort.java: New file.
4951 * libjava/java/awt/image/DirectColorModel.java: New file.
4952 * libjava/java/awt/image/PackedColorModel.java: New file.
4953 * libjava/java/awt/image/Raster.java: New file.
4954 * libjava/java/awt/image/SampleModel.java: New file.
4955 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4957 * libjava/java/awt/image/IndexColorModel.java: New file.
4958 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4959 java.awt.ColorModel stub.
4961 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4962 * gnu/gcj/util/Buffers.java: New file, utility class.
4964 * libjava/Makefile.am: Updated to include new files.
4965 * libjava/Makefile.in: Rebuilt.
4967 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4969 * java/io/StreamTokenizer.java: Merged with classpath.
4971 2000-07-20 Tom Tromey <tromey@cygnus.com>
4973 * Makefile.in: Rebuilt.
4974 * Makefile.am (awt_java_source_files): Updated for new files.
4975 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4976 * java/awt/Label.java: New file.
4977 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4978 (createIntersection, createUnion, getBounds2D): New methods.
4979 * java/awt/Scrollbar.java: New file.
4980 * java/awt/Shape.java: Updated to 1.2.
4981 * java/awt/geom/AffineTransform.java: New file.
4982 * java/awt/geom/Ellipse2D.java: New file.
4983 * java/awt/geom/NoninvertibleTransformException.java: New file.
4984 * java/awt/geom/PathIterator.java: New file.
4985 * java/awt/geom/Rectangle2D.java: New file.
4986 * java/awt/geom/RectangularShape.java: New file.
4987 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4988 * java/awt/geom/IllegalPathStateException.java: New file.
4990 * scripts/showval.java: New file.
4992 * scripts/classes.pl (scan): Print inner classes properly.
4993 * gcj/javaprims.h: Updated class list.
4995 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4996 initialize String fields for interpreted classes. Fixes bug
4997 reported by Hans Boehm.
4999 * java/io/File.java (getParentFile): New method, from Classpath
5000 via Oskar Liljeblad.
5002 * java/util/Vector.java (remove(Object)): Implemented.
5004 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5006 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5007 zero return from backtrace().
5009 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5011 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5013 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5014 before calling notifyAll().
5016 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5018 Add missing files from last check-in:
5019 * java/awt/image/ImageConsumer.java: New file.
5020 * java/awt/image/ImageProducer.java: New file.
5021 * java/awt/image/ImageObserver.java: New file.
5023 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5025 Merged implementation of java.applet from classpath:
5026 * java/applet/Applet.java: New file.
5027 * java/applet/AppletContext.java: New file.
5028 * java/applet/AppletStub.java: New file.
5029 * java/applet/AudioClip.java: New file.
5031 * Makefile.am: Added new java.applet classes.
5032 * Makefile.in: Rebuilt.
5034 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5037 * java/util/ResourceBundle.java (getLocale): stub.
5038 * Makefile.am: Added new AWT classes.
5039 * Makefile.in: Rebuilt.
5040 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5041 constructors. Fix toString() and paramString().
5042 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5043 * java/awt/CheckboxGroup.java: New class.
5044 * java/awt/ColorModel.java: New class.
5045 * java/awt/Component.java: Added stubs for most methods. Implemented
5047 * java/awt/Container.java: ditto.
5048 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5049 * java/awt/Cursor.java: ditto.
5050 * java/awt/Event.java: Fix paramString().
5051 * java/awt/EventQueue.java: New class. Implemented.
5052 * java/awt/Font.java: Added additional stub methods. Implemented
5054 * java/awt/FontMetrics.java: New class. Stubbed.
5055 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5057 * java/awt/Insets.java: New class. Implemented.
5058 * java/awt/Menu.java: Add new methods. Partially implemented.
5059 * java/awt/MenuItem.java: Add new methods and fields. Partially
5061 * java/awt/MenuShortcut.java: New class. Implemented.
5062 * java/awt/Panel.java: New class. Placeholder.
5063 * java/awt/PopupMenu.java: New class. Stubbed.
5064 * java/awt/Rectangle.java: New class. Implemented.
5065 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5066 * java/awt/event/ActionEvent.java: Implement paramString().
5067 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5068 * java/awt/event/ComponentEvent.java: Implement paramString().
5069 * java/awt/event/ContainerEvent.java: Implement paramString().
5070 * java/awt/event/FocusEvent.java: Implement paramString().
5071 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5072 * java/awt/event/HierarchyBoundsListener.java: New class.
5073 * java/awt/event/HierarchyEvent.java: New class.
5074 * java/awt/event/HierarchyListener.java: New class.
5075 * java/awt/event/InputMethodEvent.java: Implement paramString().
5076 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5077 exception if !catchExceptions.
5078 * java/awt/event/ItemEvent.java: Implement paramString().
5079 * java/awt/event/KeyEvent.java: Implement paramString().
5080 * java/awt/event/MouseEvent.java: Implement paramString().
5081 * java/awt/event/PaintEvent.java: Implement paramString().
5082 * java/awt/event/TextEvent.java: Implement paramString().
5083 * java/awt/event/WindowEvent.java: Implement paramString().
5085 AWT Peer interfaces:
5086 * java/awt/peer/ButtonPeer.java: New file.
5087 * java/awt/peer/ListPeer.java: New file.
5088 * java/awt/peer/CanvasPeer.java: New file.
5089 * java/awt/peer/MenuBarPeer.java: New file.
5090 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5091 * java/awt/peer/MenuComponentPeer.java: New file.
5092 * java/awt/peer/CheckboxPeer.java: New file.
5093 * java/awt/peer/MenuItemPeer.java: New file.
5094 * java/awt/peer/ChoicePeer.java: New file.
5095 * java/awt/peer/MenuPeer.java: New file.
5096 * java/awt/peer/ComponentPeer.java: Implemented.
5097 * java/awt/peer/PanelPeer.java: New file.
5098 * java/awt/peer/ContainerPeer.java: Implemented.
5099 * java/awt/peer/PopupMenuPeer.java: New file.
5100 * java/awt/peer/DialogPeer.java: New file.
5101 * java/awt/peer/ScrollPanePeer.java: New file.
5102 * java/awt/peer/FileDialogPeer.java: New file.
5103 * java/awt/peer/ScrollbarPeer.java: New file.
5104 * java/awt/peer/FontPeer.java: New file.
5105 * java/awt/peer/TextAreaPeer.java: New file.
5106 * java/awt/peer/FramePeer.java: Implemented.
5107 * java/awt/peer/TextComponentPeer.java: New file.
5108 * java/awt/peer/LabelPeer.java: New file.
5109 * java/awt/peer/TextFieldPeer.java: New file.
5110 * java/awt/peer/LightweightPeer.java: New file.
5111 * java/awt/peer/WindowPeer.java: Implemented.
5113 2000-07-06 Tom Tromey <tromey@cygnus.com>
5115 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5116 Initialize static final String fields.
5118 2000-07-03 Tom Tromey <tromey@cygnus.com>
5120 * java/io/PrintWriter.java (print): Call write(String), not
5121 print(String). See PR libgcj/277.
5122 (print(String)): Use write, not out.write.
5124 2000-06-30 Tom Tromey <tromey@cygnus.com>
5126 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5128 2000-06-27 Andrew Haley <aph@cygnus.com>
5130 * java/io/File.java (createTempFile): Close the FileDescriptor
5131 used to create a temp file. Fixes some of PR 203.
5132 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5133 collection if we run out of file handles.
5135 2000-06-28 Warren Levy <warrenl@cygnus.com>
5137 * gnu/java/security/provider/Gnu.java: New file.
5138 * gnu/java/security/provider/SHA.java: New file.
5139 * gnu/java/security/provider/SHA1PRNG.java: New file.
5140 * Makefile.am: Added the above files.
5141 * Makefile.in: Rebuilt.
5143 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5145 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5147 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5148 (destroyed_flag): Removed.
5149 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5150 (activeCount): Added spec note.
5152 2000-06-27 Warren Levy <warrenl@cygnus.com>
5154 * java/security/Principal.java: New file.
5155 * Makefile.am: Added Principal.java.
5156 * Makefile.in: Rebuilt.
5158 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5160 * java/awt/event/MouseEvent.java: Fixed coordinate space
5163 2000-06-27 Tom Tromey <tromey@cygnus.com>
5165 * java/io/PushbackInputStream.java (read): If there are characters
5166 in the buffer, don't also call super.read().
5167 * java/io/PushbackReader.java (read): If there are characters in
5168 the buffer, don't also call super.read().
5170 * java/lang/Double.java (valueOf): Call parseDouble().
5172 2000-06-26 Warren Levy <warrenl@cygnus.com>
5174 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5175 (newVal): Renamed to newValue.
5176 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5177 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5178 (revokeNow): Renamed to invalidateRefs.
5179 * java/io/OptionalDataException.java: Updated FIXME.
5180 (eof): New placeholder field.
5182 * java/io/WriteAbortedException.java (message): Made transient.
5183 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5184 * java/lang/Throwable.java (stackTrace): Made transient.
5185 * java/net/InetAddress.java: Made Serializable.
5186 * java/security/KeyPair.java: Made Serializable.
5187 * java/security/Provider.java: Replaced with Classpath version that
5188 implements serialization and proper methods.
5189 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5190 (limits): Renamed to choiceLimits.
5192 2000-06-24 Tom Tromey <tromey@cygnus.com>
5194 * java/lang/natDouble.cc (parseDouble): Renamed from
5196 * java/lang/Double.java (parseDouble): Renamed from
5197 doubleValueOf. Now public.
5199 2000-06-23 Andrew Haley <aph@cygnus.com>
5201 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5202 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5204 2000-06-23 Tom Tromey <tromey@cygnus.com>
5206 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5207 * java/lang/natDouble.cc: Always include <alloca.h>.
5208 Fix for PR libgcj/267.
5210 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5212 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5213 comply with classpath VM spec.
5214 (add(Group)): Rename to addGroup().
5215 * java/lang/Thread.java (Thread): Use addThread().
5216 * java/lang/natThread.cc (finish_): Use removeThread().
5218 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5220 * java/lang/ThreadGroup.java: Merged with classpath.
5221 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5222 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5224 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5225 ThreadGroup.root if Thread.currentThread is null. Honour the
5226 ThreadGroup's max priority setting.
5228 2000-06-18 Tom Tromey <tromey@cygnus.com>
5230 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5231 returned class. For PR gcj/260.
5233 2000-06-16 Tom Tromey <tromey@cygnus.com>
5235 Fix for PR libgcj/261:
5236 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5238 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5239 argument. (This is a patch from long ago that somehow went
5242 2000-06-15 Tom Tromey <tromey@cygnus.com>
5244 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5248 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5250 Fix for PR java.lang/258:
5251 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5252 JV_STATE_DONE, to prevent accidental initialization.
5253 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5254 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5255 interface or an abstract class. Remove redundant initializeClass calls.
5256 Remove duplicate if_idt test.
5257 (_Jv_InterfaceAssignableFrom): New function.
5258 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5260 2000-05-31 Tom Tromey <tromey@cygnus.com>
5262 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5263 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5264 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5265 (NUM_OBJECT_METHODS): New define.
5266 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5267 `array_vtable' parameter. Added assertion.
5268 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5271 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5273 * gcj/cni.h: Include <string.h>.
5274 * defineclass.cc: Include <alloca.h>.
5275 * interpret.cc: Ditto.
5276 * gij.cc: Include <stdlib.h>.
5278 2000-05-30 Tom Tromey <tromey@cygnus.com>
5280 * include/name-finder.h: Include <sys/wait.h>.
5281 (_Jv_name_finder::pid): Now of type `pid_t'.
5282 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5283 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5286 2000-05-24 Warren Levy <warrenl@cygnus.com>
5288 * java/io/ObjectOutputStream.java (writeObject): Use component type
5289 when writing arrays.
5292 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5294 Fix for PR libgcj/226:
5295 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5296 since this is an installed header.
5298 Fix for PR libgcj/228:
5299 * java/util/zip/ZipFile (getInputStream): Create inflater with
5302 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5303 with DataFormatException.
5305 2000-05-20 Tom Tromey <tromey@cygnus.com>
5307 * Makefile.in: Rebuilt.
5308 * Makefile.am (hack1): Removed.
5309 (awto_files): Likewise.
5310 (libgcjawt_la_SOURCES): Likewise.
5311 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5312 (libgcjawt_la_DEPENDENCIES): Likewise.
5313 (libgcjawt_la_LIBADD): Likewise.
5314 (libgcjawt_la_LDFLAGS): Likewise.
5315 (libgcjawt_la_LINK): Likewise.
5316 ($(awt_java_source_files:.java=.class)): Likewise.
5317 (libgcj.zip): Don't depend on AWT files.
5318 (MOSTLYCLEANFILES): Don't include AWT files.
5319 ($(awto_files)): Removed.
5320 (nat_headers): Removed AWT files.
5321 (cond_awt_java_source_files): Removed.
5322 (ordinary_java_source_files): Added awt_java_source_files.
5323 * libgcj.spec.in (*lib): Removed -lgcjawt.
5324 * configure: Rebuilt.
5325 * configure.in: Removed --enable-java-awt option.
5327 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5329 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5330 (ZipEntry): Copy the `name' field.
5331 (clone): Implement JDK1.2 method.
5332 (setCompressedSize): ditto.
5335 2000-05-19 Tom Tromey <tromey@cygnus.com>
5337 * java/io/BufferedWriter.java: Merged with Classpath.
5338 * java/io/BufferedOutputStream.java: Merged with Classpath.
5340 2000-05-16 Andrew Haley <aph@cygnus.com>
5342 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5343 build_ia64_frame_state.
5344 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5347 2000-05-15 Warren Levy <warrenl@cygnus.com>
5349 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5350 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5351 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5352 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5353 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5354 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5355 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5356 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5357 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5358 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5359 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5360 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5361 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5362 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5363 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5364 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5365 * gnu/gcj/io/NullOutputStream.java: Removed.
5366 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5367 * gnu/gcj/lang/ArrayHelper.java: Removed.
5368 * gnu/gcj/lang/ClassHelper.java: Removed.
5369 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5371 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5372 * gnu/java/beans/EmptyBeanInfo.java: New file.
5373 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5374 * gnu/java/beans/IntrospectionIncubator.java: New file.
5375 * gnu/java/beans/editors/ColorEditor.java: New file.
5376 * gnu/java/beans/editors/FontEditor.java: New file.
5377 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5378 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5379 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5380 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5381 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5382 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5383 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5384 * gnu/java/beans/editors/StringEditor.java: New file.
5385 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5386 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5387 * gnu/java/io/NullOutputStream.java: New file.
5388 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5389 * gnu/java/lang/ArrayHelper.java: New file.
5390 * gnu/java/lang/ClassHelper.java: New file.
5391 * gnu/java/lang/reflect/TypeSignature.java: New file.
5393 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5394 namespace back to the original Classpath gnu/java namespace.
5395 * Makefile.in: Rebuilt.
5397 * java/beans/Beans.java: Namespace change.
5398 * java/beans/EventSetDescriptor.java: Namespace change.
5399 * java/beans/Introspector.java: Namespace change.
5400 * java/beans/PropertyEditorManager.java: Namespace change.
5401 * java/io/ObjectInputStream.java: Namespace change.
5402 * java/io/ObjectOutputStream.java: Namespace change.
5403 * java/io/ObjectStreamClass.java: Namespace change.
5404 * java/io/ObjectStreamField.java: Namespace change.
5406 2000-04-21 Warren Levy <warrenl@cygnus.com>
5408 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5409 now that compiler patch is available.
5410 Removed unneeded System.loadLibrary.
5411 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5412 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5414 2000-04-19 Andrew Haley <aph@cygnus.com>
5416 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5417 and target classes have been initialized.
5419 2000-04-19 Andrew Haley <aph@cygnus.com>
5421 * java/lang/String.java: implement Serializable, Comparable.
5422 (compareTo (Object)): New method.
5424 2000-04-19 Warren Levy <warrenl@cygnus.com>
5426 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5427 instead of getField to retrieve non-public field.
5428 (getSerialPersistantFields): Ditto.
5430 2000-04-18 Warren Levy <warrenl@cygnus.com>
5432 * mauve-libgcj: Turned off object serialization tests temporarily
5433 due to compiler error.
5435 2000-04-17 Warren Levy <warrenl@cygnus.com>
5437 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5438 to avoid build problem.
5440 * mauve-libgcj: Turned on object serialization tests.
5442 2000-04-17 Tom Tromey <tromey@cygnus.com>
5444 * libgcj.spec.in (*lib): Added -lgcjawt.
5446 2000-04-17 Andrew Haley <aph@cygnus.com>
5448 * Makefile.am: Add new files:
5449 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5451 * Makefile.in: Rebuilt.
5453 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5454 interface that has no implementations.
5455 Check for an attempt to assign an abstract class to an interface.
5457 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5458 if we fail to find MessageDigest.getInstance ("SHA").
5460 * gnu/gcj/io/SimpleSHSStream.java: New file.
5461 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5462 * gnu/gcj/io/shs.cc: New file.
5463 * gnu/gcj/io/shs.h: new file.
5465 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5468 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5469 punctuation from the classname of an array element.
5471 * gcj/javaprims.h: Add SimpleDigestStream.
5473 2000-04-17 Andrew Haley <aph@cygnus.com>
5475 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5476 to getPrivateField for superclasses.
5478 2000-04-14 Andrew Haley <aph@cygnus.com>
5480 * Makefile.am: Add new files:
5481 java/io/ObjectOutputStream$PutField.h,
5482 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5483 java/io/natObjectOutputStream.cc
5484 * Makefile.in: Rebuilt.
5485 * gcj/Makefile.in: Rebuilt.
5486 * include/Makefile.in: Rebuilt.
5487 * java/lang/Class.h (getPrivateField): New method.
5488 (getPrivateMethod): Ditto.
5489 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5490 and java::io::ObjectStreamClass our friends.
5491 * java/lang/natClass.cc (getPrivateField): New method.
5492 (getPrivateMethod): Ditto.
5493 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5494 * gcj/javaprims.h: Add serialization classes.
5495 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5496 (setByteField): Ditto.
5497 (setCharField): Ditto.
5498 (setDoubleField): Ditto.
5499 (setFloatField): Ditto.
5500 (setIntField): Ditto.
5501 (setLongField): Ditto.
5502 (setShortField): Ditto.
5503 (setObjectField): Ditto.
5504 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5506 (getByteField): Ditto.
5507 (getCharField): Ditto.
5508 (getDoubleField): Ditto.
5509 (getFloatField): Ditto.
5510 (getIntField): Ditto.
5511 (getLongField): Ditto.
5512 (getShortField): Ditto.
5513 (getObjectField): Ditto.
5514 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5516 (getSerialPersistantFields): Ditto.
5517 (getDefinedSUID): Ditto.
5518 * java/io/natObjectOutputStream.cc: New file.
5519 * java/io/natObjectInputStream.cc: New file.
5521 2000-04-13 Warren Levy <warrenl@cygnus.com>
5523 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5524 problems. Revert to previous version to reproduce and when fixed.
5526 2000-04-13 Warren Levy <warrenl@cygnus.com>
5528 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5529 * gnu/gcj/io/NullOutputStream.java: New file.
5530 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5531 * java/io/BlockDataException.java: New file.
5532 * java/io/Externalizable.java: New file.
5533 * java/io/InvalidClassException.java: New file.
5534 * java/io/InvalidObjectException.java: New file.
5535 * java/io/NotActiveException.java: New file.
5536 * java/io/NotSerializableException.java: New file.
5537 * java/io/ObjectInput.java: New file.
5538 * java/io/ObjectInputStream.java: New file.
5539 * java/io/ObjectInputValidation.java: New file.
5540 * java/io/ObjectOutput.java: New file.
5541 * java/io/ObjectOutputStream.java: New file.
5542 * java/io/ObjectStreamClass.java: New file.
5543 * java/io/ObjectStreamConstants.java: New file.
5544 * java/io/ObjectStreamField.java: New file.
5545 * java/io/Replaceable.java: New file.
5546 * java/io/Resolvable.java: New file.
5547 * java/io/SerializablePermission.java: New file.
5548 * java/io/WriteAbortedException.java: New file.
5549 * java/security/BasicPermission.java: New file.
5550 * java/security/DigestOutputStream.java: New file.
5551 * java/security/Guard.java: New file.
5552 * java/security/Permission.java: New file.
5553 * java/security/PermissionCollection.java: New file.
5554 * Makefile.am: Added above files.
5555 * Makefile.in: Rebuilt.
5557 * java/beans/Beans.java (instantiate): Activated serialization code.
5558 * java/lang/SecurityManager.java (checkPermission): New method.
5560 2000-04-12 Warren Levy <warrenl@cygnus.com>
5562 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5563 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5564 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5565 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5566 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5567 * gnu/gcj/beans/editors/FontEditor.java: New file.
5568 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5569 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5570 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5571 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5572 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5573 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5574 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5575 * gnu/gcj/beans/editors/StringEditor.java: New file.
5576 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5577 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5578 * gnu/gcj/lang/ArrayHelper.java: New file.
5579 * gnu/gcj/lang/ClassHelper.java: New file.
5580 * java/beans/BeanDescriptor.java: New file.
5581 * java/beans/BeanInfo.java: New file.
5582 * java/beans/Beans.java: New file.
5583 * java/beans/Customizer.java: New file.
5584 * java/beans/DesignMode.java: New file.
5585 * java/beans/EventSetDescriptor.java: New file.
5586 * java/beans/FeatureDescriptor.java: New file.
5587 * java/beans/IndexedPropertyDescriptor.java: New file.
5588 * java/beans/IntrospectionException.java: New file.
5589 * java/beans/Introspector.java: New file.
5590 * java/beans/MethodDescriptor.java: New file.
5591 * java/beans/ParameterDescriptor.java: New file.
5592 * java/beans/PropertyChangeEvent.java: New file.
5593 * java/beans/PropertyChangeListener.java: New file.
5594 * java/beans/PropertyChangeSupport.java: New file.
5595 * java/beans/PropertyDescriptor.java: New file.
5596 * java/beans/PropertyEditor.java: New file.
5597 * java/beans/PropertyEditorManager.java: New file.
5598 * java/beans/PropertyEditorSupport.java: New file.
5599 * java/beans/PropertyVetoException.java: New file.
5600 * java/beans/SimpleBeanInfo.java: New file.
5601 * java/beans/VetoableChangeListener.java: New file.
5602 * java/beans/VetoableChangeSupport.java: New file.
5603 * java/beans/Visibility.java: New file.
5604 * java/beans/beancontext/BeanContext.java: New file.
5605 * java/beans/beancontext/BeanContextChild.java: New file.
5606 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5607 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5608 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5609 * java/beans/beancontext/BeanContextEvent.java: New file.
5610 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5611 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5612 * java/beans/beancontext/BeanContextProxy.java: New file.
5613 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5615 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5616 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5618 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5619 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5621 * java/beans/beancontext/BeanContextServices.java: New file.
5622 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5623 * java/util/AbstractCollection.java: New file.
5624 * java/util/AbstractList.java: New file.
5625 * java/util/Arrays.java: New file.
5626 * Makefile.am: Added above files.
5627 * Makefile.in: Rebuilt.
5629 2000-04-11 Warren Levy <warrenl@cygnus.com>
5631 * java/awt/AWTError.java: New file.
5632 * java/awt/AWTEvent.java: New file.
5633 * java/awt/AWTException.java: New file.
5634 * java/awt/ActiveEvent.java: New file.
5635 * java/awt/Adjustable.java: New file.
5636 * java/awt/BorderLayout.java: New file.
5637 * java/awt/Color.java: New file.
5638 * java/awt/Component.java: New file.
5639 * java/awt/Container.java: New file.
5640 * java/awt/Dimension.java: New file.
5641 * java/awt/Event.java: New file.
5642 * java/awt/Font.java: New file.
5643 * java/awt/Frame.java: New file.
5644 * java/awt/Graphics.java: New file.
5645 * java/awt/IllegalComponentStateException.java: New file.
5646 * java/awt/Image.java: New file.
5647 * java/awt/ItemSelectable.java: New file.
5648 * java/awt/LayoutManager.java: New file.
5649 * java/awt/LayoutManager2.java: New file.
5650 * java/awt/Menu.java: New file.
5651 * java/awt/MenuBar.java: New file.
5652 * java/awt/MenuComponent.java: New file.
5653 * java/awt/MenuContainer.java: New file.
5654 * java/awt/MenuItem.java: New file.
5655 * java/awt/Paint.java: New file.
5656 * java/awt/PaintContext.java: New file.
5657 * java/awt/Point.java: New file.
5658 * java/awt/Rectangle.java: New file.
5659 * java/awt/Shape.java: New file.
5660 * java/awt/TextArea.java: New file.
5661 * java/awt/TextComponent.java: New file.
5662 * java/awt/Toolkit.java: New file.
5663 * java/awt/Transparency.java: New file.
5664 * java/awt/Window.java: New file.
5665 * java/awt/natToolkit.cc: New file.
5666 * java/awt/event/AWTEventListener.java: New file.
5667 * java/awt/event/ActionEvent.java: New file.
5668 * java/awt/event/ActionListener.java: New file.
5669 * java/awt/event/AdjustmentEvent.java: New file.
5670 * java/awt/event/AdjustmentListener.java: New file.
5671 * java/awt/event/ComponentAdapter.java: New file.
5672 * java/awt/event/ComponentEvent.java: New file.
5673 * java/awt/event/ComponentListener.java: New file.
5674 * java/awt/event/ContainerAdapter.java: New file.
5675 * java/awt/event/ContainerEvent.java: New file.
5676 * java/awt/event/ContainerListener.java: New file.
5677 * java/awt/event/FocusAdapter.java: New file.
5678 * java/awt/event/FocusEvent.java: New file.
5679 * java/awt/event/FocusListener.java: New file.
5680 * java/awt/event/InputEvent.java: New file.
5681 * java/awt/event/InputMethodEvent.java: New file.
5682 * java/awt/event/InputMethodListener.java: New file.
5683 * java/awt/event/InvocationEvent.java: New file.
5684 * java/awt/event/ItemEvent.java: New file.
5685 * java/awt/event/ItemListener.java: New file.
5686 * java/awt/event/KeyAdapter.java: New file.
5687 * java/awt/event/KeyEvent.java: New file.
5688 * java/awt/event/KeyListener.java: New file.
5689 * java/awt/event/MouseAdapter.java: New file.
5690 * java/awt/event/MouseEvent.java: New file.
5691 * java/awt/event/MouseListener.java: New file.
5692 * java/awt/event/MouseMotionAdapter.java: New file.
5693 * java/awt/event/MouseMotionListener.java: New file.
5694 * java/awt/event/PaintEvent.java: New file.
5695 * java/awt/event/TextEvent.java: New file.
5696 * java/awt/event/TextListener.java: New file.
5697 * java/awt/event/WindowAdapter.java: New file.
5698 * java/awt/event/WindowEvent.java: New file.
5699 * java/awt/event/WindowListener.java: New file.
5700 * java/awt/geom/Dimension2D.java: New file.
5701 * java/awt/geom/Point2D.java: New file.
5702 * java/awt/peer/ComponentPeer.java: New file.
5703 * java/awt/peer/ContainerPeer.java: New file.
5704 * java/awt/peer/FramePeer.java: New file.
5705 * java/awt/peer/WindowPeer.java: New file.
5706 * java/util/Collection.java: New file.
5707 * java/util/Comparator.java: New file.
5708 * java/util/Iterator.java: New file.
5709 * java/util/List.java: New file.
5710 * java/util/ListIterator.java: New file.
5711 * Makefile.am: Added above files.
5712 * Makefile.in: Rebuilt.
5714 2000-04-10 Warren Levy <warrenl@cygnus.com>
5716 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5717 * java/lang/FirstThread.java: Ditto.
5718 * java/lang/StringBuffer.java: Ditto.
5719 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5721 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5722 Special case handled in java.math.BigInteger.
5723 * java/math/BigInteger.java (divide): Handle the special case when
5724 dividing by 1 and the high bit of the dividend is set.
5725 (setShiftRight): Handle case when count == 0.
5727 2000-04-05 Andrew Haley <aph@cygnus.com>
5729 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5732 2000-04-05 Andrew Haley <aph@cygnus.com>
5734 * sysdep/ia64.c (rse_address_add): Delete.
5735 (IS_NaT_COLLECTION_ADDR): Delete.
5736 (ia64_backtrace_helper): check for null unwind_info.
5738 * sysdep/ia64-frame.h: add calc_caller_bsp.
5740 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5743 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5744 (_Jv_remI): Likewise.
5745 (_Jv_divJ): Likewise.
5746 (_Jv_remJ): Likewise.
5748 * interpret.cc (continue1): Use divide subroutines to guarantee
5749 correct Java standard behaviour.
5750 Floating-point division should not abort; make it so.
5752 2000-03-29 Tom Tromey <tromey@cygnus.com>
5754 * configure: Rebuilt.
5755 * configure.in: Test against `libgcj_sjlj', not
5756 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5757 to be set even when using sjlj.
5759 2000-03-24 Andrew Haley <aph@cygnus.com>
5761 * Makefile.am: Add file addr2name.awk.
5762 * Makefile.in: Rebuilt.
5763 * addr2name.awk: New file.
5764 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5766 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5769 2000-03-22 Andrew Haley <aph@cygnus.com>
5771 * configure.host: Add -funwind-tables for IA64.
5772 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5773 * Makefile.in: Rebuilt.
5774 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5775 * sysdep/ia64.c: New file.
5776 * sysdep/ia64-frame.h: New file.
5777 * configure.in: Add sysdep/ia64.c for ia64.
5778 * configure: Rebuilt.
5780 2000-03-17 Andrew Haley <aph@cygnus.com>
5782 * java/lang/natString.cc: Remove `register' keyword.
5783 interpret.cc: ditto.
5785 2000-03-16 Andrew Haley <aph@cygnus.com>
5787 * configure.host (ia64): Enable interpreter.
5789 2000-03-14 Hans Boehm <boehm@acm.org>
5791 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5793 2000-03-14 Andrew Haley <aph@cygnus.com>
5795 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5798 2000-03-10 Andrew Haley <aph@cygnus.com>
5800 * java/lang/ieeefp.h: Import latest version from fdlibm.
5802 2000-03-14 Andrew Haley <aph@cygnus.com>
5804 * prims.cc (_Jv_ThrowSignal): New function.
5805 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5807 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5808 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5809 * include/ppc-signal.h: New file.
5811 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5813 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5814 * java/lang/natThread.java (initialize_native): Cast `data' to
5816 * gnu/gcj/RawData.java: Clarify documentation.
5818 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5819 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5820 `jarFile', not `jarFileURL'.
5822 2000-05-15 Andrew Haley <aph@cygnus.com>
5824 * include/ppc-signal.h: New file.
5826 2000-05-11 Tom Tromey <tromey@cygnus.com>
5828 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5829 file headers, don't include `size' in the skip call.
5831 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5833 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5834 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5836 (replace): Reimplemented. Fix javadoc.
5837 (reverse): Call ensureCapacity_unsynchronized().
5838 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5840 (replace): Calculate length for arraycopy() correctly.
5842 2000-05-09 Tom Tromey <tromey@cygnus.com>
5844 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5846 (insert(int,char[],int,int): New method.
5847 (delete): New method from Classpath.
5848 (deleteCharAt): Likewise.
5849 (substring): Likewise.
5850 (shared): No longer private.
5851 Added JavaDoc comments from Classpath.
5852 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5855 2000-05-07 Tom Tromey <tromey@cygnus.com>
5857 * Makefile.in: Rebuilt.
5858 * Makefile.am (LIBLINK): New macro.
5859 (libgcj_la_LINK): Use it.
5860 (libgcjawt_la_LINK): Likewise.
5862 2000-05-06 Tom Tromey <tromey@cygnus.com>
5864 * Makefile.in: Rebuilt.
5865 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5867 2000-05-05 Tom Tromey <tromey@cygnus.com>
5869 Fix for PR libgcj/220:
5870 * Makefile.in: Rebuilt.
5871 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5872 (jv_convert_LDFLAGS): Likewise.
5873 (libgcj_la_LDFLAGS): Likewise.
5874 (GCJLINK): New macro.
5875 (jv_convert_LINK): Use it.
5876 (gij_LINK): Likewise.
5877 (libgcj_la_LINK): New macro.
5878 (libgcjawt_la_LINK): Likewise.
5880 2000-05-04 Tom Tromey <tromey@cygnus.com>
5882 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5884 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5888 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5890 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5891 (_Jv_IsAssignableFrom): Ditto.
5892 (_Jv_IsInstanceOf): Ditto.
5893 (_Jv_CheckCast): Ditto.
5894 (_Jv_CheckArrayStore): Ditto.
5895 * java/lang/Class.h (_Jv_InitClass): Ditto.
5896 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5901 (_Jv_MonitorExit): Ditto.
5902 * boehm.cc (_Jv_MarkObj): Ditto.
5903 (_Jv_MarkObj): Ditto.
5904 (_Jv_MarkArray): Ditto.
5905 * prims.cc (_Jv_AllocObject): Ditto.
5906 (_Jv_NewObjectArray): Ditto.
5907 (_Jv_NewPrimArray): Ditto.
5908 (_Jv_Malloc): Ditto.
5909 (_Jv_Realloc): Ditto.
5910 (_Jv_MallocUnchecked): Ditto.
5916 2000-05-04 Tom Tromey <tromey@cygnus.com>
5918 * java/util/Locale.java (Locale): Don't explicitly check for
5920 * java/util/Hashtable.java (containsKey): Don't explicitly check
5923 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5925 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5927 * java/text/StringCharacterIterator.java
5928 (StringCharacterIterator): Don't check for null.
5929 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5931 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5932 check for null pointer.
5933 (leaveGroup): Likewise.
5934 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5936 (setData): Likewise.
5937 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5940 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5942 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5943 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5944 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5945 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5946 -rpath for in-gcc builds.
5947 * Makefile.in: Rebuilt.
5949 2000-04-28 Tom Tromey <tromey@cygnus.com>
5951 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5954 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5956 * libjava/java/lang/String.java (toString): Remove `final' hack.
5958 2000-04-05 Tom Tromey <tromey@cygnus.com>
5960 Runtime support for PR gcj/2:
5961 * prims.cc (_Jv_ThrowNullPointerException): New function.
5962 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5964 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5966 * prims.cc (_Jv_NewObjectArray): Fix typo.
5968 2000-04-26 Tom Tromey <tromey@cygnus.com>
5970 * Makefile.in: Rebuilt.
5971 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5973 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5975 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5978 2000-04-22 Anthony Green <green@cygnus.com>
5980 * include/jvm.h (__builtin_expect): Define as unused for now.
5981 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5985 (_Jv_MonitorExit): Ditto.
5986 * boehm.cc (_Jv_MarkObj): Ditto.
5987 (_Jv_MarkObj): Ditto.
5988 (_Jv_MarkArray): Ditto.
5989 (_Jv_AllocBytes): Ditto.
5990 * prims.cc (_Jv_AllocObject): Ditto.
5991 (_Jv_NewObjectArray): Ditto.
5992 (_Jv_NewPrimArray): Ditto.
5993 (_Jv_Malloc): Ditto.
5994 (_Jv_Realloc): Ditto.
5995 (_Jv_MallocUnchecked): Ditto.
6001 * include/Makefile.in: Rebuilt.
6002 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6004 2000-04-21 Tom Tromey <tromey@cygnus.com>
6006 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6007 Yet another new version from Classpath.
6009 Fix for PR libgcj/15:
6010 * java/util/natGregorianCalendar.cc (_REENTRANT,
6011 _POSIX_PTHREAD_SEMANTICS): Don't define.
6012 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6013 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6015 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6017 * configure: Rebuilt.
6018 * configure.in: If using POSIX threads, define _REENTRANT if
6019 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6020 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6022 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6023 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6024 version from Classpath.
6026 Fix for PR libgcj/213:
6027 * Makefile.in: Rebuilt.
6028 * Makefile.am (gij_SOURCES): Added gij.cc.
6029 (EXTRA_gij_SOURCES): Removed.
6030 (gij_LDADD): Removed gij.lo.
6031 (gij_DEPENDENCIES): Likewise.
6032 ($(gij_OBJECTS)): Depend on nat_headers.
6034 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6035 `setURL', not `url.set'.
6037 2000-04-20 Tom Tromey <tromey@cygnus.com>
6039 Fix for PR java.io/204:
6040 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6041 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6044 Fix for PR libgcj/212:
6045 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6046 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6047 * java/lang/Class.h (_Jv_word): Declare.
6049 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6051 2000-04-19 Tom Tromey <tromey@cygnus.com>
6053 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6054 doesn't have a loader.
6056 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6058 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6059 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6061 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6063 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6065 (available): Initialize `where' to prevent bogus compiler warning.
6067 2000-04-12 Tom Tromey <tromey@cygnus.com>
6069 * java/lang/natString.cc (intern): Temporarily disable finalizer
6072 * java/lang/natString.cc (unintern): Added `obj' argument.
6073 (intern): Register finalizer for string.
6074 * java/lang/String.java (unintern): Now static; added obj
6077 2000-04-11 Tom Tromey <tromey@cygnus.com>
6079 * java/util/Vector.java (VectorEnumeration): Now `final'.
6080 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6081 (HashtableEnumeration): Likewise.
6082 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6083 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6085 2000-04-10 Warren Levy <warrenl@cygnus.com>
6087 * java/io/ObjectStreamException.java: New file.
6088 * java/io/OptionalDataException.java: New file.
6089 * java/io/StreamCorruptedException.java: New file.
6090 * java/math/BigDecimal.java: New file.
6091 * java/sql/CallableStatement.java: New file.
6092 * java/sql/Connection.java: New file.
6093 * java/sql/DataTruncation.java: New file.
6094 * java/sql/DatabaseMetaData.java: New file.
6095 * java/sql/Date.java: New file.
6096 * java/sql/Driver.java: New file.
6097 * java/sql/DriverManager.java: New file.
6098 * java/sql/DriverPropertyInfo.java: New file.
6099 * java/sql/PreparedStatement.java: New file.
6100 * java/sql/ResultSet.java: New file.
6101 * java/sql/ResultSetMetaData.java: New file.
6102 * java/sql/SQLException.java: New file.
6103 * java/sql/SQLWarning.java: New file.
6104 * java/sql/Statement.java: New file.
6105 * java/sql/Time.java: New file.
6106 * java/sql/Timestamp.java: New file.
6107 * java/sql/Types.java: New file.
6108 * Makefile.am: Added above new files.
6109 * Makefile.in: Rebuilt.
6111 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6112 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6113 DatagramSocket constructor instead of null.
6115 2000-04-08 Anthony Green <green@cygnus.com>
6117 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6120 2000-04-08 Anthony Green <green@cygnus.com>
6122 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6123 (_Jv_MutexUnlock): Ditto.
6124 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6125 (_Jv_MutexUnlock): Ditto.
6127 2000-04-08 Anthony Green <green@cygnus.com>
6129 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6130 (ensureCapacity_unsynchronized): New private method.
6131 (append): Use ensureCapacity_unsynchronized.
6133 2000-04-08 Tom Tromey <tromey@cygnus.com>
6135 * Makefile.in: Rebuilt.
6136 * Makefile.am (awt_java_source_files): Added new files.
6137 * java/awt/IllegalComponentStateException.java: New file.
6138 * java/awt/ItemSelectable.java: New file.
6139 * java/awt/event/WindowEvent.java: Finished.
6140 * java/awt/event/TextEvent.java: Finished.
6141 * java/awt/event/ContainerEvent.java: New file.
6142 * java/awt/Component.java (getX, getY): New methods.
6143 * java/awt/event/PaintEvent.java: New file.
6144 * java/awt/event/MouseEvent.java: New file.
6145 * java/awt/ActiveEvent.java: New file.
6146 * java/awt/event/KeyEvent.java: Finished.
6147 * java/awt/event/ItemEvent.java: New file.
6148 * java/awt/Adjustable.java: New file.
6149 * java/awt/event/InputMethodEvent.java: New file.
6150 * java/awt/event/InputEvent.java: Finished.
6151 * java/awt/event/FocusEvent.java: New file.
6152 * java/awt/event/MouseMotionAdapter.java: New file.
6153 * java/awt/event/MouseAdapter.java: New file.
6154 * java/awt/event/KeyAdapter.java: New file.
6155 * java/awt/event/FocusAdapter.java: New file.
6156 * java/awt/event/ContainerAdapter.java: New file.
6157 * java/awt/event/ComponentEvent.java: Finished.
6158 * java/awt/event/AdjustmentEvent.java: New file.
6159 * java/awt/event/ComponentAdapter.java: New file.
6160 * java/awt/event/ActionEvent.java: Finished.
6161 * java/awt/event/MouseMotionListener.java: New file.
6162 * java/awt/event/MouseListener.java: New file.
6163 * java/awt/event/ItemListener.java: New file.
6164 * java/awt/event/InputMethodListener.java: New file.
6165 * java/awt/event/ContainerListener.java: New file.
6166 * java/awt/event/FocusListener.java: New file.
6167 * java/awt/event/ComponentListener.java: New file.
6168 * java/awt/event/AWTEventListener.java: New file.
6169 * java/awt/event/AdjustmentListener.java: New file.
6171 2000-04-08 Anthony Green <green@cygnus.com>
6173 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6174 check when we have to.
6176 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6179 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6182 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6183 inline hasMoreElements.
6185 2000-04-05 Tom Tromey <tromey@cygnus.com>
6187 * configure: Rebuilt.
6188 * configure.in: Recognize --enable-java-awt.
6189 (AWT): New conditional.
6190 * Makefile.in: Rebuilt.
6191 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6193 (libgcjawt_la_SOURCES): New macro.
6194 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6195 (libgcjawt_la_DEPENDENCIES): Likewise.
6196 (libgcjawt_la_LIBADD): Likewise.
6197 (libgcjawt_la_LDFLAGS): Likewise.
6198 (libgcj.zip): Depend on cond_java_awt_source_files
6199 (cond_awt_java_source_files): New macro.
6200 (MOSTLYCLEANFILES): Added awto_files.
6201 (awto_files): New macro. Use where javao_files used.
6202 (nat_headers): Use cond_awt_java_source_files.
6204 2000-04-04 Tom Tromey <tromey@cygnus.com>
6206 * Makefile.in: Rebuilt.
6207 * Makefile.am (awt_java_source_files): Added AWTException.java.
6208 * java/awt/AWTException.java: New file.
6210 2000-04-03 Tom Tromey <tromey@cygnus.com>
6212 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6213 commentary from Alex.
6215 * Makefile.in: Rebuilt.
6216 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6219 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6221 * configure: Rebuilt.
6222 * configure.in: Add --disable-jvmpi.
6223 * include/config.h.in: Rebuilt.
6224 * acconfig.h: Add ENABLE_JVMPI.
6226 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6227 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6228 (_Jv_JVMPI_Notify_THREAD_END): New define.
6229 (_Jv_JVMPI_Notify_THREAD_END): New define.
6230 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6231 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6232 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6234 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6237 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6238 (finish_): Generate JVMPI thread end events.
6239 (run_): Generate JVMPI thread start events.
6240 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6241 preloaded JNI library.
6242 Include JVMPI headers if necessary.
6243 (run): Generate JVMPI thread start events.
6245 * boehm.cc: Define GC_disable and GC_enable.
6246 (_Jv_DisableGC): New function.
6247 (_Jv_EnableGC): New function.
6248 (disable_gc_mutex): Declare.
6249 * nogc.cc (_Jv_DisableGC): New function.
6250 (_Jv_EnableGC): New function.
6252 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6253 (_Jv_JVMPI_Interface): Define.
6254 (jvmpiEnableEvent): New function.
6255 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6257 * include/jvmpi.h: New file.
6259 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6261 * Makefile.in: New #defines and friends for Thread.h.
6262 * Makefile.am: Ditto.
6263 * posix-threads.cc: (struct starter): Remove `object'.
6264 (_Jv_CondWait): Use interruptable condition variables and new
6265 recursive mutexes. New return codes on interrupt or non-ownership
6267 (_Jv_CondNotify): Ditto.
6268 (_Jv_CondNotifyAll): Ditto.
6269 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6270 the target thread by signaling its wait condition.
6271 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6272 not the starter struct. Initialize wait_mutex and wait_cond.
6273 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6275 (_Jv_MutexUnlock): Ditto.
6276 (really_start): Set info->data->thread from pthread_self() to work
6277 around a race condition. Destroy wait_mutex and wait_cond when run()
6279 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6280 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6282 startable_flag: New private field.
6283 (Thread): Initialize `startable_flag'.
6284 (toString): Check for null thread group.
6285 * java/lang/natThread.cc: (struct natThread): New fields
6286 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6287 (class locker): Removed.
6288 (initialize_native): Initialize `join_cond' and `join_mutex'.
6289 (interrupt): Now just calls _Jv_ThreadInterrupt().
6290 (join): Simplified. Just wait on the target thread's join condition.
6291 (finish_): Remove join list code. Unset thread group. Signal
6292 potential joiners by notifying the dying threads join_cond.
6293 (start): Check for illegal restarts.
6294 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6296 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6297 #defines and #ifdefs.
6298 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6299 `wait_mutex', `next'.
6300 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6301 directly mapping to pthread_cond_t.
6302 (struct _Jv_Mutex_t): New recursive implementation.
6303 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6304 _Jv_HaveCondDestroy: Never define this for posix-threads.
6305 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6306 (_Jv_CondNotifyAll): Ditto.
6307 (_Jv_MutexLock): Ditto.
6308 (_Jv_MutexUnlock): Ditto.
6309 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6310 (_Jv_MutexDestroy): Ditto.
6311 (_Jv_CondDestroy): Removed.
6312 (_Jv_PthreadGetMutex): Removed.
6313 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6314 error. Add a FIXME about this.
6315 (_Jv_CondNotifyAll): Ditto.
6316 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6317 _JV_NOT_OWNER on other errors. Add FIXME.
6319 2000-03-26 Tom Tromey <tromey@cygnus.com>
6321 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6323 (call): Don't throw exception here.
6325 2000-03-26 Tom Tromey <tromey@cygnus.com>
6327 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6328 * interpret.cc: Use SIZEOF_VOID_P.
6329 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6330 (_Jv_loadLong): Likewise.
6331 (_Jv_storeDouble): Likewise.
6332 * configure: Rebuilt.
6333 * configure.in: Check size of void*.
6335 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6337 2000-03-26 Hans Boehm <boehm@acm.org>
6339 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6340 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6342 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6343 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6344 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6345 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6347 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6348 (FFI_RAW_SIZE): Likewise.
6349 (_Jv_InterpMethod::ncode): Use them.
6350 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6351 STORED): Define differently on a 64 bit machine.
6352 (continue1): Use ffi_java_raw_call when appropriate.
6354 2000-03-24 Warren Levy <warrenl@cygnus.com>
6356 * java/math/BigInteger.java(divide): Handle the special case when
6357 dividing by 1 and the high bit of the dividend is set.
6358 (setShiftRight): Handle case when count == 0.
6360 2000-03-24 Warren Levy <warrenl@cygnus.com>
6362 * java/awt/Font.java(isBold): Fix syntax error.
6364 * java/awt/Frame.java(postEvent): ditto.
6365 * java/awt/Menu.java(postEvent): ditto.
6366 * java/awt/MenuBar.java(postEvent): ditto.
6367 * java/awt/Toolkit.java(init): Included a stub.
6369 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6371 * java/awt/Event.java: Add all the event type constants.
6372 (Event): Implemented constructors.
6373 (controlDown): Implemented.
6374 (metaDown): Implemented.
6375 (paramString): Stubbed.
6376 (shiftDown): Implemented.
6377 (toString): Implemented.
6378 (translate): Implemented.
6380 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6382 * java/lang/natClass.cc (isInstance): Initialize `this'.
6383 (isAssignableFrom): Initialize `this' and `klass'.
6384 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6385 implemented by any loaded class, so return false.
6386 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6387 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6389 2000-03-19 Warren Levy <warrenl@cygnus.com>
6391 * java/awt/Color.java: Specified java.io for Serializable.
6392 * java/awt/Toolkit.java: Imported java.net.URL.
6394 2000-03-19 Warren Levy <warrenl@cygnus.com>
6396 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6398 2000-03-16 Warren Levy <warrenl@cygnus.com>
6400 * java/awt/Color.java: New file.
6401 * java/awt/Graphics.java: New file.
6402 * java/awt/Image.java: New file.
6403 * java/awt/Paint.java: New file.
6404 * java/awt/PaintContext.java: New file.
6405 * java/awt/Transparency.java: New file.
6406 * java/util/Collection.java: New file.
6407 * java/util/Comparator.java: New file.
6408 * java/util/Iterator.java: New file.
6409 * java/util/List.java: New file.
6410 * java/util/ListIterator.java: New file.
6411 * Makefile.am: Added above new files.
6412 * Makefile.in: Rebuilt.
6414 * java/awt/Font.java (PLAIN): New field.
6416 (ITALIC): New field.
6417 (ROMAN_BASELINE): New field.
6418 (CENTER_BASELINE): New field.
6419 (HANGING_BASELINE): New field.
6423 (pointSize): New field.
6424 (Font): Implemented constructor.
6425 (isPlain): Implemented method.
6426 (isBold): Implemented method.
6427 (isItalic): Implemented method.
6428 (getName): Implemented method.
6429 (getStyle): Implemented method.
6430 (getSize): Implemented method.
6431 (getSize2D): Implemented method.
6433 * java/awt/Frame.java (getFont): Stubbed.
6434 (postEvent): Stubbed.
6436 * java/awt/Menu.java (postEvent): Stubbed.
6437 * java/awt/MenuBar.java (getFont): Stubbed.
6438 (postEvent): Stubbed.
6439 * java/awt/Toolkit.java (getImage): Added abstract method.
6441 2000-03-15 Tom Tromey <tromey@cygnus.com>
6443 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6445 * prims.cc (win32_exception_handler): Reformatted.
6447 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6448 (_Jv_HaveMutexDestroy): Likewise.
6450 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6452 * java/io/natFileDescriptorWin32.cc: New file.
6453 * java/io/natFileWin32.cc: New file.
6454 * java/net/natInetAddress.cc: Added conditional inclusion of
6455 Windows / Winsock headers.
6456 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6457 inclusion of Windows / Winsock headers.
6458 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6459 Windows / Winsock headers.
6460 * include/win32-signal.h: New file.
6461 * include/win32-threads.h: New file.
6462 * win32-threads.cc: New file.
6463 * exception.cc (win32_get_restart_frame): New function.
6464 * prims.cc (win32_exception_handler): New function.
6465 (main_init) Performs Winsock initialisation.
6466 (main_init) Installs exeception handler.
6468 2000-03-14 Tom Tromey <tromey@cygnus.com>
6470 * jni.cc (mangled_name): Fixed assertion.
6471 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6472 turned assert into actual failure.
6474 2000-03-09 Warren Levy <warrenl@cygnus.com>
6476 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6477 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6478 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6480 2000-03-09 Warren Levy <warrenl@cygnus.com>
6482 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6483 * java/security/DigestException.java: New file.
6484 * java/security/GeneralSecurityException.java: New file.
6485 * java/security/InvalidAlgorithmParameterException.java: New file.
6486 * java/security/InvalidKeyException.java: New file.
6487 * java/security/InvalidParameterException.java: New file.
6488 * java/security/Key.java: New file.
6489 * java/security/KeyException.java: New file.
6490 * java/security/KeyPair.java: New file.
6491 * java/security/KeyPairGenerator.java: New file.
6492 * java/security/KeyPairGeneratorSpi.java: New file.
6493 * java/security/NoSuchProviderException.java: New file.
6494 * java/security/PrivateKey.java: New file.
6495 * java/security/Provider.java: New file.
6496 * java/security/PublicKey.java: New file.
6497 * java/security/SecureRandom.java: New file.
6498 * java/security/Security.java: New file.
6499 * java/security/Signature.java: New file.
6500 * java/security/SignatureException.java: New file.
6501 * java/security/interfaces/DSAKey.java: New file.
6502 * java/security/interfaces/DSAParams.java: New file.
6503 * java/security/interfaces/DSAPrivateKey.java: New file.
6504 * java/security/interfaces/DSAPublicKey.java: New file.
6505 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6506 * java/security/interfaces/RSAPrivateKey.java: New file.
6507 * java/security/interfaces/RSAPublicKey.java: New file.
6508 * java/security/spec/AlgorithmParameterSpec.java: New file.
6509 * java/security/spec/InvalidKeySpecException.java: New file.
6510 * java/security/spec/InvalidParameterSpecException.java: New file.
6511 * java/security/spec/KeySpec.java: New file.
6512 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6513 * java/security/spec/RSAPrivateKeySpec.java: New file.
6514 * java/security/spec/RSAPublicKeySpec.java: New file.
6515 * Makefile.am: Added above java.security files.
6516 * Makefile.in: Rebuilt.
6518 * java/security/MessageDigest.java: Rewritten.
6519 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6521 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6525 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6527 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6528 _Jv_PrepareConstantTimeTables.
6529 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6530 classes should have an IDT, so don't return if klass is an array
6533 2000-03-08 Tom Tromey <tromey@cygnus.com>
6535 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6536 of `void' to be created.
6538 2000-03-08 Warren Levy <warrenl@cygnus.com>
6540 * java/math/BigInteger.java(signum): Handle zero properly.
6542 2000-03-07 Tom Tromey <tromey@cygnus.com>
6544 * All files: Updated copyright information.
6545 * COPYING: New file.
6546 * COPYING.LIB: Removed.
6547 * LIBGCJ_LICENSE: We now use GPL + special exception.
6549 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6551 * resolve.cc (_Jv_SearchMethodInClass): New function.
6552 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6553 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6555 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6557 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6558 (struct _Jv_ifaces): New declaration.
6559 JV_CLASS: New macro definition.
6560 (getComponentType): Relocate below isArray() for inlining.
6561 (getModifiers): Declare `inline'.
6562 (getSuperclass): Ditto.
6564 (isPrimitive): Ditto.
6565 (_Jv_IsAssignableFrom): New prototype.
6566 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6568 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6569 Check for JV_STATE_DONE before invoking initializeClass().
6570 (_Jv_PrepareConstantTimeTables): New prototype.
6571 (_Jv_GetInterfaces): Ditto.
6572 (_Jv_GenerateITable): Ditto.
6573 (_Jv_GetMethodString): Ditto.
6574 (_Jv_AppendPartialITable): Ditto.
6575 (_Jv_FindIIndex): Ditto.
6576 depth, ancestors, idt: New class fields.
6578 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6579 inline function `_Jv_IsAssignableFrom'. Use that function.
6580 (isInstance): Declare `inline'.
6581 (initializeClass): Get lock on class before checking `state'. Unlock
6582 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6584 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6585 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6586 class->depth and ancestor table.
6587 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6588 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6589 _Jv_IsAssignableFrom.
6590 (_Jv_CheckArrayStore): Ditto.
6591 (_Jv_LookupInterfaceMethodIdx): New function.
6592 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6593 (_Jv_PrepareConstantTimeTables): New function.
6594 (_Jv_IndexOf): Ditto.
6595 (_Jv_GetInterfaces): Ditto.
6596 (_Jv_GenerateITable): Ditto.
6597 (_Jv_GetMethodString): Ditto.
6598 (_Jv_AppendPartialITable): Ditto.
6599 iindex_mutex, iindex_mutex_initialized: New static fields.
6600 (_Jv_FindIIndex): New function.
6602 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6604 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6605 (_Jv_CheckArrayStore): Ditto.
6606 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6607 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6608 Moved to gcj/array.h.
6609 (_Jv_Realloc): New function.
6611 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6613 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6614 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6615 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6616 JvNewDoubleArray): Implementations moved from prims.cc and
6619 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6621 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6623 2000-03-06 Tom Tromey <tromey@cygnus.com>
6625 * jni.cc (MARK_NONE): New define.
6626 (MARK_USER): Likewise.
6627 (MARK_SYSTEM): Likewise.
6628 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6630 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6631 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6632 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6633 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6635 (call): Use MARK_SYSTEM.
6636 (_Jv_GetJNIEnvNewFrame): New function.
6637 (_Jv_LookupJNIMethod): New function.
6638 (_Jv_JNI_PopSystemFrame): New function.
6639 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6641 2000-03-05 Tom Tromey <tromey@cygnus.com>
6643 Fix for PR libgcj/43:
6644 * include/Makefile.in: Rebuilt.
6645 * include/Makefile.am (include_HEADERS): New define.
6647 2000-03-05 Anthony Green <green@redhat.com>
6649 * gcj/javaprims.h ("Java"): Remove FirstThread.
6651 * configure.host: Fix __NO_MATH_INLNES botch.
6653 * Makefile.in: Rebuilt.
6654 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6655 (gnu/gcj/runtime/FirstThread.h): Moved.
6656 (ordinary_java_source_files): Move FirstThread.java.
6657 * prims.cc: Deal with FirstThread movement.
6659 (_Jv_RunMain): Ditto.
6661 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6662 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6664 2000-03-05 Warren Levy <warrenl@cygnus.com>
6666 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6667 Handle null addresses.
6669 2000-03-04 Anthony Green <green@redhat.com>
6671 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6674 2000-03-04 Anthony Green <green@redhat.com>
6676 * configure: Rebuilt.
6677 * configure.in (ZLIBTESTSPEC): New macro.
6678 (GCTESTSPEC): New macro.
6679 (LIBGCJTESTSPEC): New macro.
6680 * libgcj-test.spec.in: New file.
6682 2000-03-02 Tom Tromey <tromey@cygnus.com>
6684 * include/java-interp.h: Don't include MethodInvocation.h.
6685 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6686 * Makefile.in: Rebuilt.
6687 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6688 (ordinary_java_source_files): Don't mention
6689 MethodInvocation.java.
6690 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6691 * interpret.cc (MethodInvocation::continue1): Removed.
6692 (run): Handle exceptions here.
6693 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6695 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6697 (defineClass2): Removed.
6699 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6701 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6703 (hack_call): Removed.
6705 * java/lang/Class.h (Class): Removed hackRunInitializers,
6707 * java/lang/natClass.cc (hackRunInitializers): Removed.
6708 (initializeClass): Catch exceptions here.
6709 Include ExceptionInInitializerError.h.
6710 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6713 * java/lang/Object.h (Object): Don't mention hack12_6.
6714 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6716 * java/lang/Object.java (hack12_6): Removed.
6718 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6719 (start): Use run_, not run__.
6720 * java/lang/Thread.java (run_): Renamed from run__; old run_
6723 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6724 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6725 (_Jv_JNI_DefineClass): Likewise.
6726 (_Jv_JNI_ThrowNew): Likewise.
6727 (_Jv_JNI_AllocObject): Likewise.
6728 (_Jv_JNI_GetAnyMethodID): Likewise.
6729 (_Jv_JNI_CallAnyMethodV): Likewise.
6730 (_Jv_JNI_CallAnyMethodA): Likewise.
6731 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6732 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6733 (_Jv_JNI_GetAnyFieldID): Likewise.
6734 (_Jv_JNI_NewString): Likewise.
6735 (_Jv_JNI_NewStringUTF): Likewise.
6736 (_Jv_JNI_GetStringUTFChars): Likewise.
6737 (_Jv_JNI_NewObjectArray): Likewise.
6738 (_Jv_JNI_NewPrimitiveArray): Likewise.
6739 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6740 (_Jv_JNI_GetStringRegion): Likewise.
6741 (_Jv_JNI_GetStringUTFRegion): Likewise.
6742 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6743 (_Jv_JNI_MonitorEnter): Likewise.
6744 (_Jv_JNI_MonitorExit): Likewise.
6745 (_Jv_JNI_ToReflectedField): Likewise.
6746 (_Jv_JNI_ToReflectedMethod): Likewise.
6747 (_Jv_JNI_RegisterNatives): Likewise.
6748 (_Jv_JNI_AttachCurrentThread): Likewise.
6749 (_Jv_JNI_DestroyJavaVM): Likewise.
6751 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6753 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6754 error caused by the incorrect casting of a long to an int.
6756 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6758 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6759 SIGSEV caused by use of the wrong instance variable.
6761 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6763 * java/io/File.java (File(String, String)): For dirPath, treat an
6764 empty String the same as `null'.
6766 2000-02-26 Anthony Green <green@cygnus.com>
6768 * gnu/gcj/io/MimeTypes.java: Test for null.
6770 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6771 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6773 * java/net/URLConnection.java: Update copyright notice.
6775 2000-02-25 Tom Tromey <tromey@cygnus.com>
6777 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6780 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6782 * java/net/URLConnection.java (initializeDateFormats): New
6784 (getHeaderFieldDate): Call initializeDateFormats if required.
6785 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6787 Fix for PR libgcj/38.
6789 2000-02-24 Warren Levy <warrenl@cygnus.com>
6791 * java/math/BigInteger.java(ival): Made private.
6795 2000-02-20 Anthony Green <green@cygnus.com>
6797 * Makefile.in: Rebuilt.
6798 * Makefile.am (ordinary_java_source_files): Add
6799 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6801 * scripts/MakeDefaultMimeTypes.java: New file.
6802 * scripts/mime.types: New file.
6803 * scripts/classes.pl: Moved from top level.
6804 * classes.pl: Moved to scripts directory.
6806 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6808 * gnu/gcj/io/MimeTypes.java: New file.
6809 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6811 2000-02-20 Tom Tromey <tromey@cygnus.com>
6813 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6815 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6817 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6820 2000-02-18 Tom Tromey <tromey@cygnus.com>
6822 * include/jvm.h (_Jv_GetJavaVM): Declare.
6823 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6824 (_Jv_MethodBase::get_method): New method.
6825 (_Jv_JNIMethod::set_function): New method.
6826 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6827 (_Jv_JNI_RegisterNatives): New function.
6828 (_Jv_JNIFunctions): Updated for new functions.
6829 (_Jv_GetJavaVM): New function.
6830 (_Jv_JNI_GetJavaVM): Use it. Now static.
6831 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6832 is already a Java thread but does not have a JNIEnv yet.
6834 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6837 2000-02-17 Tom Tromey <tromey@cygnus.com>
6839 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6842 2000-02-16 Tom Tromey <tromey@cygnus.com>
6844 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6846 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6847 (_Jv_JNI_NewObject): Likewise.
6848 (_Jv_JNI_NewObjectA): Likewise.
6849 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6850 as "return" type to _Jv_CallAnyMethodA.
6851 (_Jv_JNI_CallAnyMethodA): Likewise.
6852 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6854 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6857 2000-02-15 Tom Tromey <tromey@cygnus.com>
6859 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6861 (init_cif): Added `rtype_p' argument.
6862 * include/java-interp.h (class _Jv_MethodBase): Added
6864 (class _Jv_InterpMethod): Removed args_raw_size.
6865 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6866 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6867 class pointer as well as the ordinary arguments.
6869 * jni.cc (mangled_name): Skip leading `(' in signature.
6871 * jni.cc (add_char): Added missing `else'.
6873 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6876 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6880 * java/lang/natRuntime.cc (_load): Include library path with
6883 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6886 * java/lang/natThread.cc (dumpStack): Removed.
6887 * java/lang/Thread.java (dumpStack): Implemented.
6889 2000-02-15 Tom Tromey <tromey@cygnus.com>
6891 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6892 with `lib' for loadLibrary. Fixes PR gcj/150.
6894 2000-02-14 Warren Levy <warrenl@cygnus.com>
6896 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6898 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6902 (modPow): Rewritten to not use the naive, slow, brute force approach.
6903 (isProbablePrime): Implemented.
6904 (testBit): Implemented.
6905 (flipBit): Implemented.
6906 (getLowestSetBit): Implemented.
6908 2000-02-16 Anthony Green <green@redhat.com>
6910 * configure.host: Use the same options for i386 and i486 as we do
6913 2000-02-12 Tom Tromey <tromey@cygnus.com>
6915 * java/io/File.java (createTempFile): Use low bits from counter,
6918 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6920 * THANKS: More thanks.
6922 2000-02-11 Tom Tromey <tromey@cygnus.com>
6924 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6925 astore instruction. From Hans Boehm.
6927 2000-02-11 Warren Levy <warrenl@cygnus.com>
6929 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6930 (BigInteger(String)): New constructor.
6931 (not): Rewritten using version from Kawa's BitOps class.
6932 (valueOf): New private methods from Kawa's BitOps class.
6939 (andNot): Implemented.
6940 (clearBit): Implemented.
6941 (setBit): Implemented.
6942 (bitCount): Implemented.
6943 (toByteArray): Implemented.
6945 2000-02-11 Tom Tromey <tromey@cygnus.com>
6947 * java/io/File.java (nextValue): Now synchronized.
6949 2000-02-10 Tom Tromey <tromey@cygnus.com>
6951 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6952 * java/io/FileDescriptor.java (EXCL): New static field.
6953 * java/io/File.java (tmpdir): New static field.
6954 (createTempFile): New method.
6955 (nextValue): New method.
6956 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6959 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6960 (jboolean): Declare as an attributed int, not a bool.
6961 (_Jv_func): Declare differently for C.
6963 * gnu/gcj/jni/natNativeThread.cc: New file.
6964 * gnu/gcj/jni/NativeThread.java: New file.
6965 * java/lang/Thread.java (data): Now a RawData.
6966 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6968 * Makefile.in: Rebuilt.
6969 * Makefile.am (java/lang/Thread.h): New target.
6970 (ordinary_java_source_files): Added NativeThread.java.
6971 (nat_source_files): Added natNativeThread.cc.
6972 * java/lang/natThread.cc: Include <jni.h>
6973 (struct natThread): Added `jni_env' field.
6974 (_Jv_GetCurrentJNIEnv): New function.
6975 (_Jv_SetCurrentJNIEnv): Likewise.
6976 (initialize_native): Initialize jni_env.
6978 * jni.cc (ThreadGroupClass): New define.
6979 (_Jv_JNI_InvokeFunctions): New structure.
6980 (JNI_GetCreatedJavaVMs): New function.
6981 (the_vm): New global.
6982 (JNI_GetDefaultJavaVMInitArgs): New function.
6983 Include NativeThread.h.
6984 (NativeThreadClass): New define.
6985 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6986 (_Jv_JNI_DestroyJavaVM): New function.
6987 (_Jv_JNI_AttachCurrentThread): New function.
6988 (_Jv_JNI_DetachCurrentThread): New function.
6989 (_Jv_JNI_GetEnv): New function.
6990 (JNI_CreateJavaVM): New function.
6991 (_Jv_JNI_GetJavaVM): New function.
6992 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6993 * include/jni.h (JavaVMAttachArgs): New structure.
6994 (JNI_EDETACHED): New define.
6995 (JNI_EVERSION): Likewise.
6996 (JavaVM): Define properly.
6997 (struct JNIInvokeInterface): New structure.
6998 (class _Jv_JavaVM): New class.
6999 (JNI_OnLoad, JNI_OnUnload): Declare.
7000 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7001 JNI_GetCreatedJavaVMs): Declare.
7002 (JavaVMInitArgs): New typedef.
7003 (JavaVMOption): Likewise.
7004 (JNI_ERR): New define.
7007 2000-02-10 Andrew Haley <aph@cygnus.com>
7009 * interpret.cc: Don't include fdlibm.h.
7010 Replace #if with #ifdef throughout.
7011 Declare extern __ieee754_fmod.
7012 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7014 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7015 Search class hierarchy for superclass vtable.
7017 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7018 off the end of a pointer list.
7020 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7024 2000-02-09 Tom Tromey <tromey@cygnus.com>
7026 * java/lang/natRuntime.cc (_load): Call add_library.
7027 (loadLibraryInternal): Likewise.
7029 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7030 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7031 (Output_iconv::finalize): Likewise.
7033 2000-02-08 Tom Tromey <tromey@cygnus.com>
7035 * java/util/Properties.java (setProperty): New method.
7036 (store): New method.
7038 2000-02-07 Tom Tromey <tromey@cygnus.com>
7040 * java/lang/Runtime.java (_load): Declare.
7041 (load, loadLibrary): Wrote in terms of _load.
7042 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7044 (loadLibrary): Likewise.
7046 (_load): New method.
7047 (loadLibrary, load): Removed.
7049 * jni.cc (ThrowableClass): New define.
7050 (_Jv_JNI_Throw): Check argument.
7051 (_Jv_JNI_ThrowNew): Likewise.
7052 (wrap_value): Don't wrap object if it is NULL.
7053 (_Jv_JNI_DefineClass): Use wrap_value.
7054 (_Jv_JNI_FindClass): Likewise.
7055 (_Jv_JNI_GetSuperclass): Likewise.
7056 (_Jv_JNI_ExceptionOccurred): Likewise.
7057 (_Jv_JNI_AllocObject): Likewise.
7058 (_Jv_JNI_GetObjectClass): Likewise.
7059 (_Jv_JNI_NewString): Likewise.
7060 (_Jv_JNI_NewStringUTF): Likewise.
7061 (_Jv_JNI_NewObjectArray): Likewise.
7062 (_Jv_JNI_GetObjectArrayElement): Likewise.
7063 (_Jv_JNI_NewPrimitiveArray): Likewise.
7064 (_Jv_JNI_ToReflectedField): Likewise.
7065 (_Jv_JNI_ToReflectedMethod): Likewise.
7066 (_Jv_JNI_AllocObject): Check argument.
7067 (_Jv_JNI_NewObjectV): Likewise.
7068 (_Jv_JNI_NewObject): Likewise.
7069 (_Jv_JNI_NewObjectA): Likewise.
7070 (_Jv_JNI_GetObjectClass): Likewise.
7071 (_Jv_JNI_GetField): Likewise.
7072 (_Jv_JNI_SetField): Likewise.
7074 * interpret.cc (PUSHL): Don't use expression statement.
7079 * jni.cc (add_char): Conditional on INTERPRETER.
7080 (mangled_name): Likewise.
7082 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7084 (class _Jv_JNIMethod): Likewise.
7086 2000-02-04 Warren Levy <warrenl@cygnus.com>
7088 * Makefile.am: Added MPN.java and BigInteger.java.
7089 * Makefile.in: Rebuilt.
7090 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7092 * java/math/BigInteger.java: New file. Based primarily on
7093 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7095 2000-02-04 Tom Tromey <tromey@cygnus.com>
7097 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7099 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7100 if the method is native.
7101 * resolve.cc (ncode): Don't handle native methods.
7102 (_Jv_JNIMethod::ncode): New method.
7103 (_Jv_PrepareClass): Handle native methods.
7104 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7105 Include AbstractMethodError.h.
7106 (add_char): New function.
7107 (mangled_name): Likewise.
7108 * include/java-interp.h (class _Jv_JNIMethod): New class.
7109 (class _Jv_MethodBase): New class.
7110 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7111 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7114 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7115 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7116 libraries): New globals.
7117 (add_library): New function.
7118 (_Jv_FindSymbolInExecutable): New function.
7120 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7123 2000-02-04 Andrew Haley <aph@cygnus.com>
7125 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7126 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7127 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7128 printStackTrace to printRawStackTrace.
7130 2000-02-03 Tom Tromey <tromey@cygnus.com>
7132 * java/util/Calendar.java (toString): New method.
7133 * java/util/SimpleTimeZone.java (clone): New method.
7134 (toString): New method.
7135 * java/util/TimeZone.java (clone): New method.
7136 * java/text/SimpleDateFormat.java (clone): New method.
7137 * java/text/NumberFormat.java (clone): New method.
7138 (equals): New method.
7139 * java/text/Format.java (clone): New method.
7140 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7142 (clone): New method.
7143 * java/text/DateFormat.java (clone): New method.
7144 * java/text/Collator.java (clone): New method.
7146 2000-02-03 Tom Tromey <tromey@cygnus.com>
7148 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7151 2000-02-01 Tom Tromey <tromey@cygnus.com>
7153 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7154 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7155 constructing the closure if the function is native.
7156 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7157 a template function, #if'd out, or static.
7158 Include <java-interp.h>.
7160 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7162 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7164 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7165 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7167 (wrap_value): New function.
7168 (_Jv_JNI_CallAnyMethodV): Use it.
7169 (_Jv_JNI_CallAnyMethodA): Likewise.
7170 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7171 (_Jv_JNI_GetStaticField): Likewise.
7173 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7174 (_Jv_JNI_GetStaticField): Likewise.
7176 2000-01-31 Tom Tromey <tromey@cygnus.com>
7178 * prims.cc (_Jv_MallocUnchecked): New function.
7179 (main_init): Call _Jv_JNI_Init.
7180 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7181 (_Jv_JNI_Init): Declare.
7182 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7184 (_Jv_JNI_NewGlobalRef): New function.
7185 (_Jv_JNI_DeleteGlobalRef): New function.
7186 (_Jv_JNI_DeleteLocalRef): New function.
7187 (_Jv_JNI_conversion_call): Initialize and clear local reference
7189 (_Jv_JNI_NewLocalRef): New function.
7190 (struct _Jv_JNI_LocalFrame): New structure.
7191 (_Jv_JNI_PushLocalFrame): New function.
7192 (_Jv_JNI_EnsureLocalCapacity): New function.
7193 (FRAME_SIZE): New define.
7194 (_Jv_JNI_GetStringChars): Mark string, not characters.
7195 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7196 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7197 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7199 (_Jv_JNI_DefineClass): Make return value a local ref.
7200 (_Jv_JNI_FindClass): Likewise.
7201 (_Jv_JNI_GetSuperclass): Likewise.
7202 (_Jv_JNI_ExceptionOccurred): Likewise.
7203 (_Jv_JNI_AllocObject): Likewise.
7204 (_Jv_JNI_GetObjectClass): Likewise.
7205 (_Jv_JNI_CallAnyMethodV): Likewise.
7206 (_Jv_JNI_NewString): Likewise.
7207 (_Jv_JNI_NewStringUTF): Likewise.
7208 (_Jv_JNI_NewObjectArray): Likewise.
7209 (_Jv_JNI_GetObjectArrayElement): Likewise.
7210 (_Jv_JNI_ToReflectedField): Likewise.
7211 (_Jv_JNI_ToReflectedMethod): Likewise.
7212 (_Jv_JNIFunctions): Updated table for new functions.
7213 (_Jv_JNI_Init): New function.
7214 (mark_for_gc): Wrote.
7215 (unmark_for_gc): Wrote.
7216 * include/jni.h (struct JNINativeInterface): Removed name from
7217 PopLocalFrame parameter.
7218 (class _Jv_JNIEnv): Added `locals' field.
7220 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7222 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7225 2000-01-30 Tom Tromey <tromey@cygnus.com>
7227 * include/config.h.in: Rebuilt.
7228 * acconfig.h (HAVE_ICONV): Define.
7229 * configure: Rebuilt.
7230 * configure.in: Check for `iconv' function.
7231 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7232 no specific encoder exists.
7233 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7234 no specific encoder exists.
7235 * Makefile.in: Rebuilt.
7236 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7238 (nat_source_files): Added natIconv.cc.
7239 * gnu/gcj/convert/natIconv.cc: New file.
7240 * gnu/gcj/convert/Input_iconv.java: New file.
7241 * gnu/gcj/convert/Output_iconv.java: New file.
7243 2000-01-28 Tom Tromey <tromey@cygnus.com>
7245 * Makefile.in: Rebuilt.
7246 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7248 2000-01-26 Tom Tromey <tromey@cygnus.com>
7250 * gcj/method.h (JvNumMethods): Moved from Class.h.
7251 (JvGetFirstMethod): Likewise.
7252 * java/lang/Class.h (Object): Updated decl of
7253 _Jv_JNI_ToReflectedField.
7254 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7255 * Makefile.in: Rebuilt.
7256 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7257 argument of _Jv_JNI_ToReflectedField.
7258 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7260 (java/lang/reflect/Method.h): Likewise.
7261 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7263 (jweak): New typedef.
7264 (struct JNINativeInterface): Correctly declare remaining entries.
7265 * jni.cc: Include Class.h, ClassLoader.h.
7266 (_Jv_JNI_FindClass): New function.
7267 (_Jv_JNI_DefineClass): New function.
7268 (_Jv_JNI_conversion_call): New function.
7269 (_Jv_JNI_FindClass): Use current class loader to find class.
7270 (_Jv_JNI_ExceptionCheck): New function.
7271 (_Jv_JNI_FromReflectedField): Now static.
7272 (MethodClass): New define.
7273 (_Jv_JNI_FromReflectedMethod): New function.
7274 (_Jv_JNI_ToReflectedMethod): Likewise.
7276 (_Jv_JNI_IsAssignableFrom): Renamed.
7277 (_Jv_JNI_GetStringRegion): New function.
7278 Include StringIndexOutOfBoundsException.h.
7279 (_Jv_JNI_GetStringUTFRegion): New function.
7280 (_Jv_JNIFunctions): Updated for new functions.
7281 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7282 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7283 (_Jv_JNI_GetStringCritical): New function.
7284 (_Jv_JNI_ReleaseStringCritical): Likewise.
7285 (get_throwable): Removed.
7286 (GCJ_JV_JNIENV_FRIEND): Removed.
7287 (__GCJ_JNI_IMPL__): Define.
7290 * resolve.cc (get_ffi_type_from_signature): Handle case where
7293 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7295 * interpret.cc (run): Don't call println.
7296 Don't include PrintStream.h.
7298 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7299 nameIndex. Use "jint" as type for boffset.
7300 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7302 (Class): Likewise. Also changed type of method_count,
7303 vtable_method_count, size_in_bytes, field_count,
7304 static_field_count, interface_count.
7305 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7308 2000-01-21 Tom Tromey <tromey@cygnus.com>
7310 * java/lang/reflect/natConstructor.cc (newInstance): Use
7312 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7313 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7314 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7317 (invoke): Use _Jv_CallAnyMethodA.
7319 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7320 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7322 (struct _Jv_Method): Added getNextMethod method.
7323 (JvNumMethods): New function.
7324 (JvGetFirstMethod): Likewise.
7325 * gcj/field.h (JvGetFirstStaticField): New function.
7326 (JvNumStaticFields): Likewise.
7327 (getNextField): Renamed from getNextInstanceField.
7328 (struct _Jv_Field): New method getClass.
7329 * jni.cc: Wrote many new functions.
7330 * include/jni.h (JNI_TRUE): Define.
7331 (JNI_FALSE): Likewise.
7332 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7333 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7334 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7335 (jfieldID, jmethodID): Likewise.
7336 (JNI_COMMIT, JNI_ABORT): New defines.
7337 (JNINativeMethod): New struct.
7338 (struct JNINativeInterface): Correctly declared more entries.
7339 (class _Jv_JNIEnv): Added `ex' member.
7340 (JNI_VERSION_1_1): New define.
7341 (JNI_VERSION_1_2): Likewise.
7343 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7344 getNextInstanceField.
7346 2000-01-20 Tom Tromey <tromey@cygnus.com>
7348 * resolve.cc (StringClass): Removed.
7349 * defineclass.cc (StringClass): Removed.
7351 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7355 2000-01-19 Tom Tromey <tromey@cygnus.com>
7357 * interpret.cc (PC_REGISTER_ASM): Removed.
7359 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7360 From Bryce McKinlay.
7362 * All files: Updated copyright to reflect Cygnus purchase.
7364 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7366 * configure: Rebuilt.
7367 * configure.in: Recognize --disable-interpreter.
7369 2000-01-18 Andrew Haley <aph@cygnus.com>
7371 * name-finder.cc (lookup): Check for dladdr function.
7372 acconfig.h (HAVE_DLADDR): Add.
7373 configure.in: Check for HAVE_DLADDR
7375 include/config.h.in: Rebuilt.
7377 2000-01-17 Andrew Haley <aph@cygnus.com>
7379 * prims.cc (_Jv_RunMain): Set the name of this executable.
7381 2000-01-17 Tom Tromey <tromey@cygnus.com>
7383 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7384 when backtrace can't be computed.
7386 * configure: Rebuilt.
7387 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7389 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7390 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7391 (_Jv_FindClassInCache): Likewise.
7392 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7393 (findSystemClass): Try to load class from compiled module.
7395 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7396 (loadLibrary): Likewise.
7397 (lt_preloaded_symbols): Define.
7398 (loadLibraryInternal): New method.
7399 * include/config.h.in: Rebuilt.
7400 * acconfig.h (USE_LTDL): Added.
7401 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7402 (INCLUDES): Added $(INCLTDL).
7403 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7404 (libgcj_la_LIBADD): Likewise.
7405 * aclocal.m4, configure: Rebuilt.
7406 * configure.in: Added libltdl support.
7408 2000-01-15 Tom Tromey <tromey@cygnus.com>
7410 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7412 2000-01-14 Andrew Haley <aph@cygnus.com>
7414 * java/lang/natThrowable.cc: New file.
7416 * java/lang/Throwable.java (fillInStackTrace): Make native.
7417 (printStackTrace): Call native method to do this.
7418 (Throwable): Call fillInStackTrace.
7419 (stackTrace): New variable.
7421 * include/jvm.h: Add _Jv_ThisExecutable functions.
7423 * prims.cc: (_Jv_execName): New variable.
7424 (catch_segv): Call fillInStackTrace.
7426 (_Jv_ThisExecutable): New functions.
7427 (JvRunMain): Set the name of this executable.
7429 * Makefile.am: Add java/lang/natThrowable.cc.
7431 * Makefile.in: Rebuilt.
7433 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7435 * configure.in: Force link with __frame_state_for in
7436 FORCELIBGCCSPEC. Add new checks for backtrace.
7437 * include/config.h.in: Rebuilt.
7439 * name-finder.cc: New file.
7440 * include/name-finder.h: New file.
7442 2000-01-16 Anthony Green <green@cygnus.com>
7444 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7447 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7449 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7451 2000-01-13 Tom Tromey <tromey@cygnus.com>
7453 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7454 not system loader, as initiating loader.
7456 2000-01-11 Tom Tromey <tromey@cygnus.com>
7458 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7459 HP/UX. From David Scott Urban.
7461 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7463 * java/lang/natMath.cc (pow): Cast args to `double', not
7466 (IEEEremainder): Likewise.
7467 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7468 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7470 2000-01-09 Anthony Green <green@cygnus.com>
7472 * java/lang/natString.cc (init): Test for overflow condition
7473 during out of bounds check.
7474 (getChars): Throw StringIndexOutOfBoundsException, not
7475 ArrayIndexOutOfBoundsException.
7477 (regionMatches): Obey case option during string comparison.
7479 * configure.host (ligcj_interpreter): New variable. Enable
7480 interpreter by default on IA-32.
7481 * configure.in: Examine libgcj_interpreter.
7482 * configure: Rebuilt.
7484 2000-01-07 Tom Tromey <tromey@cygnus.com>
7486 * mauve-libgcj: Don't disable ClassTest.
7488 * java/lang/natClass.cc (getClasses): Wrote.
7490 2000-01-06 Tom Tromey <tromey@cygnus.com>
7492 * java/lang/natClass.cc (_getConstructors): Correctly check
7493 whether method name is the init name.
7494 (getMethod): Look at accflags on method in `klass', not `this'.
7496 2000-01-05 Tom Tromey <tromey@cygnus.com>
7498 * java/lang/natClass.cc (getMethod): Compute offset relative to
7499 `klass's methods table, not `this's table.
7501 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7502 In unwrapping/widening case, check whether `k' is null, not
7503 whether it is primitive. Initialize `num' from `argelts', not
7504 `paramelts'. Correct create and pass arguments to ffi_call.
7505 Don't let presence of `this' argument affect index used to look in
7507 (COPY): Set appropriate element in `values' vector.
7509 * java/lang/natClass.cc: Include <gcj/method.h>.
7511 * java/lang/Class.h (_getMethods): Correctly declare as private,
7514 * java/lang/Class.h (_getMethods): Declare.
7515 * java/lang/Class.java (_getMethods): Declare.
7516 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7517 (getDeclaredClasses): Always return empty array.
7518 (_getMethods): New method.
7519 (getMethods): Wrote.
7520 (getDeclaredMethod): Return `rmethod'.
7521 (finit_name): New global.
7522 (getDeclaredMethods): Check for finit_name.
7523 (_getMethods): Likewise.
7524 (getMethod): Only return public methods.
7526 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7527 jboolean and select correct ffi type on that basis.
7528 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7529 Constructor call always has `void' return type.
7531 2000-01-04 Tom Tromey <tromey@cygnus.com>
7533 * java/lang/Class.h (getSignature): Updated.
7534 * java/lang/Class.java (getSignature): Updated.
7535 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7537 (getConstructor): Ensure constructor is public.
7538 (_getConstructors): Check for public-ness of constructor when
7539 `declared' is false, not when it is true.
7541 2000-01-04 Warren Levy <warrenl@cygnus.com>
7543 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7545 (receive): Set the sender's address in the DatagramPacket.
7547 2000-01-04 Tom Tromey <tromey@cygnus.com>
7549 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7550 declaring class as return_type argument to
7551 _Jv_CallNonvirtualMethodA.
7552 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7553 constructor case, create object and use it as `this' argument.
7554 * java/lang/Class.h (_getConstructors): Declare.
7555 (_getFields): Declare.
7556 * java/lang/Class.java (getConstructors): Wrote.
7557 (_getConstructors): New native method.
7558 (getDeclaredConstructors): Wrote.
7559 (_getFields): Declare new native method.
7560 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7562 (getMethod): Work correctly when class is primitive.
7563 (getDeclaredMethods): Likewise. Compute offset using `method',
7565 (getDeclaredMethod): Likewise.
7566 (getConstructor): Wrote.
7567 (ConstructorClass): New define.
7568 (getDeclaredConstructor): Wrote.
7569 (_getConstructors): New method.
7570 (_getFields): New method.
7573 * Makefile.in: Rebuilt.
7574 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7576 * prims.cc: Remove `#pragma implementation'.
7577 * gcj/array.h: Remove `#pragma interface'.
7579 * prims.cc (_Jv_equaln): New function.
7580 * java/lang/Class.java (getSignature): Declare.
7581 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7582 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7584 (getSignature): New method.
7585 (getDeclaredMethod): Wrote.
7587 Include StringBuffer.h.
7588 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7589 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7591 (getSignature): Declare.
7592 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7593 (_Jv_equaln): Declare.
7594 (_Jv_CallNonvirtualMethodA): Declare.
7595 * Makefile.in: Rebuilt.
7596 * Makefile.am (nat_source_files): Added natConstructor.cc.
7597 (java/lang/reflect/Constructor.h): New target.
7598 * java/lang/reflect/natConstructor.cc: New file.
7599 * java/lang/reflect/Constructor.java (newInstance): Now native.
7600 (declaringClass): Renamed from decl_class.
7601 (offset): Renamed from index.
7602 (getType): New native method.
7603 (getModifiers): Now native.
7604 (getParameterTypes): Call getType if required.
7605 (hashCode): Include hash code from declaring class.
7606 (modifiers): Removed.
7607 (toString): Call getType if required.
7608 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7609 * java/lang/reflect/natMethod.cc (hack_call): New method.
7610 Removed `#if 0' around FFI code.
7611 Include <gnu/gcj/RawData.h>.
7612 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7613 IllegalArgumentException when argument object and class disagree.
7614 (_Jv_GetTypesFromSignature): New function.
7616 (ObjectClass): New define.
7617 (_Jv_CallNonvirtualMethodA): New function.
7618 * java/lang/reflect/Method.java (hack_trampoline): New method.
7619 (hack_call): New native method.