Skip to content

Improve instrumentation of "try" statement without "finally" section #194

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

Conversation

gslowikowski
Copy link
Member

Instrument finally section only if it is present.

It wasn't instrumented before when it was missing, but Could not instrument [EmptyTree$/null]. No pos. warning was emitted. Now instrument method will be called only if finnaly section is present.

This fixes many (if not all) remaining Could not instrument [EmptyTree$/null]. No pos. warnings reported in #5

It wasn't instrumented before when it was missing, but `Could not instrument [EmptyTree$/null]. No pos.` warning was emitted. Now `instrument` method will be called only if `finnaly` section is present.
@rorygraves
Copy link
Contributor

👍

@sksamuel sksamuel merged commit 715d76b into scoverage:master Dec 27, 2016
@gslowikowski gslowikowski deleted the improve-try-without-finally-instrumentation branch August 26, 2017 21:14
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.

3 participants