Bug 167488

Summary: [compiler] Fup of bug 165291, the two warnings (assignment has no effect) should not be reported
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 165291    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch none

Description Olivier Thomann CLA 2006-12-11 15:59:34 EST
Using I20061211-1119,

class Z {
        Z z1 = z1;
        Z[] z2 = z2;
}
class Y<E> {
        E[] es = es; // should be rejected
}

this reports two warnings for assignment has no effect for z1 and z2. I would expect no warnings since these are illegal forward references.
Comment 1 Philipe Mulet CLA 2007-01-09 11:21:09 EST
Tuned:
GenericTypeTest#test1085
GenericTypeTest#test1089
Comment 2 Philipe Mulet CLA 2007-01-09 11:22:47 EST
Created attachment 56630 [details]
Proposed patch
Comment 3 Philipe Mulet CLA 2007-01-09 11:27:43 EST
Released for 3.3M5
Fixed
Comment 4 David Audel CLA 2007-02-06 06:42:42 EST
Verified for 3.3 M5 using build I20070206-0010