Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1f63adf22739a9ad5621f4295f815e6011ec8bdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package p;

class A {
	void calc(Class superClass) {
		superClass= superClass.getSuperclass();
	}
	void call(Process pro) {
		calc(pro.getClass());
	}
}

class Exposer {
	private void foo() {
		new Generic(getClass());
		new Generic<Exposer>(Exposer.class);
	}
}

class Generic<T> {
	Generic(Class<T> clazz) {
		
	}
}

Back to the top