]> source.dussan.org Git - aspectj.git/log
aspectj.git
3 years agoAdd Java 15 / AspectJ 1.9.7 test suite 36/head 38/head
Alexander Kriegisch [Wed, 17 Mar 2021 16:38:08 +0000 (23:38 +0700)]
Add Java 15 / AspectJ 1.9.7 test suite

Also fix some minor details in Java 14 suite

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAdd 'yield' usage to Java 12/13 switch expressions tests
Alexander Kriegisch [Wed, 17 Mar 2021 09:42:32 +0000 (16:42 +0700)]
Add 'yield' usage to Java 12/13 switch expressions tests

So far this was a slight oversight, no test using 'yield' existed in the
'features193' test suite. Better late than never.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoDo not run tests using Java 14 preview features on this Java 15 compiler
Alexander Kriegisch [Wed, 17 Mar 2021 07:55:51 +0000 (14:55 +0700)]
Do not run tests using Java 14 preview features on this Java 15 compiler

These tests need a Java 14 level AspectJ compiler, because they use
version-specific preview features. This compiler has been upgraded
to a Java 15 compliant JDT Core already, i.e. it does not support
preview features of a previous version anymore.

An error message similar to the above explanation will appear when
trying to run any XMLBasedAjcTestCaseForJava14Only subclass, such as
Ajc196PreviewFeaturesTests (currently the only one).

When running AllTestsAspectJ196, Ajc196PreviewFeaturesTests will not be
added to the test suite anymore.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoRestructure Java 14 / AJ 1.9.6 tests
Alexander Kriegisch [Wed, 17 Mar 2021 06:51:59 +0000 (13:51 +0700)]
Restructure Java 14 / AJ 1.9.6 tests

- Java 14 feature sample classes moved from 'bugs' to 'features'
- One test case using a Java 14 preview feature was moved to the
  Java 14-only tests

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoUse static import for HtmlDecorator.TYPE_NAME_LABEL
Alexander Kriegisch [Sun, 14 Mar 2021 16:41:11 +0000 (23:41 +0700)]
Use static import for HtmlDecorator.TYPE_NAME_LABEL

Mini refactoring, making the code a bit less verbose

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAdd Java 15 class vile version to BCEL constants, adjust test tools etc.
Alexander Kriegisch [Sat, 13 Mar 2021 06:54:45 +0000 (13:54 +0700)]
Add Java 15 class vile version to BCEL constants, adjust test tools etc.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoUpgrade to ASM 9.1, delete obsolete ASM binaries
Alexander Kriegisch [Sat, 13 Mar 2021 03:42:05 +0000 (10:42 +0700)]
Upgrade to ASM 9.1, delete obsolete ASM binaries

Keep only ASM 2.0 binary because it is still used in UnweavableTest
which uses an old ASM API, e.g. with a ClassWriter constructor which no
longer exists.

Also add JarJar 1.3 library because it is needed by an Ant task in
lib/asm/build.xml.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoUpgrade JDT Core to @3caefb80 (4.20 snapshot, date 2021-03-09)
Alexander Kriegisch [Thu, 11 Mar 2021 00:58:41 +0000 (07:58 +0700)]
Upgrade JDT Core to @3caefb80 (4.20 snapshot, date 2021-03-09)

Add methods isRecord() and getRecordComponents() to class
CompactTypeStructureRepresentation

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #35 from kriegaex/make-aj196-tests-run-on-java15
Andy Clement [Mon, 15 Mar 2021 15:48:05 +0000 (08:48 -0700)]
Merge pull request #35 from kriegaex/make-aj196-tests-run-on-java15

Fix all tests for Java 15 runtime

3 years agoSimplify execution of PureJavaTests and KnownLimitationsTests 35/head
Alexander Kriegisch [Sun, 14 Mar 2021 15:09:02 +0000 (22:09 +0700)]
Simplify execution of PureJavaTests and KnownLimitationsTests

