Bug 44736 - using == false in pointcuts confuses the compiler
Summary: using == false in pointcuts confuses the compiler
Status: RESOLVED DUPLICATE of bug 42660
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-13 05:49 EDT by attila lendvai CLA
Modified: 2004-01-07 04:37 EST (History)
1 user (show)

See Also:


Attachments
file that confuses compiler (216 bytes, text/plain)
2003-10-13 05:52 EDT, attila lendvai CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description attila lendvai CLA 2003-10-13 05:49:46 EDT
see example file
Comment 1 attila lendvai CLA 2003-10-13 05:52:21 EDT
Created attachment 6409 [details]
file that confuses compiler

     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:6
Return type for the method is missing
     [iajc] execution(void A.foo()) &&
     [iajc] ^^^^^^^^^^
     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:6
Syntax error on token ")", "{" expected
     [iajc] execution(void A.foo()) &&
     [iajc]			  ^
     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:7
Unmatched bracket
     [iajc] cflowbelow(call(void A.bar())) == false
     [iajc]		   ^
     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:7
Unmatched bracket
     [iajc] cflowbelow(call(void A.bar())) == false
     [iajc]				^
     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:7
Syntax error on token ")", "{" expected
     [iajc] cflowbelow(call(void A.bar())) == false
     [iajc]				^
     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:7
Unmatched bracket
     [iajc] cflowbelow(call(void A.bar())) == false
     [iajc]				 ^
     [iajc]
D:\work\granite\Repository\nvsr\src\web\java\com\netvisor\nvsr\web\Test.aj:7
Syntax error on token "==", "{" expected
     [iajc] cflowbelow(call(void A.bar())) == false
     [iajc]				   ^^

     [iajc] 7 errors

BUILD FAILED





changing == false to ! solves the problem
Comment 2 George Harley CLA 2003-10-16 10:13:27 EDT
Is this really an AspectJ bug ? It just looks like incorrect use of the 
language.
Comment 3 Jim Hugunin CLA 2004-01-07 04:37:58 EST
This is another case of the referenced enhancement request 42660 

*** This bug has been marked as a duplicate of 42660 ***