If the mandated status of a class/member was to be reified in the class
file, then you would need Core Reflection and Language Model APIs to
expose that status, along the lines of isSynthetic.
Alex
On 8/10/2020 8:26 PM, Tagir Valeev wrote:
Thank you, Alex!
I created an issue to track this:
https://bugs.openjdk.java.net/browse/JDK-8251375
I'm not sure about the component. I set 'javac', though it also
touches JLS and JVMS; hopefully, no actual changes in HotSpot are
necessary as HotSpot can happily ignore this flag.
I tried to formulate proposed changes in JLS and JVMS right in the
issue. For now, I omit fields from the discussion because supporting
fields isn't critical for my applications.
But it's also ok to extend this to fields.
What else can I do to move this forward?
With best regards,
Tagir Valeev.