diff -r 0bda2308eded -r ad45b3802d4e test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java --- a/test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java Wed May 01 12:41:26 2019 -0400 +++ b/test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java Wed May 01 12:31:29 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -84,7 +84,7 @@ NO_JVMCI { @Override public Class getExpectedException() { - return InternalError.class; + return Error.class; } }, ALL_PERM { @@ -172,12 +172,8 @@ } }; Utils.runAndCheckException(() -> { - try { - // CompilerToVM:: provokes CompilerToVM:: - Class.forName("jdk.vm.ci.hotspot.CompilerToVMHelper"); - } catch (ClassNotFoundException e) { - throw new Error("TESTBUG : " + e, e); - } + // CompilerToVM:: provokes CompilerToVM:: + Class.forName("jdk.vm.ci.hotspot.CompilerToVMHelper"); }, exceptionCheck); }