<?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>974</bug_id>
          
          <creation_ts>2014-01-03 08:50:54 +0000</creation_ts>
          <short_desc>Cannot find symbol in interface body when struct out param has same name as defining module</short_desc>
          <delta_ts>2014-01-06 15:50: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>3.4 beta</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>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frank Wilson">frank</reporter>
          <assigned_to name="Mailinglist to track bugs">jacorb-bugs</assigned_to>
          <cc>jacorb</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3099</commentid>
    <comment_count>0</comment_count>
      <attachid>428</attachid>
    <who name="Frank Wilson">frank</who>
    <bug_when>2014-01-03 08:50:54 +0000</bug_when>
    <thetext>Created attachment 428
Valid IDL test case file, which causes the error condition to occur

When an interface function has a struct out param with the same name as the struct&apos;s defining module an aliasing problem will occur in JacORB&apos;s output.

In the interface function stub body JacORB will try to reference the struct&apos;s holder class in the module&apos;s java package. However, package name is aliased by the struct out parameter which has the same name in the IDL.

This causes a cannot find symbol error when JacORB attempts to compile its own stubs to byte code.

The error looks like this when the JacORB compile is invoked by idlj-maven-plugin.

[ERROR] /jacorb_bug_test_case/target/generated-sources/test/moduleAlias/_ModuleAliasMgr_IStub.java:[37,36] error: cannot find symbol
[ERROR] symbol:   variable ModuleAlias_THelper
[ERROR] location: variable moduleAlias of type ModuleAlias_THolder
[ERROR] /jacorb_bug_test_case/target/generated-sources/test/moduleAlias/_ModuleAliasMgr_IStub.java:[51,24] error: cannot find symbol</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3100</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Wilson">frank</who>
    <bug_when>2014-01-03 08:53:13 +0000</bug_when>
    <thetext>Confirmed this bug affects all released version from 3.0 to 3.3 and also latest source built from master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3102</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Cross">jacorb</who>
    <bug_when>2014-01-06 15:50:45 +0000</bug_when>
    <thetext>
Escaped parameter argument if it clashes with an enclosing module. Fixed by SHA 51be20d7fcc8a601cfa4212a16a79a793602f899</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>428</attachid>
            <date>2014-01-03 08:50:54 +0000</date>
            <delta_ts>2014-01-03 08:50:54 +0000</delta_ts>
            <desc>Valid IDL test case file, which causes the error condition to occur</desc>
            <filename>moduleAlias.idl</filename>
            <type>text/plain</type>
            <size>400</size>
            <attacher name="Frank Wilson">frank</attacher>
            
              <data encoding="base64">I2lmbmRlZiBtb2R1bGVBbGlhc19pZGwNCiNkZWZpbmUgbW9kdWxlQWxpYXNfaWRsDQoNCm1vZHVs
ZSBtb2R1bGVBbGlhcw0Kew0KDQogICBleGNlcHRpb24gWWlrZXNFcnJvciB7DQogICAgICAgICAg
c3RyaW5nIGluZm87DQogICB9Ow0KDQogICBzdHJ1Y3QgTW9kdWxlQWxpYXNfVA0KICAgew0KICAg
ICBzdHJpbmcgZm9vU3RyaW5nOw0KICAgfTsNCg0KICBpbnRlcmZhY2UgTW9kdWxlQWxpYXNNZ3Jf
SQ0KICB7DQoNCiAgIHZvaWQgZ2V0Rm9vKA0KICAgICAgICAgaW4gYm9vbGVhbiAgZm9vUGFyYW0s
DQogICAgICAgICBvdXQgTW9kdWxlQWxpYXNfVCAgbW9kdWxlQWxpYXMgKQ0KICAgICAgcmFpc2Vz
KFlpa2VzRXJyb3IpOw0KDQogIH07DQoNCn07DQoNCiNlbmRpZiAvLyBtb2R1bGVBbGlhc19pZGwN
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>