
'<>' cannot be used with anonymous classes
'<>'不能与匿名类一起使用
Description Resource Path Location Type
'<>' cannot be used with anonymous classes SearchHitSupport.java /spring-data-elasticsearch/src/main/java/org/springframework/data/elasticsearch/core line 95 Java Problem
java - Compile error: "'<>' cannot be used with anonymous classes" - Stack Overflow

But the Java compiler gives me the following error message:
'<>' cannot be used with anonymous classes
Is there a fundamental reason for this? Or did the just skip the feature in JDK 7, maybe they do it in 8?

'<>' operator is not allowed for source level below 1.7_spencer_tseng的博客-CSDN博客