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

Backport *more* coverage fixes to 3.2.0 #15745

Merged

Conversation

TheElectronWill
Copy link
Contributor

@TheElectronWill TheElectronWill commented Jul 25, 2022

Backports #15648.
I got a head start and ported #15739 too, because it's important that the coverage instrumentation works for production code.

edit: Like mentioned in the original PR, most of the changes are tests. The actual changes in the compiler are in InstrumentCoverage.scala.

@TheElectronWill TheElectronWill added this to the 3.2.0 backports milestone Jul 26, 2022
@Kordyjan
Copy link
Contributor

Rebasing to the current head of release-3.2.0 should fix the community build failure.

1. Select and TypeApply trees weren't properly handled for JavaDefined symbols, leading to a crash when selecting a static method with parameter types.
2. Select and Ident trees weren't properly handled, and many occurences of parameterless methods were missed.
3. Some methods like asInstanceOf and isInstanceOf must not be instrumented, otherwise it crashes in Erasure.
@TheElectronWill TheElectronWill force-pushed the fix-coverage-backport-3.2.0 branch from 9406a1b to ff50a80 Compare July 26, 2022 13:13
@TheElectronWill
Copy link
Contributor Author

I've rebased 🤞
thanks :)

@Kordyjan Kordyjan self-assigned this Jul 26, 2022
@Kordyjan Kordyjan mentioned this pull request Jul 26, 2022
23 tasks
@Kordyjan Kordyjan merged commit 68a70cb into scala:release-3.2.0 Jul 27, 2022
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