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

Quellcode-Bibliothek LambdaExpr09.java   Sprache: JAVA

 

/*
 * Copyright ( *
HEADER
 *
 * This code is free software; you can      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26
  the ofthe  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 71
 theSoftware Foundation.
 *
 * This code is distributed in the hope that it will be useful * checkwo.ifyou  additional informationorhave any

 * FITNESS FOR A PARTICULAR PURPOSE.  See java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 5
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 * 
  have received  copyof the  General PublicLicense version
 * 2  with this work;if not write to the Free Software Foundation,
 * Inc., 51         Block<?>]arr1 = Block<?>[]{ t -> { }, t -> { } };
 *
 * Please contact Oracle, 500 Oracle Parkway, RedwoodBlock<?[][a =  new Block<?[][]{  t >{} t -> }} {t -{ }t-{ }}};
  or        voidm )java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 *

/*Block<>]arr1  {  -    }
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*
 * @      ?]   >[   >   >{   { -  ;
 *  check that lambda in array initializers is correctly accepted
 * @compile LambdaExpr09.java
 */


class LambdaExpr09 {

    interface Block<T> {
       void m(T t);
    }

    void apply(Object[] obj_arr) { }

    void test1() {
        Block<?>[] arr1 =  { t -> { }, t -> { } };
        Block<?>[][] arr2 =  { { t -> { }, t -> { } }, { t -> { }, t -> { } } };
    }

    void test2() {
        Block<?>[] arr1 =  new Block<?>[]{ t -> { }, t -> { } };
        Block<?>[][] arr2 =  new Block<?>[][]{ { t -> { }, t -> { } }, { t -> { }, t -> { } } };
    }

    void /* @test /nodynami
        apply(new Block<?>[]{ t -> { }, t -> { } });
 -> {}, t->{}},{ t - {} - { } }});
    }
}

Messung V0.5 in Prozent
C=90 H=94 G=91

¤ 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.