You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The cassis cas_with_collections test uses a type system in which a type is derived from uima.cas.StringArray. Loading this type system in the UIMA Java SDK produces an error.
To Reproduce
var tsd = UIMAFramework.getXMLParser().parseTypeSystemDescription(new XMLInputSource("typesystem_with_collections_xml"));
CasCreationUtils.createCas(tsd, null, null, null);
Expected behavior
If a type is inheritance final in the UIMA Java SDK, alternative implementations should probably also not permit subclassing it because the resulting XMI/TS files would not be interoperable.
Error message
Caused by: org.apache.uima.cas.admin.CASAdminException: Can't derive from type "uima.cas.StringArray" since it is inheritance final.
at org.apache.uima.cas.impl.TypeSystemImpl.newTypeChecks(TypeSystemImpl.java:915)
at org.apache.uima.cas.impl.TypeSystemImpl.addType(TypeSystemImpl.java:960)
at org.apache.uima.cas.impl.TypeSystemImpl.addType(TypeSystemImpl.java:1)
at org.apache.uima.util.CasCreationUtils.setupTypeSystem(CasCreationUtils.java:793)
at org.apache.uima.util.CasCreationUtils.doCreateCas(CasCreationUtils.java:632)
at org.apache.uima.util.CasCreationUtils.createCas(CasCreationUtils.java:375)
at org.apache.uima.util.CasCreationUtils.createCas(CasCreationUtils.java:350)
Describe the bug
The cassis
cas_with_collections
test uses a type system in which a type is derived fromuima.cas.StringArray
. Loading this type system in the UIMA Java SDK produces an error.To Reproduce
Expected behavior
If a type is inheritance final in the UIMA Java SDK, alternative implementations should probably also not permit subclassing it because the resulting XMI/TS files would not be interoperable.
Error message
Please complete the following information:
Additional information
Inheritance-final types (no subtypes permitted):
Feature-final types (sub-types cannot add new features):
The text was updated successfully, but these errors were encountered: