DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24720>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24720

repeated <antcall/> cause OutOfMemeory exception

           Summary: repeated <antcall/> cause OutOfMemeory exception
           Product: Ant
           Version: 1.5.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If <antcall/> is invoked many times in the same JVM, the JVM may throw an 
OutOfMemeory exception.

Problem can be easily reproduced by the following simple build file:
<project name="mybuild" default="run" >

    <target name="echo" >
         <echo message="Hello,world" />
    </target>

   <target name="run">
        <antcall target="echo" />
        <antcall target="echo" />
        <!-- repeat 1000 times -->
   </target>

</project>


Errors reported :
echo:
     [echo] Hello, world
  [antcall] calling target echo in build 
file /private/fip/viewwork/fip_j2ee6/tklocal/build1.xml

[ ... repeated many times ...]
echo:
     [echo] Hello, world
  [antcall] calling target echo in build 
file /private/fip/viewwork/fip_j2ee6/tklocal/build1.xml

BUILD FAILED
java.lang.OutOfMemoryError

Total time: 1 minute 31 seconds
java.lang.OutOfMemoryError

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to