View | Details | Raw Unified | Return to bug 153765
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java (-93 / +125 lines)
Lines 128-134 Link Here
128
}
128
}
129
129
130
/**
130
/**
131
 * Bug 41018: Method reference not found
131
 * @bug 41018: Method reference not found
132
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=41018"
132
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=41018"
133
 */
133
 */
134
public void testBug41018() throws CoreException {
134
public void testBug41018() throws CoreException {
Lines 159-165 Link Here
159
}
159
}
160
160
161
/**
161
/**
162
 * Bug 70827: [Search] wrong reference match to private method of supertype
162
 * @bug 70827: [Search] wrong reference match to private method of supertype
163
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=70827"
163
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=70827"
164
 */
164
 */
165
public void testBug70827() throws CoreException {
165
public void testBug70827() throws CoreException {
Lines 188-194 Link Here
188
}
188
}
189
189
190
/**
190
/**
191
 * Bug 71279: [Search] NPE in TypeReferenceLocator when moving CU with unresolved type reference
191
 * @bug 71279: [Search] NPE in TypeReferenceLocator when moving CU with unresolved type reference
192
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=71279"
192
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=71279"
193
 */
193
 */
194
public void testBug71279() throws CoreException {
194
public void testBug71279() throws CoreException {
Lines 215-221 Link Here
215
}
215
}
216
216
217
/**
217
/**
218
 * Bug 72866: [search] references to endVisit(MethodInvocation) reports refs to endVisit(SuperMethodInvocation)
218
 * @bug 72866: [search] references to endVisit(MethodInvocation) reports refs to endVisit(SuperMethodInvocation)
219
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=72866"
219
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=72866"
220
 */
220
 */
221
public void testBug72866() throws CoreException {
221
public void testBug72866() throws CoreException {
Lines 264-270 Link Here
264
}
264
}
265
265
266
/**
266
/**
267
 * Bug 73112: [Search] SearchEngine doesn't find all fields multiple field declarations
267
 * @bug 73112: [Search] SearchEngine doesn't find all fields multiple field declarations
268
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=73112"
268
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=73112"
269
 */
269
 */
270
public void testBug73112a() throws CoreException {
270
public void testBug73112a() throws CoreException {
Lines 314-320 Link Here
314
}
314
}
315
315
316
/**
316
/**
317
 * Bug 73336: [1.5][search] Search Engine does not find type references of actual generic type parameters
317
 * @bug 73336: [1.5][search] Search Engine does not find type references of actual generic type parameters
318
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=73336"
318
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=73336"
319
 */
319
 */
320
public void testBug73336() throws CoreException {
320
public void testBug73336() throws CoreException {
Lines 468-474 Link Here
468
}
468
}
469
469
470
/**
470
/**
471
 * Bug 73696: searching only works for IJavaSearchConstants.TYPE, but not CLASS or INTERFACE
471
 * @bug 73696: searching only works for IJavaSearchConstants.TYPE, but not CLASS or INTERFACE
472
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=73696"
472
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=73696"
473
 */
473
 */
474
public void testBug73696() throws CoreException {
474
public void testBug73696() throws CoreException {
Lines 522-528 Link Here
522
}
522
}
523
523
524
/**
524
/**
525
 * Bug 74776: [Search] Wrong search results for almost identical method
525
 * @bug 74776: [Search] Wrong search results for almost identical method
526
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=74776"
526
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=74776"
527
 */
527
 */
528
public void testBug74776() throws CoreException {
528
public void testBug74776() throws CoreException {
Lines 564-570 Link Here
564
}
564
}
565
565
566
/**
566
/**
567
 * Bug 75816: [search] correct results are missing in java search
567
 * @bug 75816: [search] correct results are missing in java search
568
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=75816"
568
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=75816"
569
 */
569
 */
570
public void testBug75816() throws CoreException {
570
public void testBug75816() throws CoreException {
Lines 579-585 Link Here
579
}
579
}
580
580
581
/**
581
/**
582
 * Bug 77093: [search] No references found to method with member type argument
582
 * @bug 77093: [search] No references found to method with member type argument
583
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=77093"
583
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=77093"
584
 */
584
 */
585
private void setUpBug77093() throws CoreException {
585
private void setUpBug77093() throws CoreException {
Lines 641-647 Link Here
641
}
641
}
642
642
643
/**
643
/**
644
 * Bug 77388: [compiler] Reference to constructor includes space after closing parenthesis
644
 * @bug 77388: [compiler] Reference to constructor includes space after closing parenthesis
645
 */
645
 */
646
public void testBug77388() throws CoreException {
646
public void testBug77388() throws CoreException {
647
	workingCopies = new ICompilationUnit[1];
647
	workingCopies = new ICompilationUnit[1];
Lines 664-670 Link Here
664
}
664
}
665
665
666
/**
666
/**
667
 * Bug 78082: [1.5][search] FieldReferenceMatch in static import should not include qualifier
667
 * @bug 78082: [1.5][search] FieldReferenceMatch in static import should not include qualifier
668
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=78082"
668
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=78082"
669
 */
669
 */
670
public void testBug78082() throws CoreException {
670
public void testBug78082() throws CoreException {
Lines 699-705 Link Here
699
}
699
}
700
700
701
/**
701
/**
702
 * Bug 79267: [search] Refactoring of static generic member fails partially
702
 * @bug 79267: [search] Refactoring of static generic member fails partially
703
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=79267"
703
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=79267"
704
 */
704
 */
705
public void testBug79267() throws CoreException {
705
public void testBug79267() throws CoreException {
Lines 743-749 Link Here
743
}
743
}
744
744
745
/**
745
/**
746
 * Bug 79378: [search] IOOBE when inlining a method
746
 * @bug 79378: [search] IOOBE when inlining a method
747
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79378"
747
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79378"
748
 */
748
 */
749
public void testBug79378() throws CoreException {
749
public void testBug79378() throws CoreException {
Lines 789-795 Link Here
789
}
789
}
790
790
791
/**
791
/**
792
 * Bug 79803: [1.5][search] Search for references to type A reports match for type variable A
792
 * @bug 79803: [1.5][search] Search for references to type A reports match for type variable A
793
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79803"
793
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79803"
794
 */
794
 */
795
public void testBug79803() throws CoreException {
795
public void testBug79803() throws CoreException {
Lines 826-832 Link Here
826
}
826
}
827
827
828
/**
828
/**
829
 * Bug 79860: [1.5][search] Search doesn't find type reference in type parameter bound
829
 * @bug 79860: [1.5][search] Search doesn't find type reference in type parameter bound
830
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79860"
830
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79860"
831
 */
831
 */
832
public void testBug79860() throws CoreException {
832
public void testBug79860() throws CoreException {
Lines 880-886 Link Here
880
}
880
}
881
881
882
/**
882
/**
883
 * Bug 79990: [1.5][search] Search doesn't find type reference in type parameter bound
883
 * @bug 79990: [1.5][search] Search doesn't find type reference in type parameter bound
884
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79990"
884
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=79990"
885
 */
885
 */
886
private void setUpBug79990() throws CoreException {
886
private void setUpBug79990() throws CoreException {
Lines 943-949 Link Here
943
}
943
}
944
944
945
/**
945
/**
946
 * Bug 80084: [1.5][search]Rename field fails on field based on parameterized type with member type parameter
946
 * @bug 80084: [1.5][search]Rename field fails on field based on parameterized type with member type parameter
947
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80084"
947
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80084"
948
 */
948
 */
949
public void testBug80084() throws CoreException, JavaModelException {
949
public void testBug80084() throws CoreException, JavaModelException {
Lines 968-974 Link Here
968
}
968
}
969
969
970
/**
970
/**
971
 * Bug 80194: [1.5][search]Rename field fails on field based on parameterized type with member type parameter
971
 * @bug 80194: [1.5][search]Rename field fails on field based on parameterized type with member type parameter
972
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80194"
972
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80194"
973
 */
973
 */
974
private void setUpBug80194() throws CoreException, JavaModelException {
974
private void setUpBug80194() throws CoreException, JavaModelException {
Lines 1036-1042 Link Here
1036
}
1036
}
1037
1037
1038
/**
1038
/**
1039
 * Bug 80223: [search] Declaration search doesn't consider visibility to determine overriding methods
1039
 * @bug 80223: [search] Declaration search doesn't consider visibility to determine overriding methods
1040
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=80223"
1040
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=80223"
1041
 */
1041
 */
1042
public void testBug80223() throws CoreException {
1042
public void testBug80223() throws CoreException {
Lines 1066-1076 Link Here
1066
}
1066
}
1067
1067
1068
/**
1068
/**
1069
 * Bug 80264: [search] Search for method declarations in workspace, disregarding declaring type
1069
 * @bug 80264: [search] Search for method declarations in workspace, disregarding declaring type
1070
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=80264"
1070
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=80264"
1071
 *
1071
 *
1072
 * Following tests also verify
1072
 * Following tests also verify
1073
 * Bug 87778: [search] doesn't find all declarations of method with covariant return type
1073
 * @bug 87778: [search] doesn't find all declarations of method with covariant return type
1074
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=87778"
1074
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=87778"
1075
 */
1075
 */
1076
// Methods
1076
// Methods
Lines 1271-1277 Link Here
1271
}
1271
}
1272
1272
1273
/**
1273
/**
1274
 * Bug 80890: [search] Strange search engine behaviour
1274
 * @bug 80890: [search] Strange search engine behaviour
1275
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80890"
1275
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80890"
1276
 */
1276
 */
1277
public void testBug80890() throws CoreException, JavaModelException {
1277
public void testBug80890() throws CoreException, JavaModelException {
Lines 1308-1314 Link Here
1308
}
1308
}
1309
1309
1310
/**
1310
/**
1311
 * Bug 80918: [1.5][search] ClassCastException when searching for references to binary type
1311
 * @bug 80918: [1.5][search] ClassCastException when searching for references to binary type
1312
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=80918"
1312
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=80918"
1313
 */
1313
 */
1314
public void testBug80918() throws CoreException {
1314
public void testBug80918() throws CoreException {
Lines 1321-1327 Link Here
1321
}
1321
}
1322
1322
1323
/**
1323
/**
1324
 * Bug 81084: [1.5][search]Rename field fails on field based on parameterized type with member type parameter
1324
 * @bug 81084: [1.5][search]Rename field fails on field based on parameterized type with member type parameter
1325
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=81084"
1325
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=81084"
1326
 */
1326
 */
1327
public void testBug81084a() throws CoreException, JavaModelException {
1327
public void testBug81084a() throws CoreException, JavaModelException {
Lines 1405-1411 Link Here
1405
}
1405
}
1406
1406
1407
/**
1407
/**
1408
 * Bug 81556: [search] correct results are missing in java search
1408
 * @bug 81556: [search] correct results are missing in java search
1409
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=81556"
1409
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=81556"
1410
 */
1410
 */
1411
public void testBug81556() throws CoreException {
1411
public void testBug81556() throws CoreException {
Lines 1419-1425 Link Here
1419
}
1419
}
1420
1420
1421
/**
1421
/**
1422
 * Bug 82088: [search][javadoc] Method parameter types references not found in @see/@link tags
1422
 * @bug 82088: [search][javadoc] Method parameter types references not found in @see/@link tags
1423
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=82088"
1423
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=82088"
1424
 */
1424
 */
1425
public void testBug82088method() throws CoreException {
1425
public void testBug82088method() throws CoreException {
Lines 1470-1476 Link Here
1470
}
1470
}
1471
1471
1472
/**
1472
/**
1473
 * Bug 82208: [1.5][search][annot] Search for annotations misses references in default and values constructs
1473
 * @bug 82208: [1.5][search][annot] Search for annotations misses references in default and values constructs
1474
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=82208"
1474
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=82208"
1475
 */
1475
 */
1476
private void setUpBug82208() throws CoreException {
1476
private void setUpBug82208() throws CoreException {
Lines 1546-1552 Link Here
1546
}
1546
}
1547
1547
1548
/**
1548
/**
1549
 * Bug 82673: [1.5][search][annot] Search for annotations misses references in default and values constructs
1549
 * @bug 82673: [1.5][search][annot] Search for annotations misses references in default and values constructs
1550
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83012"
1550
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83012"
1551
 */
1551
 */
1552
public void testBug82673() throws CoreException {
1552
public void testBug82673() throws CoreException {
Lines 1579-1585 Link Here
1579
}
1579
}
1580
1580
1581
/**
1581
/**
1582
 * Bug 83012: [1.5][search][annot] Search for annotations misses references in default and values constructs
1582
 * @bug 83012: [1.5][search][annot] Search for annotations misses references in default and values constructs
1583
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83012"
1583
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83012"
1584
 */
1584
 */
1585
public void testBug83012() throws CoreException {
1585
public void testBug83012() throws CoreException {
Lines 1611-1617 Link Here
1611
}
1611
}
1612
1612
1613
/**
1613
/**
1614
 * Bug 83230: [1.5][search][annot] search for annotation elements does not seem to be implemented yet
1614
 * @bug 83230: [1.5][search][annot] search for annotation elements does not seem to be implemented yet
1615
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83230"
1615
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83230"
1616
 */
1616
 */
1617
private void setUpBug83230_Explicit() throws CoreException {
1617
private void setUpBug83230_Explicit() throws CoreException {
Lines 1767-1773 Link Here
1767
}
1767
}
1768
1768
1769
/**
1769
/**
1770
 * Bug 83304: [search] correct results are missing in java search
1770
 * @bug 83304: [search] correct results are missing in java search
1771
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83304"
1771
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83304"
1772
 */
1772
 */
1773
public void testBug83304() throws CoreException {
1773
public void testBug83304() throws CoreException {
Lines 1958-1964 Link Here
1958
}
1958
}
1959
1959
1960
/**
1960
/**
1961
 * Bug 83804: [1.5][javadoc] Missing Javadoc node for package declaration
1961
 * @bug 83804: [1.5][javadoc] Missing Javadoc node for package declaration
1962
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83804"
1962
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83804"
1963
 */
1963
 */
1964
private void setUpBug83804_Type() throws CoreException {
1964
private void setUpBug83804_Type() throws CoreException {
Lines 2024-2030 Link Here
2024
}
2024
}
2025
2025
2026
/**
2026
/**
2027
 * Bug 83388: [1.5][search] Search for varargs method not finding match
2027
 * @bug 83388: [1.5][search] Search for varargs method not finding match
2028
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83388"
2028
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83388"
2029
 */
2029
 */
2030
public void testBug83388() throws CoreException {
2030
public void testBug83388() throws CoreException {
Lines 2085-2091 Link Here
2085
}
2085
}
2086
2086
2087
/**
2087
/**
2088
 * Bug 83693: [search][javadoc] References to methods/constructors: range does not include parameter lists
2088
 * @bug 83693: [search][javadoc] References to methods/constructors: range does not include parameter lists
2089
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83693"
2089
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83693"
2090
 */
2090
 */
2091
public void testBug83693() throws CoreException {
2091
public void testBug83693() throws CoreException {
Lines 2115-2121 Link Here
2115
}
2115
}
2116
2116
2117
/**
2117
/**
2118
 * Bug 83716: [search] refs to 2-arg constructor on Action found unexpected matches
2118
 * @bug 83716: [search] refs to 2-arg constructor on Action found unexpected matches
2119
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83716"
2119
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=83716"
2120
 *
2120
 *
2121
 * Note that this test does verify that bug is really fixed, but only that it has no impact
2121
 * Note that this test does verify that bug is really fixed, but only that it has no impact
Lines 2142-2148 Link Here
2142
}
2142
}
2143
2143
2144
/**
2144
/**
2145
 * Bug 84100: [1.5][search] Search for varargs method not finding match
2145
 * @bug 84100: [1.5][search] Search for varargs method not finding match
2146
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84100"
2146
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84100"
2147
 */
2147
 */
2148
private void setUpBug84100() throws CoreException {
2148
private void setUpBug84100() throws CoreException {
Lines 2221-2227 Link Here
2221
}
2221
}
2222
2222
2223
/**
2223
/**
2224
 * Bug 84121: [1.5][search][varargs] reference to type reported as inaccurate in vararg
2224
 * @bug 84121: [1.5][search][varargs] reference to type reported as inaccurate in vararg
2225
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84121"
2225
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84121"
2226
 */
2226
 */
2227
public void testBug84121() throws CoreException {
2227
public void testBug84121() throws CoreException {
Lines 2246-2252 Link Here
2246
}
2246
}
2247
2247
2248
/**
2248
/**
2249
 * Bug 84724: [1.5][search] Search for varargs method not finding match
2249
 * @bug 84724: [1.5][search] Search for varargs method not finding match
2250
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84724"
2250
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84724"
2251
 */
2251
 */
2252
private void setUpBug84724() throws CoreException {
2252
private void setUpBug84724() throws CoreException {
Lines 2315-2321 Link Here
2315
}
2315
}
2316
2316
2317
/**
2317
/**
2318
 * Bug 84727: [1.5][search] String pattern search does not work with multiply nested types
2318
 * @bug 84727: [1.5][search] String pattern search does not work with multiply nested types
2319
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84727"
2319
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=84727"
2320
 */
2320
 */
2321
private void setUpBug84727() throws CoreException {
2321
private void setUpBug84727() throws CoreException {
Lines 2367-2373 Link Here
2367
}
2367
}
2368
2368
2369
/**
2369
/**
2370
 * Bug 85810: [1.5][search] Missed type parameter reference in implements clause
2370
 * @bug 85810: [1.5][search] Missed type parameter reference in implements clause
2371
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=85810"
2371
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=85810"
2372
 */
2372
 */
2373
public void testBug85810() throws CoreException {
2373
public void testBug85810() throws CoreException {
Lines 2389-2395 Link Here
2389
}
2389
}
2390
2390
2391
/**
2391
/**
2392
 * Bug 86596: [search] Search for type finds segments in import
2392
 * @bug 86596: [search] Search for type finds segments in import
2393
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86596"
2393
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86596"
2394
 */
2394
 */
2395
public void testBug86596() throws CoreException {
2395
public void testBug86596() throws CoreException {
Lines 2420-2426 Link Here
2420
}
2420
}
2421
2421
2422
/**
2422
/**
2423
 * Bug 86642: [search] no match found of package-visible supertypes in subtypes
2423
 * @bug 86642: [search] no match found of package-visible supertypes in subtypes
2424
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86642"
2424
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86642"
2425
 */
2425
 */
2426
public void testBug86642() throws CoreException {
2426
public void testBug86642() throws CoreException {
Lines 2450-2456 Link Here
2450
	);
2450
	);
2451
}
2451
}
2452
/**
2452
/**
2453
 * Bug 86293: [search] Search for method declaration with pattern "run()" reports match in binary field instead of anonymous class
2453
 * @bug 86293: [search] Search for method declaration with pattern "run()" reports match in binary field instead of anonymous class
2454
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86293"
2454
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86293"
2455
 */
2455
 */
2456
public void testBug86293() throws CoreException {
2456
public void testBug86293() throws CoreException {
Lines 2464-2470 Link Here
2464
}
2464
}
2465
2465
2466
/**
2466
/**
2467
 * Bug 86380: [1.5][search][annot] Add support to find references inside annotations on a package declaration
2467
 * @bug 86380: [1.5][search][annot] Add support to find references inside annotations on a package declaration
2468
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86380"
2468
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86380"
2469
 */
2469
 */
2470
private void setUpBug86380() throws CoreException {
2470
private void setUpBug86380() throws CoreException {
Lines 2524-2530 Link Here
2524
}
2524
}
2525
2525
2526
/**
2526
/**
2527
 * Bug 88174: [1.5][search][annot] Search for annotations misses references in default and values constructs
2527
 * @bug 88174: [1.5][search][annot] Search for annotations misses references in default and values constructs
2528
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=88174"
2528
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=88174"
2529
 */
2529
 */
2530
public void testBug88174() throws CoreException {
2530
public void testBug88174() throws CoreException {
Lines 2563-2569 Link Here
2563
}
2563
}
2564
2564
2565
/**
2565
/**
2566
 * Bug 87627: [search] correct results are missing in java search
2566
 * @bug 87627: [search] correct results are missing in java search
2567
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=87627"
2567
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=87627"
2568
 */
2568
 */
2569
public void testBug87627() throws CoreException {
2569
public void testBug87627() throws CoreException {
Lines 2579-2585 Link Here
2579
}
2579
}
2580
2580
2581
/**
2581
/**
2582
 * Bug 88300: [search] Reference search result is changed by placement of private method
2582
 * @bug 88300: [search] Reference search result is changed by placement of private method
2583
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=88300"
2583
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=88300"
2584
 */
2584
 */
2585
public void testBug88300() throws CoreException {
2585
public void testBug88300() throws CoreException {
Lines 2698-2704 Link Here
2698
}
2698
}
2699
2699
2700
/**
2700
/**
2701
 * Bug 89686: [1.5][search] JavaModelException on ResolvedSourceMethod during refactoring
2701
 * @bug 89686: [1.5][search] JavaModelException on ResolvedSourceMethod during refactoring
2702
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=89686"
2702
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=89686"
2703
 */
2703
 */
2704
public void testBug89686() throws CoreException {
2704
public void testBug89686() throws CoreException {
Lines 2739-2745 Link Here
2739
}
2739
}
2740
2740
2741
/**
2741
/**
2742
 * Bug 89848: [search] does not find method references in anonymous class of imported jarred plugin
2742
 * @bug 89848: [search] does not find method references in anonymous class of imported jarred plugin
2743
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=89848"
2743
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=89848"
2744
 */
2744
 */
2745
public void testBug89848() throws CoreException {
2745
public void testBug89848() throws CoreException {
Lines 2753-2759 Link Here
2753
}
2753
}
2754
2754
2755
/**
2755
/**
2756
 * Bug 90779: [search] Constructor Declaration search with ignoring declaring and return type also ignores type name
2756
 * @bug 90779: [search] Constructor Declaration search with ignoring declaring and return type also ignores type name
2757
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=90779"
2757
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=90779"
2758
 */
2758
 */
