aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2006-10-032006-10-03 Gary Benson <gbenson@redhat.com>Gary Benson2-18/+23
* java/net/InetAddress.java (<clinit>): Reorder the static initializers. From-SVN: r117394
2006-10-022006-10-02 Gary Benson <gbenson@redhat.com>Gary Benson2-2/+14
* java/net/InetAddress.java (checkConnect): Reinstated. (loopbackAddress): Ensure initialized from non-null object. From-SVN: r117370
2006-09-30java-interp.h (prepared): Change type to pc_t.Keith Seitz4-20/+32
* include/java-interp.h (prepared): Change type to pc_t. (insn_index): Define for both DIRECT_THREADED and bytecode interpreters. * interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo. (insn_index): Implement for bytecode interpreter. * interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class qualifier to resolve_pool_entry. [!DIRECT_THREADED] (AVAL2U): Likewise. [!DIRECT_THREADED] bytecode() cannot be called without an object. Changed all typos. [!DIRECT_THREADED] Likewise for defining_class. From-SVN: r117333
2006-09-27re PR target/26792 (need to use autoconf when using newly-added libgcc ↵Jack Howarth11-14/+145
functions) 2006-09-26 Jack Howarth <howarth@bromo.med.uc.edu> PR target/26792: * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP if HAVE_GETIPINFO not defined. * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise. (_Jv_StackTrace::getLineNumberForFrame): Likewise. * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO. * aclocal.m4, configure, include/config.h.in, Makefile.in: Rebuilt. From-SVN: r117259
2006-09-27Locale.java (hashcode): No longer transient.Tom Tromey2-11/+17
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201712 * java/util/Locale.java (hashcode): No longer transient. (writeObject): Use ObjectOutputStream.PutField and defaultWriteObject. (readObject): Use defaultReadObject. From-SVN: r117248
2006-09-25Makefile.in: Rebuilt.Tom Tromey3-0/+9
* native/jni/gconf-peer/Makefile.in: Rebuilt. * native/jni/gconf-peer/Makefile.am (libgconfpeer_la_LDFLAGS): New variable. From-SVN: r117210
2006-09-25re PR libgcj/29178 (CharsetEncoder.canEncode() gives different results than ↵Tom Tromey4-1/+56
Sun version) PR libgcj/29178: * gnu/java/nio/charset/US_ASCII.java (Encoder.canEncode): New method. (Encoder.canEncode): Likewise. (Encoder.encodeLoop): Return unmappable for all non-ASCII characters. * gnu/java/nio/charset/ByteCharset.java (Encoder.canEncode): New method. (Encoder.canEncode): Likewise. * gnu/java/nio/charset/ISO_8859_1.java (Encoder.canEncode): New method. (Encoder.canEncode): Likewise. From-SVN: r117209
2006-09-25mprec.c (mprec_calloc): Renamed.Tom Tromey2-3/+8
* native/fdlibm/mprec.c (mprec_calloc): Renamed. (Balloc): Updated. From-SVN: r117204
2006-09-25Suggested by Aaron M.Mark Wielaard2-1/+7
2006-09-25 Mark Wielaard <mark@klomp.org> Suggested by Aaron M. Ucko <ucko@debian.org> Fixes bug #29203 * native/fdlibm/mprec.c (ulp): Define L as int32_t. From-SVN: r117197
2006-09-25* gnu/classpath/jdwp/VMVirtualMachine.javaKeith Seitz3-1/+110
(_jdwp_suspend_counts): New private variable. * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize): Initialize _jdwp_suspend_counts. (suspendThread): Implement. (resumeThread): Implement. (getSuspendCount): Implement. From-SVN: r117196
2006-09-22jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.Marco Trudel2-1/+5
2006-09-22 Marco Trudel <mtrudel@gmx.ch> * jvmti.cc (_Jv_JVMTI_GetErrorName): Now static. Marked JNICALL. From-SVN: r117153
2006-09-22re PR classpath/28661 (HTTP Header differs b/w java and classpath)David Daney2-0/+14
PR classpath/28661 * gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add default content-type for POST method. From-SVN: r117149
2006-09-22[multiple changes]Sven de Marothy5-511/+406
2006-08-02 Sven de Marothy <sven@physto.se> * gnu/java/awt/peer/gtk/GtkChoicePeer.java (remove): Force event on removing item 0 when it's selected. (handleEvent): Always call Choice.selected(). * java/awt/Choice.java: (remove): Simplify and correct. 2006-07-30 Sven de Marothy <sven@physto.se> * java/awt/Choice.java: (accessibleAction): Call select() directly. (add, insert, remove): Reimplement. (dispatchEventImpl): Always call super. (processItemEvent): Does not set the index. * include/gnu_java_awt_peer_gtk_GtkChoicePeer.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c (append): removed. (nativeAdd): Name changed to add. (selection_changed_cb): Simplify callback. * gnu/java/awt/peer/gtk/GtkChoicePeer.java (selected): New field. (add): Replaced with native impl. (handleEvent): New method. From-SVN: r117142
2006-09-22jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled events.Keith Seitz7-3/+1429
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled events. (check_enabled_event): New function. (check_enabled_events): New function. (post_event): New function. (_Jv_JVMTI_SetEventNotificationMode): New function. (_Jv_JVMTI_SetEventCallbacks): New function. (_Jv_JVMTI_Interface): Define SetEventNotificationMode and SetEventCallbacks members. * include/jvmti-int.h: New file. * include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define. (_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define. * testsuite/libjava.jvmti/events.java: New file. * testsuite/libjava.jvmti/events.out: New file. * testsuite/libjava.jvmti/natevents.cc: New file. From-SVN: r117133
2006-09-21configure.ac: Don't use darwin-signal.h as signal handler for Darwin/i386.Sandro Tolaini3-1/+13
2006-09-21 Sandro Tolaini <tolaini@libero.it> * configure.ac: Don't use darwin-signal.h as signal handler for Darwin/i386. * configure.host: Enable Darwin/i386 as a supported host, with no signal unwinding. From-SVN: r117127
2006-09-21jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked and return ↵Keith Seitz2-5/+28
JVMTI_ERROR_OUT_OF_MEMORY if necessary. * jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked and return JVMTI_ERROR_OUT_OF_MEMORY if necessary. (_Jv_JVMTI_GetClassMethods): Likewise. (_Jv_JVMTI_GetClassLoaderClasses): Likewise. (_Jv_JVMTI_GetJNIFunctionTable): Likewise. From-SVN: r117098
2006-09-20jvmti.cc (_Jv_JVMTI_GetErrorName): New function.Keith Seitz5-1/+359
* jvmti.cc (_Jv_JVMTI_GetErrorName): New function. (_Jv_JVMTI_Interface): Define GetErrorName member. * testsuite/libjava.jvmti/geterrorname.java: New file. * testsuite/libjava.jvmti/geterrorname.out: New file. * testsuite/libjava.jvmti/natgeterrorname.cc: New file. From-SVN: r117086
2006-09-20ChangeLog: Fix latest entry.Gary Benson1-7/+7
* ChangeLog: Fix latest entry. From-SVN: r117080
2006-09-20InetAddress.java: Mostly merged with Classpath.Gary Benson8-303/+474
2006-09-20 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java: Mostly merged with Classpath. * java/net/VMInetAddress.java: New file. * sources.am, Makefile.in: Rebuilt. * java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Create InetAddress objects using InetAddress.getByAddress. * gnu/java/net/natPlainSocketImplPosix.cc (accept, getOption): Likewise. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (peekData, receive, getLocalAddress): Likewise. From-SVN: r117075
2006-09-20InetAddress.java: Updated to latest.Gary Benson6-250/+649
2006-09-20 Gary Benson <gbenson@redhat.com> * classpath/java/net/InetAddress.java: Updated to latest. * classpath/java/net/Inet4Address.java: Likewise. * classpath/java/net/Inet6Address.java: Likewise. * classpath/java/net/ResolverCache.java: Likewise. * classpath/java/net/SocketPermission.java: Likewise. * classpath/java/net/Inet4Address.java (AF_INET): Renamed to FAMILY. (<init>, writeReplace): Reflect the above. * classpath/java/net/Inet6Address.java (AF_INET6): Renamed to FAMILY. (<init>): Reflect the above. From-SVN: r117074
2006-09-19* testsuite/libjava.jvmti/jvmti.exp: New file.Keith Seitz2-0/+126
From-SVN: r117065
2006-09-19jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.Keith Seitz2-12/+27
* jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list. (THREAD_CHECK_VALID): Likewise. (THREAD_CHECK_ALIVE): Likewise. (_Jv_JVMTI_SuspendThread): Call THREAD_CHECK_VALID on a Thread not jthread. (_Jv_JVMTI_ResumeThread): Likewise. (_Jv_JVMTI_InterruptThread): Likewise. (_Jv_JVMTI_DisposeEnvironment): Probably unwise to dereference an object that was just freed. From-SVN: r117064
2006-09-19[multiple changes]Tom Tromey2-22/+101
2006-09-19 Mark Wielaard <mark@klomp.org> Fixes bug #29137 * java/util/logging/LogManager.java (addLogger): Always check for existing children of a new Logger. 2006-09-19 Tom Tromey <tromey@redhat.com> * java/util/logging/LogManager.java: Re-merged with Classpath. From-SVN: r117058
2006-09-19tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE.Tom Tromey2-4/+7
config * tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE. libgomp * configure: Rebuilt. libstdc++-v3 * configure: Rebuilt. libmudflap * configure: Rebuilt. libjava * configure: Rebuilt. From-SVN: r117049
2006-09-18configure.host: Handle kfreebsd.Petr Salinger2-1/+9
2006-09-18 Petr Salinger <Petr.Salinger@seznam.cz> * configure.host: Handle kfreebsd. From-SVN: r117043
2006-09-18SSLSocket.java (isBound, [...]): Removed old comment.Tom Tromey2-122/+117
* gnu/javax/net/ssl/provider/SSLSocket.java (isBound, isClosed, isConnected): Removed old comment. (getRemoteSocketAddress): Uncommented. (setOOBInline, getOOBInline, setKeepAlive, getKeepAlive, setTrafficClass, getTrafficClass, setReuseAddress, getReuseAddress, shutdownInput, shutdownOutput, isInputShutdown, isOutputShutdown): Uncommented. From-SVN: r117035
2006-09-18configure: Rebuilt.Petr Salinger3-2/+7
2006-09-18 Petr Salinger <Petr.Salinger@seznam.cz> * configure: Rebuilt. * shlibpath.m4: Handle GNU/kFreeBSD. From-SVN: r117032
2006-09-18removed old conflict markerTom Tromey1-1/+0
From-SVN: r117030
2006-09-14re PR boehm-gc/29068 (Bootstrap fails building libjava on SPARC/Solaris)Tom Tromey2-2/+9
libjava PR boehm-gc/29068: * boehm.cc (_Jv_GCAttachThread): Disable on Solaris. (_Jv_GCDetachThread): Likewise. boehm-gc PR boehm-gc/29068. * misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on Solaris. From-SVN: r116948
2006-09-14* posix-threads.cc: Include "posix.h".Andreas Schwab2-0/+6
From-SVN: r116943
2006-09-14posix.cc (_Jv_platform_nanotime): Return nanoseconds, not microseconds; use ↵Geoffrey Keating6-16/+81
gettimeofday when available. * posix.cc (_Jv_platform_nanotime): Return nanoseconds, not microseconds; use gettimeofday when available. * posix-threads.cc (_Jv_CondWait): Improve accuracy and range of timeout calculation. * testsuite/libjava.lang/Thread_Sleep_2.java: New. * testsuite/libjava.lang/Thread_Sleep_2.out: New. * testsuite/libjava.lang/Thread_Sleep_2.xfail: New. From-SVN: r116941
2006-09-12re PR java/29013 (gcj generates a MetalLookAndFeel class that fails cacao's ↵Tom Tromey3-0/+15
verifier) gcc/java PR java/29013: * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note the push of the called method's return result. libjava PR java/29013: * testsuite/libjava.lang/PR29013.out: Likewise. * testsuite/libjava.lang/PR29013.java: New file. From-SVN: r116902
2006-09-12* testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.Tom Tromey2-5/+5
From-SVN: r116892
2006-09-12Fix some whitespace issues in the changelog.Andrew Pinski1-42/+42
From-SVN: r116881
2006-09-11re PR classpath/28580 (HTTP HEAD fails on chuncked encoding)David Daney2-3/+20
PR classpath/28580 * gnu/java/net/protocol/http/Request.java (readResponse): Call createResponseBodyStream in more cases and with new parameter. (createResponseBodyStream): Added new parameter mayHaveBody. Handle HEAD and !mayHaveBody responses specially. From-SVN: r116853
2006-09-07Makefile.am (AM_CXXFLAGS): Remove duplicate define.Matthias Klose3-4/+7
2006-09-07 Matthias Klose <doko@debian.org> * Makefile.am (AM_CXXFLAGS): Remove duplicate define. * Makefile.in: Regenerate. From-SVN: r116750
2006-09-06Class.h (_Jv_FindInterpreterMethod): Change return type to _Jv_MethodBase ↵Keith Seitz3-15/+19
instead of _Jv_InterpMethod. * java/lang/Class.h (_Jv_FindInterpreterMethod): Change return type to _Jv_MethodBase instead of _Jv_InterpMethod. * java/lang/natClass.cc (_Jv_FindInterpreterMethod): Likewise. Do not check access flags. Fix some minor style anomalies. From-SVN: r116730
2006-09-052006-09-05 Gary Benson <gbenson@redhat.com>Gary Benson2-14/+21
* java/net/SocketPermission.java (maybeBracketIPv6Address): Renamed to processHostport. (processHostport): Also translate "" to "localhost". (setHostPort): Remove special cases for empty hostport and for extra colons in hostport (processHostport handles these now). From-SVN: r116694
2006-09-01jni.exp (gcj_jni_invocation_test_one): Pass -lgcj to linker for C++ files on ↵Geoffrey Keating2-1/+7
Darwin. * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Pass -lgcj to linker for C++ files on Darwin. From-SVN: r116639
2006-09-01jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.Keith Seitz2-12/+44
* jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop. (THREAD_CHECK_VALID): Likewise. (THREAD_CHECK_IS_ALIVE): Likewise. (NULL_CHECK): Likewise. (ILLEGAL_ARGUMENT): Likewise. From-SVN: r116636
2006-09-01jvm.h (_Jv_JVMTI_Init): Declare.Keith Seitz4-4/+95
* include/jvm.h (_Jv_JVMTI_Init): Declare. * jvmti.cc (_Jv_JVMTI_Init): New function. * prims.cc (_Jv_CreateJavaVM): Initialize JVMTI. * jvmti.cc (ILLEGAL_ARGUMENT): New macro. (_Jv_JVMTI_Allocate): Use ILLEGAL_ARUMENT. * jvmti.cc (_jvmtiEnvironments): New linked list of JVMTI environments. (FOREACH_ENVIRONMENT): New macro. (_envListLock): New object to act as synchronization lock for _jvmtiEnvironments. (_Jv_JVMTI_DisposeEnvironment): Check for NULL environment. Remove the environment from the list of known environments. (_Jv_GetJVMTIEnv): Add the new environment to the list of known environments. From-SVN: r116635
2006-09-01InetAddress.java (getLocalHost): Refactor to avoid security check if ↵Gary Benson2-24/+18
getLocalHostname() fails and to provide... 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getLocalHost): Refactor to avoid security check if getLocalHostname() fails and to provide more meaningful exceptions it the security check fails. From-SVN: r116627
2006-09-01InetAddress.java (getByAddress): Create Inet4Address objects when passed ↵Gary Benson2-25/+23
IPv4-mapped IPv6 addresses. 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getByAddress): Create Inet4Address objects when passed IPv4-mapped IPv6 addresses. (getByName, getAllByName): Defer to the above to ensure that the correct Inet*Address objects are returned. From-SVN: r116622
2006-09-01InetAddress.java (getByName, [...]): Only perform security check when DNS ↵Gary Benson2-10/+17
lookups are required. 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getByName, getAllByName): Only perform security check when DNS lookups are required. From-SVN: r116621
2006-08-31jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.Keith Seitz2-2/+6
* jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter. Pass millis to _Jv_CondWait. From-SVN: r116611
2006-08-31jvmti.h: Update from Classpath to get latest fixes and improvements.Keith Seitz2-11/+20
* include/jvmti.h: Update from Classpath to get latest fixes and improvements. From-SVN: r116610
2006-08-31* include/jvmti_md.h: New file.Keith Seitz2-0/+36
From-SVN: r116609
2006-08-31re PR libgcj/28698 ([gcj] libgcj-bc only used when building shared libs, not ↵Tom Tromey2-0/+22
executables) PR libgcj/28698: * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive classes. From-SVN: r116603
2006-08-292006-08-29 Gary Benson <gbenson@redhat.com>Gary Benson3-6/+56
* java/net/SocketPermission.java (maybeBracketIPv6Address): New method. (<init>): Pass the hostport argument through the above. * java/net/NetworkInterface.java (getInetAddresses): Revert the previous change. From-SVN: r116557
2006-08-24prims.cc (remoteDebug): New global.Keith Seitz2-2/+57
* prims.cc (remoteDebug): New global. (jdwpOptions): New global. (parse_x_arg): Add processing for "X" options "debug" and "runjdwp:" (_Jv_RunMain): If debugging, start up JDWP backend. Send VM_INIT and VM_DEATH when appropriate. From-SVN: r116383