On Thu, 16 Jul 2026 05:16:58 GMT, Chen Liang <[email protected]> wrote:
> A few fail-safe convenience methods added in #23548 are missing necessary > null checks. In addition, the `PackageEntry` symbolic conversion and testing > methods are not correctly rejecting `PackageDesc` representing the unnamed > package, a deliberate choice when `PackageDesc` was added to Java. > > Luckily, these oversights can be easily fixed and verified with minor > enhancements to existing tests. There are also accompanying minor doc > enhancements about the situation. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: b1467bd6 Author: Chen Liang <[email protected]> URL: https://git.openjdk.org/jdk/commit/b1467bd6af8d4f98612191c3dfbb301150f4199b Stats: 337 lines in 15 files changed: 207 ins; 43 del; 87 mod 8388374: Class-File API does not enforce required validation for null matches and empty PackageEntry names Reviewed-by: asotona ------------- PR: https://git.openjdk.org/jdk/pull/31925
