Issue 2228: typedefs in IDl when generating Java code (java-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: A question came up regarding the use of typedefs in idl when generating Java >code. Since Java has no support for typedefs the alias is not available to >any Java code other than the idl generated code. This seems to be a flaw in >the design of the idl to Java mapping specification. Resolution: The helper is generated for all aliases, it can be used if needed. Revised Text: Actions taken: November 25, 1998: received issue June 4, 1999: closed issue Discussion: End of Annotations:===== Return-Path: X-Sender: siegel@192.67.184.65 Date: Wed, 25 Nov 1998 07:39:16 -0500 To: "Edison, Bob" , issues From: Jon Siegel Subject: Re: IDL to Java mapping Hi, Bob and Juergen -- Thanks for your comment, Bob. I'm forwarding it to issues@omg.org, to be entered into our database and handled by the RTF performing maintenance on the specification. In the future, you may send comments directly to that email addr. Juergen, would you please enter this into the database and reference Bob Edison as the originator. Thanks -- Jon S. At 05:11 PM 11/24/98 -0500, you wrote: >A question came up regarding the use of typedefs in idl when generating Java >code. Since Java has no support for typedefs the alias is not available to >any Java code other than the idl generated code. This seems to be a flaw in >the design of the idl to Java mapping specification. > >Instead of losing the alias as in: > >typedef long UserID: > >The idl2java compiler could replaced it with: > >struct UserID { > long value; >}; > >The UserIDHelper and UserIDHolder code would manage setting the "value". > >Bob Edison >Senior Software Engineer >UNIFI Communications >900 Chelmsford St >Lowell, MA 01851 > >Voice: 978-551-7542 >Fax: 978-551-7988 >redison@unifi.com > > > > ================================================================== Jon Siegel Phone: 508-820-4300 X124 Director, Domain Technology Fax: 508-820-4303 Object Management Group 492 Old Connecticut Path email: siegel@omg.org Framingham, Massachusetts 01701 USA http://www.omg.org ==================================================================