aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ExtensionMethodNonStaticAccess.java
blob: 0d317c35503abd1c7ee9b136bde29d623a5e0fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//issue #2752: this test triggers an indirect static access and a non static access warning for the same method call
//platform ecj,eclipse
class ExtensionMethodNonStaticAccess {
  public void method(){
      Derived derived = new Derived();
      derived.staticMethod();
  }
}

class Base {
    static String staticMethod() {
        return "";
    }
}

class Derived extends Base {
    
}