aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-05-08 00:38:50 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-05-08 00:39:59 +0200
commit844995fc606085af7c102954ee342edfd8cd623a (patch)
treeccba4f3c6bb6cedc9798f76d2f32e32395e887b3 /test/transform
parent7f85149f3959335f1be3e75f3695e00fb1cd3594 (diff)
downloadlombok-844995fc606085af7c102954ee342edfd8cd623a.tar.gz
lombok-844995fc606085af7c102954ee342edfd8cd623a.tar.bz2
lombok-844995fc606085af7c102954ee342edfd8cd623a.zip
All tests now succeed on all platforms again;
'optional' expected messages added. expanded some tests. Added a check if the bootclasspath supports a certain version, i.e. don't try to run a JDK7-only test if AutoClosable isn't available.
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/MixGetterVal.java2
-rw-r--r--test/transform/resource/after-delombok/ValInTryWithResources.java1
-rw-r--r--test/transform/resource/after-ecj/MixGetterVal.java2
-rw-r--r--test/transform/resource/before/MixGetterVal.java2
-rw-r--r--test/transform/resource/messages-idempotent/ValErrors.java.messages2
5 files changed, 8 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/MixGetterVal.java b/test/transform/resource/after-delombok/MixGetterVal.java
index 7662608b..abc60d56 100644
--- a/test/transform/resource/after-delombok/MixGetterVal.java
+++ b/test/transform/resource/after-delombok/MixGetterVal.java
@@ -5,6 +5,8 @@ class MixGetterVal {
public void test() {
final int y = x;
m(y);
+ final int a = getX();
+ m(a);
}
@java.lang.SuppressWarnings("all")
public int getX() {
diff --git a/test/transform/resource/after-delombok/ValInTryWithResources.java b/test/transform/resource/after-delombok/ValInTryWithResources.java
index 42bd3193..e1041928 100644
--- a/test/transform/resource/after-delombok/ValInTryWithResources.java
+++ b/test/transform/resource/after-delombok/ValInTryWithResources.java
@@ -1,3 +1,4 @@
+//version 7:
import java.io.IOException;
public class ValInTryWithResources {
public void whyTryInsteadOfCleanup() throws IOException {
diff --git a/test/transform/resource/after-ecj/MixGetterVal.java b/test/transform/resource/after-ecj/MixGetterVal.java
index 45fcf989..d9809703 100644
--- a/test/transform/resource/after-ecj/MixGetterVal.java
+++ b/test/transform/resource/after-ecj/MixGetterVal.java
@@ -10,6 +10,8 @@ class MixGetterVal {
public void test() {
final @val int y = x;
m(y);
+ final @val int a = getX();
+ m(a);
}
public @java.lang.SuppressWarnings("all") int getX() {
return this.x;
diff --git a/test/transform/resource/before/MixGetterVal.java b/test/transform/resource/before/MixGetterVal.java
index f80d2927..3f06b1a8 100644
--- a/test/transform/resource/before/MixGetterVal.java
+++ b/test/transform/resource/before/MixGetterVal.java
@@ -8,5 +8,7 @@ class MixGetterVal {
public void test() {
val y = x;
m(y);
+ val a = getX();
+ m(a);
}
}
diff --git a/test/transform/resource/messages-idempotent/ValErrors.java.messages b/test/transform/resource/messages-idempotent/ValErrors.java.messages
index c2432c6a..f61d3a33 100644
--- a/test/transform/resource/messages-idempotent/ValErrors.java.messages
+++ b/test/transform/resource/messages-idempotent/ValErrors.java.messages
@@ -1,3 +1,3 @@
3 cannot find symbol
6 cannot find symbol
-6 illegal initializer for <none>
+OPTIONAL 6 illegal initializer for <none>