Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
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;
|
|
}}
|