aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade license from CPLv1/EPLv1 to EPLv2Alexander Kriegisch2021-06-0458-290/+289
| | | | | | | This was required by the Eclipse team as one precondition for the next release. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Replace use of ASM-renamed by original ASMAlexander Kriegisch2021-05-161-4/+4
| | | | | | | | | | | | This involves replacing references in weaver application code as well as a few tests. In order to make AspectJ weaver + tools contain a relocated ASM version, I added a Maven Shade relocation step after Maven Assembly created the uber JARs. Relocation works for both binaries and sources and also encompasses Class::forName calls like in class AsmDetector. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Remove ASM 2.0 dependency from AtAjLTWTests::testLTWUnweavableAlexander Kriegisch2021-03-292-28/+25
| | | | | | | | | | | | | | | | | | | | The test class UnweavableTest used ASM 2.0 API. I upgraded in two ways: 1. Now the ASM 9.1 API is used. Probably works with much older versions too (just not as old as 2.0), as long as the method and constructor signatures are the same). 2. The class now uses the AspectJ version of ASM (i.e. package names aj.org.objectweb.asm.*) and therefore can just use ASM as it is on the classpath for module 'tests' already. There is no more need to manually add '<pathelement path="${aj.root}/lib/asm/asm-2.0.jar"/>' to the Ant build script for that test. Consequently, asm-2.0.jar can be eliminated from Git SCM completely, because it was only used in this one test. BTW, I also removed some deprecated API and other types of warnings in UnweavableTest. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Make all tests run on Java 16 via '-add-opens' JVM optionjava16-add-opensAlexander Kriegisch2021-03-231-8/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Updated with Java12 supportAndy Clement2019-04-031-4/+4
|
* version bump to 1.6Andy Clement2017-09-271-4/+4
|
* Fix 436653: conditional aspect activation plus various polishAndy Clement2014-10-065-6/+20
| | | | | | | | | | | | | | Modified test expectation system so it is possible to say the test cares about one particular message and the rest do not matter (prefix message string with '*') - crude but quick. Polished many places to exploit generics Upgraded all the tests to work on Java8 - some serious changes regarding ajdoc on Java8. Hopefully it has stayed backwards compatible with earlier JDK versions (e.g. if using AspectJ 1.8.3+ with a JDK less than 8) but no explicit testing done for this.
* Upgrade to JDT 1.8.0 compilerAndy Clement2014-03-181-2/+2
|
* prevents funny behaviour on JDK1.6aclement2008-08-081-5/+5
|
* Stupid bloody tests that don't tell you why they failed, I HATE THEM - fixed ↵aclement2008-06-041-1/+2
| | | | this one in one place.
* AspectJ6: simplifiedaclement2008-01-162-3/+9
|
* Test LTW dump for JSPsmwebster2007-01-222-0/+17
|
* Bug 158205 "NullPointerException when weaving with bootstrap agent" (improve ↵mwebster2006-10-021-1/+1
| | | | declare parents LTW tests)
* Bug 158205 "NullPointerException when weaving with bootstrap agent" (remove ↵mwebster2006-10-021-16/+41
| | | | use of -Daj5.def)
* 154054 testcode and fix: noticing changes in around advice and forcing full ↵aclement2006-09-221-8/+12
| | | | builds
* 141556#11 - reworked messagehandler with 'ignore' function! (wooo) - hope ↵aclement2006-08-251-0/+3
| | | | Matthew doesnt complain.
* Bug 150271 "Allow multiple levels of LTW information" (make weaving/not ↵mwebster2006-08-235-10/+10
| | | | weaving messages debug and add -debug to options for aop.xml)
* tests (?) and fixes for 152873 - optimized check for @AJ aspects in LTWaclement2006-08-083-0/+23
|
* Bug 150131 "org.aspectj.ajde.core testcases create "out" directory in ↵mwebster2006-08-021-21/+0
| | | | project root" (remove redundant logic that created result.ser"
* Bug 151938 "Handle Duplicate -javaagent entries more gracefully" (ignore ↵mwebster2006-08-015-0/+61
| | | | duplicate agents)
* fixed decp bug and problem with 1.5 IBM VMaclement2006-06-191-0/+1
|
* fix for 120739mwebster2006-06-017-1/+27
|
* update license to EPLacolyer2006-06-015-10/+10
|
* fix for pr141945, misleading message re. aop.xmlacolyer2006-05-161-1/+1
|
* attempt to remove the damn results.ser file.aclement2006-03-281-0/+1
|
* merge of RB_V1_5_0 changes back into HEADacolyer2005-12-192-3/+2
|
* fix NPE in mixing style (can be in concrete aspect from code style as well)avasseur2005-12-193-1/+46
|
* fix new syntax @decpavasseur2005-12-192-4/+8
|
* rearchitect @decpavasseur2005-12-192-4/+6
|
* merge of changes from 1.5.0 branch into HEADacolyer2005-12-191-1/+1
|
* making the tests more resilient to legitimate cross-vm differencesacolyer2005-12-153-28/+90
|
* fixes for 120363 : from matthew (include/exclude problems for LTW)aclement2005-12-123-4/+26
|
* #120351 cflowbelow @AJ and bindingavasseur2005-12-122-0/+112
|
* Some updates for 118754. The various places that were checking for ↵aclement2005-12-097-3/+84
| | | | 'MISSING' now call 'isMissing' if they can. I think this negates some work Adrian did with introducing MissingWithKnownSignature - but we have to make this change for LTW to work properly. Someone with a bit of time on their hands should go through all the places isMissing() is now called and see if the check should be 'isReallyMissing()' which would allow the MissingWithKnownSignature to get through. I will raise an enhancement to cover this.
* tests for parameter name generation in advice annotationsacolyer2005-11-291-0/+0
|
* updated tests and fix for pr116229acolyer2005-11-271-2/+2
|
* Matthews changes - enabling us to see bytecode before and after LTW (bug 117854)aclement2005-11-266-19/+42
|
* matthews patches from 116899aclement2005-11-246-3/+38
|
* tests and fix for pr116229 and pr116755. Also adds support and tests for ↵acolyer2005-11-191-0/+1
| | | | parseTypePattern in PointcutParser.
* #114897 notreweavable is default on LTW - by Matthew Webster.avasseur2005-11-072-2/+2
|
* #114875 cannot reproduce NPE in @AJ abstract aspectavasseur2005-11-072-0/+59
|
* aspects/include handling and doc update as per #115275avasseur2005-11-071-1/+1
|
* with the change in LTW to default to the same version as the runtime VM (ie ↵acolyer2005-11-0410-4/+50
| | | | java 5 in this case), many LTW tests were failing with Xlint:adviceDidNotMatch messages that previously were not issued. These commits sprinkle @SuppressAjWarnings annotations liberally around to stop that from happening.
* tests for pr62606 - itdcs don't run field initialisers in target type. ↵acolyer2005-11-031-3/+3
| | | | Largely updates to existing tests to cope with new Lint warning.
* #108892 cannot reproduce: hierarchy of aop.xml accross classloader test is fineavasseur2005-10-285-0/+182
|
* impl and test for dec precedence in aop.xml without extendsavasseur2005-10-273-0/+91
|
* detects starttWith pattern in aop.xml include/exclude and do fast matchavasseur2005-10-262-1/+36
| | | | avoid type resolve to do aop.xml include/exclude regular match but use the passed in bytecode (else issue with Stubs not on disk as f.e. in WLS)
* fix for #113587: when aop.xml include/exclude is used, javac @Aspect are not ↵avasseur2005-10-252-0/+95
| | | | passed thru the aspectof munger. Added custom logic for that
* ajdtcore for abstract @Pointcutavasseur2005-10-251-1/+1
|
* concrete-aspect impl and doc for LTW - see #95529avasseur2005-10-254-0/+153
| | | | pbly some issue on abstract @Pointcut() in ajdt core - fix coming