-
-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dir.home
is no longer compatible with CRuby after JRuby 9.3
#7735
Milestone
Comments
Dir.home
is no longer compatible with CRuby after JRuby 9.2Dir.home
is no longer compatible with CRuby after JRuby 9.3
This changes impact codes such as below. |
3 tasks
Reproduced. It seems like we check for a null/nil home dir for the zero-argument form but not for the one-argument form. jruby/core/src/main/java/org/jruby/RubyDir.java Lines 1153 to 1170 in 071b178
|
Introduced by me in a950772. Fix coming. |
headius
added a commit
to headius/jruby
that referenced
this issue
Mar 29, 2023
headius
added a commit
to headius/jruby
that referenced
this issue
Mar 29, 2023
eregon
pushed a commit
to ruby/spec
that referenced
this issue
Apr 25, 2023
seven1m
pushed a commit
to seven1m/ruby_spec
that referenced
this issue
Sep 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment Information
JRuby version:
jruby 9.4.2.0 (3.1.0) 2023-03-08 90d2913 OpenJDK 64-Bit Server VM 25.362-b09 on 1.8.0_362-b09 +jit [x86_64-linux]
Operating system and platform:
Linux 96d20f512b68 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
I use docker images
jruby:9.4
andjruby:9.3
Expected Behavior
Dir.home
with nil returns home directory of current user.I expect JRuby to be the same behavior.
https://ruby-doc.org/3.2.1/Dir.html#method-c-home
Actual Behavior
After JRuby 9.3, Dir.home returns an error if user is nil.
The text was updated successfully, but these errors were encountered: