Issue 3655: OMG ZIP FILE ISSUES for IDL to Java RTF (02) (java-rtf) Source: Oracle (Dr. Anita Jindal, nobody) Nature: Uncategorized Issue Severity: Significant Summary: (2). Wrong mapping for all Enum types, specifically method from_int() is not according to IDL to Java mapping spec. According to ptc/00-01-08.pdf, the mapping for from_int() method is // get enum with specified value public static <enum_name> from_int(int value); whereas in the OMG published interfaces for all Enums, the mapping for this signature is something like: public static IdAssignmentPolicyValue from_int(int val) throws org.omg.CORBA.BAD_PARAM PLS. NOTE THAT IT IS THROWING AN EXCEPTION NOT SPECIFIED BY THE MAPPING. Resolution: Close, duplicate of 3669 Revised Text: Actions taken: May 30, 2000: received issue January 9, 2001: closed issue Discussion: End of Annotations:===== Date: Fri, 26 May 2000 15:04:41 -0700 (PDT) From: Ken Cavanaugh Reply-To: Ken Cavanaugh Subject: Missing IDL-Java RTF issues To: juergen@emerald.omg.org Cc: Ken.Cavanaugh@eng.sun.com, Anita.Jindal@eng.sun.com, Peter.Walker@eng.sun.com MIME-Version: 1.0 Content-MD5: 00WoT63WPYdr1RCYt9DUZA== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Content-Type: TEXT/plain; charset=us-ascii X-UIDL: ;Wh!!<#%e950Td9biN!! Juergen, Some time ago Anita Jindal (another Sun employee) sent the following issues for the IDL-Java RTF to issues@omg.org. We have not yet seen the numbers assigned to these issues. Could you check on this and let us know the issue numbers, or assign issue numbers if they were somehow missed? Thanks, Ken Cavanaugh ------------- Begin Forwarded Message ------------- 2). Wrong mapping for all Enum types, specifically method from_int() is not according to IDL to Java mapping spec. According to ptc/00-01-08.pdf, the mapping for from_int() method is // get enum with specified value public static from_int(int value); whereas in the OMG published interfaces for all Enums, the mapping for this signature is something like: public static IdAssignmentPolicyValue from_int(int val) throws org.omg.CORBA.BAD_PARAM PLS. NOTE THAT IT IS THROWING AN EXCEPTION NOT SPECIFIED BY THE MAPPING. Date: Wed, 14 Jun 2000 11:48:03 -0700 From: "Vijaykumar Natarajan" X-Mailer: Mozilla 4.72 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: java-rtf@omg.org Subject: Issue 3655: OMG ZIP FILE ISSUES for IDL to Java RTF (02) Content-Type: multipart/mixed; boundary="------------113D887B8D2F168A912A18B2" X-UIDL: D/5e9Co"!!BQ[!!gUKe9 Hi all, Again, looks like an editorial issue. Note that since BAD_PARAM is a system exception, it can be thrown without the throws clause and having the throws clause does not require a client to catch and handle the exception. Quite harmless, anyway. Thanks, Vijay (2). Wrong mapping for all Enum types, specifically method from_int() is not according to IDL to Java mapping spec. According to ptc/00-01-08.pdf, the mapping for from_int() method is // get enum with specified value public static from_int(int value); whereas in the OMG published interfaces for all Enums, the mapping for this signature is something like: public static IdAssignmentPolicyValue from_int(int val) throws org.omg.CORBA.BAD_PARAM PLS. NOTE THAT IT IS THROWING AN EXCEPTION NOT SPECIFIED BY THE MAPPING. Proposal: Change all instances of Enum type from_int methods to have the signature static from_int(int value); [] vijayn6.vcf