summaryrefslogtreecommitdiff
path: root/vm/reference/java/lang/Class.java
Commit message (Collapse)AuthorAgeFilesLines
* * vm/reference/java/lang/VMClass.java: new fileBrian Jones2003-04-041-883/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vm/reference/java/lang/Class.java: moved to java/lang * java/lang/Class.java: added transient reference to VMClass (Class): added call to static VMClass.getInstance() (forName(String)): calls VMClass.forName and if that returns null then performs the previous method call instead (isInstance): moved to VMClass (isAssignableFrom): moved to VMClass (isInterface): moved to VMClass (isArray): calls VMClass.isArray before returning to getName() based implementation (isPrimitive): moved to VMClass (getName): moved to VMClass (getSuperclass): moved to VMClass (getInterfaces): moved to VMClass (getComponentType): moved to VMClass (getModifiers): moved to VMClass (getSigners): return a clone of the signers array (memberAccessCheck): new method (getDeclaringClass): moved to VMClass (getClasses): calls internalGetClasses (internalGetClasses): new method (getFields): calls internalGetFields (internalGetFields): new method (getMethods): calls internalGetMethods (internalGetMethods): new method (getConstructors): calls getDeclaredConstructors (getField): calls getDeclaredFields (getMethod): calls getDeclaredMethods (matchMethod): new method (matchParameters): new method (getConstructor): calls getDeclaredConstructors (getDeclaredClasses): calls getDeclaredClasses(boolean) (getDeclaredClasses(boolean)): new method (getDeclaredFields): calls getDeclaredFields(boolean) (getDeclaredFields(boolean)): new method (getDeclaredMethods): calls getDeclaredMethods(boolean) (getDeclaredMethods(boolean)): new method (getDeclaredConstructors): calls getDeclaredConstructors(boolean) (getDeclaredConstructors(boolean)): new method (getDeclaredField): calls getDeclaredFields (getDeclaredMethod): calls getDeclaredMethods (getDeclaredConstructor): calls getDeclaredConstructors (getClassLoader0): removed * NEWS: note changes to Class * gnu/classpath/RawData: new file (from libgcj) * java/lang/Makefile.am: add Class.java to dist * vm/reference/java/lang/Makefile.am: add VMClass.java to dist, remove Class.java
* 2003-03-15 Jeroen Frijters <jeroen@sumatra.nl>Mark Wielaard2003-03-161-1/+4
| | | | | | | | | | | * vm/reference/java/lang/VMClassLoader.java (loadClass): Changed documentation to make clear null can be returned to signal that the class wasn't found. * java/lang/ClassLoader.java (loadClass(String,boolean)): Added check for null return value from VMClassLoader.loadClass. * vm/reference/java/lang/Class.java (forName(String,boolean,ClassLoader)): Likewise. * NEWS: Add note about VM interface changes.
* * vm/reference/java/lang/Class.java (forName): Use VMClassLoader asMark Wielaard2002-10-261-3/+3
| | | | | | | | | | | | bootstrap classloader when classloader == null. * vm/reference/java/lang/VMClassLoader.java: Indicate methods that should be implemented by the VM and don't rely on the application/system classloader to prevent circular class call chains. * java/lang/ClassLoader.java (ClassLoader): Use systemClassLoader directly. (findSystemClass): Likewise. (getSystemResources): Likewise.
* * vm/reference/java/lang/Class.java (getClassLoader): Return null forMark Wielaard2002-10-261-0/+5
| | | | classes starting with "java." or "gnu.java.".
* 2002-03-22 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-03-221-16/+66
| | | | | | | | | | | | | | | | | | | | | | | | Portions of Patch 70: * gnu/java/lang/ClassLoaderHelper.java: Remove special casing for String, which no longer uses this. * gnu/java/lang/Makefile.am (EXTRA_DIST) Add SystemClassLoader.java. * gnu/java/lang/SystemClassLoader.java: New file. * gnu/java/lang/reflect/TypeSignature.java: Clean up, borrowing ideas from java.lang.reflect.Proxy. * gnu/java/util/EmptyEnumeration.java: Improve formatting. * java/lang/ClassLoader.java: Use the new gnu.java.lang.SystemClassLoader, plus support for loading an alternative at startup. * java/lang/reflect/Proxy.java: Fix some off-by-one bugs, use gnu.java.lang.reflect.TypeSignature. * java/sql/DriverManager.java: Throw appropriate exception. * java/util/ResourceBundle.java: Rearrange code to favor common case; use string buffers for speed. * vm/reference/java/lang/Class.java (getClassLoader): Perform security checks. (getComponentType): Fix bugs. * vm/reference/java/lang/Runtime.java: Include "." in search path.
* * lib/Makefile.am: Add -bootclasspath '' -extdirs '' -sourcepath '' toMark Wielaard2002-03-091-1/+5
| | | | | | | | jikes invocation. * java/net/Socket.java (shutdownInput): new stub method. (shutdownOutput): likewise. * vm/reference/java/lang/Class.java (forNme(String)): native again. * gnu/java/awt/peer/gtk/Makefile: removed (autogenerated).
* 2002-02-23 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-02-231-22/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/Makefile.am (EXTRA_DIST): Add AssertionError.java and StackTraceElement.java. * java/lang/AssertionError.java: New file. * java/lang/ClassLoader.java: Add some synchronization and code cleanups to use improved VMClassLoader. Add assertion status fields and methods. * java/lang/StackTraceElement.java: New file. * vm/reference/java/lang/Class.java (desiredAssertionStatus): Add. Other locations: clean up code. * vm/reference/java/lang/Throwable.java (cause, stackTrace): Add exception chaining, and Java code for stack traces (native code unimplemented). * vm/reference/java/lang/VMClassLoader.java: Add (unimplemented) hooks to compile assertion status. (defineClass, loadClass): Add prototypes for missing native hooks. * vm/reference/java/lang/VMSecurityManager.java: Formatting. * gnu/java/lang/ClassHelper.java (getAllMethodsAtDeclaration), (getAllFieldsAtDeclaration): Delete, as they were just duplicates. (getAllMethods, getAllFields): Optimize. * gnu/java/lang/ArrayHelper.java: Formatting and Javadoc. (equalsArray): Delete, it duplicates java.util.Arrays.equals. * gnu/java/beans/BeanInfoEmbryo.java (hasMethod): Use Arrays.equals instead of ArrayHelper.equalsArray.
* 2002-02-22 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-02-221-506/+776
| | | | | | | | | | | | | * gnu/java/lang/ClassHelper.java: Improve Javadoc and formatting, and rearrange methods. * vm/reference/java/lang/Class.java: Ditto. * vm/reference/java/lang/Throwable.java: Ditto. * vm/reference/java/lang/VMClassLoader.java: Ditto. * vm/reference/java/lang/VMObject.java: Ditto. * java/lang/Boolean.java: Ditto. * java/lang/ClassLoader.java: Ditto. * java/lang/Error.java: Ditto. * java/lang/Object.java: Ditto.
* (serialVersionUID): added field.Mark Wielaard2002-02-191-0/+3
|
* Based on patches submitted by Wu Gansha <gansha.wu@intel.com>Mark Wielaard2002-02-191-2/+3
| | | | | | * vm/reference/java/lang/reflect/Method.java (toString()): use Class.getName() not Class.toString(). * vm/reference/java/lang/Class.java: final, implements Serializable.
* * vm/reference/java/lang/Class.java (pd): rename field to pd fromMark Wielaard2002-02-031-3/+3
| | | | protectionDomain as a workaround for compiling with gcj 3.1 (CVS)
* Add License clarificationMark Wielaard2002-01-221-5/+16
|
* Update copyright notices.Mark Wielaard2002-01-131-19/+25
|
* * vm/reference/java/lang/Runtime.java (Runtime): useBrian Jones2001-07-261-2/+2
| | | | | | | | | | | | | | | | File.pathSeparatorChar instead of ':' * vm/reference/java/lang/Runtime.java (Runtime): deal with null library path * vm/reference/java/lang/Class.java: documentation fix * native/jni/awt/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c (Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_setValues): changed argument type from int to jint * gnu/java/locale/LocaleInformation_en.java: sentence_breaks updated * gnu/java/locale/LocaleInformation_nl.java: sentence_breaks updated * gnu/java/locale/LocaleInformation_de.java: Added word_breaks, sentence_breaks, and line_breaks.
* * vm/reference/java/lang/Class.java: 1.2 updatesMark Wielaard2001-01-091-0/+94
| | | | | | | | | | | | | (forName(String,boolean,ClassLoader)): new method (getPackage): Ditto (getProtectionDomain): Ditto * java/lang/ClassLoader.java: 1.2 updates (getParent): new method (getSystemClassLoader): Ditto (findClass): Ditto (findResource): Ditto (findResources): Ditto (getResources): Ditto
* changing Class.getPrimitiveClass back to VMClassLoader.getPrimitiveClass, ↵Brian Jones1999-12-101-9/+0
| | | | thanks John
* changed VMCLassLoader.getPrimitiveClass to Class.getPrimitiveClassBrian Jones1999-12-101-374/+418
|
* Copyright, Doc FixesJohn Keiser1999-02-111-1/+1
|
* Remove name and superclass variables and simply make the getName() andAaron M. Renn1998-12-251-18/+7
| | | | | | | getSuperclass() method natives. Note that Japhar currently manually and arbitrarily sets the field count on java/lang/Class to 0, so using instance variables won't work in this class. This should be resolved at a future date.
* void setSigners(Object[]) instead of public (readded)Brian Jones1998-11-241-371/+368
|
* removed "public setSigners(Object[]) function" to be consistent with API.Brian Jones1998-11-241-368/+371
| | | | Serialization needs to be done still (not sure how myself with this one)
* Removed private_data fields.John Keiser1998-11-081-421/+420
|
* Changed some fields for Japhar.John Keiser1998-11-011-0/+1
|
* Changes for Japhar.John Keiser1998-11-011-3/+4
|
* Now VMClassLoader has the primitive class thingy. Class is in here, now, too.John Keiser1998-10-041-0/+420