summaryrefslogtreecommitdiff
path: root/vm/reference/java/lang/VMClassLoader.java
diff options
context:
space:
mode:
authorJohn Keiser <shalom@gnu.org>1998-09-22 19:21:17 +0000
committerJohn Keiser <shalom@gnu.org>1998-09-22 19:21:17 +0000
commit664a1537980dd947d5e966c14b881bbc3bcd9f85 (patch)
treeb86b2597fd7f69847549a736a3b652ca3f99e4b7 /vm/reference/java/lang/VMClassLoader.java
parent7bed717b35e251e59f746cf15173ae72a75907fe (diff)
downloadclasspath-664a1537980dd947d5e966c14b881bbc3bcd9f85.tar.gz
Initial set of VM interface classes. Must be customized on a per-VM basis.
Diffstat (limited to 'vm/reference/java/lang/VMClassLoader.java')
-rw-r--r--vm/reference/java/lang/VMClassLoader.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/vm/reference/java/lang/VMClassLoader.java b/vm/reference/java/lang/VMClassLoader.java
new file mode 100644
index 000000000..4d52c49b2
--- /dev/null
+++ b/vm/reference/java/lang/VMClassLoader.java
@@ -0,0 +1,51 @@
+/*
+ * java.lang.ClassLoader: part of the Java Class Libraries project.
+ * Copyright (C) 1998 John Keiser
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+package java.lang;
+
+/**
+ ** java.lang.VMClassLoader is a package-private helper for VMs to implement
+ ** on behalf of java.lang.ClassLoader.
+ **
+ ** @author John Keiser
+ ** @version 1.1.0, Sep 22 1998
+ ** @since CP1.1
+ **/
+
+class VMClassLoader {
+ /** Helper to define a class using a string of bytes.
+ ** @param name the name to give the class. null if unknown.
+ ** @param data the data representing the classfile, in classfile format.
+ ** @param offset the offset into the data where the classfile starts.
+ ** @param len the length of the classfile data in the array.
+ ** @return the class that was defined.
+ ** @exception ClassFormatError if the byte array is not in proper classfile format.
+ **/
+ final static Class defineClass(String name, byte[] data, int offset, int len) throws ClassFormatError {
+ throw new UnsupportedOperationException();
+ }
+
+ /** Helper to resolve all references to other classes from this class.
+ ** @param c the class to resolve.
+ **/
+ final static void resolveClass(Class c) {
+ throw new UnsupportedOperationException();
+ }
+}