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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • tools
    • None
    • b29

      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.

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

              Created:
              Updated:
              Resolved: