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

switch (FileChannel.MapMode mode) case causes compiler error

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Currently in preview, patterns in switch is a great feature that allows FileChannel.MapMode to be used in switch. However, cases on its values (e.g. FileChannel.MapMode.READ_WRITE) do not compile, error being "constant expression required".


            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: