为什么未将java.util.Stack标记为已弃用?

There are many criticisms against the stale java.util.Stack class such as this one, saying that it should be avoided because it's less safe and less fast. I can understand keeping it in JDK for compatibility reasons, but why isn't it marked as deprecated?

人们会被班级的名称所欺骗,并在各处使用它。 最好是在编译时看到警告,告知他们使用的类已过时。

评论