Issue 2079: Potential problem with Java Mapping ORB init for Applet (java-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: While working on the revised interoperable naming specification, a java issue came up with regard to arguments to CORBA ORB_init. The PIDL reads as: module CORBA { typedef string ORBid; typedef sequence <string> arg_list; ORB ORB_init(inout arg_list argv, in ORBid orb_identifier); } However the java mapping for init in an applet is: // public static ORB init(Applet app, Properties props); Using a property list for the argument list results in considerably different behavior than the PIDl sequence<string> definition, mainly no preservation of sequence order and no repeating elements (properties). Resolution: resolved Revised Text: Actions taken: October 14, 1998: received issue June 4, 1999: closed issue Discussion: This is the proper design behavior. The use of sequence in PIDL does not necessarily imply any specific semantics with regards to such things. (There is no primitive set concept which could be used in PIDL. Each language mapping maps PIDL as it sees fit. The current specification is the natural mapping for Java. Revised Text: none End of Annotations:===== Return-Path: X-Authentication-Warning: suntan.dstc.edu.au: mcfadden owned process doing -bs Date: Wed, 14 Oct 1998 12:01:24 +1000 (EST) From: Ted McFadden To: issues@omg.org, java-rtf@omg.org, inaming@dstc.edu.au Subject: Potential problem with Java Mapping ORB init for Applet Hello, While working on the revised interoperable naming specification, a java issue came up with regard to arguments to CORBA ORB_init. The PIDL reads as: module CORBA { typedef string ORBid; typedef sequence arg_list; ORB ORB_init(inout arg_list argv, in ORBid orb_identifier); } However the java mapping for init in an applet is: // public static ORB init(Applet app, Properties props); Using a property list for the argument list results in considerably different behavior than the PIDl sequence definition, mainly no preservation of sequence order and no repeating elements (properties). These restrictions will limit some capabilities we may propose in the next interoperable naming submission. We would like to know if: 1. Is this a possible defect in the java mapping? 2. If "yes" to 1, could the OrbInit arg_list be passed to an applet as a single property with a name like: org.omg.CORBA.ORBInitArgs and the applet orb_init updated to support this. (standard properties org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass are already defined) Thanks in advance for your input. This is not a show stopper issue for us but we would like our next submission to accurately reflect the intent of the java mapping. Cheers, Ted. -- Ted McFadden http://www.dstc.edu.au/BDU/staff/ted-mcfadden.html DSTC Level 7, GPS Building 78, Staff House Road The University of Queensland St Lucia 4072 +61 7 3365-4310 Return-Path: Sender: "Jeff Mischkinsky" Date: Tue, 13 Oct 1998 19:35:29 -0700 From: Jeff Mischkinsky Organization: INPRISE Corporation To: Ted McFadden CC: java-rtf@omg.org, inaming@dstc.edu.au Subject: Re: [inaming] Potential problem with Java Mapping ORB init for Applet References: Ted McFadden wrote: > > Hello, > > While working on the revised interoperable naming specification, > a java issue came up with regard to arguments to CORBA ORB_init. > > The PIDL reads as: > module CORBA { > typedef string ORBid; > typedef sequence arg_list; > ORB ORB_init(inout arg_list argv, in ORBid orb_identifier); > } > > However the java mapping for init in an applet is: > // public static ORB init(Applet app, Properties props); > > Using a property list for the argument list results in considerably > different behavior than the PIDl sequence definition, mainly > no preservation of sequence order and no repeating elements > (properties). > > These restrictions will limit some capabilities we may > propose in the next interoperable naming submission. > > We would like to know if: > 1. Is this a possible defect in the java mapping? No, it was done intentionally. And it is PIDL, so there is no "standard" behavior of PIDL anything. It's determined by the language mapping. > 2. If "yes" to 1, could the OrbInit arg_list be passed > to an applet as a single property with a name like: > org.omg.CORBA.ORBInitArgs > and the applet orb_init updated to support this. > (standard properties org.omg.CORBA.ORBClass and > org.omg.CORBA.ORBSingletonClass are already > defined) I suppose you'd Yes, theoretically, but i doubt there will be much interest in introducing this kind of a change. > > Thanks in advance for your input. This is not a show stopper issue > for us but we would like our next submission to accurately reflect > the > intent of the java mapping. > > Cheers, > Ted. > -- > Ted McFadden > http://www.dstc.edu.au/BDU/staff/ted-mcfadden.html > DSTC Level 7, GPS Building 78, Staff House Road > The University of Queensland St Lucia 4072 +61 7 3365-4310 -- Jeff Mischkinsky email: Senior Software Architect jeffm@visigenic.com INPRISE Corporation voice: +1(650)358-3049 951 Mariner's Island Blvd. Suite 460 fax: +1(650)286-2475 San Mateo, CA 94404 web: http://www.inprise.com Return-Path: X-Authentication-Warning: fatcat.dstc.edu.au: michi owned process doing -bs Date: Wed, 14 Oct 1998 20:22:28 +1000 (EST) From: Michi Henning To: Jeff Mischkinsky cc: Ted McFadden , java-rtf@omg.org, inaming@dstc.edu.au Subject: Re: [inaming] Potential problem with Java Mapping ORB init for Applet On Tue, 13 Oct 1998, Jeff Mischkinsky wrote: > > We would like to know if: > > 1. Is this a possible defect in the java mapping? > > No, it was done intentionally. > And it is PIDL, so there is no "standard" behavior of PIDL anything. > It's determined by the language mapping. Sure, the language mappings have considerable freedom in how to map PIDL. However, the Java mapping loses the sequence property of the parameter, in other words, ordering is lost as well as the ability to have the same value more than once. That strikes me as a defective mapping, freedom for PIDL mappings notwithstanding. Cheers, Michi. -- Michi Henning +61 7 33654310 DSTC Pty Ltd +61 7 33654311 (fax) University of Qld 4072 michi@dstc.edu.au AUSTRALIA http://www.dstc.edu.au/BDU/staff/michi-henning.html