Bug 3340 - UnaryExpression doesn't store expression type in bit mask (1GLBOJZ)
Summary: UnaryExpression doesn't store expression type in bit mask (1GLBOJZ)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:53 EDT by Dirk Baeumer CLA
Modified: 2002-01-11 09:22 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-10 22:53:30 EDT
The UnaryExpression, in contrast to the BinaryExpression, doesn't store the computed expression type in the bit mask.

The following line seems to be missing

		int result = ResolveTypeTables[tableId][(expressionId << 4) + expressionId];
		expression.implicitConversion = result >>> 12;
		TypeBinding type;
		bits |= result & 0xF;																												<==== missing statement.
		switch (result & 0x0000F) { // only switch on possible result type.....



NOTES:
Comment 1 Philipe Mulet CLA 2001-10-12 06:35:09 EDT
Fixed in 204
Comment 2 DJ Houghton CLA 2001-10-29 17:10:52 EST
PRODUCT VERSION:
203