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.
