Attached please find a strippled down java-demo case that I have. This project (4 java files) compiles under Oracle JDK6 using Maven. The IntelliJ IDEA (12 CE) also able to "Make" the project without errors. However when I open the FooMain.java file in editor, it shows a RED error line that says something like "The parameter can not be applied". So I have two questions:
1) Why IntelliJ proceed to tell me RED errors when the source files compiled fine? Is this a bug or expected? I am using default settings from the IDEA CE 12.0, and I have not change any validation rules.
2) I understand that the provided Java demo code is not the best way to use generics, but it compiles and I am not able to change the similar usage in my real code due to many reasons. So now, how do I disable this RED error in IntelliJ so I can view the rest of the project code without hindering?