2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-09-13 00:05:18 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4391330
|
|
|
|
* @summary compiler accepted (Integer).toString(123)
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-09-13 00:05:18 +00:00
|
|
|
* @compile/fail/ref=Parens1.out -XDrawDiagnostics Parens1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class Parens1 {
|
|
|
|
void f() {
|
|
|
|
String s = (Integer).toString(123);
|
|
|
|
}
|
|
|
|
}
|