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