JDK8 - Type java.util.Map $ Entry cannot be resolved

I am using a class java.util.TreeSetin my project. It compiles fine with JDK7, but when I use JDK8 to compile the program. It shows a compile time error.

The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

Is this some kind of encoding problem or something else? how can i solve this?

+4
source share
3 answers

I updated my application server for glass and solved my problem.

+1
source

I met Tomcat 7.0. I solved this by upgrading Tomcat to 8.0 or replacing ect.jar with the latest.

+1
source

@Sky provided the only suggestion that worked for me - in tomcat / lib replace ecj-x.jar with a newer version.

0
source

Source: https://habr.com/ru/post/1541738/


All Articles