aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-10-22 18:05:57 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-10-22 18:05:57 +0000
commit4badbfa2b31aad9725489b74f6bc6b975c4dc37b (patch)
tree64039293481be6454d726839a6072769d85fe38f
parentfc41584e9206706ee38d9ceba6fcc6ca51076b29 (diff)
downloadgcc-4badbfa2b31aad9725489b74f6bc6b975c4dc37b.zip
gcc-4badbfa2b31aad9725489b74f6bc6b975c4dc37b.tar.gz
gcc-4badbfa2b31aad9725489b74f6bc6b975c4dc37b.tar.bz2
re PR libgcj/12656 (Inherited main( ) Method Not Seen At Runtime)
PR libgcj/12656: * gnu/gcj/runtime/natFirstThread.cc (call_main): Use _Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal. From-SVN: r72811
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/gnu/gcj/runtime/natFirstThread.cc5
2 files changed, 9 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 6c72bd8..a6e1d94 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-22 Tom Tromey <tromey@redhat.com>
+
+ PR libgcj/12656:
+ * gnu/gcj/runtime/natFirstThread.cc (call_main): Use
+ _Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal.
+
2003-10-22 David Daney <ddaney@avtrex.com)
* include/mips-signal.h: New file.
diff --git a/libjava/gnu/gcj/runtime/natFirstThread.cc b/libjava/gnu/gcj/runtime/natFirstThread.cc
index 1d62471..e3100c5 100644
--- a/libjava/gnu/gcj/runtime/natFirstThread.cc
+++ b/libjava/gnu/gcj/runtime/natFirstThread.cc
@@ -1,6 +1,6 @@
// natFirstThread.cc - Implementation of FirstThread native methods.
-/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation
This file is part of libgcj.
@@ -26,7 +26,8 @@ gnu::gcj::runtime::FirstThread::call_main (void)
Utf8Const* main_signature = _Jv_makeUtf8Const ("([Ljava.lang.String;)V", 22);
Utf8Const* main_name = _Jv_makeUtf8Const ("main", 4);
- _Jv_Method *meth = _Jv_GetMethodLocal (klass, main_name, main_signature);
+ _Jv_Method *meth = _Jv_LookupDeclaredMethod (klass, main_name,
+ main_signature);
// Some checks from Java Spec section 12.1.4.
const char *msg = NULL;