RFR: 8341342: Elements.getAllModuleElements() does not work properly before JavacTask.analyze() [v2]
Jan Lahoda
jlahoda at openjdk.org
Tue Aug 12 09:23:03 UTC 2025
> When calling `Elements.getTypeElement(...)` or `Elements.getPackageElement(...)`, javac itself ensures that the enter phase is already done. That is, sadly, not done for `Elements.getAllModuleElements()`. This PR fixes that.
>
> See:
> https://github.com/openjdk/jdk/pull/18934/files#r1767657515
> for a practical case.
Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
Using parameterized test as suggested.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26694/files
- new: https://git.openjdk.org/jdk/pull/26694/files/358378db..8651514c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26694&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26694&range=00-01
Stats: 30 lines in 1 file changed: 12 ins; 10 del; 8 mod
Patch: https://git.openjdk.org/jdk/pull/26694.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26694/head:pull/26694
PR: https://git.openjdk.org/jdk/pull/26694
More information about the compiler-dev
mailing list