It's caused by a newline "\n" isn't expected in the test payload for JDK 1.8_261.
I noticed that we've already had code like
to determine need this newline or not. And I believe the lastest JDK8(Oracle JDK8 261) surely take the same logic as JDK9+ now.
We need also check the 1.8 minor version