JDK-8041397 : Lint regression in java.net.SocketOption
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-04-21
  • Updated: 2016-06-13
  • Resolved: 2014-04-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b11Fixed
Related Reports
Relates :  
Description
The fix for JDK-8036979 introduced a number of unchecked cast warnings in the core libraries sources. These must be fixed.
Comments
The lint warnings: /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:316: warning: [unchecked] unchecked cast return (T) getOption(SocketOptions.SO_SNDBUF); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:318: warning: [unchecked] unchecked cast return (T) getOption(SocketOptions.SO_RCVBUF); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:320: warning: [unchecked] unchecked cast return (T) getOption(SocketOptions.SO_REUSEADDR); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:322: warning: [unchecked] unchecked cast return (T) getOption(SocketOptions.IP_TOS); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:325: warning: [unchecked] unchecked cast return (T) getOption(SocketOptions.IP_MULTICAST_IF2); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:329: warning: [unchecked] unchecked cast return (T)ttl; ^ required: T found: java.lang.Integer /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/DatagramSocketImpl.java:332: warning: [unchecked] unchecked cast return (T) getOption(SocketOptions.IP_MULTICAST_LOOP); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:413: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.SO_KEEPALIVE); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:415: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.SO_SNDBUF); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:417: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.SO_RCVBUF); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:419: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.SO_REUSEADDR); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:421: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.SO_LINGER); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:423: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.IP_TOS); ^ required: T found: java.lang.Object /hudson/jobs/jdk9-jdk-build-all/workspace/jdk/src/share/classes/java/net/SocketImpl.java:425: warning: [unchecked] unchecked cast return (T)getOption(SocketOptions.TCP_NODELAY); ^ required: T found: java.lang.Object
21-04-2014