summaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)Author
2007-04-24headers.txt (gnu/gcj/jvmti/Breakpoint.h): Add _Jv_RewriteBreakpointInsn ↵Keith Seitz
friend declaration. * headers.txt (gnu/gcj/jvmti/Breakpoint.h)[DIRECT_THREADED]: Add _Jv_RewriteBreakpointInsn friend declaration. * gnu/gcj/jvmti/natBreakpoint.cc (_Jv_RewriteBreakpointInsn) [DIRECT_THREADED]: New function. * gnu/gcj/jvmti/Breakpoint.h: Regenerate. * interpret-run.cc: Define new REWRITE_INSN macro. Changed all occurrences of insn rewriting to call REWRITE_INSN. From-SVN: r124111
2007-04-23no-gc.h (_Jv_IsThreadSuspended): Declare.Keith Seitz
* include/no-gc.h (_Jv_IsThreadSuspended): Declare. * include/boehm-gc.h (_Jv_IsThreadSuspended): Likewise. * boehm.cc (_Jv_IsThreadSuspended): New function. * nogc.cc (_Jv_IsThreadSuspended): Likewise. * jvmti.cc (_Jv_JVMTI_GetThreadState): New function. (_Jv_JVMTI_Interface): Define GetThreadState. From-SVN: r124082
2007-04-23java-interp.h (_Jv_InterpFrame): Add pointer to the interpreter PC.Kyle Galloway
2007-04-23 Kyle Galloway <kgallowa@redhat.com> * include/java-interp.h (_Jv_InterpFrame): Add pointer to the interpreter PC. (<init>): Add a pointer to the interpreter PC as a parameter with default value NULL. (get_pc): New method. * interpret-run.cc: If debugging, pass a pointer to the PC when creating the stack frame. * jvmti.cc (_Jv_JVMTI_GetStackTrace): Call _Jv_InterpFrame::get_pc to get the PC. From-SVN: r124076
2007-04-23re PR classpath/31646 (Arrays.sort() broken)Jeroen Frijters
2007-04-23 Jeroen Frijters <jeroen@frijters.net> PR classpath/31646: * java/util/Arrays.java (qsort): Corrected initial median calculation. From-SVN: r124071
2007-04-23natVMVirtualMachine.cc (getSourceFile): Check for null source file and throw ↵Kyle Galloway
an exception indicating this. 2007-04-23 Kyle Galloway <kgallowa@redhat.com> * gnu/classpath/jdwp/natVMVirtualMachine.cc (getSourceFile): Check for null source file and throw an exception indicating this. From-SVN: r124066
2007-04-20BreakpointManager.java (newBreakpoint): Install the new breakpoint into the ↵Keith Seitz
bytecode. * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint): Install the new breakpoint into the bytecode. (deleteBreakpoint): Remove the breakpoint from the bytecode. * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class: Regenerate. * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native): Don't install the breakpoint here. From-SVN: r123997
2007-04-20interpret-run.cc [...]: Save the original insn for the breakpoint before ↵Keith Seitz
posting the JVMTI notification. * interpret-run.cc [insn_breakpoint]: Save the original insn for the breakpoint before posting the JVMTI notification. From-SVN: r123985
2007-04-19re PR crypto/31626 (javax.net.SocketFactory#createSocket() throws ↵Tom Tromey
UnsupportedOperationException) libjava * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.h: Rebuilt. libjava/classpath 2007-04-19 Casey Marshall <csm@gnu.org> PR classpath/31626: * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java (createSocket): New method. From-SVN: r123977
2007-04-19libjavaTom Tromey
* Regenerated headers with new gjavah. libjava/classpath * tools/gnu/classpath/tools/javah/MethodHelper.java (print): Changed arguments. Directly print method name. * tools/gnu/classpath/tools/javah/ClassWrapper.java (methodNameMap): New field. (makeVtable): Initialize it. (printMethods): Compute name for bridge targets. From-SVN: r123965
2007-04-18natVMProxy.cc (ncode_closure): Add method_index.Andrew Haley
2007-04-18 Andrew Haley <aph@redhat.com> * java/lang/reflect/natVMProxy.cc (ncode_closure): Add method_index. (generateProxyClass): Add field $Proxy0.m. Store methods array in it. (run_proxy): Retrieve the method to invoke from in $Proxy0.m. * java/lang/Class.h: Remove _Jv_LookupProxyMethod. * java/lang/natClass.cc: Likewise. * headers.txt: Likewise. * java/lang/reflect/Method.h: Likewise. From-SVN: r123954
2007-04-18natVMProxy.cc (ncode_closure): Add method_index.Andrew Haley
2007-04-18 Andrew Haley <aph@redhat.com> * java/lang/reflect/natVMProxy.cc (ncode_closure): Add method_index. (generateProxyClass): Add field $Proxy0.m. Store methods array in it. (run_proxy): Retrieve the method to invoke from in $Proxy0.m. * java/lang/Class.h: Remove _Jv_LookupProxyMethod. * java/lang/natClass.cc: Likewise. * headers.txt: Likewise. From-SVN: r123953
2007-04-18UnicastConnectionManager.java (UnicastConnectionManager(int port, ↵Andrew Haley
RMIServerSocketFactory)): Listen on "localhost", not localhost. 2007-04-17 Andrew Haley <aph@redhat.com> * gnu/java/rmi/server/UnicastConnectionManager.java (UnicastConnectionManager(int port, RMIServerSocketFactory)): Listen on "localhost", not localhost. From-SVN: r123952
2007-04-17re PR awt/31311 (Quitting applet can hang X server)Francis Kung
2007-04-17 Francis Kung <fkung@redhat.com> PR classpath/31311 * gnu/java/awt/peer/gtk/ComponentGraphics.java (dispose): Removed method. (disposeSurface): Removed method. * gnu_java_awt_peer_gtk_ComponentGraphics.h: Regenerated. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c (Java_gnu_java_awt_peer_gtk_ComponentGraphics_disposeSurface): Removed. (Java_gnu_java_awt_peer_gtk_ComponentGraphics_initState): Destroy surface after it is used to create a cairo context. From-SVN: r123928
2007-04-16Committed up-to-date .class and .h files from an earlier commitTom Tromey
From-SVN: r123890
2007-04-16https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236614Tom Tromey
* gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java (createSocket): Change order of delegation. From-SVN: r123889
2007-04-16ObjectInputStream.java: (parseContent): Call (String, Object) version of ↵Andrew Haley
dumpElementln. 2007-04-16 Andrew Haley <aph@redhat.com> * java/io/ObjectInputStream.java: (parseContent): Call (String, Object) version of dumpElementln. (dumpElementln(String, Object)): New method. * java/io/ObjectOutputStream.java (writeObject): Call (String, Object) version of dumpElementln. (dumpElementln(String, Object)): New method. From-SVN: r123875
2007-04-162007-04-16 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes
* javax/management/ObjectName.java: (parse(String)): Catch multiple wildcards, initialise with an empty string (so null isn't appended), and emit comma even when wildcard ends the list. (checkComponents()): Catch newlines. (quote(String)): Handle newlines and quotes correctly. From-SVN: r123873
2007-04-16BootClassLoader.java (getBootURLLoader): New method.Andrew Haley
2007-04-16 Andrew Haley <aph@redhat.com> * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New method. (bootGetResource): Use getBootURLLoader() to load resources. (bootGetResources): Likewise. * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also check that the method's declaring class is accessible. From-SVN: r123867
2007-04-16TaggedComponentHelper.java (read): Use read_octet_array(), not read().Andrew Haley
2007-04-16 Andrew Haley <aph@redhat.com> * org/omg/IOP/TaggedComponentHelper.java (read): Use read_octet_array(), not read(). (write): Use write_octet_array(), not write(). * org/omg/PortableServer/Servant.java (_get_delegate): Throw if no delegate has been set. * javax/management/ObjectName.java serialVersionUID: Declare. Make all fields transient. (parse): Break out from constructor. (writeObject, readObject): New methods. From-SVN: r123865
2007-04-16TaggedComponentHelper.java (read): Use read_octet_array(), not read().Andrew Haley
2007-04-16 Andrew Haley <aph@redhat.com> * org/omg/IOP/TaggedComponentHelper.java (read): Use read_octet_array(), not read(). (write): Use write_octet_array(), not write(). * org/omg/PortableServer/Servant.java (_get_delegate): Throw if no delegate has been set. * javax/management/ObjectName.java serialVersionUID: Declare. Make all fields transient. (parse): Break out from constructor. (writeObject, readObject): New methods. From-SVN: r123864
2007-04-16BootClassLoader.java (getBootURLLoader): New method.Andrew Haley
2007-04-16 Andrew Haley <aph@redhat.com> * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New method. (bootGetResource): Use getBootURLLoader() to load resources. (bootGetResources): Likewise. * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also check that the method's declaring class is accessible. From-SVN: r123862
2007-04-10sources.am: Regenerate.Keith Seitz
* sources.am: Regenerate. * Makefile.in: Likewise. From-SVN: r123697
2007-04-09interpret-run.cc: If debugging, check if args is NULL before getting the ↵Kyle Galloway
"this" pointer. 2007-04-09 Kyle Galloway <kgallowa@redhat.com> * interpret-run.cc: If debugging, check if args is NULL before getting the "this" pointer. From-SVN: r123681
2007-04-09ArrayValue.java: New file.Kyle Galloway
2007-04-09 Kyle Galloway <kgallowa@redhat.com> * classpath/gnu/classpath/jdwp/value/ArrayValue.java: New file. * classpath/lib/gnu/classpath/jdwp/value/ArrayValue.class: New file. * gnu/classpath/jdwp/ArrayValue.h: New file. * gnu/classpath/jdwp/natVMFrame.cc (getValue): Add array case. (setValue): Ditto. From-SVN: r123680
2007-04-09Fix ChangeLog date.David Daney
From-SVN: r123677
2007-04-09re PR libgcj/23758 (java::lang::ConcreteProcess::nativeSpawn unsafe)David Daney
PR libgcj/23758 * java/lang/natPosixProcess.cc (nativeSpawn): Move building of environment before the fork. * testsuite/libjava.lang/Process_7.java: New test. * testsuite/libjava.lang/Process_7.out: Its expected results. * testsuite/libjava.lang/Process_7.jar: Generated file. From-SVN: r123676
2007-04-09prims.cc (load_jvmti_agent): Add the missing `,'.H.J. Lu
2007-04-09 H.J. Lu <hongjiu.lu@intel.com> * prims.cc (load_jvmti_agent): Add the missing `,'. From-SVN: r123672
2007-04-09gij.cc (main): Accept -agentlib and -agentpath options.Kyle Galloway
2007-04-09 Kyle Galloway <kgallowa@redhat.com> * gij.cc (main): Accept -agentlib and -agentpath options. * prims.cc (parse_init_args): Deal with -agentlib and -agentpath. (load_jvmti_agent): New function. From-SVN: r123671
2007-04-05DecimalFormatSymbols.java: Added the year 2007 to Copyright information and ↵Tania Bento
introduced new variable, currency. 2007-04-04 Tania Bento <tbento@redhat.com> * java/text/DecimalFormatSymbols.java: Added the year 2007 to Copyright information and introduced new variable, currency. (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol to "XXX", currencySymbol to "?" and localCurrency appropriately. (getCurrency): Fixed documentation and return the value of currency. (setCurrency): Fixed documentation and update the value of currency. (setInternationalCurrencySymbol): Fixed documentation and update the value of currency. * java/util/Currency.java: Introduced two new variables, properties and fractionDigits. In the static block, a properties object is created and the currency resource is loaded. (Currency(Locale)): fractionDigits is defined. (Currency(String)): New method. (getDefaultFractionDigits): Return the value of fractionDigits. (getInstance(String)): Check if String is equal to "XXX". From-SVN: r123512
2007-04-05VariableTable.java: Change longs to ints for argCnt and slots.Kyle Galloway
2007-04-04 Kyle Galloway <kgallowa@redhat.com> * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs to ints for argCnt and slots. (write): Replace writeLong with writeInt for the above. From-SVN: r123511
2007-04-03ProxyTest.java: New test.Andrew Haley
2007-04-03 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/ProxyTest.java: New test. From-SVN: r123466
2007-04-03natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short.Tom Tromey
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short. From-SVN: r123447
2007-04-02natPlainSocketImplPosix.cc (create): Return if already created.Tom Tromey
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406 * gnu/java/net/natPlainSocketImplPosix.cc (create): Return if already created. * gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case where localport is -1. (create): Now public. * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call 'create' on the socket. From-SVN: r123440
2007-04-02ThreadStartEvent.java (Event): Event type is "THREAD_START" not "THREAD_END".Keith Seitz
* gnu/classpath/jdwp/event/ThreadStartEvent.java (Event): Event type is "THREAD_START" not "THREAD_END". * gnu/classpath/jdwp/transport/SocketTransport.java (ITransport): Handle configure strings ":port" and "port". From-SVN: r123436
2007-04-02natVMProxy.cc (run_proxy): Use _Jv_LookupProxyMethod to find the Method.Andrew Haley
2007-04-02 Andrew Haley <aph@redhat.com> * java/lang/reflect/natVMProxy.cc (run_proxy): Use _Jv_LookupProxyMethod to find the Method. If parameter_types->length == 0, pass a null paramameter list, not a zero-length parameter list. * java/lang/natClass.cc (_Jv_LookupProxyMethod): New function. * java/lang/Class.h (_Jv_LookupProxyMethod): Declare. From-SVN: r123431
2007-04-02[multiple changes]Andrew Haley
2007-03-30 Andrew Haley <aph@redhat.com> * javax/management/ObjectName.java: Handle 0-length names. 2007-03-27 Andrew Haley <aph@redhat.com> * javax/management/MBeanServerFactory.java: Use the domain that we've been passed, not the fixed string "DefaultDomain". From-SVN: r123430
2007-04-02interpret-run.cc: Add code to properly set up variable slots when debugging.Kyle Galloway
2007-04-02 Kyle Galloway <kgallowa@redhat.com> * interpret-run.cc: Add code to properly set up variable slots when debugging. * gnu/classpath/jdwp/natVMFrame.cc (checkJVMTIError): New function. (getObjectJVMTI): New function. (setObjectJVMTI): New function. (getIntJVMTI): New function. (setIntJVMTI): New function. (getLongJVMTI): New function. (setLongJVMTI): New function. (getFloatJVMTI): New function. (setFloatJVMTI): New function. (getDoubleJVMTI): New function. (setDoubleJVMTI): New function. (getFrameDepth): New function. (getValue): Implement. (setValue): Implement. From-SVN: r123427
2007-04-022007-04-02 Kyle Galloway <kgallowa@redhat.com>Kyle Galloway
* classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java (executeResume): Call VMVirtualMachine.resumeThread. From-SVN: r123426
2007-03-30re PR libgcj/29869 (LogManager class loading failure with Tomcat)Tom Tromey
libjava PR libgcj/29869: * java/util/logging/LogManager.java (readConfiguration): Handle comma-separated 'handlers'. Don't try to add a non-existing handler. libgcj/classpath PR libgcj/29869: * gnu/java/util/jar/JarUtils.java (log): Commented out. (readSFManifest): Don't log. From-SVN: r123356
2007-03-28ClientHandshake.java (RSAGen.implRun): check keyEncipherment bit of the ↵Casey Marshall
certificate... 2007-03-28 Casey Marshall <csm@gnu.org> * gnu/javax/net/ssl/provider/ClientHandshake.java (RSAGen.implRun): check keyEncipherment bit of the certificate, and just pass the public key to the cipher. From-SVN: r123307
2007-03-28sources.am, [...]: Rebuilt.Tom Tromey
* sources.am, Makefile.in: Rebuilt. * scripts/mime.types: Removed. * scripts/MakeDefaultMimeTypes.java: Removed. * gnu/gcj/io/MimeTypes.java: Removed. * gnu/gcj/io/MimeTypes.h: Removed. * gnu/gcj/io/DefaultMimeTypes.java: Removed. * gnu/gcj/io/DefaultMimeTypes.h: Removed. From-SVN: r123288
2007-03-28re PR classpath/31302 (Exception in SSLSocketImpl)Casey Marshall
2007-03-27 Casey Marshall <csm@gnu.org> PR classpath/31302: * gnu/javax/net/ssl/provider/SSLSocketImpl.java (SSLSocketImpl): Always make a new socket. (bind, connect, getInetAddress, getLocalAddress, getPort, getLocalPort, getRemoteSocketAddress, getLocalSocketAddress, setTcpNoDelay, getTcpNoDelay, setSoLinger, getSoLinger, setOOBInline, getOOBInline, setSoTimeout, getSoTimeout, setSendBufferSize, getSendBufferSize, setReceiveBufferSize, getReceiveBufferSize, setKeepAlive, getKeepAlive, setTrafficClass, getTrafficClass, setReuseAddress, getReuseAddress, close, shutdownInput, shutdownOutput, isConnected, isBound, isClosed, isInputShutdown, isOutputShutdown): Always use 'underlyingSocket'. From-SVN: r123285
2007-03-27re PR xml/31303 (SAXException: org.xml.sax.driver property needs to be set?)Tom Tromey
PR classpath/31303: * external/sax/org/xml/sax/helpers/XMLReaderFactory.java (createXMLReader): Code in Classpath default. From-SVN: r123267
2007-03-27VMFrame.java: Update from upstream classpath.Keith Seitz
* gnu/classpath/jdwp/VMFrame.java: Update from upstream classpath. * gnu/classpath/jdwp/natVMFrame.cc: Likewise. * gnu/classpath/jdwp/VMVirtualMachine.java: Likewise. * gnu/classpath/jdwp/natVMVirtualMachine.cc: Likewise. (initialize): Fix compiler type-punning warning. (getAllLoadedClasses): Return empty list instead of NULL. (getLoadRequests): Likewise. * gnu/classpath/jdwp/exception/InvalidTagException.h: New file. * gnu/classpath/jdwp/exception/InvalidSlotException.h: New file. * gnu/classpath/jdwp/exception/TypeMismatchException.h: New file. * gnu/classpath/jdwp/VMVirtualMachine.h: Rebuilt. * gnu/classpath/jdwp/value/CharValue.h: New file. * gnu/classpath/jdwp/value/LongValue.h: New file. * gnu/classpath/jdwp/value/ShortValue.h: New file. * gnu/classpath/jdwp/value/Value.h: New file. * gnu/classpath/jdwp/value/BooleanValue.h: New file. * gnu/classpath/jdwp/value/VoidValue.h: New file. * gnu/classpath/jdwp/value/ByteValue.h: New file. * gnu/classpath/jdwp/value/FloatValue.h: New file. * gnu/classpath/jdwp/value/ObjectValue.h: New file. * gnu/classpath/jdwp/value/StringValue.h: New file. * gnu/classpath/jdwp/value/ValueFactory.h: New file. * gnu/classpath/jdwp/value/IntValue.h: New file. * gnu/classpath/jdwp/value/DoubleValue.h: New file. * gnu/classpath/jdwp/VMFrame.h: Rebuilt. * gnu/classpath/jdwp/id/NullObjectId.h: New file. * gnu/classpath/jdwp/util/MethodResult.h: Rebuilt. * gnu/classpath/jdwp/util/NullObject.h: New file. * gnu/classpath/jdwp/util/MonitorInfo.h: New file. * Makefile.in: Rebuilt. * sources.am: Rebuilt. From-SVN: r123266
2007-03-27Classpath JDWP merge with upstreamKeith Seitz
From-SVN: r123265
2007-03-27Index: gcc/java/ChangeLogTom Tromey
from Tom Tromey <tromey@redhat.com> * Make-lang.in (JAVA_MANFILES): Removed grmiregistry.1. (java.maintainer-clean): Likewise. (java.install-man): Likewise. (.INTERMEDIATE): Removed grmiregistry.pod. (grmiregistry.pod): Removed. * gcj.texi (Invoking gcjh): Removed. (Invoking gjnih): Likewise. (Invoking grmiregistry): Likewise. (direntry): Updated. (Top): Likewise. (which-gcj): Removed. Index: libjava/classpath/ChangeLog from Tom Tromey <tromey@redhat.com> * doc/cp-tools.texinfo (gcjh Tool): Added more text. (rmid Tool): Likewise. 2007-03-25 Dalibor Topic <robilad@kaffe.org> * doc/cp-tools.texinfo: Fix node ordering. 2007-03-19 Matthias Klose <doko@ubuntu.com> * doc/Makefile.am: Build a gcjh(1) man page. * doc/cp-tools.texinfo: Add documentation for gcjh. From-SVN: r123253
2007-03-26Main.java (cniOrJniSeen): New field.Stepan Kasal
2007-03-26 Stepan Kasal <skasal@redhat.com> * tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New field. (getParser): Use new field. From-SVN: r123240
2007-03-26configure.ac: Remove checks for mktime...David Daney
* configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r, fork, execvp, execinfo.h, pthread_mutexattr_settype, pthread_mutexattr_setkind_np and sys/wait.h. * Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * include/config.h.in: Regenerate. * testsuite/Makefile.in: Regenerate. * configure: Regenerate. * gcj/Makefile.in: Regenerate. From-SVN: r123221
2007-03-23link.cc (_Jv_Linker::resolve_method_entry): Ensure that the argument types ↵Gary Benson
and the return type of the found method match... 2007-03-23 Gary Benson <gbenson@redhat.com> * link.cc (_Jv_Linker::resolve_method_entry): Ensure that the argument types and the return type of the found method match those expected by the calling method. From-SVN: r123156
2007-03-23re PR libgcj/31228 (Race condition between setting close-on-exec and ↵David Daney
Runtime.exec()) PR libgcj/31228 * configure.ac: Add checks for getrlimit and sys/resource.h. * include/posix.h (_Jv_platform_close_on_exec): Remove. * include/config.h.in: Regenerate. * configure: Regenerate. * gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to _Jv_platform_close_on_exec; * gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise. (accept): Likewise. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise. * java/lang/natPosixProcess.cc: Include sys/resource.h. (nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on pipes. From-SVN: r123138