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

(fc) FileChannel.map does not throw NPE if MapMode specified as null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b65
    • Verification:
      Verified

      Description

      This issue was brought up here:

      http://mail.openjdk.java.net/pipermail/nio-dev/2012-November/001969.html

      Basically FileChannel.map does not check if the MapMode is null causing it use a default and throwing an assertion (if asserts are enabled).

        Attachments

          Activity

            People

            • Assignee:
              alanb Alan Bateman
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: