public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/23288] New: java.lang.Class's #getPackage() returns null
@ 2005-08-08 18:54 martin at egholm-nielsen dot dk
  2005-08-08 18:59 ` [Bug libgcj/23288] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: martin at egholm-nielsen dot dk @ 2005-08-08 18:54 UTC (permalink / raw)
  To: gcc-bugs

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: gnu.gcj.runtime.VMClassLoader@10074fc0
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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-23288-10349@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-03-07 22:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-08 18:54 [Bug libgcj/23288] New: java.lang.Class's #getPackage() returns null martin at egholm-nielsen dot dk
2005-08-08 18:59 ` [Bug libgcj/23288] " pinskia at gcc dot gnu dot org
2005-09-09 18:35 ` tromey at gcc dot gnu dot org
2005-09-09 21:51 ` cvs-commit at developer dot classpath dot org
2005-09-15 20:17 ` cvs-commit at gcc dot gnu dot org
     [not found] <bug-23288-10349@http.gcc.gnu.org/bugzilla/>
2006-03-07 22:41 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).