You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2017/07/07 20:05:11 UTC

[Bug 50781] javac task creates long command line

https://bz.apache.org/bugzilla/show_bug.cgi?id=50781

--- Comment #15 from David Turner (Two Sigma) <dt...@twosigma.com> ---
I hit this bug recently.  Unfortunately, the patches won't work for me; my
arguments are "-Xblahblahblah", "MyCompilerClass", "-classpath", "[too long]". 
As I understand it, for javac, the class argument may not be read from an
@file.  As other comments imply, this problem is not solvable in general;
arbitrary compilers may have arbitrary spilling rules.  But one possibility is
to only start spilling at 4096 minus N characters, where N is the length of the
temp filename; this is the best we can do, and if it breaks, then there was
probably no way to salvage the situation.

-- 
You are receiving this mail because:
You are the assignee for the bug.