Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable two assertions for j2kt that are only passing by accident #7654

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Disable two assertions for j2kt that are only passing by accident

The implementation code expects Comparable implementations to throw
ClassCastExceptions when trying to compare to objects of the wrong type.

Kotlin/Native Comparables don’t make this guarantee yet (This is expected to
change when https://youtrack.jetbrains.com/issue/KT-71001/ is fixed).

The assertions are preventing us from making a compiler flag change that changes
the behavior that made these assertions pass accidentally.

The implementation code expects `Comparable` implementations to throw
`ClassCastException`s when trying to compare to objects of the wrong type.

Kotlin/Native `Comparable`s don’t make this guarantee yet (This is expected to
change when https://youtrack.jetbrains.com/issue/KT-71001/ is fixed).

The assertions are preventing us from making a compiler flag change that changes
the behavior that made these assertions pass accidentally.

PiperOrigin-RevId: 725264702
@copybara-service copybara-service bot closed this Feb 10, 2025
@copybara-service copybara-service bot deleted the test_725236904 branch February 10, 2025 18:30
@copybara-service copybara-service bot merged commit 8ea070f into master Feb 10, 2025
3 checks passed
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