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

CasCreationUtils.createCas(Collection) silently ignores TypeSystemDescription objects,

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1
    • Core Java Framework
    • None

    Description

      The CasCreationUtils.createCas(Collection,...) methods only accept certain kinds of objects in the Collection: AnalysisEngineDescription, CollectionReaderDescription, CasInitializerDescription, CasConsumerDescription, or ProcessingResourceMetaData. Any other kinds of objects in the collection are silently ignored.

      A user tried to pass a TypeSystemDescription object, expecting that it would be used to initialize the CAS type system. This didn't work but didn't cause an error, so the user had a hard time figuring out what was wrong with their application.

      There's no reason why these methods could accept TypeSystemDescription objects (as well as FsIndexCollection and TypePriorities objects). Furthermore they should throw an error if passed a type of object that is not allowed.

      Attachments

        1. UIMA-61-testCase.patch
          5 kB
          Adam P. Lally

        Activity

          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: