}
public boolean isTargettingAspectJRuntime12() {
- return getTargetAspectjRuntimeLevel().equals(org.aspectj.weaver.Constants.RUNTIME_LEVEL_12);
+ boolean b = false; // pr116679
+ if (!isInJava5Mode()) b=true;
+ else b = getTargetAspectjRuntimeLevel().equals(org.aspectj.weaver.Constants.RUNTIME_LEVEL_12);
+ //System.err.println("Asked if targetting runtime 1.2 , returning: "+b);
+ return b;
}
/*
public boolean regenerate = false;
public boolean runTests = true;
+ public boolean behave15 = false;
File outDir;
String outDirPath;
public void weaveTest(String name, String outName, List planners) throws IOException {
BcelWeaver weaver = new BcelWeaver(world);
+ try {
+ if (behave15) world.setBehaveInJava5Way(true);
- UnwovenClassFile classFile = makeUnwovenClassFile(classDir, name, outDirPath);
+ UnwovenClassFile classFile = makeUnwovenClassFile(classDir, name, outDirPath);
- weaver.addClassFile(classFile);
- weaver.setShadowMungers(planners);
- weaveTestInner(weaver, classFile, name, outName);
+ weaver.addClassFile(classFile);
+ weaver.setShadowMungers(planners);
+ weaveTestInner(weaver, classFile, name, outName);
+ } finally {
+ if (behave15) world.setBehaveInJava5Way(false);
+ }
}