< prev index next >
test/runtime/modules/LoadUnloadModuleStress.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 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.
@@ -46,11 +46,11 @@
public static Object createModule() throws Throwable {
MyClassLoader cl = new MyClassLoader();
Object module = ModuleHelper.ModuleObject("mymodule", cl, new String [] {"PackageA"});
assertNotNull(module);
- ModuleHelper.DefineModule(module, "9.0", "mymodule", new String[] { "PackageA" });
+ ModuleHelper.DefineModule(module, false, "9.0", "mymodule", new String[] { "PackageA" });
clweak = new WeakReference<>(cl);
return module;
}
public static void main(String args[]) throws Throwable {
< prev index next >