javac fails the following test
/*
* @test @(#)T4720379.java 1.1 02/07/31
* @bug 4720379
* @summary DA/DU versus assignment in false for loop condition
* @author Neal Gafter (gafter)
*
* @compile T4720379.java
*/
class T4720379 {
static void main(String[] args) {
for (final boolean b; (b = true) && false; );
}
}
/*
* @test @(#)T4720379.java 1.1 02/07/31
* @bug 4720379
* @summary DA/DU versus assignment in false for loop condition
* @author Neal Gafter (gafter)
*
* @compile T4720379.java
*/
class T4720379 {
static void main(String[] args) {
for (final boolean b; (b = true) && false; );
}
}