This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: C++ patch: Add support for calling Java interfaces
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: C++ patch: Add support for calling Java interfaces
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Fri, 23 Mar 2001 12:42:09 +1200
- CC: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <Pine.LNX.4.32.0103220819580.19319-100000@kern.srcf.societies.cam.ac.uk>
"Joseph S. Myers" wrote:
> On Thu, 22 Mar 2001, Bryce McKinlay wrote:
>
> > Here is a revised patch. I decided to go the static local with lazy
> > initialization route to avoid calling builtin_function repeatedly.
> >
> > OK to commit?
>
> Documentation in extend.texi for the new attribute is required.
Here it is.
regards
[ bryce ]
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
* extend.texi: Document the "java_interface" attribute.
Index: extend.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/extend.texi,v
retrieving revision 1.92.2.3
diff -u -r1.92.2.3 extend.texi
--- extend.texi 2001/02/28 10:36:36 1.92.2.3
+++ extend.texi 2001/03/23 00:28:44
@@ -4355,6 +4355,14 @@
marked with this attribute are implicitly marked with the same attribute;
thus, only the base class in a COM hierarchy needs @code{com_interface}.
+@item java_interface
+@cindex java_interface attribute
+
+This type attribute informs C++ that the class is a Java interface. It may
+only be applied to classes declared within an @code {extern "Java"} block.
+Calls to methods declared in this interface will be dispatched using GCJ's
+interface table mechanism, instead of regular virtual table dispatch.
+
@end table
@node Deprecated Features