|
Re: Possible bug during verify event [message #549447 is a reply to message #547570] |
Mon, 26 July 2010 16:04 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Yes, it looks like an SWT bug, I've updated it accordingly.
Grant
"Ovidio Mallo" <mallo.ovidio@gmail.com> wrote in message
news:i1vql0$k05$1@build.eclipse.org...
> Hi all,
>
> there's the following bug report in databinding where a
> StringIndexOutOfBoundsException occurs while handling a verify event from
> an SWT widget:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=318782
>
> The exception occurs when cancelling the content of a Text field with the
> style (SWT.ICON_SEARCH | SWT.ICON_CANCEL) since the verify event received
> by databinding has some strange values for the start and end fields.
> Usually, the start/end fields of a verify event seem to indicate the
> portion of the existing text which has been modified. However, when
> clearing the text through the cancel icon, the start field of the
> org.eclipse.swt.widgets.Even object has the value 0 and the end field has
> the value -1 which seems wrong to me. However, I'm not sure whether this
> really is a bug in SWT or not. Therefore, could maybe anyone on the SWT
> part have a brief look at the bug and see whether it's a problem in SWT or
> not?
>
> Thanks in advance!
>
> Kind regards,
> Ovidio
|
|
|
Powered by
FUDForum. Page generated in 0.03004 seconds