From 3f408782de736a676ee19757894eb89c1f4ebf3b Mon Sep 17 00:00:00 2001 From: peichhorn Date: Thu, 19 Apr 2012 02:41:31 +0200 Subject: fixed: @val didn't work with rawtypes in enhanced for loops --- test/transform/resource/after-ecj/ValRawType.java | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/transform/resource/after-ecj/ValRawType.java (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/ValRawType.java b/test/transform/resource/after-ecj/ValRawType.java new file mode 100644 index 00000000..a8ab6ddc --- /dev/null +++ b/test/transform/resource/after-ecj/ValRawType.java @@ -0,0 +1,27 @@ +import java.util.List; +import lombok.val; +public class ValRawType { + static class Element { + Element() { + super(); + } + public List attributes() { + return null; + } + } + static class Attribute { + Attribute() { + super(); + } + } + public ValRawType() { + super(); + } + public void test() { + Element propElement = new Element(); + for (final @val java.lang.Object attribute : propElement.attributes()) + { + final @val ValRawType.Attribute attr = (Attribute) attribute; + } + } +} \ No newline at end of file -- cgit