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.
The SharabilityQuery and FileBuiltQuery reside in the same package, but seem to have completely different threading policies as the SharabilityQuery can be called from private locks in filesystem during for example createFolder operation. This requre the implementators to be very careful. On the other hand the FileBuiltQuery is not going to be called from such obscure places and that is why it does not need so much attention from implementators. It is not wise to have them both in the same package even, if correctly documented, it might not form big problem. Still it might be better to move the Sharability to org.openide.filesystems as it seems to share the same threading characteristics as MimeResolver for example.
Will definitely consider moving SQ to org.openide.filesystems.
I have added Javadoc to CQI, SQI, and VQI explaining that implementors should be written defensively and not acquire locks, referring to the Filesystems API.
Committed.