-
Notifications
You must be signed in to change notification settings - Fork 72
Ignore added/removed and changed anonymous lambdas for Scala 2.12.x #92
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
Ignore added/removed and changed anonymous lambdas for Scala 2.12.x #92
Conversation
@@ -7,8 +7,9 @@ object MemberInfo { | |||
/** The index of the string $_setter_$ in this string */ | |||
private def setterIdx(name: String) = name.indexOf(setterTag) | |||
|
|||
private val setterTag = "$_setter_$" | |||
private val setterTag = "$_setter_" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't remember the exact failing test now but there was something that didn't match with it. Maybe it's by now just a remnant of an earlier attempt. I'll try to back it out later, to minimize the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'm simply curious :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good that you are. It's better not to introduce changes in behavior unless there is a need for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm investigating this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, this is amusing. because the method in the test is specifically named bar
, that's somehow being interpreted as a |
character name-mangled as $bar
. heh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bantonsson Really nice! I guess now it's on @SethTisue (or someone else in the Scala team) to update Scala so that lambdas are generated with the |
it appears to me that scalac already generates lambdas with @bantonsson so that explains why the tests you wrote are already passing! and why they still pass even if I take out your |
@SethTisue Thanks a lot for clearing up this confusion. I have no idea how we missed the |
@bantonsson Excellent! |
* Added checks for the Java ACC_SYNTHETIC flag that means that the method isn't accesible from Java source * Added exception for Java ACC_BRIDGE flag, which is set on erased apply methods together with ACC_SYNTHETIC
…abs#36 The correctly typed apply method is already reported so don't report the erased method as well.
29a1d52
to
ec87be9
Compare
…-lambdas Ignore added/removed and changed anonymous lambdas for Scala 2.12.x
really appreciate y'all tackling this |
🌈 |
Fixes #78 (at least the problem described in that ticket)