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

redundant cast build failure after 8003120

XMLWordPrintable

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

      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();

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

              Created:
              Updated:
              Resolved: