This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 12656
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Date: 22 Oct 2003 11:55:19 -0600
- Subject: Patch: FYI: PR 12656
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk.
This fixes PR 12656.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
PR libgcj/12656:
* gnu/gcj/runtime/natFirstThread.cc (call_main): Use
_Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal.
Index: gnu/gcj/runtime/natFirstThread.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/runtime/natFirstThread.cc,v
retrieving revision 1.7
diff -u -r1.7 natFirstThread.cc
--- gnu/gcj/runtime/natFirstThread.cc 26 Aug 2001 11:30:08 -0000 1.7
+++ gnu/gcj/runtime/natFirstThread.cc 22 Oct 2003 18:03:44 -0000
@@ -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 @@
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;
Index: testsuite/ChangeLog
from Tom Tromey <tromey@redhat.com>
PR libgcj/12656:
* libjava.lang/PR12656.java: New file.
* libjava.lang/PR12656.out: New file.
2003-10-21 Tom Tromey <tromey@redhat.com>
* lib/libjava.exp (find_javac): Use -Wno-unreachable-bytecode.
Index: testsuite/libjava.lang/PR12656.java
===================================================================
RCS file: testsuite/libjava.lang/PR12656.java
diff -N testsuite/libjava.lang/PR12656.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/libjava.lang/PR12656.java 22 Oct 2003 18:03:46 -0000
@@ -0,0 +1,11 @@
+class PR12656_base
+{
+ public static void main(String[] args)
+ {
+ System.out.println("Maude");
+ }
+}
+
+public class PR12656 extends PR12656_base
+{
+}
Index: testsuite/libjava.lang/PR12656.out
===================================================================
RCS file: testsuite/libjava.lang/PR12656.out
diff -N testsuite/libjava.lang/PR12656.out
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/libjava.lang/PR12656.out 22 Oct 2003 18:03:46 -0000
@@ -0,0 +1 @@
+Maude