]> source.dussan.org Git - aspectj.git/commitdiff
323438
authoraclement <aclement>
Mon, 23 Aug 2010 20:44:14 +0000 (20:44 +0000)
committeraclement <aclement>
Mon, 23 Aug 2010 20:44:14 +0000 (20:44 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/World.java

index 85eaad9e5ed6fd1bad46564a6c9cb473dc9f6121..53b0bfd8387a2bcae6e5fb69ecdc6cecbcc605a7 100644 (file)
@@ -9,7 +9,7 @@
  *  
  * Contributors: 
  *     PARC     initial implementation
- *     Adrian Colyer, Andy Clement, overhaul for generics 
+ *     Adrian Colyer, Andy Clement, overhaul for generics, Abraham Nevado 
  * ******************************************************************/
 
 package org.aspectj.weaver;
@@ -140,6 +140,7 @@ public abstract class World implements Dump.INode {
 
        // Minimal Model controls whether model entities that are not involved in relationships are deleted post-build
        private boolean minimalModel = false;
+       private boolean targettingRuntime1_6_10 = false;
 
        private boolean completeBinaryTypes = false;
        private boolean overWeaving = false;
@@ -810,6 +811,11 @@ public abstract class World implements Dump.INode {
                return minimalModel;
        }
 
+       public boolean isTargettingRuntime1_6_10() {
+               ensureAdvancedConfigurationProcessed();
+               return targettingRuntime1_6_10;
+       }
+
        public void setBehaveInJava5Way(boolean b) {
                behaveInJava5Way = b;
        }
@@ -926,6 +932,7 @@ public abstract class World implements Dump.INode {
        public final static String xsetITD_VERSION_2NDGEN = "2";
        public final static String xsetITD_VERSION_DEFAULT = xsetITD_VERSION_2NDGEN;
        public final static String xsetMINIMAL_MODEL = "minimalModel";
+       public final static String xsetTARGETING_RUNTIME_1610 = "targetRuntime1_6_10";
 
        public boolean isInJava5Mode() {
                return behaveInJava5Way;
@@ -1511,6 +1518,11 @@ public abstract class World implements Dump.INode {
                                        minimalModel = true;
                                }
 
+                               s = p.getProperty(xsetTARGETING_RUNTIME_1610, "false");
+                               if (s.equalsIgnoreCase("true")) {
+                                       targettingRuntime1_6_10 = true;
+                               }
+
                                s = p.getProperty(xsetFAST_PACK_METHODS, "true");
                                fastMethodPacking = s.equalsIgnoreCase("true");