< prev index next >

src/java.base/share/classes/jdk/internal/classfile/impl/ClassRemapperImpl.java

Print this page
*** 55,10 ***
--- 55,11 ---
  import jdk.internal.classfile.attribute.ModuleAttribute;
  import jdk.internal.classfile.attribute.ModuleProvideInfo;
  import jdk.internal.classfile.attribute.NestHostAttribute;
  import jdk.internal.classfile.attribute.NestMembersAttribute;
  import jdk.internal.classfile.attribute.PermittedSubclassesAttribute;
+ import jdk.internal.classfile.attribute.PreloadAttribute;
  import jdk.internal.classfile.attribute.RecordAttribute;
  import jdk.internal.classfile.attribute.RecordComponentInfo;
  import jdk.internal.classfile.attribute.RuntimeInvisibleAnnotationsAttribute;
  import jdk.internal.classfile.attribute.RuntimeInvisibleParameterAnnotationsAttribute;
  import jdk.internal.classfile.attribute.RuntimeInvisibleTypeAnnotationsAttribute;

*** 140,10 ***
--- 141,14 ---
                          .map(nm -> map(nm.asSymbol())).toList()));
              case PermittedSubclassesAttribute psa ->
                  clb.with(PermittedSubclassesAttribute.ofSymbols(
                          psa.permittedSubclasses().stream().map(ps ->
                                  map(ps.asSymbol())).toList()));
+             case PreloadAttribute pa ->
+                 clb.with(PreloadAttribute.ofSymbols(
+                         pa.preloads().stream().map(pc ->
+                                 map(pc.asSymbol())).toList()));
              case RuntimeVisibleAnnotationsAttribute aa ->
                  clb.with(RuntimeVisibleAnnotationsAttribute.of(
                          mapAnnotations(aa.annotations())));
              case RuntimeInvisibleAnnotationsAttribute aa ->
                  clb.with(RuntimeInvisibleAnnotationsAttribute.of(
< prev index next >