Hoss Man created SOLR-10355:
-------------------------------

             Summary: ref-guide "ant build-pdf" fails with jdk9 due to jigsaw 
blocking jruby
                 Key: SOLR-10355
                 URL: https://issues.apache.org/jira/browse/SOLR-10355
             Project: Solr
          Issue Type: Sub-task
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Hoss Man
            Assignee: Hoss Man


on the jira/solr-10290 branch {{ant build-pdf}} fails with jdk9...

{noformat}
build-nav-data-files:
     [java] Building up tree of all known pages
     [java] Exception in thread "main" org.jruby.exceptions.RaiseException: 
(LoadError) load error: jruby/java/java_ext/java.lang -- 
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 unnamed module @47e4d9d0
     [java]     at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
     [java]     at 
RUBY.(root)(file:/home/hossman/.ivy2/cache/org.asciidoctor/asciidoctor-ant/jars/asciidoctor-ant-1.5.3.jar!/jruby/java/java_ext.rb:3)
     [java]     at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
...
     [java]     at org.jruby.Ruby.init(Ruby.java:1258)
     [java]     at org.jruby.Ruby.newInstance(Ruby.java:334)
     [java]     at 
org.jruby.javasupport.JavaEmbedUtils.initialize(JavaEmbedUtils.java:94)
     [java]     at 
org.asciidoctor.internal.JRubyAsciidoctor.createJRubyAsciidoctorInstance(JRubyAsciidoctor.java:126)
     [java]     at 
org.asciidoctor.internal.JRubyAsciidoctor.create(JRubyAsciidoctor.java:57)
     [java]     at 
org.asciidoctor.Asciidoctor$Factory.create(Asciidoctor.java:668)
     [java]     at BuildNavAndPDFBody.main(BuildNavAndPDFBody.java:33)
{noformat}

...it's possible that this is already fixed in current versions of jruby, but 
not in the version shadded by the asciidoctor-ant-1.5.3.jar we are using



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to