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 49659] [regression] Project.getReference(key) no longer returns certain references
Date Tue, 14 Dec 2010 20:53:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49659

Michael Rennie <michael_rennie@ca.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Project.getReference(key)   |[regression]
                   |no longer returns certain   |Project.getReference(key)
                   |references                  |no longer returns certain
                   |                            |references

--- Comment #3 from Michael Rennie <michael_rennie@ca.ibm.com> 2010-12-14 15:53:33 EST
---
Would have been nice to have this fixed in Ant 1.8.2.

I spent some time doing some more debugging of the org.apache.ant source and
found that during the parse of a build file in 

ProjectHelpr2$ElementHandler#onStartElement(...)

a call is made to AntXMLContext.configureId(...) which maps the UnknownElement
to its id in Project#idReferences. Prior to Ant 1.8.0 you could then look up
these UnknownElements by passing their id into Project#getReference. This no
longer works as mentioned in comment #0.

-- 
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