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

HotSpot Style Guide should disallow inheriting constructors

XMLWordPrintable

    • b16

      Inheriting constructors is a feature added in C++11:
      http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm
      Inheriting Constructors

      It turns out there are a fair number of problems with the original version of this feature, many of which were addressed in a significant revision to its specification in C++17:
      http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html
      Rewording inheriting constructors
      C++17 fix for 8 core issues involving inherited constructors

      Since we don't currently support C++17, use of the feature could run into those problems. Such uses might also change behavior in a future HotSpot update to use C++17 or later, potentially in subtle ways that could lead to hard to diagnose problems.

      Because of this, the HotSpot Style Guide should explicitly disallow the use of this feature.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: