ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52030] Javac Task looses source files when forked and special characters exists in the class name
Date Sat, 29 Oct 2011 04:07:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52030

--- Comment #4 from Jesse Glick <jglick@netbeans.org> 2011-10-29 04:07:06 UTC ---
Note that when you are running a forked compiler and the javac command line
exceeds the POSIX maximum guaranteed size of 4Kb,
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile
will create a temp file for arguments (including source filenames) and pass it
to javac using @/tmp/files syntax. This temp file uses the operating system's
default character encoding, since
com.sun.tools.javac.main.CommandLine.loadCmdFile expects it in that encoding.
On modern Linux distributions at least, UTF-8 is the default encoding, which is
safe for any characters; on Mac OS X some other limited encoding might be the
default, meaning you can only deal with filenames that can be represented in
that encoding, though I would expect 'é' to be safe. Anyway the error message
you quote seems to indicate that javac received the filename intact but was
unable to open it.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Mime
View raw message