[multiple changes]
2006-05-04 Andrew Haley <aph@redhat.com> * class.c (make_field_value): Always build_address_of fdecl if there is an initializer. 2006-05-03 Andrew Haley <aph@redhat.com> PR libgcj/27352 * expr.c (maybe_rewrite_invocation): New function. (rewrite_arglist_getclass): Likewise. (rules): New. (expand_invoke): Call maybe_rewrite_invocation. * parse.y (patch_invoke): Likewise. * java-tree.h: (maybe_rewrite_invocation): New function. 2006-05-03 Andrew Haley <aph@redhat.com> PR libgcj/27352 * java/lang/Class.java (getClassLoader(Class)): New. forName(String, Class): New. * java/lang/natClass.cc (getClassLoader(Class)): New. 2006-05-02 Andrew Haley <aph@redhat.com> * prims.cc (_Jv_NewMultiArray): Check for phantom class. From-SVN: r113532
This commit is contained in:
parent
a7285117b4
commit
b2ed63b4aa
10 changed files with 143 additions and 4 deletions
|
@ -111,6 +111,14 @@ public final class Class implements Serializable
|
|||
public static native Class forName (String className)
|
||||
throws ClassNotFoundException;
|
||||
|
||||
// A private internal method that is called by compiler-generated code.
|
||||
private static Class forName (String className, Class caller)
|
||||
throws ClassNotFoundException
|
||||
{
|
||||
return forName(className, true, caller.getClassLoader());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Use the specified classloader to load and link a class. If the loader
|
||||
* is null, this uses the bootstrap class loader (provide the security
|
||||
|
@ -185,6 +193,9 @@ public final class Class implements Serializable
|
|||
*/
|
||||
public native ClassLoader getClassLoader ();
|
||||
|
||||
// A private internal method that is called by compiler-generated code.
|
||||
private final native ClassLoader getClassLoader (Class caller);
|
||||
|
||||
/**
|
||||
* If this is an array, get the Class representing the type of array.
|
||||
* Examples: "[[Ljava.lang.String;" would return "[Ljava.lang.String;", and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue