提交 a18476a0 编写于 作者: M mcimadamore

8005851: Remove support for synchronized interface methods

Summary: Synchronized default methods are no longer supported
Reviewed-by: jjg
上级 7677294e
...@@ -280,7 +280,7 @@ public class Flags { ...@@ -280,7 +280,7 @@ public class Flags {
SYNCHRONIZED | FINAL | STRICTFP; SYNCHRONIZED | FINAL | STRICTFP;
public static final long public static final long
ExtendedStandardFlags = (long)StandardFlags | DEFAULT, ExtendedStandardFlags = (long)StandardFlags | DEFAULT,
InterfaceDefaultMethodMask = ABSTRACT | PUBLIC | STRICTFP | SYNCHRONIZED | DEFAULT, InterfaceDefaultMethodMask = ABSTRACT | PUBLIC | STRICTFP | DEFAULT,
LocalVarFlags = FINAL | PARAMETER; LocalVarFlags = FINAL | PARAMETER;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test * @test
* @bug 7192245 * @bug 7192245 8005851
* @summary Automatic test for checking set of allowed modifiers on interface methods * @summary Automatic test for checking set of allowed modifiers on interface methods
*/ */
...@@ -183,10 +183,10 @@ public class TestDefaultMethodsSyntax { ...@@ -183,10 +183,10 @@ public class TestDefaultMethodsSyntax {
/* ABSTRACT */ { T , T , C , F , F , F , F , F , F , F , F }, /* ABSTRACT */ { T , T , C , F , F , F , F , F , F , F , F },
/* STATIC */ { C , C , C , C , F , F , C , C , C , C , 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 }, /* 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 }, /* FINAL */ { C , C , C , C , F , C , C , C , F , C , F },
/* STRICTFP */ { C , C , C , C , F , C , F , C , C , F , I }, /* 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 { enum MethodKind {
......
...@@ -807,20 +807,8 @@ public class DefaultMethodsTest extends TestHarness { ...@@ -807,20 +807,8 @@ public class DefaultMethodsTest extends TestHarness {
fail("Could not load class", e); 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 { interface StrictfpDefault {
default strictfp void m() {} default strictfp void m() {}
} }
interface SynchronizedDefault {
default synchronized void m() {}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册