ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51579] New: AntClassLoader$ResourceEnumeration does not honor the API contract for java.util.Enumeration
Date Thu, 28 Jul 2011 20:59:58 GMT
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: notifications@ant.apache.org
        ReportedBy: carej@us.ibm.com
    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.

Mime
View raw message