* config.rpath: Add AIX 6 support.
[official-gcc.git] / libjava / ChangeLog-2006
blob91932ac1178e7122998517debbcdeaa9a866ac92
1 2006-12-22  Tom Tromey  <tromey@redhat.com>
3         * sources.am, Makefile.in: Rebuilt.
4         * java/io/natObjectInputStream.cc (allocateObject): Now method on
5         VMObjectStream.
6         (currentLoader): Removed.
7         * java/io/ObjectInputStream.java: Removed.
8         * java/io/VMObjectInputStream.java: New file.
9         * scripts/classes.pl (scan): Ignore .svn directories.
10         * gcj/javaprims.h: Updated.
12 2006-12-22  Tom Tromey  <tromey@redhat.com>
14         * testsuite/libjava.jni/register2.c: Include jni.h, not
15         register2.h.
16         * testsuite/libjava.cni/cni.exp (gcj_cni_build_headers):
17         Special-case shortfield.
19 2006-12-20  Andrew Haley  <aph@redhat.com>
21         * java/lang/natClass.cc (getDeclaredAnnotations): Call
22         ClassLoader.getDeclaredAnnotations and
23         ClassLoader.putDeclaredAnnotations.
24         * java/lang/ClassLoader.java (AnnotationsKey): New class.
25         (getDeclaredAnnotations, putDeclaredAnnotations): New.
27 2006-12-19  Andrew Haley  <aph@redhat.com>
29         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Move here
30         from include/jvm.h.
31         Add BC ABI Version 1.
32         Throw a ClassFormatError if we're not ABI-compatible.
33         (_Jv_RegisterClasses): Throw a ClassFormatError if we're not
34         ABI-compatible.
35         (_Jv_RegisterClasses_Counted): Likewise.
36         (_Jv_NewClassFromInitializer): Likewise.
37         Call Class::initializerSize to get size of initializer struct.
38         * include/jvm.h (_Jv_CheckABIVersion): Move to natClassLoader.cc.
39         * java/lang/Class.h (Class::initializerSize): New function.
41 2006-12-18  Tom Tromey  <tromey@redhat.com>
43         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_build_headers):
44         Don't use jv-scan.
46 2006-12-18  Tom Tromey  <tromey@redhat.com>
48         * HACKING: Updated.
49         * gnu/classpath/Configuration.java (CLASSPATH_VERSION): Now 0.93.
51 2006-12-15  Tom Tromey  <tromey@redhat.com>
53         * configure, Makefile.in: Rebuilt.
54         * Makefile.am (gcjh.stamp): Use JAVA_MAINTAINER_MODE.
55         * configure.ac: Added --enable-java-maintainer-mode.
57 2006-12-15  Tom Tromey  <tromey@redhat.com>
59         * testsuite/libjava.compile: Removed.
61 2006-12-15  Andrew Haley  <aph@redhat.com>
63         * Makefile.am (AM_MAKEFLAGS): Pass JAR to sub-make.
64         (libgcj_tools_la_GCJFLAGS): Pass -fsource-filename to gcj.
66 2006-12-14  Gary Benson  <gbenson@redhat.com>
68         * include/java-stack.h (stackwalker_nnl_trace_fn,
69         GetStackWalkerFirstNonNullLoader): Declare.
70         * stacktrace.cc (stackwalker_nnl_trace_fn,
71         GetStackWalkerFirstNonNullLoader): New methods.
72         * gnu/classpath/natVMStackWalker.cc
73         (firstNonNullClassLoader): New method.
74         * gnu/classpath/VMStackWalker.java
75         (firstNonNullClassLoader): Replace with native method.
77 2006-12-13  Gary Benson  <gbenson@redhat.com>
79         * stacktrace.cc (stackwalker_trace_fn,
80         GetStackWalkerCallingClass): Be less strict about caller.
81         * gnu/classpath/natVMStackWalker.cc
82         (getCallingClassLoader): New method.
83         * gnu/classpath/VMStackWalker.java
84         (getCallingClassLoader): Replace with native method.
86 2006-12-12  Tom Tromey  <tromey@redhat.com>
88         * sources.am, Makefile.in: Rebuilt.
89         * gnu/java/rmi/rmic/CompilerProcess.java: Removed.
90         * gnu/java/rmi/rmic/RMICException.java: Removed.
91         * gnu/java/rmi/rmic/Compiler.java: Removed.
92         * gnu/java/rmi/rmic/Compile_gcj.java: Removed.
93         * gnu/java/rmi/rmic/Compile_jikes.java: Removed.
94         * gnu/java/rmi/rmic/TabbedWriter.java: Removed.
95         * gnu/java/rmi/rmic/Compile_kjc.java: Removed.
96         * gnu/java/rmi/rmic/RMIC.java: Removed.
97         * Makefile.am (toolexeclib_LTLIBRARIES): Uncomment
98         libgcj-tools.la.
99         (jar_DATA): Uncomment libgcj-tools jar.
100         (libgcj_tools_la_SOURCES): Uncomment.
101         (libgcj_tools_la_GCJFLAGS): Likewise.
102         (libgcj_tools_la_LDFLAGS): Likewise.
103         (libgcj_tools_la_DEPENDENCIES): Likewise.
104         (libgcj_tools_la_LINK): Likewise.
105         (libgcj-tools-$(gcc_version).jar): Uncomment.
106         (bin_PROGRAMS): Add gappletviewer, gjarsigner, gkeytool, gjar,
107         gjavah, gnative2ascii, gorbd, grmid, gserialver, gtnameserv.
108         (gjar_SOURCES): New variable.
109         (gjar_LDFLAGS): Likewise.
110         (gjar_LINK): Likewise.
111         (gjar_LDADD): Likewise.
112         (gjar_DEPENDENCIES): Likewise.
113         (gjavah_SOURCES): Likewise.
114         (gjavah_LDFLAGS): Likewise.
115         (gjavah_LINK): Likewise.
116         (gjavah_LDADD): Likewise.
117         (gjavah_DEPENDENCIES): Likewise.
118         (gnative2ascii_SOURCES): Likewise.
119         (gnative2ascii_LDFLAGS): Likewise.
120         (gnative2ascii_LINK): Likewise.
121         (gnative2ascii_LDADD): Likewise.
122         (gnative2ascii_DEPENDENCIES): Likewise.
123         (gorbd_SOURCES): Likewise.
124         (gorbd_LDFLAGS): Likewise.
125         (gorbd_LINK): Likewise.
126         (gorbd_LDADD): Likewise.
127         (gorbd_DEPENDENCIES): Likewise.
128         (grmid_SOURCES): Likewise.
129         (grmid_LDFLAGS): Likewise.
130         (grmid_LINK): Likewise.
131         (grmid_LDADD): Likewise.
132         (grmid_DEPENDENCIES): Likewise.
133         (gserialver_SOURCES): Likewise.
134         (gserialver_LDFLAGS): Likewise.
135         (gserialver_LINK): Likewise.
136         (gserialver_LDADD): Likewise.
137         (gserialver_DEPENDENCIES): Likewise.
138         (gtnameserv_SOURCES): Likewise.
139         (gtnameserv_LDFLAGS): Likewise.
140         (gtnameserv_LINK): Likewise.
141         (gtnameserv_LDADD): Likewise.
142         (gtnameserv_DEPENDENCIES): Likewise.
143         (grmic_LDADD): Link against tools library.
144         (grmic_LDFLAGS): Changed --main.
145         (grmiregistry_LDADD): Link against tools library.
146         (grmiregistry_LDFLAGS): Changed --main.
147         (grmic_DEPENDENCIES): Updated.
148         (grmiregistry_DEPENDENCIES): Likewise.
150 2006-12-12  Tom Tromey  <tromey@redhat.com>
152         * sources.am, Makefile.in: Rebuilt.
153         * gnu/java/nio/FileLockImpl.java: New override.
154         * gnu/java/nio/SelectorProviderImpl.java: New override.
155         * gnu/java/nio/PipeImpl.java: New override.
156         * gnu/java/nio/SocketChannelSelectionKeyImpl.java: New override.
157         * gnu/java/nio/NIOSocket.java: New override.
158         * gnu/java/nio/SocketChannelSelectionKey.java: New override.
159         * java/io/FileDescriptor.java: New override.
160         * java/io/RandomAccessFile.java: New override.
161         * java/io/FileInputStream.java: New override.
162         * java/io/FileOutputStream.java: New override.
163         * configure.ac: Pass --disable-Werror, --disable-tool-wrappers to
164         Classpath configure.
165         * java/io/ObjectInputStream.java (readClassDescriptor): Don't pass
166         class loader to ObjectStreamField.
167         * java/net/DatagramSocket.java: New override.
168         * java/net/Socket.java: New override.
169         * java/net/MulticastSocket.java: New override.
170         * gnu/classpath/VMStackWalker.java (firstNonNullClassLoader): New
171         method from Classpath.
172         * java/lang/Class.java (newInstance): Fixed return type.
173         (forName): Likewise.
174         (getClasses): Likewise.
175         (getComponentType): Likewise.
176         (getConstructors): Likewise.
177         (getDeclaredClasses): Likewise.
178         (getDeclaredConstructors): Likewise.
179         (getDeclaringClass): Likewise.
180         (getInterfaces): Likewise.
181         (getSuperclass): Likewise.
182         (internalGetClasses): Genericized.
183         (getMethod): Likewise.
184         (isAssignableFrom): Likewise.
185         * java/util/zip/natDeflater.cc (getBytesWritten): Renamed.
186         (getBytesRead): Likewise.
187         * java/util/zip/Deflater.java (getBytesRead, getBytesWritten): New
188         methods.
189         (getTotalIn, getTotalOut): Rewrote.
190         * java/net/NetworkInterface.java: New override.
191         * java/lang/ClassLoader.java (defineClass): New overload from
192         Classpath.
194 2006-12-11  Gary Benson  <gbenson@redhat.com>
196         * gcj/Makefile.in: Rebuilt.
198 2006-12-11  Gary Benson  <gbenson@redhat.com>
200         * Makefile.in: Rebuilt.
201         * include/Makefile.in: Likewise.
202         * testsuite/Makefile.in: Likewise.
204 2006-12-08  Mohan Embar  <gnustuff@thisiscool.com>
206         * configure, Makefile.in: Rebuilt.
207         * configure.ac: (GCJ_FOR_ECJX) New substitution.
208         (host_exeext): Likewise.
209         (ENABLE_SHARED): New conditional,
210         * Makefile.am: Added GCJ_FOR_ECJX and GCJ_FOR_ECJX_LINK.
211         (install-exec-hook): Correctly rename ecjx to ecj1.
212         (ecjx_LINK, ecjx_LDFLAGS, ecjx_LDADD, ecjx_DEPENDENCIES): Define
213         as a function of whether we're doing a native and/or shared build.
215 2006-12-08  Mohan Embar  <gnustuff@thisiscool.com>
217         * posix-threads.cc (_Jv_ThreadUnpark): Removed.
218         (ParkHelper::unpark): Ported from _Jv_ThreadUnpark.
219         (ParkHelper::deactivate): Implemented.
220         (_Jv_ThreadPark): Removed.
221         (ParkHelper::park): Ported from _Jv_ThreadPark; moved
222         mutex locking and unlocking to inside if statement.
223         * win32-threads.cc (compare_and_exchange): New helper function.
224         (_Jv_ThreadUnpark, _Jv_ThreadPark): Removed.
225         (ParkHelper::init): Implemented.
226         (ParkHelper::init_event): Implemented.
227         (ParkHelper::deactivate): Implemented.
228         (ParkHelper::destroy): Implemented.
229         (ParkHelper::unpark): Implemented.
230         (ParkHelper::park): Implemented.
231         * java/lang/natThread.cc (initialize_native): Use ParkHelper
232         instead of POSIX synchronization constructs.
233         (finalize_native):  Likewise.
234         (interrupt): Use ParkHelper method instead of _Jv_ThreadUnpark().
235         (finish_): Use ParkHelper::deactivate().
236         * include/jvm.h (struct natThread): Use ParkHelper instead of POSIX
237         synchronization constructs.
238         * include/posix-threads.h: Include sysdep/locks.h
239         (_Jv_ThreadUnpark, _Jv_ThreadPark): Removed.
240         (ParkHelper): New struct.
241         (ParkHelper::init): Implemented.
242         (ParkHelper::destroy): Implemented.
243         * include/win32-threads.h (ParkHelper): New struct.
244         (TEXT): undefined this macro.
245         * sun/misc/natUnsafe.cc (unpark): Use ParkHelper instead of
246         _Jv_ThreadUnpark.
247         (park):  Use ParkHelper instead of _Jv_ThreadPark.
249 2006-12-08  Ben Konrath  <bkonrath@redhat.com>
251         PR libgcj/30110:
252         * Makefile.am: Add contents of classpath/external to src.zip.
253         * Makefile.in: Regenerate.
255 2006-12-07  Tom Tromey  <tromey@redhat.com>
257         PR libgcj/30076:
258         * defineclass.cc (read_fields): Sort fields here.
259         (handleFieldsEnd): Removed.
260         (handleField): Added field map argument.
261         (struct _Jv_ClassReader): Updated.
262         (handleParameterAnnotations): Use writeInt for the length.
264 2006-12-07  Gary Benson  <gbenson@redhat.com>
266         * include/java-stack.h (stackwalker_trace_fn,
267         GetStackWalkerCallingClass): Declare.
268         * stacktrace.cc (stackwalker_trace_fn,
269         GetStackWalkerCallingClass): New methods.
270         * gnu/classpath/natVMStackWalker.cc
271         (getCallingClass): Use the above.
272         * gnu/classpath/VMStackWalker.java
273         (getCallingClass): Replace with native method.
275 2006-12-06  Tom Tromey  <tromey@redhat.com>
277         PR java/24938:
278         * sources.am, Makefile.in: Rebuilt.
279         * gnu/CORBA/DynAn/gnuDynValue.java: Removed.
280         * gnu/CORBA/DynAn/RecordAny.java: Removed.
281         * gnu/CORBA/DynAn/RecordAny.h: Rebuilt.
283 2006-12-06  Andrew Haley  <aph@redhat.com>
285         * gcj/javaprims.h (_Jv_is_proxy): Declare.
286         * java/lang/reflect/natVMProxy.cc (_Jv_is_proxy): Define
287         (run_proxy): Register this proxy invocation with a _Jv_InterpFrame.
288         * include/java-stack.h (struct _Jv_StackFrame): Add proxyClass and
289         proxyMethod.
290         * stacktrace.cc (UnwindTraceFn): Add frame_proxy handling.
291         (getLineNumberForFrame): Likewise.
292         (FillInFrameInfo): Likewise.
294 2006-12-05  Andrew Haley  <aph@redhat.com>
296         * Makefile.am: Add java/lang/reflect/natVMProxy.cc.
297         * java/lang/reflect/Method.java (exception_types, parameter_types,
298         return_type): Make package private.
299         * include/jvm.h (_Jv_makeUtf8Const(const char *s)): New function.
300         (_Jv_Linker::layout_vtable_methods): Given
301         public linkage.
302         (_Jv_Linker::search_method_in_class): Likewise.
303         * interpret.cc (_Jv_init_cif): Renamed from init_cif.  Given
304         public linkage.
305         * include/java-interp.h (_Jv_init_cif): Likewise.
306         * java/lang/reflect/natVMProxy.cc: New file.
307         * java/lang/VMCompiler.java (precompiles): New method.
308         (compileClass): Use it.
309         * java/lang/reflect/VMProxy.java
310         (HAVE_NATIVE_GENERATE_PROXY_CLASS): true.
311         (generateProxyClass): Native.
312         
313 2006-12-05  Tom Tromey  <tromey@redhat.com>
315         * Makefile.in: Rebuilt.
316         * Makefile.am (libexecsubdir): New variable.
317         (install-exec-hook): Install ecj1 in libexecsubdir.
318         (libexecsub_PROGRAMS): Renamed.
320 2006-12-05  Tom Tromey  <tromey@redhat.com>
322         PR java/29495:
323         * testsuite/libjava.lang/PR29495.out: New file.
324         * testsuite/libjava.lang/PR29495.java: New file.
326 2006-12-05  Gary Benson  <gbenson@redhat.com>
328         * gnu/classpath/natVMStackWalker.cc: Comment fixes.
330 2006-12-05  Gary Benson  <gbenson@redhat.com>
332         * gnu/classpath/natVMStackWalker.cc (getCallingClass): Unwind
333         the stack when the caller is a compiled frame and the caller
334         of the caller is an interpreted frame.
336 2006-12-04  Adam Megacz <megacz@cs.berkeley.edu>
338         * gnu/gcj/runtime/natSharedLibLoader.cc (init): add "::" to fix
339         syntax error
341 2006-12-04  Adam Megacz <megacz@cs.berkeley.edu>
343         * include/win32.h (_Jv_platform_process): change to Win32Process
344         
345 2006-12-04  Gary Benson  <gbenson@redhat.com>
347         * stacktrace.cc (GetClassContext): Remove.
348         * include/java-stack.h (GetClassContext): Likewise.
350 2006-12-04  Gary Benson  <gbenson@redhat.com>
352         * java/lang/SecurityManager.java: Removed.
353         * java/lang/VMSecurityManager.java: Likewise.
354         * java/lang/natVMSecurityManager.cc: Likewise.
355         * javax/naming/spi/NamingManager.java: Likewise.
356         * gnu/CORBA/ObjectCreator.java: Likewise.
357         * sun/reflect/Reflection.java: Replaced with reference.
358         * sun/reflect/natReflection.cc: Removed.
359         * gcj/javaprims.h: Removed reference to VMSecurityManager.
360         * Makefile.am (nat_source_files): Removed natReflection.cc
361         and natVMSecurityManager.cc.
362         * sources.am, Makefile.in: Rebuilt.     
363         
364 2006-12-01  Gary Benson  <gbenson@redhat.com>
366         * java/net/URLClassLoader.java
367         (findClass): Inhibit calling this.toString() further into VM
368         initialization.
369         (runtimeInitialized): Removed.
370         * java/net/natURLClassLoader.cc: Removed.
371         * Makefile.am: Reflect the above.
372         * Makefile.in: Rebuilt. 
374 2006-11-30  Tom Tromey  <tromey@redhat.com>
376         * java/lang/Class.java (getAnnotations): Don't recurse.
378 2006-11-30  Gary Benson  <gbenson@redhat.com>
380         * include/java-stack.h (GetStackWalkerStack): Declare.
381         * stacktrace.cc (GetStackWalkerStack): New method.
382         * gnu/classpath/natVMStackWalker.cc (getClassContext): Likewise.
383         * gnu/classpath/VMStackWalker.java
384         (getClassContext): Replace stub with native method declaration.
385         (getCallingClass): Remove "throws NotImplementedException".
386         (getCallingClassLoader): Likewise.
388 2006-11-30  Gary Benson  <gbenson@redhat.com>
390         * java/lang/ClassLoader.java: Merged javadoc.
391         (getParent, getSystemClassLoader): Use VMStackWalker.
393 2006-11-30  Gary Benson  <gbenson@redhat.com>
395         * java/lang/Thread.java: Merged javadoc.
396         (getContextClassLoader): Use VMStackWalker.
398 2006-11-29  Gary Benson  <gbenson@redhat.com>
400         * java/lang/Package.java: Removed.
401         * java/security/Security.java: Likewise.
402         * java/util/ResourceBundle.java: Likewise.
403         * java/util/natResourceBundle.cc: Likewise.
404         * Makefile.am (nat_source_files): Removed natResourceBundle.cc.
405         * sources.am, Makefile.in: Rebuilt.
407 2006-11-29  Gary Benson  <gbenson@redhat.com>
409         * gnu/classpath/VMStackWalker.java: Added javadoc.
411 2006-11-27  Andrew Haley  <aph@redhat.com>
413         * sun/reflect/misc/ReflectUtil.java (checkPackageAccess):
414         Implement.
416 2006-11-23  Andrew Haley  <aph@redhat.com>
418         * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Abort if we
419         are ABI-incompatible.
421 2006-11-23  Andrew Haley  <aph@redhat.com>
423         * Makefile.am (nat_source_files): Add gnu/classpath/natVMStackWalker.cc.
424         * sources.am: Rebuild.
425         * gnu/classpath/natVMStackWalker.cc: New file.
426         * gnu/classpath/VMStackWalker.java: New file.
427         * headers.txt: prepend 
428         _Jv_Thread_t* _Jv_ThreadGetData(java::lang::Thread* thread)
429         * include/java-stack.h: Add VMStackWalker namespace.
430         Add friend class gnu::classpath::VMStackWalker.
432 2006-11-23  Gary Benson  <gbenson@redhat.com>
434         * java/security/Security.java: Merge with classpath.
435         * java/lang/Package.java: Likewise.
437 2006-11-21  Andrew Haley  <aph@redhat.com>
439         * java/lang/Class.h: (isEnum, isSynthetic, isAnnotation): Move
440         to native code. 
441         * java/lang/Class.java (isEnum, isSynthetic, isAnnotation):
442         Likewise.
444 2006-11-17  Andrew Haley  <aph@redhat.com>
446         * java/net/natVMURLConnection.cc: Check for HAVE_MAGIC_OPEN.
447         * configure.ac: Add HAVE_MAGIC_OPEN.
448         * include/config.h.in: Regenerated.
449         * configure: Regenerated.
450         
451 2006-11-07  Andrew Haley  <aph@redhat.com>
453         * java/lang/VMCompiler.java (compileClass): Revert mistaken
454         change.
456         * java/lang/natVMClassLoader.cc (defineClass): Register the new
457         class with the initiating loader.
459 2006-11-06  Andrew Haley  <aph@redhat.com>
461         * defineclass.cc (prepare_pool_entry): Be careful about which
462         constant pool entries have their '/' characters stripped.
463         (handleGenericSignature): Likewise.
464         (handleAnnotationElement): Likewise.
465         (handleAnnotation): Likewise.
466         (read_one_class_attribute): Likewise.
467         (handleMethod): Likewise.
469         * include/java-cpool.h (JV_CONSTANT_LazyFlag): New.
470         * java/lang/natClass.cc (check_constant): Likewise.
471         * link.cc (resolve_pool_entry): Mask JV_CONSTANT_LazyFlag.
473 2006-11-01  Andrew Haley  <aph@redhat.com>
475         * java/lang/natClass.cc (parseAnnotationElement): Set result from
476         anno_class.
478 2006-10-21  Tom Tromey  <tromey@redhat.com>
480         * testsuite/libjava.lang/PR260.out: Rewrote for 1.5.
481         * testsuite/libjava.lang/pr179.out: Rewrote for 1.5.
482         * testsuite/libjava.lang/pr179.java: Updated comments.
483         * testsuite/libjava.compile/inner_1.xfail: Removed.
485 2006-10-20  Tom Tromey  <tromey@redhat.com>
487         * testsuite/libjava.cni/cni.exp (gcj_cni_build_headers): Don't use
488         jv-scan.
489         * testsuite/lib/libjava.exp (test_libjava_from_javac): Removed.
490         (find_jvscan): Removed.
492 2006-10-20  Tom Tromey  <tromey@redhat.com>
494         * testsuite/libjava.jni/jni.exp (gcj_jni_build_header): Use
495         -force.
496         * testsuite/lib/libjava.exp (find_gcjh): Find 'gjavah' instead.
497         * testsuite/libjava.cni/cni.exp (gcj_cni_build_headers): Pass -cni
498         and -force to gcjh.
499         * Makefile.in: Rebuilt.
500         * Makefile.am (MYGCJH): Use gjavah.
502 2006-10-18  Tom Tromey  <tromey@redhat.com>
504         PR classpath/28203:
505         * java/lang/Class.java (getAnnotations): Rewrote.
506         * java/lang/reflect/Method.java (METHOD_MODIFIERS): Now
507         package-private.
508         * java/lang/reflect/Field.java (FIELD_MODIFIERS): Now
509         package-private.
510         * gcj/field.h (_Jv_FIELD_CONSTANT_VALUE): Removed.
511         * defineclass.cc (handleConstantValueAttribute): Added found_value
512         argument.  Don't use _Jv_FIELD_CONSTANT_VALUE.
513         (read_one_field_attribute): Updated.
514         (read_fields): Likewise.
515         (handleField): Mask with FIELD_MODIFIERS, not ALL_FLAGS.
516         (handleMethod): Mask with METHOD_MODIFIERS, not ALL_FLAGS.
518 2006-10-17  Tom Tromey  <tromey@redhat.com>
520         * defineclass.cc (handleMemberAnnotations): Write member index
521         after 'kind'.
522         (handleAnnotation): Call prepare_pool_entry.
523         * java/lang/reflect/natMethod.cc (getDeclaredAnnotationsInternal):
524         Removed unused variable.
525         (getParameterAnnotationsInternal): Likewise.
526         * java/lang/reflect/natField.cc (getDeclaredAnnotationsInternal):
527         Removed unused variable.
528         * java/lang/reflect/natConstructor.cc
529         (getDeclaredAnnotationsInternal): Removed unused variable.
530         (getParameterAnnotationsInternal): Likewise.
531         * java/lang/natClass.cc (parseAnnotation): Create annotation.
532         (parseAnnotationElement): Handle 'c' and 'e' cases more
533         correctly.
534         (getMethodDefaultValue): Fixed variable names.
535         (parseAnnotationElement): Create String for 's' entry.
536         * java/lang/reflect/Constructor.java (getAnnotation): New method.
537         * java/lang/reflect/Field.java (getAnnotation): New method.
538         * java/lang/reflect/Method.java (getAnnotation): New method.
540 2006-10-17  Tom Tromey  <tromey@redhat.com>
542         * java/lang/natClass.cc (parseAnnotationElement): Expect a utf8
543         constant in the "string" case.
544         * defineclass.cc (handleAnnotationElement): Expect a utf8 constant
545         in the "string" case.
547 2006-10-17  Tom Tromey  <tromey@redhat.com>
549         * configure, Makefile.in: Rebuilt.
550         * Makefile.am (install-exec-hook): Now unconditional.  Rename ecjx
551         if needed.
552         (jar_DATA): Add ecj jar when needed.
553         (toolexec_PROGRAMS): New variable.
554         (ecjx_SOURCES, ecjx_LDFLAGS, ecjx_LDADD, ecjx_DEPENDENCIES):
555         Likewise.
556         * prims.cc (JvRunMainName): New function.
557         * include/jvm.h (JvRunMainName): Declare.
558         * configure.ac: Added --with-ecj-jar.
559         (ECJ_JAR): New subst.
560         (ECJ_BUILD_JAR): Likewise.
561         (INSTALL_ECJ_JAR): New conditional.
562         (BUILD_ECJ1): Likewise.
564 2006-10-13  Tom Tromey  <tromey@redhat.com>
566         * HACKING: Updated.
567         * sources.am, Makefile.in: Rebuilt.
568         * scripts/makemake.tcl (emit_bc_rule): Updated for class files in
569         srcdir.
570         (emit_package_rule): Likewise.
571         (emit_process_package_rule): Likewise.
572         * Makefile.am (gcjh.stamp): Conditional on MAINTAINER_MODE.  Put
573         headers in srcdir.
574         (libgcj-$(gcc_version).jar): Updated to find classes in source
575         tree.
576         (BOOTCLASSPATH): Likewise.
577         (install-data-local): Likewise.
578         Added all the .class and CNI .h files.
580 2006-10-12  Andrew Haley  <aph@redhat.com>
582         * java/lang/natThreadLocal.cc: New file.
583         * java/lang/ThreadLocal.java: Rewrite to use native TLS.
584         * Makefile.am: Add java/lang/natThreadLocal.cc.
585         * sources.am: Move classpath/java/lang/ThreadLocal.java to
586         java/lang/ThreadLocal.java.
588 2006-10-11  Tom Tromey  <tromey@redhat.com>
590         * sources.am, Makefile.in, include/config.h.in, configure:
591         Rebuilt.
592         * Makefile.am (nat_source_files): Added natConfiguration.cc.
593         * gnu/classpath/natConfiguration.cc: New file.
594         * configure.ac (AWT_TOOLKIT): New define.
595         (LIBGCJ_PREFIX): Likewise.
596         * gnu/classpath/Configuration.java: New file.
597         * sources.am: Rebuilt.
598         * scripts/makemake.tcl: Don't special case Configuration.java.
600 2006-10-10  Tom Tromey  <tromey@redhat.com>
602         * gcj/javaprims.h: Updated.
603         * sources.am, Makefile.in: Rebuilt.
604         * standard.omit.in: Removed process source files.
605         * scripts/makemake.tcl: Removed ConcreteProcess special case.
606         (emit_package_rule): Also special-case Process.
607         (emit_process_package_rule): New proc.
608         * Makefile.am (inner_nat_headers): Removed
609         PLATFORM_INNER_NAT_HDRS.
610         * configure: Rebuilt.
611         * configure.ac (PLATFORM_INNER_NAT_HDRS): Removed subst.
612         Don't create ConcreteProcess.java link.
613         (PLATFORM): New subst.
614         * java/lang/natWin32Process.cc: Updated.
615         * java/lang/natPosixProcess.cc: Updated.
616         * java/lang/natEcosProcess.cc: Updated.
617         * java/lang/Win32Process.java (Win32Process): Renamed from
618         ConcreteProcess.
619         * java/lang/EcosProcess.java (EcosProcess): Renamed from
620         ConcreteProcess.
621         * java/lang/PosixProcess.java (PosixProcess): Renamed from
622         ConcreteProcess.
623         * include/win32.h (_Jv_platform_process): New define.
624         * java/lang/natRuntime.cc (execInternal): Use
625         _Jv_platform_process.
626         * include/posix.h (_Jv_platform_process): New define.
628 2006-10-09  Andrew Haley  <aph@redhat.com>
630         * win32-threads.cc (_Jv_ThreadUnpark, _Jv_ThreadPark): New
631         functions.
633 2006-10-06  Tom Tromey  <tromey@redhat.com>
635         PR libgcj/29278:
636         * Makefile.in: Rebuilt.
637         * Makefile.am ($(generic_header_files)): Depend on gcjh.stamp.
638         (gcjh.stamp): New target.
640 2006-10-06  Andrew Haley  <aph@redhat.com>
642         * posix-threads.cc (_Jv_ThreadUnpark, _Jv_ThreadPark): Moved here
643         from sun/misc/natUnsafe.cc.
644         * sun/misc/natUnsafe.cc (class spinlock): New class.
645         (compareAndSwap): New methods.
646         (compareAndSwapInt, compareAndSwapLong, compareAndSwapObject) 
647         (putOrderedLong, putLongVolatile, putObjectVolatile, putLong) 
648         (getIntVolatile, getObjectVolatile, getLong, getLongVolatile):
649         Rewrite to use gcj's own atomic functions rather than gcc
650         builtins.
651         (unpark): Moved to posix-threads.cc
652         (park): Likewise.
653         * include/jvm.h (struct natThread::alive_flag): Moved here from
654         Thread.java.
655         (struct natThread): Likewise.
656         * include/posix-threads.h: (_Jv_ThreadUnpark, _Jv_ThreadPark):
657         moved here from sun/misc/natUnsafe.cc.
658         * java/lang/natThread.cc (initialize_native): Set alive_flag here.
659         (isAlive): Moved here from Thread.java.
660         (interrupt): alive_flag is now in the natThread structure.
661         (interrupt): Call _Jv_ThreadUnpark().
662         (finish_): parkPermit and alive_flag are now in the natThread
663         structure.
664         (start): LIkewise.
665         (_Jv_AttachCurrentThread): Likewise.
666         * java/lang/Thread.java (alive_flag): Remove.
667         (parkPermit): Likewise.
668         (Thread): Don't set alive_flag.
669         (isAlive): Make native.
670         
671 2006-09-13  Andrew Haley  <aph@redhat.com>
673         * Makefile.am: Add sun/reflect/natReflection.cc.
674         * Makefile.in: Rebuild.
675         * sun/reflect/natReflection.cc: New file.
676         * sun/reflect/Reflection.java (getCallerClass): Now native.
677         * stacktrace.cc (GetClassContext): Don't check the class if
678         checkClass is NULL.
679         
680 2006-09-12  Andrew Haley  <aph@redhat.com>
682         * java/lang/Thread.java (alive_flag): Make it a byte.
683         (THREAD_DEAD, THREAD_ALIVE, THREAD_SIGNALED): new constants.
684         (parkPermit): New variable.
685         (data): Now package private.
686         (Thread): Set alive_flag to THREAD_DEAD, not false.
687         (isAlive): Test against THREAD_DEAD.
688         * java/lang/natThread.cc (initialize_native): Initialize
689         park_mutex and park_cond.
690         (finish_): Set parkPermit THREAD_PARK_DEAD.
691         (interrupt): Rewrite.  Use an atomic update rather than a mutex to
692         access alive_flag.
693         If the thread is parked, unpark it.
694         (start): Set alive_flag to THREAD_ALIVE, not true.
695         (finalize_native): Destroy park_mutex and park_cond.
696         * sun/misc/natUnsafe.cc (unpark): New method.
697         (park): New method.
698         * include/jvm.h (struct natThread): Moved here.
700 2006-06-07  Andrew Haley  <aph@redhat.com>
702         * include/jvm.h (_Jv_Linker::maybe_adjust_signature): New.
703         (_Jv_Linker::uaddr): New.
704         * link.cc (resolve_pool_entry): Call search_method_in_superclasses
705         instead of an open-coded loop around search_method_in_class.
706         (search_method_in_class): Add a new arg, check_perms.
707         (search_method_in_superclasses): New.
708         (link_symbol_table): Call maybe_adjust_signature() to extract the
709         least significnt bit of the signature pointer.  Do this three
710         times, for instace method calls, static methods, and interfaces.
711         Call search_method_in_superclasses() instead of
712         _Jv_LookupDeclaredMethod.
713         (typedef uaddr): Delete.
715 2006-09-11  Andrew Haley  <aph@redhat.com>
717         * gij.cc (main): Remove bogus code that sets LTDL_SHLIBPATH_VAR
718         and forks.
720 2006-06-16  Andrew Haley  <aph@redhat.com>
722         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
723         copy the whole Class instance from the initializer: instead, copy
724         everything but the first word (the vtable pointer).
725         Change prototype to (const char* class_initializer).
726         (_Jv_RegisterNewClasses): Change prototype to (const char**).
727         * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
728         (const char**).
730 2006-08-31  Tom Tromey  <tromey@redhat.com>
732         PR libgcj/28698:
733         * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro.  Declare primitive
734         classes.
736 2006-08-21  Bryce McKinlay  <mckinlay@redhat.com>
738         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
739         to GC.
740         (_Jv_DetachCurrentThread): Detach thread from GC.
741         * include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
742         Declare.
743         * boehm.cc (_Jv_GCAttachThread): New function.
744         (_Jv_GCDetachThread): Likewise.
746 2006-08-16  Jakub Jelinek  <jakub@redhat.com>
747             Bryce McKinlay  <bryce@mckinlay.net.nz>
749         * configure, Makefile.in: Rebuilt.
750         * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
751         (libgcj_bc_la_SOURCES): New variable.
752         (libgcj_bc_la_LDFLAGS): Likewise.
753         (libgcj_bc_la_LIBADD): Likewise.
754         (libgcj_bc_la_DEPENDENCIES): Likewise.
755         (libgcj_bc_la_LINK): Likewise.
756         (libgcj_bc_dummy_LINK): Likewise.
757         (libgcj_bc.la): New target.
758         (install-exec-hook): Likewise.
759         * libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
760         * libgcj_bc.c: New file.
761         * configure.ac (LIBGCJ_SPEC): New subst.
762         * configure.host (use_libgcj_bc): New variable.
764 2006-08-26  Andrew John Hughes  <gnu_andrew@member.fsf.org>
766         * link.cc:
767         Increment loaded classes when printing verbose output.
768         * gnu/java/lang/management/natVMMemoryMXBeanImpl.cc:
769         Added comments.
770         * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc:
771         (getMemoryManagerNames(jstring)): Implemented.
772         (isValid(jstring)): Implemented.
773         * gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc:
774         (getLoadedClassCount()): Implemented.
775         (getUnloadedClassCount()): Likewise.
776         (isVerbose()): Likewise.
777         (setVerbose(jboolean)): Likewise.
778         * java/lang/management/natVMManagementFactory.cc:
779         (getMemoryPoolNames()): Implemented.
780         (getMemoryManagerNames()): Likewise.
781         (getGarbageCollectorNames()): Likewise.
782         * include/jvm.h:
783         Add loaded and unloaded class counts.
784         * defineclasses.c:
785         Increment loaded classes count.
786         * prims.cc:
787         Add loaded and unloaded class counts.
788         
789 2006-08-16  Tom Tromey  <tromey@redhat.com>
791         * include/posix-threads.h (_Jv_MutexLock): No longer inline.
792         * posix-threads.cc (_Jv_CondWait): Set thread's state.
793         * include/jvm.h (class JvSetThreadState): New class.
794         (JvThreadState): New enum.
795         * java/lang/Thread.java (state): New field.
796         * java/lang/natThread.cc (_Jv_ThreadRun): Use
797         getUncaughtExceptionHandler.
798         (start): Set state.
799         (_Jv_AttachCurrentThread): Likewise.
800         (finish_): Likewise.
801         (getState): Wrote.
803 2006-08-15  Tom Tromey  <tromey@redhat.com>
805         * gnu/gcj/runtime/natSharedLibLoader.cc (init): Added missing
806         '::'.
807         * gnu/gcj/convert/natIconv.cc (init): Added missing '::'.
808         (read): Likewise.
809         * gnu/gcj/natCore.cc (create): Added missing '::'.
810         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
811         Added missing '::'
813 2006-08-14  Tom Tromey  <tromey@redhat.com>
815         * Makefile.in: Rebuilt.
816         * Makefile.am (libgcj_la_LIBADD): Add LIBMAGIC.
817         * java/net/natVMURLConnection.cc: Wrote, based on Classpath.
818         * configure, config.h.in: Rebuilt.
819         * configure.ac: Check for magic.h and -lmagic.
821 2006-08-14  Tom Tromey  <tromey@redhat.com>
823         * java/lang/natThread.cc (getId): Removed.
824         * java/lang/Thread.java (threadId): New field.
825         (totalThreadsCreated): Likewise.
826         (Thread): Set threadId.
827         (getId): No longer native.
829 2006-08-14  Tom Tromey  <tromey@redhat.com>
831         * sources.am, Makefile.in: Rebuilt.
832         * Makefile.am (nat_source_files): Added new .cc files.
833         (libgcj-$(gcc_version).jar): Include 'sun'.
834         (src.zip): Likewise.
835         * java/lang/natThread.cc (getId): New stub.
836         (getState): Likewise.
837         * scripts/makemake.tcl (emit_source_var): Use -decreasing when
838         sorting.
839         * gnu/java/lang/management/natVMMemoryMXBeanImpl.cc: New file.
840         * gnu/java/lang/management/natVMCompilationMXBeanImpl.cc: New file.
841         * gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc: New
842         file.
843         * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc: New file.
844         * gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc: New file.
845         * gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc: New file.
846         * gnu/java/lang/management/natVMThreadMXBeanImpl.cc: New file.
847         * gnu/java/nio/natVMChannel.cc: New file.
848         * gcj/javaprims.h: Updated.
849         * sources.am: Likewise.
850         * java/lang/management/natVMManagementFactory.cc: New file.
851         * java/net/natVMURLConnection.cc: New file.
852         * java/util/concurrent/atomic/natAtomicLong.cc: New file.
853         * sun/misc/natUnsafe.cc: New file.
855 2006-08-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
857         * libjava/Makefile.in,
858         * libjava/sources.am:
859         Regenerated.
860         * libjava/scripts/makemake.tcl:
861         Added gconf and dnd peers as BC.
863 2006-08-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
865         * libjava/Makefile.in,
866         * libjava/sources.am:
867         Regenerated.
868         * libjava/scripts/makemake.tcl:
869         Added external/jsr166.
870         
871 2006-08-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
873         * libjava/configure,
874         * libjava/Makefile.in:
875         Regenerated.
876         * libjava/scripts/makemake.tcl:
877         Handle the Escher peers as we handle Qt.
878         * libjava/gcj/Makefile.in:
879         Regenerated.
880         * libjava/configure.ac:
881         Handle Escher peers and disable plugin when Gtk+ is not used.
882         * libjava/sources.am:
883         Regenerated.
884         * libjava/classpath/gnu/java/awt/peer/x/fonts.properties:
885         Removed (as recently on generics branch of Classpath).
886         * libjava/include/Makefile.in,
887         * libjava/testsuite/Makefile.in:
888         Regenerated.
889         
890 2006-07-23  Andrew John Hughes  <gnu_andrew@member.fsf.org>
892         * libjava/Makefile.in:
893         Regenerated.
894         * libjava/scripts/classes.pl:
895         Ignore .svn directories.
896         * libjava/scripts/makemake.tcl:
897         Include sun directory.
898         * libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
899         * libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
900         * libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
901         * libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
902         * libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java,
903         * libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java,
904         * libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java,
905         * libjava/gnu/java/nio/VMChannel.java:
906         Copied over from classpath/vm/reference.
907         * libjava/gnu/java/nio/channels/FileChannelImpl.java:
908         (getNativeFD()): Implemented.
909         * libjava/gcj/javaprims.h:
910         Updated for generics merge from 20060709.
911         * libjava/javax/naming/spi/NamingManager.java:
912         Copied over from classpath/vm/reference.
913         * libjava/sources.am:
914         Regenerated.
915         * libjava/java/lang/Thread.java:
916         (getId()): Implemented.
917         (getState()): Likewise.
918         (getAllStackTraces()): Likewise.
919         (getStackTrace()): Likewise.
920         * libjava/java/lang/management/VMManagementFactory.java,
921         * libjava/java/net/VMURLConnection.java:
922         Copied over from classpath/vm/reference.        
923         * libjava/classpath/vm/reference/java/lang/management/VMThreadInfo.java:
924         Removed.
925         * libjava/classpath/native/fdlibm/namespace.h:
926         Changed back to GCJ LOCAL version.
927         * libjava/sun/reflect/Reflection.java,
928         * libjava/sun/reflect/misc/ReflectUtil.java,
929         * libjava/sun/misc/Unsafe.java:
930         Copied over from classpath/vm/reference.
932 2006-07-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
934         * sources.am, Makefile.in: Rebuilt.
935         * gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
936         * gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc:
937         New files.
938         * include/jvm.h:
939         Add new variables used in prims.cc.
940         * Makefile.am:
941         Add natVMRuntimeMXBeanImpl.cc.
942         * prims.cc:
943         (_Jv_CreateJavaVM): Retain start time and input
944         arguments.
946 2006-07-21  Tom Tromey  <tromey@redhat.com>
948         PR libgcj/4105:
949         * java/lang/natClass.cc (findInnerClassAttribute): New method.
950         (findDeclaredClasses): Likewise.
951         (getDeclaredClasses): Implemented.
952         (getDeclaringClass): Likewise.
953         (isAnonymousClass): Likewise.
954         (isMemberClass): Likewise.
955         (check_constant): Pass message in exception.  Allow resolved
956         constants.
957         (resolve_class_constant): New function.
958         * defineclass.cc (read_one_class_attribute): Handle InnerClasses.
959         * java/lang/Class.h (isAnonymousClass, isLocalClass,
960         isMemberClass): Declare.
961         * java/lang/Class.java (getSimpleName): Implemented.
962         (isAnonymousClass, isLocalClass, isMemberClass): New methods.
964 2006-07-16  Tom Tromey  <tromey@redhat.com>
966         * configure: Rebuilt.
967         * configure.ac (JV_API_VERSION, JV_VERSION): Claim 1.5.
969 2006-07-12  Andrew Haley  <aph@redhat.com>
971         * Makefile.am (java/lang/Object.lo): Add -fsource-filename.
972         (java/lang/Class.lo): Likewise.
973         * Makefile.in: Regenerate.
975 2006-07-07  Tom Tromey  <tromey@redhat.com>
977         * defineclass.cc (input_data, input_offset): New fields.
978         (reflection_data, data_stream): Likewise.
979         (get_reflection_stream): New method.
980         (_Jv_ClassReader): Initialize new fields.
981         (parse): Call finish_reflection_data.
982         (finish_reflection_data): New method.
983         (handleEnclosingMethod): Likewise.
984         (handleGenericSignature): Likewise.
985         (handleAnnotationElement): Likewise.
986         (handleAnnotation): Likewise.
987         (handleAnnotations): Likewise.
988         (handleMemberAnnotations): Likewise.
989         (handleAnnotationDefault): Likewise.
990         (handleParameterAnnotations): Likewise.
991         (read_one_field_attribute): Handle new attributes.
992         (read_one_method_attribute): Likewise.
993         (read_one_class_attribute): Likewise.
994         * include/jvm.h (resolve_method_entry): New method.
995         * java/lang/Class.h (jv_attr_type, jv_attr_kind): New enums.
996         (Class): Updated for new methods.  Field, Method, Constructor now
997         friends.
998         (reflection_data): New field.
999         * java/lang/Class.java (asSubclass, cast): New methods.
1000         (getEnclosingClass, getEnclosingConstructor): Now native.
1001         (getEnclosingMethod): Likewise.
1002         (getClassSignature): New method.
1003         (getGenericInterfaces, getGenericSuperclass, getTypeParameters):
1004         Likewise.
1005         (Class): Implements AnnotatedElement.
1006         (getAnnotation, isAnnotationPresent, getAnnotations): New methods.
1007         (getDeclaredAnnotations): New method.
1008         (getDeclaredAnnotationsInternal): Likewise.
1009         * java/lang/reflect/natConstructor.cc (anno_a_t, anno_aa_t): New
1010         typedefs.
1011         (getSignature): New method.
1012         (getDeclaredAnnotationsInternal): Likewise.
1013         (getParameterAnnotationsInternal): Likewise.
1014         * java/lang/reflect/natField.cc (anno_a_t): New typedef.
1015         (getSignature): New method.
1016         (getDeclaredAnnotationsInternal): Likewise.
1017         * java/lang/reflect/natMethod.cc (anno_a_t, anno_aa_t): New
1018         typedefs.
1019         (getSignature): New method.
1020         (getDefaultValue): Likewise.
1021         (getDeclaredAnnotationsInternal): Likewise.
1022         (getParameterAnnotationsInternal): Likewise.
1023         * java/lang/reflect/Constructor.java (addTypeParameters):
1024         Genericized.
1025         (getSignature): Now native.
1026         (getDeclaredAnnotations, getDeclaredAnnotationsInternal,
1027         getParameterAnnotations, getParameterAnnotationsInternal): New
1028         methods.
1029         * java/lang/reflect/Field.java (getDeclaringClass, getType):
1030         Genericized.
1031         (getSignature): Now native.
1032         (getDeclaredAnnotations, getDeclaredAnnotationsInternal): New
1033         methods.
1034         * java/lang/reflect/Method.java (getReturnType): Genericized.
1035         (getParameterTypes, getExceptionTypes, getTypeParameters):
1036         Likewise.
1037         (getSignature): Now native.
1038         (getDefaultValue, getDeclaredAnnotations,
1039         getParameterAnnotations, getDeclaredAnnotationsInternal,
1040         getParameterAnnotationsInternal): New methods.
1041         * java/lang/natClass.cc (read_u1): New functions.
1042         (read_u2): Likewise.
1043         (read_4): New function.
1044         (getReflectionSignature): New methods.
1045         (getClassSignature): New method.
1046         (getEnclosingMethodData): Likewise.
1047         (getEnclosingClass): Likewise.
1048         (getEnclosingMethod): Likewise.
1049         (getEnclosingConstructor): Likewise.
1050         (check_constant): New function.
1051         (parseAnnotationElement): Likewise.
1052         (parseAnnotation): Likewise.
1053         (parseAnnotations): Likewise.
1054         (parseParameterAnnotations): Likewise.
1055         (getMethodDefaultValue): New method.
1056         (getDeclaredAnnotations): New methods.
1057         (getDeclaredAnnotationsInternal): New method.
1058         * boehm.cc (_Jv_MarkObj): Mark 'reflection_data' field.
1059         * link.cc (resolve_method_entry): New method.
1060         (resolve_pool_entry): Use it.
1062 2006-07-07  Andrew Haley  <aph@redhat.com>
1064         * Makefile.am: Use -fsource-filename when compiling libgcj.
1065         * Makefile.in: Regenerate.
1067 2006-06-23  Tom Tromey  <tromey@redhat.com>
1069         Merged in classpath-generics.
1070         * sources.am, Makefile.in: Rebuilt.
1071         * Makefile.am (generic_header_files): Don't filter out omitted
1072         headers.
1073         (generic_header_files): Rewrote.
1074         (MYGCJH): New variable.
1075         Removed all .h rules.
1076         * headers.txt: New file.
1077         * java/io/PrintStream.java (PrintStream): Implement Appendable.
1078         * java/lang/Class.java: Genericized.
1079         (getEnumConstants): New method.
1080         (isEnum): Likewise.
1081         (isSynthetic): Likewise.
1082         (isAnnotation): Likewise.
1083         * java/lang/reflect/Constructor.java (getDeclaringClass,
1084         getTypeParameters, declaringClass): Genericized.
1085         * java/lang/reflect/Method.java (invoke): Now varargs.
1086         * java/lang/ref/Reference.java (Reference): Imported genericized
1087         version from Classpath.
1088         (get): Now native.
1089         * java/lang/ref/natReference.cc (get): New method.
1090         * java/lang/ProcessBuilder.java: New file.
1091         * java/lang/System.java (environmentMap): New field.
1092         (clearProperty): New method.
1093         (getenv): Likewise.
1094         (EnvironmentCollection): New class.
1095         (EnvironmentMap): Likewise.
1096         (EnvironmentSet): Likewise.
1097         * java/lang/StringBuilder.java (StringBuilder): Implements
1098         Appendable.
1099         * gnu/classpath/SystemProperties.java (remove): New method.
1101 2006-06-23  Tom Tromey  <tromey@redhat.com>
1103         * testsuite/libjava.loader/TestLeak.java: Don't use wildcard
1104         import for java.lang.reflect.
1106 2006-06-21  Tom Tromey  <tromey@redhat.com>
1108         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
1109         Set java.class.version to 49.
1111 2006-06-21  Tom Tromey  <tromey@redhat.com>
1113         * link.cc (resolve_pool_entry): Initialize field's declaring
1114         class, not its qualifying class.
1116 2006-06-21  Tom Tromey  <tromey@redhat.com>
1118         * testsuite/libjava.jacks/jacks.xfail: Updated for ecj.
1120 2006-06-20  Tom Tromey  <tromey@redhat.com>
1122         * testsuite/libjava.compile/Where.xfail: Now 'no-link'.
1124 2006-06-19  Tom Tromey  <tromey@redhat.com>
1126         * gnu/java/lang/natMainThread.cc (call_main): Link main class.
1128 2006-06-19  Tom Tromey  <tromey@redhat.com>
1130         * testsuite/lib/libjava.exp (test_libjava): Don't compile via
1131         bytecode.  Run BC compilations from source.
1133 2006-06-19  Tom Tromey  <tromey@redhat.com>
1135         * testsuite/libjava.lang/TestProxy.java: Don't use wildcard
1136         imports for java.lang.reflect.
1138 2006-06-13  Tom Tromey  <tromey@redhat.com>
1140         * testsuite/libjava.lang/stringconst.xfail: Removed.
1141         * testsuite/libjava.lang/ArrayStore2.xfail: Removed.
1143 2006-06-08  Tom Tromey  <tromey@redhat.com>
1145         * sources.am, Makefile.in: Rebuilt.
1146         * Makefile.am (libgcj_la_LIBADD): Add Object.lo and Class.lo.
1147         (java/lang/Object.lo): New target.
1148         (java/lang/Class.lo): Likewise.
1149         * scripts/makemake.tcl (emit_package_rule): Add special case for
1150         Object and Class.
1152 2006-06-06  Tom Tromey  <tromey@redhat.com>
1154         * Makefile.in: Rebuilt.
1155         * Makefile.am (gcj_dbtool_DEPENDENCIES): Add gcj_dbtool.lo.
1157 2006-06-06  Tom Tromey  <tromey@redhat.com>
1159         * Makefile.in: Rebuilt.
1160         * Makefile.am (nat_headers): Don't list Main.h.
1161         (generic_header_files): Likewise.
1163 2006-06-05  Tom Tromey  <tromey@redhat.com>
1165         * testsuite/libjava.loader/TestLeak.java (MyLoader): Now static.
1166         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Use -w.
1167         * testsuite/lib/libjava.exp (libjava_arguments): Add -w.
1168         * testsuite/libjava.compile/G19990210_2.java: Removed.
1169         * testsuite/libjava.compile/PR208.java: Removed.
1170         * testsuite/libjava.compile/PR208.xfail: Removed.
1171         * testsuite/libjava.compile/support/Case.java: Removed.
1172         * testsuite/libjava.compile/Case.java: Removed.
1174 2006-06-04  Tom Tromey  <tromey@redhat.com>
1176         * sources.am, Makefile.in: Rebuilt.
1177         * Makefile.am (gcj_dbtool_LDADD): Add
1178         gnu-gcj-tools-gcj_dbtool.lo.
1179         (gcj_dbtool_SOURCES): Updated.
1180         (EXTRA_libgcj_la_SOURCES): New macro.
1181         * scripts/makemake.tcl (emit_package_rule): Compile class files
1182         from the package.
1183         (gcj_dbtool/Main.java, Class.java, Object.java): Removed
1184         package_map settings.
1185         (emit_package_rule): Special case gnu.gcj.tools.gcj_dbtool.
1187 2006-06-04  Tom Tromey  <tromey@redhat.com>
1189         * java/lang/Class.java (getClassLoaderInternal): Now native.
1191 2006-12-20  Adam Megacz <megacz@cs.berkeley.edu>
1193        * configure.ac: add $built_gcc_dir to $GCJH and $GCJ when
1194        crossbuilding.
1195         * configure: Regenerate.
1197 2006-12-18  Adam Megacz <megacz@cs.berkeley.edu>
1199         * Makefile.am: remove @X_CFLAGS@ from AM_CXXFLAGS; it causes
1200         -I/usr/include to wind up in cross-builds
1201         * configure: Regenerate.
1203 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1205         * configure: Regenerate.
1207 2006-11-27  Mike Stump  <mrs@apple.com>
1209         * sysdep/x86-64/locks.h: Enable use of either file on either
1210         target to support multilibs from one to the other.
1211         * sysdep/i386/locks.h: Likewise.
1213 2006-11-21  Gary Benson  <gbenson@redhat.com>
1215         * java/security/Security.java: Merge with classpath.
1216         * java/lang/Package.java: Likewise.
1217         * java/lang/Class.java (getDeclaredAnnotations): New method.
1219 2006-11-20  David Daney  <ddaney@avtrex.com>
1221         * include/mips-signal.h (sys/syscall.h): Do not include.
1222         (sig_ucontext_t): Removed.
1223         (MAKE_THROW_FRAME): Changed to be a nop.
1224         (_INIT_SIG_HANDLER): New macro.
1225         (INIT_SEGV): Rewrote to use _INIT_SIG_HANDLER.
1226         (INIT_FPE): Same.
1228 2006-11-20  David Daney  <ddaney@avtrex.com>
1230         * testsuite/libjava.lang/Throw_3.java: New Test.
1231         * testsuite/libjava.lang/Throw_3.out: Its expected output.
1233 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1235         * configure: Regenerated.
1237 2006-11-03  Gary Benson  <gbenson@redhat.com>
1239         * java/net/InetAddress.java: Removed.
1240         * java/net/natInetAddressNoNet.cc: Likewise.
1241         * java/net/natInetAddressPosix.cc: Likewise.
1242         * java/net/natInetAddressWin32.cc: Likewise.
1243         * java/net/VMInetAddress.java (getLocalHostname,
1244         lookupInaddrAny, getHostByAddr, getHostByName,
1245         aton): Replace glue methods with native ones.
1246         * java/net/natVMInetAddressNoNet.cc: New file.
1247         * java/net/natVMInetAddressPosix.cc: Likewise.
1248         * java/net/natVMInetAddressWin32.cc: Likewise.
1249         * Makefile.am, configure.ac: Reflect the above.
1250         * sources.am, Makefile.in, configure: Rebuilt.
1252         * java/net/natVMNetworkInterfaceWin32.cc
1253         (winsock2GetRealNetworkInterfaces): Create InetAddress
1254         objects using InetAddress.getByAddress.
1255         * gnu/java/net/natPlainSocketImplWin32.cc
1256         (accept, getOption): Likewise.
1257         * gnu/java/net/natPlainDatagramSocketImplWin32.cc
1258         (peekData, receive, getOption): Likewise.
1260 2006-11-02  Keith Seitz  <keiths@redhat.com>
1262         * gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.
1264 2006-11-02  Keith Seitz  <keiths@redhat.com>
1266         * jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.
1267         (_Jv_JVMTI_Interface): Define GetLineNumberTable.
1269 2006-11-01  Keith Seitz  <keiths@redhat.com>
1271         * gnu/gcj/jvmti/Location.java: New file.
1272         * gnu/gcj/jvmti/BreakpointManager.java: New file.
1273         * jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
1274         (_Jv_JVMTI_ClearBreakpoint): New function.
1275         (_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
1276         * sources.am: Regenerated.
1277         * Makefile.in: Regenerated.
1279 2006-10-28  Keith Seitz  <keiths@redhat.com>
1281         * Makefile.am (nat_source_files): Add natBreakpoint.cc.
1282         * sources.am: Regenerated.
1283         * Makefile.in: Regenerated.
1284         * gnu/gcj/jvmti/Breakpoint.java: New file.
1285         * gnu/gcj/jvmti/natBreakpoint.java: New file.
1287 2006-10-27  Keith Seitz  <keiths@redhat.com>
1289         * include/java-stack.h (ncodeMap): Declare.
1290         (_Jv_StackTrace): Make _Jv_GetMethodDeclaringClass friend.
1291         * java/lang/Class.h (_Jv_GetMethodDeclaringClass): Declare.
1292         * java/lang/natClass.cc (_Jv_GetMethodDeclaringClass): New
1293         function.
1294         * stacktrace.cc (ncodeMap): Redefine from file global to global
1295         for class _Jv_StackTrace.
1296         (_Jv_StackTrace::UpdateNCodeMap): Add interpreted classes, too,
1297         so that _Jv_GetMethodDeclaringClass can find them all.
1298         (_Jv_StackTrace::ClassForFrame): Exclude interpreted classes.
1299         * jvmti.cc (_Jv_JVMTI_GetMethodDeclaringClass): New function.
1300         (_Jv_JVMTI_Interface): Define GetMethodDeclaringClass function.
1302 2006-10-25  Andreas Tobler  <a.tobler@schweiz.org>
1304         * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests): Replace
1305         formatting modifiers %p with %#llx and cast the arguments.
1307 2006-10-20  Tom Tromey  <tromey@redhat.com>
1309         * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests):
1310         Correctly pass jvalues.
1312 2006-10-18  Tom Tromey  <tromey@redhat.com>
1313             Bryce McKinlay  <mckinlay@redhat.com>
1315         * testsuite/libjava.jni/register2.java: New file.
1316         * testsuite/libjava.jni/register2.out: New file.
1317         * testsuite/libjava.jni/register2.c: New file.
1318         * java/lang/natClass.cc (_Jv_GetClassNameUtf8): New function.
1319         * java/lang/Class.h (_Jv_GetClassNameUtf8): Declare.
1320         * jni.cc (struct NativeMethodCacheEntry): New struct.
1321         (nathash): Changed type.
1322         (hash): Updated.
1323         (nathash_find_slot): Likewise.
1324         (nathash_find): Likewise.
1325         (natrehash): Likewise.
1326         (nathash_add): Likewise.
1327         (_Jv_JNI_RegisterNatives): Likewise.
1328         (_Jv_LookupJNIMethod): Likewise.
1329         Idea from Juerg Lehni <juerg@scratchdisk.com>
1331 2006-10-16  Geoffrey Keating  <geoffk@apple.com>
1333         * testsuite/libjava.jvmti/natevents.cc (env): Delete.
1334         (ExceptionCB): Fix types for printf arguments.
1335         (ExceptionCatchCB): Likewise.
1336         (SingleStepCB): Likewise.
1337         (BreakpointCB): Likewise.
1338         (FieldAccessCB): Likewise.
1339         (FieldModificationCB): Likewise.
1340         (CompiledMethodLoadCB): Likewise.
1342 2006-10-14  Keith Seitz  <keiths@redhat.com>
1344         * include/java-insns.h (enum java_code): Add op_breakpoint.
1345         * include/java-interp.h (_Jv_InterpMethod): Declare breakpoint_insn.
1346         [INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_slot.
1347         [!INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_opcode.
1348         (install_break): Declare.
1349         * interpret.cc (breakpoint_insn): Define breakpoint insn.
1350         (compile): Add op_breakpoint to "can't happen" cases.
1351         [INTERPRETER] Initialize breakpoint insn if necessary.
1352         (install_break): New method.
1353         * interpret-run.cc: Add op_breakpoint to insn_targets.
1354         Add insn_breakpoint label.
1355         * verify.cc (branch_prepass): Add op_breakpoint to unrecognized
1356         opcodes section of switch statement.
1357         (verify_instructions_0): Likewise.
1359 2006-10-12  Keith Seitz  <keiths@redhat.com>
1361         * include/jvmti-int.h (JVMTI): Declare all members "extern".
1362         * jvmti.cc (JVMTI): Define.
1364 2006-10-11  Tom Tromey  <tromey@redhat.com>
1366         * Makefile.in: Rebuilt.
1367         * Makefile.am (install-data-local): Use mkinstalldirs.
1369 2006-10-10  Tom Tromey  <tromey@redhat.com>
1371         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
1372         Removed obsolete comment.
1374 2006-10-10  Keith Seitz  <keiths@redhat.com>
1376         * include/java-interp.h (_Jv_InterpMethod::get_insn): Declare.
1377         (_Jv_InterpMethod::set_insn): Declare.
1378         * interpret.cc (_Jv_InterpMethod::get_insn): New method.
1379         (_Jv_InterpMethod::get_insn): New method.
1381 2006-10-10  Tom Tromey  <tromey@redhat.com>
1383         * prims.cc (_Jv_PrependVersionedLibdir): Use
1384         _Jv_platform_path_separator.
1386 2006-10-10  Tom Tromey  <tromey@redhat.com>
1388         PR libgcj/29205:
1389         * Makefile.in: Rebuilt.
1390         * Makefile.am (install-data-local): Install the .pc file.
1391         (pkgconfig_DATA): Removed.
1393 2006-10-03  Gary Benson  <gbenson@redhat.com>
1395         * java/net/InetAddress.java
1396         (<clinit>): Reorder the static initializers.
1398 2006-10-02  Gary Benson  <gbenson@redhat.com>
1400         * java/net/InetAddress.java
1401         (checkConnect): Reinstated.
1402         (loopbackAddress): Ensure initialized from non-null object.
1404 2006-09-30  Keith Seitz  <keiths@redhat.com>
1406         * include/java-interp.h (prepared): Change type to pc_t.
1407         (insn_index): Define for both DIRECT_THREADED and bytecode interpreters.
1408         * interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo.
1409         (insn_index): Implement for bytecode interpreter.
1410         * interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class
1411         qualifier to resolve_pool_entry.
1412         [!DIRECT_THREADED] (AVAL2U): Likewise.
1413         [!DIRECT_THREADED] bytecode() cannot be called without an object.
1414         Changed all typos.
1415         [!DIRECT_THREADED] Likewise for defining_class.
1417 2006-09-26  Jack Howarth  <howarth@bromo.med.uc.edu>
1419         PR target/26792:
1420         * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP
1421         if HAVE_GETIPINFO not defined.
1422         * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise.
1423         (_Jv_StackTrace::getLineNumberForFrame): Likewise.
1424         * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO.
1425         * aclocal.m4, configure, include/config.h.in, Makefile.in:
1426         Rebuilt.
1428 2006-09-27  Tom Tromey  <tromey@redhat.com>
1430         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201712
1431         * java/util/Locale.java (hashcode): No longer transient.
1432         (writeObject): Use ObjectOutputStream.PutField and
1433         defaultWriteObject.
1434         (readObject): Use defaultReadObject.
1436 2006-09-25  Keith Seitz  <keiths@redhat.com>
1438         * gnu/classpath/jdwp/VMVirtualMachine.java
1439         (_jdwp_suspend_counts): New private variable.
1440         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1441         (initialize): Initialize _jdwp_suspend_counts.
1442         (suspendThread): Implement.
1443         (resumeThread): Implement.
1444         (getSuspendCount): Implement.
1446 2006-09-22  Marco Trudel  <mtrudel@gmx.ch>
1448         * jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.  Marked JNICALL.
1450 2006-09-21  Keith Seitz  <keiths@redhat.com>
1452         * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled
1453         events.
1454         (check_enabled_event): New function.
1455         (check_enabled_events): New function.
1456         (post_event): New function.
1457         (_Jv_JVMTI_SetEventNotificationMode): New function.
1458         (_Jv_JVMTI_SetEventCallbacks): New function.
1459         (_Jv_JVMTI_Interface): Define SetEventNotificationMode and
1460         SetEventCallbacks members.
1461         * include/jvmti-int.h: New file.
1462         * include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define.
1463         (_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define.
1464         * testsuite/libjava.jvmti/events.java: New file.
1465         * testsuite/libjava.jvmti/events.out: New file.
1466         * testsuite/libjava.jvmti/natevents.cc: New file. 
1468 2006-09-21  Sandro Tolaini  <tolaini@libero.it>
1470         * configure.ac: Don't use darwin-signal.h as signal handler for
1471         Darwin/i386.
1472         * configure.host: Enable Darwin/i386 as a supported host, with no
1473         signal unwinding.
1475 2006-09-20  Keith Seitz  <keiths@redhat.com>
1477         * jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked
1478         and return JVMTI_ERROR_OUT_OF_MEMORY if necessary.
1479         (_Jv_JVMTI_GetClassMethods): Likewise.
1480         (_Jv_JVMTI_GetClassLoaderClasses): Likewise.
1481         (_Jv_JVMTI_GetJNIFunctionTable): Likewise.
1482         (_Jv_JVMTI_GetSystemProperty): Likewise.
1484 2006-09-20  Keith Seitz  <keiths@redhat.com>
1486         * jvmti.cc (_Jv_JVMTI_GetErrorName): New function.
1487         (_Jv_JVMTI_Interface): Define GetErrorName member.
1488         * testsuite/libjava.jvmti/geterrorname.java: New file.
1489         * testsuite/libjava.jvmti/geterrorname.out: New file.
1490         * testsuite/libjava.jvmti/natgeterrorname.cc: New file.
1492 2006-09-20  Gary Benson  <gbenson@redhat.com>
1494         * java/net/InetAddress.java: Mostly merged with Classpath.
1495         * java/net/VMInetAddress.java: New file.
1496         * sources.am, Makefile.in: Rebuilt.
1498         * java/net/natVMNetworkInterfacePosix.cc
1499         (getInterfaces): Create InetAddress objects using
1500         InetAddress.getByAddress.
1501         * gnu/java/net/natPlainSocketImplPosix.cc
1502         (accept, getOption): Likewise.
1503         * gnu/java/net/natPlainDatagramSocketImplPosix.cc
1504         (peekData, receive, getLocalAddress): Likewise.
1506 2006-09-19  Keith Seitz  <keiths@redhat.com>
1508         * testsuite/libjava.jvmti/jvmti.exp: New file.
1510 2006-09-19  Keith Seitz  <keiths@redhat.com>
1512         * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.
1513         (THREAD_CHECK_VALID): Likewise.
1514         (THREAD_CHECK_ALIVE): Likewise.
1515         (_Jv_JVMTI_SuspendThread): Call THREAD_CHECK_VALID on a Thread not
1516         jthread.
1517         (_Jv_JVMTI_ResumeThread): Likewise.
1518         (_Jv_JVMTI_InterruptThread): Likewise.
1520         (_Jv_JVMTI_DisposeEnvironment): Probably unwise to dereference an object
1521         that was just freed.
1523 2006-09-19  Mark Wielaard  <mark@klomp.org>
1525         Fixes bug #29137
1526         * java/util/logging/LogManager.java (addLogger): Always check for
1527         existing children of a new Logger.
1529 2006-09-19  Tom Tromey  <tromey@redhat.com>
1531         * java/util/logging/LogManager.java: Re-merged with Classpath.
1533 2006-09-18  Tom Tromey  <tromey@redhat.com>
1535         * configure: Rebuilt.
1537 2006-09-18  Petr Salinger  <Petr.Salinger@seznam.cz>
1539         * configure.host: Handle kfreebsd.
1541 2006-09-18  Petr Salinger  <Petr.Salinger@seznam.cz>
1543         * configure: Rebuilt.
1544         * shlibpath.m4: Handle GNU/kFreeBSD.
1546 2006-09-14  Tom Tromey  <tromey@redhat.com>
1548         PR boehm-gc/29068:
1549         * boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
1550         (_Jv_GCDetachThread): Likewise.
1552 2006-09-14  Andreas Schwab  <schwab@suse.de>
1554         * posix-threads.cc: Include "posix.h".
1556 2006-09-13  Geoffrey Keating  <geoffk@apple.com>
1558         * posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
1559         microseconds; use gettimeofday when available.
1560         * posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
1561         timeout calculation.
1562         * testsuite/libjava.lang/Thread_Sleep_2.java: New.
1563         * testsuite/libjava.lang/Thread_Sleep_2.out: New.
1564         * testsuite/libjava.lang/Thread_Sleep_2.xfail: New.
1566 2006-09-12  Tom Tromey  <tromey@redhat.com>
1568         PR java/29013:
1569         * testsuite/libjava.lang/PR29013.out: Likewise.
1570         * testsuite/libjava.lang/PR29013.java: New file.
1572 2006-09-12  Tom Tromey  <tromey@redhat.com>
1574         * testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.
1576 2006-09-07  Matthias Klose  <doko@debian.org>
1578         * Makefile.am (AM_CXXFLAGS): Remove duplicate define.
1579         * Makefile.in: Regenerate.
1581 2006-09-06  Keith Seitz  <keiths@redhat.com>
1583         * java/lang/Class.h (_Jv_FindInterpreterMethod): Change return type
1584         to _Jv_MethodBase instead of _Jv_InterpMethod.
1585         * java/lang/natClass.cc (_Jv_FindInterpreterMethod): Likewise.
1586         Do not check access flags.
1587         Fix some minor style anomalies.
1588         
1589 2006-09-01  Geoffrey Keating  <geoffk@apple.com>
1591         * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
1592         Pass -lgcj to linker for C++ files on Darwin.
1594 2006-09-01  Keith Seitz  <keiths@redhat.com>
1596         * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.
1597         (THREAD_CHECK_VALID): Likewise.
1598         (THREAD_CHECK_IS_ALIVE): Likewise.
1599         (NULL_CHECK): Likewise.
1600         (ILLEGAL_ARGUMENT): Likewise.
1602 2006-09-01  Keith Seitz  <keiths@redhat.com>
1604         * include/jvm.h (_Jv_JVMTI_Init): Declare.
1605         * jvmti.cc (_Jv_JVMTI_Init): New function.
1606         * prims.cc (_Jv_CreateJavaVM): Initialize JVMTI.
1608         * jvmti.cc (ILLEGAL_ARGUMENT): New macro.
1609         (_Jv_JVMTI_Allocate): Use ILLEGAL_ARUMENT.
1611         * jvmti.cc (_jvmtiEnvironments): New linked list of
1612         JVMTI environments.
1613         (FOREACH_ENVIRONMENT): New macro.
1614         (_envListLock): New object to act as synchronization lock
1615         for _jvmtiEnvironments.
1616         (_Jv_JVMTI_DisposeEnvironment): Check for NULL environment.
1617         Remove the environment from the list of known environments.
1618         (_Jv_GetJVMTIEnv): Add the new environment to the list
1619         of known environments.
1621 2006-09-01  Gary Benson  <gbenson@redhat.com>
1623         * java/net/InetAddress.java (getLocalHost): Refactor to avoid
1624         security check if getLocalHostname() fails and to provide more
1625         meaningful exceptions it the security check fails.
1627 2006-09-01  Gary Benson  <gbenson@redhat.com>
1629         * java/net/InetAddress.java (getByAddress): Create Inet4Address
1630         objects when passed IPv4-mapped IPv6 addresses.
1631         (getByName, getAllByName): Defer to the above to ensure that the
1632         correct Inet*Address objects are returned.
1634 2006-09-01  Gary Benson  <gbenson@redhat.com>
1636         * java/net/InetAddress.java (getByName, getAllByName):
1637         Only perform security check when DNS lookups are required.
1639 2006-08-31  Keith Seitz  <keiths@redhat.com>
1641         * include/jvmti_md.h: New file.
1643         * jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
1644         Pass millis to _Jv_CondWait.
1646 2006-08-31  Tom Tromey  <tromey@redhat.com>
1648         PR libgcj/28698:
1649         * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro.  Declare primitive
1650         classes.
1652 2006-08-24  Keith Seitz  <keiths@redhat.com>
1654         * prims.cc (remoteDebug): New global.
1655         (jdwpOptions): New global.
1656         (parse_x_arg): Add processing for "X" options "debug" and
1657         "runjdwp:"
1658         (_Jv_RunMain): If debugging, start up JDWP backend.
1659         Send VM_INIT and VM_DEATH when appropriate.
1661 2006-08-23  Keith Seitz  <keiths@redhat.com>
1663         * gnu/classpath/jdwp/VMVirtualMachine.java
1664         (initialize): Declare.
1665         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1666         (initialize): Get and save JVMTI environment.
1668 2006-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
1670         PR libgcj/27890
1671         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
1672         Set gnu.classpath.home.url to TOOLEXECLIBDIR.
1673         * configure.ac: Do not add --with-native-libdir to
1674         ac_configure_args.
1675         * java/security/libgcj.security: Remove file.
1676         * java/util/logging/logging.properties: Likewise.
1677         * classpath/m4/acinclude.m4 (CLASSPATH_TOOLEXECLIBDIR): New macro.
1678         * classpath/resource/Makefile.am (loggingdir): Define to
1679         toolexeclibdir.
1680         (securitydir): Likewise.
1681         * classpath/configure.ac: Call CLASSPATH_TOOLEXECLIBDIR.
1682         Set default nativeexeclibdir using toolexeclibdir.
1683         * HACKING: Fix classpath aclocal arguments.
1684         * Makefile.am (secdir): Remove variable.
1685         (propdir): Likewise.
1686         (AM_CXXFLAGS): Replace LIBDIR definition with TOOLEXECLIBDIR
1687         definition.
1688         (all_property_files): Remove variable.
1689         (install-data-local): Do not install libgcj.security or
1690         logging.properties.
1691         * configure, Makefile.in, classpath/configure,
1692         classpath/Makefile.in, classpath/native/jni/java-lang/Makefile.in,
1693         classpath/native/jni/midi-alsa/Makefile.in,
1694         classpath/native/jni/classpath/Makefile.in,
1695         classpath/native/jni/midi-dssi/Makefile.in,
1696         classpath/native/jni/Makefile.in,
1697         classpath/native/jni/java-nio/Makefile.in,
1698         classpath/native/jni/java-net/Makefile.in,
1699         classpath/native/jni/gconf-peer/Makefile.in,
1700         classpath/native/jni/java-io/Makefile.in,
1701         classpath/native/jni/xmlj/Makefile.in,
1702         classpath/native/jni/java-util/Makefile.in,
1703         classpath/native/jni/qt-peer/Makefile.in,
1704         classpath/native/jni/gtk-peer/Makefile.in,
1705         classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
1706         classpath/native/target/Linux/Makefile.in,
1707         classpath/native/target/Makefile.in,
1708         classpath/native/target/generic/Makefile.in,
1709         classpath/native/fdlibm/Makefile.in,
1710         classpath/native/plugin/Makefile.in,
1711         classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
1712         classpath/tools/Makefile.in, classpath/doc/Makefile.in,
1713         classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
1714         classpath/external/Makefile.in,
1715         classpath/external/sax/Makefile.in,
1716         classpath/external/w3c_dom/Makefile.in,
1717         classpath/external/relaxngDatatype/Makefile.in,
1718         classpath/include/Makefile.in, classpath/aclocal.m4,
1719         classpath/examples/Makefile.in, aclocal.m4: Regenerate.
1721 2006-08-21  Bryce McKinlay  <mckinlay@redhat.com>
1723         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
1724         to GC.
1725         (_Jv_DetachCurrentThread): Detach thread from GC.
1726         * include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
1727         Declare.
1728         * boehm.cc (_Jv_GCAttachThread): New function.
1729         (_Jv_GCDetachThread): Likewise.
1731 2006-08-19  Ranjit Mathew  <rmathew@gcc.gnu.org>
1733         * sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC"
1734         as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp"
1735         function prologue.
1737 2006-08-17  H.J. Lu  <hongjiu.lu@intel.com>
1739         * Makefile.am (install-exec-hook): Support $(DESTDIR).
1740         * Makefile.in: Regenerated.
1742 2006-08-16  Tom Tromey  <tromey@redhat.com>
1744         * libtool-version: Updated.
1746 2006-08-16  Jakub Jelinek  <jakub@redhat.com>
1747             Bryce McKinlay  <bryce@mckinlay.net.nz>
1749         * configure, Makefile.in: Rebuilt.
1750         * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
1751         (libgcj_bc_la_SOURCES): New variable.
1752         (libgcj_bc_la_LDFLAGS): Likewise.
1753         (libgcj_bc_la_LIBADD): Likewise.
1754         (libgcj_bc_la_DEPENDENCIES): Likewise.
1755         (libgcj_bc_la_LINK): Likewise.
1756         (libgcj_bc_dummy_LINK): Likewise.
1757         (libgcj_bc.la): New target.
1758         (install-exec-hook): Likewise.
1759         * libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
1760         * libgcj_bc.c: New file.
1761         * configure.ac (LIBGCJ_SPEC): New subst.
1762         * configure.host (use_libgcj_bc): New variable.
1764 2006-08-15  Kyle Galloway  <kgallowa@redhat.com>
1766         * include/java-interp.h (_Jv_InterpMethod::run_debug): New method.
1767         * interpret.cc: Added placeholder for debug variable type info to STORE*
1768         macros.
1769         (_Jv_InterpMethod::run_debug): New method.
1770         (_Jv_InterpMethod::run_sync_object_debug): New method.
1771         (_Jv_InterpMethod::run_sync_class_debug): New method.
1772         (_Jv_InterpMethod::run_normal_debug): New method.
1773         (_Jv_InterpMethod::run_class_debug): New method.
1774         (_Jv_InterpMethod::ncode ()): Changed to select either debug or normal
1775         versions of these functions.
1776         * interpret-run.cc: New file, holds contents of old     
1777         _Jv_InterpMethod::run method.
1778         * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Changed to select
1779         appropriate function for debug or normal mode.
1781 2006-08-14  Mark Wielaard  <mark@klomp.org>
1783         Imported GNU Classpath 0.92
1784         * HACKING: Add more importing hints. Update automake version
1785         requirement.
1787         * configure.ac (gconf-peer): New enable AC argument.
1788         Add --disable-gconf-peer and --enable-default-preferences-peer
1789         to classpath configure when gconf is disabled.
1790         * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
1791         gnu/java/awt/dnd/peer/gtk to bc. Classify
1792         gnu/java/security/Configuration.java as generated source file.
1794         * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
1795         gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
1796         gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
1797         gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
1798         gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
1799         gnu/java/lang/management/VMThreadMXBeanImpl.java,
1800         gnu/java/lang/management/VMMemoryMXBeanImpl.java,
1801         gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
1802         classes.
1803         * java/lang/management/VMManagementFactory.java: Likewise.
1804         * java/net/VMURLConnection.java: Likewise.
1805         * gnu/java/nio/VMChannel.java: Likewise.
1807         * java/lang/Thread.java (getState): Add stub implementation.
1808         * java/lang/Class.java (isEnum): Likewise.
1809         * java/lang/Class.h (isEnum): Likewise.
1811         * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.
1813         * javax/naming/spi/NamingManager.java: New override for StackWalker
1814         functionality.
1816         * configure, sources.am, Makefile.in, gcj/Makefile.in,
1817         include/Makefile.in, testsuite/Makefile.in: Regenerated.
1819 2006-08-14  Gary Benson  <gbenson@redhat.com>
1821         * java/lang/Thread.java (accessControlState): New field.
1822         * java/security/VMAccessControlState.java: New file.
1823         * java/security/natVMAccessControlState.cc: Likewise.
1824         * java/security/VMAccessController.java
1825         (contexts, inGetContext): Removed.
1826         (pushContext, popContext, getContext): Use VMAccessControlState.
1827         * Makefile.am (nat_source_files): Updated.
1828         * sources.am, Makefile.in: Rebuilt.
1830 2006-08-10  Gary Benson  <gbenson@redhat.com>
1832         * include/java-stack.h (GetAccessControlStack): Change return
1833         type.
1834         * stacktrace.cc (accesscontrol_trace_fn): Record the number of
1835         Java frames encountered.
1836         (GetAccessControlStack): Return a flag indicating whether a call to
1837         doPrivileged was encountered rather than an array of method names.
1838         * java/security/natVMAccessController.cc (getStack): Change return
1839         type.
1840         * java/security/VMAccessController.java (getStack): Likewise.
1841         (getContext): Change to reflect the above.
1843 2006-08-09  Gary Benson  <gbenson@redhat.com>
1845         * stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames.
1847 2006-08-09  Gary Benson  <gbenson@redhat.com>
1849         * java/lang/System.java (setSecurityManager): Javadoc fix.
1850         * java/security/VMAccessController.java (getContext): Comment fix.
1852 2006-08-09  Gary Benson  <gbenson@redhat.com>
1854         * include/java-stack.h (accesscontrol_trace_fn): Declare.
1855         (GetAccessControlStack): Likewise.
1856         (GetClassMethodStack): Remove.
1857         * stacktrace.cc (accesscontrol_trace_fn): New method.
1858         (GetAccessControlStack): Likewise.
1859         (GetClassMethodStack): Remove.
1860         * java/security/natVMAccessController.cc (getStack): Use
1861         GetAccessControlStack.
1863 2006-08-07  Gary Benson  <gbenson@redhat.com>
1865         PR libgcj/28340:
1866         * java/lang/ClassLoader.java (clinit): Install a default
1867         security manager if java.security.manager is defined.
1868         (getParent, getSystemClassLoader): Use the correct stack
1869         frame during security checks.
1870         * java/net/URLClassLoader.java (findClass): Avoid calling
1871         this.toString() during VM initialization.
1872         (runtimeInitialized): New method.
1873         * java/net/natURLClassLoader.cc: New file.
1874         * Makefile.am (nat_source_files): Added the above.
1875         * Makefile.in: Rebuilt.
1877 2006-08-07  Gary Benson  <gbenson@redhat.com>
1878             Casey Marshall <csm@gnu.org>
1880         * java/lang/SecurityManager.java (getSecurityContext,
1881         checkPermission, checkAccess, checkRead, checkConnect,
1882         checkPackageAccess, checkPackageDefinition, checkPackageList):
1883         Merge with Classpath.
1884         (SecurityContext): Remove.
1886 2006-08-07  Gary Benson  <gbenson@redhat.com>
1888         * java/security/VMAccessController.java (pushContext, popContext,
1889         getContext): Use Thread.currentThread() to determine when we're
1890         bootstrapping.
1891         (runtimeInitialized): Remove.
1892         * java/security/natVMAccessController.cc (runtimeInitialized):
1893         Remove.
1895 2006-08-06  Tom Tromey  <tromey@redhat.com>
1897         PR libgcj/28491:
1898         * configure, include/config.h.in: Rebuilt.
1899         * configure.ac: Look for ifaddrs.h, getifaddrs.
1900         * java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Use
1901         getifaddrs if available.
1903 2006-08-06  Tom Tromey  <tromey@redhat.com>
1905         PR libgcj/28576:
1906         * gnu/java/net/natPlainDatagramSocketImplPosix.cc (connect):
1907         Implemented.
1908         (disconnect): Likewise.
1909         (send): Handle already-connected case.
1911 2006-08-04  Mark Wielaard  <mark@klomp.org>
1913         * jvmti.cc: Include gcj/method.h.
1915 2006-08-04  Tom Tromey  <tromey@redhat.com>
1917         * jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.
1918         (_Jv_JVMTI_GetObjectSize): Cast _Jv_GetArrayElementFromElementType
1919         result to _Jv_uintptr_t.
1921 2006-08-01  Keith Seitz  <keiths@redhat.com>
1923         * gnu/classpath/jdwp/VMFrame.java: Update to Classpath 0.91.
1924         * gnu/classpath/jdwp/VMIdManager.java: Likewise.
1925         * gnu/classpath/jdwp/VMMethod.java: Likewise.
1926         * gnu/classpath/jdwp/VMVirtualMachine: Likewise.
1927         * gnu/classpath/jdwp/natVMFrame.java: New file.
1928         * gnu/classpath/jdwp/natVMMethod.java: New file.
1929         * gnu/classpath/jdwp/natVMVirtualMachine.java: New file.
1930         * Makefile.am (nat_source_files): Add new filles.
1931         * Makefile.in: Regenerated.
1933 2006-08-03  Tom Tromey  <tromey@redhat.com>
1935         * jvmti.cc (REQUIRE_PHASE): New macro.
1936         (_Jv_JVMTI_InterruptThread): New function.
1937         (_Jv_JVMTI_CreateRawMonitor): Likewise.
1938         (_Jv_JVMTI_DestroyRawMonitor): Likewise.
1939         (_Jv_JVMTI_RawMonitorEnter): Likewise.
1940         (_Jv_JVMTI_RawMonitorExit): Likewise.
1941         (_Jv_JVMTI_RawMonitorWait): Likewise.
1942         (_Jv_JVMTI_RawMonitorNotify): Likewise.
1943         (_Jv_JVMTI_RawMonitorNotifyAll): Likewise.
1944         (_Jv_JVMTI_Allocate): Likewise.
1945         (_Jv_JVMTI_Deallocate): Likewise.
1946         (_Jv_JVMTI_GetClassModifiers): Likewise.
1947         (_Jv_JVMTI_GetClassMethods): Likewise.
1948         (_Jv_JVMTI_IsInterface): Likewise.
1949         (_Jv_JVMTI_IsArrayClass): Likewise.
1950         (_Jv_JVMTI_GetClassLoader): Likewise.
1951         (_Jv_JVMTI_GetObjectHashCode): Likewise.
1952         (_Jv_JVMTI_GetFieldModifiers): Likewise.
1953         (_Jv_JVMTI_IsFieldSynthetic): Likewise.
1954         (_Jv_JVMTI_GetMethodModifiers): Likewise.
1955         (_Jv_JVMTI_IsMethodNative): Likewise.
1956         (_Jv_JVMTI_IsMethodSynthetic): Likewise.
1957         (_Jv_JVMTI_GetClassLoaderClasses): Likewise.
1958         (_Jv_JVMTI_ForceGarbageCollection): Likewise.
1959         (_Jv_JVMTI_GetSystemProperty): Likewise.
1960         (_Jv_JVMTI_SetSystemProperty): Likewise.
1961         (_Jv_JVMTI_GetTime): Likewise.
1962         (_Jv_JVMTI_GetAvailableProcessors): Likewise.
1963         (_Jv_JVMTI_AddToBootstrapClassLoaderSearch): Likewise.
1964         (_Jv_JVMTI_SetVerboseFlag): Likewise.
1965         (_Jv_JVMTI_GetObjectSize): Likewise.
1966         (_Jv_JVMTI_SetJNIFunctionTable): Likewise.
1967         (_Jv_JVMTI_GetJNIFunctionTable): Likewise.
1968         (_Jv_JVMTI_Interface): Updated.
1969         (NULL_CHECK): New macro.
1971 2006-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
1973         PR libgcj/28546
1974         * include/no-threads.h: Declare _Jv_Thread_t as empty class.
1976 2006-08-01  Andreas Tobler  <a.tobler@schweiz.ch>
1978         * gnu/classpath/natSystemProperties.cc: Add additional check for
1979         getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
1980         (SystemProperties::insertSystemProperties): Likewise.
1981         * java/io/natFilePosix.cc (File::performList): Add
1982         additional check for readdir_r on _POSIX_PTHREAD_SEMANTICS.
1983         * java/util/natVMTimeZone.cc (VMTimeZone::getSystemTimeZoneId): Add
1984         additional check for localtime_r on _POSIX_PTHREAD_SEMANTICS.
1986 2006-07-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
1988         PR libgcj/28312
1989         * classpath/native/jni/midi-alsa/Makefile.am
1990         (libgjsmalsa_la_LDFLAGS): Add -avoid-version.
1991         * classpath/native/jni/midi-alsa/Makefile.in: Regenerate.
1992         * classpath/native/jni/midi-dssi/Makefile.am
1993         (libgjsmdssi_la_LDFLAGS): Add -avoid-version.
1994         * classpath/native/jni/midi-dssi/Makefile.in: Regenerate.
1995         * classpath/native/jni/qt-peer/Makefile.am: Remove GCJ LOCAL
1996         sections.
1997         (libqtpeer_la_LDFLAGS): Add -avoid-version.
1998         * classpath/native/jni/qt-peer/Makefile.in: Regenerate.
1999         * classpath/native/jni/gtk-peer/Makefile.am
2000         (libgtkpeer_la_LDFLAGS): Add -avoid-version.
2001         * classpath/native/jni/gtk-peer/Makefile.in: Regenerate.
2002         * classpath/native/jawt/Makefile.am (libjawt_la_LDFLAGS): Add
2003         -avoid-version.
2004         * classpath/native/jawt/Makefile.in: Regenerate.
2005         * Makefile.am (libjvm_la_LDFLAGS): Add -avoid-version.
2006         * Makefile.in: Regenerate.
2008 2006-07-28  Andrew Haley  <aph@redhat.com>
2010         * gnu/gcj/runtime/natSharedLibLoader.cc (init): Don't set
2011         curLoader to VMClassLoader::bootLoader.
2013 2006-07-28  Gary Benson  <gbenson@redhat.com>
2014             Casey Marshall <csm@gnu.org>
2016         PR libgcj/13604:
2017         * include/java-stack.h (GetClassMethodStack): Declare.
2018         * stacktrace.cc (GetClassMethodStack): New method.
2019         * java/security/AccessController.java: Removed.
2020         * java/security/VMAccessController.java: New file.
2021         * java/security/natVMAccessController.cc: Likewise.
2022         * Makefile.am (nat_source_files): Added the above.
2023         * sources.am, Makefile.in: Rebuilt.
2025 2006-07-28  Gary Benson  <gbenson@redhat.com>
2027         * java/lang/SecurityManager.java (currentClassLoader,
2028         currentLoadedClass, classLoaderDepth, checkAccess, checkRead,
2029         checkWrite, checkTopLevelWindow, checkPrintJobAccess,
2030         checkSystemClipboardAccess, checkAwtEventQueueAccess,
2031         checkPackageList): Remerged javadoc.
2033 2006-07-28  Gary Benson  <gbenson@redhat.com>
2035         * prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized
2036         from the start to the end of the function.  Remove references
2037         to VMThrowable.trace_enabled.
2038         * java/lang/natVMThrowable.cc (fillInStackTrace): Use
2039         runtimeInitialized rather than trace_enabled to decide
2040         whether to inhibit stack trace generation.
2041         * java/lang/VMThrowable.java (trace_enabled): Removed.
2043 2006-07-23  Mohan Embar  <gnustuff@thisiscool.com>
2045         * include/win32-threads.h (_Jv_Thread_t): Explicitly
2046         name the struct.
2048 2006-07-23  Mohan Embar  <gnustuff@thisiscool.com>
2050         * jvmti.cc (_Jv_JVMTI_SuspendThread): Add missing JNICALL
2051         attribute.
2052         (_Jv_JVMTI_ResumeThread): Likewise.
2053         (_Jv_JVMTI_DisposeEnvironment): Likewise.
2055 2006-07-21  Mohan Embar  <gnustuff@thisiscool.com>
2057         * gnu/java/net/natPlainSocketImplPosix.cc (bind): Clear
2058         SockAddr before using - needed for OS X/PPC.
2060 2006-07-21  Keith Seitz  <keiths@redhat.com>
2062         * boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration,
2063         just the contents.
2064         (_Jv_ResumeThread): Likewise.
2065         * posix-threads.cc: Revert 2006-06-19 _Jv_ThreadDebugSuspend,
2066         _Jv_ThreadDebugResume, _Jv_ThreadDebugSuspendCount patch. Moving
2067         to JVMTI instead.
2068         * include/posix-threads.h: Likewise.
2069         * win32-threads.cc: Likewise.
2070         * include/win32-threads.h: Likewise.
2071         * jvmti.cc (_Jv_JVMTI_SuspentThread): New function.
2072         (_Jv_JVMTI_ResumeThread): New function.
2073         (_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread.
2075 2006-07-21  David Daney  <ddaney@avtrex.com>
2077         PR libgcj/28426
2078         * configure: Regenerated.
2080 2006-07-21  Mark Wielaard  <mark@klomp.org>
2082         * java/io/OutputStreamWriter.java (flush): Create work if null.
2084 2006-07-21  Keith Seitz  <keiths@redhat.com>
2086         * java/lang/natThread.cc (_Jv_ThreadGetData): New function.
2087         * Makefile.am (java/lang/Thread.h): Add friend function 
2088         _Jv_ThreadGetData.
2089         * Makefile.in: Regenerate.
2091 2006-07-20  Keith Seitz  <keiths@redhat.com>
2093         * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
2094         (_Jv_JVMTI_Interface): Define DisposeEnvironment method.
2096 2006-07-20  Keith Seitz  <keiths@redhat.com>
2098         * include/jvm.h (_Jv_GetJVMTIEnv): Declare.
2099         * jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests.
2100         * jvmti.cc: New file.
2101         * Makefile.am (libgcj_la_SOURCES): Add jvmti.cc.
2102         * Makefile.in: Regenerate. 
2104 2006-07-20  David Daney  <ddaney@avtrex.com>
2106         * configure.host: Enable the interpreter for mipsel-* and mips-*.
2108 2006-07-20  David Daney  <ddaney@avtrex.com>
2110         * include/mips-signal.h: Update copyright.
2111         (struct kernel_sigaction): Removed.
2112         (SIGNAL_HANDLER): Changed prototype.
2113         (MAKE_THROW_FRAME): Added cast.
2114         (INIT_SEGV): Use sigaction instead of syscall.
2115         (INIT_FPE): Likewise.
2117 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
2119         * configure: Regenerate.
2121 2006-07-18  Gary Benson  <gbenson@redhat.com>
2123         * java/io/File.java (deleteOnExit): Fix security check.
2125 2006-07-14  Anthony Green  <green@redhat.com>
2127         * java/io/natFilePosix.cc (performSetLastModified): Return true on
2128         success, false otherwise.
2130 2006-07-14  Ranjit Mathew  <rmathew@gcc.gnu.org>
2132         * stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use
2133         _Unwind_Backtrace().
2134         (_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ
2135         EH.
2136         (_Jv_StackTrace::GetClassContext): Unconditionally use
2137         _Unwind_Backtrace().
2138         (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
2139         * sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define.
2140         (_Unwind_GetIPInfo): Define macro if SJLJ EH is in use.
2141         (_Unwind_GetRegionStart): Likewise.
2142         (_Unwind_Backtrace): Likewise.
2143         (fallback_backtrace): Accept additional unwind trace function
2144         argument.  Call it during unwinding.  Stop when any of _Jv_RunMain(),
2145         _Jv_ThreadStart() or main() is seen during unwinding.
2146         * sysdep/generic/backtrace.h (fallback_backtrace): Accept an
2147         additional unwind trace function argument.
2149 2006-07-14  Gary Benson  <gbenson@redhat.com>
2151         * java/io/File.java (internalExists): New method.
2152         (exists): Use internalExists.
2153         (internalIsDirectory): New method.
2154         (isDirectory): Use internalIsDirectory.
2155         (createTempFile): Use internalExists and internalIsDirectory.
2157 2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>
2159         * interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.
2161 2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>
2163         * interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
2164         (_Jv_InterpMethod::run): SAVE_PC before executing any instruction 
2165         using resolve_pool_entry, as it can throw. Likewise for div/rem ops
2166         that can throw ArithmeticException.
2168 2006-07-12  Gary Benson  <gbenson@redhat.com>
2170         * java/io/File.java (renameTo): Fix security checks.
2172 2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>
2174         PR libgcj/28352
2175         * stacktrace.cc (getLineNumberForFrame): Roll back PC by 1 when
2176         looking up line number for interpreted frame.
2178 2006-07-07  Bryce McKinlay  <mckinlay@redhat.com>
2179             Geoffrey Keating <geoffk@apple.com>
2181         * testsuite/libjava.lang/StackTrace2.java: Renamed from
2182         StackTrace.java. Changed class name.
2183         * testsuite/libjava.lang/StackTrace2.out: Renamed from
2184         StackTrace.out. Updated for new class name.
2186 2006-07-07  Ranjit Mathew  <rmathew@gcc.gnu.org>
2188         * sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function's
2189         prologue to determine its beginning.  Stop unwinding when we reach
2190         JvRunMain().
2192 2006-07-07  Gary Benson  <gbenson@redhat.com>
2194         * Makefile.am (BOOT_CLASS_PATH_DIR): Only contain libgcj.jar.
2195         * Makefile.in: Regenerate.
2197 2006-07-06  Bryce McKinlay <mckinlay@redhat.com>
2199         * stacktrace.cc (ClassForFrame): Remove commented-out code.
2200         (UnwindTraceFn): Use _Unwind_GetIPInfo and adjust IP
2201         only when needed.
2202         (getLineNumberForFrame): Don't adjust IP here.
2203         * testsuite/libjava.lang/StackTrace.java: New test case.
2204         * testsuite/libjava.lang/StackTrace.out: Ditto.
2206 2006-07-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
2208         * Makefile.am (libgcj_tools_la_GCJFLAGS): Add
2209         -fno-indirect-classes.
2210         * Makefile.in: Regenerate.
2211         * gcj/Makefile.in: Regenerate.
2212         * include/Makefile.in: Regenerate.
2213         * testsuite/Makefile.in: Regenerate.
2215 2006-07-06  Bryce McKinlay <mckinlay@redhat.com>
2217         * boehm.cc (_Jv_MarkObj): Mark the next_or_version field.
2219 2006-07-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
2221         * configure.ac (ac_configure_args): Add --with-native-libdir.
2222         * configure: Regenerate.
2223         * classpath/native/jni/gtk-peer/Makefile.am: Remove GCJ LOCAL
2224         sections.
2225         * classpath/native/jni/gtk-peer/Makefile.in: Regenerate.
2226         * classpath/native/jawt/Makefile.am: Remove GCJ LOCAL sections.
2227         * classpath/native/jawt/Makefile.in: Regenerate.
2228         * classpath/native/plugin/Makefile.am: Remove GCJ LOCAL sections.
2229         * classpath/native/plugin/Makefile.in: Regenerate.
2231 2006-07-05  Ranjit Mathew  <rmathew@gcc.gnu.org>
2232             Danny Smith  <dannysmith@users.sourceforge.net>
2234         * libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for
2235         startfile.
2236         * configure.ac: Allow targets to affect the spec for startfile
2237         by specifying a THREADSTARTFILESPEC variable.  Define this for
2238         the win32 threads package to include crtmt.o.
2239         * configure: Regenerate.
2240         * win32.cc (_CRT_MT): Remove definition.
2241         (__mingwthr_key_dtor): Likewise.
2243 2006-07-04  Andreas Tobler  <a.tobler@schweiz.ch>
2245         * testsuite/lib/libjava.exp (libjava_init): Call the GCJ_UNDER_TEST with
2246         the -B$specdir.
2248         PR libgcj/28226:
2249         * include/posix.h (_Jv_platform_dladdr): Remove const qualifier.
2250         * include/win32.h (_Jv_platform_dladdr): Likewise.
2251         * posix.cc (_Jv_platform_dladdr): Likewise.
2252         * win32.cc (_Jv_platform_dladdr): Likewise.
2254         * testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar
2255         instead of libgcj-*.jar.
2257 2006-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
2259         PR libgcj/28244:
2260         * Makefile.am (libgcj_tools_la_DEPENDENCIES): Add libgcj.la and
2261         libgcj.spec.
2262         * Makefile.in: Regenerate.
2264 2006-06-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
2266         * classpath/tools/Makefile.am: Comment out tools wrapper creation.
2267         (TOOLS_ZIP): Rename tools.zip tools.jar.
2268         (noinst_DATA): Do not install tools.jar.
2269         * classpath/tools/Makefile.in: Regenerate.
2270         * classpath/Makefile.am (SUBDIRS): Add tools.
2271         (DIST_SUBDIRS): Likewise.
2272         * classpath/Makefile.in: Regenerate.
2273         * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj-tools.la.
2274         (jar_DATA): Add libgcj-tools-$(gcc_version).jar.
2275         (bin_PROGRAMS): Add gappletviewer, gjarsigner and gkeytool.
2276         Add build logic for libgcj-tools.la,
2277         libgcj-tools-$(gcc_version).jar and gappletviewer, gjarsigner and
2278         gkeytool.
2279         * Makefile.in: Regenerate.
2281 2006-06-29  Ranjit Mathew  <rmathew@gcc.gnu.org>
2283         * gcj/javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in
2284         C99.
2285         * include/java-stack.h: Include stdlib.h.
2286         (_Jv_AddrInfo): New structure to hold address information.
2287         * include/posix.h (_Jv_platform_dladdr): Declare.
2288         * include/win32.h (_Jv_platform_dladdr): Declare.
2289         (backtrace): Remove declaration.
2290         * posix.cc: Include dlfcn.h if available.  Include java-stack.h.
2291         (_Jv_platform_dladdr): Define.
2292         * win32.cc: Include string.h.  Include java-stack.h.
2293         (backtrace): Remove.
2294         (_Jv_platform_dladdr): Define.
2295         * sysdep/i386/backtrace.h (fallback_backtrace): Check that a potential
2296         frame pointer value is 32-bit word-aligned.  Use operand of the CALL
2297         instruction calling the current function to find its starting address.
2298         * stacktrace.cc: Do not include dlfcn.h.  Include platform.h.
2299         (_Jv_StackTrace::getLineNumberForFrame): Use _Jv_platform_dladdr()
2300         instead of dladdr().
2301         (_Jv_StackTrace::GetStackTraceElements): Use nCodeMap even for Windows.
2302         (_Jv_StackTrace::GetClassContext): Use fallback_backtrace() for
2303         targets with SJLJ exceptions instead of using _Unwind_Backtrace().
2304         (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
2306 2006-06-27  Tom Tromey  <tromey@redhat.com>
2308         * java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
2309         Set 'out.count' earlier.
2310         (close): Call setFinished on converter.
2311         (flush): Always write work buffer.
2312         * java/io/PrintStream.java (writeChars): Do 'do' loop.
2313         (close): Call setFinished on converter.  Write a 'flush' array.
2314         * java/lang/natString.cc (getBytes): Call setFinished on
2315         converter.
2316         * gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New
2317         field.
2318         (write): Set hasBytes.  Changed 'finished' logic.
2319         (havePendingBytes): Rewrote.
2320         (setFinished): New method.
2321         * gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method.
2322         * testsuite/libjava.lang/RH194522.java: New file.
2323         * testsuite/libjava.lang/RH194522.out: New file.
2325 2006-06-27  Marco Trudel  <mtrudel@gmx.ch>
2327         * boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define
2328         conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS,
2329         !GC_WIN32_THREADS and !GC_DARWIN_THREADS.
2331 2006-06-27  Tom Tromey  <tromey@redhat.com>
2333         PR libgcj/28178:
2334         * jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument.
2335         (_Jv_JNI_DeleteGlobalRef): Likewise.
2336         * testsuite/libjava.jni/PR28178.java: New file.
2337         * testsuite/libjava.jni/PR28178.c: New file.
2338         * testsuite/libjava.jni/PR28178.out: New file.
2340 2006-06-26  Keith Seitz  <keiths@redhat.com>
2342         * include/posix-threads.h: Fix coding style aberrations from
2343         2006-06-19 check-in.
2344         * posix-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
2345         * include/win32-threads.h (_Jv_ThreadDebugSuspend): Ditto.
2346         * win32-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
2348 2006-06-26  Keith Seitz  <keiths@redhat.com>
2350         * include/no-gc.h (_Jv_SuspendThread): Declare.
2351         (_Jv_ResumeThread): Likewise.
2352         * include/boehm-gc.h (_Jv_SuspendThread): Declare.
2353         (_Jv_ResumeThread): Likewise.
2354         * nogc.cc (_Jv_SuspendThread): New function.
2355         (_Jv_ResumeThread): Likewise.
2356         * boehm.cc (_Jv_SuspendThread): New function.
2357         (_Jv_ResumeThread): Likewise.
2359 2006-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2361         * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
2362         Link against -ljvm, not -lgcj.
2364 2006-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2366         * Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to
2367         toolexeclibdir.
2368         * Makefile.in: Regenerate.
2370 2006-06-22  Tom Tromey  <tromey@redhat.com>
2372         * java/lang/reflect/natField.cc (getAddr): Allow setting of final
2373         field when it is accessible.
2375 2006-06-21  Bryce McKinlay  <mckinlay@redhat.com>
2377         * include/win32-threads.h (_Jv_ThreadDesc_t): New typedef. 
2378         (_Jv_GetPlatformThreadID): New function.
2379         * include/posix-threads.h (_Jv_ThreadDesc_t): New typedef.
2380         (_Jv_GetPlatformThreadID): New function.
2382 2006-06-20  Bryce McKinlay  <mckinlay@redhat.com>
2384         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
2385         Bump "java.class.version" to 48.0.
2387 2006-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
2389         * Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to
2390         "$(dbexecdir)".
2391         Build libjvm.la.
2392         * Makefile.in: Regenerate.
2393         * jni.cc (the_vm): Rename and export as ...
2394         (_Jv_the_vm): New exported symbol.
2395         (_Jv_JNI_AttachCurrentThread): Export.
2396         (_Jv_JNI_DestroyJavaVM): Replace the_vm references with _Jv_the_vm
2397         references.
2398         (_Jv_GetJavaVM): Likewise.
2399         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
2400         JNI_GetCreatedJavaVMs): Move to ...
2401         * jni-libjvm.cc: New file.
2403 2006-06-19  Andrew Haley  <aph@redhat.com>
2405         * testsuite/libjava.lang/PR27908.out: New.
2406         * testsuite/libjava.lang/PR27908.java: New.
2408 2006-06-19  Keith Seitz  <keiths@redhat.com>
2410         * include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
2411         (_Jv_ThreadDebugResume): Declare.
2412         (_Jv_ThreadDebugSuspendCount): Declare.
2413         * posix-threads.cc (_Jv_ThreadDebugSuspend): New function.
2414         (_Jv_ThreadDebugSuspendCount): New function.
2415         (_Jv_ThreadDebugResume): New function.
2417         * include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare.
2418         (_Jv_ThreadDebugResume): Declare.
2419         (_Jv_ThreadDebugSuspendCount): Declare.
2420         * win32-threads.cc (_Jv_ThreadDebugSuspend): New function.
2421         (_Jv_ThreadDebugSuspendCount): New function.
2422         (_Jv_ThreadDebugResume): New function.
2423         
2424 2006-06-16  Andrew Haley  <aph@redhat.com>
2426         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
2427         copy the whole Class instance from the initializer: instead, copy
2428         everything but the first word (the vtable pointer).
2429         Change prototype to (const char* class_initializer).
2430         (_Jv_RegisterNewClasses): Change prototype to (const char**).
2431         * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
2432         (const char**).
2434 2006-06-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
2436         * classpath/Makefile.am: Do not recurse into tools directory.
2437         * classpath/Makefile.in: Regenerate.
2439 2006-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
2441         * classpath/tools/Makefile.am (gappletviewer_CFLAGS): Add
2442         -I$(top_srcdir)/include.
2443         (gjarsigner_CFLAGS): Likewise.
2444         (gkeytool_CFLAGS): Likewise.
2445         * classpath/tools/Makefile.in: Regenerate.
2447 2006-06-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2449         * configure: Regenerate.
2450         * Makefile.in: Regenerate.
2451         * configure.ac (--enable-plugin): New option.
2452         (ac_configure_args): Add --enable-tool-wrappers.
2453         (ac_configure_args): Add --disable-plugin unless --enable-plugin
2454         was specified.
2455         * gcj/Makefile.in: Regenerate.
2456         * sources.am (gnu_java_net_source_files): Add
2457         classpath/gnu/java/net/IndexListParser.java.
2458         (property_files): Remove
2459         classpath/resource/gnu/classpath/tools/jarsigner/MessageBundle.properties,
2460         classpath/resource/gnu/classpath/tools/keytool/MessageBundle.properties.
2461         Add
2462         classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties,
2463         classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle_de.properties,
2464         classpath/resource/gnu/classpath/tools/getopt/Messages.properties,
2465         classpath/resource/gnu/classpath/tools/jar/messages.properties,
2466         classpath/resource/gnu/classpath/tools/jarsigner/messages.properties,
2467         classpath/resource/gnu/classpath/tools/keytool/messages.properties,
2468         classpath/resource/gnu/classpath/tools/native2ascii/messages.properties,
2469         classpath/resource/gnu/classpath/tools/serialver/messages.properties.
2470         * classpath/Makefile.in: Regenerate.
2471         * classpath/native/jni/gtk-peer/cairographics2d.h,
2472         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
2473         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
2474         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
2475         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
2476         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
2477         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c,
2478         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c:
2479         Merge from GNU Classpath.
2480         * classpath/native/Makefile.in: Regenerate.
2481         * classpath/native/jawt/Makefile.in: Regenerate.
2482         * classpath/native/jawt/Makefile.am: Install libjawt.so in GCJ's
2483         versioned library directory.
2484         * classpath/native/Makefile.am: Add plugin directory if
2485         --enable-plugin was specified.
2486         * classpath/native/plugin/Makefile.in: Regenerate.  *
2487         classpath/native/plugin/Makefile.am: Install libgcjwebplugin.so in
2488         GCJ's versioned library directory.
2489         * classpath/resource/gnu/classpath/tools/native2ascii/messages.properties:
2490         New file.
2491         * classpath/resource/gnu/classpath/tools/getopt/Messages.properties:
2492         Likewise.
2493         * classpath/resource/gnu/classpath/tools/jarsigner/messages.properties:
2494         Likewise.
2495         * classpath/resource/gnu/classpath/tools/jarsigner/MessageBundle.properties:
2496         Remove file.
2497         * classpath/resource/gnu/classpath/tools/keytool/messages.properties:
2498         New file.
2499         * classpath/resource/gnu/classpath/tools/keytool/MessageBundle.properties:
2500         Remove file.
2501         * classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle_de.properties:
2502         New file.
2503         * classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties:
2504         Likewise.
2505         * classpath/resource/gnu/classpath/tools/jar/messages.properties:
2506         Likewise.
2507         * classpath/resource/gnu/classpath/tools/serialver/messages.properties:
2508         Likewise.
2509         * classpath/gnu/java/net/IndexListParser.java:
2510         Likewise.
2511         * classpath/gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
2512         classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
2513         classpath/gnu/java/awt/peer/gtk/CairoSurface.java,
2514         classpath/gnu/java/awt/peer/gtk/GdkFontPeer.java,
2515         classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
2516         classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
2517         classpath/gnu/java/awt/peer/gtk/GdkTextLayout.java,
2518         classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java,
2519         classpath/gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java,
2520         classpath/gnu/java/awt/peer/gtk/GtkVolatileImage.java,
2521         classpath/gnu/java/awt/font/opentype/truetype/VirtualMachine.java,
2522         classpath/gnu/java/awt/java2d/PolyEdge.java,
2523         classpath/gnu/java/awt/java2d/AbstractGraphics2D.java: Merge from
2524         GNU Classpath.
2525         * classpath/tools/toolwrapper.c: Replace tools.zip reference with
2526         libgcj-tools-4.2.0.jar.
2527         * classpath/tools/Makefile.in: Regenerate.
2528         * classpath/tools/Makefile.am: Rename tools.zip to
2529         libgcj-tools-4.2.0.jar.  Install libgcj-tools-4.2.0.jar in
2530         $(datadir)/java.
2531         * classpath/javax/swing/JTabbedPane.java,
2532         classpath/javax/swing/text/DefaultStyledDocument.java,
2533         classpath/javax/swing/text/html/HTMLDocument.java,
2534         classpath/javax/swing/text/GapContent.java,
2535         classpath/javax/swing/JComponent.java,
2536         classpath/javax/swing/RepaintManager.java,
2537         classpath/javax/swing/plaf/basic/BasicComboBoxRenderer.java,
2538         classpath/javax/swing/plaf/basic/BasicScrollBarUI.java,
2539         classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2540         classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java,
2541         classpath/javax/swing/plaf/basic/BasicLookAndFeel.java,
2542         classpath/javax/swing/plaf/metal/MetalButtonUI.java,
2543         classpath/java/text/Bidi.java,
2544         classpath/java/awt/image/BufferedImage.java,
2545         classpath/java/awt/datatransfer/DataFlavor.java,
2546         classpath/java/awt/geom/AffineTransform.java,
2547         classpath/java/awt/dnd/DropTargetDropEvent.java,
2548         classpath/java/awt/dnd/DropTargetContext.java,
2549         classpath/java/awt/font/TextLayout.java,
2550         classpath/include/gnu_java_awt_peer_gtk_ComponentGraphics.h,
2551         classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
2552         classpath/include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h,
2553         classpath/include/gnu_java_awt_peer_gtk_GdkTextLayout.h,
2554         classpath/include/gnu_java_awt_peer_gtk_GtkVolatileImage.h,
2555         classpath/include/gnu_java_awt_peer_gtk_CairoSurface.h: Merge from
2556         GNU Classpath.
2557         * classpath/include/gnu_java_awt_peer_gtk_GdkGraphics.h,
2558         classpath/include/gnu_java_awt_peer_gtk_GdkGraphics2D.h,
2559         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
2560         classpath/native/jni/gtk-peer/gtkcairopeer.h,
2561         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c:
2562         Remove files.
2563         * classpath/Makefile.am (SUBDIRS, DIST_SUBDIRS): Include tools
2564         directory.
2565         * include/Makefile.in: Regenerate.
2566         * testsuite/Makefile.in: Regenerate.
2568 2006-06-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2570         * configure.host (hppa*-*): Set 'enable_hash_synchronization_default'
2571         to no.
2573 2006-06-12  Andrew Haley  <aph@redhat.com>
2575         * testsuite/libjava.lang/PR27908.out: Delete.
2576         * testsuite/libjava.lang/PR27908.java: Delete.
2578 2006-06-12  Andrew Haley  <aph@redhat.com>
2580         * testsuite/libjava.lang/PR27908.out: New.
2581         * testsuite/libjava.lang/PR27908.java: New.
2583 2006-06-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
2585         * configure.ac (ac_configure_args): Add --disable-plugin.
2586         (--enable-gtk-cairo): Remove option.
2587         * configure: Regenerate.
2589 2006-06-09  Tom Tromey  <tromey@redhat.com>
2591         PR libgcj/27730:
2592         * java/lang/Thread.java (threadId): New field.
2593         (nextThreadId): New static field.
2594         (Thread): Initialize new field.
2595         (getId): New method.
2597 2006-06-09  Tom Tromey  <tromey@redhat.com>
2599         * java/lang/Class.java (getClassLoaderInternal): Now native.
2601 2006-06-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
2603         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
2604         (getDefaultScreenDevice): Remove unnecessary GCJ local hack.
2605         * gnu/java/awt/peer/gtk/GtkToolkit.java (getSystemEventQueueImpl):
2606         Likewise.
2607         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (registerFormat):
2608         Likewise.
2610 2006-06-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
2612         * java/lang/String.java, classpath/native/jni/classpath/jcl.h,
2613         classpath/native/jni/qt-peer/eventmethods.h,
2614         classpath/native/jni/qt-peer/qtmenupeer.cpp,
2615         classpath/native/jni/qt-peer/.cvsignore,
2616         classpath/native/jni/gtk-peer/gdkdisplay.h,
2617         classpath/native/jni/gtk-peer/cairographics2d.h,
2618         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
2619         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,
2620         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
2621         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
2622         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c,
2623         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
2624         classpath/native/jni/gtk-peer/.cvsignore,
2625         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c,
2626         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
2627         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
2628         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
2629         classpath/native/jni/gtk-peer/gtkpeer.h,
2630         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
2631         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c,
2632         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c,
2633         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c,
2634         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c,
2635         classpath/native/jni/gtk-peer/Makefile.am,
2636         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
2637         classpath/native/jawt/Makefile.am,
2638         classpath/native/jawt/.cvsignore,
2639         classpath/native/target/Linux/Makefile.in,
2640         classpath/native/plugin/gcjwebplugin.cc,
2641         classpath/native/plugin/Makefile.am,
2642         classpath/native/plugin/.cvsignore,
2643         classpath/resource/Makefile.in,
2644         classpath/gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
2645         classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
2646         classpath/gnu/java/awt/peer/gtk/CairoSurface.java,
2647         classpath/gnu/java/awt/peer/gtk/GdkFontPeer.java,
2648         classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
2649         classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
2650         classpath/gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
2651         classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2652         classpath/gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java,
2653         classpath/gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2654         classpath/gnu/java/awt/peer/gtk/GdkGraphics.java,
2655         classpath/gnu/java/awt/peer/gtk/GtkToolkit.java,
2656         classpath/gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java,
2657         classpath/gnu/java/awt/peer/gtk/BufferedImageGraphics.java,
2658         classpath/gnu/java/awt/peer/gtk/GdkTextLayout.java,
2659         classpath/gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java,
2660         classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java,
2661         classpath/gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java,
2662         classpath/gnu/java/awt/peer/gtk/GtkImage.java,
2663         classpath/gnu/java/awt/peer/gtk/GtkVolatileImage.java,
2664         classpath/gnu/java/awt/peer/gtk/GdkGlyphVector.java,
2665         classpath/gnu/java/awt/peer/gtk/GtkCanvasPeer.java,
2666         classpath/gnu/java/awt/peer/swing/SwingContainerPeer.java,
2667         classpath/gnu/java/awt/peer/swing/SwingComponent.java,
2668         classpath/gnu/java/awt/peer/swing/SwingTextFieldPeer.java,
2669         classpath/gnu/java/awt/peer/swing/SwingMenuBarPeer.java,
2670         classpath/gnu/java/awt/peer/swing/SwingFramePeer.java,
2671         classpath/gnu/java/awt/peer/swing/SwingComponentPeer.java,
2672         classpath/gnu/java/awt/peer/swing/SwingWindowPeer.java,
2673         classpath/gnu/java/awt/print/JavaPrinterJob.java,
2674         classpath/gnu/java/awt/print/PostScriptGraphics2D.java,
2675         classpath/gnu/java/awt/print/SpooledDocument.java,
2676         classpath/gnu/java/awt/print/JavaPrinterGraphics.java,
2677         classpath/gnu/java/awt/BitwiseXORComposite.java,
2678         classpath/gnu/java/awt/font/GNUGlyphVector.java,
2679         classpath/gnu/java/awt/font/opentype/NameDecoder.java,
2680         classpath/gnu/java/awt/java2d/RasterGraphics.java,
2681         classpath/gnu/java/awt/java2d/TexturePaintContext.java,
2682         classpath/gnu/java/awt/java2d/PolyEdge.java,
2683         classpath/gnu/java/awt/java2d/AbstractGraphics2D.java,
2684         classpath/gnu/java/awt/java2d/AlphaCompositeContext.java,
2685         classpath/gnu/java/awt/java2d/ImagePaint.java,
2686         classpath/gnu/java/awt/Buffers.java,
2687         classpath/gnu/classpath/Configuration.java.in,
2688         classpath/gnu/javax/swing/text/html/CombinedAttributes.java,
2689         classpath/gnu/javax/swing/text/html/CharacterAttributeTranslator.java,
2690         classpath/gnu/javax/swing/text/html/parser/htmlAttributeSet.java,
2691         classpath/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java,
2692         classpath/gnu/javax/swing/text/html/ImageViewIconFactory.java,
2693         classpath/tools/toolwrapper.c,
2694         classpath/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java,
2695         classpath/tools/gnu/classpath/tools/native2ascii/Messages.java,
2696         classpath/tools/gnu/classpath/tools/getopt/FileArgumentCallback.java,
2697         classpath/tools/gnu/classpath/tools/getopt/OptionGroup.java,
2698         classpath/tools/gnu/classpath/tools/getopt/OptionException.java,
2699         classpath/tools/gnu/classpath/tools/getopt/Messages.java,
2700         classpath/tools/gnu/classpath/tools/getopt/Option.java,
2701         classpath/tools/gnu/classpath/tools/getopt/Parser.java,
2702         classpath/tools/gnu/classpath/tools/getopt/ClasspathToolParser.java,
2703         classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java,
2704         classpath/tools/gnu/classpath/tools/jarsigner/Main.java,
2705         classpath/tools/gnu/classpath/tools/jarsigner/Messages.java,
2706         classpath/tools/gnu/classpath/tools/jarsigner/package.html,
2707         classpath/tools/gnu/classpath/tools/keytool/ListCmd.java,
2708         classpath/tools/gnu/classpath/tools/keytool/StorePasswdCmd.java,
2709         classpath/tools/gnu/classpath/tools/keytool/ExportCmd.java,
2710         classpath/tools/gnu/classpath/tools/keytool/GenKeyCmd.java,
2711         classpath/tools/gnu/classpath/tools/keytool/Messages.java,
2712         classpath/tools/gnu/classpath/tools/keytool/package.html,
2713         classpath/tools/gnu/classpath/tools/keytool/Command.java,
2714         classpath/tools/gnu/classpath/tools/keytool/IdentityDBCmd.java,
2715         classpath/tools/gnu/classpath/tools/keytool/Main.java,
2716         classpath/tools/gnu/classpath/tools/keytool/DeleteCmd.java,
2717         classpath/tools/gnu/classpath/tools/keytool/CertReqCmd.java,
2718         classpath/tools/gnu/classpath/tools/keytool/SelfCertCmd.java,
2719         classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java,
2720         classpath/tools/gnu/classpath/tools/keytool/KeyPasswdCmd.java,
2721         classpath/tools/gnu/classpath/tools/keytool/ImportCmd.java,
2722         classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java,
2723         classpath/tools/gnu/classpath/tools/rmi/registry/package.html,
2724         classpath/tools/gnu/classpath/tools/rmi/RMIC.txt,
2725         classpath/tools/gnu/classpath/tools/rmi/RMIC.java,
2726         classpath/tools/gnu/classpath/tools/appletviewer/ErrorApplet.java,
2727         classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java,
2728         classpath/tools/gnu/classpath/tools/appletviewer/CommonAppletContext.java,
2729         classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletContext.java,
2730         classpath/tools/gnu/classpath/tools/appletviewer/AppletSecurityManager.java,
2731         classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletContext.java,
2732         classpath/tools/gnu/classpath/tools/appletviewer/AppletWarning.java,
2733         classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletViewer.java,
2734         classpath/tools/gnu/classpath/tools/appletviewer/AppletTag.java,
2735         classpath/tools/gnu/classpath/tools/appletviewer/ConsoleDialog.java,
2736         classpath/tools/gnu/classpath/tools/appletviewer/Main.java,
2737         classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java,
2738         classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletViewer.java,
2739         classpath/tools/gnu/classpath/tools/appletviewer/TagParser.java,
2740         classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletWindow.java,
2741         classpath/tools/gnu/classpath/tools/appletviewer/CommonAppletStub.java,
2742         classpath/tools/gnu/classpath/tools/serialver/Messages.java,
2743         classpath/tools/gnu/classpath/tools/serialver/SerialVer.java,
2744         classpath/tools/gnu/classpath/tools/jar/Creator.java,
2745         classpath/tools/gnu/classpath/tools/jar/Entry.java,
2746         classpath/tools/gnu/classpath/tools/jar/Lister.java,
2747         classpath/tools/gnu/classpath/tools/jar/Main.java,
2748         classpath/tools/gnu/classpath/tools/jar/Updater.java,
2749         classpath/tools/gnu/classpath/tools/jar/Messages.java,
2750         classpath/tools/gnu/classpath/tools/jar/Extractor.java,
2751         classpath/tools/gnu/classpath/tools/jar/Action.java,
2752         classpath/tools/gnu/classpath/tools/jar/Indexer.java,
2753         classpath/tools/gnu/classpath/tools/jar/WorkSet.java,
2754         classpath/tools/gnu/classpath/tools/giop/GRMIC.txt,
2755         classpath/tools/gnu/classpath/tools/giop/grmic/GiopRmicCompiler.java,
2756         classpath/tools/gnu/classpath/tools/giop/GRMIC.java,
2757         classpath/tools/Makefile.am, classpath/tools/jarsigner.in,
2758         classpath/tools/keytool.in, classpath/tools/appletviewer.in,
2759         classpath/tools/.cvsignore, classpath/configure.ac,
2760         classpath/javax/swing/JTabbedPane.java,
2761         classpath/javax/swing/AbstractButton.java,
2762         classpath/javax/swing/JViewport.java,
2763         classpath/javax/swing/KeyboardManager.java,
2764         classpath/javax/swing/JMenuItem.java,
2765         classpath/javax/swing/JMenuBar.java,
2766         classpath/javax/swing/MenuSelectionManager.java,
2767         classpath/javax/swing/JOptionPane.java,
2768         classpath/javax/swing/JSpinner.java,
2769         classpath/javax/swing/JCheckBoxMenuItem.java,
2770         classpath/javax/swing/JEditorPane.java,
2771         classpath/javax/swing/JFormattedTextField.java,
2772         classpath/javax/swing/JTree.java,
2773         classpath/javax/swing/CellRendererPane.java,
2774         classpath/javax/swing/JScrollPane.java,
2775         classpath/javax/swing/tree/VariableHeightLayoutCache.java,
2776         classpath/javax/swing/tree/TreeNode.java,
2777         classpath/javax/swing/tree/FixedHeightLayoutCache.java,
2778         classpath/javax/swing/tree/DefaultTreeCellEditor.java,
2779         classpath/javax/swing/tree/TreePath.java,
2780         classpath/javax/swing/tree/RowMapper.java,
2781         classpath/javax/swing/tree/DefaultMutableTreeNode.java,
2782         classpath/javax/swing/tree/DefaultTreeModel.java,
2783         classpath/javax/swing/tree/AbstractLayoutCache.java,
2784         classpath/javax/swing/tree/TreeSelectionModel.java,
2785         classpath/javax/swing/tree/DefaultTreeSelectionModel.java,
2786         classpath/javax/swing/tree/DefaultTreeCellRenderer.java,
2787         classpath/javax/swing/tree/ExpandVetoException.java,
2788         classpath/javax/swing/JList.java,
2789         classpath/javax/swing/table/JTableHeader.java,
2790         classpath/javax/swing/table/AbstractTableModel.java,
2791         classpath/javax/swing/table/DefaultTableModel.java,
2792         classpath/javax/swing/table/TableCellEditor.java,
2793         classpath/javax/swing/table/TableCellRenderer.java,
2794         classpath/javax/swing/ProgressMonitor.java,
2795         classpath/javax/swing/JToolBar.java,
2796         classpath/javax/swing/TransferHandler.java,
2797         classpath/javax/swing/DefaultCellEditor.java,
2798         classpath/javax/swing/DefaultButtonModel.java,
2799         classpath/javax/swing/JLayeredPane.java,
2800         classpath/javax/swing/text/DefaultEditorKit.java,
2801         classpath/javax/swing/text/DefaultCaret.java,
2802         classpath/javax/swing/text/FieldView.java,
2803         classpath/javax/swing/text/JTextComponent.java,
2804         classpath/javax/swing/text/TextAction.java,
2805         classpath/javax/swing/text/StyleContext.java,
2806         classpath/javax/swing/text/html/HTMLDocument.java,
2807         classpath/javax/swing/text/html/MinimalHTMLWriter.java,
2808         classpath/javax/swing/text/html/ImageView.java,
2809         classpath/javax/swing/text/html/HTMLEditorKit.java,
2810         classpath/javax/swing/text/AbstractWriter.java,
2811         classpath/javax/swing/text/GapContent.java,
2812         classpath/javax/swing/text/Utilities.java,
2813         classpath/javax/swing/text/PlainView.java,
2814         classpath/javax/swing/UIManager.java,
2815         classpath/javax/swing/JSplitPane.java,
2816         classpath/javax/swing/JComponent.java,
2817         classpath/javax/swing/SwingUtilities.java,
2818         classpath/javax/swing/border/AbstractBorder.java,
2819         classpath/javax/swing/border/CompoundBorder.java,
2820         classpath/javax/swing/border/TitledBorder.java,
2821         classpath/javax/swing/border/MatteBorder.java,
2822         classpath/javax/swing/border/BevelBorder.java,
2823         classpath/javax/swing/RepaintManager.java,
2824         classpath/javax/swing/JTable.java,
2825         classpath/javax/swing/UIDefaults.java,
2826         classpath/javax/swing/DefaultDesktopManager.java,
2827         classpath/javax/swing/JMenu.java,
2828         classpath/javax/swing/JLabel.java,
2829         classpath/javax/swing/JSlider.java,
2830         classpath/javax/swing/plaf/basic/BasicToolBarUI.java,
2831         classpath/javax/swing/plaf/basic/BasicButtonUI.java,
2832         classpath/javax/swing/plaf/basic/BasicOptionPaneUI.java,
2833         classpath/javax/swing/plaf/basic/BasicTextAreaUI.java,
2834         classpath/javax/swing/plaf/basic/BasicToggleButtonUI.java,
2835         classpath/javax/swing/plaf/basic/BasicSpinnerUI.java,
2836         classpath/javax/swing/plaf/basic/BasicSliderUI.java,
2837         classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2838         classpath/javax/swing/plaf/basic/BasicComboPopup.java,
2839         classpath/javax/swing/plaf/basic/BasicCheckBoxUI.java,
2840         classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java,
2841         classpath/javax/swing/plaf/basic/BasicProgressBarUI.java,
2842         classpath/javax/swing/plaf/basic/BasicRadioButtonUI.java,
2843         classpath/javax/swing/plaf/basic/BasicPanelUI.java,
2844         classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java,
2845         classpath/javax/swing/plaf/basic/BasicTreeUI.java,
2846         classpath/javax/swing/plaf/basic/BasicTableHeaderUI.java,
2847         classpath/javax/swing/plaf/basic/BasicFileChooserUI.java,
2848         classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java,
2849         classpath/javax/swing/plaf/basic/BasicComboBoxUI.java,
2850         classpath/javax/swing/plaf/basic/BasicListUI.java,
2851         classpath/javax/swing/plaf/basic/BasicIconFactory.java,
2852         classpath/javax/swing/plaf/basic/BasicTextUI.java,
2853         classpath/javax/swing/plaf/basic/BasicLookAndFeel.java,
2854         classpath/javax/swing/plaf/basic/BasicDirectoryModel.java,
2855         classpath/javax/swing/plaf/basic/BasicRootPaneUI.java,
2856         classpath/javax/swing/plaf/basic/BasicTableUI.java,
2857         classpath/javax/swing/plaf/basic/SharedUIDefaults.java,
2858         classpath/javax/swing/plaf/multi/MultiComboBoxUI.java,
2859         classpath/javax/swing/plaf/multi/MultiListUI.java,
2860         classpath/javax/swing/plaf/multi/MultiSplitPaneUI.java,
2861         classpath/javax/swing/plaf/multi/MultiFileChooserUI.java,
2862         classpath/javax/swing/plaf/multi/MultiOptionPaneUI.java,
2863         classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java,
2864         classpath/javax/swing/plaf/multi/MultiLookAndFeel.java,
2865         classpath/javax/swing/plaf/metal/MetalSliderUI.java,
2866         classpath/javax/swing/plaf/metal/MetalIconFactory.java,
2867         classpath/javax/swing/plaf/metal/MetalComboBoxIcon.java,
2868         classpath/javax/swing/plaf/metal/MetalTabbedPaneUI.java,
2869         classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,
2870         classpath/javax/swing/plaf/metal/MetalCheckBoxUI.java,
2871         classpath/javax/swing/plaf/metal/MetalSeparatorUI.java,
2872         classpath/javax/swing/plaf/metal/MetalBorders.java,
2873         classpath/javax/swing/plaf/metal/MetalSplitPaneDivider.java,
2874         classpath/javax/swing/plaf/metal/MetalScrollBarUI.java,
2875         classpath/javax/swing/plaf/metal/MetalRootPaneUI.java,
2876         classpath/javax/swing/plaf/metal/MetalInternalFrameUI.java,
2877         classpath/javax/swing/plaf/metal/MetalRadioButtonUI.java,
2878         classpath/javax/swing/plaf/metal/MetalToolTipUI.java,
2879         classpath/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java,
2880         classpath/javax/swing/plaf/metal/MetalFileChooserUI.java,
2881         classpath/javax/swing/plaf/metal/MetalUtils.java,
2882         classpath/javax/swing/plaf/metal/MetalComboBoxButton.java,
2883         classpath/javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.java,
2884         classpath/javax/swing/plaf/metal/MetalButtonUI.java,
2885         classpath/javax/swing/JPopupMenu.java,
2886         classpath/javax/swing/JProgressBar.java,
2887         classpath/javax/swing/WindowConstants.java,
2888         classpath/javax/swing/JFrame.java,
2889         classpath/javax/swing/JFileChooser.java,
2890         classpath/javax/swing/JComboBox.java,
2891         classpath/javax/swing/event/EventListenerList.java,
2892         classpath/javax/swing/ListSelectionModel.java,
2893         classpath/javax/swing/JScrollBar.java,
2894         classpath/java/text/SimpleDateFormat.java,
2895         classpath/java/text/NumberFormat.java,
2896         classpath/java/text/class-dependencies.conf,
2897         classpath/java/awt/image/ColorModel.java,
2898         classpath/java/awt/image/BufferedImage.java,
2899         classpath/java/awt/Window.java,
2900         classpath/java/awt/ContainerOrderFocusTraversalPolicy.java,
2901         classpath/java/awt/LightweightDispatcher.java,
2902         classpath/java/awt/EventDispatchThread.java,
2903         classpath/java/awt/BasicStroke.java,
2904         classpath/java/awt/ColorPaintContext.java,
2905         classpath/java/awt/Container.java,
2906         classpath/java/awt/TexturePaint.java,
2907         classpath/java/awt/Component.java, classpath/java/awt/Font.java,
2908         classpath/java/awt/GraphicsConfiguration.java,
2909         classpath/java/awt/DefaultKeyboardFocusManager.java,
2910         classpath/java/awt/print/PrinterJob.java,
2911         classpath/java/awt/im/InputContext.java,
2912         classpath/java/awt/dnd/DragGestureRecognizer.java,
2913         classpath/java/awt/Toolkit.java,
2914         classpath/java/awt/font/GraphicAttribute.java,
2915         classpath/java/awt/font/ImageGraphicAttribute.java,
2916         classpath/java/awt/font/GlyphVector.java,
2917         classpath/java/awt/font/GlyphMetrics.java,
2918         classpath/java/awt/font/ShapeGraphicAttribute.java,
2919         classpath/java/awt/Graphics2D.java,
2920         classpath/include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h,
2921         classpath/include/gnu_java_awt_peer_gtk_ComponentGraphics.h,
2922         classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
2923         classpath/include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h,
2924         classpath/include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h,
2925         classpath/include/config.h.in,
2926         classpath/include/gnu_java_awt_peer_gtk_GdkTextLayout.h,
2927         classpath/include/gnu_java_awt_peer_gtk_GtkComponentPeer.h,
2928         classpath/include/gnu_java_awt_peer_gtk_GdkFontPeer.h,
2929         classpath/include/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.h,
2930         classpath/include/gnu_java_awt_peer_gtk_GtkVolatileImage.h,
2931         classpath/include/gnu_java_awt_peer_gtk_GtkImage.h,
2932         classpath/include/gnu_java_awt_peer_gtk_CairoSurface.h,
2933         classpath/include/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.h:
2934         Merge from GNU Classpath HEAD.
2936 2006-06-08  Tom Tromey  <tromey@redhat.com>
2938         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
2939         Set gnu.gcj.user.realname.
2941 2006-06-09  Andreas Tobler  <a.tobler@schweiz.ch>
2943         * scripts/jar.in: Replace hardcoded /bin/sh with @SHELL@.
2945 2006-06-07  Andrew Haley  <aph@redhat.com>
2947         * include/jvm.h (_Jv_Linker::maybe_adjust_signature): New.
2948         (_Jv_Linker::uaddr): New.
2949         * link.cc (resolve_pool_entry): Call search_method_in_superclasses
2950         instead of an open-coded loop around search_method_in_class.
2951         (search_method_in_class): Add a new arg, check_perms.
2952         (search_method_in_superclasses): New.
2953         (link_symbol_table): Call maybe_adjust_signature() to extract the
2954         least significnt bit of the signature pointer.  Do this three
2955         times, for instace method calls, static methods, and interfaces.
2956         Call search_method_in_superclasses() instead of
2957         _Jv_LookupDeclaredMethod.
2958         (typedef uaddr): Delete.
2959         
2960 2006-06-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
2962         * scripts/makemake.tcl (emit_bc_rule): Do not skip
2963         gnu-java-awt-peer-qt.lo.
2964         * configure.ac (QT_AWT): Remove conditional.
2965         Do not add gnu/java/awt/peer/qt to standard.omit.
2966         * classpath/native/jni/qt-peer/Makefile.am: Install libqtpeer.so
2967         in GCJ's versioned library directory.
2968         * classpath/gnu/java/awt/peer/qt/QtToolkit.java (initToolkit):
2969         Load libqtpeer.so unconditionally.
2970         * gij.cc (main): Do not re-exec gij.
2971         * Makefile.am: Remove lib-gnu-java-awt-peer-qt.lo build logic.
2972         (gij_LDFLAGS): Point -rpath at GCJ's versioned library directory
2973         when linking gij.
2975 2006-06-06  David Daney  <ddaney@avtrex.com>
2977         * gnu/gcj/runtime/NameFinder.java (show_raw): New field.
2978         (showRaw): New method.
2979         * stacktrace.cc : Include gnu/gcj/runtime/StringBuffer.h.
2980         (getLineNumberForFrame): Show IP offset in trace if line number
2981         not available and show_raw true.
2983 2006-06-06  Gary Benson  <gbenson@redhat.com>
2985         * java/io/natFilePosix.cc (getCanonicalPath): Rewritten.
2986         * configure.ac: Remove realpath check and add checks for
2987         lstat and readlink.
2988         * configure: Rebuilt.
2989         * include/config.h.in: Likewise.
2990         * java/io/File.java: Javadoc fix.
2992 2006-06-05  Andreas Schwab  <schwab@suse.de>
2994         PR libgcj/27860
2995         * link.cc: Check for closure support in libffi with FFI_CLOSURES.
2997 2006-06-05  Tom Tromey  <tromey@redhat.com>
2999         PR libgcj/27892:
3000         * gij.cc (main): Use putenv.
3002 2006-06-03  Paolo Bonzini  <bonzini@gnu.org>
3004         * scripts/jar.in: Ensure return with argument has non-empty argument.
3006 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
3008         * configure.ac (ZIP, UNZIP): New programs.
3009         (JAR): Fall back to bash script.  Generate it.
3010         (BASH_JAR): New conditional.
3011         * Makefile.am (bin_SCRIPTS): New.
3012         * scripts/jar.in: New file.
3014 2006-06-01  Bryce McKinlay  <mckinlay@redhat.com>
3016         * gnu/java/lang/MainThread (run): Revert exception chaining change.
3018 2006-05-31  Bryce McKinlay  <mckinlay@redhat.com>
3020         * prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class
3021         name, not Latin1.
3022         * gnu/java/lang/MainThread.java (run): Allow file separator char to
3023         be used in place of '.' as class-name separator. Don't chain
3024         ClassNotFoundException.
3026 2006-05-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
3028         * java/lang/VMClassLoader.java (initialize): Set default library
3029         control to LIB_NEVER.
3031 2006-05-31  Alan Modra  <amodra@bigpond.net.au>
3033         * stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
3034         interpreted classes.
3036 2006-05-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
3038         * scripts/makemake.tcl (emit_bc_rule): Do not skip
3039         gnu-java-awt-peer-gtk.lo.
3040         Include gnu/java/awt/peer/gtk Java objects in libgcj.so.  Use C++
3041         ABI for gnu/java/awt/peer/gtk package.
3042         * gnu/classpath/natSystemProperties.cc (PrependVersionedLibdir):
3043         New function.
3044         (insertSystemProperties): Only set java.ext.dirs if it is not
3045         already defined.  Prepend GCJ_VERSIONED_LIBDIR to module search
3046         path where necessary.
3047         * configure.ac (GTK_AWT): Remove automake conditional.
3048         Do not add gnu/java/awt/peer/gtk to standard.omit.
3049         * include/jvm.h (_Jv_PrependVersionedLibdir): New function
3050         declaration.
3051         * gij.cc (main): Prepend LD_LIBRARY_PATH with GCJ_VERSIONED_LIBDIR
3052         and re-exec self.
3053         * Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR and
3054         PATH_SEPARATOR macros.
3055         Remove lib-gnu-java-awt-peer-gtk.la and libgcjawt.la build logic.
3056         * prims.cc (_Jv_PrependVersionedLibdir): New function.
3058 2006-05-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
3060         * java/lang/natThread.cc (countStackFrames): Do not throw
3061         UnsupportedOperationException.
3062         (resume): Likewise.
3063         (stop): Likewise.
3064         (suspend): Likewise.
3066 2006-05-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3068         * configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
3069         * configure: Rebuilt.
3070         * include/config.h.in: Likewise.
3071         * include/posix.h: If HAVE_SYS_RW_LOCK_H is defined, include
3072         <sys/rw_lock.h>.
3074 2006-05-24  Tom Tromey  <tromey@redhat.com>
3076         PR libgcj/27024:
3077         * sources.am, Makefile.in: Rebuilt.
3078         * gnu/java/net/DefaultContentHandlerFactory.java: Removed.
3079         * java/net/URLConnection.java: Removed.
3081 2006-05-24  Carlos O'Donell  <carlos@codesourcery.com>
3083         * Makefile.am: Add install-html target. Add install-html to .PHONY
3084         * Makefile.in: Regenerate.
3085         * aclocal.m4: Regenerate.
3086         * gcj/Makefile.in: Regenerate.
3087         * include/Makefile.in: Regenerate.
3088         * testsuite/Makefile.in: Regenerate.
3090 2006-05-24  Andreas Tobler  <a.tobler@schweiz.ch>
3092         * testsuite/libjava.lang/stacktrace.java: New file.
3093         * testsuite/libjava.lang/stacktrace.out: Likewise.
3095 2006-05-24  Tom Tromey  <tromey@redhat.com>
3097         * sources.am, Makefile.in: Rebuilt.
3098         * scripts/makemake.tcl: Accept -verbose command-line option.
3099         (is_verbose): New global.
3100         (verbose): Use it.
3101         (classify_source_file): Don't special case '.' for 'package'
3102         type.
3104 2006-05-24  Tom Tromey  <tromey@redhat.com>
3106         PR libgcj/27729:
3107         * java/lang/reflect/natField.cc (getAddr): Added parens.
3108         * java/lang/reflect/natConstructor.cc (getModifiersInternal):
3109         Renamed.  Don't mask flags.
3110         * java/lang/reflect/Constructor.java (CONSTRUCTOR_MODIFIERS): New
3111         constant.
3112         (getModifiersInternal): Renamed.
3113         (getModifiers): Rewrote.
3114         (isSynthetic, isVarArgs): New methods.
3115         (hashCode): Rewrote.
3116         (addTypeParameters, toGenericString): New methods.
3117         (getTypeParameters): Rewrote.
3118         (getSignature): New method.
3119         (getGenericParameterTypes, getGenericExceptionTypes): Likewise.
3120         * java/lang/reflect/natMethod.cc (getModifiersInternal):
3121         Renamed.  Don't mask flags.
3122         * java/lang/reflect/natField.cc (getModifiersInternal): Renamed.
3123         Don't mask flags.
3124         * java/lang/reflect/Modifier.java (BRIDGE, VARARGS, SYNTHETIC,
3125         ENUM): New constants.
3126         (INVISIBLE): Changed value.
3127         * java/lang/reflect/Method.java: Mostly merged with Classpath.
3128         (getModifiersInternal): Renamed.
3129         (getModifiers): Rewrote.
3130         (isBridge, isSynthetic, isVarArgs): New methods.
3131         (toGenericString): Likewise.
3132         (getTypeParameters): Likewise.
3133         (getSignature): Likewise.
3134         (getGenericExceptionTypes, getGenericParameterTypes,
3135         getGenericReturnType): Likewise.
3136         (METHOD_MODIFIERS): New constant.
3137         * java/lang/reflect/Field.java: Mostly merged with Classpath.
3138         Added javadoc everywhere.
3139         (getModifiersInternal): Renamed.
3140         (getModifiers, isSynthetic, isEnumConstant): Rewrote.
3141         (toGenericString): New method.
3142         (getGenericType, getSignature): Likewise.
3143         (FIELD_MODIFIERS): New constant.
3145 2006-05-24  Tom Tromey  <tromey@redhat.com>
3147         PR libgcj/27731:
3148         * java/lang/natMath.cc (cbrt, cosh, expm1, hypot, log1p, sinh,
3149         tanh): New methods.
3150         * java/lang/Math.java (cbrt, cosh, expm1, hypot, log1p, sinh,
3151         tanh): Declare.
3153 2006-05-22  Mark Wielaard  <mark@klomp.org>
3155         * HACKING: Update GNU Classpath import instructions.
3157 2006-05-21  Andreas Tobler  <a.tobler@schweiz.ch>
3159         * java/lang/natClass.cc (_Jv_FindMethodInCache): Mark klass, name and
3160         signature as MAYBE_UNUSED for HAVE_TLS == 0.
3161         (_Jv_AddMethodToCache): Mark klass and method as MAYBE_UNUSED for
3162         HAVE_TLS == 0.
3164 2006-05-20  Andreas Tobler  <a.tobler@schweiz.ch>
3165             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3167         * configure.ac: Add the POSIX thread libs to the HP-UX PA
3168         configuration. Add signal specification for HP-UX PA.
3169         * configure: Rebuilt.
3170         * configure.host: Add defaults for the HP-UX PA architecture.
3171         Add descriptor files for HP-UX PA 32-bit and 64-bit.
3172         * include/hppa-signal.h: New file.
3173         * include/posix.h: Add shared library suffix for HP-UX.
3174         * sysdep/pa/descriptor-pa32-hpux.h: New file.
3175         * sysdep/pa/descriptor-pa64-hpux.h: Likewise.
3177 2006-05-19  Ranjit Mathew  <rmathew@gcc.gnu.org>
3179         * ChangeLog: Correct incorrect GNU Classpath version in the
3180         entry for the latest import.
3182 2006-05-18  Tom Tromey  <tromey@redhat.com>
3184         * source.am, Makefile.in: Rebuilt.
3185         * Makefile.am (property_files): Removed.
3186         * scripts/makemake.tcl (properties_map): New global.
3187         (properties_files): Likewise.
3188         (emit_property_files): New proc.
3189         (scan_packages): Scan META-INF.
3190         Print property_files variable.  Scan classpath/resource.
3192 2006-05-18  Tom Tromey  <tromey@redhat.com>
3194         * testsuite/libjava.special/special.exp (gcj_special_pr21115):
3195         Renamed.
3196         (gcj_write_and_byte_compile): New proc.
3197         (gcj_special_lazy_illegal_access): Likewise.
3199 2006-05-18  Mark Wielaard  <mark@klomp.org>
3201         Imported GNU Classpath 0.91
3202         * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
3204         * sources.am: Regenerated.
3205         * gcj/javaprims.h: Regenerated.
3206         * Makefile.in: Regenerated.
3207         * gcj/Makefile.in: Regenerated.
3208         * include/Makefile.in: Regenerated.
3209         * testsuite/Makefile.in: Regenerated.
3211         * gnu/java/lang/VMInstrumentationImpl.java: New override.
3212         * gnu/java/net/local/LocalSocketImpl.java: Likewise.
3213         * gnu/classpath/jdwp/VMMethod.java: Likewise.
3214         * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
3215         interface.
3216         * java/lang/Thread.java: Add UncaughtExceptionHandler.
3217         * java/lang/reflect/Method.java: Implements GenericDeclaration and
3218         isSynthetic(),
3219         * java/lang/reflect/Field.java: Likewise.
3220         * java/lang/reflect/Constructor.java
3221         * java/lang/Class.java: Implements Type, GenericDeclaration,
3222         getSimpleName() and getEnclosing*() methods.
3223         * java/lang/Class.h: Add new public methods.
3224         * java/lang/Math.java: Add signum(), ulp() and log10().
3225         * java/lang/natMath.cc (log10): New function.
3226         * java/security/VMSecureRandom.java: New override.
3227         * java/util/logging/Logger.java: Updated to latest classpath
3228         version.
3229         * java/util/logging/LogManager.java: New override.
3231 2006-05-15  Bryce McKinlay  <mckinlay@redhat.com>
3233         PR libgcj/27352
3234         * java/lang/Class.java (getClassLoaderInternal): New method.
3235         (forName (String, Class)): Use getClassLoaderInternal.
3236         (getPackage): Likewise.
3237         (getResource): Likewise.
3238         (getResourceAsStream): Likewise.
3239         (desiredAssertionStatus): Likewise.
3241 2006-05-15  Andreas Tobler  <a.tobler@schweiz.ch>
3243         * stacktrace.cc (StackTrace::FillInFrameInfo): Use
3244         UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the
3245         klass->methods[j].ncode.
3247 2006-05-13  Tom Tromey  <tromey@redhat.com>
3249         * sources.am, Makefile.in: Rebuilt.
3250         * Makefile.am (nat_source_files): Mention natVMChannels.cc, not
3251         natChannels.cc.
3252         * java/nio/channels/natVMChannels.cc: Renamed from
3253         natChannels.cc.
3254         * java/nio/channels/Channels.java: Removed.
3255         * java/nio/channels/natChannels.cc: Removed.
3256         * java/nio/channels/VMChannels.java: New file.
3258 2006-05-13  Tom Tromey  <tromey@redhat.com>
3260         * sources.am, Makefile.in: Rebuilt.
3261         * java/text/DateFormat.java: Removed.
3263 2006-05-13  Tom Tromey  <tromey@redhat.com>
3265         * sources.am, Makefile.in: Rebuilt.
3266         * gnu/java/net/protocol/jar/Connection.java: Removed.
3267         * java/net/JarURLConnection.java: Removed.
3269 2006-05-13  Tom Tromey  <tromey@redhat.com>
3271         * include/java-interp.h (_Jv_InterpMethod::dump_object): Removed
3272         declaration.
3274 2006-05-12  Tom Tromey  <tromey@redhat.com>
3276         * sources.am, Makefile.in: Rebuilt.
3277         * java/util/logging/LogManager.java: Removed.
3278         * java/util/logging/Logger.java (resetLogger): New method, from
3279         Classpath.
3280         * java/io/RandomAccessFile.java: Removed.
3281         * gnu/java/nio/channels/FileChannelImpl.java (create): New
3282         method.
3283         (FileChannelImpl): Now private.
3284         * java/io/FileInputStream.java: Removed.
3285         * java/io/FileOutputStream.java: Removed.
3286         * java/security/AccessControlContext.java: Removed.
3287         * java/lang/ThreadLocal.java: Removed.
3288         * java/lang/InheritableThreadLocal.java: Removed.
3289         * java/lang/Thread.java (locals): New field.
3290         (getThreadLocals): New method.
3291         * java/lang/natThread.cc (finish_): Clear 'locals'.
3293 2006-05-11  Bryce McKinlay  <mckinlay@redhat.com>
3295         * gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
3296         fails, don't try again.
3297         (use_addr2line): Field no longer final.
3299 2006-05-11  Bryce McKinlay  <mckinlay@redhat.com>
3301         * gnu/gcj/runtime/NameFinder.java (blacklist): New static field.
3302         (lookup): If addr2line fails to find an address, flag the binary as
3303         having no debug info and avoid calling addr2line on it again.
3305 2006-05-11  David Daney  <ddaney@avtrex.com>
3307         * testsuite/libjava.compile/PR20418.java: New.
3308         * testsuite/libjava.compile/PR20418.xfail: New.
3310 2006-05-11  Andrew Haley  <aph@redhat.com>
3312         * gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
3313         line.
3315 2006-05-10  Andrew Haley  <aph@redhat.com>
3317         * java/lang/natClassLoader.cc: Add comments.
3319 2006-05-09  Andrew Haley  <aph@redhat.com>
3321         * prims.cc (_Jv_soleIndirectCompiledEngine): New.
3322         * include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
3323         Remove body.
3324         (_Jv_CompiledEngine::allocate_field_initializers): New.
3325         (_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
3326         allocate_field_initializers.
3327         (class _Jv_IndirectCompiledClass): New.
3328         (struct _Jv_IndirectCompiledEngine): New.
3329         * java/lang/Class.h: (IndirectCompiledEngine): New.
3330         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
3331         engine to _Jv_soleIndirectCompiledEngine
3332         * link.cc (ensure_fields_laid_out): Call
3333         engine->allocate_field_initializers().
3335 2006-05-06  Andreas Tobler  <a.tobler@schweiz.ch>
3337         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for
3338         HP-UX and add appropriate extension for shared libraries, sl.
3339         (gcj_jni_test_one): Likewise.
3341         * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared
3342         library extensions.
3344 2006-05-05  Tom Tromey  <tromey@redhat.com>
3346         PR libgcj/27294:
3347         * java/lang/natVMClassLoader.cc (defineClass): Throw
3348         VirtualMachineError if no interpreter configured.
3350 2006-05-03  Andrew Haley  <aph@redhat.com>
3352         PR libgcj/27352
3353         * java/lang/Class.java (getClassLoader(Class)): New.
3354         forName(String, Class): New.
3355         * java/lang/natClass.cc (getClassLoader(Class)): New.
3357 2006-05-02  Andrew Haley  <aph@redhat.com>
3359         * prims.cc (_Jv_NewMultiArray): Check for phantom class.
3361 2006-05-04  Tom Tromey  <tromey@redhat.com>
3363         PR libgcj/26861:
3364         * interpret.cc (run) <insn_getfield>: Removed 0xffff check.
3365         <insn_putfield>: Likewise.
3366         (NULLCHECK): Define unconditionally.
3367         * link.cc (ensure_class_linked): Removed dead code.
3369 2006-05-04  Tom Tromey  <tromey@redhat.com>
3371         * java/lang/Class.h (JV_STATE_LOADING): Added comment.
3372         * Makefile.in: Rebuilt.
3373         * Makefile.am (nat_source_files): Added natSystemClassLoader.cc.
3374         * gnu/gcj/runtime/natSystemClassLoader.cc: New file.
3375         * gnu/gcj/runtime/SystemClassLoader.java (nativeClasses):
3376         New field.
3377         (loadedClasses): Removed.
3378         (findClass): Declare.
3379         (addClass): Add to nativeClasses, not loadedClasses.
3381 2006-05-04  Andrew Haley  <aph@redhat.com>
3383         PR java/26858
3384         * testsuite/libjava.lang/PR26858.xfail: Delete.
3386 2006-05-02  Bryce McKinlay  <mckinlay@redhat.com>
3388         * testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
3389         -findirect-dispatch compilation.
3391 2006-05-01  Andreas Tobler  <a.tobler@schweiz.ch>
3393         * configure.ac: Simplify the mmap check a bit more.
3394         * configure: Rebuilt.
3395         * include/config.h.in: Likewise.
3397 2006-05-01  Roger Sayle  <roger@eyesopen.com>
3398             Andrew Haley  <aph@redhat.com>
3400         * boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR
3401         before calling GC_register_has_static_roots_callback.
3402         (_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and
3403         HAVE_DLADDR before calling dladdr.
3405 2006-04-28  Bryce McKinlay  <mckinlay@redhat.com>
3407         * link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index
3408         to resolve_method.
3409         * interpret.cc (insn_invokevirtual): Use method->index, not
3410         vtable_index. Check accflag FINAL to determine finals. Only do
3411         explicit null check if calling a final method. Use
3412         throw_null_pointer_exception.
3413         (invokevirtual_resolved): Likewise.
3414         (null_pointer_exc): Remove static field.
3415         (throw_null_pointer_exception): Always define. Throw a new
3416         NullPointerException every time.
3417         * include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
3418         field.
3419         * include/execution.h (resolve_method): Remove vtable_index argument.
3421 2006-04-28  Andreas Tobler  <a.tobler@schweiz.ch>
3423         * configure.ac: Add an additional checks for dladdr and dlopen on dld.
3424         * configure: Rebuilt.
3426 2006-04-25  Tom Tromey  <tromey@redhat.com>
3428         * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
3429         Include platform.h.  Set GC_DEBUG before including gc.h, if
3430         needed.
3432 2006-04-25  Andrew Haley  <aph@redhat.com>
3434         * java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
3435         * boehm.cc: Don't include link.h.
3436         (_Jv_RegisterLibForGc): Cast away const when calling dladdr().
3438 2006-04-24  Tom Tromey  <tromey@redhat.com>
3440         * java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
3442 2006-04-21  Andrew Haley  <aph@redhat.com>
3444         * include/execution.h (struct _Jv_CompiledEngine): Define for
3445         compiled classes.
3446         * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call
3447         _Jv_RegisterLibForGc.
3448         (_Jv_RegisterClasses_Counted): Likewise.
3449         (_Jv_NewClassFromInitializer): New.
3450         (_Jv_RegisterNewClasses): New.
3451         * sources.am: Regenerate.
3452         * boehm.cc (_Jv_GC_has_static_roots): new.
3453         (_Jv_InitGC): Call GC_register_has_static_roots_callback.
3454         (filename_node, find_file, _Jv_print_gc_store, new_node,
3455         _Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New.
3456         * scripts/makemake.tcl: Add -fno-indirect-classes.
3457         * Makefile.in: Regenerate.
3458         * link.cc (resolve_pool_entry): Allocate constant pool.
3459         Allocate fields.
3460         
3461 2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>
3463         * configure.ac: Weaken the check for MMAP.
3464         * configure: Rebuilt.
3465         * include/config.h.in: Likewise.
3467 2006-04-20  Bryce McKinlay  <mckinlay@redhat.com>
3469         PR libgcj/27170
3470         * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
3471         dlopen(). From Anthony Green.
3473 2006-04-20  Tom Tromey  <tromey@redhat.com>
3475         PR libgcj/21941:
3476         * gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
3477         UnknownHostException if needed.
3478         * gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
3479         UnknownHostException if needed.
3481 2006-04-19  Tom Tromey  <tromey@redhat.com>
3483         * Makefile.in: Rebuilt.
3484         * Makefile.am (CLEANFILES): Removed all_java_filelist_files,
3485         all_java_deps_files.
3487 2006-04-19  Tom Tromey  <tromey@redhat.com>
3489         * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
3490         handle EINTR.
3492 2006-04-17  Tom Tromey  <tromey@redhat.com>
3494         PR libgcj/27171:
3495         * testsuite/libjava.lang/pr27171.java: New file.
3496         * testsuite/libjava.lang/pr27171.out: New file.
3497         * gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
3498         true if we've seen a high surrogate.
3499         (write): Handle high surrogates at the end of the stream.
3500         Properly emit isolated low surrogates.
3502 2006-04-17  Andreas Tobler  <a.tobler@schweiz.ch>
3504         * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
3505         of failure.
3507 2006-04-13  Tom Tromey  <tromey@redhat.com>
3509         PR libgcj/26522:
3510         * Makefile.in: Rebuilt.
3511         * Makefile.am (libsubdir): New variable.
3513 2006-04-12  NAKATA Maho  <maho@FreeBSD.org> 
3515         PR libgcj/23829
3516         * configure.ac: Link against -lpthread rather than -lc_r on
3517         FreeBSD 5 and above.
3518         * configure: Regenerate.
3520 2006-04-11  Bryce McKinlay  <mckinlay@redhat.com>
3522         * gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
3523         of package-private field "loadedClasses" using reflection.
3524         * java/lang/VMCompiler.java (compileClass): Remove unreachable catch
3525         block.
3527 2006-04-10  Matthias Klose  <doko@debian.org>
3529         * testsuite/lib/libjava.exp (libjava_init): Recognize multilib
3530         directory names containing underscores.
3532 2006-04-10  Andrew Haley  <aph@redhat.com>
3534         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
3535         (SIGNAL_HANDLER): Mark arg as unused.
3536         * configure.host (x86_64-* DIVIDESPEC): Use
3537         fno-use-divide-subroutine.
3539 2006-04-07  Andrew Haley  <aph@redhat.com>
3541         * java/net/InetAddress.java: Throw an UnknownHostException if
3542         lookup fails.
3544 2006-04-05  Tom Tromey  <tromey@redhat.com>
3546         PR libgcj/26625:
3547         * Makefile.in: Rebuilt.
3548         * Makefile.am (libgcj-$(gcc_version).jar): Depend on
3549         classpath/lib/compile-classes.
3551 2006-04-05  Ranjit Mathew  <rmathew@gcc.gnu.org>
3553         * configure.host: Add -fno-omit-frame-pointer to libgcj_flags for
3554         MinGW since EBP is used for backtracking through call frames on this
3555         platform.
3557 2006-04-05  Archit Shah  <ashah@redhat.com>
3559         PR java/25414
3560         * gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments):
3561         Add classpath argument.
3562         * gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust
3563         caller.
3564         * gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise.
3565         * gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise.
3566         * gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New.
3567         * gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call
3568         mkdirs for destination directory, correct handling of superclasses
3569         and interfaces of the remote class, correct handling of exceptions
3570         declared by remote methods.
3572 2006-04-04  Tom Tromey  <tromey@redhat.com>
3574         PR libgcj/26990:
3575         * prims.cc (_Jv_RunMain): Use exitNoChecksAccessor.
3576         * gnu/java/lang/natMainThread.cc (call_main): Use
3577         exitNoChecksAccessor.
3578         * testsuite/libjava.lang/pr26990.out: New file.
3579         * testsuite/libjava.lang/pr26990.java: New file.
3580         * java/lang/Runtime.java (exitNoChecks): New method.
3581         (exitNoChecksAccessor): Likewise.
3582         (exit): Call exitNoChecks.
3584 2006-04-03  Tom Tromey  <tromey@redhat.com>
3586         * Makefile.in: Rebuilt.
3587         * Makefile.am (ZIP): Removed.
3588         (libgcj-$(gcc_version).jar): Use $(JAR).
3589         (src.zip): Likewise.
3590         * configure: Rebuilt.
3591         * configure.ac: Check for jar.  Removed code to set ZIP.
3593 2006-04-03  Andrew Haley  <aph@redhat.com>
3595         * testsuite/libjava.lang/Float_2.java: New file.
3597 2006-03-31  Andreas Tobler  <a.tobler@schweiz.ch>
3599         * posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
3601 2006-03-30  Tom Tromey  <tromey@redhat.com>
3603         PR java/26042:
3604         * testsuite/libjava.compile/pr26042.java: New file.
3606 2006-03-29  Tom Tromey  <tromey@redhat.com>
3608         * sources.am, Makefile.in: Rebuilt.
3609         * scripts/makemake.tcl: Scan classpath/external/relaxngDatatype.
3611 2006-03-29  Tom Tromey  <tromey@redhat.com>
3613         PR java/26390:
3614         * testsuite/libjava.lang/pr26390.out: New file.
3615         * testsuite/libjava.lang/pr26390.java: New file.
3616         * sources.am, Makefile.in: Rebuilt.
3617         * scripts/makemake.tcl: Compile gnu/java/awt/peer/swing.
3619 2006-03-29  Tom Tromey  <tromey@redhat.com>
3621         * posix.cc (_Jv_platform_nanotime): Look for CLOCK_MONOTONIC and
3622         CLOCK_HIGHRES.
3624 2006-03-28  Anthony Balkissoon  <abalkiss@redhat.com>
3626         * scripts/unicode-muncher.pl: Removed this file.
3627         * scripts/MakeCharTables.java: Likewise.
3628         * scripts/unicode-to-chartables.pl: New file.
3629         * java/lang/natCharacter.cc: 
3630         (UNASSIGNED_TYPE): New field.
3631         (UNASSIGNED_DIGIT): Likewise.
3632         (UNASSIGNED_DIRECTION): Likewise.
3633         (UNASSIGNED_NUMERIC_VALUE): Likewise.
3634         (PRIVATE_TYPE): Likewise.
3635         (PRIVATE_DIRECTION): Likewise.
3636         (readCodePoint): New method.
3637         (getType(jint)): Likewise.
3638         (toLowerCase(jint)): Likewise.
3639         (toUpperCase(jint)): Likewise.
3640         (toTitleCase(jint)): Likewise.
3641         (digit(jint, jint)): Likewise.
3642         (getNumericValue(jint)): Likewise.
3643         (getDirectionality(jint)): Likewise.
3644         (readChar),
3645         (getType(jchar)),
3646         (toLowerCase(jchar)),
3647         (toUpperCase(jchar)),
3648         (toTitleCase(jchar)),
3649         (digit(jchar, jint)),
3650         (getNumericValue(jchar)),
3651         (getDirectionality(jchar)): Changed references from data to data[0], 
3652         blocks to blocks[0], direction to direction[0], numValue to 
3653         numValue[0], upper to upper[0], lower to lower[0], and shift to 
3654         shift[0] to reflect the new structures in java-chartables.h.    
3655         * java/lang/Character.java:
3656         (readCodePoint): Declared new native method.
3657         (getType(int)): Likewise.
3658         (toLowerCase(int)): Likewise.
3659         (toUpperCase(int)): Likewise.
3660         (toTitleCase(int)): Likewise.
3661         (digit(int, int)): Likewise.
3662         (getNumericValue(int)): Likewise.
3663         (getDirectionality(int)): Likewise.
3664         (isLowerCase(int)): New method.
3665         (isUpperCase(int)): Likewise.
3666         (itTitleCase(int)): Likewise.
3667         (isDigit(int)): Likewise.
3668         (isDefined(int)): Likewise.
3669         (isLetter(int)): Likewise.
3670         (isLetterOrDigit(int)): Likewise.
3671         (isJavaIdentifierStart(int)): Likewise.
3672         (isJavaIdentifierPart(int)): Likewise.
3673         (isUnicodeIdentifierStart(int)): Likewise.
3674         (isUnicodeIdentifierPart(int)): Likewise.
3675         (isIdentifierIgnorable(int)): Likewise.
3676         (isSpaceChar(int)): Likewise.
3677         (isWhitespace(int)): Likewise.
3678         (isISOControl(int)): Likewise.
3679         (isMirrored(int)): Likewise.
3680         * include/java-chartables.h: Generated from 
3681         scripts/unicode-to-chartables.h.
3683 2006-03-24  David Daney  <ddaney@avtrex.com)
3685         * testsuite/libjava.lang/PR26858.java: New test.
3686         * testsuite/libjava.lang/PR26858.out: Ditto.
3687         * testsuite/libjava.lang/PR26858.xfail: Ditto.
3689 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3691         * include/sh-signal.h (MAKE_THROW_FRAME): Change into empty
3692         macro.
3693         
3694 2006-03-15  Tom Tromey  <tromey@redhat.com>
3696         * testsuite/libjava.jacks/jacks.xfail: Removed
3697         13.1-runtime-method-5.
3699 2006-03-15  Tom Tromey  <tromey@redhat.com>
3701         PR java/26638:
3702         * link.cc (get_interfaces): Skip <clinit>.
3703         (append_partial_itable): Likewise.
3705 2006-03-10  Tom Tromey  <tromey@redhat.com>
3707         PR libgcj/25713:
3708         * java/util/zip/Deflater.java (flush): New method.
3709         * sources.am, Makefile.in: Rebuilt.
3710         * java/util/zip/DeflaterOutputStream.java: Removed.
3711         * java/util/zip/InflaterInputStream.java: Likewise.
3712         * java/util/zip/GZIPInputStream.java: Likewise.
3713         * java/util/zip/GZIPOutputStream.java: Likewise.
3715 2006-03-10  Andreas Tobler  <a.tobler@schweiz.ch>
3717         * include/powerpc-signal.h: Fix typo in comment.
3719 2006-03-09  Mark Wielaard  <mark@klomp.org>
3721         Imported GNU Classpath 0.90
3722         * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
3723         * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
3724         * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
3725         * java/lang/Math.java: New override file.
3726         * java/lang/Character.java: Merged from Classpath.
3727         (start, end): Now 'int's.
3728         (canonicalName): New field.
3729         (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
3730         (UnicodeBlock): Added argument.
3731         (of): New overload.
3732         (forName): New method.
3733         Updated unicode blocks.
3734         (sets): Updated.
3735         * sources.am: Regenerated.
3736         * Makefile.in: Likewise.
3738 2006-03-09  Tom Tromey  <tromey@redhat.com>
3740         PR libgcj/23495:
3741         * java/lang/natString.cc (_Jv_NewString): Use memcpy.
3742         (equals): Use memcmp.
3743         (contentEquals): Likewise.
3744         (getChars): Use memcpy.
3745         (toCharArray): Likewise.
3746         (regionMatches): Use memcmp.
3747         (regionMatches): Likewise.
3748         (startsWith): Likewise.
3749         (concat): Use memcpy.
3750         (valueOf): Likewise.
3752 2006-03-09  Tom Tromey  <tromey@redhat.com>
3754         * configure: Rebuilt.
3755         * configure.ac (HAVE_CLOCK_GETTIME): Put -lrt in THREADLIBS as
3756         well.
3758 2006-03-09  Tom Tromey  <tromey@redhat.com>
3760         PR libgcj/24461:
3761         * java/util/zip/InflaterInputStream.java (fill): Throw exception
3762         if stream is truncated.
3764 2006-03-09  Tom Tromey  <tromey@redhat.com>
3766         * win32.cc (_Jv_platform_nanotime): New function.
3767         * include/win32.h (_Jv_platform_nanotime): Declare.
3768         * posix.cc (_Jv_platform_nanotime): New function.
3769         * include/posix.h (_Jv_platform_nanotime): Declare.
3770         * java/lang/natSystem.cc (nanoTime): New method.
3771         * java/lang/System.java (nanoTime): Declare.
3772         * include/config.h.in, configure: Rebuilt.
3773         * configure.ac: Check for clock_gettime.
3775 2006-03-08  David Daney  <ddaney@avtrex.com>
3777         * configure.ac (LD): Add AC_CHECK_TOOL for ld.
3778         (LD_START_STATIC_SPEC): New AC_SUBST, set with ld check.
3779         (LD_FINISH_STATIC_SPEC): Ditto
3780         * configure: Regenerated.
3781         * libgcj.spec.in: Wrap -lgcj in LD_START_STATIC_SPEC and
3782         LD_FINISH_STATIC_SPEC.
3783         
3784 2006-03-07  Tom Tromey  <tromey@redhat.com>
3786         PR libgcj/26103:
3787         * java/lang/ClassLoader.java (loadClass): Don't throw
3788         StringIndexOutOfBoundsException if name is empty.
3789         * java/lang/natClassLoader.cc (loadClassFromSig): Throw exception
3790         if class not found.
3792 2006-03-07  David Daney  <ddaney@avtrex.com>
3794         * include/java-interp.h: Removed extern "C" around #include <ffi.h>.
3796 2006-03-07  David Daney  <ddaney@avtrex.com>
3798         * link.cc: Include ffi.h if USE_LIBFFI defined.
3799         
3800 2006-03-03  Tom Tromey  <tromey@redhat.com>
3802         * interpret.cc (do_allocate_static_fields): Added comment.
3804 2006-03-01  Tom Tromey  <tromey@redhat.com>
3806         PR java/24321:
3807         * testsuite/libjava.lang/pr24321.java: New file.
3808         * testsuite/libjava.lang/pr24321.out: New file.
3809         * java/lang/natClass.cc (isInstance): Don't initialize class.
3810         (isAssignableFrom): Likewise.
3812 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
3814         PR other/26208
3815         * exception.cc (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
3816         of _Unwind_GetIP.
3817         * include/i386-signal.h (MAKE_THROW_FRAME): Change into empty macro.
3818         (HANDLE_DIVIDE_OVERFLOW): Don't adjust _res->eip if falling through
3819         to throw.
3820         * include/x86_64-signal.h (MAKE_THROW_FRAME): Change into empty
3821         macro.
3822         * include/powerpc-signal.h (MAKE_THROW_FRAME): Change into empty
3823         macro.
3825 2006-02-23  Scott Gilbertson  <scottg@mantatest.com>
3827         * gnu/awt/j2d/IntegerGraphicsState.java (getClip): Clone clip
3828         before returning, handle null clip.
3829         (getClipBounds): Handle null clip.
3830         * gnu/awt/j2d/Graphics2DImpl.java (clipRect): Handle null clip.
3831         * gnu/awt/xlib/XCanvasPeer.java (): 
3832         (getLocationOnScreen): Implement.
3833         * classpath/gnu/java/awt/peer/GLightweightPeer.java
3834         (repaint): Merged with Classpath.
3835         * classpath/java/awt/Graphics.java (hitClip): Merged with
3836         Classpath.
3838 2006-02-21  Robert Schuster  <robertschuster@fsfe.org>
3840         * link.cc: Added variant of create_error_method that
3841         will not complain about unused parameter if compiled with
3842         USE_LIBFFI not being defined.
3843         (_Jv_Linker::find_field_helper): Fixed indentation.
3844         (_Jv_Linker::create_error_method): Fixed indentation.
3845         (_Jv_Linker::link_symbol_table): Fixed indentation.
3847 2006-02-16  Andrew Haley  <aph@redhat.com>
3849         * stacktrace.cc (GetStackTraceElements): Call
3850         gnu::gcj::runtime::NameFinder::removeUnknown() to determine if
3851         non-Java frames should be removed from a printed stack trace.
3852         Pass methodName to getLineNumberForFrame().
3853         (getLineNumberForFrame): Set method_name from info.dli_sname.
3854         * gnu/gcj/runtime/NameFinder.java (removeUnknown): New method.
3855         (remove_unknown): New variable.
3856         * include/java-stack.h (_Jv_StackTrace::getLineNumberForFrame):
3857         Add methodName arg.
3859 2006-02-15  Matthias Klose  <doko@debian.org>
3861         * gnu/java/nio/charset, gnu/java/net/protocol/file,
3862         gnu/regexp: Remove empty directories.
3864 2006-02-09  Bryce McKinlay  <mckinlay@redhat.com>
3866         * java/lang/Class.h (_Jv_IDispatchTable): Make it a struct. Put 
3867         'itable' inline, instead of as a pointer.
3868         (java::lang::Class): Put 'idt' in anonymous union with 'ioffsets'.
3869         * link.cc (null_idt): Update definition.
3870         (_Jv_Linker::prepare_constant_time_tables): Allocate klass->idt
3871         as a single struct. Use _Jv_AllocBytes, not _Jv_AllocRawObj.
3872         (_Jv_Linker::generate_itable): Update to use 'ioffsets'.
3873         (_Jv_Linker::find_iindex): Likewise. Update comment.
3874         * java/lang/natClass.cc (_Jv_LookupInterfaceMethodIdx): Update for
3875         _Jv_IDispatchTable change.
3876         (_Jv_IsAssignableFrom): Likewise.
3878 2006-02-08  Bryce McKinlay  <mckinlay@redhat.com>
3880         PR libgcj/25187:
3881         * gnu/gcj/io/natSimpleSHSStream.cc
3882         (gnu::gcj::io::SimpleSHSStream::shsFinal): Remove bogus cast.
3883         * interpret.cc (_Jv_InterpMethod::run): Simplify arguments to
3884         _Jv_InterpFrame(). 
3885         * boehm.cc: #undef some autoconf macros before including gc-config.h.
3886         (_Jv_MarkObject): Don't mark the class, it is reachable via the vtable.
3887         (_Jv_MarkArray): Likewise.
3888         * java/lang/ref/natReference.cc (java::lang::ref::Reference::create):
3889         Simplify _Jv_GCRegisterDisappearingLink() call.
3890         * java/lang/Class.h (getComponentType): Use element_type.
3891         (element_type): New field declaration, as a union with "methods".
3892         * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Use "element_type".
3893         * java/net/natVMNetworkInterfacePosix.cc
3894         (java::net::VMNetworkInterface::getInterfaces): Add "int" cast to
3895         avoid sign comparison warning.  
3896         * include/java-interp.h (_Jv_InterpFrame): Take thread as second
3897         argument, not parent call frame.
3898         * include/x86_64-signal.h (MAKE_THROW_FRAME): Use "gregs" directly,
3899         without a cast.
3900         (restore_rt): Declare with hidden visibility, not "static".
3901         * posix.cc (_Jv_platform_initProperties): Make "tmpdir" a string
3902         constant.
3903         * jni.cc (_Jv_JNI_DestroyJavaVM): Use a union to avoid strict alias
3904         warning.
3906 2006-02-08  Bryce McKinlay  <mckinlay@redhat.com>
3908         PR libgcj/26113:
3909         * link.cc (_Jv_Linker::print_class_loaded): Declare string constants
3910         as "const char *".
3911         * verify.cc (verify_fail): Likewise.
3912         * gnu/classpath/natSystemProperties.cc (file_encoding): Likewise.
3913         * interpret.cc (throw_internal_error, throw_class_format_error):
3914         Likewise.
3915         * gcj/javaprims.h (_Jv_hashUtf8String, _Jv_Utf8Const::space_needed, 
3916         _Jv_Utf8Const::init, _Jv_makeUtf8Const): Likewise.
3917         * java/lang/Class.h (_Jv_InitPrimClass): Likewise.
3918         * include/jvm.h (_Jv_strLengthUtf8, _Jv_makeUtf8Const): Likewise.
3919         * defineclass.cc (throw_internal_error, throw_no_class_def_found_error,
3920         is_attribute_name): Likewise.
3921         * prims.cc (_Jv_strLengthUtf8, _Jv_hashUtf8String, _Jv_Utf8Const::init,
3922         _Jv_makeUtf8Const, _Jv_InitPrimClass): Likewise.
3924 2006-02-08  Tom Tromey  <tromey@redhat.com>
3926         PR libgcj/26063, PR libgcj/17978, PR libgcj/10598:
3927         * defineclass.cc (parse): Use _Jv_AllocRawObj.
3928         (read_constpool): Likewise.
3929         (read_one_code_attribute): Use internal function name.
3930         (handleConstantPool): Use _Jv_AllocRawObj.
3931         (handleInterfacesBegin): Likewise.
3932         (handleFieldsBegin): Likewise.
3933         (handleMethodsBegin): Likewise.
3934         (handleCodeAttribute): Likewise.
3935         (handleMethodsEnd): Likewise.
3936         * include/jvm.h (new_vtable): Use _Jv_AllocRawObj.
3937         * interpret.cc (do_allocate_static_fields): Use _Jv_AllocRawObj.
3938         Allocate reference fields separately.
3939         * link.cc (prepare_constant_time_tables): Use _Jv_AllocRawObj.
3940         (add_miranda_methods): Likewise.
3941         (generate_itable): Use _Jv_AllocBytes.
3942         (find_iindex): Likewise.
3943         (struct method_closure): New structure.
3944         (create_error_method): Use struct method_closure; allocate with
3945         _Jv_AllocBytes.
3946         (ensure_fields_laid_out): Separate reference fields from
3947         non-reference fields.
3948         * boehm.cc (_Jv_MarkObj): Mark vtable.  Only mark direct fields
3949         of Class.
3950         (_Jv_MarkArray): Mark vtable.
3951         (_Jv_AllocRawObj): Don't allocate objects of size 0.
3952         * include/execution.h
3953         (_Jv_ExecutionEngine::allocate_static_fields): Added 'int'
3954         parameter.
3955         (struct _Jv_CompiledEngine): Updated.
3956         (class _Jv_InterpreterEngine): Updated.
3958 2006-02-08  Tom Tromey  <tromey@redhat.com>
3960         PR java/22578:
3961         * gcj/javaprims.h: Updated.
3962         * sources.am, Makefile.in: Rebuilt.
3963         * java/lang/natDouble.cc (doubleToLongBits): Moved to VMDouble.
3964         (doubleToRawLongBits): Likewise.
3965         (longBitsToDouble): Likewise.
3966         (toString): Likewise.
3967         (parseDouble): Likewise.
3968         * java/lang/natFloat.cc (floatToIntBits): Moved to VMFloat.
3969         (floatToRawIntBits): Likewise.
3970         (intBitsToFloat): Likewise.
3971         * java/lang/VMDouble.java: New file.
3972         * java/lang/VMFloat.java: New file.
3973         * java/lang/Float.java, java/lang/Double.java: Removed.
3975 2006-02-06  Tom Tromey  <tromey@redhat.com>
3977         * gij.cc (version): Use 2006.
3978         * gnu/java/rmi/rmic/RMIC.java (parseOptions): Use 2006.
3979         * gnu/gcj/convert/Convert.java (version): Use 2006.
3980         * gnu/gcj/tools/gcj_dbtool/Main.java (main): Use 2006.
3982 2006-02-04  Tom Tromey  <tromey@redhat.com>
3984         PR java/25676:
3985         * testsuite/libjava.lang/pr25676.out: New file.
3986         * testsuite/libjava.lang/pr25676.java: New file.
3988 2006-02-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
3990         * Makefile.am (src.zip): Update src.zip file search to look in
3991         classpath directory.
3992         * Makefile.in: Regenerate.
3994 2006-02-03  Robert Schuster  <robertschuster@fsfe.org>
3996         * link.cc:
3997         (_Jv_Linker::create_error_method): Added missing (void *) cast.
3999 2006-02-03  Robert Schuster  <robertschuster@fsfe.org>
4001         * include/jvm.h:
4002         (_Jv_Linker::create_error_method): New method declaration.
4003         * link.cc:
4004         (_Jv_Linker::create_error_method): New method.
4005         (_Jv_Linker::link_symbol_table): Use new method above.
4007 2006-02-01  Robert Schuster  <robertschuster@fsfe.org>
4009         * link.cc:
4010         (_Jv_Linker::find_field_helper): Added checks.
4011         (_Jv_Linker::find_field): Use exception swallowing class resolution
4012         and added early return.
4013         (_Jv_ThrowNoClassDefFoundErrorTrampoline): New function.
4014         (_Jv_Linker::link_symbol_table):  Use exception swallowing class
4015         resolution, added ffi_closure installation routine, use
4016         _Jv_ThrowNoClassDefFoundError for missing static method.
4017         (_Jv_Linker::ensure_class_linked): Added string check which does
4018         not trigger class resolution.
4019         * java/lang/natClassLoader.cc:
4020         (_Jv_FindClassNoException): New method.
4021         * java/lang/Class.h:
4022         (_Jv_FindClassNoException): New method declaration.
4023         * include/jvm.h:
4024         (_Jv_FindClassNoException): New method declaration.
4025         (_Jv_FindClassFromSignatureNoException): New method declaration.
4026         * prims.cc:
4027         (_Jv_FindClassFromSignatureNoException): New method.
4028         * gcj/javaprims.h:
4029         (_Jv_equalsUtf8Classname): New method declaration.
4030         (_Jv_isPrimitiveOrDerived): Dito.
4031         * prims.cc:
4032         (_Jv_equalsUtf8Classnames): New method.
4033         (_Jv_isPrimitiveOrDerived): New method.
4034         * verify.cc:
4035         (ref_intersection::equals): Use new classname comparison method.
4036         (type::compatible): Use new classname comparison method. Added
4037         check whether LHS' type is java.lang.Object .
4038         (type::resolve): Added new optional debug message and simplified
4039         if-expression.
4040         (type::to_array): Added codepath that generates an array type
4041         without resolving the element type.
4043 2006-01-31  Mark Wielaard  <mark@klomp.org>
4045         * NEWS: Add 4.1 updates.
4047 2006-01-30  Keith Seitz  <keiths@redhat.com>
4049         * include/java-interp.h (insn_index): New declaration.
4050         (num_insn_slots): New private variable.
4051         (get_line_table): New declaration.
4052         * interpret.cc (insn_index): New function.
4053         (get_line_table): New function.
4055 2006-01-24  Archit Shah  <ashah@redhat.com>
4056             Tom Tromey  <tromey@redhat.com>
4058         * prims.cc (next_property_value): Never return NULL.
4059         (process_gcj_properties): Copy 'props' before using it.
4061 2006-01-23  Keith Seitz  <keiths@redhat.com>
4063         * java/lang/Class.h (_Jv_FindInterpreterMethod): Add new declaration.
4064         * java/lang/natClass.cc (_Jv_FindInterpreterMethod): New function.
4066 2006-01-23  David Daney  <ddaney@avtrex.com>
4068         * configure.host (disable_dladdr): Remove variable and its
4069         documentation.
4070         * configure.ac: Do not test for disable_dladdr.
4071         * configure: Regenerate.
4072         * include/config.h.in: Regenerate.
4074 2006-01-18  Tom Tromey  <tromey@redhat.com>
4076         * jni.cc (_Jv_JNI_AttachCurrentThread): Return environment if it
4077         already exists.
4079 2006-01-18  Keith Seitz  <keiths@redhat.com>
4081         * include/java-interp.h (_Jv_CompileMethod): Add declaration.
4082         (class _Jv_InterpMethod): Add _Jv_CompileMethod as a friend.
4083         * interpret.cc (_Jv_CompileMethod): New function.
4084         (run):  Massage code to allow for NULL args.
4085         Update comments to explain NULL args.
4086         Return if compiling the method and args is NULL.
4088 2006-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4090         PR libgcj/25840
4091         * include/x86_64-signal.h (RESTORE2): Add ".text\n".
4093 2006-01-17  Tom Tromey  <tromey@redhat.com>
4095         PR classpath/20198:
4096         * java/net/URLClassLoader.java (FileURLLoader): Added argument.
4097         (JarURLLoader): Likewise.
4098         (addURLImpl): Canonicalize file URLs.
4100 2006-01-16  Mark Wielaard  <mark@klomp.org>
4102         Imported GNU Classpath 0.20
4103         * Makefile.am (AM_CPPFLAGS): Add classpath/include.
4104         * java/nio/charset/spi/CharsetProvider.java: New override file.
4105         * java/security/Security.java: Likewise.
4106         * sources.am: Regenerated.
4107         * Makefile.in: Likewise.
4109 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
4111         * configure.ac (dbexecdir): New substituted var.
4112         * configure: Rebuilt.
4113         * Makefile.am (dbexecdir): Remove.
4114         * Makefile.in: Rebuilt.
4116 2006-01-13  Tom Tromey  <tromey@redhat.com>
4118         * gnu/regexp/MessagesBundle_fr.properties: Removed.
4119         * gnu/regexp/MessagesBundle.properties: Removed.
4121 2006-01-13  Tom Tromey  <tromey@redhat.com>
4123         * java/security/classpath.security: Removed.
4124         * Makefile.in: Rebuilt.
4125         * Makefile.am (install-data-local): Don't install
4126         classpath.security.
4128 2006-01-08  Chris Burdess  <dog@gnu.org>
4130         * java/lang/Character.java (toChars,toCodePoint): Correct these
4131           methods to use algorithms from Unicode specification.
4133 2006-01-08  Tom Tromey  <tromey@redhat.com>
4135         * java/lang/StringBuilder.java (appendCodePoint): New method.
4136         (insert): New overloads.
4137         * java/lang/StringBuffer.java (StringBuffer): New constructor.
4138         (charAt): Remerged javadoc.
4139         (codePointAt, codePointBefore): New methods.
4140         (appendCodePoint): New method.
4141         (append): New overloads.
4142         (insert): Likewise.
4143         (trimToSize, codePointCount, offsetByCodePoints): New methods.
4144         * java/lang/Float.java (SIZE): New field.
4145         (valueOf): New method.
4146         * java/lang/natDouble.cc (initIDs): Removed.
4147         * java/lang/Double.java (static initializer): Removed.
4148         (SIZE): New field.
4149         (valueOf): New method.
4150         (initIDs): Removed.
4152 2006-01-07  Jakub Jelinek  <jakub@redhat.com>
4154         PR libgcj/24940
4155         * shlibpath.m4: Replace $SED with sed.
4156         * configure: Rebuilt.
4158 2006-01-06  Tom Tromey  <tromey@redhat.com>
4160         * java/lang/Character.java (SIZE, MAX_CACHE, charCache,
4161         MIN_SURROGATE, MAX_SURROGATE): New fields from Classpath.
4162         (MIN_HIGH_SURROGATE, MAX_HIGH_SURROGATE, MIN_LOW_SURROGATE,
4163         MAX_LOW_SURROGATE): Javadoc fixes.
4164         (valueOf, reverseBytes, isHighSurrogate, isLowSurrogate,
4165         isSurrogatePair, toCodePoint, codePointAt, codePointBefore): New
4166         methods from Classpath.
4167         * java/lang/String.java (codePointAt, codePointBefore,
4168         codePointCount, contains, replace): New methods from Classpath.
4169         (contentEquals): Declare.
4170         * java/lang/natString.cc (contentEquals): New method.
4172 2005-12-26  Anthony Green  <green@redhat.com>
4174         * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount
4175         of data to read (dst.remaining()).
4176         * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto.
4178 2005-11-11  Mark Wielaard  <mark@klomp.org>
4180         Reported by john.zigman@anu.edu.au as bug #24608.
4181         * gnu/java/nio/SocketChannelImpl.java (read): Put readBytes in
4182         destination ByteBuffer when it doesn't have an array instead of len
4183         bytes.
4185 2006-01-05  Tom Tromey  <tromey@redhat.com>
4187         * java/lang/natThread.cc (finish_): Don't clear 'group'.
4188         * sources.am, Makefile.in: Rebuilt.
4189         * java/lang/Runtime.java (exit): Merged with Classpath.
4190         (runShutdownHooks): New method from Classpath.
4191         * java/io/File.java (deleteOnExit): Use DeleteFileHelper, not
4192         FileDeleter.
4193         * gnu/gcj/runtime/FileDeleter.java: Removed.
4194         * java/lang/natRuntime.cc (runFinalizationForExit): New method.
4195         (exitInternal): Don't run finalizers or delete files.
4197 2006-01-05  Tom Tromey  <tromey@redhat.com>
4199         * java/lang/natPosixProcess.cc (reap): Ignore unknown children.
4201 2006-01-04  Krister Walfridsson  <cato@df.lth.se>
4203         * posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN
4205 2006-01-04  Tom Tromey  <tromey@redhat.com>
4207         * java/lang/Class.h (_Jv_CopyClassesToSystemLoader): Updated.
4208         * java/lang/natClassLoader.cc (_Jv_CopyClassesToSystemLoader):
4209         Changed argument type.  Use SystemClassLoader.addClass.
4210         * gnu/gcj/runtime/SystemClassLoader.java (addClass): New method.