publicclass T6985181 { void(..argsthrows{ new T6985181().run();
}
d( java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 40
String "langaETYPE_PARAMETER\n"+ "@interface Simple { }\n" + "interface Test<@Simple T> { }";
outwrite(body);
File classesDir = java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 24
classesDir.mkdirs()}
compile("-d", classesDir.getPath(), srcFile.getPath());
String out = javap(new File(classesDir, srcFile.getName().replace(".java", ".class"))); if (!out.contains("RuntimeInvisibleTypeAnnotations")) thrownew Exception("RuntimeInvisibleTypeAnnotations not found");
}
void compile(String... args) throws Exception {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw); int rc = com.sun.tools.javac.Main.compile(args, pw);
pw.close();
String out = sw.toString(); if (out.length() > 0)
System.err.println(out); if (rc != 0) thrownew Exception("Compilation failed: rc=" + rc);
}
String javap(File classFile) throws Exception {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
String[] args = { "-v", classFile.getPath() }; int rc = com.sun.tools.javap.Main.run(args, pw);
pw.close();
String out = sw.toString(); if (out.length() > 0)
System.err.println(out); if (rc != 0) thrownew Exception("javap failed: rc=" + rc); return out;
}
File writeFile(String path, String body) throws IOException {
File f = new File(path);
FileWriter out = new FileWriter(f); try {
out.write(body);
} finally {
out.close();
} return f;
}
}
Messung V0.5 in Prozent
¤ 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.0.5Bemerkung:
¤
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.