Issue 4804: section 1.18.2 of the OMG IDL mapping document ptc/00-01-08 (java-rtf) Source: (, ) Nature: Clarification Severity: Significant Summary: There is something that is unclear in your CORBA spec that I think is causing incompatibility problems between various IDL compilers. Given the following IDL: ------------------------------------------------- struct Protection { string str; }; typedef Protection ProtectedEntity; typedef sequence<ProtectedEntity> ProtectedEntityList; typedef ProtectedEntityList ProtectingEntity; ------------------------------------------------- Should a holder class for ProtectingEntity get generated? I ask this because some IDL compilers generate it and others do not (very frustrating!). In section 1.18.2 of the OMG IDL mapping document ptc/00-01-08 spec I found this: "Holder classes are generated for sequence and array typedefs only. The "unwound" type's Holder class is used for the other cases.". Since this is a typedef of a typedef, but the original item was a sequence, should the ProtectingEntityHolder.java file get generated or not? Resolution: duplicate of 4802 Revised Text: Actions taken: January 14, 2002: received issue January 14, 2002: closed issue Discussion: End of Annotations:===== rom: webmaster@omg.org Message-Id: <200201142035.g0EKZe627802@emerald.omg.org> Date: 14 Jan 2002 15:21:07 -0500 To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Issue/Bug Report Content-Type: Text/html; charset=windows-1252 X-UIDL: O=j!!45Sd9hWkd9+PH!! Name: Darrin Smith Company: Fujitsu mailFrom: darrin.SMITH@fnc.fujitsu.com Notification: Yes Specification: Java Language Mapping Section: 1.18.2 FormalNumber: ptc/00-01-08 Version: not known RevisionDate: not known Page: not known Nature: Clarification Severity: Significant HTTP User Agent: Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC) Description There is something that is unclear in your CORBA spec that I think is causing incompatibility problems between various IDL compilers. Given the following IDL: ------------------------------------------------- struct Protection { string str; }; typedef Protection ProtectedEntity; typedef sequence ProtectedEntityList; typedef ProtectedEntityList ProtectingEntity; ------------------------------------------------- Should a holder class for ProtectingEntity get generated? I ask this because some IDL compilers generate it and others do not (very frustrating!). In section 1.18.2 of the OMG IDL mapping document ptc/00-01-08 spec I found this: "Holder classes are generated for sequence and array typedefs only. The "unwound" type's Holder class is used for the other cases.". Since this is a typedef of a typedef, but the original item was a sequence, should the ProtectingEntityHolder.java file get generated or not?