diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-22 18:05:57 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-22 18:05:57 +0000 |
commit | 03f625dd98ff53bbdac1361e26a64b8de52ea921 (patch) | |
tree | 64039293481be6454d726839a6072769d85fe38f /libjava | |
parent | a381371ba01db65c4a5d92eac000bede20aa1492 (diff) | |
download | gcc-03f625dd98ff53bbdac1361e26a64b8de52ea921.tar.gz |
PR libgcj/12656:
* gnu/gcj/runtime/natFirstThread.cc (call_main): Use
_Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72811 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/gnu/gcj/runtime/natFirstThread.cc | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 6c72bd8654a..a6e1d94337f 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 1d62471df7e..e3100c53fc0 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; |