I just encountered a strange error when switching the JDK version of a new Project of mine from 7u45 to 8u20. A harmless LogManager declaration at the beginning of my class
Solution 1:
Try changing the source level.
Solution 2: