Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.test0063 - 11 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since #43 )
Took 0.68 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in org\eclipse\jdt\core\dom\X.java (at line 9)\n
 if (t1 == t2) { \n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
2. ERROR in org\eclipse\jdt\core\dom\X.java (at line 11)\n
 if (t1 == t2) {\n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
3. ERROR in org\eclipse\jdt\core\dom\X.java (at line 18)\n
 if (t1 == t2) { \n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
4. ERROR in org\eclipse\jdt\core\dom\X.java (at line 20)\n
 if (t1 == t2) {\n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
5. ERROR in org\eclipse\jdt\core\dom\X.java (at line 30)\n
 if (t1 == t2) { \n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in org\eclipse\jdt\core\dom\X.java (at line 9)\n
 if (t1 == t2) { \n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
2. ERROR in org\eclipse\jdt\core\dom\X.java (at line 11)\n
 if (t1 == t2) {\n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
3. ERROR in org\eclipse\jdt\core\dom\X.java (at line 18)\n
 if (t1 == t2) { \n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
4. ERROR in org\eclipse\jdt\core\dom\X.java (at line 20)\n
 if (t1 == t2) {\n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
5. ERROR in org\eclipse\jdt\core\dom\X.java (at line 30)\n
 if (t1 == t2) { \n
     ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in org\eclipse\jdt\core\dom\X.java (at line 9)\n
	if (t1 == t2) { \n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
2. ERROR in org\eclipse\jdt\core\dom\X.java (at line 11)\n
	if (t1 == t2) {\n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
3. ERROR in org\eclipse\jdt\core\dom\X.java (at line 18)\n
	if (t1 == t2) { \n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
4. ERROR in org\eclipse\jdt\core\dom\X.java (at line 20)\n
	if (t1 == t2) {\n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
5. ERROR in org\eclipse\jdt\core\dom\X.java (at line 30)\n
	if (t1 == t2) { \n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in org\eclipse\jdt\core\dom\X.java (at line 9)\n
	if (t1 == t2) { \n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
2. ERROR in org\eclipse\jdt\core\dom\X.java (at line 11)\n
	if (t1 == t2) {\n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
3. ERROR in org\eclipse\jdt\core\dom\X.java (at line 18)\n
	if (t1 == t2) { \n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
4. ERROR in org\eclipse\jdt\core\dom\X.java (at line 20)\n
	if (t1 == t2) {\n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
5. ERROR in org\eclipse\jdt\core\dom\X.java (at line 30)\n
	if (t1 == t2) { \n
	    ^^^^^^^^\n
The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.test0063(ProgrammingProblemsTest.java:2630)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest#test0063 - 11
org/eclipse/jdt/core/dom/X.java [
package org.eclipse.jdt.core.dom;
interface ITypeBinding {
}
class TypeBinding implements ITypeBinding {
}
public class X {
	public static void main(String[] args) {
		TypeBinding t1 = null, t2 = null;
		if (t1 == t2) { 
			if (t2 == t1) {  //$IDENTITY-COMPARISON$
				if (t1 == t2) {
				}
			}
		}
	}
	public static void gain(String[] args) {
		TypeBinding t1 = null, t2 = null;
		if (t1 == t2) { 
			if (t2 == t1) {  //$IDENTITY-COMPARISON$
				if (t1 == t2) {
				}
			}
		}
	}
	public static void vain(String[] args) {
		TypeBinding t1 = null, t2 = null;
		//$IDENTITY-COMPARISON$
		//$IDENTITY-COMPARISON$
		//$IDENTITY-COMPARISON$
		if (t1 == t2) { 
			if (t2 == t1) {  //$IDENTITY-COMPARISON$
				if (t1 == t2) { //$IDENTITY-COMPARISON$
				}
			}
		}
	}
	public static void cain(String[] args) {
		TypeBinding t1 = null, t2 = null;
		if (t1 == t2) { //$IDENTITY-COMPARISON$
			if (t2 == t1) {  //$IDENTITY-COMPARISON$
				if (t1 == t2) { //$IDENTITY-COMPARISON$
				}
			}
		}
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1565427784609/11_20190810_050312.txt

Standard Error

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