Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3624

Formatting issue in 'records' (JDK-14)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: java - Editor
    • Labels:
    • Environment:

      OpenJDK Runtime Environment 14-ea+27-1339

      Description

      Incorrect formatting for the new feature 'record' on pressing ALT-SHIFT-F

      Steps :

      Type the below code on editor & Press ALT-SHIFT-F :

      record Test2(long i, int j) {
      public void m()

      { System.out.println(); }


      }
       

      Actual Result :

      record

      Test2(long i
      , int j

      ) {
      public void m()

      { System.out.println(); }

      }

       

      Expected Result :

      record Test2(long i, int j) {
           public void m()

      {      System.out.println();      }


      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              singh-akhilesh Akhilesh Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: