You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Adam Lally (JIRA)" <ui...@incubator.apache.org> on 2007/01/05 20:41:27 UTC
[jira] Created: (UIMA-163) CpeCasProcessors.removeCasProcessor
always throws "invalid index" exception
CpeCasProcessors.removeCasProcessor always throws "invalid index" exception
---------------------------------------------------------------------------
Key: UIMA-163
URL: https://issues.apache.org/jira/browse/UIMA-163
Project: UIMA
Issue Type: Bug
Components: Collection Processing
Reporter: Adam Lally
Assigned To: Adam Lally
Priority: Critical
Fix For: 2.1
I think there's a missing "else" in this code :-)
public void removeCpeCasProcessor(int aPosition) throws CpeDescriptorException {
if (aPosition <= casProcessors.size()) {
casProcessors.remove(aPosition);
}
throw new CpeDescriptorException(CpmLocalizedMessage.getLocalizedMessage(
CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_EXP_invalid_array_index__WARNING",
new Object[] { Thread.currentThread().getName() }));
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (UIMA-163) CpeCasProcessors.removeCasProcessor
always throws "invalid index" exception
Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Lally closed UIMA-163.
---------------------------
Resolution: Fixed
> CpeCasProcessors.removeCasProcessor always throws "invalid index" exception
> ---------------------------------------------------------------------------
>
> Key: UIMA-163
> URL: https://issues.apache.org/jira/browse/UIMA-163
> Project: UIMA
> Issue Type: Bug
> Components: Collection Processing
> Reporter: Adam Lally
> Assigned To: Adam Lally
> Priority: Critical
> Fix For: 2.1
>
>
> I think there's a missing "else" in this code :-)
> public void removeCpeCasProcessor(int aPosition) throws CpeDescriptorException {
> if (aPosition <= casProcessors.size()) {
> casProcessors.remove(aPosition);
> }
> throw new CpeDescriptorException(CpmLocalizedMessage.getLocalizedMessage(
> CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_EXP_invalid_array_index__WARNING",
> new Object[] { Thread.currentThread().getName() }));
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira