Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341333

Summary: [1.7][compiler] DisjunctiveTypeReference#resolveType(..) does not set the value for DisjunctiveTypeReference$resolvedType
Product: [Eclipse Project] JDT Reporter: Ayushman Jain <amj87.iitr>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, Olivier_Thomann, srikanth_sankaran
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed fix none

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.