Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5013727

Terminology change: annnotation member -> annotation element

XMLWordPrintable

    • b49
    • generic
    • generic

      The JLS makes extensive use of the term "member." Previous drafts of the Metadata spec defined the term "annotation member" in a way that differed subtly from existing uses of the term "member." The potential for confusion was great. The JLS maintainer notified the JSR-175 Expert Group that "[The term] member is well defined in the JLS and will stay so. This terminology will be changed, so it's best if you all come up with something else."

      Therefore, the JSR-175 expert group decided to change the term "annnotation member" (resp. "annotation type member") to "annotation element" (resp. "annotation type element") throughout the JSR-175 spec. This affects several APIs. The main bug for this change is 5013441.

      Several methods in the doclet API are affected; this bug tracks those changes:

      public interface AnnotationDesc {
         MemberValuePair[] memberValues(); // **

         public interface MemberValuePair { //**
             AnnotationTypeMemberDoc member(); // **
         }
      }

      public interface AnnotationTypeDoc extends ClassDoc {
         AnnotationTypeMemberDoc[] members(); // **
      }

      public interface AnnotationTypeMemberDoc extends MethodDoc { // **
      }

      public interface Doc {
         boolean isAnnotationTypeMember(); // **
      }

            sseligmasunw Scott Seligman (Inactive)
            jjb Josh Bloch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: