redundant cast build failure after 8003120

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8
    • Component/s: 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();

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

              Created:
              Updated:
              Resolved: