<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>101</bug_id>
          
          <creation_ts>2002-02-25 13:13:26 +0000</creation_ts>
          <short_desc>Holder classes are generated and used incorrectly</short_desc>
          <delta_ts>2002-02-25 16:27:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>IDL compiler</component>
          <version>1.4 beta 2</version>
          <rep_platform>All</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Edward Scott">eas</reporter>
          <assigned_to name="Steve Osselton">steve</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163</commentid>
    <comment_count>0</comment_count>
    <who name="Edward Scott">eas</who>
    <bug_when>2002-02-25 13:13:26 +0000</bug_when>
    <thetext>The following interface from the FT IDL illustrates the problem.

   interface GenericFactory
   {
      typedef any FactoryCreationId;
      Object create_object(in TypeId type_id, in Criteria the_criteria, out
FactoryCreationId factory_creation_id) raises (NoFactory, ObjectNotCreated,
InvalidCriteria, InvalidProperty, CannotMeetCriteria);
      void delete_object(in FactoryCreationId factory_creation_id) raises
(ObjectNotFound);
   };

The above IDL generates a FactoryCreationIdHolder class and uses it in
the create_object method signature for the out parameter. The Java to
IDL spec states:

   Typedefs for types that are neither arrays nor sequences are &quot;unwound&quot;
   to their original type until a simple IDL type or user-defined IDL
   type (of the non typedef variety) is encountered.

   Holder classes are generated for sequence and array typedefs only. The
   &quot;unwound&quot; type s Holder class is used for the other cases.

Hence org.omg.CORBA.AnyHolder should be used in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Osselton">steve</who>
    <bug_when>2002-02-25 16:27:04 +0000</bug_when>
    <thetext>Updated IDL compiler not to generate Holders for typedef&apos;d anys and use
AnyHolder instead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>