< prev index next >
test/langtools/tools/javac/switchnull/SwitchNullDisabled.java
Print this page
rev 51258 : imported patch switch
rev 51259 : imported patch switch.01
*** 1,8 ****
! /**
* @test /nodynamiccopyright/
* @bug 8206986
* @compile/fail/ref=SwitchNullDisabled.out -XDrawDiagnostics SwitchNullDisabled.java
*/
public class SwitchNullDisabled {
private int switchNull(String str) {
--- 1,9 ----
! /*
* @test /nodynamiccopyright/
* @bug 8206986
+ * @summary Verify "case null" is not allowed.
* @compile/fail/ref=SwitchNullDisabled.out -XDrawDiagnostics SwitchNullDisabled.java
*/
public class SwitchNullDisabled {
private int switchNull(String str) {
< prev index next >