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 44838

Summary: Empty unclosable window opened when some CLI option is unrecognized
Product: platform Reporter: Jesse Glick <jglick>
Component: -- Other --Assignee: Jaroslav Tulach <jtulach>
Status: CLOSED FIXED    
Severity: blocker Keywords: JDK_SPECIFIC
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2004-06-14 16:48:59 UTC
040611, 1.5.0 b54. Easy to reproduce. Run IDE on
fresh userdir. Now from a shell, type "netbeans
--userdir <whatever>". The IDE's window is fronted
- fine. "netbeans --userdir <whatever> --open
<somefile>" works too, etc.

Now type "netbeans --userdir <whatever> --hello",
i.e. some unrecognized option. Shell prints
"Ignored unknown option: --hello" as expected. But
now a 0x0 empty window is opened above the IDE's
main window. Empty (grey), can be resized but not
closed, always on top of main window. Have to
restart IDE to make it go away.

Presumably some bug in CLIOptions2 whereby
WindowManager.getDefault is the default "trivial"
WM in openide?
Comment 1 Jesse Glick 2004-06-14 16:50:07 UTC
I think this did not use to happen, not sure when the bug was introduced.
Comment 2 Jaroslav Tulach 2004-06-15 16:05:23 UTC
No regression, just does not work on 1.5. Removing the problematic
code as 1.5 on KDE seems to switch the active desktop correctly
without this trick.

core/src/org/netbeans/core/CLIOptions2.java,v  <--  CLIOptions2.java
new revision: 1.2;
Comment 3 Jesse Glick 2004-06-15 16:15:46 UTC
OK, thanks. I did not think to check on JDK 1.4.
Comment 4 Jaroslav Tulach 2004-07-21 15:00:14 UTC
*** Issue 42724 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Danek 2005-08-01 09:34:10 UTC
 Product Version       = NetBeans IDE Dev (Build 200507281800)
  Operating System      = SunOS version 5.9 running on sparc
  Java; VM; Vendor      = 1.5.0_02; Java HotSpot(TM) Client VM 1.5.0_02-b09; Sun
Microsystems Inc.


Verified.