Test for JDK-5108778 Too many instances of java.lang.Boolean created in Java application

Stuart Marks stuart.marks at oracle.com
Thu Oct 8 19:05:58 UTC 2015



On 10/6/15 11:51 PM, Dawid Weiss wrote:
> A @Discouraged(String seeAlternative) annotation? This also applies to
> things like Vector or Hashtable (which arguably have a
> slightly different semantics from ArrayList or HashMap, but if somebody uses
> them it's very likely a mistake).

Yes, something like this, although it might be spelled differently. It would be 
applied not only to Vector and Hashtable, but also things like Dictionary and 
Stack. (Remember them?)

s'marks



More information about the core-libs-dev mailing list