Issue 4792: exceptions on valuetype initializers (java-rtf) Source: Oracle (Mr. Ken Cavanaugh, nobody) Nature: Uncategorized Issue Severity: Summary: The CORBA components updates to the Interface Repository defined in ptc/01-11-03 include the addition of exceptions on valuetype initializers. There is a separate issue that is required to change the IDL grammar and other text in chapter 3 to include this. For the purposes of discussion in this issue, I am assuming that the appropriate syntax is: <init_dcl> ::= "factory" <identifier> "(" [ <init_param_decls> ] ")" [ <raises_expr> ] ";" Proposed revised text: In section 1.13.2, replace the paragraph that begins "The value type's generated value factory" with: The value type's generated value factory interface extends org.omg.CORBA.portable.ValueFactory and contains one method corresponding to each factory declared in the IDL. The name of the method is the same as the name of the factory, and the factory arguments are mapped in the same way as in parameters are for IDL operations. If the factory raises exceptions, then the corresponding Java method must throw Java exceptions corresponding to the listed IDL exceptions. Resolution: Incorporate the revised text and close the issue Revised Text: In section 1.13.2, replace the paragraph that begins "The value type's generated value factory..." with: The value type's generated value factory interface extends org.omg.CORBA.portable.ValueFactory and contains one method corresponding to each factory declared in the IDL. The name of the method is the same as the name of the factory, and the factory arguments are mapped in the same way as in parameters are for IDL operations. If the factory raises exceptions, then the corresponding Java method must throw Java exceptions corresponding to the listed IDL exceptions Actions taken: December 18, 2001: received issue May 13, 2002: closed issue Discussion: End of Annotations:===== Date: Mon, 17 Dec 2001 15:52:38 -0800 (PST) From: Ken Cavanaugh Reply-To: Ken Cavanaugh Subject: New Java RTF issue: exceptions on valuetype initializers To: issues@omg.org Cc: java-rtf@omg.org MIME-Version: 1.0 Content-MD5: iPWepgwphwyx58GyK/T2hw== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc Content-Type: TEXT/plain; charset=us-ascii X-UIDL: ,mg!!J^^!!>iNe9mg ::= "factory" "(" [ ] ")" [ ] ";" Proposed revised text: In section 1.13.2, replace the paragraph that begins "The value type's generated value factory" with: The value type's generated value factory interface extends org.omg.CORBA.portable.ValueFactory and contains one method corresponding to each factory declared in the IDL. The name of the method is the same as the name of the factory, and the factory arguments are mapped in the same way as in parameters are for IDL operations. If the factory raises exceptions, then the corresponding Java method must throw Java exceptions corresponding to the listed IDL exceptions. Ken.