compile scratches with debug info (IDEA-145117)

This commit is contained in:
Eugene Zhuravlev
2015-09-15 14:35:23 +02:00
parent 8673d7ee50
commit c7958be5a5
@@ -140,6 +140,7 @@ public class JavaScratchCompilationSupport implements ProjectComponent, CompileT
}
final List<String> options = new ArrayList<String>();
options.add("-g"); // always compile with debug info
final JavaSdkVersion sdkVersion = JavaSdk.getInstance().getVersion(targetSdk);
if (sdkVersion != null) {
final String langLevel = "1." + Integer.valueOf(3 + sdkVersion.getMaxLanguageLevel().ordinal());