2759
public void testBug90779() throws CoreException {
2759
public void testBug90779() throws CoreException {
Lines 2786-2792 Link Here
2786
}
2786
}
2787
2787
2788
/**
2788
/**
2789
 * Bug 90915: [1.5][search] NPE in PatternLocator
2789
 * @bug 90915: [1.5][search] NPE in PatternLocator
2790
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=90915"
2790
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=90915"
2791
 */
2791
 */
2792
public void testBug90915() throws CoreException {
2792
public void testBug90915() throws CoreException {
Lines 2818-2824 Link Here
2818
}
2818
}
2819
2819
2820
/**
2820
/**
2821
 * Bug 91542: [1.5][search] JavaModelException on ResolvedSourceMethod during refactoring
2821
 * @bug 91542: [1.5][search] JavaModelException on ResolvedSourceMethod during refactoring
2822
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=91542"
2822
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=91542"
2823
 */
2823
 */
2824
public void testBug91542() throws CoreException {
2824
public void testBug91542() throws CoreException {
Lines 2845-2851 Link Here
2845
}
2845
}
2846
2846
2847
/**
2847
/**
2848
 * Bug 91078: [search] Java search for package reference wrongly identifies inner class as package
2848
 * @bug 91078: [search] Java search for package reference wrongly identifies inner class as package
2849
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=91078"
2849
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=91078"
2850
 */
2850
 */
2851
public void testBug91078() throws CoreException {
2851
public void testBug91078() throws CoreException {
Lines 2890-2896 Link Here
2890
}
2890
}
2891
2891
2892
/**
2892
/**
2893
 * Bug 92264: [search] all types names should support patterns for package/enclosing type name
2893
 * @bug 92264: [search] all types names should support patterns for package/enclosing type name
2894
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=92264"
2894
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=92264"
2895
 */
2895
 */
2896
public void testBug92264a() throws CoreException {
2896
public void testBug92264a() throws CoreException {
Lines 2997-3003 Link Here
2997
}
2997
}
2998
2998
2999
/**
2999
/**
3000
 * Bug 92944: [1.5][search] SearchEngine#searchAllTypeNames doesn't honor enum or annotation element kind
3000
 * @bug 92944: [1.5][search] SearchEngine#searchAllTypeNames doesn't honor enum or annotation element kind
3001
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=92944"
3001
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=92944"
3002
 */
3002
 */
3003
private void setUpBug92944() throws CoreException {
3003
private void setUpBug92944() throws CoreException {
Lines 3161-3171 Link Here
3161
}
3161
}
3162
3162
3163
/**
3163
/**
3164
 * Bug 93392: [1.5][search][annot] search for annotation elements does not seem to be implemented yet
3164
 * @bug 93392: [1.5][search][annot] search for annotation elements does not seem to be implemented yet
3165
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=93392"
3165
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=93392"
3166
 *
3166
 *
3167
 * Note that this test valid also:
3167
 * Note that this test valid also:
3168
 * Bug 94062: [1.5][search][annot] search for annotation elements incorrect match range
3168
 * @bug 94062: [1.5][search][annot] search for annotation elements incorrect match range
3169
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94062"
3169
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94062"
3170
 */
3170
 */
3171
public void testBug93392() throws CoreException {
3171
public void testBug93392() throws CoreException {
Lines 3213-3219 Link Here
3213
}
3213
}
3214
3214
3215
/**
3215
/**
3216
 * Bug 94160: [1.5][search] Generic method in superclass does not exist
3216
 * @bug 94160: [1.5][search] Generic method in superclass does not exist
3217
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94160"
3217
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94160"
3218
 */
3218
 */
3219
public void testBug94160() throws CoreException {
3219
public void testBug94160() throws CoreException {
Lines 3243-3249 Link Here
3243
}
3243
}
3244
3244
3245
/**
3245
/**
3246
 * Bug 94389: [search] InvocationTargetException on Rename
3246
 * @bug 94389: [search] InvocationTargetException on Rename
3247
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94389"
3247
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94389"
3248
 */
3248
 */
3249
public void testBug94389() throws CoreException {
3249
public void testBug94389() throws CoreException {
Lines 3285-3291 Link Here
3285
}
3285
}
3286
3286
3287
/**
3287
/**
3288
 * Bug 94718: [1.5][search][annot] Find references in workspace breaks on an annotation
3288
 * @bug 94718: [1.5][search][annot] Find references in workspace breaks on an annotation
3289
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94718"
3289
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=94718"
3290
 */
3290
 */
3291
public void testBug94718() throws CoreException {
3291
public void testBug94718() throws CoreException {
Lines 3310-3316 Link Here
3310
}
3310
}
3311
3311
3312
/**
3312
/**
3313
 * Bug 95152: [search] Field references not found when type is a qualified member type [regression]
3313
 * @bug 95152: [search] Field references not found when type is a qualified member type [regression]
3314
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=95152"
3314
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=95152"
3315
 */
3315
 */
3316
public void testBug95152_jar01() throws CoreException {
3316
public void testBug95152_jar01() throws CoreException {
Lines 3487-3493 Link Here
3487
}
3487
}
3488
3488
3489
/**
3489
/**
3490
 * Bug 95794: [1.5][search][annot] Find references in workspace breaks on an annotation
3490
 * @bug 95794: [1.5][search][annot] Find references in workspace breaks on an annotation
3491
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=95794"
3491
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=95794"
3492
 */
3492
 */
3493
public void testBug95794() throws CoreException {
3493
public void testBug95794() throws CoreException {
Lines 3556-3562 Link Here
3556
}
3556
}
3557
3557
3558
/**
3558
/**
3559
 * Bug 96761: [1.5][search] Search for declarations of generic method finds non-overriding method
3559
 * @bug 96761: [1.5][search] Search for declarations of generic method finds non-overriding method
3560
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=96761"
3560
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=96761"
3561
 */
3561
 */
3562
public void testBug96761() throws CoreException {
3562
public void testBug96761() throws CoreException {
Lines 3581-3587 Link Here
3581
}
3581
}
3582
3582
3583
/**
3583
/**
3584
 * Bug 96763: [1.5][search] Search for method declarations does not find overridden method with different signature
3584
 * @bug 96763: [1.5][search] Search for method declarations does not find overridden method with different signature
3585
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=96763"
3585
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=96763"
3586
 */
3586
 */
3587
public void testBug96763() throws CoreException {
3587
public void testBug96763() throws CoreException {
Lines 3644-3650 Link Here
3644
}
3644
}
3645
3645
3646
/**
3646
/**
3647
 * Bug 97087: [1.5][search] Can't find reference of generic class's constructor.
3647
 * @bug 97087: [1.5][search] Can't find reference of generic class's constructor.
3648
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97087"
3648
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97087"
3649
 */
3649
 */
3650
public void testBug97087() throws CoreException {
3650
public void testBug97087() throws CoreException {
Lines 3672-3678 Link Here
3672
}
3672
}
3673
3673
3674
/**
3674
/**
3675
 * Bug 97120:
3675
 * @bug 97120:
3676
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97120"
3676
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97120"
3677
 */
3677
 */
3678
public void testBug97120() throws CoreException {
3678
public void testBug97120() throws CoreException {
Lines 3699-3705 Link Here
3699
}
3699
}
3700
3700
3701
/**
3701
/**
3702
 * Bug 97322: [search] Search for method references sometimes reports potential match with differing argument count
3702
 * @bug 97322: [search] Search for method references sometimes reports potential match with differing argument count
3703
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97322"
3703
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97322"
3704
 */
3704
 */
3705
public void testBug97322() throws CoreException {
3705
public void testBug97322() throws CoreException {
Lines 3720-3726 Link Here
3720
}
3720
}
3721
3721
3722
/**
3722
/**
3723
 * Bug 97547: [search] Package search does not find references in member types import clause
3723
 * @bug 97547: [search] Package search does not find references in member types import clause
3724
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97547"
3724
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97547"
3725
 */
3725
 */
3726
public void testBug97547() throws CoreException {
3726
public void testBug97547() throws CoreException {
Lines 3747-3753 Link Here
3747
}
3747
}
3748
3748
3749
/**
3749
/**
3750
 * Bug 97606: [1.5][search] Raw type reference is reported as exact match for qualified names
3750
 * @bug 97606: [1.5][search] Raw type reference is reported as exact match for qualified names
3751
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97606"
3751
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97606"
3752
 */
3752
 */
3753
public void testBug97606() throws CoreException {
3753
public void testBug97606() throws CoreException {
Lines 3857-3863 Link Here
3857
}
3857
}
3858
3858
3859
/**
3859
/**
3860
 * Bug 97614: [1.5][search] Refactoring: renaming of field of a (complex) parametrized type does not replace all occurrences
3860
 * @bug 97614: [1.5][search] Refactoring: renaming of field of a (complex) parametrized type does not replace all occurrences
3861
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97614"
3861
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97614"
3862
 */
3862
 */
3863
public void testBug97614() throws CoreException {
3863
public void testBug97614() throws CoreException {
Lines 3901-3907 Link Here
3901
}
3901
}
3902
3902
3903
/**
3903
/**
3904
 * Bug 98378: [search] does not find method references in anonymous class of imported jarred plugin
3904
 * @bug 98378: [search] does not find method references in anonymous class of imported jarred plugin
3905
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=98378"
3905
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=98378"
3906
 */
3906
 */
3907
public void testBug98378() throws CoreException {
3907
public void testBug98378() throws CoreException {
Lines 3961-3967 Link Here
3961
}
3961
}
3962
3962
3963
/**
3963
/**
3964
 * Bug 99600: [search] Java model exception on "Move to new file" on inner type with inner type
3964
 * @bug 99600: [search] Java model exception on "Move to new file" on inner type with inner type
3965
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=99600"
3965
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=99600"
3966
 */
3966
 */
3967
public void testBug99600() throws CoreException {
3967
public void testBug99600() throws CoreException {
Lines 3988-3994 Link Here
3988
}
3988
}
3989
3989
3990
/**
3990
/**
3991
 * Bug 99903: [1.5][search] range wrong for package-info
3991
 * @bug 99903: [1.5][search] range wrong for package-info
3992
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=99903"
3992
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=99903"
3993
 */
3993
 */
3994
public void testBug99903_annotation() throws CoreException {
3994
public void testBug99903_annotation() throws CoreException {
Lines 4044-4050 Link Here
4044
}
4044
}
4045
4045
4046
/**
4046
/**
4047
 * Bug 100695: [1.5][search] Renaming a field of generic array type has no effect
4047
 * @bug 100695: [1.5][search] Renaming a field of generic array type has no effect
4048
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=100695"
4048
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=100695"
4049
 */
4049
 */
4050
public void testBug100695() throws CoreException {
4050
public void testBug100695() throws CoreException {
Lines 4188-4194 Link Here
4188
}
4188
}
4189
4189
4190
/**
4190
/**
4191
 * Bug 100772: [1.5][search] Search for declarations in hierarchy reports to many matches
4191
 * @bug 100772: [1.5][search] Search for declarations in hierarchy reports to many matches
4192
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=100772"
4192
 * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=100772"
4193
 */
4193
 */
4194
private void setUpBug100772_HierarchyScope_ClassAndSubclass() throws CoreException {
4194
private void setUpBug100772_HierarchyScope_ClassAndSubclass() throws CoreException {
Lines 4691-4697 Link Here
4691
}
4691
}
4692
4692
4693
/**
4693
/**
4694
 * Bug 108088: [search] Inaccurate search match for method invocations with literal arguments
4694
 * @bug 108088: [search] Inaccurate search match for method invocations with literal arguments
4695
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=108088"
4695
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=108088"
4696
 */
4696
 */
4697
public void testBug108088() throws CoreException {
4697
public void testBug108088() throws CoreException {
Lines 5954-5960 Link Here
5954
}
5954
}
5955
5955
5956
/**
5956
/**
5957
 * Bug 113671: [search] AIOOBE in SearchEngine#searchAllTypeNames
5957
 * @bug 113671: [search] AIOOBE in SearchEngine#searchAllTypeNames
5958
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=113671"
5958
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=113671"
5959
 */
5959
 */
5960
public void testBug113671() throws CoreException {
5960
public void testBug113671() throws CoreException {
Lines 6015-6021 Link Here
6015
}
6015
}
6016
6016
6017
/**
6017
/**
6018
 * Bug 116459: [search] correct results are missing in java search
6018
 * @bug 116459: [search] correct results are missing in java search
6019
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=116459"
6019
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=116459"
6020
 */
6020
 */
6021
public void testBug116459() throws CoreException {
6021
public void testBug116459() throws CoreException {
Lines 6207-6213 Link Here
6207
}
6207
}
6208
6208
6209
/**
6209
/**
6210
 * Bug 123679: [search] Field references not found when type is a qualified member type [regression]
6210
 * @bug 123679: [search] Field references not found when type is a qualified member type [regression]
6211
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=123679"
6211
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=123679"
6212
 */
6212
 */
6213
public void testBug123679() throws CoreException {
6213
public void testBug123679() throws CoreException {
Lines 6276-6282 Link Here
6276
}
6276
}
6277
6277
6278
/**
6278
/**
6279
 * Bug 124469: [search] AIOOBE in PatternLocator when searching for dependency extent from manifest
6279
 * @bug 124469: [search] AIOOBE in PatternLocator when searching for dependency extent from manifest
6280
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124469"
6280
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124469"
6281
 */
6281
 */
6282
public void testBug124469a() throws CoreException {
6282
public void testBug124469a() throws CoreException {
Lines 6463-6469 Link Here
6463
}
6463
}
6464
6464
6465
/**
6465
/**
6466
 * Bug 124489: [search] correct results are missing in java search
6466
 * @bug 124489: [search] correct results are missing in java search
6467
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124489"
6467
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124489"
6468
 */
6468
 */
6469
public void testBug124489() throws CoreException {
6469
public void testBug124489() throws CoreException {
Lines 6710-6716 Link Here
6710
}
6710
}
6711
6711
6712
/**
6712
/**
6713
 * Bug 125178: [search] AIOOBE in PatternLocator when searching for dependency extent from manifest
6713
 * @bug 125178: [search] AIOOBE in PatternLocator when searching for dependency extent from manifest
6714
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=125178"
6714
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=125178"
6715
 */
6715
 */
6716
public void testBug125178() throws CoreException {
6716
public void testBug125178() throws CoreException {
Lines 6750-6756 Link Here
6750
}
6750
}
6751
6751
6752
/**
6752
/**
6753
 * Bug 126330: Type reference not found in jar file if sources was not already opened
6753
 * @bug 126330: Type reference not found in jar file if sources was not already opened
6754
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=126330"
6754
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=126330"
6755
 */
6755
 */
6756
public void testBug126330() throws CoreException {
6756
public void testBug126330() throws CoreException {
Lines 6762-6768 Link Here
6762
}
6762
}
6763
6763
6764
/**
6764
/**
6765
 * Bug 127628: [index] CodeAssist doesn't filter deprecated types
6765
 * @bug 127628: [index] CodeAssist doesn't filter deprecated types
6766
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=127628"
6766
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=127628"
6767
 */
6767
 */
6768
public void testBug127628() throws CoreException {
6768
public void testBug127628() throws CoreException {
Lines 6797-6803 Link Here
6797
}
6797
}
6798
6798
6799
/**
6799
/**
6800
 * Bug 128877: [search] reports inexistent IMethod for binary constructor of inner class
6800
 * @bug 128877: [search] reports inexistent IMethod for binary constructor of inner class
6801
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=128877"
6801
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=128877"
6802
 */
6802
 */
6803
public void testBug128877a() throws CoreException {
6803
public void testBug128877a() throws CoreException {
Lines 7179-7185 Link Here
7179
}
7179
}
7180
7180
7181
/**
7181
/**
7182
 * Bug 137984: [search] Field references not found when type is a qualified member type [regression]
7182
 * @bug 137984: [search] Field references not found when type is a qualified member type [regression]
7183
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=137984"
7183
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=137984"
7184
 */
7184
 */
7185
public void testBug137984_jar() throws CoreException {
7185
public void testBug137984_jar() throws CoreException {
Lines 7224-7230 Link Here
7224
}
7224
}
7225
7225
7226
/**
7226
/**
7227
 * Bug 140156: [1.5][search] Invalid method handle with parameterized parameters when no source is attached
7227
 * @bug 140156: [1.5][search] Invalid method handle with parameterized parameters when no source is attached
7228
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=140156"
7228
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=140156"
7229
 */
7229
 */
7230
public void testBug140156() throws CoreException {
7230
public void testBug140156() throws CoreException {
Lines 7319-7325 Link Here
7319
}
7319
}
7320
7320
7321
/**
7321
/**
7322
 * Bug 144044: [search] NPE when trying to find references to field variable
7322
 * @bug 144044: [search] NPE when trying to find references to field variable
7323
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=144044"
7323
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=144044"
7324
 */
