[
https://issues.apache.org/jira/browse/NETBEANS-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
vikas kumar prabhakar resolved NETBEANS-759.
--------------------------------------------
Resolution: Fixed
Fix Version/s: Next
Changes are merged into incubator master branch
https://github.com/apache/incubator-netbeans/pull/521
> Fix Hints of "Split into declaration and assignment" not giving correct fix
> for compound declaration in switch-case block.
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-759
> URL: https://issues.apache.org/jira/browse/NETBEANS-759
> Project: NetBeans
> Issue Type: Bug
> Reporter: vikas kumar prabhakar
> Assignee: vikas kumar prabhakar
> Priority: Minor
> Labels: JDK10-LVTI, compound-declaration, switch-statement
> Fix For: Next
>
>
> Case 1: Before Fix
> switch ( i )
> { case 1: final int i = 10, k = 10; }
> After Fix
> switch ( i )
> { case 1: final int i, --> Errors i = 10; k = 10; }
> Case 2:
> Before Fix
> switch ( i )
> { case 1: final var v1 = 9, v2 = 10; }
> After Fix
> switch ( i )
> { case 1: final var v1 = 9, ----> Errors var v2 = 10; }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
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