JDK-8283705 : Make javax.sound.midi.Track a final class
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-25
  • Updated: 2022-05-19
  • Resolved: 2022-05-18
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 19
19 masterFixed
Related Reports
CSR :  
Relates :  
Description
JDK 17 delivered JEP 409: Sealed Classes : https://openjdk.java.net/jeps/409
As well as being used for future classes this can be retrofitted to
suitable existing API classes where provably there can be no application
sub-classes since there are no public or protected constructors and
at least one package access constructor

A scan for these has identified various classes in the desktop module as candidates
Some of these turn out to have no subclasses and these should be marked final instead of sealed.

javax.sound.midi.Track has been identified as a class that could be made final
Comments
Changeset: 9becf7d5 Author: Phil Race <prr@openjdk.org> Date: 2022-05-18 17:19:19 +0000 URL: https://git.openjdk.java.net/jdk/commit/9becf7d5780860a92e018638dafb1b0a02b07048
18-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8492 Date: 2022-05-01 21:15:33 +0000
01-05-2022