Skip to content

Commit

Permalink
enforcing java11 target and source for generated code for parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Sep 14, 2023
1 parent 7c8d288 commit 5ae1db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/interpreter/utils/JavaBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void compileJava(ISourceLocation loc, String className, String source, Ou
public <T> Class<T> compileJava(ISourceLocation loc, String className, Class<?> parent, String source) {
try {
// watch out, if you start sharing this compiler, classes will not be able to reload
List<String> commandline = Arrays.asList(new String[] {"-proc:none", "-cp", config.getRascalJavaClassPathProperty()});
List<String> commandline = Arrays.asList(new String[] {"-proc:none", "--release", "11", "-cp", config.getRascalJavaClassPathProperty()});
JavaCompiler<T> javaCompiler = new JavaCompiler<T>(parent.getClassLoader(), null, commandline);
Class<T> result = javaCompiler.compile(className, source, null, Object.class);
return result;
Expand Down

0 comments on commit 5ae1db4

Please sign in to comment.