I am trying to extract parameter types from a java.lang.reflect.Constructor<T>
object, by using the getParameterTypes()
method
The constructor looks like this :
public SearchParameters(boolean doStaticBoosting, boolean doRewrites, boolean doCatalogsFacet, long userId,
Filter catalogsFilter, boolean doCatalogsFilterTypeFacet, boolean doSocialBoosting,
long[] categoryFilteringId)
Now when I invoke this method what I get the following paramter types :
As you see the last Class parameter is really messed up and defined as
class [J
where in fact I want it to be an long[].class
. I need to reconstruct this object later , and of course I cant do that based only on that parameter info I got.