<!DOCTYPE html><html><head><title></title></head><body><div>I'm not sure a shared interface gets you anything significant, since you cannot inherit a shared field that way.</div><div><br></div><div>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.</div><div><br></div><div>-- Jon</div><div><br></div><div>On Tue, Dec 2, 2025, at 8:30 AM, Liam Miller-Cushon wrote:</div><blockquote type="cite" id="qt" style="">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.</blockquote><div><br></div></body></html>