test/script/basic/JDK-8066232.js

Print this page




  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  * 
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * JDK-8066232: problem with conditional catch compilation
  26  *
  27  * @test
  28  * @run
  29  */
  30 
  31 (function () { 
  32     try {
  33         x;
  34     } catch(e if 1) {
  35     }
  36 })()




  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  * 
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * JDK-8066232: problem with conditional catch compilation
  26  *
  27  * @test
  28  * @run
  29  */
  30 
  31 (function () { 
  32     try {
  33         x;
  34     } catch(e if 1) {
  35     }
  36 })()
  37 
  38 print("SUCCESS");