import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Locale;
+import java.util.Map;
import junit.framework.Test;
import junit.framework.TestCase;
import net.sourceforge.phpdt.internal.compiler.DefaultErrorHandlingPolicies;
import net.sourceforge.phpdt.internal.compiler.batch.CompilationUnit;
import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
+import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
import net.sourceforge.phpdt.internal.compiler.parser.UnitParser;
import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblem;
import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblemFactory;
new UnitParser(
new ProblemReporter(
DefaultErrorHandlingPolicies.proceedWithAllProblems(),
- //new CompilerOptions(getCompilerOptions()),
+ new CompilerOptions(getCompilerOptions()),
new DefaultProblemFactory(Locale.getDefault())));
ICompilationUnit sourceUnit = new CompilationUnit(source, "", null);
new UnitParser(
new ProblemReporter(
DefaultErrorHandlingPolicies.proceedWithAllProblems(),
- //new CompilerOptions(getCompilerOptions()),
+ new CompilerOptions(getCompilerOptions()),
new DefaultProblemFactory(Locale.getDefault())));
ICompilationUnit sourceUnit = new CompilationUnit(source, "", null);
super(name);
}
-// protected Map getCompilerOptions() {
-// Map options = new CompilerOptions().getMap();
+ protected Map getCompilerOptions() {
+ Map options = new CompilerOptions().getMap();
// if (COMPLIANCE_1_3.equals(this.complianceLevel)) {
// options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_3);
// options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3);
// options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5);
// options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5);
// }
-// return options;
-// }
+ return options;
+ }
public String getName() {
String name = super.getName();