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 90734 Details for
Bug 218397
[search] Can't find references of generic local class.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Test for the fix
v00_test.txt (text/plain), 1.60 KB, created by
Frederic Fusier
on 2008-02-26 05:17:52 EST
(
hide
)
Description:
Test for the fix
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2008-02-26 05:17:52 EST
Size:
1.60 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java,v >retrieving revision 1.144 >diff -u -r1.144 JavaSearchBugsTests.java >--- src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 30 Jan 2008 15:59:42 -0000 1.144 >+++ src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 26 Feb 2008 10:17:27 -0000 >@@ -9718,4 +9718,29 @@ > "src/test/X.java void test.X.foo() [ t2.field = §|t1|§.field;] READ ACCESS" > ); > } >+ >+/** >+ * @bug 218397: [search] Can't find references of generic local class. >+ * @test Ensure that the generic local class reference is well found (no CCE) >+ * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=218397" >+ */ >+public void testBug218397() throws CoreException { >+ workingCopies = new ICompilationUnit[1]; >+ workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Bug.java", >+ "class Bug{\n" + >+ " {\n" + >+ " class Inner<Type extends Number> {\n" + >+ " Row field;//LINE 3\n" + >+ " class Row{}\n" + >+ " }\n" + >+ " }\n" + >+ "}" >+ ); >+ this.resultCollector.showSelection = true; >+ IType type = selectType(this.workingCopies[0], "Row"); >+ search(type, REFERENCES, getJavaSearchWorkingCopiesScope(), this.resultCollector); >+ assertSearchResults( >+ "src/Bug.java Bug.{}:Inner#1.field [ §|Row|§ field;//LINE 3] EXACT_MATCH" >+ ); >+} > } >\ No newline at end of file
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 218397
:
89407
| 90734