Bill Stackhouse wrote:
>I just posted an example this afternoon which I've included again.
Sorry. My mistake.
For some reason the example was cut off when I read your latest post in my
browser, but now the example is visible. And it's also visible in the
digest which arrived overnight.
>The result of the function is always true even if the date is not
>set. I suspect that since it works on local files and not on iDisk
>files, it has to do with the implementation of the networked file
>support and not unique to the fact it is an iDisk volume.
It may be related to the networked volume, but it's still a bug.
If the networked file-system doesn't support date-changes, then
setLastModified() should return false. Since it returns true, the date
should be changed, and lastModified() should return it. The File API docs
make this behavior quite clear.
What wouldn't necessarily be a bug would be other processes seeing the
date-change right away. I would expect a networked file system to only
flush such changes infrequently. But that's not what you're seeing.
I'd be kinda curious what kind of modified-date support there is on iDisk,
and try it using tools other than Java, such as the 'touch' command in
Terminal.
In any case, I think you have a real bug there, so please file it:
<http://developer.apple.com/bugreporter>
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden