author | mcimadamore |
Wed, 26 Oct 2016 15:41:25 +0100 | |
changeset 41856 | 13a056e8f16e |
parent 26662 | 7cf828d7c8fc |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26662
7cf828d7c8fc
8055080: Group 9d: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4391330 |
4 |
* @summary compiler accepted (Integer).toString(123) |
|
5 |
* @author gafter |
|
6 |
* |
|
26662
7cf828d7c8fc
8055080: Group 9d: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=Parens1.out -XDrawDiagnostics Parens1.java |
10 | 8 |
*/ |
9 |
||
10 |
class Parens1 { |
|
11 |
void f() { |
|
12 |
String s = (Integer).toString(123); |
|
13 |
} |
|
14 |
} |