4555N/A/*
4555N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4555N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4555N/A *
4555N/A * This code is free software; you can redistribute it and/or modify it
4555N/A * under the terms of the GNU General Public License version 2 only, as
4555N/A * published by the Free Software Foundation.
4555N/A *
4555N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4555N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4555N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4555N/A * version 2 for more details (a copy is included in the LICENSE file that
4555N/A * accompanied this code).
4555N/A *
4555N/A * You should have received a copy of the GNU General Public License version
4555N/A * 2 along with this work; if not, write to the Free Software Foundation,
4555N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4555N/A *
4555N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4555N/A * or visit www.oracle.com if you need additional information or have any
4555N/A * questions.
4555N/A */
4555N/A
4555N/Apublic class RedefineBigClassApp {
4555N/A public static void main(String[] args) throws Exception {
4555N/A System.out.println("Creating instance of " +
4555N/A RedefineBigClassAgent.clz);
4555N/A RedefineBigClassAgent.clz.newInstance();
4555N/A
4555N/A int count = 0;
4555N/A while (!RedefineBigClassAgent.doneRedefining) {
4555N/A System.out.println("App loop count: " + ++count);
4555N/A try {
4555N/A Thread.sleep(10 * 1000);
4555N/A } catch (InterruptedException ie) {
4555N/A }
4555N/A }
4555N/A System.out.println("App looped " + count + " times.");
4555N/A
4555N/A System.exit(0);
4555N/A }
4555N/A}