Skip to content

SI-7602 Avoid crash in LUBs with erroneous code#4097

Merged
retronym merged 1 commit intoscala:2.11.xfrom
retronym:ticket/7602
Nov 7, 2014
Merged

SI-7602 Avoid crash in LUBs with erroneous code#4097
retronym merged 1 commit intoscala:2.11.xfrom
retronym:ticket/7602

Conversation

@retronym
Copy link
Member

@retronym retronym commented Nov 6, 2014

If a class contains a double defintion of a method that overrides
an interface method, LUBs could run into a spot where filtering
overloaded alternatives to those that match the interface method
fails to resolve to a single overload, which crashes the compiler.

This commit uses filter rather than suchThat to avoid the crash.

@retronym
Copy link
Member Author

retronym commented Nov 6, 2014

Review by @adriaanm

@scala-jenkins scala-jenkins added this to the 2.11.5 milestone Nov 6, 2014
@adriaanm
Copy link
Contributor

adriaanm commented Nov 6, 2014

Could you add a note to future refactorer/optimizer explaining why not suchThat?

@retronym
Copy link
Member Author

retronym commented Nov 6, 2014

done

@adriaanm
Copy link
Contributor

adriaanm commented Nov 6, 2014

LGTM!

@adriaanm
Copy link
Contributor

adriaanm commented Nov 6, 2014

actually, sorry, could you s/multiple symbols/overloaded symbols/?

@retronym
Copy link
Member Author

retronym commented Nov 6, 2014

Sure, done.

@adriaanm
Copy link
Contributor

adriaanm commented Nov 6, 2014

PLS REBUILD ALL

@scala-jenkins
Copy link

(kitty-note-to-self: ignore 61963883)
🐱 Roger! Rebuilding pr-scala for 087f1db. 🚨

@retronym
Copy link
Member Author

retronym commented Nov 6, 2014

PLS REBUILD ALL

I've taken three Jenkins nodes offline that seem to be failing (typesafe-a2-*).

@scala-jenkins
Copy link

(kitty-note-to-self: ignore 61974296)
🐱 Roger! Rebuilding pr-scala for 087f1db. 🚨

@retronym
Copy link
Member Author

retronym commented Nov 7, 2014

Forgot a check file, that is the only change in the latest commit.

If a class contains a double defintion of a method that overrides
an interface method, LUBs could run into a spot where filtering
overloaded alternatives to those that match the interface method
fails to resolve to a single overload, which crashes the compiler.

This commit uses `filter` rather than `suchThat` to avoid the crash.
retronym added a commit that referenced this pull request Nov 7, 2014
SI-7602 Avoid crash in LUBs with erroneous code
@retronym retronym merged commit 2dfed21 into scala:2.11.x Nov 7, 2014
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