Suppose this code snippet:
import java.util.HashMap;
import java.util.Map;
public class Test {
public static void main(String[] args) {
Map<String, String=""> map = new HashMap<>();
}
}
Checkstyle 5.4.1 will fail with:
Got an exception - expecting EOF, found '}'
eclipse-cs ver: 5.4.1.201109192037
Eclipse ver: Indigo Service Release 1
JDK: 1.7.0
Checkstyle core does not support Java 7 yet.
Is a Java 7 support on the Checkstyle roadmap?
That would depend on the Checkstyle core project (http://checkstyle.sf.net), but as far as I understand their mailing list traffic it is in the works...
This is good enough for me. Thank you.
Checkstyle 5.5 with Java 7 support was released a few days ago:
http://checkstyle.sourceforge.net/releasenotes.html
Could this issue therefore please be reopened?
Please refer to this tracker item:
https://sourceforge.net/tracker/?func=detail&aid=3434509&group_id=80344&atid=559497
Please check out this pre-release version:
http://eclipse-cs.sourceforge.net/net.sf.eclipsecs-updatesite_5.5.0.201111082308-bin.zip