[ https://issues.apache.org/jira/browse/UIMA-5557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158621#comment-16158621 ]
Richard Eckart de Castilho edited comment on UIMA-5557 at 9/8/17 1:22 PM: -------------------------------------------------------------------------- The two cases (mine and the one reported on the mailing list) are probably different. In my case (`Compound`), there is a customized JCas FS class. It contains the auto-generated methods: {noformat} /** getter for splits - gets A word that can be decomposed into different parts. * @generated * @return value of the feature */ public FSArray getSplits() { return (FSArray)(_getFeatureValueNc(_FI_splits));} /** setter for splits - sets A word that can be decomposed into different parts. * @generated * @param v value to set into the feature */ public void setSplits(FSArray v) { _setFeatureValueNcWj(_FI_splits, v); } {noformat} But it also contains a custom method: {noformat} private List<Split> getSplits(final Split[] splits, final boolean includeMorpheme, CompoundSplitLevel splitLevel) ... {noformat} I assume that the warning comes because the custom method (which is obviously not a Java bean getter) returns a `List<Split>` instead of `FSArray`. was (Author: rec): The two cases are probably different. In my case (`Compound`), there is a customized JCas FS class. It contains the auto-generated methods: {noformat} /** getter for splits - gets A word that can be decomposed into different parts. * @generated * @return value of the feature */ public FSArray getSplits() { return (FSArray)(_getFeatureValueNc(_FI_splits));} /** setter for splits - sets A word that can be decomposed into different parts. * @generated * @param v value to set into the feature */ public void setSplits(FSArray v) { _setFeatureValueNcWj(_FI_splits, v); } {noformat} But it also contains a custom method: {noformat} private List<Split> getSplits(final Split[] splits, final boolean includeMorpheme, CompoundSplitLevel splitLevel) ... {noformat} I assume that the warning comes because the custom method (which is obviously not a Java bean getter) returns a `List<Split>` instead of `FSArray`. > uv3: FSArray accessors seem not to be correctly generated > --------------------------------------------------------- > > Key: UIMA-5557 > URL: https://issues.apache.org/jira/browse/UIMA-5557 > Project: UIMA > Issue Type: Bug > Components: jcasgen-maven-plugin > Affects Versions: 3.0.0SDK-beta > Reporter: Richard Eckart de Castilho > > With the UIMAv3 jcasgen, at runtime, I am seeing messages such as > {noformat} > 2017-09-08 15:00:29 WARN [main] (FSClassRegistry) - CAS type system type > "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Compound" defines field > "splits" with range "class org.apache.uima.jcas.cas.FSArray", but JCas getter > method is returning "interface java.util.List" which is not a subtype of the > declared range. > {noformat} > A user on the users mailing list reported a similar message when trying out > UIMAv3: > {noformat} > JCAS range type uima.cas.FSArray for feature ... does not match the CAS range > type uima.cas.StringArray for the feature > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)