Ice 3.5.0 generated code doesn't compile

soukoutisoukouti Member Nader SoukoutiOrganization: ArexaProject: evaluation
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

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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 - ZeroC
  • soukoutisoukouti Member Nader SoukoutiOrganization: ArexaProject: evaluation
    Hi Jose,

    You are right. I mixed 3.5.0 and 3.4.2
    Thank you very much for your support !

    Regards

    Nader
Sign In or Register to comment.