public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime
@ 2003-10-17 6:24 rmathew at hotmail dot com
2003-10-17 6:25 ` [Bug libgcj/12656] Inherited main( ) Method " rmathew at hotmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: rmathew at hotmail dot com @ 2003-10-17 6:24 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12656
Summary: Inherited Static Methods Not Seen At Runtime
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rmathew at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
Consider these classes:
------------------------------------ 8< ------------------------------------
public class Foo
{
public static void main( String[] args)
{
System.out.println( "Hello World");
}
}
------------------------------------ 8< ------------------------------------
------------------------------------ 8< ------------------------------------
public class Bar extends Foo
{
}
------------------------------------ 8< ------------------------------------
If you compile these using Sun's JDK 1.3/1.4, you can
run "java Bar", which will cause Foo's main( ) to be
executed.
If you compile these using GCJ 3.4 CVS, at execution
you get:
$ gij Bar
no suitable method `main' in class
$ gcj --main=Bar Foo.java Bar.java
$ ./a.out
no suitable method `main' in class
>From a preliminary investigation, it looks
like "gnu/gcj/runtime/natFirstThread.cc" should
not call "_Jv_GetMethodLocal( )" and should
call something like (say) "Class.getMethod( )".
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/12656] Inherited main( ) Method Not Seen At Runtime
2003-10-17 6:24 [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime rmathew at hotmail dot com
@ 2003-10-17 6:25 ` rmathew at hotmail dot com
2003-10-17 13:29 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rmathew at hotmail dot com @ 2003-10-17 6:25 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12656
rmathew at hotmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Inherited Static Methods Not|Inherited main( ) Method Not
|Seen At Runtime |Seen At Runtime
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/12656] Inherited main( ) Method Not Seen At Runtime
2003-10-17 6:24 [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime rmathew at hotmail dot com
2003-10-17 6:25 ` [Bug libgcj/12656] Inherited main( ) Method " rmathew at hotmail dot com
@ 2003-10-17 13:29 ` pinskia at gcc dot gnu dot org
2003-10-22 18:04 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 13:29 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12656
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-17 13:28:19
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 13:28 -------
I can confirm this on the mainline (20031017).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/12656] Inherited main( ) Method Not Seen At Runtime
2003-10-17 6:24 [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime rmathew at hotmail dot com
2003-10-17 6:25 ` [Bug libgcj/12656] Inherited main( ) Method " rmathew at hotmail dot com
2003-10-17 13:29 ` pinskia at gcc dot gnu dot org
@ 2003-10-22 18:04 ` cvs-commit at gcc dot gnu dot org
2003-10-22 18:06 ` tromey at gcc dot gnu dot org
2003-10-22 18:22 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-22 18:04 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12656
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-10-22 18:04 -------
Subject: Bug 12656
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tromey@gcc.gnu.org 2003-10-22 18:04:35
Modified files:
libjava/testsuite: ChangeLog
Added files:
libjava/testsuite/libjava.lang: PR12656.java PR12656.out
Log message:
PR libgcj/12656:
* libjava.lang/PR12656.java: New file.
* libjava.lang/PR12656.out: New file.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.294&r2=1.295
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.lang/PR12656.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.lang/PR12656.out.diff?cvsroot=gcc&r1=NONE&r2=1.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/12656] Inherited main( ) Method Not Seen At Runtime
2003-10-17 6:24 [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime rmathew at hotmail dot com
` (2 preceding siblings ...)
2003-10-22 18:04 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-22 18:06 ` tromey at gcc dot gnu dot org
2003-10-22 18:22 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-10-22 18:06 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12656
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
------- Additional Comments From tromey at gcc dot gnu dot org 2003-10-22 18:04 -------
I've checked in a fix for this.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/12656] Inherited main( ) Method Not Seen At Runtime
2003-10-17 6:24 [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime rmathew at hotmail dot com
` (3 preceding siblings ...)
2003-10-22 18:06 ` tromey at gcc dot gnu dot org
@ 2003-10-22 18:22 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-22 18:22 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12656
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-10-22 18:06 -------
Subject: Bug 12656
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tromey@gcc.gnu.org 2003-10-22 18:05:57
Modified files:
libjava : ChangeLog
libjava/gnu/gcj/runtime: natFirstThread.cc
Log message:
PR libgcj/12656:
* gnu/gcj/runtime/natFirstThread.cc (call_main): Use
_Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.2289&r2=1.2290
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/gcj/runtime/natFirstThread.cc.diff?cvsroot=gcc&r1=1.7&r2=1.8
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-10-22 18:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 6:24 [Bug libgcj/12656] New: Inherited Static Methods Not Seen At Runtime rmathew at hotmail dot com
2003-10-17 6:25 ` [Bug libgcj/12656] Inherited main( ) Method " rmathew at hotmail dot com
2003-10-17 13:29 ` pinskia at gcc dot gnu dot org
2003-10-22 18:04 ` cvs-commit at gcc dot gnu dot org
2003-10-22 18:06 ` tromey at gcc dot gnu dot org
2003-10-22 18:22 ` cvs-commit 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).