Reputation: 57
Can some one tell me a way to find the native implementations of java methods
Upvotes: 1
Views: 75
Reputation: 19477
Dowload the jdk(link posted in previous answer) then use locate(to search name) and ack(a grep replacement to find stuff located inside the files, ex. ack --java "regex")
Upvotes: 0
Reputation: 114777
You can get the complete source for openjdk including the (c/c++) implementations of the native methods here: http://download.java.net/openjdk/jdk6/
(There are bundles for jdk 7 and jdk 8 too)
Upvotes: 1
Reputation: 2789
Native implementation of java function are done in JNI. If you have a class call org.abc.MyClass.java, its JNI implementation fora ny native function wil be in a file like org_abc_MyClass.c.
Upvotes: 1