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

Bug 262508

Summary: check for NumberFormatException in JiraVersion
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Steffen Pingel CLA 2009-01-27 01:45:35 EST
JiraVersion invokes Integer.parseInt() without catching NumberFormatException which will fail for malformed version strings. This should be fixed and a test case added.
Comment 1 Thomas Ehrnhoefer CLA 2009-03-26 17:47:01 EDT
I will mark this as duplicate of bug 260963 , Frank also provided a JiraVersion fix in his patch (which Rob applied and it looks fine to me).

Steffen, can you review if the behaviour is alright for JIRA (using 0 for version if parseing fails)?

*** This bug has been marked as a duplicate of bug 260963 ***
Comment 2 Steffen Pingel CLA 2009-03-26 18:20:43 EDT
Makse sense to me.