Getting rid of XML includes and two superfluous files, merging them with
their respective including counterparts. As far as I can see, the two
test suites are not part of the automatic build process, but can be
started manually as easily as any other test (suite) now.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix outdated ajcTestSuite.dtd and lots of XML problems
Alexander Kriegisch [Sun, 14 Mar 2021 13:56:15 +0000 (20:56 +0700)]
Fix outdated ajcTestSuite.dtd and lots of XML problems

Now there should be no more inspection warnings when working with XML
test definitions. Only the strangely looking XML files used by
PureJavaTests and KnownLimitationsTests are left to be analysed and
fixed.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix OutputSpec corner case (test empty output) from @052bd66f
Alexander Kriegisch [Sun, 14 Mar 2021 07:44:14 +0000 (14:44 +0700)]
Fix OutputSpec corner case (test empty output) from @052bd66f

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMake sure Java 14-only tests using preview are not executed on JVM 15+
Alexander Kriegisch [Sun, 14 Mar 2021 06:58:37 +0000 (13:58 +0700)]
Make sure Java 14-only tests using preview are not executed on JVM 15+

Some Ajc196 tests are using preview features (see .../ajc196.xml), i.e.
they will fail on Java 15+ because code compiled with '--enable-preview'
can only run on the same JVM version, not on a more recent one. Hence,
the preview-using tests are now being excluded in order to make the
build run on Java 15, even though no Java 15 features are present in the
current 1.9.7 snapshot.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAllow year 2021 in Checklics.License
Alexander Kriegisch [Sun, 14 Mar 2021 06:51:16 +0000 (13:51 +0700)]
Allow year 2021 in Checklics.License

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMove documentation generation into Maven profile 'create-docs'
Alexander Kriegisch [Sun, 14 Mar 2021 06:16:21 +0000 (13:16 +0700)]
Move documentation generation into Maven profile 'create-docs'

The profile is active by default, but can be deactivated via
'-P !create-docs' on the Maven command line. This helps to speed up
'mvn install', maybe in combination with skipping tests, if we just want
to create a new set of AspectJ binaries.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoImprove text matching in OutputSpec, fixing some failing Windows tests
Alexander Kriegisch [Sun, 14 Mar 2021 03:19:21 +0000 (10:19 +0700)]
Improve text matching in OutputSpec, fixing some failing Windows tests

Some Java 14 text block tests failed on Windows because a
StringTokenizer was used to split by LF, but the Windows line
separator is CR+LF. Because a multi-line string ending with CR+LF is
printed via 'System.out.println' in the test code, another CR+LF is
added to the output, resulting in trailing CR+LF+CR+LF. Hence, between
the two LFs, the tokenizer actually found an additional line consisting
of CR (only on Windows, of course). Despite each line token actually
containing a trailing CR token, that did not matter much because
'String.trim' was used everywhere before comparing values.

Anyway, the improved OutputSpec uses text.trim().split("\\s*\n\\s*"),
which takes care of leading/trailing whitespace both around the whole
output and for each separate line.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix 'ajdoc' tests for Java 15 build
Alexander Kriegisch [Sat, 13 Mar 2021 17:09:02 +0000 (00:09 +0700)]
Fix 'ajdoc' tests for Java 15 build

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMake MoveInstructionsWeaveTestCase.testFancyHello pass when run twice
Alexander Kriegisch [Sat, 13 Mar 2021 08:07:07 +0000 (15:07 +0700)]
Make MoveInstructionsWeaveTestCase.testFancyHello pass when run twice

Reset counter, just in case this test runs multiple times in one JVM.
This can happen e.g. due to "run all tests" in IntelliJ IDEA, which
directly runs this test class and als WeaverModuleTests, both of which
implement junit.framework.TestCase. In that case, during the second run
the counter would start at a higher base count, making the 2nd test run
fail.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMake BCEL classpath utility recognise Java 15, fixing many tests
Alexander Kriegisch [Sat, 13 Mar 2021 07:16:30 +0000 (14:16 +0700)]
Make BCEL classpath utility recognise Java 15, fixing many tests

