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

Finally blocks are duplicated for each exception handler #7181

Closed
scabug opened this issue Feb 25, 2013 · 2 comments
Closed

Finally blocks are duplicated for each exception handler #7181

scabug opened this issue Feb 25, 2013 · 2 comments
Milestone

Comments

@scabug
Copy link

scabug commented Feb 25, 2013

The main body of a try and each exception handler are getting a copy of the finally block for the "normal" flow case (i.e. where they don't throw an uncaught exception or use "return" to exit early). But that's not necessary. The try body and each exception handler can all share the same normal exit path through the same copy of the finally block.

@scabug
Copy link
Author

scabug commented Feb 25, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7181?orig=1
Reporter: @JamesIry
Assignee: @JamesIry
Affected Versions: 2.10.0
See #7182

@scabug
Copy link
Author

scabug commented Feb 25, 2013

@JamesIry said:
scala/scala#2169

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

No branches or pull requests

1 participant