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 - Deadlock while applying a hint
Summary: Deadlock while applying a hint
Status: RESOLVED DUPLICATE of bug 195790
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 07:25 UTC by Erno Mononen
Modified: 2011-03-29 07:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (18.86 KB, text/plain)
2011-03-29 07:25 UTC, Erno Mononen
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***