comparison test/compiler/whitebox/MakeMethodNotCompilableTest.java @ 8766:4efac99a998b

8008211: Some of WB tests on compiler fail Reviewed-by: kvn, vlivanov
author iignatyev
date Mon, 18 Mar 2013 04:29:08 -0700
parents 1b0dc9f87e75
children b84fd7d73702
comparison
equal deleted inserted replaced
8765:592f9722c72e 8766:4efac99a998b
30 * @author igor.ignatyev@oracle.com 30 * @author igor.ignatyev@oracle.com
31 */ 31 */
32 public class MakeMethodNotCompilableTest extends CompilerWhiteBoxTest { 32 public class MakeMethodNotCompilableTest extends CompilerWhiteBoxTest {
33 33
34 public static void main(String[] args) throws Exception { 34 public static void main(String[] args) throws Exception {
35 // to prevent inlining #method into #compile()
36 WHITE_BOX.setDontInlineMethod(METHOD, true);
35 new MakeMethodNotCompilableTest().runTest(); 37 new MakeMethodNotCompilableTest().runTest();
36 } 38 }
37 39
38 protected void test() throws Exception { 40 protected void test() throws Exception {
39 if (!WHITE_BOX.isMethodCompilable(METHOD)) { 41 if (!WHITE_BOX.isMethodCompilable(METHOD)) {