RFR: JDK-8221413: javac does not recognize variable assigned in switch expression as DA

Jan Lahoda jan.lahoda at oracle.com
Tue Mar 26 13:54:52 UTC 2019


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