This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[BC] Patch: FYI: dummy interface methods
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 02 Nov 2004 16:50:19 -0700
- Subject: [BC] Patch: FYI: dummy interface methods
- Reply-to: tromey at redhat dot com
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,