I attached a screenshot from one of our weblogic-ejb-jar files to demonstrate the problem. There is nothing syntactically wrong with the file and sometimes it actually opens up in the editor w/o errors. Most of the time it shows the errors which confuses some devs into thinking the file has syntax errors when it does not. I can't explain it. It seems to be a bug with how Intellij parses the file sometimes. If the errors are visible simply adding whitespace (a newline specifically causes all the errors to disappear). it's an odd one for sure.
Attachment(s):Screen Shot 2014-10-09 at 1.39.40 PM.png