Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Syntax error on tokens, delete these tokens

Mike,

You may be referring to an Eclipse eager parser issue. The Eclipse java parser attempts to make sure that all of your .java files are theoretically compilable. It often trips over AspectJ contstructs (for instance ITD methods). However when the aspectj builder runs, it understands the aspectj syntax and no actual error is produced. In my experience, you have to live with some of these "false errors" if you wish the eager parser to check your vanilla java code for your. In practice it's not much of a pain.

However, I may be misdiagnosing your problem.

Also Ron's advice stands. The 1.2 compiler is faster and more correct than anything in the 1.1 stream (IMO). The new AJDT plugins are similarly better behaved. There's no reason not to switch.

Cheers,
Nick

On Jun 18, 2004, at 9:11 AM, Ron Bodkin wrote:

<x-tad-bigger>Hi Michael,</x-tad-bigger>

<x-tad-bigger> </x-tad-bigger>

<x-tad-bigger>AJDT 1.1.4 won't work in Eclipse M9. You should upgrade to AspectJ 1.1.10; this works in M9 and includes support for AspectJ 1.2 (which is definitely worth upgrading to).</x-tad-bigger>

<x-tad-bigger> </x-tad-bigger>

<x-tad-smaller>Ron Bodkin</x-tad-smaller>
<x-tad-smaller>Chief Technology Officer</x-tad-smaller>
<x-tad-smaller>New Aspects of Software</x-tad-smaller>
<x-tad-smaller>o: (415) 824-4690</x-tad-smaller>
<x-tad-smaller>m: (415) 509-2895</x-tad-smaller>
<x-tad-bigger> </x-tad-bigger>

<x-tad-bigger> </x-tad-bigger>

<x-tad-bigger>------------Original Message------------</x-tad-bigger>

<x-tad-bigger>From: "Michael Oliver" <oliverm@xxxxxxxxxxxxxxxx></x-tad-bigger>

<x-tad-bigger>To: <aspectj-users@xxxxxxxxxxx></x-tad-bigger>

<x-tad-bigger>Date: Fri, Jun-18-2004 8:41 AM</x-tad-bigger>

<x-tad-bigger>Subject: [aspectj-users] Syntax error on tokens, delete these tokens</x-tad-bigger>

<x-tad-bigger>I thought I posted this already but it doesn’t show.</x-tad-bigger>

 

<x-tad-bigger>I am getting this message on a .java source file in eclipse m9 with AspectJ 1.1.4 on an old (Dec 03) source file in a project I imported.</x-tad-bigger>

 

<x-tad-bigger>Ant does a good build and all the libraries seem to be in place.</x-tad-bigger>

 

<x-tad-bigger>All the source is underlined to show the syntax error, but it compiles and weaves….</x-tad-bigger>

 

<x-tad-bigger>What gives?</x-tad-bigger>

 

Michael Oliver

CTO

Matrix Intermedia Inc.

3325 N. Nellis Blvd, #1

Las Vegas, NV 89115

Phone:(702)643-7425

Fax:(520)844-1036

 

Nicholas Lesiecki
Software Craftsman, specializing in J2EE,
Agile Methods, and aspect-oriented programming

Books:
* Mastering AspectJ: http://tinyurl.com/66vf
* Java Tools for Extreme Programming: http://tinyurl.com/66vt

Articles on AspectJ:
* http://tinyurl.com/66vu and http://tinyurl.com/66vv

Back to the top