]> source.dussan.org Git - aspectj.git/commitdiff
77166 - newarray joinpoint support. "-Xjoinpoints:arrayconstruction"
authoraclement <aclement>
Fri, 20 Jan 2006 11:23:09 +0000 (11:23 +0000)
committeraclement <aclement>
Fri, 20 Jan 2006 11:23:09 +0000 (11:23 +0000)
loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
loadtime/src/org/aspectj/weaver/loadtime/Options.java

index 9c888fccf206a5e8ee90d92af066c7dc24b02de4..91fc89146225293a3d2a3de8184c0d1bfd84cf15 100644 (file)
@@ -214,6 +214,7 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor {
         setMessageHandler(weaverOption.messageHandler);
         world.setXlazyTjp(weaverOption.lazyTjp);
         world.setXHasMemberSupportEnabled(weaverOption.hasMember);
+        world.setOptionalJoinpoints(weaverOption.optionalJoinpoints);
         world.setPinpointMode(weaverOption.pinpoint);
         weaver.setReweavableMode(weaverOption.notReWeavable);
         world.setXnoInline(weaverOption.noInline);
index 2cad59e759b6cc8a2d1d394bb34c4434317a2eb6..65d837d400773cf641aa501fe93ce70a89c7650a 100644 (file)
@@ -43,6 +43,7 @@ public class Options {
     private final static String OPTIONVALUED_messageHandler = "-XmessageHandlerClass:";
     private static final String OPTIONVALUED_Xlintfile = "-Xlintfile:";
     private static final String OPTIONVALUED_Xlint = "-Xlint:";
+    private static final String OPTIONVALUED_joinpoints = "-Xjoinpoints:";
 
 
     public static WeaverOption parse(String options, ClassLoader laoder, IMessageHandler imh) {
@@ -97,6 +98,9 @@ public class Options {
                 weaverOption.showWeaveInfo = true;
             } else if (arg.equalsIgnoreCase(OPTION_hasMember)) {
                 weaverOption.hasMember = true;
+            } else if (arg.startsWith(OPTIONVALUED_joinpoints)) {
+               if (arg.length()>OPTIONVALUED_joinpoints.length()) 
+               weaverOption.optionalJoinpoints = arg.substring(OPTIONVALUED_joinpoints.length()).trim();
             }  else if (arg.equalsIgnoreCase(OPTION_verbose)) {
                 weaverOption.verbose = true;
             } else if (arg.equalsIgnoreCase(OPTION_pinpoint)) {
@@ -141,6 +145,7 @@ public class Options {
         boolean java5;
         boolean lazyTjp;
         boolean hasMember;
+        String optionalJoinpoints;
         boolean noWarn;
         boolean proceedOnError;
         boolean verbose;