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

jshell tool: blank lines removed from multiline snippets

XMLWordPrintable

    • b154
    • Verified

        jshell> class C {
           ...>
           ...> // C1
           ...> // C2
           ...> /**
           ...> * C3
           ...> */
           ...> // C4
           ...> /* C5 */
           ...> int x;
           ...>
           ...> }
        | created class C

        jshell> /li

           1 : class C {
                 // C1
                 // C2
                 /**
                  * C3
                  */
                 // C4
                 /* C5 */
                 int x;
               }

              rfield Robert Field (Inactive)
              rfield Robert Field (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: