3 ms·
> an executable JAR, i.e. an application, can grant such permission in its manifest No it can't. If it would, then the change indeed wouldn't be a problem. Ora
by josephcsible 3y ago
> an executable JAR, i.e. an application, can grant such permission in its manifest
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.
- pron 3y agoThe question I answered was about --enable-native-access, not --add-opens. --add-opens indicates an actual problem in the program that has to be fixed, so of course we don't allow wildcards. You can still specify that in the manifest even without wildcards, though.