Skip to content

Prepare for javac API changes to AST end positions#108

Open
cushon wants to merge 1 commit into
eisop:masterfrom
cushon:getEndPosition
Open

Prepare for javac API changes to AST end positions#108
cushon wants to merge 1 commit into
eisop:masterfrom
cushon:getEndPosition

Conversation

@cushon
Copy link
Copy Markdown

@cushon cushon commented Jan 29, 2026

After the upcoming changes in https://bugs.openjdk.org/browse/JDK-8372948, end positions will be stored directly in each JCTree, and the separate EndPosTable map will no longer exist.

This change uses method handles to support both versions of the internal API, before and after the changes in JDK-8372948.

After the upcoming changes in https://bugs.openjdk.org/browse/JDK-8372948, end
positions will be stored directly in each `JCTree`, and the separate
`EndPosTable` map will no longer exist.

This change uses method handles to support both versions of the internal API,
before and after the changes in JDK-8372948.
@wmdietl
Copy link
Copy Markdown
Member

wmdietl commented Jan 30, 2026

Thanks for the PR! I'll probably also retire the stand-alone annotation-tools when I pull in recent typetool releases. I see that you also made this change there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants