This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[BC] Patch: FYI: dummy interface methods


I'm checking this in on the BC branch.

This patch ensures that newly-created dummy interface methods are
marked as abstract.  Without this we will get errors about missing
Code attributes.  This was found by compiling jar files from Eclipse
3.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* expr.c (expand_invoke): Mark new interface methods as abstract.

Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/expr.c,v
retrieving revision 1.185.2.17
diff -u -r1.185.2.17 expr.c
--- expr.c 1 Nov 2004 18:26:52 -0000 1.185.2.17
+++ expr.c 2 Nov 2004 23:49:24 -0000
@@ -2376,7 +2377,7 @@
 	    flags |= ACC_STATIC;
 	  if (opcode == OPCODE_invokeinterface)
 	    {
-	      flags |= ACC_INTERFACE;
+	      flags |= ACC_INTERFACE | ACC_ABSTRACT;
 	      CLASS_INTERFACE (TYPE_NAME (self_type)) = 1;
 	    }
 	  method = add_method (self_type, flags, method_name,


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