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 207612 - List of transient attributes is a method of file system.
Summary: List of transient attributes is a method of file system.
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.2
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2012-01-23 08:18 UTC by Alexander Simon
Modified: 2012-01-24 07:13 UTC (History)
1 user (show)

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 Alexander Simon 2012-01-23 08:18:29 UTC
Method FileUtil.copyAttributes(FileObject source, FileObject dest)
uses list of transient attributes.
Absence of access to the list makes impossible to implement coping attributes for remote file system.
Suggestion:
- list of transient attributes should be protected method of file system.
Comment 1 Jaroslav Tulach 2012-01-23 15:02:00 UTC
I am not sure why. Call to FileUtil.copyAttributes will pick these values. If you don't like what copyAttributes does, then you probably want to write your own method from scratch right?
Comment 2 Alexander Simon 2012-01-23 16:19:39 UTC
(In reply to comment #1)
> I am not sure why. Call to FileUtil.copyAttributes will pick these values. If
> you don't like what copyAttributes does, then you probably want to write your
> own method from scratch right?
Yes, RFS need to write own method, but cannot because RFS does not know full list of transient fields.
Is it possible to add RFS-specific transient attributes in FileUtil? It resolves the issue.
Comment 3 Jaroslav Tulach 2012-01-24 07:13:00 UTC
This is really not API useful for anyone else. 

Just copy the list and write a JUnit test that makes sure your list and fs list is the same. You can expose the list of FS attributes from one of the tests in openide.filesystems/test/unit/src/org.openide.filesystems package.