Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356241 - Bitwise operations on SmallInt should trigger validation error 5176
Summary: Bitwise operations on SmallInt should trigger validation error 5176
Status: CLOSED DUPLICATE of bug 355692
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 15:14 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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