From d2d97539d26f6023ffc4565286f08427c4e8b41c Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Mon, 8 Nov 2021 14:39:53 +0100 Subject: Add support for eclipse feature tests --- test/core/src/lombok/RunTestsViaEcj.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/core/src/lombok') diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 60a6e92a..8de9cd9c 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -289,6 +289,10 @@ public class RunTestsViaEcj extends AbstractRunTests { @Override public char[][] getPackageName() { return null; } + + @Override public boolean ignoreOptionalProblems() { + return false; + } } private static final class TestCompilationUnitEclipse extends org.eclipse.jdt.internal.core.CompilationUnit { @@ -324,7 +328,7 @@ public class RunTestsViaEcj extends AbstractRunTests { return null; } - @Override public char[] getModuleName() { + public char[] getModuleName() { return null; } } -- cgit From ffd364b964e671eac8fb6ae700834d5d977b5b00 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 12 Jan 2023 00:23:06 +0100 Subject: [tests] add new target for eclipse 2022-12. --- buildScripts/ivy.xml | 13 +++++++++++++ buildScripts/tests.ant.xml | 11 ++++++++--- test/core/src/lombok/RunTestsViaEcj.java | 8 ++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) (limited to 'test/core/src/lombok') diff --git a/buildScripts/ivy.xml b/buildScripts/ivy.xml index ef19eb4a..adab33b4 100644 --- a/buildScripts/ivy.xml +++ b/buildScripts/ivy.xml @@ -31,6 +31,7 @@ + @@ -88,6 +89,18 @@ + + + + + + + + + + + + diff --git a/buildScripts/tests.ant.xml b/buildScripts/tests.ant.xml index a485ce51..f20f76ae 100644 --- a/buildScripts/tests.ant.xml +++ b/buildScripts/tests.ant.xml @@ -175,7 +175,7 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn - Running TestEclipse on eclipse-@{version} on JVM${ant.java.version} using. Compiler compliance level: @{compiler.compliance.level} + Running TestEclipse on eclipse-@{version} on JVM${ant.java.version}. Compiler compliance level: @{compiler.compliance.level} @@ -194,6 +194,11 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn + + + + + @@ -281,6 +286,6 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn - - + + diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 8de9cd9c..699b33ed 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -312,6 +312,14 @@ public class RunTestsViaEcj extends AbstractRunTests { mainTypeName = CharOperation.subarray(fileNameCharArray, start, end); } + @Override public int hashCode() { + return System.identityHashCode(this); + } + + @Override public boolean equals(Object obj) { + return this == obj; + } + @Override public char[] getContents() { return source; } -- cgit