This is the class:
class Foo { public void bar(int a, Object b) { } }
Now I\'m trying to get \"reflect\" this method from the class:
There's just an int.class.
int.class
Class[] types = { int.class, Object.class };
An alternative is Integer.TYPE.
Class[] types = { Integer.TYPE, Object.class };
The same applies on other primitives.