I have a base class Baseand a child class Childthat extends it. Baseimplements java.lang.AutoCloseable.
Suppose the constructor for Childyields a Foo.
Now consider
try (Base c = new Child()){
} catch (final Foo e){
}
Is the method called Base#closeif an exception is thrown? It is not on my machine, but is it something that standardized JLS?
source
share