uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann (JIRA) <uima-...@incubator.apache.org>
Subject [jira] Created: (UIMA-1499) Potential ClassCastException in CasPool
Date Tue, 18 Aug 2009 07:53:15 GMT
Potential ClassCastException in CasPool

                 Key: UIMA-1499
                 URL: https://issues.apache.org/jira/browse/UIMA-1499
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
    Affects Versions: 2.3
            Reporter: Jörn Kottmann
             Fix For: 2.3

The CasPool has a constructor

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

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

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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message