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

redundant cast build failure after 8003120

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8
    • core-libs
    • b66
    • Verified

    Description

      8003120 adds a new line

         InputStream istream = (InputStream)resources.next();

      but resources is already of type NamingEnumeration<InputStream>.

      Building now shows

      ../../../src/share/classes/com/sun/naming/internal/ResourceManager.java:563: warning: [cast] redundant cast to InputStream
                              InputStream istream = (InputStream)resources.next();

      Attachments

        Issue Links

          Activity

            People

              weijun Weijun Wang
              weijun Weijun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: