You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2017/09/08 20:59:02 UTC
[jira] [Updated] (UIMA-5552) uv3: Get JCas instance in JCas class
[ https://issues.apache.org/jira/browse/UIMA-5552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor updated UIMA-5552:
---------------------------------
Fix Version/s: 3.0.0SDK-beta
> uv3: Get JCas instance in JCas class
> ------------------------------------
>
> Key: UIMA-5552
> URL: https://issues.apache.org/jira/browse/UIMA-5552
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 3.0.0SDK-beta
> Reporter: Richard Eckart de Castilho
> Fix For: 3.0.0SDK-beta
>
>
> In the new JCas FS classes, it is no longer possible to access the JCas instance conveniently. With UIMA v2, is was possible to get the JCas containing a feature structure via `jcasType.jcas`. Now, one has to do a `getCAS().getJCas()` but that requires catching a CASException. It would be nice to have a convenience method `getJCas()` in JCas FS classes that does not throw an exception.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)