You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (Jira)" <de...@uima.apache.org> on 2021/08/05 09:37:00 UTC

[jira] [Updated] (UIMA-6381) Component type for FSList types not retained

     [ https://issues.apache.org/jira/browse/UIMA-6381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Eckart de Castilho updated UIMA-6381:
---------------------------------------------
    Attachment: Screenshot 2021-08-05 at 11.35.42.png

> Component type for FSList types not retained
> --------------------------------------------
>
>                 Key: UIMA-6381
>                 URL: https://issues.apache.org/jira/browse/UIMA-6381
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 3.2.0SDK
>            Reporter: Richard Eckart de Castilho
>            Priority: Major
>         Attachments: Screenshot 2021-08-05 at 11.35.42.png
>
>
> A element type that is defined on a FSList-typed feature is not retained when the type system description is later extracted from the type system of a CAS.
> {code}
>   @Test
>   public void test() throws Exception {
>     TypeSystemDescription tsd = UIMAFramework.getResourceSpecifierFactory()
>             .createTypeSystemDescription();
>     TypeDescription td = tsd.addType("Type", null, CAS.TYPE_NAME_ANNOTATION);
>     FeatureDescription expected = td.addFeature("feature", null, CAS.TYPE_NAME_FS_LIST,
>             CAS.TYPE_NAME_ANNOTATION, null);
>     CAS cas = CasCreationUtils.createCas(tsd, null, null, null);
>     TypeSystem ts = cas.getTypeSystem();
>     FeatureDescription actual = TypeSystemUtil.type2TypeDescription(ts.getType("Type"), ts)
>             .getFeatures()[0];
>     assertThat(actual).isEqualTo(expected);
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)