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

Bug 359399

Summary: Cannot cast from Double to int
Product: z_Archived Reporter: pf yu <pfyu>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: jeffdouglas, jqian, mheitz, pfyu, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***