Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8032819

Extra empty line between field declarations for the "-v -c" and "-v -l" combination of options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • tools
    • 8.0 b126

    • b03
    • Verified

        Compile a simple class with two ore more fields, e.g.
        public class SimpleClass {
            public int a;
            public int b;
        }
        Get the javap's output for the "-v -c" (or "-v -l") set of option. The "field" sections are separated by two empty lines:
        ......
          public int a;
            descriptor: I
            flags: ACC_PUBLIC


          public int b;
            descriptor: I
            flags: ACC_PUBLIC


          public SimpleClass();
        ......

              jjg Jonathan Gibbons
              ogb Oleg Barbashov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: