RFR: 7903630: jextract emits duplicate symbols for macro clashing with enum constants
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Jan 16 12:02:59 UTC 2024
The removal of `EnumConstantLifter` caused certain name conflicts to go undetected by `DuplicateFilter`. More specifically, if a macro constant has same name as that of an enum constant, given the enum constant is no longer lifted to toplevel, `DuplicateFilter` will not see the clash. The fix is to tweak `DuplicateFilter` to recurse into enums.
-------------
Commit messages:
- Add code comment
- Initial push
Changes: https://git.openjdk.org/jextract/pull/177/files
Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=177&range=00
Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903630
Stats: 15 lines in 3 files changed: 15 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jextract/pull/177.diff
Fetch: git fetch https://git.openjdk.org/jextract.git pull/177/head:pull/177
PR: https://git.openjdk.org/jextract/pull/177
More information about the jextract-dev
mailing list