Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Possible bug during verify event
Possible bug during verify event [message #547570] Sun, 18 July 2010 21:10 Go to next message
Ovidio Mallo is currently offline Ovidio MalloFriend
Messages: 35
Registered: July 2009
Member
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
Re: Possible bug during verify event [message #549447 is a reply to message #547570] Mon, 26 July 2010 16:04 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
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
Previous Topic:SWT.Browser - Drag and Drop problem
Next Topic:Invalid Thread Access on Display.readAndDispatch() (using SWT_AWT)
Goto Forum:
  


Current Time: Thu Apr 25 22:09:20 GMT 2024

Powered by FUDForum. Page generated in 0.03004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top