Community
Participate
Working Groups
If a Java file is named as MyTest.java. And inside this compilation unit, there is a class with default package access modifier. The use cannot run the test through the context menu when right clicking the class name. The root cause is that in JUnitLaunchConfigurationDelegate::getTestTarget(ILaunchConfiguration configuration, IJavaProject javaProject). It's using IJavaProject.findType(String fullyQualifiedName) to find the type, while this API can only find the types which match its corresponding compilation unit name. Inorder to find the secondary types, we should use findType(String fullyQualifiedName, IProgressMonitor progressMonitor) instead.
New Gerrit change created: https://git.eclipse.org/r/151780
*** This bug has been marked as a duplicate of bug 529722 ***