Bug 159250

Summary: [1.5][compiler] Should better locate raw type usage for array qualified type references
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2006-09-29 05:40:28 EDT
Build 3.3M2

In the following testcase, the error location should not include the brackets in reference "p.X[]".

package p;
public class X<T> {
	{
		p.X rawx = null;
		p.X[] rawxs = { rawx };
		System.out.println(rawxs.length);
	}
}
Comment 1 Philipe Mulet CLA 2006-09-29 12:12:36 EDT
Pls backport to 3.2.2
Comment 2 Olivier Thomann CLA 2006-09-29 14:08:31 EDT
Added org.eclipse.jdt.core.tests.compiler.regression.Deprecated15Test#test001
Comment 3 Olivier Thomann CLA 2006-09-29 14:09:54 EDT
Added org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1041.
The previous test also test the deprecation warning with raw types.
Comment 4 Olivier Thomann CLA 2006-09-29 14:35:10 EDT
Released for 3.3M3
Comment 5 Olivier Thomann CLA 2006-09-29 22:24:12 EDT
*** Bug 159243 has been marked as a duplicate of this bug. ***
Comment 6 Olivier Thomann CLA 2006-09-29 22:24:58 EDT
Released for 3.3M3.
Released for 3.2.2.
Comment 7 David Audel CLA 2006-10-30 06:48:18 EST
Verified for 3.3 M3 using build I20061030-0010
Comment 8 Maxime Daniel CLA 2007-01-16 01:32:41 EST
Verified for 3.2.2 using build M20070112-1200.