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

Bug 312820

Summary: [TMF] Arithmetic exceptions
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 301610    
Attachments:
Description Flags
Arithmetic exception fix fchouinard: iplog-

Description Francois Chouinard CLA 2010-05-13 13:09:17 EDT
When opening a new experiment, the time range is initialized to [BigBang,BigCrunch] and then updated as the trace events are parsed.

The timestamp comparisons are done using TmfTimestamp.compareTo() which uses then normalizes the timestamps using private method synchronize(). And synchronize() throws an ArithmeticException when the scales are ridiculously apart, as is the case when opening an experiment...

The fix is to have compareTo() make an early (and obvious) decision when either timestamps is BigBang or BigCrunch.
Comment 1 Francois Chouinard CLA 2010-05-13 14:01:56 EDT
Created attachment 168431 [details]
Arithmetic exception fix
Comment 2 Francois Chouinard CLA 2010-05-13 14:03:04 EDT
Patch committed.
Comment 3 Francois Chouinard CLA 2010-07-08 10:18:49 EDT
Released in a past delivery.
Comment 4 Francois Chouinard CLA 2010-07-08 10:20:25 EDT
Released in a previous delivery.