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

NPE thrown while formatting the switch expression(JDK-12)

    XMLWordPrintableJSON

Details

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

    Description

      switch (day)

      { case MONDAY, FRIDAY, SUNDAY -> System.out.println(6);          case TUESDAY -> System.out.println(7); case THURSDAY, SATURDAY -> System.out.println(8);               case WEDNESDAY -> System.out.println(9); }

      On trying to format this switch-case code, Null pointer exception is being thrown

      Attachments

        Issue Links

          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: