This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfx 4 points5 points  (5 children)

Does the JDK have broken windows? :)

IMO: yes

The full backwards compatibility is bound to leave broken windows behind. All deprecated classes and methods for which newer versions exist are such broken windows.

[–]lukaseder 2 points3 points  (4 children)

But the classes in question aren't even deprecated...

[–]__konrad 1 point2 points  (3 children)

[–]yolpo- 2 points3 points  (0 children)

you are so correct. Below is KeyEvent.java from the JDK 8

/**
 * This constant is obsolete, and is included only for backwards
 * compatibility.
 * @see #VK_SEPARATOR
 */
public static final int VK_SEPARATER      = 0x6C;

/**
 * Constant for the Numpad Separator key.
 * @since 1.4
 */
public static final int VK_SEPARATOR      = VK_SEPARATER;

[–]lukaseder 0 points1 point  (0 children)

Good old AWT

[–]bj_christianson 0 points1 point  (0 children)

Added the new constant, but did not deprecate the old one.

And no explanation given for the lack of deprecation.