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 57461 - Fix imports (ALT+Shift+f) frozen
Summary: Fix imports (ALT+Shift+f) frozen
Status: RESOLVED DUPLICATE of bug 57316
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-05 05:09 UTC by pzgyuanf
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the thread dumps (190.59 KB, text/plain)
2005-04-05 08:56 UTC, pzgyuanf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzgyuanf 2005-04-05 05:09:08 UTC
1.Type below code (regardless the error):
---------
class Z {
    void printAll(ArrayList<Object> c) {
        for (Object o : c)
            System.out.println(o);
    }
    
    void test() {               
        ArrayList<String> list = new ArrayList<String>();
        printall(list);   // error
    }
}
---------------

2. Alt+Shift+F

Netbeans frozen for ever.
Comment 1 pzgyuanf 2005-04-05 05:11:34 UTC
my settings:

the build 20050401 dev
jdk 1.5.0.0_02
windows2000
Comment 2 Miloslav Metelka 2005-04-05 08:43:03 UTC
I think that this is the dup of issue 57316 but I'm not 100% sure because you
did not provide a threaddump of the deadlocked IDE. Could you please do so? Thanks.
Comment 3 pzgyuanf 2005-04-05 08:53:27 UTC
Try Fix imports and kill netbeans again!!

as it is frozen, there wasn't any dump. 
Kill it in the 'task manager' of windows 2000 and restart netbeans.
here it is:
see the attachment.
Comment 4 pzgyuanf 2005-04-05 08:56:37 UTC
Created attachment 21370 [details]
the thread dumps
Comment 5 Miloslav Metelka 2005-04-05 09:06:57 UTC
Please run nb.exe (so that there is a java console window opened) and once you
reach the deadlock please goto to the console window and press Ctrl-Break. There
should be list of threads with their present stacks dumped on the console.
Please grab that output and attach it to this issue. Thanks in advance.
Comment 6 pzgyuanf 2005-04-05 09:33:26 UTC
Aha, in the first time(right now), 
1- I ran  it from CLI and 'Fix imports' by popup menu of source editor,
everything is work normal.

2- undo and retry 'Fix imports'again(by popup menu),deadlock again.

this can recur by repeating the above two steps.

If were by shortcut Alt+Shift+F in the first step, simply deadlock quickly .


So bad, no threaddump available too. 
Comment 7 Miloslav Metelka 2005-04-05 09:58:45 UTC
OK, I now see that it's really a dup of issue 57316. I doubted because the build
is usually started at 18:00 and it would already have to contain the fix
(integrated at 14:23). But that build was done at 07:47 so it did not contain
the fix.
I have reproduced as well in the meantime.
Please download any daily build made after 20050401 to see this issue fixed.

*** This issue has been marked as a duplicate of 57316 ***
Comment 8 pzgyuanf 2005-04-05 10:04:24 UTC
thanks for your detail.