comparison test/compiler/8015436/Test8015436.java @ 10383:2f004f9dc9e1

8015803: Test8015436.java fails 'can not access a member of class Test8015436 with modifiers "public static"' Summary: Newly added test has an issue: the main class must be public Reviewed-by: kvn, jbachorik, coleenp Contributed-by: serguei.spitsyn@oracle.com
author sspitsyn
date Tue, 04 Jun 2013 01:06:50 -0700
parents fe00365c8f31
children
comparison
equal deleted inserted replaced
10382:e7d29a019a3c 10383:2f004f9dc9e1
46 default public void defaultMethod(String str){ 46 default public void defaultMethod(String str){
47 System.out.println("defaultMethod() " + str); 47 System.out.println("defaultMethod() " + str);
48 } 48 }
49 } 49 }
50 50
51 class Test8015436 implements InterfaceWithDefaultMethod { 51 public class Test8015436 implements InterfaceWithDefaultMethod {
52 @Override 52 @Override
53 public void someMethod() { 53 public void someMethod() {
54 System.out.println("someMethod() invoked"); 54 System.out.println("someMethod() invoked");
55 } 55 }
56 56