bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/42808] New: EnumSet.allOf behavior differs from Sun 1.5 w


From: btaitelb at gmail dot com
Subject: [Bug classpath/42808] New: EnumSet.allOf behavior differs from Sun 1.5 with empty collection
Date: 19 Jan 2010 20:29:53 -0000

According to Sun's API, EnumSet.allOf(Class elementType) only throws a
NullPointerException if elementType is null, but classpath's implementation of
this method makes a call to EnumSet.copyOf(Collection c), which throws an
IllegalArgumentException of c is empty.

The behavior of EnumSet.allOf should be the same as sun's for an empty
collection (returning an empty EnumSet).


-- 
           Summary: EnumSet.allOf behavior differs from Sun 1.5 with empty
                    collection
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: btaitelb at gmail dot com


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





reply via email to

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