Bug 402831 - [1.8][compiler][internal] ReferenceExpression should not implement ReferenceContext.
Summary: [1.8][compiler][internal] ReferenceExpression should not implement ReferenceC...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380188
  Show dependency tree
 
Reported: 2013-03-10 04:55 EDT by Srikanth Sankaran CLA
Modified: 2013-03-10 04:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srikanth Sankaran CLA 2013-03-10 04:55:30 EDT
BETA_JAVA8:

There is an abstraction/modeling problem in that ReferenceExpression
implements ReferenceContext (through its parent FunctionalExpression)
Only LambdaExpression needs to implement ReferenceContext to trap errors
and signal incompatibility during applicability check phase of overload
resolution.

ReferenceExpressions do not introduce a scope and their congruence with
the target type is limited to there being a single compile time declaration
with suitable return types and hence these need/should not implement ReferenceContext.

Patch will follow shortly.