Inside org.aspectj.apache.bcel.util.ClassPath.getClassPath(), some JVM
version matching occurs which previously did not include Java 15.
Technically, AspectJ 1.9.6 does not support Java 15, but on GitHub
Actions there is a build job running on a JVM 15. This change should at
least make the weaver tests pass, making that test job more meaningful.

This fixes test errors like

java.lang.ClassCastException:
  class org.aspectj.weaver.MissingResolvedTypeWithKnownSignature
  cannot be cast to class
  org.aspectj.weaver.ReferenceType
  (org.aspectj.weaver.MissingResolvedTypeWithKnownSignature and
  org.aspectj.weaver.ReferenceType are in unnamed module
  of loader 'app')

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #34 from kriegaex/test-fixes-kriegaex-20210312
Andy Clement [Fri, 12 Mar 2021 18:22:14 +0000 (10:22 -0800)]
Merge pull request #34 from kriegaex/test-fixes-kriegaex-20210312

Test fixes kriegaex 20210312

3 years agoFix: WeaveSpec no longer ignores the '-Xlintfile' parameter 34/head
Alexander Kriegisch [Fri, 12 Mar 2021 03:16:36 +0000 (10:16 +0700)]
Fix: WeaveSpec no longer ignores the '-Xlintfile' parameter

Some tests in ajc150.xml and ajc190_from150.xml contain '<weave ...>'
build steps with 'xlintfile="..."' parameters. Those parameters were
passed through to Java and aspect code building steps, but not to the
final weaving step, sometimes leading to spurious "type not exposed to
weaver" warnings which occurred for some local and CI builds, but not
always. Very strange indeed. Anyway, by making method
WeaveSpec.buildWeaveArgs() pass on this parameter, the tests seem to run
reliably now.

TODO: Why does Ajc report that warning if the application JAR is on the
inpath and the aspect JAR is on the aspectpath? Is it because a marker
annotation is defined within the aspect JAR? But actually, that should
not matter, especially not work once and fail at other times. I guess
there is a class loading order problem or similar involved.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAdd missing '-options' values -1.5, -1.9 to ajc{150,190_from150}.xml
Alexander Kriegisch [Fri, 12 Mar 2021 03:05:07 +0000 (10:05 +0700)]
Add missing '-options' values -1.5, -1.9 to ajc{150,190_from150}.xml

When trying to find out why ajc150.xml and ajc190_from150.xml look
almost identical, I found out that only in many cases the 190 version
has '-option="1.9"' set where in the 150 version it was '-option="1.9"'.

Unfortunately, in both files source/target versions are not set at all
in many places, which looks unintentional. I tried to search & replace
all relevant '<compile ...>' commands for 190 first, then ported back to
150. Only cases in which clearly compiling to an older version like 1.3
or 1.4 is necessary were left like before.

I am expecting missing or false Java target versions in many other of
the legacy XML test suites. For now, I am just committing these two.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #33 from kriegaex/test-fixes-kriegaex-20210311
Andy Clement [Thu, 11 Mar 2021 17:04:51 +0000 (09:04 -0800)]
Merge pull request #33 from kriegaex/test-fixes-kriegaex-20210311

Test fixes kriegaex 20210311

3 years agoSet maven-assembly-plugin version 3.1.1 explicitly for each POM module 33/head
Alexander Kriegisch [Thu, 11 Mar 2021 16:13:06 +0000 (23:13 +0700)]
Set maven-assembly-plugin version 3.1.1 explicitly for each POM module

Background: There are CI tests failing because the version is not taken
from the parent POM, even if set in the 'pluginManagement' section.
Instead, it is resolved via the Maven Super POM, e.g. 2.2-beta-5, see:
https://maven.apache.org/ref/3.6.3/maven-model-builder/super-pom.html
That assembly plugin version in turn requires plexus-archiver
1.0-alpha-12. The latter cannot be downloaded from Maven Central,
leading to the problems seen during builds.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoReplace path separators ';' by ',' in XML test specs
Alexander Kriegisch [Thu, 11 Mar 2021 12:12:58 +0000 (19:12 +0700)]
Replace path separators ';' by ',' in XML test specs

The goal is for them to be canonicalised to platform standard during
test execution. I am not sure if that will fix any tests, but at least I
hope it will not break any.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoUnify classpath handling in CompileSpec & RunSpec
Alexander Kriegisch [Thu, 11 Mar 2021 11:32:56 +0000 (18:32 +0700)]
Unify classpath handling in CompileSpec & RunSpec

Replace directory separator '/' and surrogate path separator ',' by
platform-specific separators File.separatorChar and
File.pathSeparatorChar, respectively. Also make sure that replacement
occurs during write access, not read access. This was handled
differently in both sibling classes.

I am not sure if that helps to fix any Linux CI tests, but it is worth a
try.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix MultiProjectIncrementalTests.testAspectPath_pr265693, 2nd try
Alexander Kriegisch [Thu, 11 Mar 2021 10:57:58 +0000 (17:57 +0700)]
Fix MultiProjectIncrementalTests.testAspectPath_pr265693, 2nd try

Do not assume a certain element order for tree nodes if there can be
more than one.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoTry to fix MultiProjectIncrementalTests.testAspectPath_pr265693
Alexander Kriegisch [Thu, 11 Mar 2021 08:57:23 +0000 (15:57 +0700)]
Try to fix MultiProjectIncrementalTests.testAspectPath_pr265693

Check if path vs. package name discrepancy makes test fail on Linux. On
Windows it passes. So let's find out if file p/Asp.java vs. pkg.Asp
causes the problems.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAjcTestCase cosmetics: surround command in failure report by quotes
Alexander Kriegisch [Thu, 11 Mar 2021 01:16:28 +0000 (08:16 +0700)]
AjcTestCase cosmetics: surround command in failure report by quotes

This is the same for successful tests in class CompilationResult.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix resource leak in FileUtil
Alexander Kriegisch [Thu, 11 Mar 2021 06:23:29 +0000 (13:23 +0700)]
Fix resource leak in FileUtil

This made ModuleTests.testBuildModuleAndApplyAspectsFromAspectPath fail
because a file delete job for a module JAR failed after a previous
compile job had called FileUtil.isZipFile(File) in which the opened zip
file was never closed. A try with resources fixes that.

Maybe the corresponding test worked on Linux before, I did not try. I
just know that Linux is more forgiving about deleting open files while
on Windows they are being locked, which makes Windows the better system
to search for open file leaks.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAjBuildManager: use try with resources in 2 places
Alexander Kriegisch [Thu, 11 Mar 2021 06:16:46 +0000 (13:16 +0700)]
AjBuildManager: use try with resources in 2 places

I was debugging something in ModuleTests, trying to find out if there
are resource leaks. They were not in this class but in FileUtil - see
next commit. However, the little refactoring here does not hurt either.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix path separators in ajc190.xml, make tests run on Windows
Alexander Kriegisch [Thu, 11 Mar 2021 06:13:11 +0000 (13:13 +0700)]
Fix path separators in ajc190.xml, make tests run on Windows

Replace ':' by ";" which will be replaced to the platform
separator automatically. A fixed value of ':' does not work on Windows.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #32 from kriegaex/installer-windows_10-windows_server
Andy Clement [Fri, 5 Mar 2021 20:59:48 +0000 (12:59 -0800)]
Merge pull request #32 from kriegaex/installer-windows_10-windows_server

Support Windows 10 and Windows Server 2016/2019 in installer

