< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/javap/AttributeWriter.java

Print this page
*** 34,10 ***
--- 34,13 ---
  import jdk.internal.classfile.constantpool.*;
  import jdk.internal.classfile.attribute.*;
  import static jdk.internal.classfile.Classfile.*;
  import static jdk.internal.classfile.attribute.StackMapFrameInfo.*;
  
+ import com.sun.tools.javac.util.Assert;
+ import com.sun.tools.javac.util.StringUtils;
+ 
  /*
   *  A writer for writing Attributes as text.
   *
   *  <p><b>This is NOT part of any supported API.
   *  If you write code that depends on this, you do so at your own risk.

*** 522,10 ***
--- 525,18 ---
                  for (var sc : attr.permittedSubclasses()) {
                      println(constantWriter.stringValue(sc));
                  }
                  indent(-1);
              }
+             case PreloadAttribute attr -> {
+                 println("Preload:");
+                 indent(+1);
+                 for (var sc : attr.preloads()) {
+                     println(constantWriter.stringValue(sc));
+                 }
+                 indent(-1);
+             }
              case SignatureAttribute attr -> {
                  print("Signature: #" + attr.signature().index());
                  tab();
                  println("// " + attr.signature().stringValue());
              }
< prev index next >