7324
 */
7325
public void testBug144044() throws CoreException {
7325
public void testBug144044() throws CoreException {
Lines 7385-7391 Link Here
7385
}
7385
}
7386
7386
7387
/**
7387
/**
7388
 * Bug 148215: [search] correct results are missing in java search
7388
 * @bug 148215: [search] correct results are missing in java search
7389
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=148215"
7389
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=148215"
7390
 */
7390
 */
7391
public void testBug148215_Types() throws CoreException {
7391
public void testBug148215_Types() throws CoreException {
Lines 7529-7535 Link Here
7529
}
7529
}
7530
7530
7531
/**
7531
/**
7532
 * Bug 156340: [search] searchAllTypeNames return nothing for empty prefix
7532
 * @bug 153765: [search] Reference to package is not found in qualified annotation
7533
 * @test Ensure that references to package are also found in qualified annotation
7534
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=153765"
7535
 */
7536
public void testBug153765() throws CoreException {
7537
	try {
7538
		createFolder("/JavaSearchBugs/src/b153765");
7539
		createFile("/JavaSearchBugs/src/b153765/Unimportant.java",
7540
			"package b153765;\n" + 
7541
			"public @interface Unimportant {}\n"
7542
		);
7543
		createFolder("/JavaSearchBugs/src/b153765/test");
7544
		createFile("/JavaSearchBugs/src/b153765/test/SomeClass.java",
7545
			"package test;\n" + 
7546
			"public class SomeClass {\n" + 
7547
			"        @b153765.Unimportant public void foo() {}\n" + 
7548
			"}"
7549
		);
7550
		waitUntilIndexesReady();
7551
		IPackageFragment packageFragment = getPackage("/JavaSearchBugs/src/b153765");
7552
		this.resultCollector.showSelection = true;
7553
		search(packageFragment, REFERENCES);
7554
		assertSearchResults(
7555
			"src/b153765/test/SomeClass.java void b153765.test.SomeClass.foo() [        @§|b153765|§.Unimportant public void foo() {}] EXACT_MATCH"
7556
		);
7557
	}
7558
	finally {
7559
		deleteFolder("/JavaSearchBugs/src/b153765");
7560
	}
7561
}
7562
7563
/**
7564
 * @bug 156340: [search] searchAllTypeNames return nothing for empty prefix
7533
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=156340"
7565
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=156340"
7534
 */
7566
 */
7535
public void testBug156340() throws CoreException {
7567
public void testBug156340() throws CoreException {
Lines 7567-7573 Link Here
7567
}
7599
}
7568
7600
7569
/**
7601
/**
7570
 * Bug 156177: [1.5][search] interfaces and annotations could be found with only one requets of searchAllTypeName
7602
 * @bug 156177: [1.5][search] interfaces and annotations could be found with only one requets of searchAllTypeName
7571
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=156177"
7603
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=156177"
7572
 */
7604
 */
7573
public void testBug156177() throws CoreException {
7605
public void testBug156177() throws CoreException {
Lines 7600-7606 Link Here
7600
}
7632
}
7601
7633
7602
/**
7634
/**
7603
 * Bug 156491: [1.5][search] interfaces and annotations could be found with only one requets of searchAllTypeName
7635
 * @bug 156491: [1.5][search] interfaces and annotations could be found with only one requets of searchAllTypeName
7604
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=156491"
7636
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=156491"
7605
 */
7637
 */
7606
public void testBug156491() throws CoreException {
7638
public void testBug156491() throws CoreException {
(-)buildnotes_jdt-core.html (-1 / +3 lines)
Lines 49-55 Link Here
49
<h2>What's new in this drop</h2>
49
<h2>What's new in this drop</h2>
50
50
51
<h3>Problem Reports Fixed</h3>
51
<h3>Problem Reports Fixed</h3>
52
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=213284">213284</a>
52
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=153765">153765</a>
53
[search] Reference to package is not found in qualified annotation
54
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=213284">213284</a>
53
[formatter] NPE on formatting region
55
[formatter] NPE on formatting region
54
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=213283">213283</a>
56
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=213283">213283</a>
55
[formatter] AIOOBE when formatting region
57
[formatter] AIOOBE when formatting region
(-)search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java (-2 / +4 lines)
Lines 64-69 Link Here
64
64
65
	this.pattern = pattern;
65
	this.pattern = pattern;
66
}
66
}
67
public int match(Annotation node, MatchingNodeSet nodeSet) {
68
	return match(node.type, nodeSet);
69
}
67
public int match(ASTNode node, MatchingNodeSet nodeSet) { // interested in ImportReference
70
public int match(ASTNode node, MatchingNodeSet nodeSet) { // interested in ImportReference
68
	if (!(node instanceof ImportReference)) return IMPOSSIBLE_MATCH;
71
	if (!(node instanceof ImportReference)) return IMPOSSIBLE_MATCH;
69
72
Lines 310-318 Link Here
310
				return IMPOSSIBLE_MATCH;
313
				return IMPOSSIBLE_MATCH;
311
		}				
314
		}				
312
		return ACCURATE_MATCH;
315
		return ACCURATE_MATCH;
313
	} else {
314
		return IMPOSSIBLE_MATCH;
315
	}
316
	}
317
	return IMPOSSIBLE_MATCH;
316
}
318
}
317
protected int resolveLevel(QualifiedNameReference qNameRef) {
319
protected int resolveLevel(QualifiedNameReference qNameRef) {
318
	TypeBinding typeBinding = null;
320
	TypeBinding typeBinding = null;

Return to bug 153765