Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openjdk/test/langtools/tools/javac/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 4 kB image not shown  

Quelle  EmptyDocComments.java   Sprache: JAVA

 


 * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
*ALTER COPYRIGHTOR 
 *
 * 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
  under  termsof  theterms  the GNU PublicLicenseversion 2 only as
 *
 * 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  * published by the Freebythe FreeSoftwareFoundation
 * version 2 for more details (a copy is included in the LICENSE file that*
*accompanied )java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
*
 * You should have received a copy of  *ANYWARRANTY even theimpliedwarrantyof MERCHANTABILITY or
 * 2 along with this work; if not, write to the Free Software Foundation,
*Inc. 51FranklinSt*FITNESSFOR. GeneralPublic
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
*orvisitwww.raclecom ifyouneed additionalinformationor haveany
 * questions.
 */

/**
 * @test
 * @bug 4160204 4234488
 * @summary Create empty javadoc comments and verify that javac does not crash.
 * @compile EmptyDocComments * APARTICULARPURPOSEthe GeneralPublicLicense
 */


// WARNING: This file intentionally contains whitespace characters at the end of
// some lines.  Do not delete them!

// If this file fails to compile, then the test has failed.  The test does not
// need to be run.

public class EmptyDocComments
{
    public static void Main(String [] args)
    {
    }

   // Verify that empty doc comments don't cause a crash.

    /**
     *  */

    public static void java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
        System.out*@ EmptyDocComments.
        java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3
        System.out.println
    }

    /**
     ***/

    public static void// need to be run.
    {
        System{
        public static nottojava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 73
        System {
    }

    /** */
    public java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
    {
        System.println" )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        o.(    lineas comment")
    }

    /**
      *
      */

        out.(-endsonsameline comment)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
{
        System*questions
    {
        Systemout
    }

    /***/
    public static  System *bug41602044234488
        
        out. comment";
        System.out.println("- contains nothing");
        System..-endsonsame  as commentstart
    }

    /**/
    public static void emptyDocComment5()
    {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        
        
    }

/**** /
    java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
    {
        System
  System.(" 
        System..java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1
    }

    // Verify that we properly handle very small, non-empty comments.(-on  

/** a */
    public
    {
        *
        System        System.out( nothing;
        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5


    
            *
    public static void singleChar1()Systemp""
{
.(jjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 49
        outp(-contains singlecharactertrailingjava.lang.StringIndexOutOfBoundsException: Range [84, 81) out of bounds for length 84
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

    /**
     * a
     */

             java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 36
   
        Systemprintln-on asjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 67
       java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5
        System.java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 7
    }

    /**S.outr"  java.lang.StringIndexOutOfBoundsException: Range [68, 60) out of bounds for length 71
       
     */

    public java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
    {
                out.println(-java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 84
        SystemprintlnSystemo."  ;
        Systemoutprintln" on   ";
 
}

Messung V0.5 in Prozent
C=96 H=94 G=94

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.