805 java.lang.Class.forName("org.openjdk.tests.vm.StrictfpDefault"); |
805 java.lang.Class.forName("org.openjdk.tests.vm.StrictfpDefault"); |
806 } catch (Exception e) { |
806 } catch (Exception e) { |
807 fail("Could not load class", e); |
807 fail("Could not load class", e); |
808 } |
808 } |
809 } |
809 } |
810 |
|
811 public void testSynchronizedDefault() { |
|
812 try { |
|
813 java.lang.Class.forName("org.openjdk.tests.vm.SynchronizedDefault"); |
|
814 } catch (Exception e) { |
|
815 fail("Could not load class", e); |
|
816 } |
|
817 } |
|
818 } |
810 } |
819 |
811 |
820 interface StrictfpDefault { |
812 interface StrictfpDefault { |
821 default strictfp void m() {} |
813 default strictfp void m() {} |
822 } |
814 } |
823 |
|
824 interface SynchronizedDefault { |
|
825 default synchronized void m() {} |
|
826 } |
|