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 178120 Details for
Bug 322979
[search] use of IJavaSearchConstants.IMPLEMENTORS yields surprising results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
a test
test.txt (text/plain), 1.04 KB, created by
Satyam Kandula
on 2010-09-03 01:37:44 EDT
(
hide
)
Description:
a test
Filename:
MIME Type:
Creator:
Satyam Kandula
Created:
2010-09-03 01:37:44 EDT
Size:
1.04 KB
patch
obsolete
>public void testBug322979h() throws CoreException { > try > { > IJavaProject project = createJavaProject("P", new String[] {""}, new String[] {"JCL15_LIB"}, "", "1.5"); > createFile("/P/Test.java", > "public class Test implements I<String>{\n"+ > "}\n"+ > "Interface I<T> {\n"+ > "}\n"); > waitUntilIndexesReady(); > int mask = IJavaSearchScope.SOURCES ; > IJavaSearchScope scope = SearchEngine.createJavaSearchScope(new IJavaElement[] { project }, mask); > this.resultCollector.showAccuracy(true); > this.resultCollector.showSelection(); > SearchPattern leftPattern = SearchPattern.createPattern( > "Object", > TYPE, > IMPLEMENTORS, > EXACT_RULE); > SearchPattern rightPattern = SearchPattern.createPattern( > "String", > TYPE, > REFERENCES, > EXACT_RULE); > search(SearchPattern.createOrPattern(leftPattern, rightPattern), scope, this.resultCollector); > assertSearchResults( > "Test.java Test [public class Test implements I<!|String|!>{] EXACT_MATCH" > ); > } finally { > deleteProject("P"); > } >} >
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 Raw
Actions:
View
Attachments on
bug 322979
:
177717
|
178046
|
178120
|
178133