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 197174

Summary: Deadlock while applying a hint
Product: java Reporter: Erno Mononen <emononen>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P1    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

Description Erno Mononen 2011-03-29 07:25:39 UTC
Created attachment 107356 [details]
thread dump

Product Version: NetBeans IDE 7.0 Beta 2 (Build 201102140001) 
Java: 1.7.0-ea; Java HotSpot(TM) Client VM 20.0-b04 
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) 

Steps:
1. Add a statement that throws an (unimported) exception, e.g.:

import java.io.File;
import java.io.PrintStream;
public class Foo {
    public static void main( String[] args ) {
        new PrintStream(new File("c:/foo"));
    }
}

2. Apply the "add throws clause" hint => deadlock

This is fully reproducible on the aforementioned configuration, but not e.g. on a Win 7 / JDK 6 machine. Attached is a thread dump, seems caused by using Swing components outside of EDT.
Comment 1 Marian Mirilovic 2011-03-29 07:56:00 UTC

*** This bug has been marked as a duplicate of bug 195790 ***