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 22913 Details for
Bug 97614
[1.5][search] Refactoring: renaming of field of a (complex) parametrized type does not replace all occurrences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Test case added to JavaSearchBugsTests
v00-model.txt (text/plain), 2.64 KB, created by
Frederic Fusier
on 2005-06-13 08:36:57 EDT
(
hide
)
Description:
Test case added to JavaSearchBugsTests
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2005-06-13 08:36:57 EDT
Size:
2.64 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java,v >retrieving revision 1.46 >diff -u -r1.46 JavaSearchBugsTests.java >--- src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 8 Jun 2005 16:53:11 -0000 1.46 >+++ src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 13 Jun 2005 12:33:40 -0000 >@@ -44,7 +44,7 @@ > // org.eclipse.jdt.internal.core.search.BasicSearchEngine.VERBOSE = true; > // org.eclipse.jdt.internal.codeassist.SelectionEngine.DEBUG = true; > // TESTS_PREFIX = "testBug75816"; >-// TESTS_NAMES = new String[] { "testBug82208_SearchAllTypeNames_CLASS" }; >+// TESTS_NAMES = new String[] { "testBug97614" }; > // TESTS_NUMBERS = new int[] { 96761, 96763 }; > // TESTS_RANGE = new int[] { 83304, -1 }; > } >@@ -3556,4 +3556,48 @@ > deleteFolder(pathRef); > } > } >+ >+ /** >+ * Bug 97614: [1.5][search] Refactoring: renaming of field of a (complex) parametrized type does not replace all occurrences >+ * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=97614" >+ */ >+ public void testBug97614() throws CoreException { >+ workingCopies = new ICompilationUnit[3]; >+ workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/b97614/W.java", >+ "package b97614;\n" + >+ "public class W {\n" + >+ " private final Map<String, Y<?, ? extends b97614.X.XX<?, ?>, ? >> m1 = null; // (a)\n" + >+ " public void getStore(final Object o) {\n" + >+ " m1.get(o); // (b)\n" + >+ " }\n" + >+ "}\n" + >+ "interface Map<K, V> {\n" + >+ " V get(Object k);\n" + >+ "}" >+ ); >+ workingCopies[1] = getWorkingCopy("/JavaSearchBugs/src/b97614/X.java", >+ "package b97614;\n" + >+ "import java.io.Serializable;\n" + >+ "public interface X<T extends X<T, U, V>, \n" + >+ " U extends X.XX<T, V>, \n" + >+ " V extends X.XY> {\n" + >+ " public interface XX<TT extends X<TT, ?, UU>, \n" + >+ " UU extends X.XY> \n" + >+ " extends Serializable {\n" + >+ " }\n" + >+ " public interface XY extends Serializable {\n" + >+ " }\n" + >+ "}" >+ ); >+ workingCopies[2] = getWorkingCopy("/JavaSearchBugs/src/b97614/Y.java", >+ "package b97614;\n" + >+ "public class Y<T extends X<T, U, V>, U extends X.XX<T, V>, V extends X.XY> {\n" + >+ "}\n" >+ ); >+ IField field = workingCopies[0].getType("W").getField("m1"); >+ search(field, REFERENCES); >+ assertSearchResults( >+ "src/b97614/W.java void b97614.W.getStore(Object) [m1] EXACT_MATCH" >+ ); >+ } > }
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 97614
:
22912
| 22913