mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
11 lines
239 B
Java
11 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;
|
|
}}
|