2caa264885
Reviewed-by: jjg
12 lines
239 B
Java
12 lines
239 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4717193
|
|
* @summary javac improperly allows null + 1
|
|
* @author gafter
|
|
* @compile/fail/ref=NullAppend2.out -XDrawDiagnostics NullAppend2.java
|
|
*/
|
|
|
|
class NullAppend2 {{
|
|
String s = null + 1;
|
|
}}
|