I created an Intellij project under JDK 1.6. Then I installed JDK 1.7 and removed JDK 1.6.
When I opened the project, I changed JDK to 1.7 in the Project structure dialog.
But my files are not recompiled - if I add errors into my code and select Build -> Rebuild project, no compiler errors appear.
I also tried File -> Invalidate caches without any result.
How can I enable compilation of my source code again?
I'm using IntelliJ IDEA 12.1.4 Ultimate.
Update 1 (23.09.2013 18:48 MSK): I forgot to mention that all Java files appear with a small red J near them.