[jacorb-bugs] [Bug 974] New: Cannot find symbol in interface body when struct out param has same name as defining module
bugzilla-daemon at jacorb.org
bugzilla-daemon at jacorb.org
Fri Jan 3 14:50:54 CET 2014
http://www.jacorb.org/bugzilla/show_bug.cgi?id=974
Bug ID: 974
Summary: Cannot find symbol in interface body when struct out
param has same name as defining module
Product: JacORB
Version: 3.4 beta
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5
Component: IDL compiler
Assignee: jacorb-bugs at lists.spline.inf.fu-berlin.de
Reporter: frank at zenlambda.com
Created attachment 428
--> http://www.jacorb.org/bugzilla/attachment.cgi?id=428&action=edit
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20140103/601bc39b/attachment.html>
More information about the jacorb-bugs
mailing list