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