Skip to content

Update some tests for var position handling to pass on JDK 26#5665

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_889128089
Mar 25, 2026
Merged

Update some tests for var position handling to pass on JDK 26#5665
copybara-service[bot] merged 1 commit intomasterfrom
test_889128089

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

Update some tests for var position handling to pass on JDK 26

I think these are affected by https://bugs.openjdk.org/browse/JDK-8359383

These tests cover crash handling on earlier versions, on JDK 26 var start and end positions are the same so trying to replace var will result in adding the replacement as a prefix. In practice checks need to be using hasExplicitSource and replaceVariableType to handle var prior to JDK 27.

I think these are affected by https://bugs.openjdk.org/browse/JDK-8359383

These tests cover crash handling on earlier versions, on JDK 26 `var` start and end positions are the same so trying to replace `var` will result in adding the replacement as a prefix. In practice checks need to be using `hasExplicitSource` and `replaceVariableType` to handle `var` prior to JDK 27.

PiperOrigin-RevId: 889460016
@copybara-service copybara-service bot merged commit 4f91e96 into master Mar 25, 2026
@copybara-service copybara-service bot deleted the test_889128089 branch March 25, 2026 22:19
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