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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: