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.
Projects branch: This deadlock happened to me on Windows 2000 in JDK 1.4.0_01-b03 on my private build of sources checked out on Oct 17. 1. In the sample project, I expanded the sources node. 2. Under examples, I created a new Java file from the Empty template. 3. The deadlock in the attachment occurred.
Created attachment 7732 [details] The thread dump with the deadlock
It seems that deadlock occured between DecoratorSelector and CompositeLook. CompositeLook uses DO.getNodeDelegate to get annotated name of the FileObject defining its contents, this name is then used as a displayName of CompositeLook. Using DO.getNodeDelegate is overkill, moreover it takes o.o.util.Mutex lock. I am going to attach patch for it, please review and commit.
Created attachment 7733 [details] patch for CompositeLook.java
Could you Petre take a look at the attached patch ? All in all, this is P1.
Well, the patch looks ok to me, however I don't feel I am the right person to ask. I don't understand looks. For example, I don't know at all what the getDisplayName() method is for. So I suggest someone else also looks at the fix.
Looks like someone alredy applyied the patch, thus marking as fixed. (Thanks Vita)
Verified.