Details
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8277270 | 17.0.3-oracle | Alex Kasko | P4 | Resolved | Fixed | b01 |
JDK-8277063 | 17.0.2 | Alex Kasko | P4 | Resolved | Fixed | b05 |
Description
jaxp/javax/xml/jaxp/unittest/transform/SurrogateTest.java test introduced in JDK-8268457 contains minor flaws that prevents it to actually verify the code change:
1. compareWith* helper methods are used without Assert.assertTrue() wrapping, so they are effectively ignored
2. this.getClass().getResourceAsStream() is used to load test input data, it actually returns null in test run, so transformation is done without input data
Note, that SurrogateTest.zip reproducer attached toJDK-8268457 is valid and fully functional, problems likely were introduced when it was adapted into test.
1. compareWith* helper methods are used without Assert.assertTrue() wrapping, so they are effectively ignored
2. this.getClass().getResourceAsStream() is used to load test input data, it actually returns null in test run, so transformation is done without input data
Note, that SurrogateTest.zip reproducer attached to
Attachments
Issue Links
- backported by
-
JDK-8277063 Fix jaxp/javax/xml/jaxp/unittest/transform/SurrogateTest.java test
-
- Resolved
-
-
JDK-8277270 Fix jaxp/javax/xml/jaxp/unittest/transform/SurrogateTest.java test
-
- Resolved
-
- relates to
-
JDK-8268457 XML Transformer outputs Unicode supplementary character incorrectly to HTML
-
- Closed
-
- links to
-
Commit openjdk/jdk17u/a1036efe
-
Commit openjdk/jdk/7eb0372e
-
Review openjdk/jdk17u/231
-
Review openjdk/jdk/5779
(2 links to)