https://issues.apache.org/bugzilla/show_bug.cgi?id=51579

             Bug #: 51579
           Summary: AntClassLoader$ResourceEnumeration does not honor the
                    API contract for java.util.Enumeration
           Product: Ant
           Version: 1.8.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


The API contract for java.util.Enumeration states that implementations should
throw java.util.NoSuchElementException when nextElement() is called and the
enumeration is exhausted. 

As of Ant 1.8.2 AntClassLoader$ResourceEnumeration _does not_ throw an
exception under this condition but rather returns null instead. Code that
relies on the exception being thrown does not work properly as enumerations
returned by Ant's class loader do not faithfully implement the API contract.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to