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

(fs) Path.register doesn't throw IllegalArgumentException if multiple OVERFLOW events are specified

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P5
    • Resolution: Fixed
    • 7u60
    • 9
    • core-libs
    • None
    • b13

    Backports

      Description

        The code doesn't handle some types of invalid input:

        For example: path.register(watcher, OVERFLOW, OVERFLOW) does not throw the exception, and instead makes sun.nio.fs.LinuxWatchService$Poller to fail.

        Attachments

          Issue Links

            Activity

              People

                igerasim Ivan Gerasimov
                igerasim Ivan Gerasimov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: