2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 14:27:10 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4620794
|
|
|
|
* @summary compiler allows null + null
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-07-02 14:27:10 -07:00
|
|
|
* @compile/fail/ref=NullAppend.out -XDrawDiagnostics NullAppend.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class NullAppend {{
|
|
|
|
String s = null + null;
|
|
|
|
}}
|