Bug 219573 - [compiler] Missing type should be diagnosed in subsequent reference to local variable
Summary: [compiler] Missing type should be diagnosed in subsequent reference to local ...
Status: VERIFIED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 05:42 EST by Philipe Mulet CLA
Modified: 2008-03-25 12:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2008-02-20 05:42:35 EST
Build 3.4M4

FUP of bug 196200. 
Following scenario should be improved:

public class X {
	
	void foo() {
		Zork z1 = null;
		Object o = z1; // should blame z1
		Object o = bar();
		Zork[] array = null;
		int length = array.length; // should blame array
	}
	Zork bar() {
	}
}
Comment 1 Philipe Mulet CLA 2008-02-20 08:03:25 EST
Will address along with bug 196200 (part of same patch).
Test is: ProblemTypeAndMethodTest#test066

*** This bug has been marked as a duplicate of bug 196200 ***
Comment 2 Philipe Mulet CLA 2008-02-20 09:54:20 EST
Actually, no action planned, since it would create just too many secondary errors. The leading error on local declaration type is enough.
Comment 3 Frederic Fusier CLA 2008-03-25 12:48:18 EDT
Verified for 3.4M6 using I20080324-1300.