publicclass Main { publicstaticvoid main(String[] args) throws Exception { // By throwing an exception when setting up arguments of // the constructor, we end up with a not fully constructed // ZipFile. try { new ZipFile(null, throwException(), null); thrownew Error("Expected Exception");
} catch (Exception e) { // expected
}
// Run finalizers. The golden file of this test checks // that no exception is thrown from finalizers.
System.gc();
System.runFinalization();
}
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.