< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/classfile/ClassWriter.java

Print this page

        

*** 640,649 **** --- 640,657 ---- } return null; } @Override + public Void visitRecord(Record_attribute attr, ClassOutputStream out) { + out.writeShort(attr.num_params); + for (int e: attr.accessors) + out.writeShort(e); + return null; + } + + @Override public Void visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, ClassOutputStream out) { annotationWriter.write(attr.annotations, out); return null; }
*** 680,689 **** --- 688,707 ---- annotationWriter.write(attr.annotations, out); return null; } @Override + public Void visitPermittedSubtypes(PermittedSubtypes_attribute attr, ClassOutputStream out) { + int n = attr.subtypes.length; + out.writeShort(n); + for (int i = 0 ; i < n ; i++) { + out.writeShort(attr.subtypes[i]); + } + return null; + } + + @Override public Void visitSignature(Signature_attribute attr, ClassOutputStream out) { out.writeShort(attr.signature_index); return null; }
< prev index next >