Skip to content

Backport *more* coverage fixes to 3.2.0#15745

Merged
Kordyjan merged 5 commits into
scala:release-3.2.0from
TheElectronWill:fix-coverage-backport-3.2.0
Jul 27, 2022
Merged

Backport *more* coverage fixes to 3.2.0#15745
Kordyjan merged 5 commits into
scala:release-3.2.0from
TheElectronWill:fix-coverage-backport-3.2.0

Conversation

@TheElectronWill

@TheElectronWill TheElectronWill commented Jul 25, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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