--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes.test/src/org/graalvm/compiler/nodes/test/NegateNodeCanonicalizationTest.java 2017-03-20 17:40:18.000000000 -0700 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes.test/src/org/graalvm/compiler/nodes/test/NegateNodeCanonicalizationTest.java 2017-03-20 17:40:18.000000000 -0700 @@ -22,28 +22,30 @@ */ package org.graalvm.compiler.nodes.test; -import static org.graalvm.compiler.core.common.CompilationIdentifier.INVALID_COMPILATION_ID; import static org.junit.Assert.assertEquals; -import jdk.vm.ci.meta.JavaConstant; - -import org.junit.Before; -import org.junit.Test; import org.graalvm.compiler.core.common.type.ArithmeticOpTable; +import org.graalvm.compiler.core.test.GraalCompilerTest; import org.graalvm.compiler.nodes.ConstantNode; import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; +import org.graalvm.compiler.test.AddExports; +import org.junit.Before; +import org.junit.Test; + +import jdk.vm.ci.meta.JavaConstant; /** * This class tests that the canonicalization for constant negate nodes cover all cases. */ +@AddExports("jdk.internal.vm.ci/jdk.vm.ci.meta") public class NegateNodeCanonicalizationTest { private StructuredGraph graph; @Before public void before() { - graph = new StructuredGraph(AllowAssumptions.YES, INVALID_COMPILATION_ID); + graph = new StructuredGraph.Builder(GraalCompilerTest.getInitialOptions(), AllowAssumptions.YES).build(); } @Test