[infinispan-issues] [JBoss JIRA] (ISPN-9824) Unable to build Infinispan with JDK 11

Rostislav Svoboda (Jira) issues at jboss.org
Thu Dec 20 06:39:05 EST 2018


    [ https://issues.jboss.org/browse/ISPN-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676661#comment-13676661 ] 

Rostislav Svoboda commented on ISPN-9824:
-----------------------------------------

When playing with javadoc/doclets module I get 36 errors.

When I did following changes I got 2 errors saying the same - package com.sun.tools.doclets.formats.html does not exist.
This package was present in Java 9 but was not exported, in Java 10 or 11 it vanished completely.
This is probably due to http://openjdk.java.net/jeps/221

Having custom doclets seems like a big maintenance burden.

Applied changes:
{code:diff}
@@ -4957,10 +4957,13 @@
                <plugin>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <configuration>
-                     <compilerArgument combine.children="append">-XDignore.symbol.file</compilerArgument>
+                     <compilerArgs combine.children="append">
+                        <arg>-XDignore.symbol.file</arg>
+                        <arg>--add-modules=jdk.javadoc</arg>
+                     </compilerArgs>
                      <!-- Forking is necessary to allow for the compiler args to be picked up. -->
                      <fork combine.children="append">true</fork>
-                     <release>8</release>
+                     <release>9</release>
                      <!-- Include a skeleton implementation of some classes removed in JDK10+ -->
                      <additionalClasspathElements>
                         <additionalClasspathElement>${project.build.directory}/jdk-misc.jar</additionalClasspathElement>
{code}

> Unable to build Infinispan with JDK 11
> --------------------------------------
>
>                 Key: ISPN-9824
>                 URL: https://issues.jboss.org/browse/ISPN-9824
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 9.4.3.Final
>            Reporter: Vladimir Dosoudil
>            Priority: Major
>
> It's not able to build Infinispan with JDK 11.
> Module infinispan-commons contains JDK specific classes which requires to be built in JDK 9+ (JDK 11 is LTS) but it's not able to build the whole Infinispan project with distribution profile related to fails on missing classes for infinispan-doclets module (referencing com.sun.javadoc*) using tools.jar which are not the part of JDK 9+ anymore. The failure is also on generating javadoc for infinispan-commons which uses sun.reflect.Reflection.getCallerClass which is discontinuing in JDK 11.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list