-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
None
javax.xml.parsers.DocumentBuilder.parse(java.io.InputStream) reads incorrect characters
at specific positions from an xml input file.
The behaviour is strictly reproducible.
The behaviour is not reproducible with Java SE 5.0.
The issue can be demonstrated on record 1021 of a certain xml file:
Java SE 5.0 reads the correct data item:
% /jdk1.5.0_09/bin/java BugReproductor 1020
TITAL
%
Java SE 8 reads incorrectly:
% /jdk1.8.0/bin/java BugReproductor 1020
ZSTAL
%
% /jdk1.8.0/bin/java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
%
The incorrect behaviour is reproducible with Java SE 7:
% /jdk1.7.0_51/bin/java BugReproductor 1020
ZSTAL
%
The incorrect behaviour is reproducible with Java SE 6:
% /jdk1.6.0_60/bin/java BugReproductor 1020
ZSTAL
%
at specific positions from an xml input file.
The behaviour is strictly reproducible.
The behaviour is not reproducible with Java SE 5.0.
The issue can be demonstrated on record 1021 of a certain xml file:
Java SE 5.0 reads the correct data item:
% /jdk1.5.0_09/bin/java BugReproductor 1020
TITAL
%
Java SE 8 reads incorrectly:
% /jdk1.8.0/bin/java BugReproductor 1020
ZSTAL
%
% /jdk1.8.0/bin/java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
%
The incorrect behaviour is reproducible with Java SE 7:
% /jdk1.7.0_51/bin/java BugReproductor 1020
ZSTAL
%
The incorrect behaviour is reproducible with Java SE 6:
% /jdk1.6.0_60/bin/java BugReproductor 1020
ZSTAL
%
- duplicates
-
JDK-8027359 XML parser returns incorrect parsing results
- Resolved