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

Bug 349855

Summary: String pdecimal = Double.toString(guess); special character in toString result.
Product: [Eclipse Project] Platform Reporter: john93940
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3    
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description john93940 CLA 2011-06-20 13:40:57 EDT
Build Identifier: Version: 3.4.2 Build id: M20090211-1700

String pdecimal = Double.toString(guess);  'guess' is a double field with a decimal point.  Sometimes a parenthesis or an asterisk replaces the last 'digit' of 'pdecimal'.  If it's a parenthesis then it replaced an '8'.  If an asterisk then it replaced a '9'.

Reproducible: Sometimes

Steps to Reproduce:
1. do some calculations in the double field 'guess'.
2. String pdecimal = Double.toString(guess);
3. look at pdecimal.
Comment 1 Oleg Besedin CLA 2011-06-20 13:48:31 EDT
From your description, this sounds as a Java bug. I'd suggest opening a bug request with the maker of the JVM that you are using.