This is an OpenJDK 8u specific bug. There,
JDK-8226575 got backported before JDK-8217338 (in contrast to JDK 11u). JDK-8226575 added function readMatchingLines() which when backported to 8u didn't apply as JDK-8217338 was missing at that point. With both patches now being there, missing hunks need to be added back.