<html>
    <head>
      <base href="http://www.jacorb.org/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Cannot find symbol in interface body when struct out param has same name as defining module"
   href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=974">974</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot find symbol in interface body when struct out param has same name as defining module
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>JacORB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4 beta
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>IDL compiler
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jacorb-bugs@lists.spline.inf.fu-berlin.de
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>frank@zenlambda.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=428" name="attach_428" title="Valid IDL test case file, which causes the error condition to occur">attachment 428</a> <a href="attachment.cgi?id=428&action=edit" title="Valid IDL test case file, which causes the error condition to occur">[details]</a></span>
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's defining module an aliasing problem will occur in JacORB's output.

In the interface function stub body JacORB will try to reference the struct's
holder class in the module'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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>