aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-11 23:51:46 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-12 00:37:54 +0100
commitfd0530f4e9591fb1e38d56669d9e777c8efcbac5 (patch)
tree8768e0e9ba5e87b00e0204b55b63ee5eeb6054ab /test
parent6c21ae7e3a56699563a003b3f438557e30264ecc (diff)
downloadlombok-fd0530f4e9591fb1e38d56669d9e777c8efcbac5.tar.gz
lombok-fd0530f4e9591fb1e38d56669d9e777c8efcbac5.tar.bz2
lombok-fd0530f4e9591fb1e38d56669d9e777c8efcbac5.zip
[test] Just cleaning up tests that fail on javac8/6 and ecj.
These tests should fail on j6/8 as they use newer features; the test files lacked proper markings so they weren't being skipped.
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/CheckerFrameworkBuilder.java2
-rw-r--r--test/transform/resource/after-delombok/LoggerFloggerRecord.java3
-rw-r--r--test/transform/resource/after-delombok/ValInvalidParameter.java1
-rw-r--r--test/transform/resource/after-ecj/LoggerFloggerRecord.java3
-rw-r--r--test/transform/resource/before/LoggerFloggerRecord.java2
-rw-r--r--test/transform/resource/before/ValInvalidParameter.java2
6 files changed, 9 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java b/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java
index 99245e11..64f07c37 100644
--- a/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java
+++ b/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java
@@ -1,3 +1,5 @@
+//version 8:
+//skip-idempotent
import java.util.List;
class CheckerFrameworkBuilder {
int x;
diff --git a/test/transform/resource/after-delombok/LoggerFloggerRecord.java b/test/transform/resource/after-delombok/LoggerFloggerRecord.java
index 9cc0c9c0..bd51d056 100644
--- a/test/transform/resource/after-delombok/LoggerFloggerRecord.java
+++ b/test/transform/resource/after-delombok/LoggerFloggerRecord.java
@@ -1,5 +1,6 @@
+// version 14:
class LoggerFloggerRecord {
- record Inner(String x) {
+ public record Inner(String x) {
@java.lang.SuppressWarnings("all")
private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass();
}
diff --git a/test/transform/resource/after-delombok/ValInvalidParameter.java b/test/transform/resource/after-delombok/ValInvalidParameter.java
index f3d4229c..787a20bf 100644
--- a/test/transform/resource/after-delombok/ValInvalidParameter.java
+++ b/test/transform/resource/after-delombok/ValInvalidParameter.java
@@ -1,3 +1,4 @@
+//version 7:8
public class ValInvalidParameter {
public void val() {
final java.lang.Object a = a(new NonExistingClass());
diff --git a/test/transform/resource/after-ecj/LoggerFloggerRecord.java b/test/transform/resource/after-ecj/LoggerFloggerRecord.java
index 86004b67..85ff1641 100644
--- a/test/transform/resource/after-ecj/LoggerFloggerRecord.java
+++ b/test/transform/resource/after-ecj/LoggerFloggerRecord.java
@@ -1,6 +1,7 @@
+// version 14:
import lombok.extern.flogger.Flogger;
class LoggerFloggerRecord {
- static @Flogger record Inner(String x) {
+ public static @Flogger record Inner(com log) {
private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass();
/* Implicit */ private final String x;
<clinit>() {
diff --git a/test/transform/resource/before/LoggerFloggerRecord.java b/test/transform/resource/before/LoggerFloggerRecord.java
index 908704d6..f8f48f2c 100644
--- a/test/transform/resource/before/LoggerFloggerRecord.java
+++ b/test/transform/resource/before/LoggerFloggerRecord.java
@@ -4,5 +4,5 @@ import lombok.extern.flogger.Flogger;
class LoggerFloggerRecord {
@Flogger
- record Inner(String x) {}
+ public record Inner(String x) {}
}
diff --git a/test/transform/resource/before/ValInvalidParameter.java b/test/transform/resource/before/ValInvalidParameter.java
index f4961c4e..10487e47 100644
--- a/test/transform/resource/before/ValInvalidParameter.java
+++ b/test/transform/resource/before/ValInvalidParameter.java
@@ -1,4 +1,4 @@
-//version :9
+//version 8:9
import lombok.val;
public class ValInvalidParameter {