aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr147801/Foo.java
blob: b9272c8025a04902790ef63e30c24faf5d89d38f (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
28
29
30
import java.lang.reflect.Method;

public class Foo  implements PreparedStatement {

  public static void main(String []argv) throws Exception {
    new Foo().getParameterMetaData();
    Method[] m = Foo.class.getMethods();
    int count = 1;
    for (int i = 0; i < m.length; i++) {
		Method method = m[i];
		if (method.toString().indexOf("Foo.getParameterMetaData")!=-1)
			System.err.println((count++)+") "+method);
	}
  }
  public Sub getParameterMetaData() throws MyException {
     return null;
  }
}

class Sub {}

interface PreparedStatement {
//   public ParameterMetaData getParameterMetaData() throws MyException;
}

class MyException extends Exception {}

interface ParameterMetaData {}

interface SubParameterMetaData extends ParameterMetaData {}