Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-437

Annotators are not prevented from calling CAS.release()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2
    • Core Java Framework
    • None

    Description

      Annotators are prohibited from calling CAS.reset() but not CAS.release().

      Since release() in turn calls reset(), previously this was effectively prohibited as well. However, Marshall undid that in his recent work - making release() "unlock" the CAS prohibited functions.

      This was done to allow CAS Mutipliers to release the CAS - which we currently say is a best practice when an error occurs in a CAS Multiplier.

      So I think CAS Multipliers need to be allowed to call release() on CASes that they obtain from the CAS pool. But analysis components (either annotators or CAS multipliers) should not be allowed to release() CASes passed to their process() methods.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            alally Adam P. Lally
            alally Adam P. Lally
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment