Question on HashMap change in 8011200 (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Fri Jun 28 13:02:37 UTC 2013
- Previous message: Question on HashMap change in 8011200
- Next message: Question on HashMap change in 8011200
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 27/06/2013 22:13, Remi Forax wrote:
On 06/27/2013 10:02 AM, Shi Jun Zhang wrote:
Hi,
There are some isEmpty() check added into get/remove methods since 8011200 to return directly if HashMap is empty. However isEmpty is a non-final public method which can be overridden by subclass. If the subclass defines isEmpty differently from HashMap, it would cause problem while getting or removing elements. yes, it's a bug. Could you report it ? Rémi I've created a bug to track this:
8019381: HashMap.isEmpty is non-final, potential issues for get/remove
-Alan
- Previous message: Question on HashMap change in 8011200
- Next message: Question on HashMap change in 8011200
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]