<?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>616</bug_id>
          
          <creation_ts>2005-07-29 16:05:09 +0000</creation_ts>
          <short_desc>Error with shadowed enum declarations</short_desc>
          <delta_ts>2005-10-03 22:43:43 +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>2.2.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-developer/2005-July/007472.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Duane Griffin">d.griffin</reporter>
          <assigned_to name="Gerald Brose">gerald.brose</assigned_to>
          <cc>Thomas.Leineweber</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1483</commentid>
    <comment_count>0</comment_count>
    <who name="Duane Griffin">d.griffin</who>
    <bug_when>2005-07-29 16:05:09 +0000</bug_when>
    <thetext>As reported by John Fisher, the IDL below does not work. It looks like there is
a problem in src/org/jacorb/idl/NameTable.java relating to shadowed enums. I&apos;ve
attached a patch that seems to fix the problem.

interface A {
   enum my_enum {
      ENUM1,
      ENUM2
   };
};

interface B : A {
   enum my_enum {
      ENUM1,
      ENUM3
   };
};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1484</commentid>
    <comment_count>1</comment_count>
      <attachid>163</attachid>
    <who name="Duane Griffin">d.griffin</who>
    <bug_when>2005-07-29 16:05:48 +0000</bug_when>
    <thetext>Created attachment 163
Patch to prevent shadowed enums from crashing the IDL compiler</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Leineweber">Thomas.Leineweber</who>
    <bug_when>2005-08-24 12:34:34 +0000</bug_when>
    <thetext>the given patch seems to fix bug #470 and bug #517, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1564</commentid>
    <comment_count>3</comment_count>
    <who name="André Spiegel">spiegel</who>
    <bug_when>2005-10-03 22:43:43 +0000</bug_when>
    <thetext>I installed Duane&apos;s patch.  Will also close bug 470 and bug 517.  Thanks, Duane
and Thomas.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>163</attachid>
            <date>2005-07-29 16:05:48 +0000</date>
            <delta_ts>2005-07-29 16:05:48 +0000</delta_ts>
            <desc>Patch to prevent shadowed enums from crashing the IDL compiler</desc>
            <filename>ShadowEnums.patch</filename>
            <type>text/plain</type>
            <size>1648</size>
            <attacher name="Duane Griffin">d.griffin</attacher>
            
              <data encoding="base64">SW5kZXg6IHNyYy9vcmcvamFjb3JiL2lkbC9OYW1lVGFibGUuamF2YQo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBm
aWxlOiAvY3Zzcm9vdC9qYWNvcmIvSmFjT1JCL3NyYy9vcmcvamFjb3JiL2lkbC9OYW1lVGFibGUu
amF2YSx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4yMwpkaWZmIC11IC1yMS4yMyBOYW1lVGFibGUu
amF2YQotLS0gc3JjL29yZy9qYWNvcmIvaWRsL05hbWVUYWJsZS5qYXZhCTI4IE1hciAyMDA1IDE5
OjU4OjI5IC0wMDAwCTEuMjMKKysrIHNyYy9vcmcvamFjb3JiL2lkbC9OYW1lVGFibGUuamF2YQky
OSBKdWwgMjAwNSAxMTozNDoyNyAtMDAwMApAQCAtMTcxLDEwICsxNzEsMTMgQEAKICAgICAgICAg
ICAgICAgICBzaGFkb3dzLnJlbW92ZSggbmFtZSApOwogICAgICAgICAgICAgICAgIGgucmVtb3Zl
KCBuYW1lICk7CiAKLSAgICAgICAgICAgICAgICAvLyByZW1vdmUgdGhlIGluaGVyaXRlZCB0eXBl
IGRlZmluaXRpb24sIGEgbmV3IG9uZSB3aWxsIGJlCi0gICAgICAgICAgICAgICAgLy8gYWRkZWQg
c29vbiB1bmRlciB0aGlzIG5hbWUhIEFkZGl0aW9uIG9mIHRoaXMgbGluZSBmaXhlcwotICAgICAg
ICAgICAgICAgIC8vIGJ1ZyAjMzQ1Ci0gICAgICAgICAgICAgICAgVHlwZU1hcC5yZW1vdmVEZWZp
bml0aW9uKCBuYW1lICk7CisgICAgICAgICAgICAgICAgaWYoIGtpbmQuc3RhcnRzV2l0aCggInR5
cGUiICkgKQorICAgICAgICAgICAgICAgIHsKKyAgICAgICAgICAgICAgICAgICAgLy8gcmVtb3Zl
IHRoZSBpbmhlcml0ZWQgdHlwZSBkZWZpbml0aW9uLCBhIG5ldyBvbmUgd2lsbCBiZQorICAgICAg
ICAgICAgICAgICAgICAvLyBhZGRlZCBzb29uIHVuZGVyIHRoaXMgbmFtZSEgQWRkaXRpb24gb2Yg
dGhpcyBsaW5lIGZpeGVzCisgICAgICAgICAgICAgICAgICAgIC8vIGJ1ZyAjMzQ1CisgICAgICAg
ICAgICAgICAgICAgIFR5cGVNYXAucmVtb3ZlRGVmaW5pdGlvbiggbmFtZSApOworICAgICAgICAg
ICAgICAgIH0KICAgICAgICAgICAgIH0KICAgICAgICAgfQogCkBAIC0zNTQsNiArMzU3LDEzIEBA
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBrZXkuc3Vic3RyaW5nKCBrZXkubGFzdEluZGV4T2YoICcuJyApICksCiAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbmMgKTsK
ICAgICAgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAgICAgICAgICBlbHNlCisgICAgICAg
ICAgICAgICAgICAgIHsKKyAgICAgICAgICAgICAgICAgICAgICAgIGlmKCBsb2dnZXIuaXNEZWJ1
Z0VuYWJsZWQoKSApIHsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIuZGVidWco
Ii0gTmFtZVRhYmxlLmluaGVyaXQgIiArIGtpbmQgKyAiIGZyb206ICAiICsga2V5KTsKKyAgICAg
ICAgICAgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgICAgICAgfQorCiAKICAgICAgICAg
ICAgICAgICAgICAgaWYoICFpc0RlZmluZWQoIGtleSApICkKICAgICAgICAgICAgICAgICAgICAg
ICAgIHRocm93IG5ldyBSdW50aW1lRXhjZXB0aW9uKCAiQ29tcGlsZXJFcnJvciEiICk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>