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

Serial: Move Generation::print_on to subclasses

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • gc
    • b12

      Generation::print_on is virtual method, but it's always called by subclasses to reuse some printing logic.

      Move this method to subclasses to get rid of the use of virtual. This results into some minor code duplication, but simplifies the inheritance hierarchy greatly.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: