Commit b735954
committed
Java frontend: support lambdas that implicitly box to Object
This broadens our support for lambdas with implicit boxing/unboxing conversions
to include those that use a method-reference to a method with type Object -> x
to satisfy a functional interface of type primitive -> x (requiring boxing the
parameter and then upcasting to Object), or a method with type x -> primitive
satisfying an interface of type x -> Object (requiring the same conversion on
the return value).1 parent 5ec200c commit b735954
File tree
8 files changed
+50
-6
lines changed- jbmc
- regression/jbmc/lambda-boxing
- src/java_bytecode
8 files changed
+50
-6
lines changedBinary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
667 | 665 | | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
671 | 669 | | |
672 | 670 | | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | 671 | | |
677 | 672 | | |
678 | 673 | | |
| |||
682 | 677 | | |
683 | 678 | | |
684 | 679 | | |
685 | | - | |
| 680 | + | |
686 | 681 | | |
687 | 682 | | |
688 | 683 | | |
| |||
0 commit comments