summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/World.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/World.java b/org.aspectj.matcher/src/org/aspectj/weaver/World.java
index 85eaad9e5..53b0bfd83 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/World.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/World.java
@@ -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");