Files.setLastModifiedTime doesn't work

Alan Bateman Alan.Bateman at oracle.com
Mon May 23 01:16:45 PDT 2011


Michael Hall wrote:
> I just posted on this to the nio.2 discuss list but I don't always seem to get through there. Maybe sending from a mail account other than the one I subscribed on.
>   
I checked the archives and I see you've sent mails in the past to both 
the nio-dev and nio-discuss lists. The most recent I found is with the 
same address that you are using now:

http://mail.openjdk.java.net/pipermail/nio-dev/2011-April/001314.html

> Anyhow I can't seem to get Files.setLastModifiedTime to work.
>   
Can you try changing Java_sun_nio_fs_UnixNativeDispatcher_futimes to use 
futimes rather than futimesat? I thought BSD had both but only see 
futimes on Mac OS. This issue does highlight an issue for upstream 
though in that the UnixNativeDispatcher.futimes method should fail 
rather than complete silently on platforms where the system call doesn't 
exist.

-Alan.


More information about the macosx-port-dev mailing list