Bug 71267 - [Search][Javadoc] SearchMatch in class javadoc reported with element of type IImportDeclaration
Summary: [Search][Javadoc] SearchMatch in class javadoc reported with element of type ...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 04:34 EDT by Markus Keller CLA
Modified: 2005-03-10 05:05 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 Markus Keller CLA 2004-08-03 04:34:27 EDT
jdt.ui and jdt.core from HEAD 20040803:

package p;
/**
 * @see p
 */
public class AA {
}

Search for references to package p.
Was: The resulting SearchMatch has an element of type IImportDeclaration.
Expected: the enclosing element is the IType "p.AA".

This may be due to a bad fix for bug 54962.

jdt.ui reminder: disabled RenamePackageTests#test0()
Comment 1 Frederic Fusier CLA 2004-09-13 07:30:11 EDT
Fixed and released in HEAD.
This bug will be targeted for 3.0.2 when available and released in
R3_0_maintenance stream after 3.0.1 is shipped...

Now reported SearchMatch has correct IType enclosing element.

[jdt-core-internal]
Changes done in:
  - MatchLocator: reportMatching(CompilationUnitDeclaration, boolean)
  - PackageReferenceLocator: matchReportReference(ASTNode...)
    + resolveLevel(ASTNode)
Test cases added in JavaSearchJavadocTests
Comment 2 Frederic Fusier CLA 2004-09-13 07:46:23 EDT
Forgot to change bug state...
Comment 3 Frederic Fusier CLA 2004-09-20 05:07:25 EDT
Fixed and released in R3_0_maintenance stream.
Bug Target still needs to be set to 3.0.2 when it will be available...
Comment 4 Frederic Fusier CLA 2004-09-21 09:27:12 EDT
Setting target to 3.1 M2 while waiting for 3.0.2 one...
Comment 5 David Audel CLA 2004-09-23 11:27:40 EDT
Verified in I200409230100.
Comment 6 Frederic Fusier CLA 2004-09-24 05:17:58 EDT
Finally set status as VERIFIED.
We'll only change target when fix will be definitely put in R3_0_maintenance
stream...
Comment 7 Frederic Fusier CLA 2005-01-26 12:48:32 EST
Candidating fix for 3.0.2 release (not committed yet)
Comment 8 David Audel CLA 2005-03-10 05:05:25 EST
Verified with M20050216