title: Exception thrown during try-with-resources declaration
body: <p>Say I have the following try-with-resources statement in Java:</p>
  
  <pre><code>try (MyResource myResource1 = new MyResource(); MyResource myResource2 = new MyResource()) {
      // do stuff...
  }
  </code></pre>
  
  <p>If <code>MyResource myResource2 = new MyResource()</code> throws an exception, is it guaranteed that <code>myResource1.close()</code> will be called?</p>