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

Syntax highlighting issue in switch expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Next
    • None

    Description

      enum Days

      { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; }

      public static void main(String[] args) {
      Days day = Days.SUNDAY;
      int j = switch (day)

      { case *MONDAY*, SUNDAY-> 6; default -> 0; }

      };

      The enum element 'SUNDAY' should be highlighted.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: