Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 34774 Details for
Bug 128033
[1.5][search] Not all references are found in standard annotations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to fix this issue
v03.txt (text/plain), 6.14 KB, created by
Frederic Fusier
on 2006-02-15 10:04:29 EST
(
hide
)
Description:
Patch to fix this issue
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2006-02-15 10:04:29 EST
Size:
6.14 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/internal/core/index/DiskIndex.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/DiskIndex.java,v >retrieving revision 1.44 >diff -u -r1.44 DiskIndex.java >--- search/org/eclipse/jdt/internal/core/index/DiskIndex.java 15 Feb 2006 12:48:13 -0000 1.44 >+++ search/org/eclipse/jdt/internal/core/index/DiskIndex.java 15 Feb 2006 14:47:49 -0000 >@@ -35,7 +35,7 @@ > private HashtableOfObject categoryTables; // category name -> HashtableOfObject(words -> int[] of document #'s) or offset if not read yet > private char[] cachedCategoryName; > >-public static final String SIGNATURE= "INDEX VERSION 1.109"; //$NON-NLS-1$ >+public static final String SIGNATURE= "INDEX VERSION 1.112"; //$NON-NLS-1$ > public static boolean DEBUG = false; > > private static final int RE_INDEXED = -1; >Index: search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java,v >retrieving revision 1.52 >diff -u -r1.52 BinaryIndexer.java >--- search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java 15 Feb 2006 12:48:09 -0000 1.52 >+++ search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java 15 Feb 2006 14:47:50 -0000 >@@ -43,59 +43,91 @@ > super(document); > } > private void addBinaryStandardAnnotations(long annotationTagBits) { >- char[][] compoundName = null; > if ((annotationTagBits & TagBits.AnnotationTargetMASK) != 0) { >- compoundName = TypeConstants.JAVA_LANG_ANNOTATION_TARGET; >+ char[][] compoundName = TypeConstants.JAVA_LANG_ANNOTATION_TARGET; >+ addTypeReference(compoundName[compoundName.length-1]); > addBinaryTargetAnnotation(annotationTagBits); > } > if ((annotationTagBits & TagBits.AnnotationRetentionMASK) != 0) { >- compoundName = TypeConstants.JAVA_LANG_ANNOTATION_RETENTION; >+ char[][] compoundName = TypeConstants.JAVA_LANG_ANNOTATION_RETENTION; >+ addTypeReference(compoundName[compoundName.length-1]); > addBinaryRetentionAnnotation(annotationTagBits); > } > if ((annotationTagBits & TagBits.AnnotationDeprecated) != 0) { >- compoundName = TypeConstants.JAVA_LANG_DEPRECATED; >+ char[][] compoundName = TypeConstants.JAVA_LANG_DEPRECATED; >+ addTypeReference(compoundName[compoundName.length-1]); > } > if ((annotationTagBits & TagBits.AnnotationDocumented) != 0) { >- compoundName = TypeConstants.JAVA_LANG_ANNOTATION_DOCUMENTED; >+ char[][] compoundName = TypeConstants.JAVA_LANG_ANNOTATION_DOCUMENTED; >+ addTypeReference(compoundName[compoundName.length-1]); > } > if ((annotationTagBits & TagBits.AnnotationInherited) != 0) { >- compoundName = TypeConstants.JAVA_LANG_ANNOTATION_INHERITED; >+ char[][] compoundName = TypeConstants.JAVA_LANG_ANNOTATION_INHERITED; >+ addTypeReference(compoundName[compoundName.length-1]); > } > if ((annotationTagBits & TagBits.AnnotationOverride) != 0) { >- compoundName = TypeConstants.JAVA_LANG_OVERRIDE; >+ char[][] compoundName = TypeConstants.JAVA_LANG_OVERRIDE; >+ addTypeReference(compoundName[compoundName.length-1]); > } > if ((annotationTagBits & TagBits.AnnotationSuppressWarnings) != 0) { >- compoundName = TypeConstants.JAVA_LANG_SUPPRESSWARNINGS; >+ char[][] compoundName = TypeConstants.JAVA_LANG_SUPPRESSWARNINGS; >+ addTypeReference(compoundName[compoundName.length-1]); > } >- if (compoundName == null) return; >- addTypeReference(compoundName[compoundName.length-1]); > } > private void addBinaryTargetAnnotation(long bits) { >- if ((bits & TagBits.AnnotationTarget) != 0) return; >- char[][] compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >- addTypeReference(compoundName[compoundName.length-1]); >+ char[][] compoundName = null; > if ((bits & TagBits.AnnotationForAnnotationType) != 0) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); > addFieldReference(TypeConstants.UPPER_ANNOTATION_TYPE); > } > if ((bits & TagBits.AnnotationForConstructor) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.UPPER_CONSTRUCTOR); > } > if ((bits & TagBits.AnnotationForField) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.UPPER_FIELD); > } > if ((bits & TagBits.AnnotationForLocalVariable) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.UPPER_LOCAL_VARIABLE); > } > if ((bits & TagBits.AnnotationForMethod) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.UPPER_METHOD); > } > if ((bits & TagBits.AnnotationForPackage) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.UPPER_PACKAGE); > } > if ((bits & TagBits.AnnotationForParameter) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.UPPER_PARAMETER); > } > if ((bits & TagBits.AnnotationForType) != 0) { >+ if (compoundName == null) { >+ compoundName = TypeConstants.JAVA_LANG_ANNOTATION_ELEMENTTYPE; >+ addTypeReference(compoundName[compoundName.length-1]); >+ } > addFieldReference(TypeConstants.TYPE); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 128033
: 34774