RFR: 8180276: JTextPane getText return extra when mixed with methods of Document [v2]

Tejesh R duke at openjdk.java.net
Mon Apr 11 05:29:45 UTC 2022


On Mon, 11 Apr 2022 05:21:49 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> I guess in that case "else" part in l359 will be executed...I was talking about requirement of "else" part in l345

I did a sample test for this case, it did entered l345, I added \n manually at the end of string, since it passes `if (array[counter] == '\n') {` (l340) condition and fails `if (array[counter - 1] == '\r')` (l342), it executes the else part in l345.....

-------------

PR: https://git.openjdk.java.net/jdk/pull/8122



More information about the client-libs-dev mailing list