]> gcc.gnu.org Git - gcc.git/blame - libjava/ChangeLog
All files: Updated copyright information.
[gcc.git] / libjava / ChangeLog
CommitLineData
2ba5f774
TT
12000-03-07 Tom Tromey <tromey@cygnus.com>
2
3 * All files: Updated copyright information.
4 * COPYING: New file.
5 * COPYING.LIB: Removed.
6 * LIBGCJ_LICENSE: We now use GPL + special exception.
7
ddf0fc6c
BM
82000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
9
10 * resolve.cc (_Jv_SearchMethodInClass): New function.
11 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
12 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
13
142000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
15
16 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
17 (struct _Jv_ifaces): New declaration.
18 JV_CLASS: New macro definition.
19 (getComponentType): Relocate below isArray() for inlining.
20 (getModifiers): Declare `inline'.
21 (getSuperclass): Ditto.
22 (isArray): Ditto.
23 (isPrimitive): Ditto.
24 (_Jv_IsAssignableFrom): New prototype.
25 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
26 linkage.
27 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
28 Check for JV_STATE_DONE before invoking initializeClass().
29 (_Jv_PrepareConstantTimeTables): New prototype.
30 (_Jv_GetInterfaces): Ditto.
31 (_Jv_GenerateITable): Ditto.
32 (_Jv_GetMethodString): Ditto.
33 (_Jv_AppendPartialITable): Ditto.
34 (_Jv_FindIIndex): Ditto.
35 depth, ancestors, idt: New class fields.
36
37 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
38 inline function `_Jv_IsAssignableFrom'. Use that function.
39 (isInstance): Declare `inline'.
40 (initializeClass): Get lock on class before checking `state'. Unlock
41 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
42 the lock held.
43 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
44 (_Jv_IsAssignableFrom): New inline function. Test assignability using
45 class->depth and ancestor table.
46 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
47 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
48 _Jv_IsAssignableFrom.
49 (_Jv_CheckArrayStore): Ditto.
50 (_Jv_LookupInterfaceMethodIdx): New function.
51 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
52 (_Jv_PrepareConstantTimeTables): New function.
53 (_Jv_IndexOf): Ditto.
54 (_Jv_GetInterfaces): Ditto.
55 (_Jv_GenerateITable): Ditto.
56 (_Jv_GetMethodString): Ditto.
57 (_Jv_AppendPartialITable): Ditto.
58 iindex_mutex, iindex_mutex_initialized: New static fields.
59 (_Jv_FindIIndex): New function.
60
61 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
62
63 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
64 (_Jv_CheckArrayStore): Ditto.
65 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
66 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
67 Moved to gcj/array.h.
68 (_Jv_Realloc): New function.
69
70 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
71
72 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
73 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
74 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
75 JvNewDoubleArray): Implementations moved from prims.cc and
76 declared `inline'.
77
78 * gcj/javaprims.h (_Jv_Realloc): Prototype.
79
80 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
81
8d00f617
TT
822000-03-06 Tom Tromey <tromey@cygnus.com>
83
84 * jni.cc (MARK_NONE): New define.
85 (MARK_USER): Likewise.
86 (MARK_SYSTEM): Likewise.
87 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
88 smaller.
89 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
90 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
91 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
92 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
93 argument.
94 (call): Use MARK_SYSTEM.
95 (_Jv_GetJNIEnvNewFrame): New function.
96 (_Jv_LookupJNIMethod): New function.
97 (_Jv_JNI_PopSystemFrame): New function.
98 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
99
4d54cfec
TT
1002000-03-05 Tom Tromey <tromey@cygnus.com>
101
102 Fix for PR libgcj/43:
103 * include/Makefile.in: Rebuilt.
104 * include/Makefile.am (include_HEADERS): New define.
105
1062000-03-05 Anthony Green <green@redhat.com>
008b7307
AG
107
108 * gcj/javaprims.h ("Java"): Remove FirstThread.
109
110 * configure.host: Fix __NO_MATH_INLNES botch.
111
112 * Makefile.in: Rebuilt.
113 * Makefile.am (nat_source_files): Move natFirstThread.cc.
114 (gnu/gcj/runtime/FirstThread.h): Moved.
115 (ordinary_java_source_files): Move FirstThread.java.
116 * prims.cc: Deal with FirstThread movement.
117 (JvRunMain): Ditto.
118 (_Jv_RunMain): Ditto.
119
120 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
121 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
122
c261e080
WL
1232000-03-05 Warren Levy <warrenl@cygnus.com>
124
125 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
126 Handle null addresses.
127
aa1e467f
AG
1282000-03-04 Anthony Green <green@redhat.com>
129
130 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
131 See PR gcj/151.
132
0f9c645e
AG
1332000-03-04 Anthony Green <green@redhat.com>
134
135 * configure: Rebuilt.
136 * configure.in (ZLIBTESTSPEC): New macro.
137 (GCTESTSPEC): New macro.
138 (LIBGCJTESTSPEC): New macro.
139 * libgcj-test.spec.in: New file.
140
b099f07d
TT
1412000-03-02 Tom Tromey <tromey@cygnus.com>
142
143 * include/java-interp.h: Don't include MethodInvocation.h.
144 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
145 * Makefile.in: Rebuilt.
146 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
147 (ordinary_java_source_files): Don't mention
148 MethodInvocation.java.
149 * gnu/gcj/runtime/MethodInvocation.java: Removed.
150 * interpret.cc (MethodInvocation::continue1): Removed.
151 (run): Handle exceptions here.
152 * java/lang/ClassLoader.java (defineClass1, defineClass2):
153 Removed.
154 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
155 here.
156 (defineClass2): Removed.
157
158 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
159 Removed.
160 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
161 exceptions here.
162 (hack_call): Removed.
163
164 * java/lang/Class.h (Class): Removed hackRunInitializers,
165 hackTrampoline.
166 * java/lang/natClass.cc (hackRunInitializers): Removed.
167 (initializeClass): Catch exceptions here.
168 Include ExceptionInInitializerError.h.
169 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
170 Removed.
171
172 * java/lang/Object.h (Object): Don't mention hack12_6.
173 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
174 here.
175 * java/lang/Object.java (hack12_6): Removed.
176
177 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
178 (start): Use run_, not run__.
179 * java/lang/Thread.java (run_): Renamed from run__; old run_
180 removed.
181
182 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
183 (_Jv_JNI_EnsureLocalCapacity): Likewise.
184 (_Jv_JNI_DefineClass): Likewise.
185 (_Jv_JNI_ThrowNew): Likewise.
186 (_Jv_JNI_AllocObject): Likewise.
187 (_Jv_JNI_GetAnyMethodID): Likewise.
188 (_Jv_JNI_CallAnyMethodV): Likewise.
189 (_Jv_JNI_CallAnyMethodA): Likewise.
190 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
191 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
192 (_Jv_JNI_GetAnyFieldID): Likewise.
193 (_Jv_JNI_NewString): Likewise.
194 (_Jv_JNI_NewStringUTF): Likewise.
195 (_Jv_JNI_GetStringUTFChars): Likewise.
196 (_Jv_JNI_NewObjectArray): Likewise.
197 (_Jv_JNI_NewPrimitiveArray): Likewise.
198 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
199 (_Jv_JNI_GetStringRegion): Likewise.
200 (_Jv_JNI_GetStringUTFRegion): Likewise.
201 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
202 (_Jv_JNI_MonitorEnter): Likewise.
203 (_Jv_JNI_MonitorExit): Likewise.
204 (_Jv_JNI_ToReflectedField): Likewise.
205 (_Jv_JNI_ToReflectedMethod): Likewise.
206 (_Jv_JNI_RegisterNatives): Likewise.
207 (_Jv_JNI_AttachCurrentThread): Likewise.
208 (_Jv_JNI_DestroyJavaVM): Likewise.
209
fee2681f
MD
2102000-02-28 Mo DeJong <mdejong@cygnus.com>
211
212 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
213 error caused by the incorrect casting of a long to an int.
214
f8b7a5d2
MD
2152000-02-28 Mo DeJong <mdejong@cygnus.com>
216
217 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
218 SIGSEV caused by use of the wrong instance variable.
219
91da35db
BM
2202000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
221
222 * java/io/File.java (File(String, String)): For dirPath, treat an
223 empty String the same as `null'.
224
e1b15113
AG
2252000-02-26 Anthony Green <green@cygnus.com>
226
227 * gnu/gcj/io/MimeTypes.java: Test for null.
228
229 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
230 (JNI_GetCreatedJavaVMs): Remove compiler warning.
231
232 * java/net/URLConnection.java: Update copyright notice.
233
ac52f669
TT
2342000-02-25 Tom Tromey <tromey@cygnus.com>
235
236 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
237 `INTERPRETER'.
238
4ae4a3c9
BM
2392000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
240
241 * java/net/URLConnection.java (initializeDateFormats): New
242 private method.
243 (getHeaderFieldDate): Call initializeDateFormats if required.
244 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
245 these.
246 Fix for PR libgcj/38.
247
12b595c7
WL
2482000-02-24 Warren Levy <warrenl@cygnus.com>
249
250 * java/math/BigInteger.java(ival): Made private.
251 (words): Ditto.
252 (neg): Ditto.
253
9b90451b
AG
2542000-02-20 Anthony Green <green@cygnus.com>
255
256 * Makefile.in: Rebuilt.
257 * Makefile.am (ordinary_java_source_files): Add
258 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
259
260 * scripts/MakeDefaultMimeTypes.java: New file.
261 * scripts/mime.types: New file.
262 * scripts/classes.pl: Moved from top level.
263 * classes.pl: Moved to scripts directory.
264
265 * java/net/URLConnection.java: Implement guessContentTypeFromName.
266
267 * gnu/gcj/io/MimeTypes.java: New file.
268 * gnu/gcj/io/DefaultMimeTypes.java: New file.
269
38b3a2c0
TT
2702000-02-20 Tom Tromey <tromey@cygnus.com>
271
272 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
273
a0e34aaa
BM
2742000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
275
276 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
277 (setSize): ditto.
278
8ade4771
TT
2792000-02-18 Tom Tromey <tromey@cygnus.com>
280
281 * include/jvm.h (_Jv_GetJavaVM): Declare.
282 * include/java-interp.h (_Jv_GetFirstMethod): New function.
283 (_Jv_MethodBase::get_method): New method.
284 (_Jv_JNIMethod::set_function): New method.
285 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
286 (_Jv_JNI_RegisterNatives): New function.
287 (_Jv_JNIFunctions): Updated for new functions.
288 (_Jv_GetJavaVM): New function.
289 (_Jv_JNI_GetJavaVM): Use it. Now static.
290 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
291 is already a Java thread but does not have a JNIEnv yet.
292
293 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
294 function.
295
de3cb4e4
TT
2962000-02-17 Tom Tromey <tromey@cygnus.com>
297
298 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
299 Fixes PR gcj/152.
300
d77a1640
TT
3012000-02-16 Tom Tromey <tromey@cygnus.com>
302
5ef57049
TT
303 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
304
1adbc4d8
TT
305 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
306 (_Jv_JNI_NewObject): Likewise.
307 (_Jv_JNI_NewObjectA): Likewise.
308 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
309 as "return" type to _Jv_CallAnyMethodA.
310 (_Jv_JNI_CallAnyMethodA): Likewise.
311 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
312
d77a1640
TT
313 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
314 findClass.
315
2d759f71
TT
3162000-02-15 Tom Tromey <tromey@cygnus.com>
317
d348bda4
TT
318 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
319 jni_arg_types.
320 (init_cif): Added `rtype_p' argument.
321 * include/java-interp.h (class _Jv_MethodBase): Added
322 args_raw_size.
323 (class _Jv_InterpMethod): Removed args_raw_size.
324 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
325 * jni.cc (call): Pass JNIEnv and (for static methods only) the
326 class pointer as well as the ordinary arguments.
327
cdd59e7b
TT
328 * jni.cc (mangled_name): Skip leading `(' in signature.
329
abfb7844
TT
330 * jni.cc (add_char): Added missing `else'.
331
2d759f71
TT
332 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
333 fails.
334
2e5aca83
BM
3352000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
336
337 * NEWS: Updated.
338
339 * java/lang/natRuntime.cc (_load): Include library path with
340 exception message.
341
342 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
343 property.
344
345 * java/lang/natThread.cc (dumpStack): Removed.
346 * java/lang/Thread.java (dumpStack): Implemented.
347
26c3229c
TT
3482000-02-15 Tom Tromey <tromey@cygnus.com>
349
350 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
351 with `lib' for loadLibrary. Fixes PR gcj/150.
352
34540fe3
WL
3532000-02-14 Warren Levy <warrenl@cygnus.com>
354
355 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
356
357 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
358 New constructor.
359 (min): Implemented.
360 (max): Implemented.
361 (modPow): Rewritten to not use the naive, slow, brute force approach.
362 (isProbablePrime): Implemented.
363 (testBit): Implemented.
364 (flipBit): Implemented.
365 (getLowestSetBit): Implemented.
366
97ce4a51
AG
3672000-02-16 Anthony Green <green@redhat.com>
368
369 * configure.host: Use the same options for i386 and i486 as we do
370 for i586 and i686.
371
dd168666
TT
3722000-02-12 Tom Tromey <tromey@cygnus.com>
373
374 * java/io/File.java (createTempFile): Use low bits from counter,
375 not high bits.
376
95311793
AG
377Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
378
379 * THANKS: More thanks.
380
28ec5077
TT
3812000-02-11 Tom Tromey <tromey@cygnus.com>
382
383 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
384 astore instruction. From Hans Boehm.
385
34540fe3 3862000-02-11 Warren Levy <warrenl@cygnus.com>
136b5d77
WL
387
388 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
389 (BigInteger(String)): New constructor.
390 (not): Rewritten using version from Kawa's BitOps class.
391 (valueOf): New private methods from Kawa's BitOps class.
392 (swappedOp): ditto.
393 (bitOp): ditto.
394 (setBitOp): ditto.
395 (and): Implemented.
396 (or): Implemented.
397 (xor): Implemented.
398 (andNot): Implemented.
399 (clearBit): Implemented.
400 (setBit): Implemented.
401 (bitCount): Implemented.
402 (toByteArray): Implemented.
403
9d381124
TT
4042000-02-11 Tom Tromey <tromey@cygnus.com>
405
406 * java/io/File.java (nextValue): Now synchronized.
407
aaf0766e
TT
4082000-02-10 Tom Tromey <tromey@cygnus.com>
409
304ccb10
TT
410 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
411 * java/io/FileDescriptor.java (EXCL): New static field.
412 * java/io/File.java (tmpdir): New static field.
413 (createTempFile): New method.
414 (nextValue): New method.
415 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
416 property.
417
26439cc5
TT
418 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
419 (jboolean): Declare as an attributed int, not a bool.
420 (_Jv_func): Declare differently for C.
421
aaf0766e
TT
422 * gnu/gcj/jni/natNativeThread.cc: New file.
423 * gnu/gcj/jni/NativeThread.java: New file.
424 * java/lang/Thread.java (data): Now a RawData.
425 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
426 Declare.
427 * Makefile.in: Rebuilt.
428 * Makefile.am (java/lang/Thread.h): New target.
429 (ordinary_java_source_files): Added NativeThread.java.
430 (nat_source_files): Added natNativeThread.cc.
431 * java/lang/natThread.cc: Include <jni.h>
432 (struct natThread): Added `jni_env' field.
433 (_Jv_GetCurrentJNIEnv): New function.
434 (_Jv_SetCurrentJNIEnv): Likewise.
435 (initialize_native): Initialize jni_env.
436 Include RawData.h.
437 * jni.cc (ThreadGroupClass): New define.
438 (_Jv_JNI_InvokeFunctions): New structure.
439 (JNI_GetCreatedJavaVMs): New function.
440 (the_vm): New global.
441 (JNI_GetDefaultJavaVMInitArgs): New function.
442 Include NativeThread.h.
443 (NativeThreadClass): New define.
444 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
445 (_Jv_JNI_DestroyJavaVM): New function.
446 (_Jv_JNI_AttachCurrentThread): New function.
447 (_Jv_JNI_DetachCurrentThread): New function.
448 (_Jv_JNI_GetEnv): New function.
449 (JNI_CreateJavaVM): New function.
450 (_Jv_JNI_GetJavaVM): New function.
451 (_Jv_JNIFunctions): Added entry for GetJavaVM.
452 * include/jni.h (JavaVMAttachArgs): New structure.
453 (JNI_EDETACHED): New define.
454 (JNI_EVERSION): Likewise.
455 (JavaVM): Define properly.
456 (struct JNIInvokeInterface): New structure.
457 (class _Jv_JavaVM): New class.
458 (JNI_OnLoad, JNI_OnUnload): Declare.
459 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
460 JNI_GetCreatedJavaVMs): Declare.
461 (JavaVMInitArgs): New typedef.
462 (JavaVMOption): Likewise.
463 (JNI_ERR): New define.
464 (JNI_OK): Likewise.
465
715bdd81
AH
4662000-02-10 Andrew Haley <aph@cygnus.com>
467
468 * interpret.cc: Don't include fdlibm.h.
469 Replace #if with #ifdef throughout.
470 Declare extern __ieee754_fmod.
471 (continue1): Remove op_getfield, op_getstatic, op_putfield,
472 op_putstatic insns.
473 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
474 Search class hierarchy for superclass vtable.
475
476 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
477 off the end of a pointer list.
478
479 * java/lang/natThread.cc (stop): Don't abort, throw an exception
480 instead.
481 (suspend): Ditto.
482
c56c8c43
TT
4832000-02-09 Tom Tromey <tromey@cygnus.com>
484
7e3b6e31
TT
485 * java/lang/natRuntime.cc (_load): Call add_library.
486 (loadLibraryInternal): Likewise.
487
c56c8c43
TT
488 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
489 iconv_close when handle is not NULL. Thanks to Andrew Haley.
490 (Output_iconv::finalize): Likewise.
491
bad196d7
TT
4922000-02-08 Tom Tromey <tromey@cygnus.com>
493
494 * java/util/Properties.java (setProperty): New method.
495 (store): New method.
496
f39b788a
TT
4972000-02-07 Tom Tromey <tromey@cygnus.com>
498
3fd64b5a
TT
499 * java/lang/Runtime.java (_load): Declare.
500 (load, loadLibrary): Wrote in terms of _load.
501 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
502 library.
503 (loadLibrary): Likewise.
504 Include <jni.h>.
505 (_load): New method.
506 (loadLibrary, load): Removed.
507
278abd28
TT
508 * jni.cc (ThrowableClass): New define.
509 (_Jv_JNI_Throw): Check argument.
510 (_Jv_JNI_ThrowNew): Likewise.
511 (wrap_value): Don't wrap object if it is NULL.
512 (_Jv_JNI_DefineClass): Use wrap_value.
513 (_Jv_JNI_FindClass): Likewise.
514 (_Jv_JNI_GetSuperclass): Likewise.
515 (_Jv_JNI_ExceptionOccurred): Likewise.
516 (_Jv_JNI_AllocObject): Likewise.
517 (_Jv_JNI_GetObjectClass): Likewise.
518 (_Jv_JNI_NewString): Likewise.
519 (_Jv_JNI_NewStringUTF): Likewise.
520 (_Jv_JNI_NewObjectArray): Likewise.
521 (_Jv_JNI_GetObjectArrayElement): Likewise.
522 (_Jv_JNI_NewPrimitiveArray): Likewise.
523 (_Jv_JNI_ToReflectedField): Likewise.
524 (_Jv_JNI_ToReflectedMethod): Likewise.
525 (_Jv_JNI_AllocObject): Check argument.
526 (_Jv_JNI_NewObjectV): Likewise.
527 (_Jv_JNI_NewObject): Likewise.
528 (_Jv_JNI_NewObjectA): Likewise.
529 (_Jv_JNI_GetObjectClass): Likewise.
530 (_Jv_JNI_GetField): Likewise.
531 (_Jv_JNI_SetField): Likewise.
532
7c51d9fb
TT
533 * interpret.cc (PUSHL): Don't use expression statement.
534 (PUSHD): Likewise.
535 (LOADL): Likewise.
536 (STOREL): Likewise.
537
f39b788a
TT
538 * jni.cc (add_char): Conditional on INTERPRETER.
539 (mangled_name): Likewise.
540 (call): Likewise.
541 * include/java-interp.h (class _Jv_MethodBase): Conditional on
542 INTERPRETER.
543 (class _Jv_JNIMethod): Likewise.
544
25c449be
WL
5452000-02-04 Warren Levy <warrenl@cygnus.com>
546
547 * Makefile.am: Added MPN.java and BigInteger.java.
548 * Makefile.in: Rebuilt.
4f884169
WL
549 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
550 <per@bothner.com>.
551 * java/math/BigInteger.java: New file. Based primarily on
552 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
25c449be 553
facc279f
TT
5542000-02-04 Tom Tromey <tromey@cygnus.com>
555
556 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
557 pointers.
558 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
559 if the method is native.
560 * resolve.cc (ncode): Don't handle native methods.
561 (_Jv_JNIMethod::ncode): New method.
562 (_Jv_PrepareClass): Handle native methods.
563 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
564 Include AbstractMethodError.h.
565 (add_char): New function.
566 (mangled_name): Likewise.
567 * include/java-interp.h (class _Jv_JNIMethod): New class.
568 (class _Jv_MethodBase): New class.
569 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
570 (_Jv_InterpClass): Changed `interpreted_methods' field to type
571 `_Jv_MethodBase'.
572
573 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
574 * java/lang/natRuntime.cc (libraries_size, libraries_count,
575 libraries): New globals.
576 (add_library): New function.
577 (_Jv_FindSymbolInExecutable): New function.
578
579 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
580 Now static.
581
43c5c8a6
AH
5822000-02-04 Andrew Haley <aph@cygnus.com>
583
584 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
585 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
586 * java/lang/natThrowable.cc (printRawStackTrace): Rename
587 printStackTrace to printRawStackTrace.
588
14447d96
TT
5892000-02-03 Tom Tromey <tromey@cygnus.com>
590
591 * java/util/Calendar.java (toString): New method.
592 * java/util/SimpleTimeZone.java (clone): New method.
593 (toString): New method.
594 * java/util/TimeZone.java (clone): New method.
595 * java/text/SimpleDateFormat.java (clone): New method.
596 * java/text/NumberFormat.java (clone): New method.
597 (equals): New method.
598 * java/text/Format.java (clone): New method.
599 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
600 constructor.
601 (clone): New method.
602 * java/text/DateFormat.java (clone): New method.
603 * java/text/Collator.java (clone): New method.
604
7d3151e1
TT
6052000-02-03 Tom Tromey <tromey@cygnus.com>
606
607 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
608 method.
609
5dc489c1
TT
6102000-02-01 Tom Tromey <tromey@cygnus.com>
611
ee6713e7
TT
612 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
613 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
614 constructing the closure if the function is native.
615 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
616 a template function, #if'd out, or static.
617 Include <java-interp.h>.
618
89281911
TT
619 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
620
7d34aa4c
TT
621 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
622
ee7f72e4
TT
623 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
624 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
625 `locals == NULL'.
626 (wrap_value): New function.
627 (_Jv_JNI_CallAnyMethodV): Use it.
628 (_Jv_JNI_CallAnyMethodA): Likewise.
629 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
630 (_Jv_JNI_GetStaticField): Likewise.
631
5dc489c1
TT
632 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
633 (_Jv_JNI_GetStaticField): Likewise.
634
7e648cf9
TT
6352000-01-31 Tom Tromey <tromey@cygnus.com>
636
637 * prims.cc (_Jv_MallocUnchecked): New function.
638 (main_init): Call _Jv_JNI_Init.
639 * include/jvm.h (_Jv_MallocUnchecked): Declare.
640 (_Jv_JNI_Init): Declare.
641 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
642 <string.h>.
643 (_Jv_JNI_NewGlobalRef): New function.
644 (_Jv_JNI_DeleteGlobalRef): New function.
645 (_Jv_JNI_DeleteLocalRef): New function.
646 (_Jv_JNI_conversion_call): Initialize and clear local reference
647 frame.
648 (_Jv_JNI_NewLocalRef): New function.
649 (struct _Jv_JNI_LocalFrame): New structure.
650 (_Jv_JNI_PushLocalFrame): New function.
651 (_Jv_JNI_EnsureLocalCapacity): New function.
652 (FRAME_SIZE): New define.
653 (_Jv_JNI_GetStringChars): Mark string, not characters.
654 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
655 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
656 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
657 elements.
658 (_Jv_JNI_DefineClass): Make return value a local ref.
659 (_Jv_JNI_FindClass): Likewise.
660 (_Jv_JNI_GetSuperclass): Likewise.
661 (_Jv_JNI_ExceptionOccurred): Likewise.
662 (_Jv_JNI_AllocObject): Likewise.
663 (_Jv_JNI_GetObjectClass): Likewise.
664 (_Jv_JNI_CallAnyMethodV): Likewise.
665 (_Jv_JNI_NewString): Likewise.
666 (_Jv_JNI_NewStringUTF): Likewise.
667 (_Jv_JNI_NewObjectArray): Likewise.
668 (_Jv_JNI_GetObjectArrayElement): Likewise.
669 (_Jv_JNI_ToReflectedField): Likewise.
670 (_Jv_JNI_ToReflectedMethod): Likewise.
671 (_Jv_JNIFunctions): Updated table for new functions.
672 (_Jv_JNI_Init): New function.
673 (mark_for_gc): Wrote.
674 (unmark_for_gc): Wrote.
675 * include/jni.h (struct JNINativeInterface): Removed name from
676 PopLocalFrame parameter.
677 (class _Jv_JNIEnv): Added `locals' field.
678
ab5cffc5
AG
679Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
680
681 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
682 (write): Ditto.
683
946efde1
TT
6842000-01-30 Tom Tromey <tromey@cygnus.com>
685
686 * include/config.h.in: Rebuilt.
687 * acconfig.h (HAVE_ICONV): Define.
688 * configure: Rebuilt.
689 * configure.in: Check for `iconv' function.
690 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
691 no specific encoder exists.
692 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
693 no specific encoder exists.
694 * Makefile.in: Rebuilt.
695 * Makefile.am (convert_source_files): Mention Input_iconv.java and
696 Output_iconv.java.
697 (nat_source_files): Added natIconv.cc.
698 * gnu/gcj/convert/natIconv.cc: New file.
699 * gnu/gcj/convert/Input_iconv.java: New file.
700 * gnu/gcj/convert/Output_iconv.java: New file.
701
d0a844f8
TT
7022000-01-28 Tom Tromey <tromey@cygnus.com>
703
704 * Makefile.in: Rebuilt.
705 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
706
673fdf6d
TT
7072000-01-26 Tom Tromey <tromey@cygnus.com>
708
355dff4c
TT
709 * gcj/method.h (JvNumMethods): Moved from Class.h.
710 (JvGetFirstMethod): Likewise.
711 * java/lang/Class.h (Object): Updated decl of
712 _Jv_JNI_ToReflectedField.
713 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
714 * Makefile.in: Rebuilt.
715 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
716 argument of _Jv_JNI_ToReflectedField.
717 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
718 as a friend.
719 (java/lang/reflect/Method.h): Likewise.
720 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
721 __GCJ_JNI_IMPL__.
722 (jweak): New typedef.
723 (struct JNINativeInterface): Correctly declare remaining entries.
724 * jni.cc: Include Class.h, ClassLoader.h.
725 (_Jv_JNI_FindClass): New function.
726 (_Jv_JNI_DefineClass): New function.
727 (_Jv_JNI_conversion_call): New function.
728 (_Jv_JNI_FindClass): Use current class loader to find class.
729 (_Jv_JNI_ExceptionCheck): New function.
730 (_Jv_JNI_FromReflectedField): Now static.
731 (MethodClass): New define.
732 (_Jv_JNI_FromReflectedMethod): New function.
733 (_Jv_JNI_ToReflectedMethod): Likewise.
734 Include Method.h.
735 (_Jv_JNI_IsAssignableFrom): Renamed.
736 (_Jv_JNI_GetStringRegion): New function.
737 Include StringIndexOutOfBoundsException.h.
738 (_Jv_JNI_GetStringUTFRegion): New function.
739 (_Jv_JNIFunctions): Updated for new functions.
740 (_Jv_JNI_GetPrimitiveArrayCritical): New function
741 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
742 (_Jv_JNI_GetStringCritical): New function.
743 (_Jv_JNI_ReleaseStringCritical): Likewise.
744 (get_throwable): Removed.
745 (GCJ_JV_JNIENV_FRIEND): Removed.
746 (__GCJ_JNI_IMPL__): Define.
747 Include method.h.
748
673fdf6d
TT
749 * resolve.cc (get_ffi_type_from_signature): Handle case where
750 boolean is an int.
751
8de7c9a0
TT
752Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
753
754 * interpret.cc (run): Don't call println.
755 Don't include PrintStream.h.
756
757 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
758 nameIndex. Use "jint" as type for boffset.
759 * java/lang/Class.h (struct _Jv_Method): Made accflags a
760 _Jv_ushort.
761 (Class): Likewise. Also changed type of method_count,
762 vtable_method_count, size_in_bytes, field_count,
763 static_field_count, interface_count.
764 * gcj/array.h (__JArray): Made `length' a const jsize, not an
765 int.
766
8a922095
TT
7672000-01-21 Tom Tromey <tromey@cygnus.com>
768
769 * java/lang/reflect/natConstructor.cc (newInstance): Use
770 _Jv_CallAnyMethodA.
771 * include/jvm.h: Declare _Jv_CallAnyMethodA.
772 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
773 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
774 Include <jni.h>.
775 (COPY): Removed.
776 (invoke): Use _Jv_CallAnyMethodA.
777 (VAL): Redefined.
778 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
779 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
780 functions.
781 (struct _Jv_Method): Added getNextMethod method.
782 (JvNumMethods): New function.
783 (JvGetFirstMethod): Likewise.
784 * gcj/field.h (JvGetFirstStaticField): New function.
785 (JvNumStaticFields): Likewise.
786 (getNextField): Renamed from getNextInstanceField.
787 (struct _Jv_Field): New method getClass.
788 * jni.cc: Wrote many new functions.
789 * include/jni.h (JNI_TRUE): Define.
790 (JNI_FALSE): Likewise.
791 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
792 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
793 jcharArray, jfloatArray, jdoubleArray): New typedefs.
794 (jfieldID, jmethodID): Likewise.
795 (JNI_COMMIT, JNI_ABORT): New defines.
796 (JNINativeMethod): New struct.
797 (struct JNINativeInterface): Correctly declared more entries.
798 (class _Jv_JNIEnv): Added `ex' member.
799 (JNI_VERSION_1_1): New define.
800 (JNI_VERSION_1_2): Likewise.
801
802 * boehm.cc (_Jv_MarkObj): Use getNextField, not
803 getNextInstanceField.
804
0b9309b6
TT
8052000-01-20 Tom Tromey <tromey@cygnus.com>
806
807 * resolve.cc (StringClass): Removed.
808 * defineclass.cc (StringClass): Removed.
809
dda482c1
BM
8102000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
811
812 * NEWS: updated.
813
7c734b17
TT
8142000-01-19 Tom Tromey <tromey@cygnus.com>
815
74436afa
TT
816 * interpret.cc (PC_REGISTER_ASM): Removed.
817
db70b4bd
TT
818 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
819 From Bryce McKinlay.
820
7c734b17
TT
821 * All files: Updated copyright to reflect Cygnus purchase.
822
f7ccaa38
BM
8232000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
824
825 * configure: Rebuilt.
826 * configure.in: Recognize --disable-interpreter.
827
b9f243c2
AH
8282000-01-18 Andrew Haley <aph@cygnus.com>
829
830 * name-finder.cc (lookup): Check for dladdr function.
831 acconfig.h (HAVE_DLADDR): Add.
832 configure.in: Check for HAVE_DLADDR
833 configure: Rebuilt.
834 include/config.h.in: Rebuilt.
835
04476544
AH
8362000-01-17 Andrew Haley <aph@cygnus.com>
837
838 * prims.cc (_Jv_RunMain): Set the name of this executable.
839
7af85558
TT
8402000-01-17 Tom Tromey <tromey@cygnus.com>
841
d269d25c
TT
842 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
843 when backtrace can't be computed.
844
4f5a5d5c
TT
845 * configure: Rebuilt.
846 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
847
7af85558
TT
848 * java/lang/Runtime.java (loadLibraryInternal): Declare.
849 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
850 (_Jv_FindClassInCache): Likewise.
851 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
852 (findSystemClass): Try to load class from compiled module.
853 Include Runtime.h.
854 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
855 (loadLibrary): Likewise.
856 (lt_preloaded_symbols): Define.
857 (loadLibraryInternal): New method.
858 * include/config.h.in: Rebuilt.
859 * acconfig.h (USE_LTDL): Added.
860 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
4f5a5d5c 861 (INCLUDES): Added $(INCLTDL).
7af85558
TT
862 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
863 (libgcj_la_LIBADD): Likewise.
864 * aclocal.m4, configure: Rebuilt.
865 * configure.in: Added libltdl support.
866
451f21ef
TT
8672000-01-15 Tom Tromey <tromey@cygnus.com>
868
869 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
870
283a159f
AH
8712000-01-14 Andrew Haley <aph@cygnus.com>
872
873 * java/lang/natThrowable.cc: New file.
874
875 * java/lang/Throwable.java (fillInStackTrace): Make native.
876 (printStackTrace): Call native method to do this.
877 (Throwable): Call fillInStackTrace.
878 (stackTrace): New variable.
879
880 * include/jvm.h: Add _Jv_ThisExecutable functions.
881
882 * prims.cc: (_Jv_execName): New variable.
883 (catch_segv): Call fillInStackTrace.
884 (catch_fpe): Ditto.
885 (_Jv_ThisExecutable): New functions.
886 (JvRunMain): Set the name of this executable.
887
888 * Makefile.am: Add java/lang/natThrowable.cc.
889 Add name-finder.cc.
890 * Makefile.in: Rebuilt.
891
892 * acconfig.h: Add HAVE_PROC_SELF_EXE.
893
894 * configure.in: Force link with __frame_state_for in
895 FORCELIBGCCSPEC. Add new checks for backtrace.
896 * include/config.h.in: Rebuilt.
897
898 * name-finder.cc: New file.
899 * include/name-finder.h: New file.
451f21ef 900
2a198bc4
AG
9012000-01-16 Anthony Green <green@cygnus.com>
902
903 * java/lang/StringBuffer.java (StringBuffer): Don't special case
904 null argument.
905
2ce7461b
JS
9062000-01-16 Jeff Sturm <jsturm@sigma6.com>
907
908 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
909
357100a3
TT
9102000-01-13 Tom Tromey <tromey@cygnus.com>
911
912 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
913 not system loader, as initiating loader.
914
6baee4c5
TT
9152000-01-11 Tom Tromey <tromey@cygnus.com>
916
917 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
918 HP/UX. From David Scott Urban.
919
0cf69aff
JS
9202000-01-10 Jeff Sturm <jsturm@sigma6.com>
921
922 * java/lang/natMath.cc (pow): Cast args to `double', not
923 `jdouble'.
924 (atan2): Likewise.
925 (IEEEremainder): Likewise.
926 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
927 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
928
b11f6430
AG
9292000-01-09 Anthony Green <green@cygnus.com>
930
931 * java/lang/natString.cc (init): Test for overflow condition
932 during out of bounds check.
933 (getChars): Throw StringIndexOutOfBoundsException, not
934 ArrayIndexOutOfBoundsException.
935 (getBytes): Ditto.
936 (regionMatches): Obey case option during string comparison.
937
938 * configure.host (ligcj_interpreter): New variable. Enable
939 interpreter by default on IA-32.
940 * configure.in: Examine libgcj_interpreter.
941 * configure: Rebuilt.
942
bd3a924b
TT
9432000-01-07 Tom Tromey <tromey@cygnus.com>
944
be63d11f
TT
945 * mauve-libgcj: Don't disable ClassTest.
946
bd3a924b
TT
947 * java/lang/natClass.cc (getClasses): Wrote.
948
55ff3de7
TT
9492000-01-06 Tom Tromey <tromey@cygnus.com>
950
951 * java/lang/natClass.cc (_getConstructors): Correctly check
952 whether method name is the init name.
953 (getMethod): Look at accflags on method in `klass', not `this'.
954
5dab1948
TT
9552000-01-05 Tom Tromey <tromey@cygnus.com>
956
41ecf930
TT
957 * java/lang/natClass.cc (getMethod): Compute offset relative to
958 `klass's methods table, not `this's table.
959
960 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
961 In unwrapping/widening case, check whether `k' is null, not
962 whether it is primitive. Initialize `num' from `argelts', not
963 `paramelts'. Correct create and pass arguments to ffi_call.
964 Don't let presence of `this' argument affect index used to look in
965 argument arrays.
966 (COPY): Set appropriate element in `values' vector.
967
d6ab24c5
TT
968 * java/lang/natClass.cc: Include <gcj/method.h>.
969
1258cada
TT
970 * java/lang/Class.h (_getMethods): Correctly declare as private,
971 not public.
972
6f2b93eb
TT
973 * java/lang/Class.h (_getMethods): Declare.
974 * java/lang/Class.java (_getMethods): Declare.
975 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
976 (getDeclaredClasses): Always return empty array.
977 (_getMethods): New method.
978 (getMethods): Wrote.
979 (getDeclaredMethod): Return `rmethod'.
980 (finit_name): New global.
981 (getDeclaredMethods): Check for finit_name.
982 (_getMethods): Likewise.
983 (getMethod): Only return public methods.
984
5dab1948
TT
985 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
986 jboolean and select correct ffi type on that basis.
987 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
988 Constructor call always has `void' return type.
989
95c6cc0a
TT
9902000-01-04 Tom Tromey <tromey@cygnus.com>
991
992 * java/lang/Class.h (getSignature): Updated.
993 * java/lang/Class.java (getSignature): Updated.
994 * java/lang/natClass.cc (getSignature): Added `is_constructor'
995 argument.
996 (getConstructor): Ensure constructor is public.
997 (_getConstructors): Check for public-ness of constructor when
998 `declared' is false, not when it is true.
999
730ecdd3
WL
10002000-01-04 Warren Levy <warrenl@cygnus.com>
1001
1002 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
1003 comment.
1004 (receive): Set the sender's address in the DatagramPacket.
1005
0f918fea
TT
10062000-01-04 Tom Tromey <tromey@cygnus.com>
1007
1008 * java/lang/reflect/natConstructor.cc (newInstance): Pass
1009 declaring class as return_type argument to
1010 _Jv_CallNonvirtualMethodA.
1011 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
1012 constructor case, create object and use it as `this' argument.
1013 * java/lang/Class.h (_getConstructors): Declare.
1014 (_getFields): Declare.
1015 * java/lang/Class.java (getConstructors): Wrote.
1016 (_getConstructors): New native method.
1017 (getDeclaredConstructors): Wrote.
1018 (_getFields): Declare new native method.
1019 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
1020 incorrect comment.
1021 (getMethod): Work correctly when class is primitive.
1022 (getDeclaredMethods): Likewise. Compute offset using `method',
1023 not `mptr'.
1024 (getDeclaredMethod): Likewise.
1025 (getConstructor): Wrote.
1026 (ConstructorClass): New define.
1027 (getDeclaredConstructor): Wrote.
1028 (_getConstructors): New method.
1029 (_getFields): New method.
1030 (getFields): Wrote.
1031
1032 * Makefile.in: Rebuilt.
1033 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
1034
1035 * prims.cc: Remove `#pragma implementation'.
1036 * gcj/array.h: Remove `#pragma interface'.
1037
1038 * prims.cc (_Jv_equaln): New function.
1039 * java/lang/Class.java (getSignature): Declare.
1040 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
1041 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
1042 resolve.cc.
1043 (getSignature): New method.
1044 (getDeclaredMethod): Wrote.
1045 (getMethod): Wrote.
1046 Include StringBuffer.h.
1047 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
1048 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
1049 a friend.
1050 (getSignature): Declare.
1051 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
1052 (_Jv_equaln): Declare.
1053 (_Jv_CallNonvirtualMethodA): Declare.
1054 * Makefile.in: Rebuilt.
1055 * Makefile.am (nat_source_files): Added natConstructor.cc.
1056 (java/lang/reflect/Constructor.h): New target.
1057 * java/lang/reflect/natConstructor.cc: New file.
1058 * java/lang/reflect/Constructor.java (newInstance): Now native.
1059 (declaringClass): Renamed from decl_class.
1060 (offset): Renamed from index.
1061 (getType): New native method.
1062 (getModifiers): Now native.
1063 (getParameterTypes): Call getType if required.
1064 (hashCode): Include hash code from declaring class.
1065 (modifiers): Removed.
1066 (toString): Call getType if required.
1067 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
1068 * java/lang/reflect/natMethod.cc (hack_call): New method.
1069 Removed `#if 0' around FFI code.
1070 Include <gnu/gcj/RawData.h>.
1071 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
1072 IllegalArgumentException when argument object and class disagree.
1073 (_Jv_GetTypesFromSignature): New function.
1074 (getType): Use it.
1075 (ObjectClass): New define.
1076 (_Jv_CallNonvirtualMethodA): New function.
1077 * java/lang/reflect/Method.java (hack_trampoline): New method.
1078 (hack_call): New native method.
This page took 0.909138 seconds and 5 git commands to generate.