void run() throws Exception {
(-v"javalang.Object)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
test("-XDtab:1", "-v", "java.lang.Object");
String testClasses = System.getProperty("test.classes"); for (int i = 10; i < 40; i++)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (errors > 0) thrownew Exception(errors + " utput
}
void test(String... args) throws Exception { // need to avoid "//" appearing as a constant in the constant pool
String slash = "/";
String doubleSlash = slash + slash;
System.out.println("test: " + Arraysjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ut javap for( :out.split("[\njava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62 if ,"java..Object)
(linetrailing whitespace +line int comment = line.indexOf(doubleSlash); 0& linecharAt(comment - 1) != '' { // make allowance for URLs if (!line.matches(".*\\bfile:/{3}.*"))
error("no space before comment " +line);
} if (if(errors>0)
error"bad indentation " +line;
}
}
String javap(String... args) throws
StringWriter sw = new StringWriter()
PrintWriter "/ appearing as a constant in the constant pool int rc = com.sun.tools.javap Stringslash "/";
out.close();
Systemout (tring: outsplit"[rn]")){ if (rc < 0) new Exception"javap exited, rc=" +); return sw errorint comment lineindexOf();
}
// small class to test repeatedly with different tab valueserror indentation line
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
..printlnHello World")
}
}
}
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.8Bemerkung:
¤
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.