]> gcc.gnu.org Git - gcc.git/blob - libjava/ChangeLog
re GNATS libgcj/213 (Another parallel build error)
[gcc.git] / libjava / ChangeLog
1 2000-04-21 Tom Tromey <tromey@cygnus.com>
2
3 Fix for PR libgcj/213:
4 * Makefile.in: Rebuilt.
5 * Makefile.am (gij_SOURCES): Added gij.cc.
6 (EXTRA_gij_SOURCES): Removed.
7 (gij_LDADD): Removed gij.lo.
8 (gij_DEPENDENCIES): Likewise.
9 ($(gij_OBJECTS)): Depend on nat_headers.
10
11 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
12 `setURL', not `url.set'.
13
14 2000-04-20 Tom Tromey <tromey@cygnus.com>
15
16 Fix for PR java.io/204:
17 * java/io/PipedInputStream.java, java/io/PipedReader.java,
18 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
19 from Classpath.
20
21 Fix for PR libgcj/212:
22 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
23 * include/jvm.h (_Jv_word, _Jv_word2): Define.
24 * java/lang/Class.h (_Jv_word): Declare.
25
26 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
27
28 2000-04-19 Tom Tromey <tromey@cygnus.com>
29
30 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
31 doesn't have a loader.
32
33 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
34
35 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
36 MAYBE_MARK to ptr_t, for compatibility with new GC version.
37
38 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
39
40 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
41 libgcj/202.
42 (available): Initialize `where' to prevent bogus compiler warning.
43
44 2000-04-12 Tom Tromey <tromey@cygnus.com>
45
46 * java/lang/natString.cc (intern): Temporarily disable finalizer
47 registration.
48
49 * java/lang/natString.cc (unintern): Added `obj' argument.
50 (intern): Register finalizer for string.
51 * java/lang/String.java (unintern): Now static; added obj
52 argument.
53
54 2000-04-11 Tom Tromey <tromey@cygnus.com>
55
56 * java/util/Vector.java (VectorEnumeration): Now `final'.
57 * java/util/Hashtable.java (HashtableEntry): Now `final'.
58 (HashtableEnumeration): Likewise.
59 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
60 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
61
62 2000-04-10 Warren Levy <warrenl@cygnus.com>
63
64 * java/io/ObjectStreamException.java: New file.
65 * java/io/OptionalDataException.java: New file.
66 * java/io/StreamCorruptedException.java: New file.
67 * java/math/BigDecimal.java: New file.
68 * java/sql/CallableStatement.java: New file.
69 * java/sql/Connection.java: New file.
70 * java/sql/DataTruncation.java: New file.
71 * java/sql/DatabaseMetaData.java: New file.
72 * java/sql/Date.java: New file.
73 * java/sql/Driver.java: New file.
74 * java/sql/DriverManager.java: New file.
75 * java/sql/DriverPropertyInfo.java: New file.
76 * java/sql/PreparedStatement.java: New file.
77 * java/sql/ResultSet.java: New file.
78 * java/sql/ResultSetMetaData.java: New file.
79 * java/sql/SQLException.java: New file.
80 * java/sql/SQLWarning.java: New file.
81 * java/sql/Statement.java: New file.
82 * java/sql/Time.java: New file.
83 * java/sql/Timestamp.java: New file.
84 * java/sql/Types.java: New file.
85 * Makefile.am: Added above new files.
86 * Makefile.in: Rebuilt.
87
88 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
89 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
90 DatagramSocket constructor instead of null.
91
92 2000-04-08 Anthony Green <green@cygnus.com>
93
94 * include/posix-threads.h (_Jv_MutexUnlock): Replace
95 _JV_NOT_OWNER.
96
97 2000-04-08 Anthony Green <green@cygnus.com>
98
99 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
100 (_Jv_MutexUnlock): Ditto.
101 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
102 (_Jv_MutexUnlock): Ditto.
103
104 2000-04-08 Anthony Green <green@cygnus.com>
105
106 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
107 (ensureCapacity_unsynchronized): New private method.
108 (append): Use ensureCapacity_unsynchronized.
109
110 2000-04-08 Tom Tromey <tromey@cygnus.com>
111
112 * Makefile.in: Rebuilt.
113 * Makefile.am (awt_java_source_files): Added new files.
114 * java/awt/IllegalComponentStateException.java: New file.
115 * java/awt/ItemSelectable.java: New file.
116 * java/awt/event/WindowEvent.java: Finished.
117 * java/awt/event/TextEvent.java: Finished.
118 * java/awt/event/ContainerEvent.java: New file.
119 * java/awt/Component.java (getX, getY): New methods.
120 * java/awt/event/PaintEvent.java: New file.
121 * java/awt/event/MouseEvent.java: New file.
122 * java/awt/ActiveEvent.java: New file.
123 * java/awt/event/KeyEvent.java: Finished.
124 * java/awt/event/ItemEvent.java: New file.
125 * java/awt/Adjustable.java: New file.
126 * java/awt/event/InputMethodEvent.java: New file.
127 * java/awt/event/InputEvent.java: Finished.
128 * java/awt/event/FocusEvent.java: New file.
129 * java/awt/event/MouseMotionAdapter.java: New file.
130 * java/awt/event/MouseAdapter.java: New file.
131 * java/awt/event/KeyAdapter.java: New file.
132 * java/awt/event/FocusAdapter.java: New file.
133 * java/awt/event/ContainerAdapter.java: New file.
134 * java/awt/event/ComponentEvent.java: Finished.
135 * java/awt/event/AdjustmentEvent.java: New file.
136 * java/awt/event/ComponentAdapter.java: New file.
137 * java/awt/event/ActionEvent.java: Finished.
138 * java/awt/event/MouseMotionListener.java: New file.
139 * java/awt/event/MouseListener.java: New file.
140 * java/awt/event/ItemListener.java: New file.
141 * java/awt/event/InputMethodListener.java: New file.
142 * java/awt/event/ContainerListener.java: New file.
143 * java/awt/event/FocusListener.java: New file.
144 * java/awt/event/ComponentListener.java: New file.
145 * java/awt/event/AWTEventListener.java: New file.
146 * java/awt/event/AdjustmentListener.java: New file.
147
148 2000-04-08 Anthony Green <green@cygnus.com>
149
150 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
151 check when we have to.
152
153 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
154 x) as `inline'.
155
156 * java/util/StringTokenizer.java: Minor optimization. Eliminates
157 one method call.
158
159 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
160 inline hasMoreElements.
161
162 2000-04-05 Tom Tromey <tromey@cygnus.com>
163
164 * configure: Rebuilt.
165 * configure.in: Recognize --enable-java-awt.
166 (AWT): New conditional.
167 * Makefile.in: Rebuilt.
168 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
169 requested.
170 (libgcjawt_la_SOURCES): New macro.
171 (EXTRA_libgcjawt_la_SOURCES): Likewise.
172 (libgcjawt_la_DEPENDENCIES): Likewise.
173 (libgcjawt_la_LIBADD): Likewise.
174 (libgcjawt_la_LDFLAGS): Likewise.
175 (libgcj.zip): Depend on cond_java_awt_source_files
176 (cond_awt_java_source_files): New macro.
177 (MOSTLYCLEANFILES): Added awto_files.
178 (awto_files): New macro. Use where javao_files used.
179 (nat_headers): Use cond_awt_java_source_files.
180
181 2000-04-04 Tom Tromey <tromey@cygnus.com>
182
183 * Makefile.in: Rebuilt.
184 * Makefile.am (awt_java_source_files): Added AWTException.java.
185 * java/awt/AWTException.java: New file.
186
187 2000-04-03 Tom Tromey <tromey@cygnus.com>
188
189 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
190 commentary from Alex.
191
192 * Makefile.in: Rebuilt.
193 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
194 From H.J. Lu.
195
196 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
197
198 * configure: Rebuilt.
199 * configure.in: Add --disable-jvmpi.
200 * include/config.h.in: Rebuilt.
201 * acconfig.h: Add ENABLE_JVMPI.
202
203 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
204 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
205 (_Jv_JVMPI_Notify_THREAD_END): New define.
206 (_Jv_JVMPI_Notify_THREAD_END): New define.
207 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
208 (_Jv_JVMPI_Notify_THREAD_END): Declare.
209 (_Jv_JVMPI_Notify_THREAD_END): Declare.
210
211 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
212 events.
213
214 * java/lang/natThread.cc: Include JVMPI headers if necessary.
215 (finish_): Generate JVMPI thread end events.
216 (run_): Generate JVMPI thread start events.
217 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
218 preloaded JNI library.
219 Include JVMPI headers if necessary.
220 (run): Generate JVMPI thread start events.
221
222 * boehm.cc: Define GC_disable and GC_enable.
223 (_Jv_DisableGC): New function.
224 (_Jv_EnableGC): New function.
225 (disable_gc_mutex): Declare.
226 * nogc.cc (_Jv_DisableGC): New function.
227 (_Jv_EnableGC): New function.
228
229 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
230 (_Jv_JVMPI_Interface): Define.
231 (jvmpiEnableEvent): New function.
232 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
233
234 * include/jvmpi.h: New file.
235
236 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
237
238 * Makefile.in: New #defines and friends for Thread.h.
239 * Makefile.am: Ditto.
240 * posix-threads.cc: (struct starter): Remove `object'.
241 (_Jv_CondWait): Use interruptable condition variables and new
242 recursive mutexes. New return codes on interrupt or non-ownership
243 of mutex.
244 (_Jv_CondNotify): Ditto.
245 (_Jv_CondNotifyAll): Ditto.
246 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
247 the target thread by signaling its wait condition.
248 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
249 not the starter struct. Initialize wait_mutex and wait_cond.
250 (_Jv_MutexLock): New recursive mutex implementation. Moved from
251 posix-threads.h.
252 (_Jv_MutexUnlock): Ditto.
253 (really_start): Set info->data->thread from pthread_self() to work
254 around a race condition. Destroy wait_mutex and wait_cond when run()
255 returns.
256 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
257 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
258 set.
259 startable_flag: New private field.
260 (Thread): Initialize `startable_flag'.
261 (toString): Check for null thread group.
262 * java/lang/natThread.cc: (struct natThread): New fields
263 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
264 (class locker): Removed.
265 (initialize_native): Initialize `join_cond' and `join_mutex'.
266 (interrupt): Now just calls _Jv_ThreadInterrupt().
267 (join): Simplified. Just wait on the target thread's join condition.
268 (finish_): Remove join list code. Unset thread group. Signal
269 potential joiners by notifying the dying threads join_cond.
270 (start): Check for illegal restarts.
271 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
272 act appropriatly.
273 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
274 #defines and #ifdefs.
275 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
276 `wait_mutex', `next'.
277 (struct _Jv_ConditionVariable_t): Define as a struct instead of
278 directly mapping to pthread_cond_t.
279 (struct _Jv_Mutex_t): New recursive implementation.
280 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
281 _Jv_HaveCondDestroy: Never define this for posix-threads.
282 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
283 (_Jv_CondNotifyAll): Ditto.
284 (_Jv_MutexLock): Ditto.
285 (_Jv_MutexUnlock): Ditto.
286 (_Jv_MutexInit): Changed to reflect new mutex implementation.
287 (_Jv_MutexDestroy): Ditto.
288 (_Jv_CondDestroy): Removed.
289 (_Jv_PthreadGetMutex): Removed.
290 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
291 error. Add a FIXME about this.
292 (_Jv_CondNotifyAll): Ditto.
293 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
294 _JV_NOT_OWNER on other errors. Add FIXME.
295
296 2000-03-26 Tom Tromey <tromey@cygnus.com>
297
298 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
299 set, throw it.
300 (call): Don't throw exception here.
301
302 2000-03-26 Tom Tromey <tromey@cygnus.com>
303
304 * java/lang/mprec.h: Use SIZEOF_VOID_P.
305 * interpret.cc: Use SIZEOF_VOID_P.
306 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
307 (_Jv_loadLong): Likewise.
308 (_Jv_storeDouble): Likewise.
309 * configure: Rebuilt.
310 * configure.in: Check size of void*.
311
312 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
313
314 2000-03-26 Hans Boehm <boehm@acm.org>
315
316 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
317 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
318 machine.
319 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
320 __IEEE_LITTLE_ENDIAN appropriately on IA64.
321 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
322 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
323 case.
324 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
325 (FFI_RAW_SIZE): Likewise.
326 (_Jv_InterpMethod::ncode): Use them.
327 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
328 STORED): Define differently on a 64 bit machine.
329 (continue1): Use ffi_java_raw_call when appropriate.
330
331 2000-03-24 Warren Levy <warrenl@cygnus.com>
332
333 * java/math/BigInteger.java(divide): Handle the special case when
334 dividing by 1 and the high bit of the dividend is set.
335 (setShiftRight): Handle case when count == 0.
336
337 2000-03-24 Warren Levy <warrenl@cygnus.com>
338
339 * java/awt/Font.java(isBold): Fix syntax error.
340 (isItalic): ditto.
341 * java/awt/Frame.java(postEvent): ditto.
342 * java/awt/Menu.java(postEvent): ditto.
343 * java/awt/MenuBar.java(postEvent): ditto.
344 * java/awt/Toolkit.java(init): Included a stub.
345
346 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
347
348 * java/awt/Event.java: Add all the event type constants.
349 (Event): Implemented constructors.
350 (controlDown): Implemented.
351 (metaDown): Implemented.
352 (paramString): Stubbed.
353 (shiftDown): Implemented.
354 (toString): Implemented.
355 (translate): Implemented.
356
357 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
358
359 * java/lang/natClass.cc (isInstance): Initialize `this'.
360 (isAssignableFrom): Initialize `this' and `klass'.
361 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
362 implemented by any loaded class, so return false.
363 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
364 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
365
366 2000-03-19 Warren Levy <warrenl@cygnus.com>
367
368 * java/awt/Color.java: Specified java.io for Serializable.
369 * java/awt/Toolkit.java: Imported java.net.URL.
370
371 2000-03-19 Warren Levy <warrenl@cygnus.com>
372
373 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
374
375 2000-03-16 Warren Levy <warrenl@cygnus.com>
376
377 * java/awt/Color.java: New file.
378 * java/awt/Graphics.java: New file.
379 * java/awt/Image.java: New file.
380 * java/awt/Paint.java: New file.
381 * java/awt/PaintContext.java: New file.
382 * java/awt/Transparency.java: New file.
383 * java/util/Collection.java: New file.
384 * java/util/Comparator.java: New file.
385 * java/util/Iterator.java: New file.
386 * java/util/List.java: New file.
387 * java/util/ListIterator.java: New file.
388 * Makefile.am: Added above new files.
389 * Makefile.in: Rebuilt.
390
391 * java/awt/Font.java (PLAIN): New field.
392 (BOLD): New field.
393 (ITALIC): New field.
394 (ROMAN_BASELINE): New field.
395 (CENTER_BASELINE): New field.
396 (HANGING_BASELINE): New field.
397 (name): New field.
398 (style): New field.
399 (size): New field.
400 (pointSize): New field.
401 (Font): Implemented constructor.
402 (isPlain): Implemented method.
403 (isBold): Implemented method.
404 (isItalic): Implemented method.
405 (getName): Implemented method.
406 (getStyle): Implemented method.
407 (getSize): Implemented method.
408 (getSize2D): Implemented method.
409 (decode): Stubbed.
410 * java/awt/Frame.java (getFont): Stubbed.
411 (postEvent): Stubbed.
412 (remove): Stubbed.
413 * java/awt/Menu.java (postEvent): Stubbed.
414 * java/awt/MenuBar.java (getFont): Stubbed.
415 (postEvent): Stubbed.
416 * java/awt/Toolkit.java (getImage): Added abstract method.
417
418 2000-03-15 Tom Tromey <tromey@cygnus.com>
419
420 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
421
422 * prims.cc (win32_exception_handler): Reformatted.
423
424 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
425 (_Jv_HaveMutexDestroy): Likewise.
426
427 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
428
429 * java/io/natFileDescriptorWin32.cc: New file.
430 * java/io/natFileWin32.cc: New file.
431 * java/net/natInetAddress.cc: Added conditional inclusion of
432 Windows / Winsock headers.
433 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
434 inclusion of Windows / Winsock headers.
435 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
436 Windows / Winsock headers.
437 * include/win32-signal.h: New file.
438 * include/win32-threads.h: New file.
439 * win32-threads.cc: New file.
440 * exception.cc (win32_get_restart_frame): New function.
441 * prims.cc (win32_exception_handler): New function.
442 (main_init) Performs Winsock initialisation.
443 (main_init) Installs exeception handler.
444
445 2000-03-14 Tom Tromey <tromey@cygnus.com>
446
447 * jni.cc (mangled_name): Fixed assertion.
448 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
449 turned assert into actual failure.
450
451 2000-03-09 Warren Levy <warrenl@cygnus.com>
452
453 * java/security/Key.java(serialVersionUID): Set to 0 for now.
454 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
455 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
456
457 2000-03-09 Warren Levy <warrenl@cygnus.com>
458
459 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
460 * java/security/DigestException.java: New file.
461 * java/security/GeneralSecurityException.java: New file.
462 * java/security/InvalidAlgorithmParameterException.java: New file.
463 * java/security/InvalidKeyException.java: New file.
464 * java/security/InvalidParameterException.java: New file.
465 * java/security/Key.java: New file.
466 * java/security/KeyException.java: New file.
467 * java/security/KeyPair.java: New file.
468 * java/security/KeyPairGenerator.java: New file.
469 * java/security/KeyPairGeneratorSpi.java: New file.
470 * java/security/NoSuchProviderException.java: New file.
471 * java/security/PrivateKey.java: New file.
472 * java/security/Provider.java: New file.
473 * java/security/PublicKey.java: New file.
474 * java/security/SecureRandom.java: New file.
475 * java/security/Security.java: New file.
476 * java/security/Signature.java: New file.
477 * java/security/SignatureException.java: New file.
478 * java/security/interfaces/DSAKey.java: New file.
479 * java/security/interfaces/DSAParams.java: New file.
480 * java/security/interfaces/DSAPrivateKey.java: New file.
481 * java/security/interfaces/DSAPublicKey.java: New file.
482 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
483 * java/security/interfaces/RSAPrivateKey.java: New file.
484 * java/security/interfaces/RSAPublicKey.java: New file.
485 * java/security/spec/AlgorithmParameterSpec.java: New file.
486 * java/security/spec/InvalidKeySpecException.java: New file.
487 * java/security/spec/InvalidParameterSpecException.java: New file.
488 * java/security/spec/KeySpec.java: New file.
489 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
490 * java/security/spec/RSAPrivateKeySpec.java: New file.
491 * java/security/spec/RSAPublicKeySpec.java: New file.
492 * Makefile.am: Added above java.security files.
493 * Makefile.in: Rebuilt.
494
495 * java/security/MessageDigest.java: Rewritten.
496 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
497
498 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
499
500 * README: Updated.
501
502 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
503
504 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
505 _Jv_PrepareConstantTimeTables.
506 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
507 classes should have an IDT, so don't return if klass is an array
508 class.
509
510 2000-03-08 Tom Tromey <tromey@cygnus.com>
511
512 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
513 of `void' to be created.
514
515 2000-03-08 Warren Levy <warrenl@cygnus.com>
516
517 * java/math/BigInteger.java(signum): Handle zero properly.
518
519 2000-03-07 Tom Tromey <tromey@cygnus.com>
520
521 * All files: Updated copyright information.
522 * COPYING: New file.
523 * COPYING.LIB: Removed.
524 * LIBGCJ_LICENSE: We now use GPL + special exception.
525
526 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
527
528 * resolve.cc (_Jv_SearchMethodInClass): New function.
529 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
530 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
531
532 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
533
534 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
535 (struct _Jv_ifaces): New declaration.
536 JV_CLASS: New macro definition.
537 (getComponentType): Relocate below isArray() for inlining.
538 (getModifiers): Declare `inline'.
539 (getSuperclass): Ditto.
540 (isArray): Ditto.
541 (isPrimitive): Ditto.
542 (_Jv_IsAssignableFrom): New prototype.
543 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
544 linkage.
545 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
546 Check for JV_STATE_DONE before invoking initializeClass().
547 (_Jv_PrepareConstantTimeTables): New prototype.
548 (_Jv_GetInterfaces): Ditto.
549 (_Jv_GenerateITable): Ditto.
550 (_Jv_GetMethodString): Ditto.
551 (_Jv_AppendPartialITable): Ditto.
552 (_Jv_FindIIndex): Ditto.
553 depth, ancestors, idt: New class fields.
554
555 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
556 inline function `_Jv_IsAssignableFrom'. Use that function.
557 (isInstance): Declare `inline'.
558 (initializeClass): Get lock on class before checking `state'. Unlock
559 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
560 the lock held.
561 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
562 (_Jv_IsAssignableFrom): New inline function. Test assignability using
563 class->depth and ancestor table.
564 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
565 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
566 _Jv_IsAssignableFrom.
567 (_Jv_CheckArrayStore): Ditto.
568 (_Jv_LookupInterfaceMethodIdx): New function.
569 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
570 (_Jv_PrepareConstantTimeTables): New function.
571 (_Jv_IndexOf): Ditto.
572 (_Jv_GetInterfaces): Ditto.
573 (_Jv_GenerateITable): Ditto.
574 (_Jv_GetMethodString): Ditto.
575 (_Jv_AppendPartialITable): Ditto.
576 iindex_mutex, iindex_mutex_initialized: New static fields.
577 (_Jv_FindIIndex): New function.
578
579 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
580
581 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
582 (_Jv_CheckArrayStore): Ditto.
583 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
584 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
585 Moved to gcj/array.h.
586 (_Jv_Realloc): New function.
587
588 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
589
590 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
591 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
592 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
593 JvNewDoubleArray): Implementations moved from prims.cc and
594 declared `inline'.
595
596 * gcj/javaprims.h (_Jv_Realloc): Prototype.
597
598 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
599
600 2000-03-06 Tom Tromey <tromey@cygnus.com>
601
602 * jni.cc (MARK_NONE): New define.
603 (MARK_USER): Likewise.
604 (MARK_SYSTEM): Likewise.
605 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
606 smaller.
607 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
608 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
609 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
610 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
611 argument.
612 (call): Use MARK_SYSTEM.
613 (_Jv_GetJNIEnvNewFrame): New function.
614 (_Jv_LookupJNIMethod): New function.
615 (_Jv_JNI_PopSystemFrame): New function.
616 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
617
618 2000-03-05 Tom Tromey <tromey@cygnus.com>
619
620 Fix for PR libgcj/43:
621 * include/Makefile.in: Rebuilt.
622 * include/Makefile.am (include_HEADERS): New define.
623
624 2000-03-05 Anthony Green <green@redhat.com>
625
626 * gcj/javaprims.h ("Java"): Remove FirstThread.
627
628 * configure.host: Fix __NO_MATH_INLNES botch.
629
630 * Makefile.in: Rebuilt.
631 * Makefile.am (nat_source_files): Move natFirstThread.cc.
632 (gnu/gcj/runtime/FirstThread.h): Moved.
633 (ordinary_java_source_files): Move FirstThread.java.
634 * prims.cc: Deal with FirstThread movement.
635 (JvRunMain): Ditto.
636 (_Jv_RunMain): Ditto.
637
638 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
639 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
640
641 2000-03-05 Warren Levy <warrenl@cygnus.com>
642
643 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
644 Handle null addresses.
645
646 2000-03-04 Anthony Green <green@redhat.com>
647
648 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
649 See PR gcj/151.
650
651 2000-03-04 Anthony Green <green@redhat.com>
652
653 * configure: Rebuilt.
654 * configure.in (ZLIBTESTSPEC): New macro.
655 (GCTESTSPEC): New macro.
656 (LIBGCJTESTSPEC): New macro.
657 * libgcj-test.spec.in: New file.
658
659 2000-03-02 Tom Tromey <tromey@cygnus.com>
660
661 * include/java-interp.h: Don't include MethodInvocation.h.
662 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
663 * Makefile.in: Rebuilt.
664 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
665 (ordinary_java_source_files): Don't mention
666 MethodInvocation.java.
667 * gnu/gcj/runtime/MethodInvocation.java: Removed.
668 * interpret.cc (MethodInvocation::continue1): Removed.
669 (run): Handle exceptions here.
670 * java/lang/ClassLoader.java (defineClass1, defineClass2):
671 Removed.
672 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
673 here.
674 (defineClass2): Removed.
675
676 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
677 Removed.
678 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
679 exceptions here.
680 (hack_call): Removed.
681
682 * java/lang/Class.h (Class): Removed hackRunInitializers,
683 hackTrampoline.
684 * java/lang/natClass.cc (hackRunInitializers): Removed.
685 (initializeClass): Catch exceptions here.
686 Include ExceptionInInitializerError.h.
687 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
688 Removed.
689
690 * java/lang/Object.h (Object): Don't mention hack12_6.
691 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
692 here.
693 * java/lang/Object.java (hack12_6): Removed.
694
695 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
696 (start): Use run_, not run__.
697 * java/lang/Thread.java (run_): Renamed from run__; old run_
698 removed.
699
700 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
701 (_Jv_JNI_EnsureLocalCapacity): Likewise.
702 (_Jv_JNI_DefineClass): Likewise.
703 (_Jv_JNI_ThrowNew): Likewise.
704 (_Jv_JNI_AllocObject): Likewise.
705 (_Jv_JNI_GetAnyMethodID): Likewise.
706 (_Jv_JNI_CallAnyMethodV): Likewise.
707 (_Jv_JNI_CallAnyMethodA): Likewise.
708 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
709 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
710 (_Jv_JNI_GetAnyFieldID): Likewise.
711 (_Jv_JNI_NewString): Likewise.
712 (_Jv_JNI_NewStringUTF): Likewise.
713 (_Jv_JNI_GetStringUTFChars): Likewise.
714 (_Jv_JNI_NewObjectArray): Likewise.
715 (_Jv_JNI_NewPrimitiveArray): Likewise.
716 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
717 (_Jv_JNI_GetStringRegion): Likewise.
718 (_Jv_JNI_GetStringUTFRegion): Likewise.
719 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
720 (_Jv_JNI_MonitorEnter): Likewise.
721 (_Jv_JNI_MonitorExit): Likewise.
722 (_Jv_JNI_ToReflectedField): Likewise.
723 (_Jv_JNI_ToReflectedMethod): Likewise.
724 (_Jv_JNI_RegisterNatives): Likewise.
725 (_Jv_JNI_AttachCurrentThread): Likewise.
726 (_Jv_JNI_DestroyJavaVM): Likewise.
727
728 2000-02-28 Mo DeJong <mdejong@cygnus.com>
729
730 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
731 error caused by the incorrect casting of a long to an int.
732
733 2000-02-28 Mo DeJong <mdejong@cygnus.com>
734
735 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
736 SIGSEV caused by use of the wrong instance variable.
737
738 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
739
740 * java/io/File.java (File(String, String)): For dirPath, treat an
741 empty String the same as `null'.
742
743 2000-02-26 Anthony Green <green@cygnus.com>
744
745 * gnu/gcj/io/MimeTypes.java: Test for null.
746
747 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
748 (JNI_GetCreatedJavaVMs): Remove compiler warning.
749
750 * java/net/URLConnection.java: Update copyright notice.
751
752 2000-02-25 Tom Tromey <tromey@cygnus.com>
753
754 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
755 `INTERPRETER'.
756
757 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
758
759 * java/net/URLConnection.java (initializeDateFormats): New
760 private method.
761 (getHeaderFieldDate): Call initializeDateFormats if required.
762 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
763 these.
764 Fix for PR libgcj/38.
765
766 2000-02-24 Warren Levy <warrenl@cygnus.com>
767
768 * java/math/BigInteger.java(ival): Made private.
769 (words): Ditto.
770 (neg): Ditto.
771
772 2000-02-20 Anthony Green <green@cygnus.com>
773
774 * Makefile.in: Rebuilt.
775 * Makefile.am (ordinary_java_source_files): Add
776 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
777
778 * scripts/MakeDefaultMimeTypes.java: New file.
779 * scripts/mime.types: New file.
780 * scripts/classes.pl: Moved from top level.
781 * classes.pl: Moved to scripts directory.
782
783 * java/net/URLConnection.java: Implement guessContentTypeFromName.
784
785 * gnu/gcj/io/MimeTypes.java: New file.
786 * gnu/gcj/io/DefaultMimeTypes.java: New file.
787
788 2000-02-20 Tom Tromey <tromey@cygnus.com>
789
790 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
791
792 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
793
794 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
795 (setSize): ditto.
796
797 2000-02-18 Tom Tromey <tromey@cygnus.com>
798
799 * include/jvm.h (_Jv_GetJavaVM): Declare.
800 * include/java-interp.h (_Jv_GetFirstMethod): New function.
801 (_Jv_MethodBase::get_method): New method.
802 (_Jv_JNIMethod::set_function): New method.
803 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
804 (_Jv_JNI_RegisterNatives): New function.
805 (_Jv_JNIFunctions): Updated for new functions.
806 (_Jv_GetJavaVM): New function.
807 (_Jv_JNI_GetJavaVM): Use it. Now static.
808 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
809 is already a Java thread but does not have a JNIEnv yet.
810
811 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
812 function.
813
814 2000-02-17 Tom Tromey <tromey@cygnus.com>
815
816 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
817 Fixes PR gcj/152.
818
819 2000-02-16 Tom Tromey <tromey@cygnus.com>
820
821 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
822
823 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
824 (_Jv_JNI_NewObject): Likewise.
825 (_Jv_JNI_NewObjectA): Likewise.
826 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
827 as "return" type to _Jv_CallAnyMethodA.
828 (_Jv_JNI_CallAnyMethodA): Likewise.
829 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
830
831 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
832 findClass.
833
834 2000-02-15 Tom Tromey <tromey@cygnus.com>
835
836 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
837 jni_arg_types.
838 (init_cif): Added `rtype_p' argument.
839 * include/java-interp.h (class _Jv_MethodBase): Added
840 args_raw_size.
841 (class _Jv_InterpMethod): Removed args_raw_size.
842 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
843 * jni.cc (call): Pass JNIEnv and (for static methods only) the
844 class pointer as well as the ordinary arguments.
845
846 * jni.cc (mangled_name): Skip leading `(' in signature.
847
848 * jni.cc (add_char): Added missing `else'.
849
850 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
851 fails.
852
853 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
854
855 * NEWS: Updated.
856
857 * java/lang/natRuntime.cc (_load): Include library path with
858 exception message.
859
860 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
861 property.
862
863 * java/lang/natThread.cc (dumpStack): Removed.
864 * java/lang/Thread.java (dumpStack): Implemented.
865
866 2000-02-15 Tom Tromey <tromey@cygnus.com>
867
868 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
869 with `lib' for loadLibrary. Fixes PR gcj/150.
870
871 2000-02-14 Warren Levy <warrenl@cygnus.com>
872
873 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
874
875 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
876 New constructor.
877 (min): Implemented.
878 (max): Implemented.
879 (modPow): Rewritten to not use the naive, slow, brute force approach.
880 (isProbablePrime): Implemented.
881 (testBit): Implemented.
882 (flipBit): Implemented.
883 (getLowestSetBit): Implemented.
884
885 2000-02-16 Anthony Green <green@redhat.com>
886
887 * configure.host: Use the same options for i386 and i486 as we do
888 for i586 and i686.
889
890 2000-02-12 Tom Tromey <tromey@cygnus.com>
891
892 * java/io/File.java (createTempFile): Use low bits from counter,
893 not high bits.
894
895 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
896
897 * THANKS: More thanks.
898
899 2000-02-11 Tom Tromey <tromey@cygnus.com>
900
901 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
902 astore instruction. From Hans Boehm.
903
904 2000-02-11 Warren Levy <warrenl@cygnus.com>
905
906 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
907 (BigInteger(String)): New constructor.
908 (not): Rewritten using version from Kawa's BitOps class.
909 (valueOf): New private methods from Kawa's BitOps class.
910 (swappedOp): ditto.
911 (bitOp): ditto.
912 (setBitOp): ditto.
913 (and): Implemented.
914 (or): Implemented.
915 (xor): Implemented.
916 (andNot): Implemented.
917 (clearBit): Implemented.
918 (setBit): Implemented.
919 (bitCount): Implemented.
920 (toByteArray): Implemented.
921
922 2000-02-11 Tom Tromey <tromey@cygnus.com>
923
924 * java/io/File.java (nextValue): Now synchronized.
925
926 2000-02-10 Tom Tromey <tromey@cygnus.com>
927
928 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
929 * java/io/FileDescriptor.java (EXCL): New static field.
930 * java/io/File.java (tmpdir): New static field.
931 (createTempFile): New method.
932 (nextValue): New method.
933 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
934 property.
935
936 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
937 (jboolean): Declare as an attributed int, not a bool.
938 (_Jv_func): Declare differently for C.
939
940 * gnu/gcj/jni/natNativeThread.cc: New file.
941 * gnu/gcj/jni/NativeThread.java: New file.
942 * java/lang/Thread.java (data): Now a RawData.
943 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
944 Declare.
945 * Makefile.in: Rebuilt.
946 * Makefile.am (java/lang/Thread.h): New target.
947 (ordinary_java_source_files): Added NativeThread.java.
948 (nat_source_files): Added natNativeThread.cc.
949 * java/lang/natThread.cc: Include <jni.h>
950 (struct natThread): Added `jni_env' field.
951 (_Jv_GetCurrentJNIEnv): New function.
952 (_Jv_SetCurrentJNIEnv): Likewise.
953 (initialize_native): Initialize jni_env.
954 Include RawData.h.
955 * jni.cc (ThreadGroupClass): New define.
956 (_Jv_JNI_InvokeFunctions): New structure.
957 (JNI_GetCreatedJavaVMs): New function.
958 (the_vm): New global.
959 (JNI_GetDefaultJavaVMInitArgs): New function.
960 Include NativeThread.h.
961 (NativeThreadClass): New define.
962 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
963 (_Jv_JNI_DestroyJavaVM): New function.
964 (_Jv_JNI_AttachCurrentThread): New function.
965 (_Jv_JNI_DetachCurrentThread): New function.
966 (_Jv_JNI_GetEnv): New function.
967 (JNI_CreateJavaVM): New function.
968 (_Jv_JNI_GetJavaVM): New function.
969 (_Jv_JNIFunctions): Added entry for GetJavaVM.
970 * include/jni.h (JavaVMAttachArgs): New structure.
971 (JNI_EDETACHED): New define.
972 (JNI_EVERSION): Likewise.
973 (JavaVM): Define properly.
974 (struct JNIInvokeInterface): New structure.
975 (class _Jv_JavaVM): New class.
976 (JNI_OnLoad, JNI_OnUnload): Declare.
977 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
978 JNI_GetCreatedJavaVMs): Declare.
979 (JavaVMInitArgs): New typedef.
980 (JavaVMOption): Likewise.
981 (JNI_ERR): New define.
982 (JNI_OK): Likewise.
983
984 2000-02-10 Andrew Haley <aph@cygnus.com>
985
986 * interpret.cc: Don't include fdlibm.h.
987 Replace #if with #ifdef throughout.
988 Declare extern __ieee754_fmod.
989 (continue1): Remove op_getfield, op_getstatic, op_putfield,
990 op_putstatic insns.
991 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
992 Search class hierarchy for superclass vtable.
993
994 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
995 off the end of a pointer list.
996
997 * java/lang/natThread.cc (stop): Don't abort, throw an exception
998 instead.
999 (suspend): Ditto.
1000
1001 2000-02-09 Tom Tromey <tromey@cygnus.com>
1002
1003 * java/lang/natRuntime.cc (_load): Call add_library.
1004 (loadLibraryInternal): Likewise.
1005
1006 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
1007 iconv_close when handle is not NULL. Thanks to Andrew Haley.
1008 (Output_iconv::finalize): Likewise.
1009
1010 2000-02-08 Tom Tromey <tromey@cygnus.com>
1011
1012 * java/util/Properties.java (setProperty): New method.
1013 (store): New method.
1014
1015 2000-02-07 Tom Tromey <tromey@cygnus.com>
1016
1017 * java/lang/Runtime.java (_load): Declare.
1018 (load, loadLibrary): Wrote in terms of _load.
1019 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
1020 library.
1021 (loadLibrary): Likewise.
1022 Include <jni.h>.
1023 (_load): New method.
1024 (loadLibrary, load): Removed.
1025
1026 * jni.cc (ThrowableClass): New define.
1027 (_Jv_JNI_Throw): Check argument.
1028 (_Jv_JNI_ThrowNew): Likewise.
1029 (wrap_value): Don't wrap object if it is NULL.
1030 (_Jv_JNI_DefineClass): Use wrap_value.
1031 (_Jv_JNI_FindClass): Likewise.
1032 (_Jv_JNI_GetSuperclass): Likewise.
1033 (_Jv_JNI_ExceptionOccurred): Likewise.
1034 (_Jv_JNI_AllocObject): Likewise.
1035 (_Jv_JNI_GetObjectClass): Likewise.
1036 (_Jv_JNI_NewString): Likewise.
1037 (_Jv_JNI_NewStringUTF): Likewise.
1038 (_Jv_JNI_NewObjectArray): Likewise.
1039 (_Jv_JNI_GetObjectArrayElement): Likewise.
1040 (_Jv_JNI_NewPrimitiveArray): Likewise.
1041 (_Jv_JNI_ToReflectedField): Likewise.
1042 (_Jv_JNI_ToReflectedMethod): Likewise.
1043 (_Jv_JNI_AllocObject): Check argument.
1044 (_Jv_JNI_NewObjectV): Likewise.
1045 (_Jv_JNI_NewObject): Likewise.
1046 (_Jv_JNI_NewObjectA): Likewise.
1047 (_Jv_JNI_GetObjectClass): Likewise.
1048 (_Jv_JNI_GetField): Likewise.
1049 (_Jv_JNI_SetField): Likewise.
1050
1051 * interpret.cc (PUSHL): Don't use expression statement.
1052 (PUSHD): Likewise.
1053 (LOADL): Likewise.
1054 (STOREL): Likewise.
1055
1056 * jni.cc (add_char): Conditional on INTERPRETER.
1057 (mangled_name): Likewise.
1058 (call): Likewise.
1059 * include/java-interp.h (class _Jv_MethodBase): Conditional on
1060 INTERPRETER.
1061 (class _Jv_JNIMethod): Likewise.
1062
1063 2000-02-04 Warren Levy <warrenl@cygnus.com>
1064
1065 * Makefile.am: Added MPN.java and BigInteger.java.
1066 * Makefile.in: Rebuilt.
1067 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
1068 <per@bothner.com>.
1069 * java/math/BigInteger.java: New file. Based primarily on
1070 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
1071
1072 2000-02-04 Tom Tromey <tromey@cygnus.com>
1073
1074 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
1075 pointers.
1076 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
1077 if the method is native.
1078 * resolve.cc (ncode): Don't handle native methods.
1079 (_Jv_JNIMethod::ncode): New method.
1080 (_Jv_PrepareClass): Handle native methods.
1081 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
1082 Include AbstractMethodError.h.
1083 (add_char): New function.
1084 (mangled_name): Likewise.
1085 * include/java-interp.h (class _Jv_JNIMethod): New class.
1086 (class _Jv_MethodBase): New class.
1087 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
1088 (_Jv_InterpClass): Changed `interpreted_methods' field to type
1089 `_Jv_MethodBase'.
1090
1091 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
1092 * java/lang/natRuntime.cc (libraries_size, libraries_count,
1093 libraries): New globals.
1094 (add_library): New function.
1095 (_Jv_FindSymbolInExecutable): New function.
1096
1097 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
1098 Now static.
1099
1100 2000-02-04 Andrew Haley <aph@cygnus.com>
1101
1102 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
1103 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
1104 * java/lang/natThrowable.cc (printRawStackTrace): Rename
1105 printStackTrace to printRawStackTrace.
1106
1107 2000-02-03 Tom Tromey <tromey@cygnus.com>
1108
1109 * java/util/Calendar.java (toString): New method.
1110 * java/util/SimpleTimeZone.java (clone): New method.
1111 (toString): New method.
1112 * java/util/TimeZone.java (clone): New method.
1113 * java/text/SimpleDateFormat.java (clone): New method.
1114 * java/text/NumberFormat.java (clone): New method.
1115 (equals): New method.
1116 * java/text/Format.java (clone): New method.
1117 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
1118 constructor.
1119 (clone): New method.
1120 * java/text/DateFormat.java (clone): New method.
1121 * java/text/Collator.java (clone): New method.
1122
1123 2000-02-03 Tom Tromey <tromey@cygnus.com>
1124
1125 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
1126 method.
1127
1128 2000-02-01 Tom Tromey <tromey@cygnus.com>
1129
1130 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
1131 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
1132 constructing the closure if the function is native.
1133 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
1134 a template function, #if'd out, or static.
1135 Include <java-interp.h>.
1136
1137 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
1138
1139 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
1140
1141 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
1142 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
1143 `locals == NULL'.
1144 (wrap_value): New function.
1145 (_Jv_JNI_CallAnyMethodV): Use it.
1146 (_Jv_JNI_CallAnyMethodA): Likewise.
1147 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
1148 (_Jv_JNI_GetStaticField): Likewise.
1149
1150 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
1151 (_Jv_JNI_GetStaticField): Likewise.
1152
1153 2000-01-31 Tom Tromey <tromey@cygnus.com>
1154
1155 * prims.cc (_Jv_MallocUnchecked): New function.
1156 (main_init): Call _Jv_JNI_Init.
1157 * include/jvm.h (_Jv_MallocUnchecked): Declare.
1158 (_Jv_JNI_Init): Declare.
1159 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
1160 <string.h>.
1161 (_Jv_JNI_NewGlobalRef): New function.
1162 (_Jv_JNI_DeleteGlobalRef): New function.
1163 (_Jv_JNI_DeleteLocalRef): New function.
1164 (_Jv_JNI_conversion_call): Initialize and clear local reference
1165 frame.
1166 (_Jv_JNI_NewLocalRef): New function.
1167 (struct _Jv_JNI_LocalFrame): New structure.
1168 (_Jv_JNI_PushLocalFrame): New function.
1169 (_Jv_JNI_EnsureLocalCapacity): New function.
1170 (FRAME_SIZE): New define.
1171 (_Jv_JNI_GetStringChars): Mark string, not characters.
1172 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
1173 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
1174 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
1175 elements.
1176 (_Jv_JNI_DefineClass): Make return value a local ref.
1177 (_Jv_JNI_FindClass): Likewise.
1178 (_Jv_JNI_GetSuperclass): Likewise.
1179 (_Jv_JNI_ExceptionOccurred): Likewise.
1180 (_Jv_JNI_AllocObject): Likewise.
1181 (_Jv_JNI_GetObjectClass): Likewise.
1182 (_Jv_JNI_CallAnyMethodV): Likewise.
1183 (_Jv_JNI_NewString): Likewise.
1184 (_Jv_JNI_NewStringUTF): Likewise.
1185 (_Jv_JNI_NewObjectArray): Likewise.
1186 (_Jv_JNI_GetObjectArrayElement): Likewise.
1187 (_Jv_JNI_ToReflectedField): Likewise.
1188 (_Jv_JNI_ToReflectedMethod): Likewise.
1189 (_Jv_JNIFunctions): Updated table for new functions.
1190 (_Jv_JNI_Init): New function.
1191 (mark_for_gc): Wrote.
1192 (unmark_for_gc): Wrote.
1193 * include/jni.h (struct JNINativeInterface): Removed name from
1194 PopLocalFrame parameter.
1195 (class _Jv_JNIEnv): Added `locals' field.
1196
1197 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
1198
1199 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
1200 (write): Ditto.
1201
1202 2000-01-30 Tom Tromey <tromey@cygnus.com>
1203
1204 * include/config.h.in: Rebuilt.
1205 * acconfig.h (HAVE_ICONV): Define.
1206 * configure: Rebuilt.
1207 * configure.in: Check for `iconv' function.
1208 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
1209 no specific encoder exists.
1210 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
1211 no specific encoder exists.
1212 * Makefile.in: Rebuilt.
1213 * Makefile.am (convert_source_files): Mention Input_iconv.java and
1214 Output_iconv.java.
1215 (nat_source_files): Added natIconv.cc.
1216 * gnu/gcj/convert/natIconv.cc: New file.
1217 * gnu/gcj/convert/Input_iconv.java: New file.
1218 * gnu/gcj/convert/Output_iconv.java: New file.
1219
1220 2000-01-28 Tom Tromey <tromey@cygnus.com>
1221
1222 * Makefile.in: Rebuilt.
1223 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
1224
1225 2000-01-26 Tom Tromey <tromey@cygnus.com>
1226
1227 * gcj/method.h (JvNumMethods): Moved from Class.h.
1228 (JvGetFirstMethod): Likewise.
1229 * java/lang/Class.h (Object): Updated decl of
1230 _Jv_JNI_ToReflectedField.
1231 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
1232 * Makefile.in: Rebuilt.
1233 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
1234 argument of _Jv_JNI_ToReflectedField.
1235 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
1236 as a friend.
1237 (java/lang/reflect/Method.h): Likewise.
1238 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
1239 __GCJ_JNI_IMPL__.
1240 (jweak): New typedef.
1241 (struct JNINativeInterface): Correctly declare remaining entries.
1242 * jni.cc: Include Class.h, ClassLoader.h.
1243 (_Jv_JNI_FindClass): New function.
1244 (_Jv_JNI_DefineClass): New function.
1245 (_Jv_JNI_conversion_call): New function.
1246 (_Jv_JNI_FindClass): Use current class loader to find class.
1247 (_Jv_JNI_ExceptionCheck): New function.
1248 (_Jv_JNI_FromReflectedField): Now static.
1249 (MethodClass): New define.
1250 (_Jv_JNI_FromReflectedMethod): New function.
1251 (_Jv_JNI_ToReflectedMethod): Likewise.
1252 Include Method.h.
1253 (_Jv_JNI_IsAssignableFrom): Renamed.
1254 (_Jv_JNI_GetStringRegion): New function.
1255 Include StringIndexOutOfBoundsException.h.
1256 (_Jv_JNI_GetStringUTFRegion): New function.
1257 (_Jv_JNIFunctions): Updated for new functions.
1258 (_Jv_JNI_GetPrimitiveArrayCritical): New function
1259 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
1260 (_Jv_JNI_GetStringCritical): New function.
1261 (_Jv_JNI_ReleaseStringCritical): Likewise.
1262 (get_throwable): Removed.
1263 (GCJ_JV_JNIENV_FRIEND): Removed.
1264 (__GCJ_JNI_IMPL__): Define.
1265 Include method.h.
1266
1267 * resolve.cc (get_ffi_type_from_signature): Handle case where
1268 boolean is an int.
1269
1270 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
1271
1272 * interpret.cc (run): Don't call println.
1273 Don't include PrintStream.h.
1274
1275 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
1276 nameIndex. Use "jint" as type for boffset.
1277 * java/lang/Class.h (struct _Jv_Method): Made accflags a
1278 _Jv_ushort.
1279 (Class): Likewise. Also changed type of method_count,
1280 vtable_method_count, size_in_bytes, field_count,
1281 static_field_count, interface_count.
1282 * gcj/array.h (__JArray): Made `length' a const jsize, not an
1283 int.
1284
1285 2000-01-21 Tom Tromey <tromey@cygnus.com>
1286
1287 * java/lang/reflect/natConstructor.cc (newInstance): Use
1288 _Jv_CallAnyMethodA.
1289 * include/jvm.h: Declare _Jv_CallAnyMethodA.
1290 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
1291 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
1292 Include <jni.h>.
1293 (COPY): Removed.
1294 (invoke): Use _Jv_CallAnyMethodA.
1295 (VAL): Redefined.
1296 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
1297 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
1298 functions.
1299 (struct _Jv_Method): Added getNextMethod method.
1300 (JvNumMethods): New function.
1301 (JvGetFirstMethod): Likewise.
1302 * gcj/field.h (JvGetFirstStaticField): New function.
1303 (JvNumStaticFields): Likewise.
1304 (getNextField): Renamed from getNextInstanceField.
1305 (struct _Jv_Field): New method getClass.
1306 * jni.cc: Wrote many new functions.
1307 * include/jni.h (JNI_TRUE): Define.
1308 (JNI_FALSE): Likewise.
1309 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
1310 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
1311 jcharArray, jfloatArray, jdoubleArray): New typedefs.
1312 (jfieldID, jmethodID): Likewise.
1313 (JNI_COMMIT, JNI_ABORT): New defines.
1314 (JNINativeMethod): New struct.
1315 (struct JNINativeInterface): Correctly declared more entries.
1316 (class _Jv_JNIEnv): Added `ex' member.
1317 (JNI_VERSION_1_1): New define.
1318 (JNI_VERSION_1_2): Likewise.
1319
1320 * boehm.cc (_Jv_MarkObj): Use getNextField, not
1321 getNextInstanceField.
1322
1323 2000-01-20 Tom Tromey <tromey@cygnus.com>
1324
1325 * resolve.cc (StringClass): Removed.
1326 * defineclass.cc (StringClass): Removed.
1327
1328 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
1329
1330 * NEWS: updated.
1331
1332 2000-01-19 Tom Tromey <tromey@cygnus.com>
1333
1334 * interpret.cc (PC_REGISTER_ASM): Removed.
1335
1336 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
1337 From Bryce McKinlay.
1338
1339 * All files: Updated copyright to reflect Cygnus purchase.
1340
1341 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
1342
1343 * configure: Rebuilt.
1344 * configure.in: Recognize --disable-interpreter.
1345
1346 2000-01-18 Andrew Haley <aph@cygnus.com>
1347
1348 * name-finder.cc (lookup): Check for dladdr function.
1349 acconfig.h (HAVE_DLADDR): Add.
1350 configure.in: Check for HAVE_DLADDR
1351 configure: Rebuilt.
1352 include/config.h.in: Rebuilt.
1353
1354 2000-01-17 Andrew Haley <aph@cygnus.com>
1355
1356 * prims.cc (_Jv_RunMain): Set the name of this executable.
1357
1358 2000-01-17 Tom Tromey <tromey@cygnus.com>
1359
1360 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
1361 when backtrace can't be computed.
1362
1363 * configure: Rebuilt.
1364 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
1365
1366 * java/lang/Runtime.java (loadLibraryInternal): Declare.
1367 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
1368 (_Jv_FindClassInCache): Likewise.
1369 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
1370 (findSystemClass): Try to load class from compiled module.
1371 Include Runtime.h.
1372 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
1373 (loadLibrary): Likewise.
1374 (lt_preloaded_symbols): Define.
1375 (loadLibraryInternal): New method.
1376 * include/config.h.in: Rebuilt.
1377 * acconfig.h (USE_LTDL): Added.
1378 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
1379 (INCLUDES): Added $(INCLTDL).
1380 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
1381 (libgcj_la_LIBADD): Likewise.
1382 * aclocal.m4, configure: Rebuilt.
1383 * configure.in: Added libltdl support.
1384
1385 2000-01-15 Tom Tromey <tromey@cygnus.com>
1386
1387 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
1388
1389 2000-01-14 Andrew Haley <aph@cygnus.com>
1390
1391 * java/lang/natThrowable.cc: New file.
1392
1393 * java/lang/Throwable.java (fillInStackTrace): Make native.
1394 (printStackTrace): Call native method to do this.
1395 (Throwable): Call fillInStackTrace.
1396 (stackTrace): New variable.
1397
1398 * include/jvm.h: Add _Jv_ThisExecutable functions.
1399
1400 * prims.cc: (_Jv_execName): New variable.
1401 (catch_segv): Call fillInStackTrace.
1402 (catch_fpe): Ditto.
1403 (_Jv_ThisExecutable): New functions.
1404 (JvRunMain): Set the name of this executable.
1405
1406 * Makefile.am: Add java/lang/natThrowable.cc.
1407 Add name-finder.cc.
1408 * Makefile.in: Rebuilt.
1409
1410 * acconfig.h: Add HAVE_PROC_SELF_EXE.
1411
1412 * configure.in: Force link with __frame_state_for in
1413 FORCELIBGCCSPEC. Add new checks for backtrace.
1414 * include/config.h.in: Rebuilt.
1415
1416 * name-finder.cc: New file.
1417 * include/name-finder.h: New file.
1418
1419 2000-01-16 Anthony Green <green@cygnus.com>
1420
1421 * java/lang/StringBuffer.java (StringBuffer): Don't special case
1422 null argument.
1423
1424 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
1425
1426 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
1427
1428 2000-01-13 Tom Tromey <tromey@cygnus.com>
1429
1430 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
1431 not system loader, as initiating loader.
1432
1433 2000-01-11 Tom Tromey <tromey@cygnus.com>
1434
1435 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
1436 HP/UX. From David Scott Urban.
1437
1438 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
1439
1440 * java/lang/natMath.cc (pow): Cast args to `double', not
1441 `jdouble'.
1442 (atan2): Likewise.
1443 (IEEEremainder): Likewise.
1444 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
1445 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
1446
1447 2000-01-09 Anthony Green <green@cygnus.com>
1448
1449 * java/lang/natString.cc (init): Test for overflow condition
1450 during out of bounds check.
1451 (getChars): Throw StringIndexOutOfBoundsException, not
1452 ArrayIndexOutOfBoundsException.
1453 (getBytes): Ditto.
1454 (regionMatches): Obey case option during string comparison.
1455
1456 * configure.host (ligcj_interpreter): New variable. Enable
1457 interpreter by default on IA-32.
1458 * configure.in: Examine libgcj_interpreter.
1459 * configure: Rebuilt.
1460
1461 2000-01-07 Tom Tromey <tromey@cygnus.com>
1462
1463 * mauve-libgcj: Don't disable ClassTest.
1464
1465 * java/lang/natClass.cc (getClasses): Wrote.
1466
1467 2000-01-06 Tom Tromey <tromey@cygnus.com>
1468
1469 * java/lang/natClass.cc (_getConstructors): Correctly check
1470 whether method name is the init name.
1471 (getMethod): Look at accflags on method in `klass', not `this'.
1472
1473 2000-01-05 Tom Tromey <tromey@cygnus.com>
1474
1475 * java/lang/natClass.cc (getMethod): Compute offset relative to
1476 `klass's methods table, not `this's table.
1477
1478 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
1479 In unwrapping/widening case, check whether `k' is null, not
1480 whether it is primitive. Initialize `num' from `argelts', not
1481 `paramelts'. Correct create and pass arguments to ffi_call.
1482 Don't let presence of `this' argument affect index used to look in
1483 argument arrays.
1484 (COPY): Set appropriate element in `values' vector.
1485
1486 * java/lang/natClass.cc: Include <gcj/method.h>.
1487
1488 * java/lang/Class.h (_getMethods): Correctly declare as private,
1489 not public.
1490
1491 * java/lang/Class.h (_getMethods): Declare.
1492 * java/lang/Class.java (_getMethods): Declare.
1493 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
1494 (getDeclaredClasses): Always return empty array.
1495 (_getMethods): New method.
1496 (getMethods): Wrote.
1497 (getDeclaredMethod): Return `rmethod'.
1498 (finit_name): New global.
1499 (getDeclaredMethods): Check for finit_name.
1500 (_getMethods): Likewise.
1501 (getMethod): Only return public methods.
1502
1503 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
1504 jboolean and select correct ffi type on that basis.
1505 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
1506 Constructor call always has `void' return type.
1507
1508 2000-01-04 Tom Tromey <tromey@cygnus.com>
1509
1510 * java/lang/Class.h (getSignature): Updated.
1511 * java/lang/Class.java (getSignature): Updated.
1512 * java/lang/natClass.cc (getSignature): Added `is_constructor'
1513 argument.
1514 (getConstructor): Ensure constructor is public.
1515 (_getConstructors): Check for public-ness of constructor when
1516 `declared' is false, not when it is true.
1517
1518 2000-01-04 Warren Levy <warrenl@cygnus.com>
1519
1520 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
1521 comment.
1522 (receive): Set the sender's address in the DatagramPacket.
1523
1524 2000-01-04 Tom Tromey <tromey@cygnus.com>
1525
1526 * java/lang/reflect/natConstructor.cc (newInstance): Pass
1527 declaring class as return_type argument to
1528 _Jv_CallNonvirtualMethodA.
1529 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
1530 constructor case, create object and use it as `this' argument.
1531 * java/lang/Class.h (_getConstructors): Declare.
1532 (_getFields): Declare.
1533 * java/lang/Class.java (getConstructors): Wrote.
1534 (_getConstructors): New native method.
1535 (getDeclaredConstructors): Wrote.
1536 (_getFields): Declare new native method.
1537 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
1538 incorrect comment.
1539 (getMethod): Work correctly when class is primitive.
1540 (getDeclaredMethods): Likewise. Compute offset using `method',
1541 not `mptr'.
1542 (getDeclaredMethod): Likewise.
1543 (getConstructor): Wrote.
1544 (ConstructorClass): New define.
1545 (getDeclaredConstructor): Wrote.
1546 (_getConstructors): New method.
1547 (_getFields): New method.
1548 (getFields): Wrote.
1549
1550 * Makefile.in: Rebuilt.
1551 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
1552
1553 * prims.cc: Remove `#pragma implementation'.
1554 * gcj/array.h: Remove `#pragma interface'.
1555
1556 * prims.cc (_Jv_equaln): New function.
1557 * java/lang/Class.java (getSignature): Declare.
1558 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
1559 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
1560 resolve.cc.
1561 (getSignature): New method.
1562 (getDeclaredMethod): Wrote.
1563 (getMethod): Wrote.
1564 Include StringBuffer.h.
1565 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
1566 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
1567 a friend.
1568 (getSignature): Declare.
1569 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
1570 (_Jv_equaln): Declare.
1571 (_Jv_CallNonvirtualMethodA): Declare.
1572 * Makefile.in: Rebuilt.
1573 * Makefile.am (nat_source_files): Added natConstructor.cc.
1574 (java/lang/reflect/Constructor.h): New target.
1575 * java/lang/reflect/natConstructor.cc: New file.
1576 * java/lang/reflect/Constructor.java (newInstance): Now native.
1577 (declaringClass): Renamed from decl_class.
1578 (offset): Renamed from index.
1579 (getType): New native method.
1580 (getModifiers): Now native.
1581 (getParameterTypes): Call getType if required.
1582 (hashCode): Include hash code from declaring class.
1583 (modifiers): Removed.
1584 (toString): Call getType if required.
1585 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
1586 * java/lang/reflect/natMethod.cc (hack_call): New method.
1587 Removed `#if 0' around FFI code.
1588 Include <gnu/gcj/RawData.h>.
1589 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
1590 IllegalArgumentException when argument object and class disagree.
1591 (_Jv_GetTypesFromSignature): New function.
1592 (getType): Use it.
1593 (ObjectClass): New define.
1594 (_Jv_CallNonvirtualMethodA): New function.
1595 * java/lang/reflect/Method.java (hack_trampoline): New method.
1596 (hack_call): New native method.
This page took 0.14312 seconds and 6 git commands to generate.