class ArrayLengthDumpTarg { staticfinalint [] i = {0,1,2,3,4,5,6};
String [] s = {"zero", "one", "two", "three", "four"};
String [][] t = {s, s, s, s, s, s, s, s, s, s, s}; int length = 5;
privatevoid bar() {
}
privatevoid foo() {
ArrayLengthDumpTarg u[] = { new ArrayLengthDumpTarg(), new ArrayLengthDumpTarg(), new ArrayLengthDumpTarg(), new ArrayLengthDumpTarg(), new ArrayLengthDumpTarg(), new ArrayLengthDumpTarg() }; int k = u.length;
System.out.println(" u.length is: " + k);
k = this.s.length;
System.out.println(" this.s.length is: " + k);
k = this.t.length;
System.out.println(" this.t.length is: " + k);
k = this.t[1].length;
System.out.println("this.t[1].length is: " + k);
k = i.length;
System.out.println(" i.length is: " + k);
bar(); // @1 breakpoint
}
publicstaticvoid main(String[] args) {
ArrayLengthDumpTarg my = new ArrayLengthDumpTarg();
my.foo();
}
}
new OutputAnalyzer(reply.stream().collect(Collectors.joining(lineSeparator))) // Test the fix for 4690242:
.shouldNotContain("No instance field or method with the name length in")
.shouldNotContain("No static field or method with the name length") // Test the fix for 4695338:
.shouldContain("\"zero\", \"one\", \"two\", \"three\", \"four\"");
jdb.contToExit(1);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-10-11)
¤
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.