Discussion:
CORBA newbie has question about event modifier
(too old to reply)
Renee
2013-09-11 17:43:49 UTC
Permalink
I am writing a Java client to a CORBA server that is not thoroughly documented or well maintained; all I have are IDL files.

First, I want to compile the IDL files: my compiler is IDL-to-Java compiler (portable), version "3.2"

My question is this: When the compiler encounters method declarations with event modifier, for example,

event void channelCreate(in TimeStamp t, in string channel);

the compiler complains: "event is an undeclared type."

I'm new to CORBA but I expect 'event' is a modifier the same way 'public' is in C++. Therefore, shouldn't the IDL compiler understand 'event' or do I have to define the 'event' modifier

Thank you very much for explaining this!
Johnny Willemsen
2013-09-11 18:26:24 UTC
Permalink
Hi,

This is not legal IDL, there is nothing in IDL that defines event as
special keyword. Check the OMG CORBA spec, section 1, see
http://www.omg.org/spec/CORBA/3.3/

Best regards,

Johnny Willemsen
Remedy IT
Post by Renee
I am writing a Java client to a CORBA server that is not thoroughly documented or well maintained; all I have are IDL files.
First, I want to compile the IDL files: my compiler is IDL-to-Java compiler (portable), version "3.2"
My question is this: When the compiler encounters method declarations with event modifier, for example,
event void channelCreate(in TimeStamp t, in string channel);
the compiler complains: "event is an undeclared type."
I'm new to CORBA but I expect 'event' is a modifier the same way 'public' is in C++. Therefore, shouldn't the IDL compiler understand 'event' or do I have to define the 'event' modifier
Thank you very much for explaining this!
r***@gmail.com
2013-09-11 19:08:06 UTC
Permalink
Thank you. So, is there any way the provider can define 'event' such that an IDL compiler will tolerate it? I am trying to understand how they ever got it to compile.

Ah, it just occurred to me that they may have proxies for the current client. I will try barking up that tree, too.

Again, thank you for your response and the link to the standard.

Regards,
Renee
Post by Johnny Willemsen
Hi,
This is not legal IDL, there is nothing in IDL that defines event as
special keyword. Check the OMG CORBA spec, section 1, see
http://www.omg.org/spec/CORBA/3.3/
Best regards,
Johnny Willemsen
Remedy IT
Post by Renee
I am writing a Java client to a CORBA server that is not thoroughly documented or well maintained; all I have are IDL files.
First, I want to compile the IDL files: my compiler is IDL-to-Java compiler (portable), version "3.2"
My question is this: When the compiler encounters method declarations with event modifier, for example,
event void channelCreate(in TimeStamp t, in string channel);
the compiler complains: "event is an undeclared type."
I'm new to CORBA but I expect 'event' is a modifier the same way 'public' is in C++. Therefore, shouldn't the IDL compiler understand 'event' or do I have to define the 'event' modifier
Thank you very much for explaining this!
Johnny Willemsen
2013-09-13 08:51:19 UTC
Permalink
Hi,
Post by r***@gmail.com
Thank you. So, is there any way the provider can define 'event' such that an IDL compiler will tolerate it? I am trying to understand how they ever got it to compile.
It could be a vendor specific extension. Maybe a #define of event to
nothing solves it
Post by r***@gmail.com
Ah, it just occurred to me that they may have proxies for the current client. I will try barking up that tree, too.
But the proxies are tied to a specific product, than you would also have
to use the same ORB version.

Regards,

Johnny
Post by r***@gmail.com
Again, thank you for your response and the link to the standard.
Regards,
Renee
Post by Johnny Willemsen
Hi,
This is not legal IDL, there is nothing in IDL that defines event as
special keyword. Check the OMG CORBA spec, section 1, see
http://www.omg.org/spec/CORBA/3.3/
Best regards,
Johnny Willemsen
Remedy IT
Post by Renee
I am writing a Java client to a CORBA server that is not thoroughly documented or well maintained; all I have are IDL files.
First, I want to compile the IDL files: my compiler is IDL-to-Java compiler (portable), version "3.2"
My question is this: When the compiler encounters method declarations with event modifier, for example,
event void channelCreate(in TimeStamp t, in string channel);
the compiler complains: "event is an undeclared type."
I'm new to CORBA but I expect 'event' is a modifier the same way 'public' is in C++. Therefore, shouldn't the IDL compiler understand 'event' or do I have to define the 'event' modifier
Thank you very much for explaining this!
Loading...