RFR: JDK-8266670: Better modeling of access flags in core reflection [v20]
    Joe Darcy 
    darcy at openjdk.java.net
       
    Fri May 27 03:08:39 UTC 2022
    
    
  
On Wed, 25 May 2022 19:22:51 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> AccessFlags.SUPER can/should be removed; it is unused and will be redefined in the [Value Objects JEP](https://openjdk.java.net/jeps/8277163). It will be a cleaner transition if there is no opportunity to create a dependency on the obsolete flag.
Hmm. I don't agree with that conclusion. I see the role of AccessFlags is to model what is in the class file. ACC_SUPER has been documented and in multiple versions of the JVMS and has appeared set in class files. If the bit position is reused, that is fine and the API can accommodate that overlap, unlike a bit-flag based model.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7445
    
    
More information about the core-libs-dev
mailing list