You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org> on 2009/08/18 09:53:15 UTC
[jira] Created: (UIMA-1499) Potential ClassCastException in CasPool
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
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1499) Potential ClassCastException in
CasPool
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744406#action_12744406 ]
Jörn Kottmann commented on UIMA-1499:
-------------------------------------
Adam Lally already commented on the dev list:
"Good catch, that javadoc does seem to be wrong. I wonder if it was
correct at some point in the past and the code has changed? "
> 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
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (UIMA-1499) Potential ClassCastException in CasPool
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor closed UIMA-1499.
--------------------------------
Resolution: Fixed
Assignee: Marshall Schor
> 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
> Assignee: Marshall Schor
> Fix For: 2.3
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1499) Potential ClassCastException in
CasPool
Posted by "Tommaso Teofili (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754558#action_12754558 ]
Tommaso Teofili commented on UIMA-1499:
---------------------------------------
we could use generics to ensure this at compile time i.e.
public CasPool(...., Collection<ProcessingResourceMetaData> aComponentDescriptionsOrMetaData...) ...
what do you think?
> 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
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.