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

Quelle  T8139243.java   Sprache: JAVA

 
/*
 * @test /nodynamiccopyright/
 * @bug 8138840 8139243 8139249
 * @summary Compiler crashes when compiling bitwise operations with illegal operand types
 *          'void' is erroneously accepted as a possible operand for string concatenation
 * @compile/fail/ref=T8139243.out -XDrawDiagnostics T8139243.java
 */


class T8139243 {

    void test(String s) {
        s += m(); // compile time error
    }

    void m() { }
}

Messung V0.5
C=92 H=93 G=92

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.