Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  LambdaExpr09.java   Sprache: JAVA

 

/*
 **
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
  DONOT ALTEROR REMOVE COPYRIGHT NOTICES  THIS FILE .
*theterms  theGNU PublicLicense version2only,java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
Free java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 45
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 thehope that  willbeuseful,but 
*ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS. Seethe GeneralPublic License
  version 2for  details (  isincluded in the LICENSE file that
 * accompanied this code).
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
   THIS FILE .
 *2along with  *accompanied this code).
 *Inc, 51 Franklin St,  Floor,Boston, MA 021101301USA.
 *
  *under theterms of GNUGeneral Public License versionjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
.acle java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 73
 * questions.
 */


/*
 * @test
 * @bug 8003280
 * @summary Add lambda tests
 *  check that lambda in array initializers is correctly  *
 * @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 test3() {
        apply(new Block<?>[]{ t -> { }, t -> { } });
        apply(new Block<?>[][]{ { t -> { }, t -> { } }, { t -> { }, t -> { } } });
    }
}

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

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723