Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365245 - [TMF] Incorrect trace name in Windows
Summary: [TMF] Incorrect trace name in Windows
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 16:23 EST by Patrick Tasse CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Tasse CLA 2011-11-30 16:23:44 EST
The TmfTrace.initTmfTrace() method extracts the trace name from the trace path using the File.separator constant. In Windows, this is the backslash character.

But the trace path is taken from the resource URI, which uses a slash separator on all platforms.

The solution is to use the Path.SEPARATOR constant instead.
Comment 1 Patrick Tasse CLA 2011-12-01 12:55:56 EST
Pushed to master branch.

commit b94040d77a41a5bbbe00c296b9792536913dd5a8
Comment 2 Francois Chouinard CLA 2012-03-26 14:01:01 EDT
Delivered in 0.10.0
Comment 3 Francois Chouinard CLA 2012-03-26 14:01:17 EDT
Delivered in 0.10.0