Home Help Center


jessejesse Member Jesse AndersonOrganization: Bright SystemsProject: Data Moving ✭✭
In my .ice file I have the following line:
sequence<Disk> DisksDef;

However the variable that gets generated is:
public java.util.List<Disk> Disks;

Instead of creating a Vector it creates a List interface. Am I putting in the wrong metadata tag?

I realize that Vector implements the List interface. However, having to change from Vector to List will take some effort. I would prefer to keep it a Vector.


  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Welcome to the forum.

    As explained in section 10.15.3 of the Ice manual, the syntax for Java custom type metadata is


    If you don't specify an abstract type, the translator uses java.util.List by default. If you want to use java.util.Vector for both types, you need to modify your definition as shown below:
    sequence<Disk> DisksDef;
    Take care,
    - Mark
Sign In or Register to comment.