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/OpenEditorAtLineAction.java
throws JavaModelException {
			if ((enclosingElement instanceof IType) && (resource.getName().equals(fCUName)))
				fFound= enclosingElement;
		}
		public IProgressMonitor getProgressMonitor() {
			return new NullProgressMonitor();
		}
		public void aboutToStart() {}
		public void done() {}
	}
		
	private int fLineNumber;
	private String fCUName;
	
	/**
	 * Constructor for OpenEditorAtLineAction.
	 */
	public OpenEditorAtLineAction(TestRunnerViewPart testRunner, String cuName, String className, int line) {
		super(testRunner, className);
		WorkbenchHelp.setHelp(this, IJUnitHelpContextIds.OPENEDITORATLINE_ACTION);
		fLineNumber= line;
		fCUName= cuName;
	}
		
	protected void reveal(ITextEditor textEditor) {
		if (fLineNumber >= 0) {
			try {
				IDocument document= textEditor.getDocumentProvider().getDocument(textEditor.getEditorInput());
				textEditor.selectAndReveal(document.getLineOffset(fLineNumber-1), document.getLineLength(fLineNumber-1));
			} catch (BadLocationException x) {