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

changeset 1473
31780dd06ec7
parent 826
5cf6c432ef2f
child 1521
71f35e4b93a5
     1.1 --- a/src/share/classes/com/sun/tools/classfile/ClassWriter.java	Fri Dec 28 22:25:21 2012 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/classfile/ClassWriter.java	Sat Dec 29 17:33:17 2012 -0800
     1.3 @@ -1,6 +1,6 @@
     1.4  
     1.5  /*
     1.6 - * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7 + * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
     1.8   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.9   *
    1.10   * This code is free software; you can redistribute it and/or modify it
    1.11 @@ -479,6 +479,15 @@
    1.12              out.writeShort(entry.index);
    1.13          }
    1.14  
    1.15 +        public Void visitMethodParameters(MethodParameters_attribute attr, ClassOutputStream out) {
    1.16 +            out.writeByte(attr.method_parameter_table.length);
    1.17 +            for (MethodParameters_attribute.Entry e : attr.method_parameter_table) {
    1.18 +                out.writeShort(e.name_index);
    1.19 +                out.writeInt(e.flags);
    1.20 +            }
    1.21 +            return null;
    1.22 +        }
    1.23 +
    1.24          public Void visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, ClassOutputStream out) {
    1.25              annotationWriter.write(attr.annotations, out);
    1.26              return null;

mercurial