uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burn Lewis (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-5869) The JCas getView method throws CasRuntimeException not CasException
Date Thu, 20 Sep 2018 12:52:00 GMT
Burn Lewis created UIMA-5869:
--------------------------------

             Summary: The JCas getView method throws CasRuntimeException not CasException
                 Key: UIMA-5869
                 URL: https://issues.apache.org/jira/browse/UIMA-5869
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
    Affects Versions: 3.0.0SDK, 2.10.2SDK
            Reporter: Burn Lewis


Code that uses JCas getView expects CasException to be thrown if a view is missing, but instead
the underlying CAS.getView method throws CasRuntimeException.

Either the code or the Javadocs should be fixed.  Since a missing view is not uncommon, throwing
an unchecked exception is not very useful.  Making the framework code match the Javadocs
should have tminimal impact on existing user code.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message