I don't think so, no; but you could write your own such method easily enough, yes? Just load a HashMap with the right answers (like theMap.put(int.class, Integer.class) and then just do theMap.get(int.class) to find the right answer.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Dec 13, 2002
Yes i wrote method to resolve correct wrapper.
I am making new web MVC architecture, where model object's functionality is defined by java 1.5's metadata functionality, and i used cglib to do some modification for these classes at runtime, but i had some problems with cglib/metadata directives, so i started to write new dynamic code generation library (top over asm), and i made AOP style after method functionality, and i need to got correct wrapper class for method's primitive arguments.
Of course i could debug cglib, but i also wanted to learn java vm stuff, so why not.. =))
I asked this functionality because IF somewhere in future there is new primitive type in java, then i don't have to update my code to support it, and still there is method "isPrimitive" in java.lang.Class, so i just wonder if there is method to get wrapper.. Of course it isn't big job to change code, but still i want to do thing's right if there is possibility for it.. =)