ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34411] - Task.init() gets called twice
Date Tue, 12 Apr 2005 14:15:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34411>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34411





------- Additional Comments From ddevienne@lgc.com  2005-04-12 16:15 -------
My bad. I stumbled on that one also, and didn't report it. I was in a hurry, 
and then forgot. I just worked around it in my code. It was the first time the 
double init() call created a bug for me. Usually I don't have an init(), or it 
doesn't add things to a list as in this case. Double creation of a var is 
wasteful but usually benign, while double add to a list was a bug. --DD

  public void init()
              throws BuildException {
    // necessary, since init() is called twice!
    if (_implicit == null) {
      // Configure and add the implicit folder
      _implicit = new Folder();
      ...
    }
  }

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message