live templates in lambdas - are they supportet in IDEA 12?

I am currently using IDEA V 123.23 to evaluate Java 8 lambda support. It seems that the "sout" template does not work inside a lambda:

ArrayList<String> resultList = new ArrayList<>();

...

resultList.stream().forEach(s -> sout     );

Manually entering works:

ArrayList<String> resultList = new ArrayList<>();

...

resultList.stream().forEach(s -> System.out.println(s));

IDEA allso correctly suggest to use a method reference:

resultList.stream().forEach(System.out::println);

Are there any restrictions on live template usage inside lambdas or is this a bug?

Please sign in to leave a comment.