mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8308899: Introduce Classfile context and improve Classfile options
8306650: Improve control of stack maps generation in Classfile API 8308646: Typo in ConstantValueAttribute Reviewed-by: mcimadamore
This commit is contained in:
parent
79c056ec8b
commit
990e3a700d
113 changed files with 1602 additions and 1190 deletions
|
@ -1590,8 +1590,8 @@ public final class Module implements AnnotatedElement {
|
|||
*/
|
||||
private Class<?> loadModuleInfoClass(InputStream in) throws IOException {
|
||||
final String MODULE_INFO = "module-info";
|
||||
byte[] bytes = Classfile.parse(in.readAllBytes(),
|
||||
Classfile.Option.constantPoolSharing(false)).transform((clb, cle) -> {
|
||||
var cc = Classfile.of(Classfile.ConstantPoolSharingOption.NEW_POOL);
|
||||
byte[] bytes = cc.transform(cc.parse(in.readAllBytes()), (clb, cle) -> {
|
||||
switch (cle) {
|
||||
case AccessFlags af -> clb.withFlags(AccessFlag.INTERFACE,
|
||||
AccessFlag.ABSTRACT, AccessFlag.SYNTHETIC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue