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

Infinite recursion hint does not handle switch expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.6
    • None
    • None

    Description

      Using the new preview feature for JDK 17, switch expressions are incorrectly hinting at an infinite recursion.

      Using the AWS s3 API as an example where a continuation token is returned with the response to require further calls to be made, or null if it is the end the IDE hints on an infinite recursion within the return switch expression.

      No such hint is given with the traditional imperative check.

      Attachments

        1. image-2021-12-12-14-35-03-627.png
          62 kB
          Brett Ryan
        2. image-2021-12-12-14-32-45-513.png
          65 kB
          Brett Ryan

        Activity

          People

            Unassigned Unassigned
            brett.ryan Brett Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: