JDK-8000954 : Add final keyword to new method in SSLParameters
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-16
  • Updated: 2017-05-17
  • Resolved: 2012-10-20
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 8
8 b63Fixed
Related Reports
Relates :  
Description
In case of any improper override of the implementation, need to add final keyword to new method in SSLParameters in JDK 8.

-     public void setServerNames(List<SNIServerName> serverNames)
+    public final void setServerNames(List<SNIServerName> serverNames)

-     public List<SNIServerName> getServerNames()
+    public final List<SNIServerName> getServerNames();

-     public void setSNIMatchers(Collection<SNIMatcher> matchers)
+    public final void setSNIMatchers(Collection<SNIMatcher> matchers)

-     public Collection<SNIMatcher> getSNIMatchers()
+    public final Collection<SNIMatcher> getSNIMatchers()
Comments
final key words have been added into three method for SSLParameters Codes looks good.Verified.
20-01-2013

noreg-trivial, only update add the "final" keyword to the new methods in SSLParameters. Need no new regression test.
20-10-2012