3 years agoSupport Windows 10 and Windows Server 2016/2019 in installer 32/head
Alexander Kriegisch [Thu, 4 Mar 2021 09:43:15 +0000 (16:43 +0700)]
Support Windows 10 and Windows Server 2016/2019 in installer

Those versions were not detected until now, which lead to bogus Windows
batch files forwarding only 9 Ajc parameters to the Java process via
"%1 %2 %3 %4 %5 %6 %7 %8 %9" instead of "%*".

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #29 from ebourg/patch-1
Andy Clement [Fri, 8 Jan 2021 00:16:27 +0000 (16:16 -0800)]
Merge pull request #29 from ebourg/patch-1

Update the URL of BCEL

3 years agoUpdate the URL of BCEL 29/head
Emmanuel Bourg [Thu, 7 Jan 2021 14:03:26 +0000 (15:03 +0100)]
Update the URL of BCEL

3 years agoMerge pull request #23 from larsgrefer/feature/java15
Andy Clement [Wed, 2 Dec 2020 23:31:40 +0000 (15:31 -0800)]
Merge pull request #23 from larsgrefer/feature/java15

Update GitHub Actions from Java 14 to 15

3 years agoMerge pull request #27 from capgen628/patch-1
Andy Clement [Wed, 2 Dec 2020 23:31:15 +0000 (15:31 -0800)]
Merge pull request #27 from capgen628/patch-1

Remove call to System.out

3 years agoRemove call to System.out 27/head
Anuj Dodhia [Wed, 2 Dec 2020 22:27:26 +0000 (22:27 +0000)]
Remove call to System.out

4 years agoUpdate GitHub Action from Java 14 to 15 23/head
Lars Grefer [Sun, 20 Sep 2020 19:00:11 +0000 (21:00 +0200)]
Update GitHub Action from Java 14 to 15

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoMerge pull request #22 from jamesjer/master
Andy Clement [Wed, 16 Sep 2020 17:50:55 +0000 (10:50 -0700)]
Merge pull request #22 from jamesjer/master

Fix apostrophe in the license

4 years agoFix apostrophe in the license 22/head
Jerry James [Tue, 15 Sep 2020 22:10:30 +0000 (16:10 -0600)]
Fix apostrophe in the license

4 years agoMerge pull request #21 from jamesjer/master
Andy Clement [Mon, 14 Sep 2020 16:42:04 +0000 (09:42 -0700)]
Merge pull request #21 from jamesjer/master

Fix javadoc errors

4 years agoTypo fixes 21/head
Jerry James [Mon, 14 Sep 2020 14:29:53 +0000 (08:29 -0600)]
Typo fixes

4 years agoFix javadoc references to nonexistent fields, classes, or packages
Jerry James [Mon, 14 Sep 2020 14:28:28 +0000 (08:28 -0600)]
Fix javadoc references to nonexistent fields, classes, or packages

4 years agoFix misplaced or incorrect javadoc tags
Jerry James [Mon, 14 Sep 2020 14:27:01 +0000 (08:27 -0600)]
Fix misplaced or incorrect javadoc tags

4 years agoFix misplaced or incorrectly nested HTML tags
Jerry James [Mon, 14 Sep 2020 14:25:20 +0000 (08:25 -0600)]
Fix misplaced or incorrectly nested HTML tags

4 years agoFix incorrect HTML entities in javadoc comments
Jerry James [Mon, 14 Sep 2020 14:23:26 +0000 (08:23 -0600)]
Fix incorrect HTML entities in javadoc comments

4 years agoMerge pull request #19 from jamesjer/master
Andy Clement [Wed, 9 Sep 2020 21:38:15 +0000 (14:38 -0700)]
Merge pull request #19 from jamesjer/master

Give docbook IDs unique names

4 years agoGive docbook IDs unique names 19/head
Jerry James [Wed, 9 Sep 2020 19:50:13 +0000 (13:50 -0600)]
Give docbook IDs unique names

