-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Looks like the File#absolute_path? implementation added in 42a2ab9 causes issues:
jruby/core/src/main/java/org/jruby/RubyFile.java
Lines 928 to 934 in 98c9d13
| @JRubyMethod(name = "absolute_path?", required = 1, meta = true) | |
| public static IRubyObject absolute_path_p(ThreadContext context, IRubyObject recv, IRubyObject arg) { | |
| RubyString file = get_path(context, arg); | |
| // asJavaString should be ok here since windows drive shares will be charset representable and otherwise we look for "/" at front. | |
| return context.runtime.newBoolean(isAbsolutePath(file.asJavaString())); | |
| } |
I'm cross-posting this from asciidoctor/asciidoctor-pdf#2383 to raise awareness that some (valid?) assumptions of asciidoctor-pdf about how File#absolute_path? relates to Pathname#absolute? do not seem to hold anymore as of JRuby 9.4.x.x, and seem to not be in line with CRuby, see asciidoctor/asciidoctor-pdf#2383 (comment) and following.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels