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

Doclet API: Better specify modifiers(), flatSignature(), and specifyModifiers()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 1.4.0
    • tools

      Specify in the doc comments that ProgramElementDoc modifiers()
      normalizes the order of modifiers, and that MethodDoc flatSignature()
      normalizes the spacing of the parameters. This is useful information when
      writing doclets, and changing the order seems to be an exception.

      Also specify the purpose of modifierSpecifier(). Note that the standard
      doclet uses it to get the modifiers in modifierString (which is called
      from printModifiers()):

          protected String modifierString(MemberDoc member) {
              int ms = member.modifierSpecifier();
              int no = Modifier.NATIVE | Modifier.SYNCHRONIZED;
          return Modifier.toString(ms & ~no);
          }

            ksrini Kumar Srinivasan
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: