Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359399 - Cannot cast from Double to int
Summary: Cannot cast from Double to int
Status: CLOSED DUPLICATE of bug 359372
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 07:06 EDT by pf yu CLA
Modified: 2017-02-23 14:20 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pf yu CLA 2011-09-29 07:06:47 EDT
Build Identifier: 201109282102

Cannot cast from Double to int

Reproducible: Always

Steps to Reproduce:
1. Check out project "org.eclipse.edt.eunit.test" from kan-cvs.
2. Add java generator to the project.
3. Clean the whole workspace.
4. The issue exists in:
fvt.operators.TestMathOperators01Lib
Comment 1 Matt Heitz CLA 2011-09-29 10:27:10 EDT
Here's a simple case showing the problem.

i1 int = 3;
i2 int = i1 ** 5;

The code for the ** operator results in a Double, and you can't cast a Double to int.
Comment 2 Jeff Douglas CLA 2011-09-30 10:16:42 EDT

*** This bug has been marked as a duplicate of bug 359372 ***