Is it not possible to have a sequence of classes in Slice while using the Java sequence mapping metadata?
For example, the Java generated by the following Slice compiles just fine:
But changing the declaration of FooSet to...Code:#ifndef TEST_ICE #define TEST_ICE module TestModule { class Foo { int fooInt; }; sequence<Foo> FooSet; interface Baz { FooSet getFoos(); }; }; #endif
...causes the Java compilation die with the following error:Code:["java:type:java.util.HashSet<Foo>"] sequence<Foo> FooSet;
But, if you then change the Foo class to a struct (but leave the sequence mapping metadata), then the Java compilation works again. Am I doing something wrong?Code:[javac] Compiling 21 source files to D:\Test\build\java\src [javac] D:\Test\code\java\src-gen\TestModule\FooSetHelper.java:46: cannot find symbol [javac] symbol : constructor ListPatcher(java.util.HashSet<TestModule.Foo>,java.lang.Class<TestModule.Foo>,java.lang.String,int) [javac] location: class IceInternal.ListPatcher [javac] __is.readObject(new IceInternal.ListPatcher(__v, Foo.class, __type0, __i0)); [javac] ^ [javac] 1 error
thanks,
Chris

Reply With Quote