aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/DelegateOnStatic.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-02-20 23:08:37 +0100
committerRoel Spilker <r.spilker@gmail.com>2014-02-20 23:08:37 +0100
commit4372aedbd03cc4e43b90a4c0c4f703da01f322ef (patch)
treebca1eb59e1101790b0f4b554bcc83a6db80ad9f7 /test/transform/resource/before/DelegateOnStatic.java
parentbef8d3cb41cc895226ebc29ecef8555d15f9beae (diff)
downloadlombok-4372aedbd03cc4e43b90a4c0c4f703da01f322ef.tar.gz
lombok-4372aedbd03cc4e43b90a4c0c4f703da01f322ef.tar.bz2
lombok-4372aedbd03cc4e43b90a4c0c4f703da01f322ef.zip
Issue 641: @Delegate is incorrectly allowed on static members in javac. Also added tests, Reinier.
Diffstat (limited to 'test/transform/resource/before/DelegateOnStatic.java')
-rw-r--r--test/transform/resource/before/DelegateOnStatic.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/before/DelegateOnStatic.java b/test/transform/resource/before/DelegateOnStatic.java
new file mode 100644
index 00000000..ef56ef54
--- /dev/null
+++ b/test/transform/resource/before/DelegateOnStatic.java
@@ -0,0 +1,12 @@
+import lombok.Delegate;
+import lombok.Getter;
+
+class DelegateOnStatic {
+ @Delegate private static final java.lang.Runnable staticField = null;
+}
+
+class DelegateOnStaticMethod {
+ @Delegate private static final java.lang.Runnable staticMethod() {
+ return null;
+ };
+} \ No newline at end of file