]> gcc.gnu.org Git - gcc.git/blob - libjava/ChangeLog
* java/lang/natClass.cc (isInstance): Use JV_CLASS, not getClass().
[gcc.git] / libjava / ChangeLog
1 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
2
3 * java/lang/natClass.cc (isInstance): Initialize `this'.
4 (isAssignableFrom): Initialize `this' and `klass'.
5 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6 implemented by any loaded class, so return false.
7 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
8 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
9
10 2000-03-19 Warren Levy <warrenl@cygnus.com>
11
12 * java/awt/Color.java: Specified java.io for Serializable.
13 * java/awt/Toolkit.java: Imported java.net.URL.
14
15 2000-03-19 Warren Levy <warrenl@cygnus.com>
16
17 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
18
19 2000-03-16 Warren Levy <warrenl@cygnus.com>
20
21 * java/awt/Color.java: New file.
22 * java/awt/Graphics.java: New file.
23 * java/awt/Image.java: New file.
24 * java/awt/Paint.java: New file.
25 * java/awt/PaintContext.java: New file.
26 * java/awt/Transparency.java: New file.
27 * java/util/Collection.java: New file.
28 * java/util/Comparator.java: New file.
29 * java/util/Iterator.java: New file.
30 * java/util/List.java: New file.
31 * java/util/ListIterator.java: New file.
32 * Makefile.am: Added above new files.
33 * Makefile.in: Rebuilt.
34
35 * java/awt/Font.java (PLAIN): New field.
36 (BOLD): New field.
37 (ITALIC): New field.
38 (ROMAN_BASELINE): New field.
39 (CENTER_BASELINE): New field.
40 (HANGING_BASELINE): New field.
41 (name): New field.
42 (style): New field.
43 (size): New field.
44 (pointSize): New field.
45 (Font): Implemented constructor.
46 (isPlain): Implemented method.
47 (isBold): Implemented method.
48 (isItalic): Implemented method.
49 (getName): Implemented method.
50 (getStyle): Implemented method.
51 (getSize): Implemented method.
52 (getSize2D): Implemented method.
53 (decode): Stubbed.
54 * java/awt/Frame.java (getFont): Stubbed.
55 (postEvent): Stubbed.
56 (remove): Stubbed.
57 * java/awt/Menu.java (postEvent): Stubbed.
58 * java/awt/MenuBar.java (getFont): Stubbed.
59 (postEvent): Stubbed.
60 * java/awt/Toolkit.java (getImage): Added abstract method.
61
62 2000-03-15 Tom Tromey <tromey@cygnus.com>
63
64 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
65
66 * prims.cc (win32_exception_handler): Reformatted.
67
68 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
69 (_Jv_HaveMutexDestroy): Likewise.
70
71 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
72
73 * java/io/natFileDescriptorWin32.cc: New file.
74 * java/io/natFileWin32.cc: New file.
75 * java/net/natInetAddress.cc: Added conditional inclusion of
76 Windows / Winsock headers.
77 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
78 inclusion of Windows / Winsock headers.
79 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
80 Windows / Winsock headers.
81 * include/win32-signal.h: New file.
82 * include/win32-threads.h: New file.
83 * win32-threads.cc: New file.
84 * exception.cc (win32_get_restart_frame): New function.
85 * prims.cc (win32_exception_handler): New function.
86 (main_init) Performs Winsock initialisation.
87 (main_init) Installs exeception handler.
88
89 2000-03-14 Tom Tromey <tromey@cygnus.com>
90
91 * jni.cc (mangled_name): Fixed assertion.
92 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
93 turned assert into actual failure.
94
95 2000-03-09 Warren Levy <warrenl@cygnus.com>
96
97 * java/security/Key.java(serialVersionUID): Set to 0 for now.
98 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
99 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
100
101 2000-03-09 Warren Levy <warrenl@cygnus.com>
102
103 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
104 * java/security/DigestException.java: New file.
105 * java/security/GeneralSecurityException.java: New file.
106 * java/security/InvalidAlgorithmParameterException.java: New file.
107 * java/security/InvalidKeyException.java: New file.
108 * java/security/InvalidParameterException.java: New file.
109 * java/security/Key.java: New file.
110 * java/security/KeyException.java: New file.
111 * java/security/KeyPair.java: New file.
112 * java/security/KeyPairGenerator.java: New file.
113 * java/security/KeyPairGeneratorSpi.java: New file.
114 * java/security/NoSuchProviderException.java: New file.
115 * java/security/PrivateKey.java: New file.
116 * java/security/Provider.java: New file.
117 * java/security/PublicKey.java: New file.
118 * java/security/SecureRandom.java: New file.
119 * java/security/Security.java: New file.
120 * java/security/Signature.java: New file.
121 * java/security/SignatureException.java: New file.
122 * java/security/interfaces/DSAKey.java: New file.
123 * java/security/interfaces/DSAParams.java: New file.
124 * java/security/interfaces/DSAPrivateKey.java: New file.
125 * java/security/interfaces/DSAPublicKey.java: New file.
126 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
127 * java/security/interfaces/RSAPrivateKey.java: New file.
128 * java/security/interfaces/RSAPublicKey.java: New file.
129 * java/security/spec/AlgorithmParameterSpec.java: New file.
130 * java/security/spec/InvalidKeySpecException.java: New file.
131 * java/security/spec/InvalidParameterSpecException.java: New file.
132 * java/security/spec/KeySpec.java: New file.
133 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
134 * java/security/spec/RSAPrivateKeySpec.java: New file.
135 * java/security/spec/RSAPublicKeySpec.java: New file.
136 * Makefile.am: Added above java.security files.
137 * Makefile.in: Rebuilt.
138
139 * java/security/MessageDigest.java: Rewritten.
140 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
141
142 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
143
144 * README: Updated.
145
146 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
147
148 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
149 _Jv_PrepareConstantTimeTables.
150 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
151 classes should have an IDT, so don't return if klass is an array
152 class.
153
154 2000-03-08 Tom Tromey <tromey@cygnus.com>
155
156 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
157 of `void' to be created.
158
159 2000-03-08 Warren Levy <warrenl@cygnus.com>
160
161 * java/math/BigInteger.java(signum): Handle zero properly.
162
163 2000-03-07 Tom Tromey <tromey@cygnus.com>
164
165 * All files: Updated copyright information.
166 * COPYING: New file.
167 * COPYING.LIB: Removed.
168 * LIBGCJ_LICENSE: We now use GPL + special exception.
169
170 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
171
172 * resolve.cc (_Jv_SearchMethodInClass): New function.
173 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
174 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
175
176 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
177
178 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
179 (struct _Jv_ifaces): New declaration.
180 JV_CLASS: New macro definition.
181 (getComponentType): Relocate below isArray() for inlining.
182 (getModifiers): Declare `inline'.
183 (getSuperclass): Ditto.
184 (isArray): Ditto.
185 (isPrimitive): Ditto.
186 (_Jv_IsAssignableFrom): New prototype.
187 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
188 linkage.
189 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
190 Check for JV_STATE_DONE before invoking initializeClass().
191 (_Jv_PrepareConstantTimeTables): New prototype.
192 (_Jv_GetInterfaces): Ditto.
193 (_Jv_GenerateITable): Ditto.
194 (_Jv_GetMethodString): Ditto.
195 (_Jv_AppendPartialITable): Ditto.
196 (_Jv_FindIIndex): Ditto.
197 depth, ancestors, idt: New class fields.
198
199 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
200 inline function `_Jv_IsAssignableFrom'. Use that function.
201 (isInstance): Declare `inline'.
202 (initializeClass): Get lock on class before checking `state'. Unlock
203 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
204 the lock held.
205 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
206 (_Jv_IsAssignableFrom): New inline function. Test assignability using
207 class->depth and ancestor table.
208 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
209 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
210 _Jv_IsAssignableFrom.
211 (_Jv_CheckArrayStore): Ditto.
212 (_Jv_LookupInterfaceMethodIdx): New function.
213 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
214 (_Jv_PrepareConstantTimeTables): New function.
215 (_Jv_IndexOf): Ditto.
216 (_Jv_GetInterfaces): Ditto.
217 (_Jv_GenerateITable): Ditto.
218 (_Jv_GetMethodString): Ditto.
219 (_Jv_AppendPartialITable): Ditto.
220 iindex_mutex, iindex_mutex_initialized: New static fields.
221 (_Jv_FindIIndex): New function.
222
223 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
224
225 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
226 (_Jv_CheckArrayStore): Ditto.
227 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
228 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
229 Moved to gcj/array.h.
230 (_Jv_Realloc): New function.
231
232 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
233
234 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
235 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
236 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
237 JvNewDoubleArray): Implementations moved from prims.cc and
238 declared `inline'.
239
240 * gcj/javaprims.h (_Jv_Realloc): Prototype.
241
242 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
243
244 2000-03-06 Tom Tromey <tromey@cygnus.com>
245
246 * jni.cc (MARK_NONE): New define.
247 (MARK_USER): Likewise.
248 (MARK_SYSTEM): Likewise.
249 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
250 smaller.
251 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
252 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
253 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
254 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
255 argument.
256 (call): Use MARK_SYSTEM.
257 (_Jv_GetJNIEnvNewFrame): New function.
258 (_Jv_LookupJNIMethod): New function.
259 (_Jv_JNI_PopSystemFrame): New function.
260 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
261
262 2000-03-05 Tom Tromey <tromey@cygnus.com>
263
264 Fix for PR libgcj/43:
265 * include/Makefile.in: Rebuilt.
266 * include/Makefile.am (include_HEADERS): New define.
267
268 2000-03-05 Anthony Green <green@redhat.com>
269
270 * gcj/javaprims.h ("Java"): Remove FirstThread.
271
272 * configure.host: Fix __NO_MATH_INLNES botch.
273
274 * Makefile.in: Rebuilt.
275 * Makefile.am (nat_source_files): Move natFirstThread.cc.
276 (gnu/gcj/runtime/FirstThread.h): Moved.
277 (ordinary_java_source_files): Move FirstThread.java.
278 * prims.cc: Deal with FirstThread movement.
279 (JvRunMain): Ditto.
280 (_Jv_RunMain): Ditto.
281
282 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
283 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
284
285 2000-03-05 Warren Levy <warrenl@cygnus.com>
286
287 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
288 Handle null addresses.
289
290 2000-03-04 Anthony Green <green@redhat.com>
291
292 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
293 See PR gcj/151.
294
295 2000-03-04 Anthony Green <green@redhat.com>
296
297 * configure: Rebuilt.
298 * configure.in (ZLIBTESTSPEC): New macro.
299 (GCTESTSPEC): New macro.
300 (LIBGCJTESTSPEC): New macro.
301 * libgcj-test.spec.in: New file.
302
303 2000-03-02 Tom Tromey <tromey@cygnus.com>
304
305 * include/java-interp.h: Don't include MethodInvocation.h.
306 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
307 * Makefile.in: Rebuilt.
308 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
309 (ordinary_java_source_files): Don't mention
310 MethodInvocation.java.
311 * gnu/gcj/runtime/MethodInvocation.java: Removed.
312 * interpret.cc (MethodInvocation::continue1): Removed.
313 (run): Handle exceptions here.
314 * java/lang/ClassLoader.java (defineClass1, defineClass2):
315 Removed.
316 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
317 here.
318 (defineClass2): Removed.
319
320 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
321 Removed.
322 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
323 exceptions here.
324 (hack_call): Removed.
325
326 * java/lang/Class.h (Class): Removed hackRunInitializers,
327 hackTrampoline.
328 * java/lang/natClass.cc (hackRunInitializers): Removed.
329 (initializeClass): Catch exceptions here.
330 Include ExceptionInInitializerError.h.
331 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
332 Removed.
333
334 * java/lang/Object.h (Object): Don't mention hack12_6.
335 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
336 here.
337 * java/lang/Object.java (hack12_6): Removed.
338
339 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
340 (start): Use run_, not run__.
341 * java/lang/Thread.java (run_): Renamed from run__; old run_
342 removed.
343
344 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
345 (_Jv_JNI_EnsureLocalCapacity): Likewise.
346 (_Jv_JNI_DefineClass): Likewise.
347 (_Jv_JNI_ThrowNew): Likewise.
348 (_Jv_JNI_AllocObject): Likewise.
349 (_Jv_JNI_GetAnyMethodID): Likewise.
350 (_Jv_JNI_CallAnyMethodV): Likewise.
351 (_Jv_JNI_CallAnyMethodA): Likewise.
352 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
353 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
354 (_Jv_JNI_GetAnyFieldID): Likewise.
355 (_Jv_JNI_NewString): Likewise.
356 (_Jv_JNI_NewStringUTF): Likewise.
357 (_Jv_JNI_GetStringUTFChars): Likewise.
358 (_Jv_JNI_NewObjectArray): Likewise.
359 (_Jv_JNI_NewPrimitiveArray): Likewise.
360 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
361 (_Jv_JNI_GetStringRegion): Likewise.
362 (_Jv_JNI_GetStringUTFRegion): Likewise.
363 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
364 (_Jv_JNI_MonitorEnter): Likewise.
365 (_Jv_JNI_MonitorExit): Likewise.
366 (_Jv_JNI_ToReflectedField): Likewise.
367 (_Jv_JNI_ToReflectedMethod): Likewise.
368 (_Jv_JNI_RegisterNatives): Likewise.
369 (_Jv_JNI_AttachCurrentThread): Likewise.
370 (_Jv_JNI_DestroyJavaVM): Likewise.
371
372 2000-02-28 Mo DeJong <mdejong@cygnus.com>
373
374 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
375 error caused by the incorrect casting of a long to an int.
376
377 2000-02-28 Mo DeJong <mdejong@cygnus.com>
378
379 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
380 SIGSEV caused by use of the wrong instance variable.
381
382 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
383
384 * java/io/File.java (File(String, String)): For dirPath, treat an
385 empty String the same as `null'.
386
387 2000-02-26 Anthony Green <green@cygnus.com>
388
389 * gnu/gcj/io/MimeTypes.java: Test for null.
390
391 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
392 (JNI_GetCreatedJavaVMs): Remove compiler warning.
393
394 * java/net/URLConnection.java: Update copyright notice.
395
396 2000-02-25 Tom Tromey <tromey@cygnus.com>
397
398 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
399 `INTERPRETER'.
400
401 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
402
403 * java/net/URLConnection.java (initializeDateFormats): New
404 private method.
405 (getHeaderFieldDate): Call initializeDateFormats if required.
406 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
407 these.
408 Fix for PR libgcj/38.
409
410 2000-02-24 Warren Levy <warrenl@cygnus.com>
411
412 * java/math/BigInteger.java(ival): Made private.
413 (words): Ditto.
414 (neg): Ditto.
415
416 2000-02-20 Anthony Green <green@cygnus.com>
417
418 * Makefile.in: Rebuilt.
419 * Makefile.am (ordinary_java_source_files): Add
420 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
421
422 * scripts/MakeDefaultMimeTypes.java: New file.
423 * scripts/mime.types: New file.
424 * scripts/classes.pl: Moved from top level.
425 * classes.pl: Moved to scripts directory.
426
427 * java/net/URLConnection.java: Implement guessContentTypeFromName.
428
429 * gnu/gcj/io/MimeTypes.java: New file.
430 * gnu/gcj/io/DefaultMimeTypes.java: New file.
431
432 2000-02-20 Tom Tromey <tromey@cygnus.com>
433
434 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
435
436 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
437
438 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
439 (setSize): ditto.
440
441 2000-02-18 Tom Tromey <tromey@cygnus.com>
442
443 * include/jvm.h (_Jv_GetJavaVM): Declare.
444 * include/java-interp.h (_Jv_GetFirstMethod): New function.
445 (_Jv_MethodBase::get_method): New method.
446 (_Jv_JNIMethod::set_function): New method.
447 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
448 (_Jv_JNI_RegisterNatives): New function.
449 (_Jv_JNIFunctions): Updated for new functions.
450 (_Jv_GetJavaVM): New function.
451 (_Jv_JNI_GetJavaVM): Use it. Now static.
452 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
453 is already a Java thread but does not have a JNIEnv yet.
454
455 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
456 function.
457
458 2000-02-17 Tom Tromey <tromey@cygnus.com>
459
460 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
461 Fixes PR gcj/152.
462
463 2000-02-16 Tom Tromey <tromey@cygnus.com>
464
465 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
466
467 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
468 (_Jv_JNI_NewObject): Likewise.
469 (_Jv_JNI_NewObjectA): Likewise.
470 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
471 as "return" type to _Jv_CallAnyMethodA.
472 (_Jv_JNI_CallAnyMethodA): Likewise.
473 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
474
475 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
476 findClass.
477
478 2000-02-15 Tom Tromey <tromey@cygnus.com>
479
480 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
481 jni_arg_types.
482 (init_cif): Added `rtype_p' argument.
483 * include/java-interp.h (class _Jv_MethodBase): Added
484 args_raw_size.
485 (class _Jv_InterpMethod): Removed args_raw_size.
486 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
487 * jni.cc (call): Pass JNIEnv and (for static methods only) the
488 class pointer as well as the ordinary arguments.
489
490 * jni.cc (mangled_name): Skip leading `(' in signature.
491
492 * jni.cc (add_char): Added missing `else'.
493
494 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
495 fails.
496
497 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
498
499 * NEWS: Updated.
500
501 * java/lang/natRuntime.cc (_load): Include library path with
502 exception message.
503
504 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
505 property.
506
507 * java/lang/natThread.cc (dumpStack): Removed.
508 * java/lang/Thread.java (dumpStack): Implemented.
509
510 2000-02-15 Tom Tromey <tromey@cygnus.com>
511
512 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
513 with `lib' for loadLibrary. Fixes PR gcj/150.
514
515 2000-02-14 Warren Levy <warrenl@cygnus.com>
516
517 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
518
519 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
520 New constructor.
521 (min): Implemented.
522 (max): Implemented.
523 (modPow): Rewritten to not use the naive, slow, brute force approach.
524 (isProbablePrime): Implemented.
525 (testBit): Implemented.
526 (flipBit): Implemented.
527 (getLowestSetBit): Implemented.
528
529 2000-02-16 Anthony Green <green@redhat.com>
530
531 * configure.host: Use the same options for i386 and i486 as we do
532 for i586 and i686.
533
534 2000-02-12 Tom Tromey <tromey@cygnus.com>
535
536 * java/io/File.java (createTempFile): Use low bits from counter,
537 not high bits.
538
539 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
540
541 * THANKS: More thanks.
542
543 2000-02-11 Tom Tromey <tromey@cygnus.com>
544
545 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
546 astore instruction. From Hans Boehm.
547
548 2000-02-11 Warren Levy <warrenl@cygnus.com>
549
550 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
551 (BigInteger(String)): New constructor.
552 (not): Rewritten using version from Kawa's BitOps class.
553 (valueOf): New private methods from Kawa's BitOps class.
554 (swappedOp): ditto.
555 (bitOp): ditto.
556 (setBitOp): ditto.
557 (and): Implemented.
558 (or): Implemented.
559 (xor): Implemented.
560 (andNot): Implemented.
561 (clearBit): Implemented.
562 (setBit): Implemented.
563 (bitCount): Implemented.
564 (toByteArray): Implemented.
565
566 2000-02-11 Tom Tromey <tromey@cygnus.com>
567
568 * java/io/File.java (nextValue): Now synchronized.
569
570 2000-02-10 Tom Tromey <tromey@cygnus.com>
571
572 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
573 * java/io/FileDescriptor.java (EXCL): New static field.
574 * java/io/File.java (tmpdir): New static field.
575 (createTempFile): New method.
576 (nextValue): New method.
577 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
578 property.
579
580 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
581 (jboolean): Declare as an attributed int, not a bool.
582 (_Jv_func): Declare differently for C.
583
584 * gnu/gcj/jni/natNativeThread.cc: New file.
585 * gnu/gcj/jni/NativeThread.java: New file.
586 * java/lang/Thread.java (data): Now a RawData.
587 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
588 Declare.
589 * Makefile.in: Rebuilt.
590 * Makefile.am (java/lang/Thread.h): New target.
591 (ordinary_java_source_files): Added NativeThread.java.
592 (nat_source_files): Added natNativeThread.cc.
593 * java/lang/natThread.cc: Include <jni.h>
594 (struct natThread): Added `jni_env' field.
595 (_Jv_GetCurrentJNIEnv): New function.
596 (_Jv_SetCurrentJNIEnv): Likewise.
597 (initialize_native): Initialize jni_env.
598 Include RawData.h.
599 * jni.cc (ThreadGroupClass): New define.
600 (_Jv_JNI_InvokeFunctions): New structure.
601 (JNI_GetCreatedJavaVMs): New function.
602 (the_vm): New global.
603 (JNI_GetDefaultJavaVMInitArgs): New function.
604 Include NativeThread.h.
605 (NativeThreadClass): New define.
606 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
607 (_Jv_JNI_DestroyJavaVM): New function.
608 (_Jv_JNI_AttachCurrentThread): New function.
609 (_Jv_JNI_DetachCurrentThread): New function.
610 (_Jv_JNI_GetEnv): New function.
611 (JNI_CreateJavaVM): New function.
612 (_Jv_JNI_GetJavaVM): New function.
613 (_Jv_JNIFunctions): Added entry for GetJavaVM.
614 * include/jni.h (JavaVMAttachArgs): New structure.
615 (JNI_EDETACHED): New define.
616 (JNI_EVERSION): Likewise.
617 (JavaVM): Define properly.
618 (struct JNIInvokeInterface): New structure.
619 (class _Jv_JavaVM): New class.
620 (JNI_OnLoad, JNI_OnUnload): Declare.
621 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
622 JNI_GetCreatedJavaVMs): Declare.
623 (JavaVMInitArgs): New typedef.
624 (JavaVMOption): Likewise.
625 (JNI_ERR): New define.
626 (JNI_OK): Likewise.
627
628 2000-02-10 Andrew Haley <aph@cygnus.com>
629
630 * interpret.cc: Don't include fdlibm.h.
631 Replace #if with #ifdef throughout.
632 Declare extern __ieee754_fmod.
633 (continue1): Remove op_getfield, op_getstatic, op_putfield,
634 op_putstatic insns.
635 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
636 Search class hierarchy for superclass vtable.
637
638 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
639 off the end of a pointer list.
640
641 * java/lang/natThread.cc (stop): Don't abort, throw an exception
642 instead.
643 (suspend): Ditto.
644
645 2000-02-09 Tom Tromey <tromey@cygnus.com>
646
647 * java/lang/natRuntime.cc (_load): Call add_library.
648 (loadLibraryInternal): Likewise.
649
650 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
651 iconv_close when handle is not NULL. Thanks to Andrew Haley.
652 (Output_iconv::finalize): Likewise.
653
654 2000-02-08 Tom Tromey <tromey@cygnus.com>
655
656 * java/util/Properties.java (setProperty): New method.
657 (store): New method.
658
659 2000-02-07 Tom Tromey <tromey@cygnus.com>
660
661 * java/lang/Runtime.java (_load): Declare.
662 (load, loadLibrary): Wrote in terms of _load.
663 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
664 library.
665 (loadLibrary): Likewise.
666 Include <jni.h>.
667 (_load): New method.
668 (loadLibrary, load): Removed.
669
670 * jni.cc (ThrowableClass): New define.
671 (_Jv_JNI_Throw): Check argument.
672 (_Jv_JNI_ThrowNew): Likewise.
673 (wrap_value): Don't wrap object if it is NULL.
674 (_Jv_JNI_DefineClass): Use wrap_value.
675 (_Jv_JNI_FindClass): Likewise.
676 (_Jv_JNI_GetSuperclass): Likewise.
677 (_Jv_JNI_ExceptionOccurred): Likewise.
678 (_Jv_JNI_AllocObject): Likewise.
679 (_Jv_JNI_GetObjectClass): Likewise.
680 (_Jv_JNI_NewString): Likewise.
681 (_Jv_JNI_NewStringUTF): Likewise.
682 (_Jv_JNI_NewObjectArray): Likewise.
683 (_Jv_JNI_GetObjectArrayElement): Likewise.
684 (_Jv_JNI_NewPrimitiveArray): Likewise.
685 (_Jv_JNI_ToReflectedField): Likewise.
686 (_Jv_JNI_ToReflectedMethod): Likewise.
687 (_Jv_JNI_AllocObject): Check argument.
688 (_Jv_JNI_NewObjectV): Likewise.
689 (_Jv_JNI_NewObject): Likewise.
690 (_Jv_JNI_NewObjectA): Likewise.
691 (_Jv_JNI_GetObjectClass): Likewise.
692 (_Jv_JNI_GetField): Likewise.
693 (_Jv_JNI_SetField): Likewise.
694
695 * interpret.cc (PUSHL): Don't use expression statement.
696 (PUSHD): Likewise.
697 (LOADL): Likewise.
698 (STOREL): Likewise.
699
700 * jni.cc (add_char): Conditional on INTERPRETER.
701 (mangled_name): Likewise.
702 (call): Likewise.
703 * include/java-interp.h (class _Jv_MethodBase): Conditional on
704 INTERPRETER.
705 (class _Jv_JNIMethod): Likewise.
706
707 2000-02-04 Warren Levy <warrenl@cygnus.com>
708
709 * Makefile.am: Added MPN.java and BigInteger.java.
710 * Makefile.in: Rebuilt.
711 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
712 <per@bothner.com>.
713 * java/math/BigInteger.java: New file. Based primarily on
714 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
715
716 2000-02-04 Tom Tromey <tromey@cygnus.com>
717
718 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
719 pointers.
720 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
721 if the method is native.
722 * resolve.cc (ncode): Don't handle native methods.
723 (_Jv_JNIMethod::ncode): New method.
724 (_Jv_PrepareClass): Handle native methods.
725 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
726 Include AbstractMethodError.h.
727 (add_char): New function.
728 (mangled_name): Likewise.
729 * include/java-interp.h (class _Jv_JNIMethod): New class.
730 (class _Jv_MethodBase): New class.
731 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
732 (_Jv_InterpClass): Changed `interpreted_methods' field to type
733 `_Jv_MethodBase'.
734
735 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
736 * java/lang/natRuntime.cc (libraries_size, libraries_count,
737 libraries): New globals.
738 (add_library): New function.
739 (_Jv_FindSymbolInExecutable): New function.
740
741 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
742 Now static.
743
744 2000-02-04 Andrew Haley <aph@cygnus.com>
745
746 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
747 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
748 * java/lang/natThrowable.cc (printRawStackTrace): Rename
749 printStackTrace to printRawStackTrace.
750
751 2000-02-03 Tom Tromey <tromey@cygnus.com>
752
753 * java/util/Calendar.java (toString): New method.
754 * java/util/SimpleTimeZone.java (clone): New method.
755 (toString): New method.
756 * java/util/TimeZone.java (clone): New method.
757 * java/text/SimpleDateFormat.java (clone): New method.
758 * java/text/NumberFormat.java (clone): New method.
759 (equals): New method.
760 * java/text/Format.java (clone): New method.
761 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
762 constructor.
763 (clone): New method.
764 * java/text/DateFormat.java (clone): New method.
765 * java/text/Collator.java (clone): New method.
766
767 2000-02-03 Tom Tromey <tromey@cygnus.com>
768
769 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
770 method.
771
772 2000-02-01 Tom Tromey <tromey@cygnus.com>
773
774 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
775 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
776 constructing the closure if the function is native.
777 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
778 a template function, #if'd out, or static.
779 Include <java-interp.h>.
780
781 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
782
783 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
784
785 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
786 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
787 `locals == NULL'.
788 (wrap_value): New function.
789 (_Jv_JNI_CallAnyMethodV): Use it.
790 (_Jv_JNI_CallAnyMethodA): Likewise.
791 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
792 (_Jv_JNI_GetStaticField): Likewise.
793
794 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
795 (_Jv_JNI_GetStaticField): Likewise.
796
797 2000-01-31 Tom Tromey <tromey@cygnus.com>
798
799 * prims.cc (_Jv_MallocUnchecked): New function.
800 (main_init): Call _Jv_JNI_Init.
801 * include/jvm.h (_Jv_MallocUnchecked): Declare.
802 (_Jv_JNI_Init): Declare.
803 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
804 <string.h>.
805 (_Jv_JNI_NewGlobalRef): New function.
806 (_Jv_JNI_DeleteGlobalRef): New function.
807 (_Jv_JNI_DeleteLocalRef): New function.
808 (_Jv_JNI_conversion_call): Initialize and clear local reference
809 frame.
810 (_Jv_JNI_NewLocalRef): New function.
811 (struct _Jv_JNI_LocalFrame): New structure.
812 (_Jv_JNI_PushLocalFrame): New function.
813 (_Jv_JNI_EnsureLocalCapacity): New function.
814 (FRAME_SIZE): New define.
815 (_Jv_JNI_GetStringChars): Mark string, not characters.
816 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
817 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
818 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
819 elements.
820 (_Jv_JNI_DefineClass): Make return value a local ref.
821 (_Jv_JNI_FindClass): Likewise.
822 (_Jv_JNI_GetSuperclass): Likewise.
823 (_Jv_JNI_ExceptionOccurred): Likewise.
824 (_Jv_JNI_AllocObject): Likewise.
825 (_Jv_JNI_GetObjectClass): Likewise.
826 (_Jv_JNI_CallAnyMethodV): Likewise.
827 (_Jv_JNI_NewString): Likewise.
828 (_Jv_JNI_NewStringUTF): Likewise.
829 (_Jv_JNI_NewObjectArray): Likewise.
830 (_Jv_JNI_GetObjectArrayElement): Likewise.
831 (_Jv_JNI_ToReflectedField): Likewise.
832 (_Jv_JNI_ToReflectedMethod): Likewise.
833 (_Jv_JNIFunctions): Updated table for new functions.
834 (_Jv_JNI_Init): New function.
835 (mark_for_gc): Wrote.
836 (unmark_for_gc): Wrote.
837 * include/jni.h (struct JNINativeInterface): Removed name from
838 PopLocalFrame parameter.
839 (class _Jv_JNIEnv): Added `locals' field.
840
841 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
842
843 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
844 (write): Ditto.
845
846 2000-01-30 Tom Tromey <tromey@cygnus.com>
847
848 * include/config.h.in: Rebuilt.
849 * acconfig.h (HAVE_ICONV): Define.
850 * configure: Rebuilt.
851 * configure.in: Check for `iconv' function.
852 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
853 no specific encoder exists.
854 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
855 no specific encoder exists.
856 * Makefile.in: Rebuilt.
857 * Makefile.am (convert_source_files): Mention Input_iconv.java and
858 Output_iconv.java.
859 (nat_source_files): Added natIconv.cc.
860 * gnu/gcj/convert/natIconv.cc: New file.
861 * gnu/gcj/convert/Input_iconv.java: New file.
862 * gnu/gcj/convert/Output_iconv.java: New file.
863
864 2000-01-28 Tom Tromey <tromey@cygnus.com>
865
866 * Makefile.in: Rebuilt.
867 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
868
869 2000-01-26 Tom Tromey <tromey@cygnus.com>
870
871 * gcj/method.h (JvNumMethods): Moved from Class.h.
872 (JvGetFirstMethod): Likewise.
873 * java/lang/Class.h (Object): Updated decl of
874 _Jv_JNI_ToReflectedField.
875 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
876 * Makefile.in: Rebuilt.
877 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
878 argument of _Jv_JNI_ToReflectedField.
879 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
880 as a friend.
881 (java/lang/reflect/Method.h): Likewise.
882 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
883 __GCJ_JNI_IMPL__.
884 (jweak): New typedef.
885 (struct JNINativeInterface): Correctly declare remaining entries.
886 * jni.cc: Include Class.h, ClassLoader.h.
887 (_Jv_JNI_FindClass): New function.
888 (_Jv_JNI_DefineClass): New function.
889 (_Jv_JNI_conversion_call): New function.
890 (_Jv_JNI_FindClass): Use current class loader to find class.
891 (_Jv_JNI_ExceptionCheck): New function.
892 (_Jv_JNI_FromReflectedField): Now static.
893 (MethodClass): New define.
894 (_Jv_JNI_FromReflectedMethod): New function.
895 (_Jv_JNI_ToReflectedMethod): Likewise.
896 Include Method.h.
897 (_Jv_JNI_IsAssignableFrom): Renamed.
898 (_Jv_JNI_GetStringRegion): New function.
899 Include StringIndexOutOfBoundsException.h.
900 (_Jv_JNI_GetStringUTFRegion): New function.
901 (_Jv_JNIFunctions): Updated for new functions.
902 (_Jv_JNI_GetPrimitiveArrayCritical): New function
903 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
904 (_Jv_JNI_GetStringCritical): New function.
905 (_Jv_JNI_ReleaseStringCritical): Likewise.
906 (get_throwable): Removed.
907 (GCJ_JV_JNIENV_FRIEND): Removed.
908 (__GCJ_JNI_IMPL__): Define.
909 Include method.h.
910
911 * resolve.cc (get_ffi_type_from_signature): Handle case where
912 boolean is an int.
913
914 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
915
916 * interpret.cc (run): Don't call println.
917 Don't include PrintStream.h.
918
919 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
920 nameIndex. Use "jint" as type for boffset.
921 * java/lang/Class.h (struct _Jv_Method): Made accflags a
922 _Jv_ushort.
923 (Class): Likewise. Also changed type of method_count,
924 vtable_method_count, size_in_bytes, field_count,
925 static_field_count, interface_count.
926 * gcj/array.h (__JArray): Made `length' a const jsize, not an
927 int.
928
929 2000-01-21 Tom Tromey <tromey@cygnus.com>
930
931 * java/lang/reflect/natConstructor.cc (newInstance): Use
932 _Jv_CallAnyMethodA.
933 * include/jvm.h: Declare _Jv_CallAnyMethodA.
934 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
935 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
936 Include <jni.h>.
937 (COPY): Removed.
938 (invoke): Use _Jv_CallAnyMethodA.
939 (VAL): Redefined.
940 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
941 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
942 functions.
943 (struct _Jv_Method): Added getNextMethod method.
944 (JvNumMethods): New function.
945 (JvGetFirstMethod): Likewise.
946 * gcj/field.h (JvGetFirstStaticField): New function.
947 (JvNumStaticFields): Likewise.
948 (getNextField): Renamed from getNextInstanceField.
949 (struct _Jv_Field): New method getClass.
950 * jni.cc: Wrote many new functions.
951 * include/jni.h (JNI_TRUE): Define.
952 (JNI_FALSE): Likewise.
953 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
954 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
955 jcharArray, jfloatArray, jdoubleArray): New typedefs.
956 (jfieldID, jmethodID): Likewise.
957 (JNI_COMMIT, JNI_ABORT): New defines.
958 (JNINativeMethod): New struct.
959 (struct JNINativeInterface): Correctly declared more entries.
960 (class _Jv_JNIEnv): Added `ex' member.
961 (JNI_VERSION_1_1): New define.
962 (JNI_VERSION_1_2): Likewise.
963
964 * boehm.cc (_Jv_MarkObj): Use getNextField, not
965 getNextInstanceField.
966
967 2000-01-20 Tom Tromey <tromey@cygnus.com>
968
969 * resolve.cc (StringClass): Removed.
970 * defineclass.cc (StringClass): Removed.
971
972 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
973
974 * NEWS: updated.
975
976 2000-01-19 Tom Tromey <tromey@cygnus.com>
977
978 * interpret.cc (PC_REGISTER_ASM): Removed.
979
980 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
981 From Bryce McKinlay.
982
983 * All files: Updated copyright to reflect Cygnus purchase.
984
985 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
986
987 * configure: Rebuilt.
988 * configure.in: Recognize --disable-interpreter.
989
990 2000-01-18 Andrew Haley <aph@cygnus.com>
991
992 * name-finder.cc (lookup): Check for dladdr function.
993 acconfig.h (HAVE_DLADDR): Add.
994 configure.in: Check for HAVE_DLADDR
995 configure: Rebuilt.
996 include/config.h.in: Rebuilt.
997
998 2000-01-17 Andrew Haley <aph@cygnus.com>
999
1000 * prims.cc (_Jv_RunMain): Set the name of this executable.
1001
1002 2000-01-17 Tom Tromey <tromey@cygnus.com>
1003
1004 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
1005 when backtrace can't be computed.
1006
1007 * configure: Rebuilt.
1008 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
1009
1010 * java/lang/Runtime.java (loadLibraryInternal): Declare.
1011 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
1012 (_Jv_FindClassInCache): Likewise.
1013 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
1014 (findSystemClass): Try to load class from compiled module.
1015 Include Runtime.h.
1016 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
1017 (loadLibrary): Likewise.
1018 (lt_preloaded_symbols): Define.
1019 (loadLibraryInternal): New method.
1020 * include/config.h.in: Rebuilt.
1021 * acconfig.h (USE_LTDL): Added.
1022 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
1023 (INCLUDES): Added $(INCLTDL).
1024 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
1025 (libgcj_la_LIBADD): Likewise.
1026 * aclocal.m4, configure: Rebuilt.
1027 * configure.in: Added libltdl support.
1028
1029 2000-01-15 Tom Tromey <tromey@cygnus.com>
1030
1031 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
1032
1033 2000-01-14 Andrew Haley <aph@cygnus.com>
1034
1035 * java/lang/natThrowable.cc: New file.
1036
1037 * java/lang/Throwable.java (fillInStackTrace): Make native.
1038 (printStackTrace): Call native method to do this.
1039 (Throwable): Call fillInStackTrace.
1040 (stackTrace): New variable.
1041
1042 * include/jvm.h: Add _Jv_ThisExecutable functions.
1043
1044 * prims.cc: (_Jv_execName): New variable.
1045 (catch_segv): Call fillInStackTrace.
1046 (catch_fpe): Ditto.
1047 (_Jv_ThisExecutable): New functions.
1048 (JvRunMain): Set the name of this executable.
1049
1050 * Makefile.am: Add java/lang/natThrowable.cc.
1051 Add name-finder.cc.
1052 * Makefile.in: Rebuilt.
1053
1054 * acconfig.h: Add HAVE_PROC_SELF_EXE.
1055
1056 * configure.in: Force link with __frame_state_for in
1057 FORCELIBGCCSPEC. Add new checks for backtrace.
1058 * include/config.h.in: Rebuilt.
1059
1060 * name-finder.cc: New file.
1061 * include/name-finder.h: New file.
1062
1063 2000-01-16 Anthony Green <green@cygnus.com>
1064
1065 * java/lang/StringBuffer.java (StringBuffer): Don't special case
1066 null argument.
1067
1068 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
1069
1070 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
1071
1072 2000-01-13 Tom Tromey <tromey@cygnus.com>
1073
1074 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
1075 not system loader, as initiating loader.
1076
1077 2000-01-11 Tom Tromey <tromey@cygnus.com>
1078
1079 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
1080 HP/UX. From David Scott Urban.
1081
1082 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
1083
1084 * java/lang/natMath.cc (pow): Cast args to `double', not
1085 `jdouble'.
1086 (atan2): Likewise.
1087 (IEEEremainder): Likewise.
1088 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
1089 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
1090
1091 2000-01-09 Anthony Green <green@cygnus.com>
1092
1093 * java/lang/natString.cc (init): Test for overflow condition
1094 during out of bounds check.
1095 (getChars): Throw StringIndexOutOfBoundsException, not
1096 ArrayIndexOutOfBoundsException.
1097 (getBytes): Ditto.
1098 (regionMatches): Obey case option during string comparison.
1099
1100 * configure.host (ligcj_interpreter): New variable. Enable
1101 interpreter by default on IA-32.
1102 * configure.in: Examine libgcj_interpreter.
1103 * configure: Rebuilt.
1104
1105 2000-01-07 Tom Tromey <tromey@cygnus.com>
1106
1107 * mauve-libgcj: Don't disable ClassTest.
1108
1109 * java/lang/natClass.cc (getClasses): Wrote.
1110
1111 2000-01-06 Tom Tromey <tromey@cygnus.com>
1112
1113 * java/lang/natClass.cc (_getConstructors): Correctly check
1114 whether method name is the init name.
1115 (getMethod): Look at accflags on method in `klass', not `this'.
1116
1117 2000-01-05 Tom Tromey <tromey@cygnus.com>
1118
1119 * java/lang/natClass.cc (getMethod): Compute offset relative to
1120 `klass's methods table, not `this's table.
1121
1122 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
1123 In unwrapping/widening case, check whether `k' is null, not
1124 whether it is primitive. Initialize `num' from `argelts', not
1125 `paramelts'. Correct create and pass arguments to ffi_call.
1126 Don't let presence of `this' argument affect index used to look in
1127 argument arrays.
1128 (COPY): Set appropriate element in `values' vector.
1129
1130 * java/lang/natClass.cc: Include <gcj/method.h>.
1131
1132 * java/lang/Class.h (_getMethods): Correctly declare as private,
1133 not public.
1134
1135 * java/lang/Class.h (_getMethods): Declare.
1136 * java/lang/Class.java (_getMethods): Declare.
1137 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
1138 (getDeclaredClasses): Always return empty array.
1139 (_getMethods): New method.
1140 (getMethods): Wrote.
1141 (getDeclaredMethod): Return `rmethod'.
1142 (finit_name): New global.
1143 (getDeclaredMethods): Check for finit_name.
1144 (_getMethods): Likewise.
1145 (getMethod): Only return public methods.
1146
1147 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
1148 jboolean and select correct ffi type on that basis.
1149 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
1150 Constructor call always has `void' return type.
1151
1152 2000-01-04 Tom Tromey <tromey@cygnus.com>
1153
1154 * java/lang/Class.h (getSignature): Updated.
1155 * java/lang/Class.java (getSignature): Updated.
1156 * java/lang/natClass.cc (getSignature): Added `is_constructor'
1157 argument.
1158 (getConstructor): Ensure constructor is public.
1159 (_getConstructors): Check for public-ness of constructor when
1160 `declared' is false, not when it is true.
1161
1162 2000-01-04 Warren Levy <warrenl@cygnus.com>
1163
1164 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
1165 comment.
1166 (receive): Set the sender's address in the DatagramPacket.
1167
1168 2000-01-04 Tom Tromey <tromey@cygnus.com>
1169
1170 * java/lang/reflect/natConstructor.cc (newInstance): Pass
1171 declaring class as return_type argument to
1172 _Jv_CallNonvirtualMethodA.
1173 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
1174 constructor case, create object and use it as `this' argument.
1175 * java/lang/Class.h (_getConstructors): Declare.
1176 (_getFields): Declare.
1177 * java/lang/Class.java (getConstructors): Wrote.
1178 (_getConstructors): New native method.
1179 (getDeclaredConstructors): Wrote.
1180 (_getFields): Declare new native method.
1181 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
1182 incorrect comment.
1183 (getMethod): Work correctly when class is primitive.
1184 (getDeclaredMethods): Likewise. Compute offset using `method',
1185 not `mptr'.
1186 (getDeclaredMethod): Likewise.
1187 (getConstructor): Wrote.
1188 (ConstructorClass): New define.
1189 (getDeclaredConstructor): Wrote.
1190 (_getConstructors): New method.
1191 (_getFields): New method.
1192 (getFields): Wrote.
1193
1194 * Makefile.in: Rebuilt.
1195 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
1196
1197 * prims.cc: Remove `#pragma implementation'.
1198 * gcj/array.h: Remove `#pragma interface'.
1199
1200 * prims.cc (_Jv_equaln): New function.
1201 * java/lang/Class.java (getSignature): Declare.
1202 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
1203 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
1204 resolve.cc.
1205 (getSignature): New method.
1206 (getDeclaredMethod): Wrote.
1207 (getMethod): Wrote.
1208 Include StringBuffer.h.
1209 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
1210 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
1211 a friend.
1212 (getSignature): Declare.
1213 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
1214 (_Jv_equaln): Declare.
1215 (_Jv_CallNonvirtualMethodA): Declare.
1216 * Makefile.in: Rebuilt.
1217 * Makefile.am (nat_source_files): Added natConstructor.cc.
1218 (java/lang/reflect/Constructor.h): New target.
1219 * java/lang/reflect/natConstructor.cc: New file.
1220 * java/lang/reflect/Constructor.java (newInstance): Now native.
1221 (declaringClass): Renamed from decl_class.
1222 (offset): Renamed from index.
1223 (getType): New native method.
1224 (getModifiers): Now native.
1225 (getParameterTypes): Call getType if required.
1226 (hashCode): Include hash code from declaring class.
1227 (modifiers): Removed.
1228 (toString): Call getType if required.
1229 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
1230 * java/lang/reflect/natMethod.cc (hack_call): New method.
1231 Removed `#if 0' around FFI code.
1232 Include <gnu/gcj/RawData.h>.
1233 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
1234 IllegalArgumentException when argument object and class disagree.
1235 (_Jv_GetTypesFromSignature): New function.
1236 (getType): Use it.
1237 (ObjectClass): New define.
1238 (_Jv_CallNonvirtualMethodA): New function.
1239 * java/lang/reflect/Method.java (hack_trampoline): New method.
1240 (hack_call): New native method.
This page took 0.093372 seconds and 6 git commands to generate.