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

(-)search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java (-3 / +4 lines)
Lines 2314-2323 Link Here
2314
		enclosingElement = ((IType) parent).getType(new String(type.name));
2314
		enclosingElement = ((IType) parent).getType(new String(type.name));
2315
	} else if (enclosingElement instanceof IMember) {
2315
	} else if (enclosingElement instanceof IMember) {
2316
	    IMember member = (IMember) parent;
2316
	    IMember member = (IMember) parent;
2317
	    if (member.isBinary()) 
2317
		if (member.isBinary())  {
2318
	        enclosingElement = parent;
2318
			enclosingElement = this.currentPossibleMatch.openable.getClassFile().getType();
2319
	    else
2319
		} else {
2320
			enclosingElement = member.getType(new String(type.name), occurrenceCount);
2320
			enclosingElement = member.getType(new String(type.name), occurrenceCount);
2321
		}
2321
	}
2322
	}
2322
	if (enclosingElement == null) return;
2323
	if (enclosingElement == null) return;
2323
	boolean enclosesElement = encloses(enclosingElement);
2324
	boolean enclosesElement = encloses(enclosingElement);
(-)buildnotes_jdt-core.html (-1 / +3 lines)
Lines 52-58 Link Here
52
What's new in this drop</h2>
52
What's new in this drop</h2>
53
53
54
<h3>Problem Reports Fixed</h3>
54
<h3>Problem Reports Fixed</h3>
55
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=135292">135292</a>
55
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=86293">86293</a>
56
[search] Search for method declaration with pattern "run()" reports match in binary field instead of anonymous class
57
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=135292">135292</a>
56
[compiler] NPE in ProblemReporter.invalidField plus .log swamping
58
[compiler] NPE in ProblemReporter.invalidField plus .log swamping
57
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=135217">135217</a>
59
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=135217">135217</a>
58
Compiler class constructor change in 3.2
60
Compiler class constructor change in 3.2
(-)src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java (+13 lines)
Lines 2444-2449 Link Here
2444
		"src/b86642/B.java void b86642.B.f(A) [A] EXACT_MATCH"
2444
		"src/b86642/B.java void b86642.B.f(A) [A] EXACT_MATCH"
2445
	);
2445
	);
2446
}
2446
}
2447
/**
2448
 * Bug 86293: [search] Search for method declaration with pattern "run()" reports match in binary field instead of anonymous class
2449
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=86293"
2450
 */
