diff options
author | aclement <aclement> | 2006-01-13 17:07:57 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-01-13 17:07:57 +0000 |
commit | dd1203a376d6b0dcc865735cf50288a83e710b05 (patch) | |
tree | f3ff2e94d970544d2e9db9c7b5bcdb7e2f691983 /ajdoc/testdata/declareForms/DeclareCoverage2.aj | |
parent | ab2150f267eef2ec565cc596b2e0e0412a3bd290 (diff) | |
download | aspectj-dd1203a376d6b0dcc865735cf50288a83e710b05.tar.gz aspectj-dd1203a376d6b0dcc865735cf50288a83e710b05.zip |
more ajdoc changes - see pr121711 - from Helen.
Diffstat (limited to 'ajdoc/testdata/declareForms/DeclareCoverage2.aj')
-rw-r--r-- | ajdoc/testdata/declareForms/DeclareCoverage2.aj | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/ajdoc/testdata/declareForms/DeclareCoverage2.aj b/ajdoc/testdata/declareForms/DeclareCoverage2.aj index 6300298e9..1ea6b6322 100644 --- a/ajdoc/testdata/declareForms/DeclareCoverage2.aj +++ b/ajdoc/testdata/declareForms/DeclareCoverage2.aj @@ -2,20 +2,23 @@ package foo; public aspect DeclareCoverage2 { - pointcut illegalNewFigElt(): call(Point.new(..)) && !withincode(* *.doIt(..)); + pointcut illegalNewFigElt(): call(Point2.new(..)) && !withincode(* *.doIt(..)); declare error: illegalNewFigElt(): "Illegal constructor call."; - declare warning: call(* Point.setX(..)): "Illegal call."; + declare warning: call(* Point2.setX(..)): "Illegal call."; + declare warning : execution(* Point2.setX(..)) : "blah"; - declare parents: Point extends java.io.Serializable; - declare parents: Line implements java.util.Observable; - declare soft: SizeException : call(* Point.getX()); - declare precedence: DeclareCoverage2, InterTypeDecCoverage, *; + declare parents: Point2 implements java.io.Serializable; + declare soft: SizeException2 : call(* Point2.getX()); + declare precedence: DeclareCoverage2, InterTypeDecCoverage2, *; } -aspect InterTypeDecCoverage {} +aspect InterTypeDecCoverage2 {} -class Point { +/** + * comment about class Point2 + */ +class Point2 { int x = 2; public void setX(int x) { @@ -27,18 +30,18 @@ class Point { } } -class Line { +class Line2 { } -class SizeException extends Throwable { } +class SizeException2 extends Throwable { } -class Main { +class Main2 { public static void main(String[] args) { } public void doIt() { - Point p = new Point(); + Point2 p = new Point2(); p.setX(3); p.getX(); } |