Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2017-09-04 19:38:49 +0000
committerTill Brychcy2017-09-04 19:38:49 +0000
commit303ab53c0c4e979c5c5a8b414f451afe90979685 (patch)
treeff9bf9af1a4f90126eb41502f96fbac31c079bc4
parent7c29ae37cc3a2e5f555afbdb029c6b2b8bd21cc1 (diff)
downloadeclipse.jdt.debug-303ab53c0c4e979c5c5a8b414f451afe90979685.tar.gz
eclipse.jdt.debug-303ab53c0c4e979c5c5a8b414f451afe90979685.tar.xz
eclipse.jdt.debug-303ab53c0c4e979c5c5a8b414f451afe90979685.zip
Bug 521843 - [9] Cannot launch JUnit Plugin test with Java 9 instead ofY20170907-1000P20170905-0025
-rw-r--r--org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/StandardClasspathProvider.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/StandardClasspathProvider.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/StandardClasspathProvider.java
index 66a2e5c54..396ee7fb2 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/StandardClasspathProvider.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/StandardClasspathProvider.java
@@ -50,13 +50,12 @@ public class StandardClasspathProvider implements IRuntimeClasspathProvider {
}
IRuntimeClasspathEntry[] entries = null;
if (isModular) {
- entries = JavaRuntime.computeUnresolvedRuntimeDependencies(proj);
- }
- if (entries == null) {
+ entries = JavaRuntime.computeUnresolvedRuntimeDependencies(proj);
+ } else {
entries = JavaRuntime.computeUnresolvedRuntimeClasspath(proj);
}
// replace project JRE with config's JRE
- IRuntimeClasspathEntry projEntry = JavaRuntime.computeJREEntry(proj);
+ IRuntimeClasspathEntry projEntry = isModular ? JavaRuntime.computeModularJREEntry(proj) : JavaRuntime.computeJREEntry(proj);
if (jreEntry != null && projEntry != null) {
if (!jreEntry.equals(projEntry)) {
for (int i = 0; i < entries.length; i++) {

Back to the top