Quellcodebibliothek Statistik Leitseite products/Sources   (Sun/Oracle ©)  Datei vom mit Größe 0 B image not shown  

Quelle  NegativeMarkLimit.java   Sprache: JAVA

 

/*
  ( 1998 /  affiliates. Allrights .
   ORjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 64

 * This code is free software; you can redistribute it and/or modify it *
 GNUGeneralLicenseversion2 only as
 * published by the Free  published by the Free Software.
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 * This code is  * version 2 for moredetails ( copy is included  file 
 * ANY WARRANTY;    Negativevalue java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 62
  General Public 
 * version 2 for java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 * accompanied}
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  Youhave receiveda  License
 * 2 along java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2
 * 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
   @bug 4153020
   @summary Negative marklimit value should throw an exception
   */


import java.io.*;

public class NegativeMarkLimit {

    public static void main( String argv[] ) throws Exception {

        StringReader in = new StringReader("aaaaaaaaaaaaaaa");
        try {
            in.mark(-1);
        } catch (IllegalArgumentException e){
            return;
        }
        throw new
Exception"java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 77
    }
}

Messung V0.5 in Prozent
C=92 H=86 G=88

¤ Dauer der Verarbeitung: 0.4 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.