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

FileHandler should allow 'long' limits and handle overflow of MeteredStream.written.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs

        FileHandler defines 'limit' as an int - which doesn't allow more than ~ 2^31 bytes (~ 2 gb) in a log. But this is impaired by a bug that can let MeteredStream.written overflow and prevents the log from wrapping.

        The proposal is to allow for 'long' limits and detect properly if/when MeteredStream.written overflows.

        See http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-August/028280.html

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: