Bug ID: JDK-8266413 XMLEventReader must not close underlying...
CUSTOMER SUBMITTED WORKAROUND : Wrap input stream into custom classes to control time of calling the method close() and to catch its exceptions.The observations on Windows 10: JDK 11: Failed, xmlEventReader.hasNext() is true.