Skip to content

Commit

Permalink
add comment on test
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
  • Loading branch information
cdietrich committed May 18, 2024
1 parent 4de0539 commit f9a7bd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2022 itemis AG (http://www.itemis.eu) and others.
* Copyright (c) 2016, 2024 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
Expand Down Expand Up @@ -221,6 +221,11 @@ protected XtextResourceSet resourceSet(Map<String, String> files) {
protected XtextResourceSet resourceSet(Map<String, String> files, JavaVersion javaVersion) {
XtextResourceSet result = resourceSetProvider.get();
if (javaVersion != null) {
/*
* we need to configure the java version first before loading any resources into
* the resourceset to make sure on the load / install stubs the correct java
* version is picked
*/
JavaConfig javaConfig = new JavaConfig();
javaConfig.setJavaSourceLevel(javaVersion);
javaConfig.setJavaTargetLevel(javaVersion);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others.
* Copyright (c) 2015, 2024 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
Expand Down

0 comments on commit f9a7bd9

Please sign in to comment.