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

Unable to access 'setRemoveOnCancelPolicy'

    Details

      Description

      A DESCRIPTION OF THE PROBLEM :
      Unable to access 'setRemoveOnCancelPolicy' in case Executors.newSingleThreadScheduledExecutor()

      1. Executors.newSingleThreadScheduledExecutor() not gives direct access to 'ScheduledThreadPoolExecutor'
      2. It wraps it under 'DelegatedScheduledExecutorService'
      3. 'DelegatedScheduledExecutorService' is a private class
      4. Even it could be accessible, setRemoveOnCancelPolicy will not be present. Because it does not extend ScheduledThreadPoolExecutor
      5. There should be a way to access 'setRemoveOnCancelPolicy' from 'Executors.newSingleThreadScheduledExecutor' or 'Executors'


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: