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

CountDownLatch.getCount returns "long" but constructor only accepts "int"

    Details

      Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      In the class java.util.concurrent.CountDownLatch constructor has type "int".

      public CountDownLatch(int count);

      After construction, counter can only decreasing, but method getCount returns long value.

      public long getCount()

      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

        Attachments

          Activity

            People

            • Assignee:
              martin Martin Buchholz
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: