< prev index next >

test/langtools/tools/javac/switchextra/SwitchObject.java

Print this page
rev 51258 : imported patch switch
rev 51259 : imported patch switch.01

*** 1,8 **** --- 1,9 ---- /* * @test /nodynamiccopyright/ * @bug 8206986 + * @summary Verify switch over Object is not allowed. * @compile/fail/ref=SwitchObject.out -XDrawDiagnostics SwitchObject.java */ public class SwitchObject { private int longSwitch(Object o) {
< prev index next >