Failed

org.eclipse.jdt.core.tests.compiler.regression.PolymorphicSignatureTest.testBug475996 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 52 builds (Since #64 )
Took 0.6 sec.

Error Message

testBug475996 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:1: error: cannot find symbol\n
import java.lang.invoke.VarHandle;\n
                       ^\n
  symbol:   class VarHandle\n
  location: package java.lang.invoke\n
X.java:5: error: cannot find symbol\n
 VarHandle RESULT;\n
 ^\n
  symbol:   class VarHandle\n
  location: class X<T>\n
  where T is a type-variable:\n
    T extends Object declared in class X\n
2 errors\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:1: error: cannot find symbol\n
import java.lang.invoke.VarHandle;\n
                       ^\n
  symbol:   class VarHandle\n
  location: package java.lang.invoke\n
X.java:5: error: cannot find symbol\n
 VarHandle RESULT;\n
 ^\n
  symbol:   class VarHandle\n
  location: class X<T>\n
  where T is a type-variable:\n
    T extends Object declared in class X\n
2 errors\n
]>

Stacktrace

junit.framework.ComparisonFailure: 
testBug475996 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:1: error: cannot find symbol\n
import java.lang.invoke.VarHandle;\n
                       ^\n
  symbol:   class VarHandle\n
  location: package java.lang.invoke\n
X.java:5: error: cannot find symbol\n
	VarHandle RESULT;\n
	^\n
  symbol:   class VarHandle\n
  location: class X<T>\n
  where T is a type-variable:\n
    T extends Object declared in class X\n
2 errors\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:1: error: cannot find symbol\n
import java.lang.invoke.VarHandle;\n
                       ^\n
  symbol:   class VarHandle\n
  location: package java.lang.invoke\n
X.java:5: error: cannot find symbol\n
	VarHandle RESULT;\n
	^\n
  symbol:   class VarHandle\n
  location: class X<T>\n
  where T is a type-variable:\n
    T extends Object declared in class X\n
2 errors\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.PolymorphicSignatureTest.testBug475996(PolymorphicSignatureTest.java:91)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.PolymorphicSignatureTest#testBug475996 - 1.8
X.java [
import java.lang.invoke.VarHandle;
public class X<T> {
	static class Token {}
	Token NIL = new Token();
	VarHandle RESULT;
	void call(T t) {
		RESULT.compareAndSet(this, null, (t==null) ? NIL : t);
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1566687977074/1.8.0_162_20190824_190625.txt

Standard Error

--- javac err: ---
X.java:1: error: cannot find symbol
import java.lang.invoke.VarHandle;
                       ^
  symbol:   class VarHandle
  location: package java.lang.invoke
X.java:5: error: cannot find symbol
	VarHandle RESULT;
	^
  symbol:   class VarHandle
  location: class X<T>
  where T is a type-variable:
    T extends Object declared in class X
2 errors

----------------------------------------