RFR: 8372948: Store end positions directly in JCTree
Jonathan Gibbons
jjg3 at pobox.com
Tue Dec 2 16:41:56 UTC 2025
I'm not sure a shared interface gets you anything significant, since you cannot inherit a shared field that way.
Instead, you could have a `setEndPos` on `JCTree` that is a no-op on subtypes that do not need it, and which sets a locally declared field on subtypes that do need it.
-- Jon
On Tue, Dec 2, 2025, at 8:30 AM, Liam Miller-Cushon wrote:
> Good question--I hadn't investigated that option. It seems do-able, perhaps with a shared interface for subtypes that needed end positions to simplify the handling of them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20251202/88ae10e9/attachment-0001.htm>
More information about the compiler-dev
mailing list