> Many constants are cluttered in `ClassFile`. However, only a few of them are > ever used by regular users, most notably `ACC_` flags and `JAVA_X_VERSION` > constants. All other constants are specific and should live in more local > locations, such as getters that return these constants. > > This simplification of `ClassFile` constants improves user onramp to the > Class-File API. > > Notably, before, if `ClassFile` is static imported, `Opcode` enums must be > qualified due to name clashes; this relocation allows `Opcode` enums to be > static imported with `ACC_` flags, improving class file writing user > experience.
Chen Liang has updated the pull request incrementally with one additional commit since the last revision: AbstractPoolEntry is broken too ------------- Changes: - all: https://git.openjdk.org/jdk/pull/20773/files - new: https://git.openjdk.org/jdk/pull/20773/files/48082c76..1895449b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=20773&range=08 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20773&range=07-08 Stats: 12 lines in 1 file changed: 5 ins; 5 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/20773.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20773/head:pull/20773 PR: https://git.openjdk.org/jdk/pull/20773