lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Created] (LUCENE-7727) Replace EOL'ed pegdown by flexmark-java for Java 9 compatibility
Date Wed, 01 Mar 2017 23:15:45 GMT
Uwe Schindler created LUCENE-7727:

             Summary: Replace EOL'ed pegdown by flexmark-java for Java 9 compatibility
                 Key: LUCENE-7727
             Project: Lucene - Core
          Issue Type: Improvement
          Components: general/build
            Reporter: Uwe Schindler

The documentation tasks use a library called "pegdown" to convert Markdown to HTML. Unfortunately,
the developer of pegdown EOLed it and points the users to a faster replacement: flexmark-java

This would not be important for us, if pegdown would work with Java 9, but it is also affected
by the usual "setAccessible into private Java APIs" issue (see my talk at FOSDEM:

The migration should not be too hard, its just a bit of Groovy Code rewriting and dependency

This is the pegdown problem:

Caused by: java.lang.RuntimeException: Could not determine whether class 'org.pegdown.Parser$$parboiled'
has already been loaded
        at org.parboiled.transform.AsmUtils.findLoadedClass(
        at org.parboiled.transform.ParserTransformer.transformParser(
        at org.parboiled.Parboiled.createParser(
        ... 50 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class
java.lang.ClassLoader.findLoadedClass(java.lang.String) accessible: module java.base does
not "opens java.lang" to unnamed module @551b6736
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(
        at java.base/java.lang.reflect.Method.checkCanSetAccessible(
        at java.base/java.lang.reflect.Method.setAccessible(
        at org.parboiled.transform.AsmUtils.findLoadedClass(
        ... 52 more

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message