[
https://issues.apache.org/jira/browse/UIMA-5706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marshall Schor updated UIMA-5706:
---------------------------------
Description:
Methods like fs.get/set[valueKind](feature) fail to compare the valueKind with
the range of the feature. Examples:
* valueKind = featureValue, the range should be a Feature Structure.
* valueKind = intValue, the range should be a uima.cas.Integer
* valueKind = shortValue, the range should be uima.cas.Short
These are not value checks, but rather checks between the setter and the
feature. The setter apis are things like setFeatureValue (needs feature
structure range), setShortValue (needs feature whose range is a short, etc.).
was:
Methods like fs.get/set[valueKind](feature) fail to compare the valueKind with
the range of the feature. Examples:
* valueKind = featureValue, the range should be a Feature Structure.
* valueKind = intValue, the range should be a uima.cas.Integer
* valueKind = shortValue, the range should be uima.cas.Short
> uv3 feature validation for getters setters weaker than v2
> ---------------------------------------------------------
>
> Key: UIMA-5706
> URL: https://issues.apache.org/jira/browse/UIMA-5706
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 3.0.0SDK-beta
> Reporter: Marshall Schor
> Assignee: Marshall Schor
> Priority: Minor
> Fix For: 3.0.0SDK
>
>
> Methods like fs.get/set[valueKind](feature) fail to compare the valueKind
> with the range of the feature. Examples:
> * valueKind = featureValue, the range should be a Feature Structure.
> * valueKind = intValue, the range should be a uima.cas.Integer
> * valueKind = shortValue, the range should be uima.cas.Short
> These are not value checks, but rather checks between the setter and the
> feature. The setter apis are things like setFeatureValue (needs feature
> structure range), setShortValue (needs feature whose range is a short, etc.).
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)