ソースを参照

328840

tags/V1_6_11M1
aclement 13年前
コミット
9c8d91a035
1個のファイルの変更33行の追加0行の削除
  1. 33
    0
      tests/bugs1611/pr328840/Wibble.aj

+ 33
- 0
tests/bugs1611/pr328840/Wibble.aj ファイルの表示

@@ -0,0 +1,33 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;


public aspect Wibble {

declare @field: (@III *) Song.*: @Foo;
before(): get((@III *) Song.*) {
System.out.println();
}
public static void main(String []argv) throws Exception {
System.out.println(Song.class.getDeclaredField("i").getAnnotation(Foo.class));
}
}

@III
class XX {
}
class Song {

XX i;
void foo() {
System.out.println(i);
}
}

@Retention(RetentionPolicy.RUNTIME)
@interface III {}
@Retention(RetentionPolicy.RUNTIME)
@interface Foo {}

読み込み中…
キャンセル
保存