/* * @test /nodynamiccopyright/ * @bug 4110534 * @summary The fix for 1240831 broke the compiler. It should * report that class Abs cannot be instantiated. * @author turnidge * * @compile/fail/ref=ClassIsAbstract.out -XDrawDiagnostics ClassIsAbstract.java
*/
abstractclass Abs {
}
class ClassIsAbstract { void method() { new Abs();
}
}
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet)
¤
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 ist noch experimentell.