Multiple markers at this line
– Syntax error, parameterized types are only available if source level is 1.5 or greater
– Incorrect number of arguments for type HashMap<K,V>; it cannot be parameterized with
arguments <>
Solution:
1,In eclipse menu Window—-preferences—-java—–compiler change the Compiler compliance level to 1.6 in the right
2,Right click the project, modify properties, find java compiler modify the compiler compliance level to 1.6
Similar Posts:
- Type safety: unchecked cast from object to
- [Solved] Eclipse project red exclamation mark: build path problem
- JAVA: How to Solve @override error
- An error is reported after eclipse changes the JDK version
- java.lang.UnsupportedClassVersionError: Bad version number in .class file
- How to Solve JAVA @override error
- Eclipse Unable to install breakpoint in XXX [How to Solve]
- What are the reasons for the faceted project problem in Java Web project
- [IDEA] Maven Run Project Error: Diamond operator is not supported in – source 1.5″
- [Solved] Maven Error: No compiler is provided in this environment. Perhaps you are running on a JRE rather t…