From cbdbc8b60f8aa741c8d080bff504a28d71304879 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 23 Aug 2010 20:44:14 +0000 Subject: [PATCH] 323438 --- .../src/org/aspectj/weaver/World.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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"); -- 2.39.5