| Summary: | [quick fix] Wrong quickfix proposal for operations involving double and Integer | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jay Arthanareeswaran <jarthana> | ||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | markus.kell.r | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.6 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
From bug 100593: Integer mu=5.0f => proposal here has to be (int) and not Integer. Created attachment 143705 [details]
Fix
Fixed in HEAD (fix also improves bug 100593). |
Build ID: I20090803-1800 Steps To Reproduce: Integer value = 4711; double test = 47d; value = value + test; //Line3: Error Line 3 is marked with a compilation error (Type mismatch: cannot convert from double to Integer) and one of the quick fixes suggest "Add a cast to 'Integer'". However, this is wrong and will not fix the compilation error as double to Integer cast is not allowed. More information: