]> source.dussan.org Git - aspectj.git/commitdiff
fix for 83052
authoraclement <aclement>
Tue, 30 May 2006 13:49:27 +0000 (13:49 +0000)
committeraclement <aclement>
Tue, 30 May 2006 13:49:27 +0000 (13:49 +0000)
weaver/src/org/aspectj/weaver/WeaverMessages.java
weaver/src/org/aspectj/weaver/tools/UnsupportedPointcutPrimitiveException.java
weaver/src/org/aspectj/weaver/weaver-messages.properties

index 2d877f22f68f2fc285796b27bc927fcd688a5145..036c03921721534fc84780670dc1a021c760539f 100644 (file)
@@ -32,6 +32,7 @@ public class WeaverMessages {
        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";
index 49f6555f6fb31287be75a5e654f353b8c8f63572..6e0bbd661305119b140f2f24693f49575ebf9ec2 100644 (file)
@@ -11,6 +11,8 @@
  * ******************************************************************/
 package org.aspectj.weaver.tools;
 
+import org.aspectj.weaver.WeaverMessages;
+
 /**
  * @author colyer
  *
@@ -23,8 +25,7 @@ public class UnsupportedPointcutPrimitiveException extends RuntimeException {
        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;
        }
index bb80d7bc8c939fde46d4bde7d44e1f994ada8173..9e90b718301f6a6fbb6e382b6989c778c03ecbd5 100644 (file)
@@ -27,6 +27,7 @@ cantBindType=can''t bind type name ''{0}''
 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