Set source level to 1.6 to compile in Eclipse.