diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-28 18:37:44 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-28 18:48:52 +0200 |
commit | 83b4dd86136cad95026f1f2543732e0e39ed6676 (patch) | |
tree | 667a3f16cd16300f250df8b2922bb7aef6b52413 /test/transform/resource/after-ecj | |
parent | ec24fe37ddc7b8230b45f62c11bb4a047e9824e8 (diff) | |
download | lombok-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.java | 15 | ||||
-rw-r--r-- | test/transform/resource/after-ecj/SetterOnStatic.java | 15 |
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; + } +} |