JDK-8032819 : Extra empty line between field declarations for the "-v -c" and "-v -l" combination of options
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-01-27
  • Updated: 2014-07-30
  • Resolved: 2014-01-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u20Fixed 9 b03Fixed
Description
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();
......
Comments
Ooops. Yes, I can't think of a case where it is ever reasonable to have multiple consecutive blank lines in the output.
28-01-2014