|
Invalid syntax error -
06-12-2009, 02:34 PM
I'm using Eclipse Platform, Version: 3.3.2, Build id: M20080221-1800 and Java 1.6 build 13.
I'm having a persistent but intermittent invalid syntactical error messages. An example:
The code: this.mLog.error(<error message>);
The error message: 'Unqualified access to the field <class>.<field>'
Not having "this." before the class member variable WILL cause that error message and having "this." should eliminate that error message. In most cases, if I delete "this." and reenter it, the error message will go away but not always.
Another one is where I override a method and get the message that the annotation "@Override" should be entered before the method. I do that and the message goes away. Sometimes, the error message returns. Deleting that line and reentering usually causes the message to go away.
Any ideas why this is happening? I could turn off those warnings but I'd prefer to keep them.
Thanks!
|