aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-28 18:37:44 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-28 18:48:52 +0200
commit83b4dd86136cad95026f1f2543732e0e39ed6676 (patch)
tree667a3f16cd16300f250df8b2922bb7aef6b52413 /test/transform/resource/after-ecj
parentec24fe37ddc7b8230b45f62c11bb4a047e9824e8 (diff)
downloadlombok-83b4dd86136cad95026f1f2543732e0e39ed6676.tar.gz
lombok-83b4dd86136cad95026f1f2543732e0e39ed6676.tar.bz2
lombok-83b4dd86136cad95026f1f2543732e0e39ed6676.zip
Added test case for issue #136: @Getter or @Setter on a static field fails to compile.
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/GetterOnStatic.java15
-rw-r--r--test/transform/resource/after-ecj/SetterOnStatic.java15
2 files changed, 30 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/GetterOnStatic.java b/test/transform/resource/after-ecj/GetterOnStatic.java
new file mode 100644
index 00000000..ee90b897
--- /dev/null
+++ b/test/transform/resource/after-ecj/GetterOnStatic.java
@@ -0,0 +1,15 @@
+class Getter {
+ static @lombok.Getter boolean foo;
+ static @lombok.Getter int bar;
+ <clinit>() {
+ }
+ Getter() {
+ super();
+ }
+ public static @java.lang.SuppressWarnings("all") boolean isFoo() {
+ return Getter.foo;
+ }
+ public static @java.lang.SuppressWarnings("all") int getBar() {
+ return Getter.bar;
+ }
+}
diff --git a/test/transform/resource/after-ecj/SetterOnStatic.java b/test/transform/resource/after-ecj/SetterOnStatic.java
new file mode 100644
index 00000000..8a5abdd8
--- /dev/null
+++ b/test/transform/resource/after-ecj/SetterOnStatic.java
@@ -0,0 +1,15 @@
+class Setter {
+ static @lombok.Setter boolean foo;
+ static @lombok.Setter int bar;
+ <clinit>() {
+ }
+ Setter() {
+ super();
+ }
+ public static @java.lang.SuppressWarnings("all") void setFoo(final boolean foo) {
+ Setter.foo = foo;
+ }
+ public static @java.lang.SuppressWarnings("all") void setBar(final int bar) {
+ Setter.bar = bar;
+ }
+}