DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Invalid syntax error
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Cool 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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid project descriptions - overlaps mikereiche Eclipse 0 06-05-2009 04:10 PM
Search results including invalid hits osbald Feedback 1 03-25-2009 09:02 AM
code syntax highlighting in SWT markitus Java 0 12-03-2008 07:59 AM
E-mail syntax restriction too strict Trinition Feedback 0 08-15-2008 11:05 AM
Question/Problem w/ my Program....I'm I missing something here in my syntax?? thx Felipe M Java 1 03-04-2008 04:13 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com