Java Compat Mapping for Data Members in Local Types
Data members on local Slice types (classes, exceptions and structs) are mapped to Java just like the data members of the corresponding non local Slice construct.
A local Slice type can have a data member of type local interface or class: it is mapped a Java data member with the mapped Java interface or class as its type.