aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tracing
Commit message (Collapse)AuthorAgeFilesLines
* Make all tests run on Java 16 via '-add-opens' JVM optionjava16-add-opensAlexander Kriegisch2021-03-231-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to JEP 260 (Encapsulate Most Internal APIs), aspect weaving on Java 16 now requires '--add-opens java.base/java.lang=ALL-UNNAMED' on the command line. Otherwise there will be illegal access exceptions for some internal API calls AspectJ needs, most prominently when trying to define classes in other packages or modules. This had to be done on several levels: - Maven Surefire: running tests in a JVM directly forked by Surefire. In order to make this backwards compatible, I added two profiles with JDK-level-dependent auto-activation, one 8-15 and one 16+. In the latter a property containing the JVM parameter is defined, in the former it is empty, i.e. the JVM is started without the parameter. In Java 8 the parameter did not even exist, in Java 9+ we could use it, but we need to test how users use AspectJ. - RunSpec: Whenever an XML test is declared to use '<run>', we need to determine the current JVM version and again dynamically add the parameter when forking the target JVM. - AntSpec: Whenever an XML test is declared to use '<ant>', we need to determine the current JVM version dynamically add two properties usable from within Ant scripts: 'aj.addOpensKey' and 'aj.addOpensValue'. Unfortunately, Ant needs to use two '<argLine>' parameters, because the two parts of the option are separated by a space character. - Ant scripts: When triggered by an AntSpec, each Ant target using LTW needs to manually set <jvmarg value="${aj.addOpensKey}"/> <jvmarg value="${aj.addOpensValue}"/> for each '<java>' task. It was quite tedious to find all(?) of them. TODO: In the AspectJ 1.9.7 release notes we need to document that this parameter is now needed for LTW. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* tests and implementation for 165153: outputting aspectj trace to a named fileaclement2006-11-221-0/+14
|
* Bug 159854 "Problem Diagnosis Guide" (tests)mwebster2006-10-302-1/+71
|
* Bug 150487 "Tracing and Logging Framework" (trace everyting test)mwebster2006-08-162-0/+18
|
* Bug 150487 "Tracing and Logging Framework" (WeavingAdaptorMessageHandler ↵mwebster2006-08-142-0/+26
| | | | delegates and traces)
* Bug 150487 "Tracing and Logging Framework" (remove TraceMessageHandler)mwebster2006-08-142-25/+0
|
* Bug 150487 "Tracing and Logging Framework" (TraceMessageHandler)mwebster2006-08-094-0/+31
|
* Bug 150487 "Tracing and Logging Framework" (test default behaviour under 1.3 ↵mwebster2006-07-275-0/+66
| | | | & 1.5)
* initial versionwisberg2002-12-161-0/+104