hawkbit icon indicating copy to clipboard operation
hawkbit copied to clipboard

hawkBit::REST:Documentation: fix build with openjdk 17

Open martinetd opened this issue 3 years ago • 3 comments

hawkBit no longer built after upgrading the jvm from openjdk 11 to 17: [ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc (generate-docs) on project hawkbit-rest-docs: Execution generate-docs of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc failed: (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 @fefbafd -> [Help 1]

Explicitely adding the jruby dependency to the asciidoctor plugin seems to make this work, and does not break compilation with older jdk

martinetd avatar Jun 14 '22 02:06 martinetd

Can one of the admins verify this patch?

hawkbit-bot avatar Jun 14 '22 02:06 hawkbit-bot

I'll update the commit with my sign-off once I've obtained permission from my employer to sign the ECA, as it apparently involves them as well.

martinetd avatar Jun 14 '22 02:06 martinetd

Hmm, I just signed the ECA but the revalidation page doesn't seem to agree. I'll try a bit later assuming it might take time to propagate. Commit message was adjusted to add sign-off line.

EDIT: ECA worked revalidating 1h later

martinetd avatar Jun 14 '22 02:06 martinetd