Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 416998 - [1.8] Update callers of ASTNodes#getType(VariableDeclaration) to handle 'null' for type inferred lambda parameter
Summary: [1.8] Update callers of ASTNodes#getType(VariableDeclaration) to handle 'null...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Noopur Gupta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 405305
  Show dependency tree
 
Reported: 2013-09-11 07:04 EDT by Noopur Gupta CLA
Modified: 2014-03-06 14:41 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 Noopur Gupta CLA 2013-09-11 07:04:02 EDT
After ASTNodes#getType(VariableDeclaration) method is updated to return 'null' for a type inferred lambda parameter, callers of the method need to be fixed iff there's a possibility that the given VariableDeclaration is a type inferred lambda parameter.

Patch to update ASTNodes#getType(VariableDeclaration) to return 'null' is attached in bug 407985 comment #3.
Comment 1 Noopur Gupta CLA 2014-03-06 14:41:39 EST
Updated the callers where the VariableDeclaration could be a type inferred lambda parameter:
- ASTNodeFactory.newType(AST ast, VariableDeclaration declaration, ImportRewrite importRewrite, ImportRewriteContext context) : Handled in bug 407985.
- ASTNodes.getDimensions(VariableDeclaration declaration) : Fall-back is the number of extra dimensions only on VariableDeclaration.

Released via:
http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?h=BETA_JAVA8&id=3310af6fcd5a077ef1b734db2749c6860241d716