[jacorb-developer] idl import

Nick Cross jacorb at goots.org
Fri Jul 27 11:46:03 CEST 2012


Hi

The import keyword is not currently supported. Patches welcome ;-)

Regards

Nick


On 26/07/12 22:46, carol_rizzi wrote:
>
> Hello.
>
> I'm trying to import an idl file from another idl. But it looks like the
> word "import" could not be recognized by the compiler.
>
> My codes:
>
> ------------------------------------
> //test1.idl
> module test1 {
>      interface itf{};
> };
> ------------------------------------
> //test2.idl
> import ::test1
> module test2 {
>      interface itf2{};
> };
> ------------------------------------
>
> In some forums I found following sintax: import "test1.idl". I tested both
> the syntaxes, but I always get the same error:
>
> test2.idl (line 2):  WARNING: Identifier `_import' collides with a keyword;
> use an escaped identifier to ensure future compatibility.
> import ::test1;
> ^
> test2.idl (line 2):  Expected one of `typedef' `struct' `union' `enum'
> `const' `exception' `interface' `valuetype' `module'; encountered
> `<identifier>'.
> import ::test1;
> ^
>
> The compilation command: idlj -fall test2.idl
>




More information about the jacorb-developer mailing list