Skip to content

Conversation

@copybara-service
Copy link

Prepare for javac API changes to AST end positions

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 reflection to support both versions of the internal API, before and after the changes in JDK-8372948.

RELNOTES=n/a

@copybara-service copybara-service bot force-pushed the test_862702224 branch 2 times, most recently from 96965be to 21514b8 Compare February 4, 2026 08:55
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 reflection to support both versions of the internal API, before and after the changes in JDK-8372948.

RELNOTES=n/a
PiperOrigin-RevId: 865272469
@copybara-service copybara-service bot merged commit 28de210 into main Feb 4, 2026
@copybara-service copybara-service bot deleted the test_862702224 branch February 4, 2026 08:59
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.

1 participant