This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: PR 12656


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]