@@ -0,0 +1,733 @@
+package bugIdeas;%0A%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.reflect.Field;%0A%0Apublic class Ideas_2010_05_22  %7B%0A%0A%09@Retention(RetentionPolicy.CLASS)%0A%09@interface NotRuntimeVisible %7B%7D%0A%09%0A%09@Retention(RetentionPolicy.RUNTIME)%0A%09@interface RuntimeVisible %7B%7D%0A%09%0A%09public @RuntimeVisible int x;%0A%09public @NotRuntimeVisible int y;%0A%09%0A%09public static void main(String args %5B%5D) throws Exception %7B%0A%09%09Class c = Ideas_2010_05_22.class;%0A%09%09Field xField = c.getField(%22x%22);%0A%09%09Field yField = c.getField(%22y%22);%0A%09%09%0A%09%09if (xField.isAnnotationPresent(RuntimeVisible.class)) %7B%0A%09%09%09System.out.println(%22x%22);%0A%09%09%7D%0A%09%09if (yField.isAnnotationPresent(NotRuntimeVisible.class)) %7B%0A%09%09%09System.out.println(%22y%22);%0A%09%09%7D%0A%09%7D%0A%0A%0A%7D%0A

test case