uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Resolved] (UIMA-5706) uv3 feature validation for getters setters weaker than v2
Date Fri, 26 Jan 2018 20:09:06 GMT

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

Marshall Schor resolved UIMA-5706.
----------------------------------
    Resolution: Fixed

> 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 API (which is range
specific) 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)

Mime
View raw message