Skip to content

File.utime failing with JRuby 9.1.16.0 #5075

@bastien

Description

@bastien

Environment

  • JRuby 9.1.16.0 (2.3.3) 2018-02-21
  • Java version "1.8.0_161"
  • Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64

Expected Behavior

With jruby-9.1.15.0

irb > File.utime(Time.at(1420099200), Time.at(1420099200), "foo.txt")
=> 1

Actual Behavior

With jruby-9.1.16.0

irb > File.utime(Time.at(1420099200), Time.at(1420099200), "foo.txt")
NotImplementedError: utimensat unsupported or native support failed to load; see http://wiki.jruby.org/Native-Libraries
	from org/jruby/RubyFile.java:1162:in `utime'
	from (irb):2:in `<eval>'
	from org/jruby/RubyKernel.java:995:in `eval'
	from org/jruby/RubyKernel.java:1316:in `loop'
	from org/jruby/RubyKernel.java:1138:in `catch'
	from org/jruby/RubyKernel.java:1138:in `catch'
	from /Users/bvaucher/.rbenv/versions/jruby-9.1.16.0/bin/irb:13:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions