Bug 572176 - [16][pattern instanceof] incorrect error

Change-Id: I9fdc514e1857ae5750d55a5228d68ac09be7f17e
Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PatternMatching16Test.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PatternMatching16Test.java
index bd358d9..c70b568 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PatternMatching16Test.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PatternMatching16Test.java
@@ -1046,7 +1046,7 @@
 				"1. ERROR in X20.java (at line 6)\n" +
 				"	boolean b = (o instanceof String[] s) && s instanceof CharSequence[] s2;\n" +
 				"	                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
-				"Pattern type cannot be a subtype of the expression type\n" +
+				"Expression type cannot be a subtype of the Pattern type\n" +
 				"----------\n",
 				"",
 				null,
@@ -2422,7 +2422,7 @@
 					"1. ERROR in X.java (at line 4)\n" +
 					"	if (null instanceof T t) {\n" +
 					"	    ^^^^^^^^^^^^^^^^^^^\n" +
-					"Pattern type cannot be a subtype of the expression type\n" +
+					"Expression type cannot be a subtype of the Pattern type\n" +
 					"----------\n",
 				"",
 				null,
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
index 4f3410f..3681c0d 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties
@@ -1069,7 +1069,7 @@
  
 1780 = The pattern variable {0} is not in scope in this location
 1781 = The pattern variable {0} is final and cannot be assigned again
-1782 = Pattern type cannot be a subtype of the expression type
+1782 = Expression type cannot be a subtype of the Pattern type
 1783 = Illegal modifier for the pattern variable {0}; only final is permitted
 1784 = A pattern variable with the same name is already defined in the statement