// now reset user.dir, this will cause crash on linux without bug 8194154 fixed.
System.setProperty(keyUserDir, userDirNew);
String newCanFilePath = file.getCanonicalPath();
System.out.format("%24s %48s%n", "Canonical Path = ", canFilePath);
System.out.format("%24s %48s%n", "new Canonical Path = ", newCanFilePath); if (!canFilePath.equals(newCanFilePath)) { thrownew RuntimeException("Changing property user.dir should have no effect on getCanonicalPath");
}
}
}
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.