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

IntegralConstant should not be AllStatic

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b31
    • CPU:
      generic
    • OS:
      generic

      Description

      IntegralConstant currently derives from AllStatic. That's wrong; it should be (default) constructable. From the requirements:

      // A type n is a model of Integral Constant if it meets the following
      // requirements:
      //
      [...]
      // n::value_type const c = n() : c == n::value

      This is also needed for compatibility with C++11 std::integral_constant.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kbarrett Kim Barrett
                Reporter:
                kbarrett Kim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: