RFR: JDK-8221413: javac does not recognize variable assigned in switch expression as DA
Vicente Romero
vicente.romero at oracle.com
Wed Mar 27 16:34:52 UTC 2019
looks good to me,
Vicente
On 3/26/19 9:54 AM, Jan Lahoda wrote:
> Hi,
>
> javac does not correctly infer definitely assigned variables for
> switch expressions with implicit default clause (where the default
> clause is added automatically for exhaustive switch over enums).
>
> Proposed patch: http://cr.openjdk.java.net/~jlahoda/8221413/webrev.00/
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8221413
>
> How does this look?
>
> Thanks,
> Jan
More information about the compiler-dev
mailing list