You should use
pos = new int[]{1,2,3};
You can only use the abbreviated syntax int[] pos = {0,1,2}; at variable initialization time.
private int[] values1 = new int[]{1,2,3,4};
private int[] values2 = {1,2,3,4}; // short form is allowed only at variable initialization