Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341333 - [1.7][compiler] DisjunctiveTypeReference#resolveType(..) does not set the value for DisjunctiveTypeReference$resolvedType
Summary: [1.7][compiler] DisjunctiveTypeReference#resolveType(..) does not set the val...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 340608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-30 06:17 EDT by Ayushman Jain CLA
Modified: 2011-08-05 02:54 EDT (History)
3 users (show)

See Also:


Attachments
proposed fix (868 bytes, patch)
2011-03-30 06:19 EDT, Ayushman Jain CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ayushman Jain CLA 2011-03-30 06:17:23 EDT
I noticed that org.eclipse.jdt.internal.compiler.ast.DisjunctiveTypeReference.resolveType(BlockScope, boolean) returns the LUB after having resolved it, but does not set the resolvedType field. So, at any point of the resolution is over, the resolvedType is lost.
Comment 1 Ayushman Jain CLA 2011-03-30 06:19:07 EDT
Created attachment 192172 [details]
proposed fix
Comment 2 Olivier Thomann CLA 2011-03-30 12:24:14 EDT
Looks good to me. We should save the resolve type once computed.
Comment 3 Ayushman Jain CLA 2011-03-30 12:35:48 EDT
Released for 3.7M7 in BETA_JAVA7 branch.
Comment 4 Olivier Thomann CLA 2011-04-05 10:25:11 EDT
*** Bug 340608 has been marked as a duplicate of this bug. ***
Comment 5 Srikanth Sankaran CLA 2011-06-28 04:55:54 EDT
Verified by code inspection.