2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 19:04:04 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4721062
|
|
|
|
* @summary DA treatment of return statements in constructors
|
|
|
|
* @author Neal Gafter (gafter)
|
|
|
|
*
|
2014-07-02 19:04:04 +00:00
|
|
|
* @compile/fail/ref=T4721062b.out -XDrawDiagnostics T4721062b.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T4721062b {
|
|
|
|
final int i;
|
|
|
|
T4721062b(boolean b) {
|
|
|
|
if (b)
|
|
|
|
return;
|
|
|
|
i = 1;
|
|
|
|
}
|
|
|
|
}
|