--- /dev/null
+import java.lang.annotation.*;
+
+public class Code {
+
+ @Anno
+ int i=0;
+
+ @Anno(name="foobar")
+ int j=0;
+
+ public void m() {
+ i = i+1;
+ j = j+1;
+ }
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {
+ String name() default "";
+}
+
+aspect X {
+ declare warning: get(@Anno(name="") * *) : "name is empty1";
+ declare warning: get(@Anno(name="foobar") * *) : "name is empty2";
+}
// runTest("anno copying");
// }
+ public void testEmptyPattern_pr352363() {
+ runTest("empty pattern");
+ }
+
public void testGenericsIssue_pr351592() {
runTest("generics issue");
}
<suite>
+<ajc-test dir="bugs1612/pr352363" title="empty pattern">
+<compile files="Code.java" options="-1.5">
+ <message line="12" kind="warning" text="name is empty1"/>
+ <message line="13" kind="warning" text="name is empty2"/>
+</compile>
+</ajc-test>
+
<ajc-test dir="bugs1612/pr351592" title="generics issue">
<compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
<run class="caching.Test"/>