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