summaryrefslogtreecommitdiff
path: root/vm
Commit message (Collapse)AuthorAgeFilesLines
* 2005-10-21 Nicolas Geoffray <nicolas.geoffray@menlina.com>Nicolas Geoffray2005-10-211-24/+25
| | | | | | * vm/reference/java/lang/VMClassLoader.java (getResources): uses a new static field HashMap to store opened zip files from property java.boot.class.path.
* 2005-10-21 Nicolas Geoffray <nicolas.geoffray@menlina.com>Nicolas Geoffray2005-10-211-2/+3
| | | | | | | * vm/reference/java/lang/VMClassLoader.java (getRessources): In case the property java.boot.class.path contains directories, tests if the ressource exists before adding it to the vector result.
* 2005-09-25 Casey Marshall <csm@gnu.org>Casey Marshall2005-09-261-11/+31
| | | | | | | | | | | | | | Fixes PR classpath/23916. Fix suggested by Santiago Gala <sgala@apache.org>. * java/security/AccessControlContext.java (<init>): update javadoc; check SecurityPermission "createAccessControlContext" if a security manager is set. (getProtectionDomains): new method. * vm/reference/java/security/VMAccessController.java (DEBUG): set to 'gnu.classpath.Configuration.DEBUG.' (pushContext, popContext): add debug statement. (getContext): debug output changes; include the DomainCombiner specified in the AccessControlContext, if any.
* * vm/reference/gnu/classpath/jdwp/VMIdManager.java (newObjectId):Keith Seitz2005-09-091-1/+2
| | | | Set the reference for the ID.
* 2005-09-09 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-09-092-3/+18
| | | | | | | | | | * java/io/ObjectInputStream.java: Removed static initializer. * java/io/ObjectOutputStream.java: Removed static initializer. * vm/reference/java/io/VMObjectInputStream.java: Added static initializer. (oisClass, vmoisClass): Removed unused fields. * vm/reference/java/io/VMObjectStreamClass.java: Added static initializer.
* * Makefile.am (EXTRA_DIST): Add autogen.shMark Wielaard2005-09-081-1/+0
| | | | | | * lib/standard.omit: Remove gnu/classpath/jdwp, gnu/xml/stream and javax/xml/stream. * vm/reference/standard.omit: Removed.
* * gnu/classpath/jdwp/event/filters/ClassMatchFilter.javaMark Wielaard2005-09-041-22/+14
| | | | | | | | (matches): Remove InvalidClassException since it is never thrown. * vm/reference/gnu/classpath/jdwp/VMIdManager.java (newReferenceTypeId): Only return null when SoftReference is cleared, don't catch InstantiationException or IllegalAccessException since they are never thrown.
* * gnu/classpath/jdwp/Jdwp.java: New file.Keith Seitz2005-09-031-0/+318
| | | | | * gnu/classpath/jdwp/JdwpConstants.java: New file. * vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java: New file.
* * vm/reference/gnu/classpath/jdwp/VMFrame.java: Update copyrightMark Wielaard2005-08-252-4/+4
| | | | | boilerplate address. * vm/reference/gnu/classpath/jdwp/VMIdManager.java: Likewise.
* * vm/reference/gnu/classpath/jdwp/VMIdManager.java: New fileKeith Seitz2005-08-181-0/+434
| | | | | | with example implementation of ID-management for JDWP back-end. * gnu/classpath/jdwp/id/JdwpIdFactory.java: Removed. Now part of VMIdManager.
* 2005-08-12 Aaron Luchko <aluchko@redhat.com>Aaron Luchko2005-08-131-1/+1
| | | | | * vm/reference/gnu/classpath/jdwp/VMFrame.java(getValue): Fix typo in comment.
* * vm/reference/standard.omit: New file to omit jdwp reference classesAaron Luchko2005-08-121-0/+1
| | | | from build.
* * vm/reference/gnu/classpath/jdwp/VMFrame.java: ImplementedAaron Luchko2005-08-121-0/+101
| | | | | | | | | | | | | | reference implementation of interface to VM for JDWP frame management. * gnu/classpath/jdwp/processor/StackFrameCommandSet.java: Updated import. (executeGetValues): Use VMFrame instead of Frame. (executeSetValues): Use VMFrame instead of Frame. (executeThisObject): Use VMFrame instead of Frame. * gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java: Updated import. (executeFrames): Changed getLoc() to getLocation() and use VMFrame instead of Frame.
* 2005-08-07 Ito Kazumitsu <kaz@maczuka.gcd.org>Mark Wielaard2005-08-071-0/+10
| | | | | | | | | | | | Fixes bug #22929 * libraries/javalib/java/net/NetworkInterface.java (condense): New static private method. (getNetworkInterfaces): Call condense(). (getByName, getByInetAddress): Call getNetworkInterfaces() so that condensed result may be returned. * vm/reference/java/net/VMNetworkInterface.java (getInterfaces): Clarify return value in documentation.
* * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: IncludeMark Wielaard2005-08-051-4/+0
| | | | | | | | | | | | | | | | jcl.h. (createRawData): Removed unused variable method. (getData): Removed unused variable field. * native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c (createRawData): Removed unused variable method. (getData): Removed unused variable field. * native/jni/java-nio/gnu_java_nio_charset_iconv_IconvEncoder.c (createRawData): Removed unused variable method. (getData): Removed unused variable field. * native/jni/java-nio/java_nio_VMDirectByteBuffer.c (Java_java_nio_VMDirectByteBuffer_init): Removed. * vm/reference/java/nio/VMDirectByteBuffer.java (init): Removed. * include/java_nio_VMDirectByteBuffer.h: Regenerated.
* 2005-08-03 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2005-08-031-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/classpath/Pointer.java, gnu/classpath/Pointer32.java, gnu/classpath/Pointer64.java, gnu/classpath/RawData.java, gnu/classpath/RawData32.java, gnu/classpath/RawData64.java, gnu/java/awt/peer/gtk/GtkImage.java, gnu/java/nio/charset/iconv/IconvDecoder.java, gnu/java/nio/charset/iconv/IconvEncoder.java, java/nio/Buffer.java, java/nio/DirectByteBufferImpl.java, java/nio/MappedByteBufferImpl.java, native/jni/classpath/jcl.c, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c, native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c, native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c, native/jni/java-nio/gnu_java_nio_charset_iconv_IconvEncoder.c, native/jni/java-nio/java_nio_MappedByteBufferImpl.c, native/jni/java-nio/java_nio_VMDirectByteBuffer.c, vm/reference/java/nio/VMDirectByteBuffer.java: Renamed references to gnu/classpath/RawData to gnu/classpath/Pointer.
* 2005-08-01 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-08-012-36/+12
| | | | | | | | | | | | | | | | | | | * NEWS: Added info about VM interfaces changes. * java/lang/Class.java (forName(String), forName(String, boolean, ClassLoader)): Simplified VM interface. * java/lang/ClassLoader.java (loadedClasses): Removed field. (defineClass(String,byte[],int,int,ProtectionDomain)): Removed code to add class to loadedClasses. * vm/reference/java/lang/VMClass.java (forName(String)): Removed method. (forName(String,boolean,ClassLoader)): New method. (initialize): Removed method. (loadArrayClass): Removed method. * vm/reference/java/lang/VMClassLoader.java (USE_VM_CACHE): Removed field. (findLoadedClass): Made native.
* 2005-07-26 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-07-261-0/+136
| | | | | | | | | | | | | | | | | * NEWS: Added comment about new VMProxy class. * gnu/classpath/Configuration.java.in (HAVE_NATIVE_GET_PROXY_CLASS): Removed. (HAVE_NATIVE_GET_PROXY_DATA): Removed. (HAVE_NATIVE_GENERATE_PROXY_CLASS): Removed. * java/lang/reflect/Proxy.java (getProxyClass): Changed to call VMProxy. (getProxyClass0): Removed. (getProxyData0): Removed. (generateProxyClass0): Removed. (ProxyData): Removed private modifier. (POOL): Removed (was unused). (INVOKESTATIC): Removed (was unused). * vm/reference/java/lang/reflect/VMProxy.java: New file.
* 2005-07-26 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-07-261-1/+3
| | | | | * vm/reference/java/lang/VMClassLoader.java (USE_VM_CACHE): Removed final modifier.
* 2005-07-25 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-07-251-0/+5
| | | | | | | | * java/lang/ClassLoader.java (loadedClasses): Set based on VMClassLoader.VM_USE_CACHE. (defineClass): Modified to respect VMClassLoader.VM_USE_CACHE. * vm/reference/java/lang/VMClassLoader.java (VM_USE_CACHE): New field.
* *** empty log message ***Jeroen Frijters2005-07-251-0/+8
|
* 2003-07-23 Casey Marshall <csm@gnu.org>Casey Marshall2005-07-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (AC_CHECK_HEADERS): add 'sys/mman.h'. (AC_CHECK_FUNCS): add mmap and related functions. * include/java_nio_VMDirectByteBuffer.h: regenerated. * java/nio/DirectByteBufferImpl.java (put): new method. * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c (ALIGN_DOWN): new macro. (ALIGN_UP): new macro. (Java_gnu_java_nio_channels_FileChannelImpl_mapImpl): implemented. * native/jni/java-nio/java_nio_MappedByteBufferImpl.c: updated copyright years. (ALIGN_DOWN): new macro. (ALIGN_UP): new macro. (get_pagesize): new function. (get_raw_values): new function. (Java_java_nio_MappedByteBufferImpl_unmapImpl): implemented. (Java_java_nio_MappedByteBufferImpl_isLoadedImpl): implemented. (Java_java_nio_MappedByteBufferImpl_loadImpl): implemented. (Java_java_nio_MappedByteBufferImpl_forceImpl): implemented. * native/jni/java-nio/java_nio_VMDirectByteBuffer.c (Java_java_nio_VMDirectByteBuffer_put): renamed to 'Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2IB.' (Java_java_nio_VMDirectByteBuffer_get__Lgnu_classpath_RawData_2I_3BII): call 'ReleaseByteArrayElements' on the source byte array elements. (Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2I_3BII): new method. * vm/reference/java/nio/VMDirectByteBuffer.java (put): new method.
* * all files: Update for new FSF address.Mark Wielaard2005-07-0228-56/+56
|
* * NEWS: document VM interface changes.Archie Cobbs2005-05-225-125/+21
| | | | | | | | | | | | | | | | | * java/lang/ClassLoader.java: (vmdata): add * vm/reference/java/lang/VMClass.java: (getModifiers()): add new parameter ignoreInnerClassesAttrib * vm/reference/java/lang/VMClassLoader.java: (defineClass()): remove deprecated version (getPrimitiveClass(String)): remove (getPrimitiveClass(char)): make native (loadClass()): make native * vm/reference/java/lang/VMThread.java: (vmdata): add (countStackFrames()): make native * vm/reference/java/lang/VMThrowable.java: (vmdata): add (fillInStackTrace()): make native (getStackTrace()): make native * vm/reference/java/lang/reflect/Constructor.java: (parameterTypes, exceptionTypes): remove (getParameterTypes(), getExceptionTypes()): make native
* * java/io/ObjectInputStream.javaMark Wielaard2005-04-301-15/+36
| | | | | | | | | | | | | | (currentLoader): Don't create SecurityManager, directly call VMObjectInputStream.currentClassLoader(). (resolveProxyClass): Use currentLoader(). * vm/reference/java/io/VMObjectInputStream.java (currentClassLoader(SecurityManager)): Removed. (currentClassLoader): New method. * native/jni/java-io/java_io_VMObjectInputStream.c (Java_java_io_VMObjectInputStream_currentClassLoader): Removed. * include/java_io_VMObjectInputStream.h: Regenerated. * NEWS: Document new interface and reference implementation.
* 2005-04-18 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-04-181-1/+8
| | | | | | | * java/lang/Class.java (getModifiers, newInstance): Changed call to VMClass.getModifiers(). * vm/reference/java/lang/VMClass.java (getModifiers(Class, boolean)): New method.
* 2005-04-16 Michael Koch <konqueror@gmx.de>Michael Koch2005-04-161-0/+65
| | | | | | | | | | | | | | | * include/Makefile.am: Removed java_io_ObjectInputStream.h and added java_io_VMObjectInputStream.h. * include/java_io_ObjectInputStream.h: Removed. * include/java_io_VMObjectInputStream.h: New file. * java/io/ObjectInputStream.java (currentClassLoader): Removed. (allocateObject): Likewise. * native/jni/java-io/Makefile.am: Removed java_io_ObjectInputStream.c and added java_io_VMObjectInputStream.c. * native/jni/java-io/java_io_ObjectInputStream.c: Removed. * native/jni/java-io/java_io_VMObjectInputStream.c: New file. * vm/reference/java/io/VMObjectInputStream.java: Likewise.
* 2005-04-16 Michael Koch <konqueror@gmx.de>Michael Koch2005-04-162-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/java_lang_Double.h, include/java_lang_Object.h, native/jni/java-lang/java_lang_Double.c, native/jni/java-lang/java_lang_Object.c: Removed. * include/java_lang_VMDouble.h: Regenerated. * java/lang/Double.java (static): Removed. (toString): Call native method from VMDouble. (parseDouble): Make non-native and call native method from VMDouble. (toString): Removed. * java/lang/Float.java (toString): Call native method from VMDouble. * java/lang/Object.java (getClass): Refactored to call the native in java.lang.VMObject. * include/Makefile.am: Don't generate java_lang_Double.h and java_lang_Object.h. * native/jni/java-lang/Makefile.am: Removed java_lang_Double.c and java_lang_Object.c. * native/jni/java-lang/java_lang_VMDouble.c (initIDs): New method. (toString): Likewise. (parseDouble): Likewise. * vm/reference/java/lang/VMDouble.java (initIDs): Likewise. (toString): Likewise. (parseDouble): Likewise. * vm/reference/java/lang/VMObject.java (getClass): Likewise.
* 2005-04-11 Michael Koch <konqueror@gmx.de>Michael Koch2005-04-112-0/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/InetAddress.java (static): Removed. (getLocalHostname): Likewise. (lookupInaddrAny): Likewise. (getHostByAddr): Likewise. (getHostByName): Likewise. * java/net/NetworkInterface.java (static): Likewise. (getRealNetworkInterfaces): Likewise. * native/jni/java-net/java_net_InetAddress.c: Renamed to... * native/jni/java-net/java_net_VMInetAddress.c: New file. Renamed from java_net_InetAddress.c. All native methods moved to class VMInetAddress. * native/jni/java-net/java_net_NetworkInterface.c: Renamed to... Renamed from java_net_NetworkInterface.c. All native methods moved to class VMNetworkInterface. * native/jni/java-net/java_net_VMNetworkInterface.c: New file. * vm/reference/java/net/VMInetAddress.java, vm/reference/java/net/VMNetworkInterface.java: New files. * include/java_net_InetAddress.h, include/java_net_NetworkInterface.h: Removed. * include/java_net_VMInetAddress.h, include/java_net_VMNetworkInterface.h: New files. * include/Makefile.am: Build new header files.
* * vm/reference/java/lang/VMClassLoader.java: handle ZIP filesArchie Cobbs2005-03-191-8/+49
| | | | on the boot loader class path in getResources()
* 2005-02-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-02-125-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/color/ClutProfileConverter.java, gnu/java/awt/peer/ClasspathTextLayoutPeer.java, gnu/java/awt/peer/gtk/GdkFontPeer.java, gnu/java/awt/peer/gtk/GdkGlyphVector.java, gnu/java/awt/peer/gtk/GdkGraphics2D.java, gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java, gnu/java/awt/peer/gtk/GdkPixbufDecoder.java, gnu/java/awt/peer/gtk/GdkRobotPeer.java, gnu/java/awt/peer/gtk/GdkTextLayout.java, gnu/java/awt/peer/gtk/GtkButtonPeer.java, gnu/java/awt/peer/gtk/GtkCheckboxMenuItemPeer.java, gnu/java/awt/peer/gtk/GtkCheckboxPeer.java, gnu/java/awt/peer/gtk/GtkChoicePeer.java, gnu/java/awt/peer/gtk/GtkComponentPeer.java, gnu/java/awt/peer/gtk/GtkContainerPeer.java, gnu/java/awt/peer/gtk/GtkDialogPeer.java, gnu/java/awt/peer/gtk/GtkFileDialogPeer.java, gnu/java/awt/peer/gtk/GtkFontPeer.java, gnu/java/awt/peer/gtk/GtkFramePeer.java, gnu/java/awt/peer/gtk/GtkLabelPeer.java, gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java, gnu/java/awt/peer/gtk/GtkMenuItemPeer.java, gnu/java/awt/peer/gtk/GtkScrollPanePeer.java, gnu/java/awt/peer/gtk/GtkTextComponentPeer.java, gnu/java/awt/peer/gtk/GtkToolkit.java, gnu/java/awt/peer/gtk/GtkWindowPeer.java, gnu/java/io/EncodingManager.java, gnu/java/io/decode/DecoderUTF8.java, gnu/java/net/protocol/file/Connection.java, gnu/java/net/protocol/ftp/ActiveModeDTP.java, gnu/java/net/protocol/ftp/BlockInputStream.java, gnu/java/net/protocol/ftp/BlockOutputStream.java, gnu/java/net/protocol/ftp/CompressedOutputStream.java, gnu/java/net/protocol/ftp/StreamInputStream.java, gnu/java/net/protocol/ftp/StreamOutputStream.java, gnu/java/net/protocol/http/Cookie.java, gnu/java/net/protocol/http/HTTPConnection.java, gnu/java/net/protocol/http/HTTPDateFormat.java, gnu/java/net/protocol/http/Request.java, gnu/java/nio/SelectorImpl.java, gnu/java/rmi/dgc/DGCImpl.java, gnu/java/rmi/server/UnicastConnectionManager.java, gnu/java/security/pkcs/SignerInfo.java, gnu/java/security/provider/EncodedKeyFactory.java, gnu/java/security/provider/GnuDHPublicKey.java, gnu/java/security/provider/PKIXCertPathValidatorImpl.java, gnu/java/security/x509/X500DistinguishedName.java, gnu/java/security/x509/X509CRL.java, gnu/java/security/x509/X509CRLEntry.java, gnu/java/security/x509/X509Certificate.java, gnu/java/security/x509/ext/AuthorityKeyIdentifier.java, gnu/java/security/x509/ext/CertificatePolicies.java, gnu/java/security/x509/ext/PolicyConstraint.java, gnu/xml/aelfred2/SAXDriver.java, gnu/xml/dom/Consumer.java, gnu/xml/dom/DomCharacterData.java, gnu/xml/dom/DomDocument.java, gnu/xml/dom/DomDocumentBuilder.java, gnu/xml/dom/DomIterator.java, gnu/xml/dom/DomNode.java, gnu/xml/dom/DomXPathExpression.java, gnu/xml/dom/DomXPathResult.java, gnu/xml/dom/JAXPFactory.java, gnu/xml/dom/ls/DomLSException.java, gnu/xml/libxmlj/dom/GnomeDocumentBuilder.java, gnu/xml/libxmlj/dom/GnomeXPathNodeList.java, gnu/xml/libxmlj/sax/GnomeXMLReader.java, gnu/xml/libxmlj/transform/GnomeTransformer.java, gnu/xml/libxmlj/transform/GnomeTransformerFactory.java, gnu/xml/libxmlj/util/XMLJ.java, gnu/xml/pipeline/CallFilter.java, gnu/xml/pipeline/DomConsumer.java, gnu/xml/pipeline/LinkFilter.java, gnu/xml/pipeline/NSFilter.java, gnu/xml/pipeline/TeeConsumer.java, gnu/xml/pipeline/ValidationConsumer.java, gnu/xml/pipeline/WellFormednessFilter.java, gnu/xml/pipeline/XIncludeFilter.java, gnu/xml/pipeline/XsltFilter.java, gnu/xml/transform/ApplyImportsNode.java, gnu/xml/transform/Bindings.java, gnu/xml/transform/DocumentFunction.java, gnu/xml/transform/FormatNumberFunction.java, gnu/xml/transform/NodeNumberNode.java, gnu/xml/transform/NumberNode.java, gnu/xml/transform/Stylesheet.java, gnu/xml/transform/SystemPropertyFunction.java, gnu/xml/transform/Template.java, gnu/xml/transform/TemplatesImpl.java, gnu/xml/transform/TransformerImpl.java, gnu/xml/transform/ValueOfNode.java, gnu/xml/transform/XSLURIResolver.java, gnu/xml/util/DoParse.java, gnu/xml/util/Resolver.java, gnu/xml/xpath/Expr.java, gnu/xml/xpath/FunctionCall.java, gnu/xml/xpath/RelationalExpr.java, gnu/xml/xpath/Selector.java, gnu/xml/xpath/XPathParser.java, java/beans/XMLDecoder.java, java/text/SimpleDateFormat.java, javax/swing/JPopupMenu.java, javax/swing/JSpinner.java, javax/swing/SortingFocusTraversalPolicy.java, javax/swing/SwingUtilities.java, javax/swing/plaf/basic/BasicComboBoxEditor.java, javax/swing/plaf/basic/BasicComboBoxRenderer.java, javax/swing/tree/DefaultMutableTreeNode.java, javax/xml/parsers/DocumentBuilder.java, javax/xml/parsers/DocumentBuilderFactory.java, javax/xml/transform/sax/SAXTransformerFactory.java, vm/reference/java/lang/VMClassLoader.java, vm/reference/java/lang/VMProcess.java, vm/reference/java/lang/VMRuntime.java, vm/reference/java/lang/VMSystem.java, vm/reference/java/security/VMAccessController.java: Removed unused imports and expanded starred imports.
* * vm/reference/java/lang/VMClassLoader.java: Remove SystemClassLoaderMark Wielaard2005-02-021-2/+1
| | | | import statement.
* 2005-01-29 Steven Augart <augart@watson.ibm.com>Steven Augart2005-01-291-1/+1
| | | | * vm/reference/gnu/classpath/VMStackWalker.java: Doc fix.
* 2005-01-13 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2005-01-131-3/+3
| | | | | | * vm/reference/java/nio/channels/VMChannels.java: Class shouldn't be public. (newInputStream,newOutputStream): No need to be public.
* 2005-01-12 Michael Koch <konqueror@gmx.de>Michael Koch2005-01-121-0/+116
| | | | | | | | | | | | | | | | * java/nio/channels/Channels.java (newInputStream(ReadableByteChannel)): Call VMChannels.newInputStream(ReadableByteChannel). (newOutputStream(WritableByteChannel): Call VMChannels.newOutputStream(WritableByteChannel). (newInputStream(FileChannelImpl)): Removed. (newOutputStream(FileChannelImpl)): Likewise. * vm/reference/java/nio/channels/VMChannels.java: Nw file. * native/jni/java-nio/Makefile.am: * native/jni/java-nio/java_nio_channels_Channels.c, include/java_nio_channels_Channels.h: Removed. * include/Makefile.am: Don't generate java_nio_channels_Channels.h. Removed java_nio_channels_Channels.c.
* Re-committing now that the 0.13 release has been tagged:Archie Cobbs2005-01-073-74/+110
| | | | | | | | | | | | | | | | | | | | * NEWS: Document changes. * java/lang/Class.java (newInstance(), getClassLoader(), forName(String), forName(String, boolean, ClassLoader)): Use new VMStackWalker methods. * java/lang/ClassLoader.java (getParent(), getSystemClassLoader()): Likewise. * java/lang/Package.java (getPackages()): Likewise. * java/lang/SecurityManager.java (getClassContext()): Likewise. * java/util/ResourceBundle.java (getBundle()): Likewise. * java/lang/Runtime.java (load(), loadLibrary()): Load the native library using the calling class' class loader. * java/lang/System.java (load(), loadLibrary()): Likewise. (currentClassLoader()): implement via currentLoadedClass(). * vm/reference/gnu/classpath/VMStackWalker.java: New class. * vm/reference/java/lang/VMRuntime.java (nativeLoad()): Add a ClassLoader parameter. * vm/reference/java/lang/VMSecurityManager.java: Removed.
* * vm/reference/java/lang/VMProcess.java (VMProcess): ConstructorTom Tromey2005-01-053-22/+23
| | | | | | | | | | | | now package-private. (processThread, workList, reapedPid, reapedExitValue, state, cmd, env, dir, exception, pid, stdin, stdout, stderr, exitValue): Now package-private. (nativeSpawn, nativeReap): Likewise. * vm/reference/java/lang/VMThread.java (currentThread): Reordered modifiers. * vm/reference/java/security/VMAccessController.java (DEFAULT_CONTEXT): Reordered modifiers.
* Revert previous commit; Mark is not ready for it yet.Archie Cobbs2005-01-043-110/+74
|
* * NEWS: Document changes.Archie Cobbs2005-01-043-74/+110
| | | | | | | | | | | | | | | | | | | * java/lang/Class.java (newInstance(), getClassLoader(), forName(String), forName(String, boolean, ClassLoader)): Use new VMStackWalker methods. * java/lang/ClassLoader.java (getParent(), getSystemClassLoader()): Likewise. * java/lang/Package.java (getPackages()): Likewise. * java/lang/SecurityManager.java (getClassContext()): Likewise. * java/util/ResourceBundle.java (getBundle()): Likewise. * java/lang/Runtime.java (load(), loadLibrary()): Load the native library using the calling class' class loader. * java/lang/System.java (load(), loadLibrary()): Likewise. (currentClassLoader()): implement via currentLoadedClass(). * vm/reference/gnu/classpath/VMStackWalker.java: New class. * vm/reference/java/lang/VMRuntime.java (nativeLoad()): Add a ClassLoader parameter. * vm/reference/java/lang/VMSecurityManager.java: Removed.
* * vm/reference/java/lang/VMThread.java (sleep()): revert behaviorArchie Cobbs2005-01-021-8/+6
| | | | of sleep(0,0) to previous, where we check for InterruptedException.
* * NEWS, java/lang/Thread.java, vm/reference/java/lang/VMThread.java:Archie Cobbs2004-12-311-9/+50
| | | | | treat Thread.sleep(0) like Thread.yield() for JDK compatibility, and add a non-native implementation of VMThread.sleep().
* * java/lang/Thread.java (sleep): Update documentation. Make sureMark Wielaard2004-12-301-4/+3
| | | | | | VMThread.sleep() is never called with zero arguments. * vm/reference/java/lang/VMThread.java (sleep): Update documentation. * NEWS: Mention change in VMThread.sleep() interface.
* 2004-12-28 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-12-281-0/+9
| | | | | | | | * NEWS: Added entry about new method. * java/lang/Runtime.java (addShutdownHook): Added call to new method. * vm/reference/java/lang/VMRuntime.java (enableShutdownHooks): New method.
* 2004-12-13 Michael Koch <konqueror@gmx.de>Michael Koch2004-12-131-11/+12
| | | | | * vm/reference/java/lang/VMClassLoader.java: Reworked import statements.
* * NEWS: Clarify VMRuntime and String/StringBuffer VMSystem usage.Mark Wielaard2004-12-101-1/+3
| | | | | | | | | * vm/reference/gnu/classpath/VMSystemProperties.java (postInit): Provide empty default implementation. * java/lang/String.java: Replace all usage of System.arraycopy() with VMSystem.arraycopy(). * java/lang/StringBuffer.java: Likewise.
* 2004-12-07 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-12-071-0/+2
| | | | | * vm/reference/gnu/classpath/VMSystemProperties.java: Added import to make it compile.
* 2004-12-06 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-12-064-57/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/classpath/SystemProperties.java: New file. * vm/reference/gnu/classpath/VMSystemProperties.java: New file. * gnu/java/io/EncodingManager.java, gnu/java/net/protocol/file/Connection.java, java/io/File.java, java/lang/Throwable.java, java/security/Security.java, java/security/cert/X509CRLSelector.java, java/security/cert/X509CertSelector.java, java/util/Locale.java, vm/reference/java/lang/VMClassLoader.java: Modified to use SystemProperties. * java/lang/Class.java: Modified to use SecurityManager.current. * java/lang/ClassLoader.java (StaticData.systemClassLoader): New field. (StaticData.static): New static initializer to install default security manager. (ClassLoader()): Modified to use StaticData.systemClassLoader. ClassLoader(ClassLoader)): Modified to use SecurityManager.current. (findSystemClass): Modified to use StaticData.systemClassLoader. (getParent): Modified to use SecurityManager.current. (getSystemResource,getSystemResources): Modified to use StaticData.systemClassLoader. (getSystemClassLoader): Modified to use SecurityManager.current and StaticData.systemClassLoader. (getExtClassLoaderUrls,getSystemClassLoaderUrls): Modified to use SystemProperties. (defaultGetSystemClassLoader): Modified to use SecurityManager.current and SystemProperties. (getSystemProperty): Removed. * java/lang/Runtime.java (securityManager): Removed. (defaultProperties): Removed. (static): Removed. (Runtime): Modified to use SystemProperties. (exit,removeShutdownHook,halt,runFinalizersOnExit,exec,load,loadLib): Modified to use SecurityManager.current. (loadLibrary): Modified to use SecurityManager.current and changed call to System.mapLibraryName to VMRuntime.mapLibraryName. * java/lang/SecurityManager.java (current): New field. * java/lang/System.java (systemClassLoader): Removed. (properties): Removed. (in,out,err): Initialize in-line. (static): Removed. (initLoadLibrary): Removed. (initProperties): Removed. (initSystemClassLoader): Removed. (initSecurityManager): Removed. (setIn,setOut,setErr,setSecurityManager,getSecurityManager,getenv): Modified to use SecurityManager.current. (getProperties,setProperties,getProperty(String), getProperty(String,String),setProperty): Modified to use SecurityManager.current and SystemProperties. (mapLibraryName): Modified to call VMRuntime.mapLibraryName. * java/lang/Thread.java: Modified to use SecurityManager.current. * java/lang/ThreadGroup.java: Modified to use SecurityManager.current. * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_isWordsBigEndian): Removed. * vm/reference/java/lang/VMRuntime.java (nativeGetLibname): Removed (renamed to mapLibraryName). (mapLibraryName): New method. (insertSystemProperties): Removed. * vm/reference/java/lang/VMSystem.java (isWordsBigEndian): Removed.
* 2004-12-02 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-12-021-0/+4
| | | | | | | | | | | | | * java/awt/EventDispatchThread.java, java/awt/Toolkit.java, java/io/ObjectStreamClass.java, java/lang/reflect/Proxy.java, java/net/URL.java, java/security/SecureRandom.java, java/util/Timer.java, java/util/prefs/AbstractPreferences.java, vm/reference/java/lang/VMProcess.java: Don't catch java.lang.ThreadDeath.
* 2004-11-26 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-11-261-0/+17
| | | | | | | * java/io/File.java (canWrite): Moved directory write test to VMFile. * vm/reference/java/io/VMFile.java (canWriteDirectory): New method.
* 2004-11-21 Michael Koch <konqueror@gmx.de>Michael Koch2004-11-211-0/+66
| | | | | | | | | | | | | | | | | | | | | | | * gnu/classpath/RawData.java: Made abstract. * gnu/classpath/RawData32.java, gnu/classpath/RawData64.java: New files. * include/Makefile.am: Don't generate java_nio_DirectByteBufferImpl.h anymore and generate java_nio_VMDirectByteBuffer.h now. * java/nio/DirectByteBufferImpl.java: Moved native methods to VMDirectByteBuffer. * java/nio/MappedByteBufferImpl.java: Use methods from VMDirectBteBuffer. * native/jni/java-nio/Makefile.am: Removed java_nio_DirectByteBufferImpl.c and added java_nio_VMDirectByteBuffer.c * include/java_nio_DirectByteBufferImpl.h, native/jni/java-nio/java_nio_DirectByteBufferImpl.c: Removed. * include/java_nio_VMDirectByteBuffer.h, * native/jni/java-nio/java_nio_VMDirectByteBuffer.c, * vm/reference/java/nio/VMDirectByteBuffer.java: New files.