[BC] Patch: FYI: dummy interface methods
Tom Tromey
tromey@redhat.com
Tue Nov 2 23:51:00 GMT 2004
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,
More information about the Java-patches
mailing list