2451
public void testBug86293() throws CoreException {
2452
    IType type = getClassFile("JavaSearchBugs", "lib/b86293.jar", "", "I86293.class").getType();
2453
	IMethod method = type.getMethod("m86293", new String[0]);
2454
	search(method, DECLARATIONS);
2455
	assertSearchResults(
2456
		"lib/b86293.jar void <anonymous>.m86293() EXACT_MATCH\n" + 
2457
		"lib/b86293.jar void I86293.m86293() EXACT_MATCH"
2458
	);
2459
}
2447
2460
2448
/**
2461
/**
2449
 * Bug 86380: [1.5][search][annot] Add support to find references inside annotations on a package declaration
2462
 * Bug 86380: [1.5][search][annot] Add support to find references inside annotations on a package declaration
(-)src/org/eclipse/jdt/core/tests/model/JavaSearchTests.java (-2 / +2 lines)
Lines 1097-1103 Link Here
1097
		getJavaSearchScope(), 
1097
		getJavaSearchScope(), 
1098
		this.resultCollector);
1098
		this.resultCollector);
1099
	assertSearchResults(
1099
	assertSearchResults(
1100
		"test48725.jar void p.X.foo()",
1100
		"test48725.jar int p.<anonymous>.bar()",
1101
		this.resultCollector);
1101
		this.resultCollector);
1102
}
1102
}
1103
/**
1103
/**
Lines 2152-2158 Link Here
2152
		scope, 
2152
		scope, 
2153
		this.resultCollector);
2153
		this.resultCollector);
2154
	assertSearchResults(
2154
	assertSearchResults(
2155
		"test20631.jar void X.foo()",
2155
		"test20631.jar Y",
2156
		this.resultCollector);
2156
		this.resultCollector);
2157
}
2157
}
2158
/**
2158
/**
(-)workspace/JavaSearchBugs/.classpath (+1 lines)
Lines 4-9 Link Here
4
    <classpathentry kind="var" path="JCL_LIB" sourcepath="JCL_SRC" rootpath="JCL_SRCROOT"/>
4
    <classpathentry kind="var" path="JCL_LIB" sourcepath="JCL_SRC" rootpath="JCL_SRCROOT"/>
5
	<classpathentry kind="lib" path="lib/test81556.jar" sourcepath="/JavaSearchBugs/lib/test81556.jar" rootpath=""/>
5
	<classpathentry kind="lib" path="lib/test81556.jar" sourcepath="/JavaSearchBugs/lib/test81556.jar" rootpath=""/>
6
	<classpathentry kind="lib" path="lib/test75816.jar" sourcepath="/JavaSearchBugs/lib/test75816.jar" rootpath=""/>
6
	<classpathentry kind="lib" path="lib/test75816.jar" sourcepath="/JavaSearchBugs/lib/test75816.jar" rootpath=""/>
7
	<classpathentry kind="lib" path="lib/b86293.jar"/>
7
	<classpathentry kind="lib" path="lib/b87627.jar" sourcepath="/JavaSearchBugs/lib/b87627.jar" rootpath=""/>
8
	<classpathentry kind="lib" path="lib/b87627.jar" sourcepath="/JavaSearchBugs/lib/b87627.jar" rootpath=""/>
8
	<classpathentry kind="lib" path="lib/b110422.jar" sourcepath="" rootpath=""/>
9
	<classpathentry kind="lib" path="lib/b110422.jar" sourcepath="" rootpath=""/>
9
	<classpathentry kind="lib" path="lib/b124469.jar" sourcepath="/JavaSearchBugs/lib/b124469.jar" rootpath=""/>
10
	<classpathentry kind="lib" path="lib/b124469.jar" sourcepath="/JavaSearchBugs/lib/b124469.jar" rootpath=""/>
(-)workspace/JavaSearchBugs/lib/b86293.jar (+9 lines)
Added Link Here
1
PKós‰4META-INF/MANIFEST.MFþÊóMÌËLK-.Ñ
2
K-*ÎÌϳR0Ô3àåâåPK²îPK.s‰4I86293.class;õo×>CNv&F6O3#KcvF?¬Ä²DýœÄ¼t}ÿ¤¬Ôä t.Xš‘?YC3Œ‘?+8¿´(9Õ-3'•‘?¢U¤‹?‘¨†?&±2°?Xì@’‰?PKbӌ˜dtPKûr‰4I86293.java+(MÊÉLVÈÌ+I-JKLNUð´03²4V¨æåâ,€È•åg¦(䂅54­y¹jy¹PK°
3
m…06PK.s‰4C86293$1.classM?MOÂ@†ß¥•B©RñûãÈ??D@ƒÑx!š?T=h¸/eKÊ6i‹ÿ˃1ñàðGg—=ÌfæÙ÷?™ÝïŸÏ/=œ:(0”ýËó«‹zÏ?ÍàÏù+ïD\M;Oã¹3E†âÐh(Éf2­wɬl×Än¤’Ù-C¥±†Íƒ=ˆ'¢†MJ.,T=”á3X
4
-¨R‰Çåb,’>ŽC-ˆC?x"u?C[?dpƒõžzä"ßÇ}Ž—I(î¥VVVŠ3ýo¨”HOSAþê?
5
£8•jú ²Y<qpB}VtiM‹bÌ÷õ¶ô?Š2\¢ÊúTkâ¶ÚïðZØz3šmÍÌ?vP£Ì£\Óì¾?ïÒ65ş¹h€õÏÈr£…}£:À¡iÇÌ-HyD§?càPK4|ª…6ËPK.s‰4C86293.class5OËJÃ@=Ó¤M›ŒmZßîm–Z(JÅM@(](—“tÔ)1?$õ¿\ˆ àøQâ?$ÎÀ½÷œsŸ?¿Ÿß¦8²Ð`hyç󳋙“Á]‹W1‰Eò4¹
6
×2*š?JÆ+†¶¿,óTq©U\1ÃQÀ`zéJÚ0àpXh[Ø¢ìªéÉÔGOó.ƒ3ô+z1
7
:`p4Ñbèù*‘7›—Pf÷"Œ%)~‰8™Ò¸&ÍâYåzïû.Ýd‘¼VZv*úTŸÀÀ—I"3/y.sÓ4ƒnfôidѲd;„<˜ýñìñøÝwô߈l`›l·n`vÉïâUv±Wæí—ö‡ämÒ8ôüPK†BηqPK)s‰4C86293.java+(MÊÉLVHÎI,.Vp¶03²4V¨æåâ,€ˆ{BDÒ2SsRlòRË¡Bš`e0ueù™)
8
¹p™Z T­5/?PKä9b×CaPKós‰4²îMETA-INF/MANIFEST.MFþÊPK.s‰4bӌ˜dtaI86293.classPKûr‰4°
9
m…06ÿI86293.javaPK.s‰44|ª…6ËhC86293$1.classPK.s‰4†BηqÚC86293.classPK)s‰4ä9b×Ca&C86293.javaPKh¢

Return to bug 86293