It looks like ModifiersPattern needs to be updated.
static {
modifierFlags = new HashMap<String, Integer>();
int flag = 1;
while (flag <= Modifier.STRICT) {
String flagName = Modifier.toString(flag);
modifierFlags.put(flagName, new Integer(flag));
flag = flag << 1;
}
}
public static final int STRICT = 0x00000800;
// Bits not (yet) exposed in the public API either because they
// have different meanings for fields and methods and there is
no
// way to distinguish between the two in this class, or because
// they are not Java programming language keywords
static final int BRIDGE = 0x00000040;
static final int VARARGS = 0x00000080;
static final int SYNTHETIC = 0x00001000;
static final int ANNOTATION= 0x00002000;
static final int ENUM = 0x00004000;
static boolean isSynthetic(int mod) {
return (mod & SYNTHETIC) != 0;
}
On 14/10/2010 17:59, William Louth (JINSPIRED.COM) wrote:
Is
it possible to use "synthetic" as a valid modifier label in a
pointcut? Any specification of this modifier results in a parser
exception. Maybe I am missing something.
|