Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6812879
Votes 0
Synopsis Excess code line in ArrayList method
Category java:classes_util
Reported Against
Release Fixed 7(b51)
State 10-Fix Delivered, bug
Priority: 5-Very Low
Related Bugs
Submit Date 04-MAR-2009
Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
Method public void ensureCapacity(int minCapacity) of ArrayList contains excess code line "Object oldData[] = elementData;" - the variable "oldData" is never read locally.


REPRODUCIBILITY :
This bug can be reproduced always.
Posted Date : 2009-03-04 10:23:15.0
Work Around
N/A
Evaluation
it's the "leftover" of the "old" code when migrating from System.arraycopy to Arrays.copyOf.
Posted Date : 2009-03-04 17:47:40.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang