8005851: Remove support for synchronized interface methods

Synchronized default methods are no longer supported

Reviewed-by: jjg
This commit is contained in:
Maurizio Cimadamore 2013-01-21 20:15:16 +00:00
parent 422c8bd914
commit a6fc182d40
3 changed files with 4 additions and 16 deletions

View File

@ -280,7 +280,7 @@ public class Flags {
SYNCHRONIZED | FINAL | STRICTFP;
public static final long
ExtendedStandardFlags = (long)StandardFlags | DEFAULT,
InterfaceDefaultMethodMask = ABSTRACT | PUBLIC | STRICTFP | SYNCHRONIZED | DEFAULT,
InterfaceDefaultMethodMask = ABSTRACT | PUBLIC | STRICTFP | DEFAULT,
LocalVarFlags = FINAL | PARAMETER;

View File

@ -23,7 +23,7 @@
/*
* @test
* @bug 7192245
* @bug 7192245 8005851
* @summary Automatic test for checking set of allowed modifiers on interface methods
*/
@ -183,10 +183,10 @@ public class TestDefaultMethodsSyntax {
/* ABSTRACT */ { T , T , C , F , F , F , F , F , F , F , F },
/* STATIC */ { C , C , C , C , F , F , C , C , C , C , F },
/* NATIVE */ { C , C , C , C , F , C , F , C , C , F , F },
/* SYNCHRONIZED */ { C , C , C , C , F , C , C , F , C , C , I },
/* SYNCHRONIZED */ { C , C , C , C , F , C , C , F , C , C , F },
/* FINAL */ { C , C , C , C , F , C , C , C , F , C , F },
/* STRICTFP */ { C , C , C , C , F , C , F , C , C , F , I },
/* DEFAULT */ { I , I , F , F , F , F , F , I , F , I , F }};
/* DEFAULT */ { I , I , F , F , F , F , F , F , F , I , F }};
}
enum MethodKind {

View File

@ -807,20 +807,8 @@ public class DefaultMethodsTest extends TestHarness {
fail("Could not load class", e);
}
}
public void testSynchronizedDefault() {
try {
java.lang.Class.forName("org.openjdk.tests.vm.SynchronizedDefault");
} catch (Exception e) {
fail("Could not load class", e);
}
}
}
interface StrictfpDefault {
default strictfp void m() {}
}
interface SynchronizedDefault {
default synchronized void m() {}
}