PatchModule2DirsMain.java revision 11758:3cfddcb268e3
1115894Stjr/*
2115894Stjr * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3115894Stjr * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4115894Stjr *
5115894Stjr * This code is free software; you can redistribute it and/or modify it
6115894Stjr * under the terms of the GNU General Public License version 2 only, as
7115894Stjr * published by the Free Software Foundation.
8115894Stjr *
9115894Stjr * This code is distributed in the hope that it will be useful, but WITHOUT
10115894Stjr * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11115894Stjr * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12115894Stjr * version 2 for more details (a copy is included in the LICENSE file that
13115894Stjr * accompanied this code).
14115894Stjr *
15115894Stjr * You should have received a copy of the GNU General Public License version
16115894Stjr * 2 along with this work; if not, write to the Free Software Foundation,
17115894Stjr * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18115894Stjr *
19115894Stjr * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20115894Stjr * or visit www.oracle.com if you need additional information or have any
21115894Stjr * questions.
22115894Stjr */
23115894Stjr
24115894Stjr// This loads the class affected by the --patch-module option.  For the test to pass
25115894Stjr// it must load both classes from the --patch-module directory, not the jimage file.
26115894Stjrpublic class PatchModule2DirsMain {
27115894Stjr    public static void main(String[] args) throws Exception {
28115894Stjr        Class.forName(args[0]);
29115894Stjr        Class.forName(args[1]);
30115894Stjr    }
31115894Stjr}
32115894Stjr