Archived
This forum has been archived. Please start a new discussion on GitHub.
Ice 3.5.0 generated code doesn't compile
Hello,
When I compile the following slice, the generated code doesn't compile :
module MyModule
{
exception MyException
{
string message;
};
};
Here is the error messages
[ERROR] /E:/svn/Arte/stdlib_trunk/stdlib-ice/target/generated-sources/slice/MyModule/MyException.java:[23,8] E:\svn\Arte\stdlib_trunk\stdlib-ice\target\generated-sources\slice\MyModule\MyException.java:23: MyModule.MyException is not abstract and does not override abstract method __readImpl(IceInternal.BasicStream) in Ice.UserException
[ERROR] /E:/svn/Arte/stdlib_trunk/stdlib-ice/target/generated-sources/slice/MyModule/MyException.java:[57,13] E:\svn\Arte\stdlib_trunk\stdlib-ice\target\generated-sources\slice\MyModule\MyException.java:57: startWriteSlice(java.lang.String,int,boolean) in IceInternal.BasicStream cannot be applied to ()
[ERROR] /E:/svn/Arte/stdlib_trunk/stdlib-ice/target/generated-sources/slice/MyModule/MyException.java:[78,15] E:\svn\Arte\stdlib_trunk\stdlib-ice\target\generated-sources\slice\MyModule\MyException.java:78: startSlice(java.lang.String,int,boolean) in Ice.OutputStream cannot be applied to ()
Could you please let me know what is going wrong here ?
Regards
Nader Soukouti
When I compile the following slice, the generated code doesn't compile :
module MyModule
{
exception MyException
{
string message;
};
};
Here is the error messages
[ERROR] /E:/svn/Arte/stdlib_trunk/stdlib-ice/target/generated-sources/slice/MyModule/MyException.java:[23,8] E:\svn\Arte\stdlib_trunk\stdlib-ice\target\generated-sources\slice\MyModule\MyException.java:23: MyModule.MyException is not abstract and does not override abstract method __readImpl(IceInternal.BasicStream) in Ice.UserException
[ERROR] /E:/svn/Arte/stdlib_trunk/stdlib-ice/target/generated-sources/slice/MyModule/MyException.java:[57,13] E:\svn\Arte\stdlib_trunk\stdlib-ice\target\generated-sources\slice\MyModule\MyException.java:57: startWriteSlice(java.lang.String,int,boolean) in IceInternal.BasicStream cannot be applied to ()
[ERROR] /E:/svn/Arte/stdlib_trunk/stdlib-ice/target/generated-sources/slice/MyModule/MyException.java:[78,15] E:\svn\Arte\stdlib_trunk\stdlib-ice\target\generated-sources\slice\MyModule\MyException.java:78: startSlice(java.lang.String,int,boolean) in Ice.OutputStream cannot be applied to ()
Could you please let me know what is going wrong here ?
Regards
Nader Soukouti
0
Comments
-
Hi Nader,
The code you posted should compile fine with 3.5, seems like you are using slice2java from Ice 3.4 and Ice.jar file from Ice 3.5.
If you are using the Slice2Java Ant Task to build your source, take a look at Using the Slice Compiler for Java - Ice 3.5 - ZeroC0 -
Hi Jose,
You are right. I mixed 3.5.0 and 3.4.2
Thank you very much for your support !
Regards
Nader0