Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

Getting an error while making the below staticInitialisation advice generic

$
0
0

Since the below given advice works only for a specific class

@Before("staticinitialization(org.mazouz.aop.Main1)")

I tried to make the advice generic such that it can work for any package

@Before("staticinitialization(*.*.*(..))")

Im getting the below error

Syntax error on token "staticinitialization(*.*.*(..))", ")" expected

Viewing all articles
Browse latest Browse all 12141

Trending Articles