Bug 45531 [JUnit] Open failed test failed when test name is "1.3 - test346"
Using org.eclipse.jdt.junit version 20031021, I got a failure when I tried to open a failed test that is named "1.3 - test346". This can happen with the compiler tests when they run in 1.3 mode. We add "1.3", "1.4" or "1.5" to distinguish the different compiler compliance mode. I attach a patch for the opening action that fixes the issue.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/OpenTestAction.java
method= findMethod(types[i]);
				if (method != null)
					break;
			}
		}
		if (method != null)
			fRange= method.getNameRange();
		return method;
	}
	
	IMethod findMethod(IType type) throws JavaModelException {
		IMethod method= type.getMethod(fMethodName, new String[0]);
		if (method != null && method.exists())
			return method;
		return null;
	}
	
	protected void reveal(ITextEditor textEditor) {
		if (fRange != null)
			textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength());
	}
	public boolean isEnabled() {
		try {
			return getLaunchedProject().findType(getClassName()) != null;
		} catch (JavaModelException e) {
		}
		return false;
	}
}