Bug 159243 - [compiler] Should better locate deprecation issue for qualified type ref
Summary: [compiler] Should better locate deprecation issue for qualified type ref
Status: VERIFIED DUPLICATE of bug 159250
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 04:38 EDT by Philipe Mulet CLA
Modified: 2007-01-16 01:31 EST (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 2006-09-29 04:38:38 EDT
3.3M2

On following code, the deprecation warning for qualified type name has its source range include the trailing [], and the message incorrectly references the array type as well.

		2. WARNING in Y.java (at line 10)
			p.X[] xs = { null };
			^^^^^
		The type X[] is deprecated
p/X.java [
package p;
/**
 * @deprecated
 */
public class X {
}

]
Y.java [
import p.X;
public class Y {
  void bar() {
    p.X[] xs = { null };
  }
}

]
Comment 1 Philipe Mulet CLA 2006-09-29 04:39:58 EDT
Added DeprecatedTest#test014
Comment 2 Olivier Thomann CLA 2006-09-29 14:34:58 EDT
Released for 3.3M3
Comment 3 Olivier Thomann CLA 2006-09-29 21:41:16 EDT
Philippe,

Candidate for 3.2.2?
This is similar to bug 159250 already tagged as 3.2.2.
Comment 4 Olivier Thomann CLA 2006-09-29 22:23:33 EDT
Closing as duplicate of bug 159250.
Same test case, but different error message.

*** This bug has been marked as a duplicate of 149250 ***
Comment 5 Olivier Thomann CLA 2006-09-29 22:23:56 EDT
Wrong bug.
Comment 6 Olivier Thomann CLA 2006-09-29 22:24:12 EDT

*** This bug has been marked as a duplicate of 159250 ***
Comment 7 Maxime Daniel CLA 2007-01-16 01:31:47 EST
Verified for 3.2.2 using build M20070112-1200.