File: Bug578145LambdaInStaticInitializer.java

package info (click to toggle)
eclipse-jdt-debug 4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,876 kB
  • sloc: java: 234,390; xml: 6,367; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.Arrays;
import java.util.List;

public class Bug578145LambdaInStaticInitializer {

	static {
		int numberInStaticInitializer = 1;
		List<String> staticList = Arrays.asList("Lambda");

		staticList.stream().forEach((name) -> {
			int numberInLambda = 10;
			System.out.println(name); // Add breakpoint here
		});
	}

	public static void main(String[] args) {
		Bug578145LambdaInStaticInitializer instance = new Bug578145LambdaInStaticInitializer();
	}
}