Bug 41519 - Problems with &&!within(com..Classname)
Summary: Problems with &&!within(com..Classname)
Status: RESOLVED INVALID
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-13 19:14 EDT by Arno CLA
Modified: 2003-08-21 07:41 EDT (History)
0 users

See Also:


Attachments
A small testcase which describes the error in more details (7.84 KB, application/octet-stream)
2003-08-13 19:17 EDT, Arno CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arno CLA 2003-08-13 19:14:00 EDT
Hello,
I have a problem where some joinpoints are selected, even if they are excluded 
by some a &&(!within(com..SomeClass)).

However this pattern works well if used in the same package. 

I will attach a short testcase.
I appologize, if this is a fault in my code, because it is getting quite late 
here now.

Feel free to include the submitted code, in the testcases.

kind regards 
   Arno 

email Arno@aspectsoft.de
Comment 1 Arno CLA 2003-08-13 19:17:31 EDT
Created attachment 5754 [details]
A small testcase which describes the error in more details
Comment 2 Wes Isberg CLA 2003-08-21 05:33:12 EDT
I can't tell from the test case what exactly you expected, but in one place I
believe you left out some parentheses:

from:  get(* System.out) || get(* System.err)  && (!within(com..*Test*))
  to: (get(* System.out) || get(* System.err)) && (!within(com..*Test*))

Would you confirm whether that solves the problem, and resolve the bug as
NOTABUG if so?  If not, please specify what files should be compiled (presumably
all) and what warnings you expected and got.  Thanks!
Comment 3 Arno CLA 2003-08-21 07:41:51 EDT
Wes missing brackets in the definition caused the problem