Bug 25998

Summary: PropertyHelper - getPropertyHelper method should call setProject on a retrieved helper
Product: Ant Reporter: Sean Timm <stimm>
Component: CoreAssignee: Ant Notifications List <notifications>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 1.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Sean Timm 2004-01-08 20:14:18 UTC
I'm deriving a class from PropertyHelper to use via the ant.PropertyHelper 
reference.  I'm doing a quick code check, and while the static 
getPropertyHelper method of PropertyHelper gets called to return the reference, 
the setProject method is never called on the reference if it is found, so I'm 
not sure if I even have access to the project...

Note that setProject *does* get called if a reference isn't found and a new 
PropertyHelper instance is created.
Comment 1 peter reilly 2004-01-09 08:48:15 UTC
The setProject() is called as you say, when the PropertyHelper is created.
Comment 2 peter reilly 2004-01-09 08:51:01 UTC
Ok, looking at the code, it is a bit confusing - esp
for property helpers in child projects.