- un-deprecated the integer MSTime variant.

Due to undefined downconversion rules from double to int, there is no way to safely downcast the return from MSTimef, meaning the function is completely useless for retrieving integral time stamps.
The old version is essential for these cases and must be kept around.
This commit is contained in:
Christoph Oelckers 2022-10-09 13:42:51 +02:00
parent 7f338988e3
commit 08f66585b7

View file

@ -722,7 +722,7 @@ class Object native
private native static Class<Object> BuiltinNameToClass(Name nm, Class<Object> filter);
private native static Object BuiltinClassCast(Object inptr, Class<Object> test);
deprecated("4.8", "Use MSTimeF instead") native static uint MSTime();
native static uint MSTime();
native static double MSTimeF();
native vararg static void ThrowAbortException(String fmt, ...);