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

improve generic signature of internal DCInlineTag class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • tools
    • b21

      DCEndPosTrr<T extends DCEndPosTree> has a method

      T setEndPos(int)

      so that it can easily be used in chained method calls.

      But that flexibility is lost for subtypes of DCInlineTag which is defined as

      public abstract static class DCInlineTag extends DCEndPosTree<DCInlineTag> implements InlineTagTree {

      In other words, the T in EndPosTree<T> is fixed at DCInlineTag.

      We should change DCInlineTag to itself be a generic type.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: