vertx-rx icon indicating copy to clipboard operation
vertx-rx copied to clipboard

Cannot build with JDK 17 (Loom)

Open AugustNagro opened this issue 4 years ago • 2 comments

Sorry, another build problem..

[ERROR] Failed to execute goal org.bsc.maven:maven-processor-plugin:3.1.0:process (generate-doc) on project vertx-rx-java: Error executing: java.lang.IllegalAccessError: class io.vertx.docgen.BaseProcessor (in unnamed module @0xc63447a) cannot access class com.sun.tools.javac.code.Symbol$ClassSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0xc63447a -> [Help 1]

The error is because JDK 16+ make illegal access an error now. I have a temporary workaround, which is creating a file .mvn/jvm.config:

--illegal-access=permit

But we should figure out a more robust solution if we want a generator for project Loom.

AugustNagro avatar Apr 18 '21 23:04 AugustNagro

this class is only used for Java 8, so I think we could find a trick with multi release jar.

vietj avatar Apr 19 '21 06:04 vietj

can you provide a branch so I can reproduce it @AugustNagro and I would try to fix it ?

vietj avatar Apr 19 '21 07:04 vietj