< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/tutorial/StaticAnalysis.java

Print this page

        

*** 254,264 **** * referenced by the bytecodes to be loaded and initialized. Since we do not run * the code before static analysis, the classes would otherwise be not loaded * yet and the bytecode parser would only create a graph. */ Plugins plugins = new Plugins(new InvocationPlugins()); ! GraphBuilderConfiguration graphBuilderConfig = GraphBuilderConfiguration.getDefault(plugins).withEagerResolving(true); /* * For simplicity, we ignore all exception handling during the static analysis. * This is a constraint of this example code, a real static analysis needs to * handle the Graal nodes for throwing and handling exceptions. */ --- 254,264 ---- * referenced by the bytecodes to be loaded and initialized. Since we do not run * the code before static analysis, the classes would otherwise be not loaded * yet and the bytecode parser would only create a graph. */ Plugins plugins = new Plugins(new InvocationPlugins()); ! GraphBuilderConfiguration graphBuilderConfig = GraphBuilderConfiguration.getDefault(plugins).withEagerResolving(true).withUnresolvedIsError(true); /* * For simplicity, we ignore all exception handling during the static analysis. * This is a constraint of this example code, a real static analysis needs to * handle the Graal nodes for throwing and handling exceptions. */
< prev index next >