-
Bug
-
Resolution: Fixed
-
P5
-
25
-
b20
-
generic
-
windows
The @Override annotation can help catch bugs when parent methods are removed/moved/renamed and subclasses are not updated accordingly. Currently there are several unused methods in peers which have been left unnoticed, but could be identified during the build process if this annotation were in use.
The final is useful as is, but it additionally helps automated code analyzers to remove the assumption that methods might be overridden somewhere.
[1] JavaSound https://github.com/openjdk/jdk/commit/e0c7d59246cf36644d494eced76e4b9d96ff1ded#diff-ae3e5f9c40fe25ef03e7a89844de174ef5c15e6179d769e2a4bcb7e73688c9b5
- causes
-
JDK-8359433 JDK-8352638 breaks custom UI classes
-
- Open
-
-
JDK-8365708 Add missing @Override annotations to WindowsMenuItemUIAccessor
-
- Resolved
-
-
JDK-8365711 Declare menuBarHeight and hotTrackingOn private
-
- Resolved
-
-
JDK-8360594 JDK-8352638 breaks Swing libs like Jide/JGoodies because *UI classes are final
-
- Closed
-
- relates to
-
JDK-8355790 Enhance code consistency: java.desktop/unix:sun.awt
-
- Resolved
-
-
JDK-8357696 Enhance code consistency: java.desktop/unix
-
- Resolved
-
-
JDK-8358468 Enhance code consistency: java.desktop/macos
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/477da161
-
Review(master) openjdk/jdk/24170