When I use the Java 8 method reference double colon operator (::) with new operator (e.g. MyType::new), I get this error in Eclipse of Spring Tool suit
::
MyType::new
Error description is provided in Stephan Herrmann's comment. There is open Eclipse issue to make this issue more user friendly.
Solution is to include following dependency:
org.eclipse.jdt org.eclipse.jdt.annotation 2.0.0