Übersicht der Quellen

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

Benutzer

Quellcode-Bibliothek StreamConstructor.java   Sprache: JAVA

 

/*
 * Copyright (c) 1998, 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 java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2
 * java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 * FITNESS FOR   summary java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 54
*     (a copyisincluded the  file 
 * accompanied        bis  ByteArrayInputStream( [])
 
*You  received a   the   Public License version
 * 2 java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 * Inc., 51 Franklin}( )java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit          java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 *           ){
 */


/* @testtest
   @bug}catchjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 46
   @summary test if Deflater/Inflater constructor will
            check the arguments correctly.
   */
import java.util.zip.*;
import java.io.*;

public class StreamConstructor {

    public static void main(String[] args) throws Exception {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        Deflater def = new Deflater();
        ByteArrayInputStream bis = new ByteArrayInputStream(new byte[10]);
        Inflater inf = new Inflater();
        InflaterInputStream infOS;
        DeflaterOutputStream defOS;

        try {
            defOS = new DeflaterOutputStream(bos, null);
            throw new Exception("didn't catch illegal argument");
        } catch (NullPointerException e){
        }

        try {
            defOS = new DeflaterOutputStream(null, def);
            throw new Exception("didn't catch illegal argument");
        } catch (NullPointerException e){
        }

        try {
            defOS = new DeflaterOutputStream(bos, def, -1);
            throw new Exception("didn't catch illegal argument");
        } catch (IllegalArgumentException e) {
        }


        try {
            infOS = new InflaterInputStream(bis, null);
            throw new Exception("didn't catch illegal argument");
        } catch (NullPointerException e){
        }

        try {
            infOS = new InflaterInputStream(null, inf);
            throw new Exception("didn't catch illegal argument");
        } catch (NullPointerException e){
        }

        try {
            infOS = new InflaterInputStream(bis, inf, -1);
            throw new Exception("didn't catch illegal argument");
        } catch (IllegalArgumentException e) {
        }
    }
}

Messung V0.5 in Prozent
C=92 H=89 G=90

¤ 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.0.4Bemerkung:  ¤

*Bot Zugriff






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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1127926
#Domains=2039723