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

Incorrect format and indentation of InnerClasses section

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools
    • Environment:

      8.0 b129

    • Subcomponent:
    • Resolved In Build:
      b30
    • Verification:
      Verified

      Backports

        Description

        Obtain the javap's output for any class that contains the inner class declaration
        (e.g. "-verbose"
        "public class A {
            public class B {
            }
        }")

        An output looks like:
        ................
          SourceFile: "A.java"
          InnerClasses:
               public #5= #4 of #2; //B=class A$B of class A
          minor version: 0
        ................

        1. The inner class entry has additional 3-space indent.
        2. No space after the comment symbols "//".
        3. Comment's position is not appended by current indentation

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                aeremeev Andrei Eremeev
                Reporter:
                ogb Oleg Barbashov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: