staticvoid checkKindError() { final File testFile = new File("Test.java "); // <-note trailing space! try {
getTask(testFile);
} catch (IllegalArgumentException iae) { // The following check is somewhat fragile, since the content of the ILA is not // formally specified. If we want to fix this, we should catch/rewrap ILA coming // from use of java.nio.file.Path inside javac's impl of JavaFileManager. if (!iae.getMessage().contains(testFile.getName())) {
System.err.println("Got message: " + iae.getMessage()); thrownew RuntimeException("Error: expected string not found");
}
}
}
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.