The COM_ProxiesTo attribute denotes that the Java method is implemented using COM. For a given method of a JCW, this attribute describes a mapping between the Java method and a COM interface function in the underlying COM object.
Attribute Level | Generated By Directives |
Method | @com.method @com.interface |
COM_ProxiesTo_attribute { u2 attribute_name_index; u4 attribute_length; u2 MCP_Flags; u2 MethodPoolIndex; }
The C structure MCProxiesTo, declared in comattr.h, defines the layout of this attribute for use in C/C++ programs.
The access flags for the method must be a subset of ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_FINAL ACC_NATIVE (required), or ACC_ABSTRACT (on interfaces only).
attribute_name_index
This value must be a valid index into the constant_pool table. The constant_pool entry at that index must be the CONSTANT_Utf8_info structure representing the string "COM_ProxiesTo".
attribute_length
This value indicates the length of this attribute, excluding the initial six bytes, and must be 4.
MCP_Flags
This value must be 0 (zero).
MethodPoolIndex
This value must be a valid index into the MethodPool.