Skip to content

Fix #756: Generate efficient try cases for parameterized exceptions #3928

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

Closed
wants to merge 1 commit into from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 26, 2018

We were missing a case for AppliedType

@odersky odersky requested a review from nicolasstucki January 26, 2018 15:57
@smarter
Copy link
Member

smarter commented Jan 26, 2018

Wrong issue number, it's #746, not #756

???
}
catch {
case ex: scala.runtime.NonLocalReturnControl[T @scala.unchecked] =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a BytecodeTest that checks that we don't use the instanceof opcode: https://github.com/lampepfl/dotty/blob/master/compiler/test/dotty/tools/backend/jvm/DottyBytecodeTests.scala

@odersky
Copy link
Contributor Author

odersky commented Jan 26, 2018

I pushed a new PR with the corrected issue number

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