This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22493

Summary: JPopupMenuOperator().pushMenuNoBlock() blocks execution
Product: qa Reporter: Jiri Skrivanek <jskrivanek>
Component: CodeAssignee: issues@qa <issues>
Status: CLOSED FIXED    
Severity: blocker CC: mmirilovic
Priority: P1    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: Test case

Description Jiri Skrivanek 2002-04-16 13:43:13 UTC
If desired item is instance of JMenu, then push()
method at line 608 in JMenuOperator is finally
called. This push() method is blocking.
In order to support no block actions it has to be
added there:
            if(blocking) {
                push();
            } else {
                pushNoBlock();
            }
Comment 1 Jiri Skrivanek 2002-04-16 13:44:27 UTC
Created attachment 5425 [details]
Test case
Comment 2 Alexandre Iline 2002-04-17 09:25:23 UTC
Description is correct.
Comment 3 Alexandre Iline 2002-04-17 09:29:05 UTC
------- JMenuOperator.java -------
608c608,612
< 	    push();
---
>           if(blocking) {
>               push();
>           } else {
>               pushNoBlock();
>           }

Comment 4 Jiri Skrivanek 2002-04-17 13:00:13 UTC
Verified.