Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 131161

Summary: CVS - NumberFormatException when attempting to compare revisions of a locked file
Product: [Eclipse Project] Platform Reporter: Dion Barrier <dion.barrier>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dion Barrier CLA 2006-03-09 14:11:00 EST
When attempting to perform a compare of a "locked" file against a different revision the following exception is given:

java.lang.NumberFormatException: For input string: "12	locked by: w1020341;"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.<init>(Unknown Source)
	at org.eclipse.team.internal.ccvs.ui.VersionCollator.getIntSegments(VersionCollator.java:55)
	at org.eclipse.team.internal.ccvs.ui.VersionCollator.compare(VersionCollator.java:26)
	at org.eclipse.team.internal.ccvs.ui.HistoryTableProvider$HistorySorter.compareColumnValue(HistoryTableProvider.java:195)
	at org.eclipse.team.internal.ccvs.ui.HistoryTableProvider$HistorySorter.compare(HistoryTableProvider.java:180)
	at org.eclipse.jface.viewers.ViewerSorter$1.compare(ViewerSorter.java:177)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.mergeSort(Unknown Source)
	at java.util.Arrays.sort(Unknown Source)
...
...

The cvs log for the file in question contains the following text:

----------------------------
revision 1.12   locked by: w1020341;
date: 2005/09/12 20:00:47;  author: W1012659;  state: Exp;  lines: +5 -5

--

I assume this is what the CVS component of Eclipse is trying to parse.  The CVS version running on our server is v1.11.1p1


--Dion
Comment 1 Michael Valenta CLA 2006-03-11 14:20:12 EST

*** This bug has been marked as a duplicate of 103374 ***
Comment 2 Olexiy Buyanskyy CLA 2010-07-22 22:32:22 EDT
This bug was not really fixed I have created new bug 320686