orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
516 stars 53 forks source link

Java 16 support #400

Closed DanySK closed 3 years ago

DanySK commented 3 years ago

Generating Orchid websites using Java 16 throws an error at me:

[INFO] com.google.inject.internal.MessageProcessor: An exception was caught and reported. Message: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @654b5005
[INFO] com.google.inject.internal.MessageProcessor: An exception was caught and reported. Message: java.lang.NoClassDefFoundError: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper
[INFO] com.google.inject.internal.MessageProcessor: An exception was caught and reported. Message: java.lang.NoClassDefFoundError: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper
[ERROR] Orchid: Something went wrong running Orchid (com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Unable to load cache item)
WARN: The registry key 'java.correct.class.type.by.place.resolve.scope' accessed, but not loaded yet

I guess that something is going badly with some google library making illegal access to some Java module

DanySK commented 3 years ago

This is becoming a major issue for me. I cannot update a large project to Java 16 / Kotlin 1.5.x because it was documented with Orchid.

cjbrooks12 commented 3 years ago

I am currently working on this, but simply don't have a ton of free time to work on it so it's going slowly. You can read see a rough timeline for this here; I'm hoping to release a 1.0.0 version of Orchid by the end of July with updated dependencies, which should support Java 16.

DanySK commented 3 years ago

I see. Thank you Casey for your work.