Bug 64568 - Wildcarding in ITDs needs clearer compiler error message.
Summary: Wildcarding in ITDs needs clearer compiler error message.
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 1.5.0 M3   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-28 11:21 EDT by George Harley CLA
Modified: 2005-08-19 08:03 EDT (History)
0 users

See Also:


Attachments
Test case (425 bytes, application/x-zip-compressed)
2004-05-28 11:24 EDT, George Harley CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Harley CLA 2004-05-28 11:21:04 EDT
If a user attempts to define an ITD using a type pattern (illegal since
AspectJ 1.1) they get back a compiler error message of the following
form :-

MyAspect.java:4 error Syntax error on token "*", around expected
public String foo.bar.*.name;

A clearer error message informing the user of their use of illegal 
syntax would help.
Comment 1 George Harley CLA 2004-05-28 11:24:04 EDT
Created attachment 11277 [details]
Test case

Just unzip and then run the command "ajc MyAspect.java foo\bar\A.java" .

Should result in the "around expected" error message.
Comment 2 Adrian Colyer CLA 2005-03-22 09:08:28 EST
A simple thing to look at in M3 whilst we have the parser open for surgery...
Comment 3 Adrian Colyer CLA 2005-08-19 08:03:16 EDT
it now says:

syntax error on token "*", delete this token

public String foo.bar.*.name;
                      ^

you wouldn't believe how difficult that was to do!