The following code illustrates that java.lang.Class's method getMethod() returns
null. (The source for Class.java in 3.4.3 actually proves that it is
gnu.gcj.runtime.VMClassLoader that does it...)
--- 8< 8< 8< ---
package men.gcjpackage;
public class TestPackage
{
public static void main(String[] args)
{
System.out.println("ClassLoader: " + TestPackage.class.getClassLoader() );
System.out.println("Package: " + TestPackage.class.getPackage());
} // main
} // TestPackage
--- 8< 8< 8< ---
It produces the following output:
# ./testpackage
ClassLoader: [EMAIL PROTECTED]
Package: null
This is tested with libgcj 3.4.3, however Tom Tromey has proven this still exist
in latest HEAD (as of 2005-08-08):
http://gcc.gnu.org/ml/java/2005-08/msg00027.html
// Martin Egholm
--
Summary: java.lang.Class's #getPackage() returns null
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin at egholm-nielsen dot dk
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23288