Unclear rules define the type for “T…”

前端 未结 1 522
生来不讨喜
生来不讨喜 2021-02-06 18:44

One of the tests below is not working. Why?

public class SortedInterfacesTest {

private static final Logger log = LoggerFactory.getLogger(SortedInterfacesTest.c         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-06 19:29

    A new bug has been registered as JDK-8191655. Workaround: use a normal lambda expression instead of a method reference.

    0 讨论(0)
提交回复
热议问题