author | sogoel |
Wed, 02 Jul 2014 14:27:10 -0700 | |
changeset 25310 | a2e7f254f886 |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25310
a2e7f254f886
8046770: .out files for assert, boxing, and overload tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4620794 |
4 |
* @summary compiler allows null + null |
|
5 |
* @author gafter |
|
6 |
* |
|
25310
a2e7f254f886
8046770: .out files for assert, boxing, and overload tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=NullAppend.out -XDrawDiagnostics NullAppend.java |
10 | 8 |
*/ |
9 |
||
10 |
class NullAppend {{ |
|
11 |
String s = null + null; |
|
12 |
}} |