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

Remove @SuppressWarnings("cast") and casts for NIO related usages when JDK 9 becomes the bootstrap JDK

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b29

      Description

      The fix for JDK-4774077 introduced covariant return types in the NIO buffer hierarchy.

      As a consequence that fix introduced redundant casts (and because of -Werror a build failure) in langtools when compiling with JDK 9, but the casts are still required when bootstrapping with JDK 8.

      The fix for JDK-8062376 added @SuppressWarnings("cast") annotations to ensure no build failure.

      When JDK 9 becomes the default bootstrap JDK the @SuppressWarnings("cast") and casts can be removed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: