This content has been marked as final. Show 2 replies
According to Wikipedia, CLDC lacks _"...java.lang.reflect package and any of its classes... Methods on java.lang.Class which obtain Constructors or Methods or Fields..."_
If needed, [click here to find more noteworthy limitations vis-a-vis J2SE runtime|http://en.wikipedia.org/wiki/CLDC#Noteworthy_limitations_vis-a-vis_J2SE_runtime] (absence of Serializable etc).
One approach to instrument CLDC/MIDP programs ( MIDlets ) was presented at [MEDD'2008|https://developerdays.dev.java.net/nonav/Jan2008/abstracts.html#LT4] conference. As far as I understand, this approach is based on code injection technique and is targeted at application testing. If you're interested, [click here to take a look at presentation slides (pdf)|http://download.java.net/mobileembedded/developerdays/2008/LT-4-MIDletInstumenting-final.pdf].