4 years agoRevert to 1.9.7.BUILD-SNAPSHOT
Andy Clement [Fri, 21 Aug 2020 19:40:34 +0000 (12:40 -0700)]
Revert to 1.9.7.BUILD-SNAPSHOT

4 years ago1.9.7 milestone 1 published
Andy Clement [Fri, 21 Aug 2020 19:16:30 +0000 (12:16 -0700)]
1.9.7 milestone 1 published

4 years agoMerge pull request #18 from larsgrefer/feature/github-actions V1_9_7M1
Andy Clement [Mon, 17 Aug 2020 04:41:46 +0000 (21:41 -0700)]
Merge pull request #18 from larsgrefer/feature/github-actions

Split tests in a separate step on GitHub Actions

4 years agoSplit tests in a separate step on GitHub Actions 18/head
Lars Grefer [Mon, 17 Aug 2020 01:17:14 +0000 (03:17 +0200)]
Split tests in a separate step on GitHub Actions

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agodebug for test failure under github action
Andy Clement [Mon, 17 Aug 2020 00:27:48 +0000 (17:27 -0700)]
debug for test failure under github action

4 years agoUpdate to JUnit Jupiter 5.6.2
Lars Grefer [Sun, 16 Aug 2020 23:48:58 +0000 (01:48 +0200)]
Update to JUnit Jupiter 5.6.2

The "old" JUnit-3-style tests will be executed by the vintage-engine

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoMerge pull request #16 from larsgrefer/cleanup/modifiers
Andy Clement [Mon, 17 Aug 2020 00:03:37 +0000 (17:03 -0700)]
Merge pull request #16 from larsgrefer/cleanup/modifiers

Cleanup unnecessary modifiers

4 years agodebug for test failure under github action
Andy Clement [Sun, 16 Aug 2020 23:43:41 +0000 (16:43 -0700)]
debug for test failure under github action

4 years agoRemove unnecessary interface modifiers 16/head
Lars Grefer [Sun, 16 Aug 2020 23:19:52 +0000 (01:19 +0200)]
Remove unnecessary interface modifiers

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoRemove unnecessary enum modifiers
Lars Grefer [Sun, 16 Aug 2020 23:08:18 +0000 (01:08 +0200)]
Remove unnecessary enum modifiers

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agodebug for test failure under github action
Andy Clement [Sun, 16 Aug 2020 20:45:32 +0000 (13:45 -0700)]
debug for test failure under github action

4 years agopolish
Andy Clement [Sun, 16 Aug 2020 18:31:18 +0000 (11:31 -0700)]
polish

4 years agoMerge pull request #10 from larsgrefer/cleanup/pom
Andy Clement [Sun, 16 Aug 2020 18:14:43 +0000 (11:14 -0700)]
Merge pull request #10 from larsgrefer/cleanup/pom

Cleanup the Maven pom.xml files

4 years agoReduce test output for incremental comp tests
Andy Clement [Sun, 16 Aug 2020 06:08:40 +0000 (23:08 -0700)]
Reduce test output for incremental comp tests

4 years agoMerge pull request #13 from larsgrefer/feature/collection-performance
Andy Clement [Sun, 16 Aug 2020 05:39:09 +0000 (22:39 -0700)]
Merge pull request #13 from larsgrefer/feature/collection-performance

Improve performance and readability of collection handling

4 years agoMerge branch 'master' into feature/collection-performance 13/head
Andy Clement [Sun, 16 Aug 2020 05:38:51 +0000 (22:38 -0700)]
Merge branch 'master' into feature/collection-performance

4 years agoMerge pull request #15 from larsgrefer/update/maven/3.6.3
Andy Clement [Sun, 16 Aug 2020 05:30:45 +0000 (22:30 -0700)]
Merge pull request #15 from larsgrefer/update/maven/3.6.3

Update to Maven 3.6.3

