Commit c015b2f8 by Tom Tromey Committed by Tom Tromey

Class.java (getPackage): Get package from VMClassLoader if needed.

	* java/lang/Class.java (getPackage): Get package from
	VMClassLoader if needed.

From-SVN: r108685
parent b642a22a
2005-12-16 Tom Tromey <tromey@redhat.com>
* java/lang/Class.java (getPackage): Get package from
VMClassLoader if needed.
2005-12-16 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jacks/jacks.xfail
(8.5.2-accessible-static-member-usage-3): Removed.
......
......@@ -455,8 +455,7 @@ public final class Class implements Serializable
/**
* Returns the <code>Package</code> in which this class is defined
* Returns null when this information is not available from the
* classloader of this class or when the classloader of this class
* is null.
* classloader of this class.
*
* @return the package for this class, if it is available
* @since 1.2
......@@ -466,7 +465,8 @@ public final class Class implements Serializable
ClassLoader cl = getClassLoader();
if (cl != null)
return cl.getPackage(getPackagePortion(getName()));
return null;
else
return VMClassLoader.getPackage(getPackagePortion(getName()));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment