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 46561 - Deadlock after removing classpath entry
Summary: Deadlock after removing classpath entry
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 46158 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-26 13:41 UTC by Milan Kubec
Modified: 2006-03-24 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (88.81 KB, text/plain)
2004-07-26 13:41 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-07-26 13:41:08 UTC
[dev-20040722, JDK 1.5.0 b58]

I have removed classpath entries (jars, project,
library) from dummy project in Properties dialog
and clicked OK - I got deadlock.
Comment 1 Milan Kubec 2004-07-26 13:41:35 UTC
Created attachment 16444 [details]
thread dump
Comment 2 Jan Pokorsky 2004-07-30 17:12:52 UTC
Tome, it relates to your changes.

1. you call query under the lock (see JavadocRegistry.getDocRoots)
2. it is strange that
org.netbeans.spi.project.support.ant.ProjectProperties$PP.fireChange
fires change events under Mutex.writeAccess (see the awt event queue)
Comment 3 Tomas Zezula 2004-08-02 09:36:42 UTC
My mistake in JavadocRegistry.getDocRoots(). :-(
Comment 4 Tomas Zezula 2004-08-02 15:15:27 UTC
Checking in src/org/netbeans/modules/javadoc/search/JavadocRegistry.java;
/cvs/javadoc/src/org/netbeans/modules/javadoc/search/JavadocRegistry.java,v
 <--  JavadocRegistry.java
new revision: 1.9; previous revision: 1.8
done
Comment 5 Jan Pokorsky 2004-08-09 11:49:56 UTC
*** Issue 46158 has been marked as a duplicate of this issue. ***
Comment 6 Milan Kubec 2004-08-20 10:30:08 UTC
Verified in custom 20040820.