#3729 assertion in CompletionPopup.passKeyEventToView

open
None
5
2012-08-11
2012-08-11
Jarek Czekalski
No

Steps to reproduce:
1. r21989 -nosettings -noplugins
2. type "abc abcd a"
3. start the completion by Ctrl-B
4. press Ctrl - this dismissed the popup and fires the assertion fail message

This was on Linux, but I believe Windows behaves the same, as I was getting plenty of these exceptions on both platforms. Recently, thanks to beeping, I caught it red-handed.

Kazutoshi, this seems to be your code.

5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: java.lang.AssertionError
5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.CompletionPopup.passKeyEventToView(CompletionPopup.java:335)
5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.CompletionPopup.access$900(CompletionPopup.java:58)
5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.CompletionPopup$KeyHandler.keyPressed(CompletionPopup.java:459)
5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:138)
5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4721)
5:02:40 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.processEvent(Component.java:6066)

Discussion