import org.aspectj.tools.ajc.AjcTestCase;
import org.aspectj.util.FileUtil;
-import static org.aspectj.util.LangUtil.is9VMOrGreater;
+import static org.aspectj.util.LangUtil.is16VMOrGreater;
/**
* @author Adrian Colyer
// The reason for setting this parameter for Java 9+ instead of 16+ is that it helps to avoid the JVM printing
// unwanted illegal access warnings during weaving in 'useFullLTW' mode, either making existing tests fail or
// having to assert on the warning messages.
- vmargs += is9VMOrGreater() ? " --add-opens java.base/java.lang=ALL-UNNAMED" : "";
+ vmargs += is16VMOrGreater() ? " --add-opens java.base/java.lang=ALL-UNNAMED" : "";
AjcTestCase.RunResult rr = inTestCase.run(getClassToRun(), getModuleToRun(), args, vmargs, getClasspath(), getModulepath(), useLtw, "true".equalsIgnoreCase(usefullltw));
<line text="Main.test1" />
<line text="Main.test2" />
</stdout>
- <stderr ordered="no">
+ <stderr>
<line text="info AspectJ Weaver Version" />
<line text="info register classloader" />
<line text="info using" />
<line text="debug weaving 'ConcreteAspect'" />
<line text="debug generating class 'ConcreteAspect'" />
<line text="debug weaving 'Main'" />
-
- <!-- In full LTW mode with weaver option '-debug' in aop.xml, the weaver prints this -->
- <line text="debug cannot weave 'org.aspectj.lang.Signature'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.Factory'" />
- <line text="debug cannot weave 'org.aspectj.lang.JoinPoint$StaticPart'" />
- <line text="debug cannot weave 'org.aspectj.lang.JoinPoint$EnclosingStaticPart'" />
- <line text="debug cannot weave 'org.aspectj.lang.JoinPoint'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.MethodSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.CodeSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.MemberSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.ConstructorSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.FieldSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.AdviceSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.CatchClauseSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.LockSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.UnlockSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.InitializerSignature'" />
- <line text="debug cannot weave 'org.aspectj.lang.reflect.SourceLocation'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.MethodSignatureImpl'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.CodeSignatureImpl'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.MemberSignatureImpl'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.SignatureImpl'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.SignatureImpl$Cache'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.JoinPointImpl$StaticPartImpl'" />
- <line text="debug cannot weave 'org.aspectj.runtime.reflect.SourceLocationImpl'" />
- <line text="debug cannot weave 'org.aspectj.lang.NoAspectBoundException'" />
-
<line text="AbstractSuperAspect.before_test1" />
</stderr>
</run>
text="this affected type is not exposed to the weaver: TestITDMethod" />
</compile>
<run class="TestITDMethod" options="test"
- ltw="aop-abstractaspect.xml" usefullltw="true">
+ ltw="aop-abstractaspect.xml">
<stdout>
<line text="TestITDMethod.main" />
</stdout>