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

Fomatting Issue in Yield Statement of Switch Expression(JDK-13)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.2
    • 11.2
    • java - Editor
    • None

    Description

      In JDK-13 break with-a -value will be replaced with yield statement.

      Currently formatting of yield statement is not supported in NB

      int result = switch (s) {

      {{ case "Foo": yield 1;}}

      {{ case "Bar": yield 2; }}

      {{default:  yield 0; }}

      };

      Attachments

        Issue Links

          Activity

            People

              arunava.sinha ARUNAVA SINHA
              arunava.sinha ARUNAVA SINHA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: