Failed
org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.test0060 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test0060 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 7)\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\internal\compiler\lookup\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 3. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 16)\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\internal\compiler\lookup\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 5. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 28)\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\internal\compiler\lookup\X.java (at line 7)\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\internal\compiler\lookup\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 3. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 16)\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\internal\compiler\lookup\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 5. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 28)\n if (t1 == t2) { \n ^^^^^^^^\n The uninterned types TypeBinding and TypeBinding should not be compared using ==/!= operators.\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test0060 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 7)\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\internal\compiler\lookup\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 3. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 16)\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\internal\compiler\lookup\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 5. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 28)\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\internal\compiler\lookup\X.java (at line 7)\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\internal\compiler\lookup\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 3. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 16)\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\internal\compiler\lookup\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 5. ERROR in org\eclipse\jdt\internal\compiler\lookup\X.java (at line 28)\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.test0060(ProgrammingProblemsTest.java:2435)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest#test0060 - 10 org/eclipse/jdt/internal/compiler/lookup/X.java [ package org.eclipse.jdt.internal.compiler.lookup; class TypeBinding { } 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/comptest/run.1584245034298/10.0.2_20200315_040443.txt
Standard Error
----------------------------------------