public static final String WILDCARD_NOT_ALLOWED = "wildcardTypePatternNotAllowed";
public static final String FIELDS_CANT_HAVE_VOID_TYPE = "fieldCantBeVoid";
public static final String NO_NEWARRAY_JOINPOINTS_BY_DEFAULT = "noNewArrayJoinpointsByDefault";
+ public static final String UNSUPPORTED_POINTCUT_PRIMITIVE = "unsupportedPointcutPrimitive";
public static final String DECP_OBJECT = "decpObject";
public static final String CANT_EXTEND_SELF="cantExtendSelf";
* ******************************************************************/
package org.aspectj.weaver.tools;
+import org.aspectj.weaver.WeaverMessages;
+
/**
* @author colyer
*
private String pointcutExpression;
public UnsupportedPointcutPrimitiveException(String pcExpression, PointcutPrimitive primitive) {
- super("Pointcut expression " + pcExpression + " contains unsupported pointcut primitive '" +
- primitive.getName() + "'");
+ super(WeaverMessages.format(WeaverMessages.UNSUPPORTED_POINTCUT_PRIMITIVE,pcExpression,primitive.getName()));
this.pointcutExpression = pcExpression;
this.unsupportedPrimitive = primitive;
}
wildcardTypePatternNotAllowed=wildcard type pattern not allowed, must use type name
fieldCantBeVoid=fields cannot have a void type
noNewArrayJoinpointsByDefault=There are no join points for array construction unless -Xjoinpoints:arrayconstruction is specified
+unsupportedPointcutPrimitive=Pointcut expression ''{0}'' contains unsupported pointcut primitive ''{1}''
# Declare parents messages...
decpObject=can''t change the parents of java.lang.Object