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