Skip to content
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

Closed
mvz opened this issue Dec 7, 2019 · 13 comments
Closed

Adds incorrect --add-opens with JRuby 9.1 #28

mvz opened this issue Dec 7, 2019 · 13 comments
Assignees

Comments

@mvz
Copy link

mvz commented Dec 7, 2019

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.

@headius
Copy link
Member

headius commented Dec 7, 2019

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?

@mvz
Copy link
Author

mvz commented Dec 7, 2019

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.

@headius headius self-assigned this Dec 7, 2019
@headius
Copy link
Member

headius commented Dec 10, 2019

Ok thank you. I'll see about getting the launcher fixed and released this week.

@headius
Copy link
Member

headius commented Dec 10, 2019

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).

@headius
Copy link
Member

headius commented Dec 10, 2019

Reproduced with JRuby 9.1.17.0 and latest jruby-launcher:

$ jruby -v -e 1
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
jruby 9.1.17.0 (2.3.3) 2018-04-20 d8b1ff9 OpenJDK 64-Bit Server VM 11.0.4+11 on 11.0.4+11 +jit [darwin-x86_64]

@halostatue
Copy link

@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?

@headius
Copy link
Member

headius commented Jan 10, 2020

@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 add-opens flags.

@headius
Copy link
Member

headius commented Jan 10, 2020

@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.

@halostatue
Copy link

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.

@headius
Copy link
Member

headius commented Jan 10, 2020

JRuby 9.1 is basically EOL at this point. You'd be fine excluding it.

@headius
Copy link
Member

headius commented Jan 10, 2020

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.

@halostatue
Copy link

If JRuby 9.1 is actually EOL, I have no problem soft-deprecating it (removing it from Travis or allowing failures).

@headius
Copy link
Member

headius commented Mar 20, 2020

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.

@headius headius closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants