< prev index next >

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

Print this page

        

@@ -640,10 +640,26 @@
             }
             return null;
         }
 
         @Override
+        public Void visitRecord(Record_attribute attr, ClassOutputStream out) {
+            out.writeShort(attr.num_params);
+            for (Record_attribute.Param_data e: attr.params)
+                writeParamData(e, out);
+            new AttributeWriter().write(attr.attributes, out);
+            return null;
+        }
+
+        protected void writeParamData(Record_attribute.Param_data pd, ClassOutputStream out) {
+            out.writeShort(pd.param_name_index);
+            out.writeShort(pd.param_flags);
+            out.writeShort(pd.param_descriptor);
+            out.writeShort(pd.param_signature);
+        }
+
+        @Override
         public Void visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, ClassOutputStream out) {
             annotationWriter.write(attr.annotations, out);
             return null;
         }
 
< prev index next >