Summary: | Allow args test for inexact type pattern when not binding | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Ron Bodkin <rbodkin+LISTS> |
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | DEVELOPMENT | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Ron Bodkin
2006-10-31 01:49:01 EST
Sample program: public aspect FirstArg { public pointcut firstString(String first) : args(first, ..) || (!args(String, ..) && args(*, first, ..)); before(String first) : firstString(first) { System.out.println("At "+thisJoinPoint+", first is "+first); } public static void main(String argz[]) { one("test"); two("more", "test"); three("top", "more", "test"); } static void one(String z) {} static void two(String y, String z) {} static void three(String x, String y, String z) {} } |