Brett Ryan created NETBEANS-6287:
------------------------------------
Summary: Infinite recursion hint does not handle switch expressions
Key: NETBEANS-6287
URL: https://issues.apache.org/jira/browse/NETBEANS-6287
Project: NetBeans
Issue Type: Improvement
Components: editor - Hints & Annotations
Affects Versions: 12.6
Environment: *Product Version:* Apache NetBeans IDE 12.6
*Java:* 17.0.1; Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39
*Runtime:* Java(TM) SE Runtime Environment 17.0.1+12-LTS-39
*System:* Mac OS X version 11.6.1 running on x86_64; UTF-8; en_AU (nb)
*User directory:* /Users/brettryan/Library/Application Support/NetBeans/12.6
*Cache directory:* /Users/brettryan/Library/Caches/NetBeans/12.6
Reporter: Brett Ryan
Attachments: image-2021-12-12-14-32-45-513.png,
image-2021-12-12-14-35-03-627.png
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.
!image-2021-12-12-14-32-45-513.png!
No such hint is given with the traditional imperative check.
!image-2021-12-12-14-35-03-627.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists