Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Jruby 9.2.7 with Java 11 "NoMethodError: undefined method `separator' for Java::JavaIo::File:Class" #5737
jruby 126.96.36.199 (2.5.3) 2019-04-09 8a269e3 OpenJDK 64-Bit Server VM 11+28 on 11+28 +jit
From a command prompt the following command under Java 8 returns the system file separator character:
jruby -e "separator = java.io.File.separator; puts separator.to_s"
From a command prompt under Java 11:
@kares That was my first thought as well...but that syntax, with a lower-case
@twkatadin This behavior should work again in 188.8.131.52. For now you should be able to access these constants using the following code:
I will close this as a dup of #5730.