Source:
<code>IRuntimeClasspathEntry[] resolveClasspath0(IRuntimeClasspathEntry[] entries, ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException { IJavaProject javaProject = JavaRuntime.getJavaProject(configuration); boolean isModularConfiguration = JavaRuntime.isModularConfiguration(configuration); int scope = <START> configuration.hasAttribute(IJavaLaunchConfigurationConstants.ATTR_EXCLUDE_TEST_CODE) <END> ? (configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_EXCLUDE_TEST_CODE, false) ? IClasspathManager.CLASSPATH_RUNTIME : IClasspathManager.CLASSPATH_TEST) : getArtifactScope(configuration); Set<IRuntimeClasspathEntry> all = new LinkedHashSet<IRuntimeClasspathEntry>(entries.length); for(IRuntimeClasspathEntry entry : entries) { if(entry.getType() == IRuntimeClasspathEntry.CONTAINER && MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) { addMavenClasspathEntries(all, entry, configuration, scope, monitor, isModularConfiguration); } else if(entry.getType() == IRuntimeClasspathEntry.PROJECT) { if(javaProject.getPath().equals(entry.getPath())) { addProjectEntries(all, entry.getPath(), scope, THIS_PROJECT_CLASSIFIER, configuration, monitor, ModuleSupport.determineClasspathPropertyForMainProject(isModularConfiguration, javaProject)); } else { addStandardClasspathEntries(all, entry, configuration); } } else { addStandardClasspathEntries(all, entry, configuration); } } return all.toArray(new IRuntimeClasspathEntry[all.size()]); }</code><technical_language>ATTR_EXCLUDE_TEST_CODE is initially explictly set is "true", (e.g. in org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut.createConfiguration(IType)), getArtifactScope code entered launching classes in test source folders current JDT. (Once toggle in UI, is present,) (as suggested), I is remove "hasAttribute" check getArtifactScope-method (in case message typo removed anyway)</technical_language>

Target:
IRuntimeClasspathEntry[] resolveClasspath0(IRuntimeClasspathEntry[] entries, ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException { IJavaProject javaProject = JavaRuntime.getJavaProject(configuration); boolean isModularConfiguration = JavaRuntime.isModularConfiguration(configuration); int scope = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_EXCLUDE_TEST_CODE, false) ? IClasspathManager.CLASSPATH_RUNTIME : IClasspathManager.CLASSPATH_TEST; Set<IRuntimeClasspathEntry> all = new LinkedHashSet<IRuntimeClasspathEntry>(entries.length); for(IRuntimeClasspathEntry entry : entries) { if(entry.getType() == IRuntimeClasspathEntry.CONTAINER && MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) { addMavenClasspathEntries(all, entry, configuration, scope, monitor, isModularConfiguration); } else if(entry.getType() == IRuntimeClasspathEntry.PROJECT) { if(javaProject.getPath().equals(entry.getPath())) { addProjectEntries(all, entry.getPath(), scope, THIS_PROJECT_CLASSIFIER, configuration, monitor, ModuleSupport.determineClasspathPropertyForMainProject(isModularConfiguration, javaProject)); } else { addStandardClasspathEntries(all, entry, configuration); } } else { addStandardClasspathEntries(all, entry, configuration); } } return all.toArray(new IRuntimeClasspathEntry[all.size()]); }