diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-31 04:46:57 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-31 04:46:57 +0100 |
commit | ef1f4e6404be2a50a04c5adc4daba7b171bb26e0 (patch) | |
tree | 74c4839c21443e667dd7264a2472bb67da39638a | |
parent | 6a91c013ca2b20cc378515b83e3584f1dad958c0 (diff) | |
download | lombok-ef1f4e6404be2a50a04c5adc4daba7b171bb26e0.tar.gz lombok-ef1f4e6404be2a50a04c5adc4daba7b171bb26e0.tar.bz2 lombok-ef1f4e6404be2a50a04c5adc4daba7b171bb26e0.zip |
added unit tests that confirmed break before the i694 fix and work afterwards.
3 files changed, 42 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValWithLocalClasses.java b/test/transform/resource/after-delombok/ValWithLocalClasses.java new file mode 100644 index 00000000..b739b10e --- /dev/null +++ b/test/transform/resource/after-delombok/ValWithLocalClasses.java @@ -0,0 +1,11 @@ +class ValWithLocalClasses1 { + { + final ValWithLocalClasses2 f2 = new ValWithLocalClasses2(){ + }; + } +} +class ValWithLocalClasses2 { + { + final int f3 = 0; + } +} diff --git a/test/transform/resource/after-ecj/ValWithLocalClasses.java b/test/transform/resource/after-ecj/ValWithLocalClasses.java new file mode 100644 index 00000000..59880acf --- /dev/null +++ b/test/transform/resource/after-ecj/ValWithLocalClasses.java @@ -0,0 +1,20 @@ +class ValWithLocalClasses1 { + { + final @lombok.val ValWithLocalClasses2 f2 = new ValWithLocalClasses2() { + x() { + super(); + } + }; + } + ValWithLocalClasses1() { + super(); + } +} +class ValWithLocalClasses2 { + { + final @lombok.val int f3 = 0; + } + ValWithLocalClasses2() { + super(); + } +} diff --git a/test/transform/resource/before/ValWithLocalClasses.java b/test/transform/resource/before/ValWithLocalClasses.java new file mode 100644 index 00000000..8c6be4f9 --- /dev/null +++ b/test/transform/resource/before/ValWithLocalClasses.java @@ -0,0 +1,11 @@ +class ValWithLocalClasses1 { + { + lombok.val f2 = new ValWithLocalClasses2() {}; + } +} + +class ValWithLocalClasses2 { + { + lombok.val f3 = 0; + } +}
\ No newline at end of file |