summaryrefslogtreecommitdiffstats
path: root/testing-drivers
Commit message (Collapse)AuthorAgeFilesLines
* Make all tests run on Java 16 via '-add-opens' JVM optionjava16-add-opensAlexander Kriegisch2021-03-231-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix 'ajdoc' tests for Java 15 buildAlexander Kriegisch2021-03-142-76/+84
| | | | Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Revert to 1.9.7.BUILD-SNAPSHOTAndy Clement2020-08-211-1/+1
|
* 1.9.7 milestone 1 publishedAndy Clement2020-08-211-1/+1
|
* Merge pull request #10 from larsgrefer/cleanup/pomAndy Clement2020-08-161-1/+0
|\ | | | | Cleanup the Maven pom.xml files
| * Remove project.parent.relative path as ../pom.xml is already the defaultLars Grefer2020-08-151-1/+0
| | | | | | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Merge branch 'master' into feature/collection-performanceAndy Clement2020-08-152-2/+0
|\ \
| * | Cleanup unused importsLars Grefer2020-08-162-2/+0
| |/ | | | | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Weaken Collection declarationsLars Grefer2020-08-151-5/+5
| | | | | | | | | | | | Reports on declarations of Collection variables made by using the collection class as the type, rather than an appropriate interface. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Redundant Collection.addAll() callLars Grefer2020-08-151-2/+1
|/ | | | | | Reports Collection.addAll() and Map.putAll() calls after instantiation of a collection using a constructor call without arguments. Such constructs can be replaced with a single call to a parametrized constructor which simplifies code. Also for some collections the replacement might be more performant. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* lets have maven fail if those tests fail...Andy Clement2020-08-141-1/+1
|
* Unnecessary unboxingLars Grefer2020-08-081-1/+1
| | | | | | Reports "unboxing", e.g. explicit unwrapping of wrapped primitive values. Unboxing is unnecessary under Java 5 and newer, and can be safely removed. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* 'String.indexOf()' expression is replaceable with 'contains()'Lars Grefer2020-08-081-2/+2
| | | | | | Reports any String.indexOf() expressions which can be replaced with a call to the String.contains() method available in Java 5 and newer. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* 'for' loop replaceable with enhanced 'for' loopLars Grefer2020-08-083-16/+16
| | | | | | Reports for loops which iterate over collections or arrays, and can be replaced with an enhanced for loop (i.e. the foreach iteration syntax). Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Rev to 1.9.7.BUILD-SNAPSHOTAndy Clement2020-07-221-1/+1
|
* AspectJ 1.9.6 final bitsV1_9_6Andy Clement2020-07-221-1/+1
|
* polishAndy Clement2019-11-292-1539/+1571
|
* polishAndy Clement2019-11-291-211/+222
|
* Move to 1.9.6.BUILD-SNAPSHOT versionAndy Clement2019-11-281-1/+1
|
* 1.9.5 release versions in pomsV1_9_5Andy Clement2019-11-281-1/+1
|
* Update to 1.9.5.BUILD-SNAPSHOT in pomsAndy Clement2019-06-031-1/+1
|
* 1.9.4 POMSAndy Clement2019-05-101-1/+1
|
* pushed versions to 1.9.4.BUILD-SNAPSHOTAndy Clement2019-04-171-1/+1
|
* Add module tests back in - but streamlinedAndy Clement2019-02-013-46/+29
|
* mavenizing testing-drivers - done'Andy Clement2019-01-303-0/+6
|
* mavenizing testing-drivers - wipAndy Clement2019-01-3014-49/+61
|
* Reverse default - behave like 1.5 (support annotations) by defaultAndy Clement2018-10-101-7/+4
|
* Fix classpath for tests on Java9Andy Clement2016-06-271-1/+2
|
* findbugs/eclipse warnings fixedaclement2008-08-273-52/+70
|
* fixed jre lib warningaclement2008-06-081-13/+13
|
* Bug 113948 "Repackage AspectJ" (move module root suites out of default package)mwebster2006-07-301-0/+1
|
* update license to EPLacolyer2006-06-018-16/+16
|
* Completed: Improve ajc memory usageacolyer2006-02-242-0/+21
| | | | incremental tests need to ensure that AjState runs in incremental mode!
* fixing typoaclement2005-06-091-1/+1
|
* Skipping long test of rarely-changed codewisberg2005-06-081-0/+2
|
* ignore bintest directoriesacolyer2005-05-311-1/+2
|
* newbuild.xml replacing build.xml, with Alex okwisberg2005-05-192-63/+3
|
* prospective replacements for {module}/build.xml - will move there once ↵wisberg2005-05-111-0/+6
| | | | validated by those who use build.xml.
* From branch: New build scripts that Alex uses under IntelliJ - can be run ↵aclement2005-04-191-0/+60
| | | | individually or via master in build module.
* -exitOnFailure for System.exit(..) on failure, so release/build.xml can ↵wisberg2005-03-101-2/+20
| | | | respond to test failures.
* temporary workaround for (jar assembly after removing ant jar from ↵wisberg2005-03-101-1/+1
| | | | testing-drivers-all) will work only when jar is in lib/ant/../../aj-build/jars directory.
* ignoring ajcore fileswisberg2005-03-081-0/+1
|
* refactoring, reformatting; support for generated test classes (latter not ↵wisberg2005-01-273-68/+263
| | | | checked in)
* support vm args during forking (simple update: forking still requires system ↵wisberg2004-10-051-35/+53
| | | | properties)
* fix for Bugzilla Bug 37020acolyer2004-08-193-2/+5
| | | | wrong line for method execution join point
* running negative harness tests, to verify that expected-fails actually failwisberg2004-03-313-7/+26
|
* spring cleaning in advance of 1.2 enhancements: acolyer2004-01-233-10/+10
| | | | | removed unused imports, local variables, and private methods (still there, just commented out).
* Merge of dependent tests (only shows up under IBM 131 JVM)acolyer2003-12-081-20/+19
|
* adjust tests for new message content when skippingwisberg2003-10-292-4/+4
|
* better mapping from messages to JUnit failure/errorwisberg2003-10-291-9/+11
|