what is an illegal reflective access

前端 未结 4 1613
南笙
南笙 2020-11-22 15:17

There are a lot of questions around about illegal reflective access in Java 9.

Now what I can\'t find because all Google spews up is people trying to work around the

4条回答
  •  自闭症患者
    2020-11-22 15:49

    If you want to go with the add-open option, here's a command to find which module provides which package ->

    java --list-modules | tr @ " " | awk '{ print $1 }' | xargs -n1 java -d

    the name of the module will be shown with the @ while the name of the packages without it

    NOTE: tested with JDK 11

    IMPORTANT: obviously is better than the provider of the package does not do the illegal access

提交回复
热议问题