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.
double click on any full remote file, during the opening we access file system from EDT, see attached stacktrace. Accessed file (.rfs_attr) is almost always absent.
Created attachment 124804 [details] stacktrace
The calling line (DataObject.java:415) is Object o = getPrimaryFile().getAttribute(PROP_TEMPLATE); where PROP_TEMPLATE is a public constant; this is called from DataObject.isTemplate method; if true returned, file is considered to be template, otherwise not. Remote file object obviously can't be a template, since templates reside only in SystemFileSystem. I think it's worth to hardcode well-known (in fact API) constants (e.g. "java.io.File") to remote file object getAttribute/setAttribute
Created attachment 126860 [details] Here is some interesting statistics concerning FileObject attributes usage this concerns only attributes that are not filtered out by remote file system (which filters out, for example, "java.io.File" and some other attributes)
While thinking this issue over, I added some statistics concerning attributes that are not filtered out by remote file system ((which filters out, for example, "java.io.File" and some other attributes) I created a full remote Quote, opened some files, invoked context menu several times, opened some other full remote projects. Here is statistics. Attached file also contains stacks # name read-count write-count NetBeansAttrAssignedLoader 309 0 OpenIDE-Folder-Order 4 0 OpenIDE-Folder-SortMode 2 0 remote.url 255 0 template 5 6 org.netbeans.spi.project.AuxiliaryConfiguration.http://www.netbeans.org/ns/editor-bookmarks/1#editor-bookmarks 1 0 org.netbeans.spi.project.AuxiliaryConfiguration.http://www.netbeans.org/ns/editor-bookmarks/2#editor-bookmarks 1 0 org.netbeans.spi.project.AuxiliaryConfiguration.http://www.netbeans.org/ns/make-project-private/1#code-assistance-data 4 0 org.netbeans.spi.project.AuxiliaryConfiguration.http://www.netbeans.org/ns/projectui-open-files/1#open-files 3 0 The only attribute that is written is "template" and the reason is in o.n.m.cnd.source.SourceAbstractDataLoader, which first copies all attributes from template (including "template" attribute), then returns "template" attribute to false.
Integrated into 'main-golden', will be available in build *201211010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1a22abfabefe User: Vladimir Kvashin <vkvashin@netbeans.org> Log: attributes usage statistics (related with issue #218904 - Accessing file system in EDT: opening full remote file)
I do not see this happening any more