4 years agoMerge pull request #12 from larsgrefer/cleanup/unused-code
Andy Clement [Sun, 16 Aug 2020 05:30:29 +0000 (22:30 -0700)]
Merge pull request #12 from larsgrefer/cleanup/unused-code

Cleanup unused imports

4 years agoMerge pull request #11 from larsgrefer/feature/editorconfig
Andy Clement [Sun, 16 Aug 2020 05:29:59 +0000 (22:29 -0700)]
Merge pull request #11 from larsgrefer/feature/editorconfig

Add a basic .editorconfig file

4 years agoCleanup unused imports 12/head
Lars Grefer [Sun, 16 Aug 2020 02:04:28 +0000 (04:04 +0200)]
Cleanup unused imports

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoUpdate to Maven 3.6.3 15/head
Lars Grefer [Sat, 15 Aug 2020 18:29:23 +0000 (20:29 +0200)]
Update to Maven 3.6.3

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoUpdate to JUnit 4.13
Lars Grefer [Fri, 14 Aug 2020 22:59:58 +0000 (00:59 +0200)]
Update to JUnit 4.13

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoMerge pull request #7 from larsgrefer/patch-2
Andy Clement [Sat, 15 Aug 2020 16:19:02 +0000 (09:19 -0700)]
Merge pull request #7 from larsgrefer/patch-2

Use the Maven Wrapper for GitHub Actions

4 years agoReduce test output for incremental comp tests
Andy Clement [Sat, 15 Aug 2020 15:28:46 +0000 (08:28 -0700)]
Reduce test output for incremental comp tests

4 years agoWeaken Collection declarations
Lars Grefer [Sat, 15 Aug 2020 15:01:46 +0000 (17:01 +0200)]
Weaken Collection declarations

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>
4 years agoFix test on J14
Andy Clement [Sat, 15 Aug 2020 14:56:48 +0000 (07:56 -0700)]
Fix test on J14

4 years agoRedundant Collection.addAll() call
Lars Grefer [Sat, 15 Aug 2020 14:33:00 +0000 (16:33 +0200)]
Redundant Collection.addAll() call

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>
4 years agoCollection.toArray() call style
Lars Grefer [Sat, 15 Aug 2020 14:30:09 +0000 (16:30 +0200)]
Collection.toArray() call style

There are two styles to convert a collection to an array: either using a pre-sized array (like c.toArray(new String[c.size()])) or using an empty array (like c.toArray(new String[0]).
In older Java versions using pre-sized array was recommended, as the reflection call which is necessary to create an array of proper size was quite slow. However since late updates of OpenJDK 6 this call was intrinsified, making the performance of the empty array version the same and sometimes even better, compared to the pre-sized version. Also passing pre-sized array is dangerous for a concurrent or synchronized collection as a data race is possible between the size and toArray call which may result in extra nulls at the end of the array, if the collection was concurrently shrunk during the operation.

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoSingle Map method can be used
Lars Grefer [Sat, 15 Aug 2020 14:25:42 +0000 (16:25 +0200)]
Single Map method can be used

Reports common usage patterns of java.util.Map that could be replaced with Java 8 methods: getOrDefault(), computeIfAbsent(), putIfAbsent(), merge(), or replaceAll().

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoManual array copy
Lars Grefer [Sat, 15 Aug 2020 14:35:54 +0000 (16:35 +0200)]
Manual array copy

Reports the manual copying of array contents which may be replaced by calls to System.arraycopy().

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoCollections.sort() can be replaced with List.sort()
Lars Grefer [Sat, 15 Aug 2020 14:13:00 +0000 (16:13 +0200)]
Collections.sort() can be replaced with List.sort()

Reports calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator).

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoReplace List.indexOf() with List.contains()
Lars Grefer [Sat, 15 Aug 2020 14:09:05 +0000 (16:09 +0200)]
Replace List.indexOf() with List.contains()

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoManual array to collection copy
Lars Grefer [Sat, 15 Aug 2020 14:06:32 +0000 (16:06 +0200)]
Manual array to collection copy

