diff --git a/src/main/java/org/nlpcn/jcoder/run/java/DynamicEngine.java b/src/main/java/org/nlpcn/jcoder/run/java/DynamicEngine.java index 2be6475..df01fc8 100644 --- a/src/main/java/org/nlpcn/jcoder/run/java/DynamicEngine.java +++ b/src/main/java/org/nlpcn/jcoder/run/java/DynamicEngine.java @@ -3,6 +3,7 @@ import com.google.common.base.Joiner; import org.nlpcn.jcoder.run.CodeException; import org.nlpcn.jcoder.scheduler.TaskException; +import org.nlpcn.jcoder.util.StaticValue; import org.nlpcn.jcoder.util.StringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -89,6 +90,9 @@ public Class javaCodeToClass(String fullClassName, String javaCode) throws IO options.add("-classpath"); options.add(this.classpath); options.add("-parameters"); + if (StaticValue.TESTRING) { + options.add("-g"); + } JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, jfiles); boolean success = task.call();