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 18642] New: - StackOverflow when <antcall> calls a target which uses <input>
Date Thu, 03 Apr 2003 08:24:39 GMT
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=18642>.
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=18642

StackOverflow when <antcall> calls a target which uses <input>

           Summary: StackOverflow when <antcall> calls a target which uses
                    <input>
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jan@materne.de


Given the buildfile

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="antutil" default="show">
    <target name="test1">
        <antcall target="test2"/>
    </target>

    <target name="test2">
        <input/>
    </target>
</project>

a StackOverflow will encounter if target "test1" is invoked. Invoking "test2" 
works:

c:\temp\ant test1

test1:

test2:


BUILD FAILED
java.lang.StackOverflowError
        at java.lang.Thread.currentThread(Native Method)
        at org.apache.tools.ant.Project.demuxInput(Project.java:1330)
        at org.apache.tools.ant.taskdefs.Ant.handleInput(Ant.java:307)
        at org.apache.tools.ant.taskdefs.CallTarget.handleInput
(CallTarget.java:197)
        at org.apache.tools.ant.UnknownElement.handleInput
(UnknownElement.java:168)
        at org.apache.tools.ant.Project.demuxInput(Project.java:1334)
        at org.apache.tools.ant.DemuxInputStream.read(DemuxInputStream.java:98)
        at org.apache.tools.ant.Project.defaultInput(Project.java:1312)
        at org.apache.tools.ant.Task.handleInput(Task.java:330)
        at org.apache.tools.ant.UnknownElement.handleInput
(UnknownElement.java:168)
        at org.apache.tools.ant.Project.demuxInput(Project.java:1334)
        at org.apache.tools.ant.taskdefs.Ant.handleInput(Ant.java:307)
        ...


Encountered with "Apache Ant version 1.6alpha compiled on February 27 2003".
Testing with Nightly Build.

...

Yes, verified on "Apache Ant version 1.6alpha compiled on April 2 2003".

Mime
View raw message