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