Bug 95394 - Problem resolving types for Assignment ("+=") on 3.1M7
Summary: Problem resolving types for Assignment ("+=") on 3.1M7
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 96094 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-16 12:23 EDT by Edwin Chan CLA
Modified: 2005-05-27 08:02 EDT (History)
1 user (show)

See Also:


Attachments
Plugin to exercise resolveTypeBinding() (7.06 KB, application/x-zip-compressed)
2005-05-16 12:24 EDT, Edwin Chan CLA
no flags Details
Project to demonstrate problem on += (2.34 KB, application/x-zip-compressed)
2005-05-16 12:25 EDT, Edwin Chan CLA
no flags Details

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