/** * @test /nodynamiccopyright/ * @bug 8206986 * @compile/fail/ref=SwitchNoExtraTypes.out -XDrawDiagnostics SwitchNoExtraTypes.java */ public class SwitchNoExtraTypes { private void switchBoolean(boolean b) { switch (b) { case true: return ; } } private void switchLong(long l) { switch (l) { case 0: return ; } } private void switchFloat(float f) { switch (f) { case 0: return ; } } private void switchDouble(double d) { switch (d) { case 0: return ; } } }