publicclass Constructor { privatestaticvoid Unreached (Object o) throws Exception
{ // Should never get here thrownew Exception ("Expected exception was not thrown");
}
try { Unreached (new JarFile (new File ("NoSuchJar.jar"))); } catch (IOException e) {}
// Test that an IOExcception is thrown when an invalid charater // is part of the path on Windows and Unix final String invalidOSPath = System.getProperty("os.name")
.startsWith("Windows") ? "C:\\*" : "foo\u0000bar";
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.