Developers should understand if a dependency use C bindings. But why bother end users with a command line flag.
Perhaps there is a manifest entry/flag so the command line flag is not required ?
Perhaps there is a manifest entry/flag so the command line flag is not required ?
2. The last word is given to the application, and the point is that libraries must not make decisions that have a global impact on behalf of the application. That's why an executable JAR, i.e. an application, can grant such permission in its manifest but library JARs cannot.
See more here: https://openjdk.org/jeps/8305968, https://openjdk.org/jeps/8307341
No it can't. If it would, then the change indeed wouldn't be a problem. Oracle has removed --illegal-access=permit completely, and --add-opens doesn't let you specify wildcards.