Bug 25998 - PropertyHelper - getPropertyHelper method should call setProject on a retrieved helper
Summary: PropertyHelper - getPropertyHelper method should call setProject on a retriev...
Status: REOPENED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.6.0
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-08 20:14 UTC by Sean Timm
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.