RFR: 8362598: [macos] Add tests for custom info plist files

Alexey Semenyuk asemenyuk at openjdk.org
Fri Sep 26 11:26:01 UTC 2025


On Fri, 26 Sep 2025 02:54:32 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> - Added test for custom info plist to cover app image including embedded runtime and runtime installer.
> - Fixed bug in `writePList`. It was missing `writeStartDocument()/writeEndDocument()` and `DOCTYPE` should be full xml string.

src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/util/PListWriter.java line 93:

> 91:     public static void writePList(XMLStreamWriter xml, XmlConsumer content)
> 92:             throws XMLStreamException, IOException {
> 93:         xml.writeStartDocument();

Why do we need `writeStartDocument()/writeEndDocument()` calls?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27509#discussion_r2382067049


More information about the core-libs-dev mailing list