[foreign-memaccess+abi] RFR: 8310659: The jar tool should support allowing access to restricted methods from executable jars
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Jun 27 00:23:22 UTC 2023
On Mon, 26 Jun 2023 16:44:01 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Question: right now I've implemented this to check if the attribute value is exactly `true`, otherwise it is ignored. Should we only allow `true` or `false`, and throw an error on other values?
This document:
https://docs.oracle.com/en/java/javase/20/docs/specs/jar/jar.html
Seems to point out to other attributes that can be boolean. For each it says that "true" and "false" are the possible values (which makes me think other values aren't possible), and that the case doesn't matter.
Perhaps we should just follow what the code for parsing these boolean standard attributes (`Java-Bean` and `sealed`) does.
-------------
PR Comment: https://git.openjdk.org/panama-foreign/pull/843#issuecomment-1608518869
More information about the panama-dev
mailing list