javac fails the following test:
/*
* @test @(#)T4721076.java 1.1 02/07/31
* @bug 4721076
* @summary DU analysis for loop with break
* @author Neal Gafter (gafter)
*
* @compile T4721076.java
*/
class T4721076 {
public static void main(String[] args) {
for (final boolean b; true; b = true)
break;
}
}
/*
* @test @(#)T4721076.java 1.1 02/07/31
* @bug 4721076
* @summary DU analysis for loop with break
* @author Neal Gafter (gafter)
*
* @compile T4721076.java
*/
class T4721076 {
public static void main(String[] args) {
for (final boolean b; true; b = true)
break;
}
}