On Fri, 16 Dec 2022 19:30:24 GMT, Alan Bateman <al...@openjdk.org> wrote:
> A small oversight with ModuleDescriptor.read when checking the requires table > of a Module attribute. The requires entry for java.base should not have > ACC_SYNTHETIC set. > > A new test is added. Some of the existing tests used > `@Test(expectedExceptions=...)`. I've changed some of these to use > assertThrows to narrow it down to method that is expected to throw. This pull request has now been integrated. Changeset: 11fd651a Author: Alan Bateman <al...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/11fd651ab1820770e3c65cd49589416098987a87 Stats: 75 lines in 2 files changed: 34 ins; 17 del; 24 mod 8298875: A module requiring "java.base" with flags ACC_SYNTHETIC should be rejected Reviewed-by: jpai, mchung ------------- PR: https://git.openjdk.org/jdk/pull/11714