You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Cawley, Tim" <Ti...@dsto.defence.gov.au> on 2008/06/23 03:48:18 UTC

Pretty sure I've found a small bug.

Bug in class org.apache.uima.tools.cpm.CpmPanel.displayProgress() 

Mehtod will always throw a ArrayIndexOutOfBounds if one of the
Progress[] elements does not have Units of Progress.ENTITIES

Cheers,

Tim


IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.



Re: Pretty sure I've found a small bug.

Posted by Marshall Schor <ms...@schor.com>.
Marshall Schor wrote:
> Cawley, Tim wrote:
>> Bug in class org.apache.uima.tools.cpm.CpmPanel.displayProgress()
>> Mehtod will always throw a ArrayIndexOutOfBounds if one of the
>> Progress[] elements does not have Units of Progress.ENTITIES
>>   
> I had a look at the code - it looks like the Progress array was set up 
> to allow reporting on multiple kinds of progress - but only 2 have 
> been declared, and only one (the Progress.ENTITIES) is ever used in 
> the implmentation.
>
> Do you have a scenario where this is actually failing?
Fixed under Jira https://issues.apache.org/jira/browse/UIMA-1086
>
> -Marshall
>
>


Re: Pretty sure I've found a small bug.

Posted by Marshall Schor <ms...@schor.com>.
Cawley, Tim wrote:
> Bug in class org.apache.uima.tools.cpm.CpmPanel.displayProgress() 
>
> Mehtod will always throw a ArrayIndexOutOfBounds if one of the
> Progress[] elements does not have Units of Progress.ENTITIES
>   
I had a look at the code - it looks like the Progress array was set up 
to allow reporting on multiple kinds of progress - but only 2 have been 
declared, and only one (the Progress.ENTITIES) is ever used in the 
implmentation.

Do you have a scenario where this is actually failing?

-Marshall