publicvoid run() throws Exception {
String[] lines = javap("-v", T8035104.class.getName()).split("[\r\n]+"); int minor = -1; int SourceFile = -1; for (int i = 0; i < lines.length; i++) {
String line = lines[i]; if (line.matches(" *minor version: [0-9.]+"))
minor = i; if (line.matches(" *SourceFile: .+"))
SourceFile = i;
} if (minor == -1) thrownew Exception("minor version not found"); if (SourceFile == -1) thrownew Exception("SourceFile not found"); if (SourceFile < minor) thrownew Exception("unexpected order of output");
System.out.println("output OK");
}
String javap(String... args) {
StringWriter sw = new StringWriter();
PrintWriter out = new PrintWriter(sw); int rc = com.sun.tools.javap.Main.run(args, out);
out.close();
System.out.println(sw.toString());
System.out.println("javap exited, rc=" + rc); return sw.toString();
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.