### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java,v retrieving revision 1.158 diff -u -r1.158 MethodVerifyTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 26 Aug 2008 11:52:58 -0000 1.158 +++ src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 3 Oct 2008 07:50:40 -0000 @@ -8794,6 +8794,8 @@ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=239066 public void test170() { + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportMissingSynchronizedOnInheritedMethod, CompilerOptions.ERROR); this.runNegativeTest( new String[] { "X.java", @@ -8801,16 +8803,20 @@ "class Y extends X { @Override void foo() { } }" }, "----------\n" + - "1. WARNING in X.java (at line 2)\n" + + "1. ERROR in X.java (at line 2)\n" + " class Y extends X { @Override void foo() { } }\n" + " ^^^^^\n" + "The method Y.foo() is overriding a synchronized method without being synchronized\n" + - "----------\n" - ); + "----------\n", + null, + false, + options); } //https://bugs.eclipse.org/bugs/show_bug.cgi?id=239066 - variation public void test171() { + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportMissingSynchronizedOnInheritedMethod, CompilerOptions.ERROR); this.runNegativeTest( new String[] { "X.java", @@ -8820,15 +8826,20 @@ "}" }, "----------\n" + - "1. WARNING in X.java (at line 2)\n" + + "1. ERROR in X.java (at line 2)\n" + " FOO { @Override void foo() { super.foo(); } };\n" + " ^^^^^\n" + "The method new X(){}.foo() is overriding a synchronized method without being synchronized\n" + - "----------\n"); + "----------\n", + null, + false, + options); } //https://bugs.eclipse.org/bugs/show_bug.cgi?id=239066 - variation public void test172() { + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportMissingSynchronizedOnInheritedMethod, CompilerOptions.ERROR); this.runNegativeTest( new String[] { "X.java", @@ -8838,15 +8849,20 @@ "}" }, "----------\n" + - "1. WARNING in X.java (at line 2)\n" + + "1. ERROR in X.java (at line 2)\n" + " void bar() { new X() { @Override void foo() {} }; }\n"+ " ^^^^^\n" + "The method new X(){}.foo() is overriding a synchronized method without being synchronized\n" + - "----------\n"); + "----------\n", + null, + false, + options); } //https://bugs.eclipse.org/bugs/show_bug.cgi?id=239066 - variation public void test173() { + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportMissingSynchronizedOnInheritedMethod, CompilerOptions.ERROR); this.runNegativeTest( new String[] { "X.java", @@ -8855,11 +8871,14 @@ "class Z extends Y { @Override void foo() {} }\n" }, "----------\n" + - "1. WARNING in X.java (at line 3)\n" + + "1. ERROR in X.java (at line 3)\n" + " class Z extends Y { @Override void foo() {} }\n" + " ^^^^^\n" + "The method Z.foo() is overriding a synchronized method without being synchronized\n" + - "----------\n"); + "----------\n", + null, + false, + options); } } \ No newline at end of file Index: src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java,v retrieving revision 1.175 diff -u -r1.175 BatchCompilerTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 2 Oct 2008 16:08:15 -0000 1.175 +++ src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 3 Oct 2008 07:50:39 -0000 @@ -1679,7 +1679,7 @@ " staticReceiver + non-static reference to static member\n" + " super overriding a method without making a super invocation\n" + " suppress + enable @SuppressWarnings\n" + - " syncOverride + missing synchronized in synchr. method override\n" + + " syncOverride missing synchronized in synchr. method override\n" + " syntheticAccess synthetic access for innerclass\n" + " tasks() tasks identified by tags inside comments\n" + " typeHiding + type parameter hiding another type\n" + @@ -1808,7 +1808,7 @@ "