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 57791

Summary: Deadlock in APH
Product: projects Reporter: Jesse Glick <jglick>
Component: Ant ProjectAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker CC: jkovalsky
Priority: P2 Keywords: THREAD
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 50198    

Description Jesse Glick 2005-04-12 20:36:24 UTC
Seems the fix of issue #50198 can cause deadlocks at least sometimes. Calling
FileLock.releaseLock() notifies listeners, so it should not be done while
holding a monitor.
Comment 1 Jesse Glick 2005-04-12 20:36:53 UTC
See details in issue #57480.
Comment 2 Jesse Glick 2005-04-12 22:17:14 UTC
Have patch; cannot reproduce deadlock with it applied, at least.
Comment 3 Jesse Glick 2005-04-13 00:23:52 UTC
Fixed w/ issue #57794:

committed   * Up-To-Date  1.29       
ant/project/src/org/netbeans/spi/project/support/ant/AntProjectHelper.java
committed   * Up-To-Date  1.12       
ant/project/src/org/netbeans/spi/project/support/ant/ProjectProperties.java
Comment 4 Jesse Glick 2005-04-13 00:31:42 UTC
Will need QA assistance.
Comment 6 Jiri Kovalsky 2005-04-13 12:58:55 UTC
I have tried hard but couldn't reproduce the deadlock in continuous trunk build
#20050413-0713 of NetBeans 4.2. I agree with integration to release41 branch.
Comment 7 Jesse Glick 2005-04-15 19:43:28 UTC
Incl. issue #57794:

committed   * Up-To-Date  1.27.14.2  
ant/project/src/org/netbeans/spi/project/support/ant/AntProjectHelper.java
committed   * Up-To-Date  1.11.22.1  
ant/project/src/org/netbeans/spi/project/support/ant/ProjectProperties.java
Comment 8 Jiri Kovalsky 2005-04-18 13:31:56 UTC
Verified in RC1 candidate build #200504171930 of NetBeans 4.1.