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

Make VoidClosure::do_void pure virtual

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      ```
      class VoidClosure : public StackObj {
       public:
        // I would have liked to declare this a pure virtual, but that breaks
        // in mysterious ways, for unknown reasons.
        virtual void do_void();
      };
      ```

      It's unclear what "unknown reasons" were, but making it pure virtual works fine on master branch.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: