Details
-
Bug
-
Resolution: Fixed
-
P2
-
8
-
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();
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
- relates to
-
JDK-8003120 ResourceManager.getApplicationResources() does not close InputStreams
- Closed