Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 928 - Replacing package name via i2jpackage leads to IDL compile errors
Summary: Replacing package name via i2jpackage leads to IDL compile errors
Status: NEW
Alias: None
Product: JacORB
Classification: Unclassified
Component: IDL compiler (show other bugs)
Version: 2.3.1
Hardware: PC Windows NT
: P2 normal
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2012-09-22 17:17 CEST by Manuel Fehlhammer
Modified: 2012-09-22 17:37 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Fehlhammer 2012-09-22 17:17:20 CEST
The following IDL description ONLY compiles with jacidl when NO package name replacement via i2jpackage is used for Interface I1:

---------------------
module A
{
   interface I1
   {
      exception Ex1 { };
      void testOp1();
   };

   interface I2 : I1
   {
      void testOp2(  ) raises (Ex1);
   };
};

-----------------

As soon as I use i2jpackage (ANT IDL task) to substitute I1 with a replacement string (for instance: <i2jpackage names="I1:interface1"/>) jacidl fails with the following error:
 
[jacorb.idl] ERROR : test.idl, line:24(41): Undefined name: A.I2.Ex1

Can't recover from previous error(s), giving up.

	            void testOp2(  ) raises (Ex1
[jacorb.idl] ERROR : test.idl, line:24(41): Undefined name: A.I2.Ex1

Can't recover from previous error(s), giving up.

Note: The same error exists in jacorb 3.1 IDL.jar