Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6944641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:19:59+00:00 2026-05-27T13:19:59+00:00

What is the format problem with this pointcut? @Around(execution(* @myPackage.SafetyCritical.*(*))&& @annotation(deny)) .i forgot to

  • 0

What is the format problem with this pointcut?

@Around("execution(* @myPackage.SafetyCritical.*(*))&& @annotation(deny)")

.i forgot to add: exception is “Pointcut is not well-formed: expecting ‘name pattern’ (last closing bracket before &&)

for an example the pointcut should work with this class:

@SafetyCritical
public class SecureClass
{

    public SecureClass(){

    }
    @Deny
    public void isNotAllowed(){
        System.out.println("This should not happen");

    }

    @Allow
    public void isAllowed(){
        System.out.println("Allowed");

    }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:20:00+00:00Added an answer on May 27, 2026 at 1:20 pm

    EDIT:

    I think the pointcut expression you are looking for would be more like this:

    @Around("@target(myPackage.SafetyCritical) && @annotation(denyPackage.Deny)")
    

    The @target designator is used to match classes that are marked with the given annoation, and the @annotation designator will filter to the methods annotated with the denyPackage.Deny annotation.

    Again, a look through the Spring Documentation regarding AspectJ support would be helpful.

    ORIGINAL:

    To match on any number of arguments, the parameters definition passed to the execution pointcut designator should be ‘..’

    @Around("execution(* myPackage.SafetyCritical.*(..)) && @annotation(deny)")
    

    The Spring documentation has some examples of using this to denote accepting any number of arguments.

    Also, I would venture to guess that that having the ‘@’ symbol in front of your package name is not acceptable. You should remove it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem with Safari not recognizing the date format 2012-01-03 (being 2012
This should be an easy problem but... I need to format a currency for
maybe I will not correct explain a problem, maybe somebody help me explain this
I have this problem i cant workaround. I cache data in serialized format in
I'm just not sure how to approach this problem. This is the error message
I can format the Get-Date cmdlet no problem like this: $date = Get-Date -format
Can you help me solve this problem? I've not managed to find any documentation
I have problems with following code: http://lisper.ru/apps/format/96 The problem is in normalize function, which
Original problem: What is the right column format for a unix timestamp? The net
I'm having a problem trying to format the output on the jQuery UI datepicker.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.