Bug 95394

Summary: Problem resolving types for Assignment ("+=") on 3.1M7
Product: [Eclipse Project] JDT Reporter: Edwin Chan <edwin>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akiezun
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Plugin to exercise resolveTypeBinding()
none
Project to demonstrate problem on += none

Description Edwin Chan CLA 2005-05-16 12:23:56 EDT
When I tried to resolve the type for "+=", I get null back, which is not what
previous versions did.  It also seems to return null in
org.eclipse.jdt.core.dom.DefaultBindingResolver:509.

I've included a plugin to scan the workspace for Java comp units and resolve all
the types on Expressions.
Comment 1 Edwin Chan CLA 2005-05-16 12:24:57 EDT
Created attachment 21217 [details]
Plugin to exercise resolveTypeBinding()
Comment 2 Edwin Chan CLA 2005-05-16 12:25:30 EDT
Created attachment 21218 [details]
Project to demonstrate problem on +=
Comment 3 Edwin Chan CLA 2005-05-16 13:29:32 EDT
/= also seems broken (and probably all similar operations)
Comment 4 Olivier Thomann CLA 2005-05-16 15:11:44 EDT
I am investigating.
Comment 5 Olivier Thomann CLA 2005-05-16 15:29:01 EDT
Fixed and released in HEAD.
Regression test added in
org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test606.
Comment 6 Olivier Thomann CLA 2005-05-20 10:20:43 EDT
*** Bug 96094 has been marked as a duplicate of this bug. ***
Comment 7 Frederic Fusier CLA 2005-05-27 08:02:21 EDT
Verified (using ASTView) for 3.1 RC1 with build I20050527-0010.