-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adds incorrect --add-opens with JRuby 9.1 #28
Comments
Ah yes, I suspected this was the cause. We will need to tweak the gem to not add those flags under versions that do not have the module information. May I ask why you can't update to 9.2.9? |
We also build on latest JRuby 9.2, but officially support 9.1 as well. This test build only built on 9.1 to avoid running extra builds on Travis while debugging the failure. |
Ok thank you. I'll see about getting the launcher fixed and released this week. |
Just clarifying for anyone following this issue: these are indeed just warnings, and they normally don't interfere with JRuby operation (though they are indeed rather annoying). |
Reproduced with JRuby 9.1.17.0 and latest jruby-launcher:
|
@headius …unfortunately for me, this breaks some tests for diff-lcs which check logging. See https://travis-ci.org/halostatue/diff-lcs/jobs/633999940 for an example. Is there a way to turn this warning off in Travis, as an example? |
@halostatue Unfortunately not. The OpenJDK folks did not provide a way to completely disable the warning. It will always show at least once without proper |
@halostatue Are you running a current JRuby or JRuby 9.1.x? This issue only affects 9.1.x, and 9.2 should work fine with the bash script it ships. |
I’m not actually running JRuby; I’m running JRuby on Travis for validation of diff-lcs. The test in question fails because I’m not expecting any output in stderr. It only fails on 9.1.x, and I don’t really want to mark 9.1.x as “allowed to fail” in Travis or write some conditional code in the test for JRuby 9.1. |
JRuby 9.1 is basically EOL at this point. You'd be fine excluding it. |
I see your failures...hmmm. I will see if I can get a new version of the launcher out that at least does not supply these values on JRuby 9.1. |
If JRuby 9.1 is actually EOL, I have no problem soft-deprecating it (removing it from Travis or allowing failures). |
This should have been fixed as of the 1.1.13 release, which does not add module flags at all for JRuby versions 9.2.0.0 or earlier. |
Version 1.1.10 of this gem includes code to add
--add-opens
options. However, the module specified,org.jruby.dist
, does not exist in JRuby 9.1, causing warnings to be emitted.This seems to be the cause of build failures that I'm seeing on Travis CI.
The text was updated successfully, but these errors were encountered: