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]

Re: C++ patch: Add support for calling Java interfaces


"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

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