Skip to content

Fix FatalError's constructor to forward msg to super. #1124

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

Merged
merged 2 commits into from
Feb 24, 2016

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Feb 24, 2016

Previously, getMessage() always returned null, causing NPEs when trying to report a FatalError.

Previously, getMessage() always returned `null`, causing NPEs
when trying to report a FatalError.
@sjrd
Copy link
Member Author

sjrd commented Feb 24, 2016

Review by @smarter?

@smarter
Copy link
Member

smarter commented Feb 24, 2016

This change LGTM, though it's weird that we have both a FatalError defined in Driver.scala and a FatalError forwarded from scala.reflect.internal defined in src/dotty/tools/package.scala

@sjrd
Copy link
Member Author

sjrd commented Feb 24, 2016

Hum indeed.

Should we try and remove one or the other?

@smarter
Copy link
Member

smarter commented Feb 24, 2016

Yup, I'll let you decide which one :)

@sjrd
Copy link
Member Author

sjrd commented Feb 24, 2016

Updated.

@odersky
Copy link
Contributor

odersky commented Feb 24, 2016

The change re FatalError looks good to me.

smarter added a commit that referenced this pull request Feb 24, 2016
Fix FatalError's constructor to forward `msg` to super.
@smarter smarter merged commit 0eecb71 into scala:master Feb 24, 2016
@sjrd sjrd deleted the fix-fatalerror-ctor branch July 24, 2018 16:26
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