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 60257 Details for
Bug 176358
[search] Failure in JavaSearchBugsTest while running random tests order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v00.txt (text/plain), 3.34 KB, created by
Frederic Fusier
on 2007-03-05 06:52:36 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2007-03-05 06:52:36 EST
Size:
3.34 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.101 >diff -u -r1.101 JavaSearchBugsTests.java >--- src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 8 Feb 2007 16:30:48 -0000 1.101 >+++ src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 5 Mar 2007 11:46:07 -0000 >@@ -7829,7 +7829,24 @@ > return this.jsScope.enclosingProjectsAndJars(); > } > }; >- TypeNameMatchCollector requestor = new TypeNameMatchCollector(); >+ // Search all type names with TypeNameMatchRequestor >+ TypeNameMatchCollector collector = new TypeNameMatchCollector() { >+ public String toString(){ >+ return toFullyQualifiedNamesString(); >+ } >+ }; >+ new SearchEngine().searchAllTypeNames( >+ null, >+ SearchPattern.R_EXACT_MATCH, >+ "C".toCharArray(), // need a prefix which returns most of different types (class file, CU, member,...) >+ SearchPattern.R_PREFIX_MATCH, >+ IJavaSearchConstants.TYPE, >+ scope, >+ collector, >+ IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, >+ null); >+ // Search all type names with old API >+ TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); > new SearchEngine().searchAllTypeNames( > null, > SearchPattern.R_EXACT_MATCH, >@@ -7840,24 +7857,7 @@ > requestor, > IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, > null); >- assertSearchResults( >- "C (not open) [in C.class [in test [in lib/b124469.jar [in JavaSearchBugs]]]]\n" + >- "C (not open) [in C.java [in b137984 [in src [in JavaSearchBugs]]]]\n" + >- "C (not open) [in C.java [in b137984 [in src [in JavaSearchBugs]]]]\n" + >- "C (not open) [in C.java [in b163984 [in src [in JavaSearchBugs]]]]\n" + >- "C2 (not open) [in C [in C.java [in b137984 [in src [in JavaSearchBugs]]]]]\n" + >- "C86293 (not open) [in C86293.class [in <default> [in lib/b86293.jar [in JavaSearchBugs]]]]\n" + >- "CJ (not open) [in CJ.class [in <default> [in lib/b137984.jar [in JavaSearchBugs]]]]\n" + >- "CJ2 (not open) [in CJ$CJ2.class [in <default> [in lib/b137984.jar [in JavaSearchBugs]]]]\n" + >- "CJ3 (not open) [in CJ$CJ2$CJ3.class [in <default> [in lib/b137984.jar [in JavaSearchBugs]]]]\n" + >- "C_124645 (not open) [in T_124645.java [in b124645 [in src [in JavaSearchBugs]]]]\n" + >- "CharSequence (not open) [in CharSequence.class [in java.lang [in "+ getExternalJCLPathString("1.5") + "]]]\n" + >- "Class (not open) [in Class.class [in java.lang [in "+ getExternalJCLPathString("1.5") + "]]]\n" + >- "CloneNotSupportedException (not open) [in CloneNotSupportedException.class [in java.lang [in "+ getExternalJCLPathString("1.5") + "]]]\n" + >- "Collection (not open) [in Collection.class [in b87627 [in lib/b87627.jar [in JavaSearchBugs]]]]\n" + >- "Comparable (not open) [in Comparable.class [in java.lang [in "+ getExternalJCLPathString("1.5") + "]]]\n" + >- "Test (not open) [in Test.java [in b95794 [in src [in JavaSearchBugs]]]]", >- requestor >- ); >+ // Should have same types with these 2 searches >+ assertEquals("Found types sounds not to be correct", requestor.toString(), collector.toString()); > } > } >\ 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 176358
: 60257