JNI VERSION CHANGE: RFR: 8145098: JNI GetVersion should return JNI_VERSION_9

Alan Bateman Alan.Bateman at oracle.com
Thu Jan 28 09:05:22 UTC 2016


On 27/01/2016 23:02, Rachel Protacio wrote:
> Hello!
>
> Small but important change for review: updating the JNI_VERSION and in 
> so doing, changing the format from JNI_VERSION_1_x to JNI_VERSION_x_y 
> (see code/bug for details).
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8145098
>
> hotspot repo webrev: http://cr.openjdk.java.net/~rprotacio/JNI_hotspot/
> jdk repo webrev: http://cr.openjdk.java.net/~rprotacio/JNI_jdk/

It would be good if Iris or someone on JEP 223 would comment on this.

In JEP 223 then the version number doesn't have trailing zeros and I'm 
wondering if this should be JNI_VERSION_9 rather than JNI_VERSION_9_0. I 
brought up the issue of the native interfaces on verona-dev recently [1] 
and I think Iris was open to having the JEP document this so that there 
is one document of truth on the version changes.

Also just to mention that we have draft updates to the JVM TI spec in 
the jake forest. As part of that work then we've optimistically rev'ed 
the JVM TI version so that jvmti.h defines JVMTI_VERSION_9. We should at 
least be consistent so that both native interfaces are _9 or _9_0.

-Alan.

[1] 
http://mail.openjdk.java.net/pipermail/verona-dev/2015-December/000324.html



More information about the core-libs-dev mailing list