Skip to content

Commit

Permalink
Also add notImplemented flag to anno
Browse files Browse the repository at this point in the history
CRuby uses its rb_f_notimplement marker when defining Dir.chroot
in an environment that does not support it. This is equivalent.
  • Loading branch information
headius committed Nov 3, 2023
1 parent b3b4fb5 commit 3b72d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyDir.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public static IRubyObject chdir(ThreadContext context, IRubyObject recv, IRubyOb
/**
* Changes the root directory (only allowed by super user). Not available on all platforms.
*/
@JRubyMethod(name = "chroot", required = 1, meta = true)
@JRubyMethod(name = "chroot", required = 1, meta = true, notImplemented = true)
public static IRubyObject chroot(IRubyObject recv, IRubyObject path) {
throw recv.getRuntime().newNotImplementedError("chroot not implemented: chroot is non-portable and is not supported.");
}
Expand Down

0 comments on commit 3b72d52

Please sign in to comment.