mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-100092 Eclipse compiler cannot handle UTF-8 chars
This commit is contained in:
@@ -142,6 +142,14 @@ public class JavacMain {
|
||||
|
||||
try {
|
||||
final Collection<String> _options = prepareOptions(options, nowUsingJavac);
|
||||
|
||||
// to be on the safe side, we'll have to apply all options _before_ calling any of manager's methods
|
||||
// i.e. getJavaFileObjectsFromFiles()
|
||||
// This way the manager will be properly initialized. Namely, the encoding will be set correctly
|
||||
for (Iterator<String> iterator = _options.iterator(); iterator.hasNext(); ) {
|
||||
fileManager.handleOption(iterator.next(), iterator);
|
||||
}
|
||||
|
||||
final JavaCompiler.CompilationTask task = compiler.getTask(
|
||||
out, fileManager, outConsumer, _options, null, fileManager.getJavaFileObjectsFromFiles(sources)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user