/*
* @test /nodynamiccopyright/
* @bug 6911256 6964740 6965277 7013420
* @author Maurizio Cimadamore
* @summary Test that resource variables are implicitly final
* @compile/fail/ref=ImplicitFinal.out -XDrawDiagnostics ImplicitFinal.java
*/
try(ImplicitFinal r = new ImplicitFinal()) {
r = null; //disallowed
}
}
}
}
}
throw new IOException();
}
}