Closed mtchavez closed 4 years ago
Can't tell if this change affects jruby or not by the travis output. Appears to be a build environment concern:
LoadError: library `java' could not be loaded: java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to module jruby
1.32s$ gem install bundler -v '< 2'
WARNING: Unknown module: org.jruby.dist specified to --add-opens
WARNING: Unknown module: org.jruby.dist specified to --add-opens
WARNING: Unknown module: org.jruby.dist specified to --add-opens
unsupported Java version "11", defaulting to 1.7
LoadError: library `java' could not be loaded: java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to module jruby
The command "gem install bundler -v '< 2'" failed and exited with 1 during .
Your build has been stopped.
Based on this stackoverflow post, the changes you are proposing won't work https://stackoverflow.com/questions/39346334/manage-gem-dependencies-based-on-ruby-version
We can try making the change without any version restrictions and seeing if everything still works as normal.
Updated the code to have thwait
as a runtime dependency. Also, I had to add e2mmap
as a runtime dependency since it no longer gets bundled with ruby >= 2.7
. JRuby on TravisCI still fails, still appears to be a build environment or setup issue that isn't quite related. Let me know if there is something else needed to get it merged in. Thanks
Removed thwait require, tests pass without it.
What
Check for ruby version to see if it is one that no longer includes
thwait
in the stlib. Install the gem ofthwait
if it is not in the ruby version. This is needed because ruby 2.7 has removedthwait
from the standard library and is now installed via a gem.Changes
thwait
fixes #115