Hi, I see there's 14-year-old bug https://bz.apache.org/bugzilla/show_bug.cgi?id=40455 which does impact the current users :-( Here's a recent case from Gradle: https://github.com/gradle/gradle/issues/14134
What do you think if the current Ant's ReaderInputStream was replaced with the one from Apache Commons IO? I don't think it is worth investing time in trying to fix the current implementation as InputStream implementation must be robust in lots of corner cases, and the current tests in Ant are not that sophisticated. Vladimir