From: Michal K. <mic...@gm...> - 2008-09-12 14:35:55
|
I only want to read from such objects calling their getter methods. Strings, numbers or other objects (like Throwable) are usually returned. I don't need no modifications. Michal Darko Marinov wrote: > What exactly do you want to do with that Description object? You're right > that you can't directly map an object from JPF into JVM, but there are ways > to work around that. > > Darko > > > On Fri, 12 Sep 2008, Michal Kebrt wrote: > >> Hi, >> >> am I right that objects managed by JPF cannot be easily accessed in >> native peer >> methods? I mean, is there a possibility to access Description object >> in the >> following example or do I have to access it field by field? >> >> public static void testRunStartedNative(MJIEnv env, int robj, int >> rDescription) { >> // is this possible? >> Description desc = (Description) env.someMethod(rDescription); >> } >> |