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

Bug 356241

Summary: Bitwise operations on SmallInt should trigger validation error 5176
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-30 15:14:43 EDT
Currently this EDT code

    actual SmallInt;
    int2 SmallInt;
    int1 SmallInt;
    actual = int1 & int2;

Will produce these generation errors:
    - IWN.JavaGen.9998.e 53/1163 Exception occurred: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchFunctionError
    - IWN.JavaGen.9999.e 53/1163 Stack Trace: java.lang.RuntimeException:
org.eclipse.edt.mof.egl.NoSuchFunctionError

However, I should see validation errors for SmallInt like I get for BigInt
	- IWN.VAL.5176.e 20/17 wow - The primitive type bigInt for int1 is not valid for use in a bitwise numeric expression. At line 20 in file \Numbers
	 \EGLSource\explore\wow.egl
	- IWN.VAL.5176.e 20/24 wow - The primitive type bigInt for int2 is not valid for use in a bitwise numeric expression. At line 20 in file \Numbers
	 \EGLSource\explore\wow.egl
Comment 1 Paul Harmon CLA 2011-10-25 13:41:27 EDT
i am marking this as a duplicate of bug 355692. Either we will support bitwise operators on smallint (including literals) or we will give an error

*** This bug has been marked as a duplicate of bug 355692 ***
Comment 2 Kathy Carroll CLA 2011-10-27 17:26:13 EDT
verified 20111027_1153 & closed