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

Potential ClassCastException in CasPool

    XMLWordPrintableJSON

Details

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

    Description

      The CasPool has a constructor

      CasPool(int aNumInstances, Collection aComponentDescriptionsOrMetaData,
      Properties aPerformanceTuningSettings, ResourceManager
      aResourceManager)

      where aComponentDescriptionsOrMetaData is a collection which can contain
      according
      to javadoc "AnalysisEngineDescription, CollectionReaderDescription,
      CasConsumerDescription or ProcessingResourceMetaData objects"

      A reference of the Collection is passed to fillPool which passes the
      Collection
      to a CasDefinition constructor which then casts everything to
      ProcessingResourceMetaData,
      which will result in a ClassCastException in the case of
      AnalysisEngineDescription,
      CollectionReaderDescription and CasConsumerDescription objects.

      Attachments

        Activity

          People

            schor Marshall Schor
            joern Jörn Kottmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: