publicclass Main { publicstaticvoid main(String args[]) { try { // Regression test for default native methods that should cause ClassFormatException // if they pass the dex file verification, i.e. for old dex file versions. // We previously did not handle this case properly and failed a DCHECK() for // a non-interface class creating a copied method that was native. b/157170505 Class.forName("TestClass"); thrownew Error("UNREACHABLE");
} catch (ClassFormatError expected) {
System.out.println("passed");
} catch (Throwable unexpected) {
unexpected.printStackTrace();
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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.