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 133022 - Suspicious atomicLock on document in Tag.java
Summary: Suspicious atomicLock on document in Tag.java
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 16:08 UTC by Jan Lahoda
Modified: 2008-05-27 05:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2008-04-16 16:08:36 UTC
[recent sources]

In xml.text/src/org/netbeans/modules/xml/text/syntax/dom/Tag.java, there is suspicious atomicLock() - there is a lot of
code between call to atomicLock() and try {} finally {atomicUnlock();}. If an exception occurred before the try block
starts, it would mean the Document would be locked forever. The try { block should start right after atomicLock()
(unless some statement needs to be place between the atomicLock() and the try block, but that is very rare).
Comment 1 Samaresh Panda 2008-05-27 05:07:51 UTC
Fixed: http://hg.netbeans.org/main/rev/6adeeec16ac8.