bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/29086] New: AbstractCollection.toArray(T[]) has 'unreacha


From: subanark at gmail dot com
Subject: [Bug classpath/29086] New: AbstractCollection.toArray(T[]) has 'unreachable' code
Date: 14 Sep 2006 17:36:17 -0000

The catch block in AbstractColleciton.toArray(T[]) is only reachable if
itr.next() throws the exception; the cast (T) is a noop due to easure of
generics.

a[pos] = (T) (itr.next());

I suggest that the catch block be removed.


-- 
           Summary: AbstractCollection.toArray(T[]) has 'unreachable' code
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: subanark at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29086





reply via email to

[Prev in Thread] Current Thread [Next in Thread]