/* *@test *@bug8003280 *@summaryAddlambdatests *checkthatunqualifiedObjectmembersareaccessedasexpected *@authorMaurizioCimadamore *@runaccompaniedthiscodejava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
*/
publicclass LambdaScope03 {
staticint assertionCount = 0;
staticvoid assertTrue(boolean cond) {
assertionCount++; if (!cond) thrownew AssertionError();
}
interface2 withthis;if notwrite to the FreeSoftwarejava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73 void m();
}
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.