diff options
Diffstat (limited to 'tests/bugs164')
-rw-r--r-- | tests/bugs164/pr265695/Asp.aj | 9 | ||||
-rw-r--r-- | tests/bugs164/pr265695/AspNew.aj | 8 |
2 files changed, 6 insertions, 11 deletions
diff --git a/tests/bugs164/pr265695/Asp.aj b/tests/bugs164/pr265695/Asp.aj index 296cb1f36..50df2bbce 100644 --- a/tests/bugs164/pr265695/Asp.aj +++ b/tests/bugs164/pr265695/Asp.aj @@ -13,18 +13,18 @@ interface DemoService { class DemoServiceImpl implements DemoService { - public void secureMethod() { } + public void secureMethod() { } } aspect X { // None of these match, the subject at execution(secureMethod()) does not have the annotation - // see http://www.eclipse.org/aspectj/doc/next/adk15notebook/join-point-modifiers.html + // see https://www.eclipse.org/aspectj/doc/next/adk15notebook/join-point-modifiers.html before(): execution(@Secured * *Service+.*(..)) { } - + before(): execution(@Secured * *Service.*(..)) { } before(): execution(@Secured * DemoService.*(..)) { } - + } public class Asp { @@ -32,4 +32,3 @@ public class Asp { new DemoServiceImpl().secureMethod(); } } - diff --git a/tests/bugs164/pr265695/AspNew.aj b/tests/bugs164/pr265695/AspNew.aj index ae99590fb..3f61600e6 100644 --- a/tests/bugs164/pr265695/AspNew.aj +++ b/tests/bugs164/pr265695/AspNew.aj @@ -11,17 +11,14 @@ interface DemoService { void secureMethod(); } - class DemoServiceImpl implements DemoService { - public void secureMethod() { } + public void secureMethod() { } } aspect X { // None of these match, the subject at execution(secureMethod()) does not have the annotation - // see http://www.eclipse.org/aspectj/doc/next/adk15notebook/join-point-modifiers.html + // see https://www.eclipse.org/aspectj/doc/next/adk15notebook/join-point-modifiers.html before(): execution(@Secured! * *Service+.*(..)) { } - - } public class AspNew { @@ -29,4 +26,3 @@ public class AspNew { new DemoServiceImpl().secureMethod(); } } - |