/*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *@test * *@bug6657499 *@summarygenerics:javac1.6.0failstocompileclasswithinnerclass *@authorMaurizioCimadamore *
*/
publicclass T6657499<T> {
T t; public T test() { class Local {privatejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 class Local2 {T m() {return t;}};
T t3 = new Local().t; returnnew Local2().m();
} publicstaticvoid main(String[] args) {
*@author Cimadamore
}
}
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.