<?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>231</bug_id>
          
          <creation_ts>2002-07-24 04:31:49 +0000</creation_ts>
          <short_desc>forward declarations with reserved word cause idl compiler to fail</short_desc>
          <delta_ts>2003-08-01 16:47:45 +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 4</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="z">zeyu</reporter>
          <assigned_to name="Gerald Brose">gerald.brose</assigned_to>
          <cc>andrej</cc>
    
    <cc>emalmstrom</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>407</commentid>
    <comment_count>0</comment_count>
    <who name="z">zeyu</who>
    <bug_when>2002-07-24 04:31:49 +0000</bug_when>
    <thetext>compiling the following simple idl:
================================
module A {
    interface Holder;
};

interface B {
    typedef A::Holder ap;
    attribute ap bp;
};
================================
with &quot;-sloppy_forward -W 4&quot; option you get:


   [ /tmp/p.idl ]
   [ checking module name A ]
   [ ScopedName.setId A ]
   [ ScopedName.setId A.Holder ]
   [ ScopedName.escapeName A._Holder ]
   [ ScopedName.setId ap ]
   [ NameTable.define2: putting A kind module hash: 65 ]
   [ NameTable.checkScopingRules:  A kind: module ]
   [ NameTable.checkScopingRules2:  A kind: module ]
   [ NameTable.define2: putting A.Holder kind interface hash: 1656144921 ]
   [ NameTable.checkScopingRules:  A.Holder kind: interface ]
   [ NameTable.checkScopingRules2:  A.Holder kind: interface ]
   [ Typedef&apos;ing A.Holder for  , hash: 503498 ]
   [ NameTable.define2: putting B kind interface hash: 66 ]
   [ NameTable.checkScopingRules:  B kind: interface ]
   [ NameTable.checkScopingRules2:  B kind: interface ]
   [ Typedef&apos;ing B for  , hash: 6589979 ]
   [ Interface Body parse B ]
   [ Interface Body internal_parse B ]
   [ Resolve B:A._Holder ]
Error in p.idl, line:6(22): Undefined name: B.A._Holder
	    typedef A::Holder
Can&apos;t recover from previous error(s), giving up.

The same thing happens to all other keywords such as Helper, POA, POATie, 
Package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560</commentid>
    <comment_count>1</comment_count>
    <who name="Gerald Brose">gerald.brose</who>
    <bug_when>2003-01-11 12:14:33 +0000</bug_when>
    <thetext>(Internal: fixed src/org/jacorb/idl/ScopedName.java, which incorrectly 
escaped the IDL name &quot;A::Holder&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Cross">rnc</who>
    <bug_when>2003-06-09 16:09:14 +0000</bug_when>
    <thetext>*** Bug 247 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686</commentid>
    <comment_count>3</comment_count>
    <who name="Nick Cross">rnc</who>
    <bug_when>2003-08-01 16:47:45 +0000</bug_when>
    <thetext>*** Bug 362 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>