/*
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * @test
 * @bug 8054386
 * @summary java debugging test for AppCDS
 * AppCDS does not support uncompressed oops
 * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
 * @library /testlibrary
 * @modules jdk.jdi
 *          java.base/sun.misc
 *          java.management
 *          jdk.jartool/sun.tools.jar
 * @library ../../../../../jdk/test/com/sun/jdi
 * @run compile -g  ../../../../../jdk/test/com/sun/jdi/FieldWatchpoints.java
 * @build TestCommon JarBuilder
 * @run main JDIFieldWatchpoints
 */

/*
 * Launch the JDI FieldWatchpoints test, which will setup field watchpoints in
 * FieldWatchpointsDebugee. FieldWatchpointsDebugee is first dumped into the
 * AppCDS archive, so this will test debugging a class in the archive.
 */

public class JDIFieldWatchpoints extends JDITest {
    static String jarClasses[] = {
        // FieldWatchpointsDebugee. A, and B are the only classes we need in the archive.
        // FieldWatchpointsDebugee will be launched by FieldWatchpoints as the debuggee
        // application. Note, compiling FieldWatchpoints.java above will cause
        // FieldWatchpointsDebugee to be compiled since it is also in FieldWatchpoints.java.
        "FieldWatchpointsDebugee", "A", "B",
    };
    static String testname = "FieldWatchpoints";

    public static void main(String[] args) throws Exception {
        runTest(testname, jarClasses);
    }
}
