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.
I am tracking a bug where a directory to be renamed contains a checkedin file. During the investigation I found out that when PackageHandler asks the user to change the pkg stmts and then JavaDataObject.udpateSource actually changing the pkg stmt, it does not take lock before edititng the FileObject. Lock is taken somewhere along the way, but looks like it is taken after the pkg stmt updating step is over. The reason for that is : User is asked if user wants to checkout the file. (yes/no) When user selects yes, the file is checkedout (made writable) but the pkg stmt is not updated.
Please see attached stacktrace. I think that the lock is taken before updating package statement. Stacktrace is from current dev build.
Created attachment 2274 [details] stacktrace
no responce - closing.
no response - closing.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.
reopen to fix status and resolution
fix status and resolution