Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8518
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.cgarbs.de!news.addix.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail |
|---|---|
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
| Newsgroups | comp.lang.java.programmer |
| Subject | JNI generic type of jobject |
| Date | Tue, 4 Oct 2011 14:23:58 +0200 |
| Organization | 1&1 Internet AG |
| Lines | 31 |
| Message-ID | <j6etsu$lkf$1@online.de> (permalink) |
| NNTP-Posting-Host | p3ee2964c.dip0.t-ipconnect.de |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | online.de 1317731038 22159 62.226.150.76 (4 Oct 2011 12:23:58 GMT) |
| X-Complaints-To | abuse@einsundeins.com |
| NNTP-Posting-Date | Tue, 4 Oct 2011 12:23:58 +0000 (UTC) |
| User-Agent | Unison/2.1.5 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8518 |
Show key headers only | View raw
Hello,
I use JNI calls for some Java classes. Some Java classes are generic
classes like:
class mytestclass<T> {
public native void mymethod();
}
The stub shows:
JNIEXPORT void JNICALL Java_mytestclass_mymethod(JNIEnv* p_env, jobject
p_object)
How can I get from the jobject which object type is the generic
parameter T? Because I would
like to create different codes if I do something like:
mytestclass<int> x = new mytestclass<int>();
x.mymethod();
mytestclass<String> x = new mytestclass<String>();
x.mymethod();
Thanks
Phil
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
JNI generic type of jobject Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-04 14:23 +0200
Re: JNI generic type of jobject Silvio <silvio@moc.com> - 2011-10-04 14:28 +0200
Re: JNI generic type of jobject Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-04 14:49 +0200
Re: JNI generic type of jobject Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-04 07:53 -0700
Re: JNI generic type of jobject Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-04 18:01 +0200
Re: JNI generic type of jobject Lew <lewbloch@gmail.com> - 2011-10-04 12:01 -0700
Re: JNI generic type of jobject Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-04 12:15 -0700
csiph-web