mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
12 lines
238 B
Java
12 lines
238 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4620794
|
|
* @summary compiler allows null + null
|
|
* @author gafter
|
|
*
|
|
* @compile/fail/ref=NullAppend.out -XDrawDiagnostics NullAppend.java
|
|
*/
|
|
|
|
class NullAppend {{
|
|
String s = null + null;
|
|
}}
|