Skip to content

Commit c3501eb

Browse files
datho7561robstryker
authored andcommitted
Mark JavaSearchBugs8Tests.testBug400899g36 as investigated
This code cannot be parsed by javac, since it differs from the Java Language Specification, and as such we can't get the test passing. Signed-off-by: David Thompson <[email protected]>
1 parent eef6e4a commit c3501eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugs8Tests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@
3434
import org.eclipse.jdt.core.search.SearchParticipant;
3535
import org.eclipse.jdt.core.search.SearchPattern;
3636
import org.eclipse.jdt.core.search.TypeReferenceMatch;
37+
import org.eclipse.jdt.core.tests.javac.JavacFailReason;
3738
import org.eclipse.jdt.internal.core.JavaModelManager;
3839
import org.eclipse.jdt.internal.core.LambdaMethod;
3940
import org.eclipse.jdt.internal.core.search.indexing.IndexManager;
4041
import org.eclipse.jdt.internal.core.search.matching.AndPattern;
4142
import org.eclipse.jdt.internal.core.search.matching.MethodPattern;
43+
import org.junit.Ignore;
44+
import org.junit.experimental.categories.Category;
4245

4346
/**
4447
* Non-regression tests for bugs fixed in Java Search engine.
@@ -1325,6 +1328,7 @@ public void testBug400899g35() throws CoreException {
13251328
* ReferenceExpression ::= Name Dimsopt '::' NonWildTypeArgumentsopt IdentifierOrNew
13261329
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=400899"
13271330
*/
1331+
@Category(value=Ignore.class) @JavacFailReason(cause = JavacFailReason.JDT_VIOLATES_SPEC)
13281332
public void testBug400899g36() throws CoreException {
13291333
this.workingCopies = new ICompilationUnit[1];
13301334
this.workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/b400899/X.java",

0 commit comments

Comments
 (0)