Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in method reference in Java8.
When using method references to methods that have the same signature but from different classes, wrong method was called. For example, f(A::id); f(B::id); A and B both have method id() with the same signature, B::id() is not called correctly. The reason is that the generated names of inner lambda class were the same since they have the same method signature, thus only one lambda class was created for A::id and B::id. Fix the issue by adding class name to the generated inner class name to identify different methods. Bug: issue 9040 Change-Id: Ibc6b12d26d473ab32b821bb2202e78ae92670774
- Loading branch information
Ye Wang
committed
Mar 5, 2015
1 parent
39c9e6c
commit bb9f41b
Showing
6 changed files
with
242 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.