Reports the copying of array contents to a collection where each element is added individually using a for loop. Such constructs may be replaced by a call to Collection.addAll(Arrays.asList()) or Collections.addAll().

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoRemove non-existing dependency 10/head
Lars Grefer [Fri, 14 Aug 2020 23:22:45 +0000 (01:22 +0200)]
Remove non-existing dependency

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoRemove project.parent.relative path as ../pom.xml is already the default
Lars Grefer [Fri, 14 Aug 2020 23:07:29 +0000 (01:07 +0200)]
Remove project.parent.relative path as ../pom.xml is already the default

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoFix the serial version UID contribution to work properly
Andy Clement [Sat, 15 Aug 2020 06:34:43 +0000 (23:34 -0700)]
Fix the serial version UID contribution to work properly

4 years agolets have maven fail if those tests fail...
Andy Clement [Sat, 15 Aug 2020 05:45:11 +0000 (22:45 -0700)]
lets have maven fail if those tests fail...

4 years agoUse the Maven Wrapper for GitHub Actions 7/head
Lars Grefer [Fri, 14 Aug 2020 23:36:53 +0000 (01:36 +0200)]
Use the Maven Wrapper for GitHub Actions

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoAdd a basic .editorconfig file 11/head
Lars Grefer [Fri, 14 Aug 2020 23:27:18 +0000 (01:27 +0200)]
Add a basic .editorconfig file

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agotypo
Andy Clement [Fri, 14 Aug 2020 22:50:39 +0000 (15:50 -0700)]
typo

4 years agoMerge pull request #5 from larsgrefer/remove-old-version-checks
Andy Clement [Fri, 14 Aug 2020 22:00:44 +0000 (15:00 -0700)]
Merge pull request #5 from larsgrefer/remove-old-version-checks

Remove checks for old Java Versions

4 years agoMerge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks 5/head
Lars Grefer [Fri, 14 Aug 2020 21:02:52 +0000 (23:02 +0200)]
Merge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks

4 years agoTest on LTS versions and most recent non LTS
Andy Clement [Fri, 14 Aug 2020 21:01:22 +0000 (14:01 -0700)]
Test on LTS versions and most recent non LTS

4 years agoMerge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks
Lars Grefer [Fri, 14 Aug 2020 21:00:48 +0000 (23:00 +0200)]
Merge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks

4 years agoMerge pull request #4 from larsgrefer/feature/github-actions
Andy Clement [Fri, 14 Aug 2020 20:59:47 +0000 (13:59 -0700)]
Merge pull request #4 from larsgrefer/feature/github-actions

Fix and improve the CI Jobs

4 years agoMerge branch 'master' of github.com:eclipse/org.aspectj into feature/github-actions 4/head
Lars Grefer [Fri, 14 Aug 2020 20:58:34 +0000 (22:58 +0200)]
Merge branch 'master' of github.com:eclipse/org.aspectj into feature/github-actions

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoFix up tests and reduce verbosity on J11
Andy Clement [Fri, 14 Aug 2020 17:56:10 +0000 (10:56 -0700)]
Fix up tests and reduce verbosity on J11

4 years agoAttempting to get J11 build happy at github
Andy Clement [Fri, 14 Aug 2020 04:58:17 +0000 (21:58 -0700)]
Attempting to get J11 build happy at github

4 years agoMaking tests behave on 11
Andy Clement [Thu, 13 Aug 2020 23:06:08 +0000 (16:06 -0700)]
Making tests behave on 11

4 years agoMerge branch 'feature/simplify-ajdoc' of github.com:larsgrefer/org.aspectj into featu...
Lars Grefer [Thu, 13 Aug 2020 22:28:34 +0000 (00:28 +0200)]
Merge branch 'feature/simplify-ajdoc' of github.com:larsgrefer/org.aspectj into feature/github-actions

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>