summaryrefslogtreecommitdiffstats
path: root/tests/bugs152/binaryDecp/SubClassLoader.java
blob: f5ba9a4b3b17974187f78eda48209081e38d8ec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Bug reported that we incorrectly consider static methods when looking at
// binary weaving decp rules - we shouldn't consider them overriding

import java.util.*;

public class SubClassLoader  {
  private static List l;

  class Inner {
   public void foo() {
     System.err.println(l.toString());
   }
  }


/*
  // this one would override java.lang.ClassLoader.access$000 on an IBM VM
  public static List access$000(ClassLoader cl,String s,byte[] bs,int i,int j,Object o) {
    return null;
  }

  // this one would override java.lang.ClassLoader.access$000 on an SUN VM:w
  public static List access$000() {
    return null;
  }
*/
}