RFR: 8370442: Compilation error in jpackage EntitlementsTest test

Alexey Semenyuk asemenyuk at openjdk.org
Wed Oct 22 16:22:18 UTC 2025


- Fix compilation error in EntitlementsTest.
- Add an additional launcher to test if custom entitlements are applied to all launchers.
- Make EntitlementsTest more robust and with more descriptive test case signatures.

Old signatures:

EntitlementsTest.test(false, true, false)
EntitlementsTest.test(false, false, true)
EntitlementsTest.test(false, true, true)
EntitlementsTest.test(true, true, false)
EntitlementsTest.test(true, false, true)
EntitlementsTest.test(true, true, true)


New signatures:

EntitlementsTest.test([CMDLINE](length=1))
EntitlementsTest.test([RESOURCE_DIR](length=1))
EntitlementsTest.test([CMDLINE, RESOURCE_DIR](length=2))
EntitlementsTest.testAppStore([CMDLINE](length=1))
EntitlementsTest.testAppStore([RESOURCE_DIR](length=1))
EntitlementsTest.testAppStore([CMDLINE, RESOURCE_DIR](length=2))


Additionally, add a test case to AnnotationsTest.

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

Commit messages:
 - EntitlementsTest: fix compilation error, make it more robust; AnnotationsTest: add test case for enum var args test signature; MacHelper, JPackageCommand: add mutator methods
 - EntitlementsTest: fix compilation error and minor improvements

Changes: https://git.openjdk.org/jdk/pull/27940/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27940&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8370442
  Stats: 131 lines in 4 files changed: 89 ins; 23 del; 19 mod
  Patch: https://git.openjdk.org/jdk/pull/27940.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27940/head:pull/27940

PR: https://git.openjdk.org/jdk/pull/27940


More information about the core-libs-dev mailing list