[
https://issues.apache.org/jira/browse/HBASE-22535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16855830#comment-16855830
]
Sean Busbey commented on HBASE-22535:
-------------------------------------
I can reproduce this locally with:
{quote}
mvn -version
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was
removed in 8.0
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
2018-10-24T13:41:47-05:00)
Maven home: /usr/local/Cellar/maven/3.6.0/libexec
Java version: 11.0.2, vendor: Oracle Corporation, runtime:
/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
{quote}
Looking at the code I'm not sure why this even works on JDK8. It must be that
however JRuby uses reflection bypasses the access modifier on the class.
> TestShellRSGroups fails when run on JDK11
> -----------------------------------------
>
> Key: HBASE-22535
> URL: https://issues.apache.org/jira/browse/HBASE-22535
> Project: HBase
> Issue Type: Bug
> Reporter: Sakthi
> Assignee: Sakthi
> Priority: Minor
> Attachments: hbase-22535.master.001.patch
>
>
> When built on Java 8 and unit tests are run on Java 11, TestShellRSGroups
> fails. A sample stacktrace:
> {code}
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.293 s <<<
> FAILURE! - in org.apache.hadoop.hbase.client.rsgroup.TestShellRSGroups
> testRunShellTests(org.apache.hadoop.hbase.client.rsgroup.TestShellRSGroups)
> Time elapsed: 2.879 s <<< ERROR!
> org.jruby.embed.EvalFailedException: (RuntimeError) Shell unit tests failed.
> Check output file for details.
> at
> org.apache.hadoop.hbase.client.rsgroup.TestShellRSGroups.testRunShellTests(TestShellRSGroups.java:102)
> Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Shell unit
> tests failed. Check output file for details.
> Error:
> ^[[48;5;16;38;5;226;1mtest_Test_bogus_arguments(Hbase::RSGroupShellTest)^[[0m:
> TypeError: illegal access on constructor for type 'RSGroupAdminClient':
> class org.jruby.javasupport.JavaConstructor cannot access a member of class
> org.apache.hadoop.hbase.rsgroup.RSGroupAdminClient with modifiers "public"
> /Users/jatsakthi/dev/hbase/hbase-shell/src/test/ruby/shell/rsgroup_shell_test.rb:30:in
> `setup'
> org/jruby/RubyArray.java:1735:in `each'{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)