Bug 167488 - [compiler] Fup of bug 165291, the two warnings (assignment has no effect) should not be reported
Summary: [compiler] Fup of bug 165291, the two warnings (assignment has no effect) sho...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 165291
Blocks:
  Show dependency tree
 
Reported: 2006-12-11 15:59 EST by Olivier Thomann CLA
Modified: 2007-02-06 06:42 EST (History)
0 users

See Also:


Attachments
Proposed patch (6.62 KB, patch)
2007-01-09 11:22 EST, Philipe Mulet CLA
no flags Details | Diff

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