Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  t056.java   Sprache: JAVA

 
/*
 * Copyright (c) 2008, 2020, 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.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * 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.
 */


/*
 * @test
 *
 * @summary converted from VM Testbase jit/t/t056.
 * VM Testbase keywords: [jit, quick]
 *
 * @library /vmTestbase
 *          /test/lib
 * @run main/othervm jit.t.t056.t056
 */


package jit.t.t056;

import nsk.share.TestFailure;
import nsk.share.GoldChecker;

public class t056
{
    // Routine nest in which exception is thrown and caught in
    // the fourth routine.

    public static final GoldChecker goldChecker = new GoldChecker( "t056" );

    static void r14(){r24();}
    static void r24(){r34();}
    static void r34(){r44();}
    static void r44()
    {
        try
        {
            Throwable t = new Throwable();
            throw t;
        }
        catch(Throwable t)
        {
            t056.goldChecker.println("caught in r44");
        }
    }

    // Thrown in the fourth; caught in the third.

    static void r13(){r23();}
    static void r23(){r33();}
    static void r33()
    {
        try
        {
            r43();
        }
        catch(Throwable t)
        {
            t056.goldChecker.println("caught in r33");
        }
    }
    static void r43() throws Throwable
    {
        Throwable t = new Throwable();
        throw t;
    }

    // Thrown in fourth; caught in second.

    static void r12(){r22();}
    static void r22()
    {
        try
        {
            r32();
        }
        catch(Throwable t)
        {
            t056.goldChecker.println("caught in r22");
        }
    }
    static void r32() throws Throwable {r42();}
    static void r42() throws Throwable
    {
        Throwable t = new Throwable();
        throw t;
    }

    // Thrown in fourth; caught in first.

    static void r11()
    {
        try
        {
            r21();
        }
        catch(Throwable t)
        {
            t056.goldChecker.println("caught in r11");
        }
    }
    static void r21() throws Throwable {r31();}
    static void r31() throws Throwable {r41();}
    static void r41() throws Throwable
    {
        Throwable t = new Throwable();
        throw t;
    }

    public static void main(String argv[])
    {
        t056.goldChecker.print("Calling r14: "); r14();
        t056.goldChecker.print("Calling r13: "); r13();
        t056.goldChecker.print("Calling r12: "); r12();
        t056.goldChecker.print("Calling r11: "); r11();
                                           t056.goldChecker.check();
    }
}

Messung V0.5
C=91 H=93 G=91

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge