Archived
This forum has been archived. Please start a new discussion on GitHub.
Object-Array
susannesch
in Help Center
I'm trying to define an Object-Array in Slice like this:
sequence<Object> TourObject;
But that doesn't seem to work. Is there a possibility to define something like this? Untill now, I was just able to define sequences with basic types.
Thanks, Susanne
sequence<Object> TourObject;
But that doesn't seem to work. Is there a possibility to define something like this? Untill now, I was just able to define sequences with basic types.
Thanks, Susanne
0
Comments
-
Inside my Ice-File, I have defined the following:
module ApplicationLayer {
["java:type:java.util.LinkedList<Object>"]
sequence<Object> TourObject;
interface ApplicationLayerFunctions {
string getMeteringPoint(string x);
TourObject TourReading();
};
};
I get an Error when I try to use slice2javae (IceEJ 1.2.0) saying: Tourobject cannot contain object-Values. I just want to generate a List that can contain Objects.
I also tried:
["java:type:java.util.LinkedList"]
sequence<Object> TourObject;
But I get the same error.0
