Archived
This forum has been archived. Please start a new discussion on GitHub.
Throwing exception from another module
This is with C#, on windows xp with Visual Studio, Ice 2.1.1.
If I define an exception in one ICE module, and then try to specify an interface method in another module throws that exception, the generated code doesn't correctly qualify the exception name when it's trying to be thrown. Simple example would be
module M1
{
exception BlahException { };
};
module M2
{
interface I {
void DoStuff() throws M1::BlahException;
};
};
In the _IDelM class, DoStuff method it catches the exception BlahException, and it should be the M1.BlahException. Has anybody else seen this behavior?
Thanks,
Beardo
If I define an exception in one ICE module, and then try to specify an interface method in another module throws that exception, the generated code doesn't correctly qualify the exception name when it's trying to be thrown. Simple example would be
module M1
{
exception BlahException { };
};
module M2
{
interface I {
void DoStuff() throws M1::BlahException;
};
};
In the _IDelM class, DoStuff method it catches the exception BlahException, and it should be the M1.BlahException. Has anybody else seen this behavior?
Thanks,
Beardo
0
Comments
-
This appears to be a bug in the C# slice compiler. We'll look into it.
Regards, Matthew0 -
Hi,
Thanks for reporting this bug, it has been fixed for the next release.
If you need a patch and you have Visual C++, we can describe how to modify the slice2cs source code to fix this problem. Otherwise, we can provide a new slice2cs executable.
Take care,
- Mark0 -
Well that entirely depends on when the next release is
I have work around, so I can be patient.
Thanks for the quick responses,
Beardo0