Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-626

Avoid Java reflection API to access other modules for Java 16

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.0
    • None
    • None
    • None

      User Story


      As an application developer, I want to run keikai on Java 16.

      Acceptance Criteria

      Don't cause " Illegal reflective access " warning.

      Details

      • Currently, there is a reflect call:
        1. add JVM option
        --illegal-access=warn
        2. Export a book to xlsx

      WARNING: Illegal reflective access by org.zkoss.poi.util.SAXHelper (file:/Users/hawk/.m2/repository/io/keikai/keikai-poi/5.10.0/keikai-poi-5.10.0.jar) to method com.sun.org.apache.xerces.internal.util.SecurityManager.setEntityExpansionLimit(int)

      • In Java 16, the –illegal-access=deny becomes the default mode. Since Java 17, the –illegal-access option is entirely removed.

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: