< prev index next >

test/runtime/modules/PatchModule/PatchModule2DirsMain.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 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. --- 1,7 ---- /* ! * Copyright (c) 2016, 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.
*** 19,31 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! // This loads the class affected by the -Xpatch option. For the test to pass ! // it must load both classes from the -Xpatch directory, not the jimage file. ! public class Xpatch2DirsMain { public static void main(String[] args) throws Exception { Class.forName(args[0]); Class.forName(args[1]); } } --- 19,31 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! // This loads the class affected by the --patch-module option. For the test to pass ! // it must load both classes from the --patch-module directory, not the jimage file. ! public class PatchModule2DirsMain { public static void main(String[] args) throws Exception { Class.forName(args[0]); Class.forName(args[1]); } }
< prev index next >