< prev index next >
test/runtime/modules/ModuleHelper.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -30,14 +30,14 @@
import sun.hotspot.WhiteBox;
public class ModuleHelper {
- public static void DefineModule(Object module, String version, String location,
- String[] pkgs) throws Throwable {
+ public static void DefineModule(Object module, boolean is_open, String version,
+ String location, String[] pkgs) throws Throwable {
WhiteBox wb = WhiteBox.getWhiteBox();
- wb.DefineModule(module, version, location, pkgs);
+ wb.DefineModule(module, is_open, version, location, pkgs);
}
public static void AddModuleExports(Object from, String pkg, Object to) throws Throwable {
WhiteBox wb = WhiteBox.getWhiteBox();
wb.AddModuleExports(from, pkg, to);
< prev index next >