Diamond operator(<>) not working in java 1.7

前端 未结 3 1606
感动是毒
感动是毒 2020-12-21 15:39

I have the following error for compiling a jsp file:

\'<>\' operator is not allowed for source level below 1.7

I\'m using

3条回答
  •  旧时难觅i
    2020-12-21 16:05

    So the only way it seems now is that your application server, eg tomcat is configured for jdk version lower than 1.7. check what version of java is being pointed by JAVA_HOME environment variable on your system.If you correct that, it should solve your problem.

提交回复
热议问题