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

Formatting issue in 'records' (JDK-14)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • java - Editor
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: