I compiled some slice IDL with slice2java using the --stream option.
The resulting code does not compile. It might be my fault, but I don't know how to solve it.
The IDL in question is:
The last two methods in the generated code below do not compile, as it seems their parameter (of type InputStream or OutputStream) does not match the parameter type needed to pass to ByteSeqHelper.read/write:Code:struct Prop { int Index; Ice::ByteSeq Value; };
(I have marked the problem spots with a comment)
Code:public final class Prop implements java.lang.Cloneable { public int Index; public byte[] Value; . . . public void __write(IceInternal.BasicStream __os) { __os.writeInt(Index); Ice.ByteSeqHelper.write(__os, Value); } public void __read(IceInternal.BasicStream __is) { Index = __is.readInt(); Value = Ice.ByteSeqHelper.read(__is); } public void ice_write(Ice.OutputStream __outS) { __outS.writeInt(Index); Ice.ByteSeqHelper.write(__outS, Value); // issue here } public void ice_read(Ice.InputStream __inS) { Index = __inS.readInt(); Value = Ice.ByteSeqHelper.read(__inS); // issue here }
Karl

Reply With Quote
